From c4c93b6c484eadd953d26e4c4730d9fc9defded7 Mon Sep 17 00:00:00 2001 From: sheepdog13 Date: Tue, 20 Feb 2024 14:37:40 +0900 Subject: [PATCH] =?UTF-8?q?Fix=20:=20vite=20=EB=A7=88=EC=9D=B4=EA=B7=B8?= =?UTF-8?q?=EB=A0=88=EC=9D=B4=EC=85=98=EC=A4=91=20process=20is=20not=20def?= =?UTF-8?q?ined?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - vite는 process.env를 쓸때 proces 대신 import.meta.env를 사용해야한다 - img태그 src는 public/imag 폴더의 경로는 ./img/파일명으로 사용하면 된다 --- packages/frontend/.eslintrc.cjs | 12 ++++++--- .../src/components/Main/ProfileToggle.tsx | 12 ++------- .../components/common/ClickNavigationBox.tsx | 6 +---- .../frontend/src/components/common/Logo.tsx | 2 +- .../src/components/common/Mascort.tsx | 2 +- .../components/pwaPrompt/PWAinstallPrompt.tsx | 10 ++------ packages/frontend/src/pages/Loading.tsx | 6 ++--- packages/frontend/src/pages/Main.tsx | 25 ++++--------------- .../frontend/src/serviceWorkerRegistration.ts | 7 ++++-- packages/frontend/tsconfig.json | 8 ++++-- packages/frontend/vite.config.ts | 14 +++++------ 11 files changed, 39 insertions(+), 65 deletions(-) diff --git a/packages/frontend/.eslintrc.cjs b/packages/frontend/.eslintrc.cjs index 58ab409..6509762 100644 --- a/packages/frontend/.eslintrc.cjs +++ b/packages/frontend/.eslintrc.cjs @@ -1,4 +1,8 @@ module.exports = { + env: { + browser: true, + node: true, + }, root: true, parser: '@typescript-eslint/parser', @@ -8,12 +12,12 @@ module.exports = { extends: [ 'eslint:recommended', 'plugin:@typescript-eslint/recommended', - 'plugin:prettier/recommended' + 'plugin:prettier/recommended', ], rules: { semi: 'error', '@typescript-eslint/no-unused-vars': 'error', - 'prettier/prettier': ['error', { endOfLine: 'auto' }] - } -}; \ No newline at end of file + 'prettier/prettier': ['error', { endOfLine: 'auto' }], + }, +}; diff --git a/packages/frontend/src/components/Main/ProfileToggle.tsx b/packages/frontend/src/components/Main/ProfileToggle.tsx index 76b784a..2c6e3a9 100644 --- a/packages/frontend/src/components/Main/ProfileToggle.tsx +++ b/packages/frontend/src/components/Main/ProfileToggle.tsx @@ -77,21 +77,13 @@ function ProfileToggle() { - +

로그아웃

- +

회원정보

diff --git a/packages/frontend/src/components/common/ClickNavigationBox.tsx b/packages/frontend/src/components/common/ClickNavigationBox.tsx index e7fdadf..2c463a9 100644 --- a/packages/frontend/src/components/common/ClickNavigationBox.tsx +++ b/packages/frontend/src/components/common/ClickNavigationBox.tsx @@ -113,11 +113,7 @@ function ClickNavigationBox({ {/* desktop 사이즈의 img size와 path를 string으로 받습니다 */} - connect + connect {/* subTitle이 있으면 넣고 없으면 빼주세요 */} diff --git a/packages/frontend/src/components/common/Logo.tsx b/packages/frontend/src/components/common/Logo.tsx index fb999ff..98af4ff 100644 --- a/packages/frontend/src/components/common/Logo.tsx +++ b/packages/frontend/src/components/common/Logo.tsx @@ -11,7 +11,7 @@ function Logo({ className }: LogoProps) { return ( navigate('/')}> - logo + logo ); } diff --git a/packages/frontend/src/components/common/Mascort.tsx b/packages/frontend/src/components/common/Mascort.tsx index 7784855..b053bab 100644 --- a/packages/frontend/src/components/common/Mascort.tsx +++ b/packages/frontend/src/components/common/Mascort.tsx @@ -8,7 +8,7 @@ export type MascortProps = { function Mascort({ size }: MascortProps) { return ( - 마스코트 + 마스코트 ); } diff --git a/packages/frontend/src/components/pwaPrompt/PWAinstallPrompt.tsx b/packages/frontend/src/components/pwaPrompt/PWAinstallPrompt.tsx index ffd2b1c..7780a9f 100644 --- a/packages/frontend/src/components/pwaPrompt/PWAinstallPrompt.tsx +++ b/packages/frontend/src/components/pwaPrompt/PWAinstallPrompt.tsx @@ -87,14 +87,8 @@ function PWAinstallPrompt({ isIOSShow, setIsIOSShow }: PropsIOS) { IOS 사용자 앱 설치 방법 안내
- ios 앱 설치 - ios 앱 설치 + ios 앱 설치 + ios 앱 설치