From ce424f9232dead47cc80e0d29c5a10c90f4c0788 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9E=84=EC=B1=84=EB=AF=BC?= <87525734+cmlim0070@users.noreply.github.com> Date: Sat, 4 Jan 2025 13:33:03 +0900 Subject: [PATCH] =?UTF-8?q?design=20:=20=EB=A1=9C=EA=B7=B8=EC=9D=B8&?= =?UTF-8?q?=ED=9A=8C=EC=9B=90=EA=B0=80=EC=9E=85=20=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=EC=8A=A4=ED=83=80=EC=9D=BC=20=EB=B3=80=EA=B2=BD=20?= =?UTF-8?q?(#465)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * env : 개발 환경에서 서비스워커 캐싱 무효화 * design : 로그인 페이지 디자인 변경 * design : 로그인&회원가입 페이지 디자인 소폭 변경 --- public/sw.js | 6 + src/components/RegisterPage/EmailSection.tsx | 154 +++++++++---------- src/pages/User/Login/LoginPage.tsx | 31 ++-- src/pages/User/Register/RegisterPage.tsx | 88 +++++------ 4 files changed, 141 insertions(+), 138 deletions(-) diff --git a/public/sw.js b/public/sw.js index ce241bcb..dfb7557e 100644 --- a/public/sw.js +++ b/public/sw.js @@ -2,7 +2,13 @@ const cacheName = '::myServiceWorker'; const version = 'v0.0.1'; const cacheList = []; +const isDev = + self.location.hostname === 'localhost' || + self.location.hostname === '127.0.0.1'; + self.addEventListener('fetch', (e) => { + if (isDev) return e.respondWith(fetch(e.request)); + e.respondWith( caches.match(e.request).then((r) => { if (r) { diff --git a/src/components/RegisterPage/EmailSection.tsx b/src/components/RegisterPage/EmailSection.tsx index 44da2216..2b341754 100644 --- a/src/components/RegisterPage/EmailSection.tsx +++ b/src/components/RegisterPage/EmailSection.tsx @@ -27,93 +27,89 @@ export const EmailSection = ({ console.log(isVerifyLoading); }, [isVerifyLoading]); return ( -