From 5cad0bbf006273cde8e2ad4fdd827ba766535b9d Mon Sep 17 00:00:00 2001
From: Hailey <74346290+healim01@users.noreply.github.com>
Date: Thu, 24 Oct 2024 15:07:05 +0900
Subject: [PATCH 1/2] =?UTF-8?q?[FE]=20public=20assets=20=EC=97=90=EB=9F=AC?=
=?UTF-8?q?=20=EB=A1=9C=EA=B7=B8=20=EB=B0=8F=20og=20=EC=BB=A4=EB=B2=84=20?=
=?UTF-8?q?=EB=B2=84=EA=B7=B8,=20=EA=B7=B8=EB=A6=AC=EA=B3=A0=20=EC=84=BC?=
=?UTF-8?q?=ED=8A=B8=EB=A6=AC=20=EC=9E=91=EB=8F=99=20=EC=95=88=ED=95=A8=20?=
=?UTF-8?q?=EC=9D=B4=EC=8A=88=EB=A5=BC=20=ED=95=B4=EA=B2=B0=ED=95=9C?=
=?UTF-8?q?=EB=8B=A4.=20=20(#874)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/public/index.html | 12 ++++++------
frontend/src/apis/fetcher.ts | 6 +++++-
frontend/src/pages/LandingPage.tsx | 3 ++-
frontend/src/sentry.ts | 1 +
frontend/webpack.common.js | 21 ++++++++++++++++++---
5 files changed, 32 insertions(+), 11 deletions(-)
diff --git a/frontend/public/index.html b/frontend/public/index.html
index e538d0011..4e8d10c59 100644
--- a/frontend/public/index.html
+++ b/frontend/public/index.html
@@ -9,7 +9,7 @@
-
+
-
-
-
-
-
+
+
+
+
+
diff --git a/frontend/src/apis/fetcher.ts b/frontend/src/apis/fetcher.ts
index 4cde556e8..48cf4bca7 100644
--- a/frontend/src/apis/fetcher.ts
+++ b/frontend/src/apis/fetcher.ts
@@ -1,3 +1,5 @@
+import { captureException } from '@sentry/react';
+
import APIError from '@/apis/error/APIError';
import { deleteToken, postReissueAccessToken } from '@/apis/user';
import { API_ERROR_MESSAGE } from '@/constants/messages/apiErrorMessage';
@@ -38,7 +40,9 @@ const handleError = async (response: Response, requestProps: RequestProps) => {
return handleUnauthorizedError(response, requestProps, errorCode);
}
- throw new APIError(response.status, errorCode);
+ const apiError = new APIError(response.status, errorCode);
+ captureException(apiError);
+ throw apiError;
};
const handleUnauthorizedError = async (response: Response, requestProps: RequestProps, errorCode: string) => {
diff --git a/frontend/src/pages/LandingPage.tsx b/frontend/src/pages/LandingPage.tsx
index 240492e9d..f7c882dad 100644
--- a/frontend/src/pages/LandingPage.tsx
+++ b/frontend/src/pages/LandingPage.tsx
@@ -6,6 +6,7 @@ import FirstSection from '@/components/Landing/FirstSection';
import FourthSection from '@/components/Landing/FourthSection';
import SecondSection from '@/components/Landing/SecondSection';
import ThirdSection from '@/components/Landing/ThirdSection';
+import useAutoLogin from '@/hooks/useAutoLogin';
import useMoveSection from '@/hooks/useMoveSection';
import { flexColumn } from '@/styles/common';
import theme from '@/styles/theme';
@@ -38,7 +39,7 @@ const LandingPage = () => {
const sectionRefs = useRef<(HTMLElement | null)[]>([]);
const { handleSectionClick } = useMoveSection(sectionRefs);
- // useAutoLogin();
+ useAutoLogin();
return (
diff --git a/frontend/src/sentry.ts b/frontend/src/sentry.ts
index 136655055..e04bc6f69 100644
--- a/frontend/src/sentry.ts
+++ b/frontend/src/sentry.ts
@@ -28,4 +28,5 @@ Sentry.init({
// plus for 100% of sessions with an error
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
+ enabled: process.env.API_ENV === 'production',
});
diff --git a/frontend/webpack.common.js b/frontend/webpack.common.js
index 6920d7294..654f48c8f 100644
--- a/frontend/webpack.common.js
+++ b/frontend/webpack.common.js
@@ -37,7 +37,7 @@ module.exports = {
patterns: [
{
from: 'src/assets/images/og',
- to: 'images',
+ to: 'static/images',
},
],
}),
@@ -52,11 +52,26 @@ module.exports = {
},
],
},
- { test: /\.(eot|ttf|woff|woff2)$/i, type: 'asset' },
- { test: /\.(png|jpg|gif|webp|mp4)/i, type: 'asset/resource' },
+ {
+ test: /\.(eot|ttf|woff|woff2)$/i,
+ type: 'asset',
+ generator: {
+ filename: 'static/fonts/[name][ext]',
+ },
+ },
+ {
+ test: /\.(png|jpg|gif|webp|mp4)/i,
+ type: 'asset/resource',
+ generator: {
+ filename: 'static/images/[name][ext]',
+ },
+ },
{
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
+ generator: {
+ filename: 'static/images/[name][ext]',
+ },
use: [
{
loader: '@svgr/webpack',
From d3b6e5082990c1a360353060c1f5e78795834622 Mon Sep 17 00:00:00 2001
From: Hyerin <125418818+ooherin@users.noreply.github.com>
Date: Thu, 24 Oct 2024 15:12:05 +0900
Subject: [PATCH 2/2] =?UTF-8?q?[FE]=20=EB=9F=B0=EC=B9=AD=20UT=20=ED=94=BC?=
=?UTF-8?q?=EB=93=9C=EB=B0=B1=EC=9D=84=20=EC=9D=BC=EB=B6=80=20=EB=B0=98?=
=?UTF-8?q?=EC=98=81=ED=95=9C=EB=8B=A4.=20(UI=20=EA=B4=80=EB=A0=A8)=20(#88?=
=?UTF-8?q?4)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/src/assets/assets.tsx | 1 -
.../src/assets/icons/kakao/kakao-logo.svg | 2 +-
frontend/src/assets/icons/map/search.svg | 2 +-
.../components/ArticleList/ArticleCard.tsx | 4 ++
.../ChecklistList/ChecklistCard.tsx | 4 ++
.../components/ChecklistList/CustomBanner.tsx | 11 +++---
.../src/components/Landing/FirstSection.tsx | 9 +++--
.../Main/ChecklistCardContainer.tsx | 4 +-
.../src/components/Main/ChecklistSection.tsx | 2 +-
.../components/Main/ChecklistSectionTitle.tsx | 2 +-
.../src/components/MyPage/FeatureSection.tsx | 2 +-
.../src/components/MyPage/UserFeature.tsx | 1 +
.../AddressModal/DaumAddressModal.tsx | 6 +--
.../AddressModal/RealTimeAddressModal.tsx | 4 +-
.../ChecklistQuestion/ChecklistQuestion.tsx | 3 +-
.../ChecklistQuestionTemplate.tsx | 19 +++++++---
.../ChecklistTab/NewChecklistTab.tsx | 14 ++++++-
.../NewChecklist/MemoModal/MemoButton.tsx | 2 +-
.../NewChecklist/NewRoomInfoForm/Address.tsx | 2 +-
.../NewRoomInfoForm/RoomInfoTemplate.tsx | 38 ++++++++++---------
.../_common/Accordion/AccordionBody.tsx | 4 +-
.../src/components/_common/Button/Button.tsx | 24 ++++++++----
.../components/_common/Divider/Divider.tsx | 4 +-
.../components/_common/Dropdown/Dropdown.tsx | 2 +
.../_common/FormField/FormField.tsx | 2 +-
.../src/components/_common/Header/Header.tsx | 15 +++++---
.../src/components/_common/Input/Input.tsx | 4 +-
.../_common/KakaoLogin/KakaoLoginButton.tsx | 2 +-
.../src/components/_common/Tabs/TabButton.tsx | 19 ++++++----
frontend/src/components/_common/Tabs/Tabs.tsx | 2 +
frontend/src/pages/ChecklistDetailPage.tsx | 7 ++--
frontend/src/pages/NewChecklistPage.tsx | 2 +-
frontend/src/styles/common.ts | 4 ++
frontend/src/types/checklist.ts | 2 +-
frontend/src/utils/authValidation.ts | 2 +-
35 files changed, 143 insertions(+), 84 deletions(-)
diff --git a/frontend/src/assets/assets.tsx b/frontend/src/assets/assets.tsx
index b842e2bc5..60cdffe81 100644
--- a/frontend/src/assets/assets.tsx
+++ b/frontend/src/assets/assets.tsx
@@ -16,7 +16,6 @@ import Retry from '@/assets/icons/common/retry.svg';
import SmallCheck from '@/assets/icons/common/small-check.svg';
import PlusBlack from '@/assets/icons/plusMinus/plus-black.svg';
import PlusWhite from '@/assets/icons/plusMinus/plus-white.svg';
-
// room
import Building from '@/assets/icons/room/building.svg';
import Calendar from '@/assets/icons/room/calendar.svg';
diff --git a/frontend/src/assets/icons/kakao/kakao-logo.svg b/frontend/src/assets/icons/kakao/kakao-logo.svg
index d67677e39..a2a684a24 100644
--- a/frontend/src/assets/icons/kakao/kakao-logo.svg
+++ b/frontend/src/assets/icons/kakao/kakao-logo.svg
@@ -1,3 +1,3 @@
-