From 74de3d58f745c29a03b31537159b026d3de324ea Mon Sep 17 00:00:00 2001 From: kric_jspark Date: Fri, 21 Nov 2025 15:33:51 +0900 Subject: [PATCH] =?UTF-8?q?251121=5F01=5FENH=20:=20=EB=A1=9C=EA=B7=B8?= =?UTF-8?q?=EC=9D=B8=20=EB=B0=8F=20=EC=9D=B8=EC=A6=9D=20=EC=A0=80=EC=9E=A5?= =?UTF-8?q?,=20api=ED=86=B5=EC=8B=A0=20=EC=8B=9C=20=EC=9E=90=EB=8F=99?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20accessKey=20=EB=B6=99=EA=B2=8C=20=EC=A1=B0?= =?UTF-8?q?=EC=B9=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 1 + .env.development | 3 +- .env.local | 3 +- .env.production | 3 +- .idea/codeStyles/codeStyleConfig.xml | 5 + .idea/inspectionProfiles/Project_Default.xml | 2 + eslint.config.mjs | 10 + package-lock.json | 110 ++++++--- package.json | 3 + public/kri_logo.png | Bin 0 -> 13544 bytes src/api/auth.ts | 12 - src/app/(main)/layout.tsx | 20 -- src/app/(main)/list/page.tsx | 8 - src/app/(main)/user/page.tsx | 8 - src/app/(pages)/(main)/assign/list/page.tsx | 8 + .../(pages)/(main)/assign/project/page.tsx | 8 + src/app/(pages)/(main)/layout.tsx | 40 ++++ src/app/(pages)/(main)/list/contact/page.tsx | 8 + src/app/(pages)/(main)/list/manage/page.tsx | 21 ++ src/app/(pages)/(main)/manage/user/page.tsx | 8 + .../(main)/message/template/email/page.tsx | 9 + .../(main)/message/template/text/page.tsx | 9 + src/app/{ => (pages)}/(main)/page.tsx | 0 .../(pages)/(main)/progress/contact/page.tsx | 8 + .../(main)/progress/fieldwork/page.tsx | 8 + .../(pages)/(main)/progress/message/page.tsx | 8 + src/app/(pages)/(main)/project/info/page.tsx | 8 + src/app/(pages)/login/page.tsx | 209 ++++++++++++++++++ src/app/(pages)/logout/page.tsx | 42 ++++ src/app/api/login/route.ts | 41 ++-- src/app/api/logout/route.ts | 16 ++ src/app/api/project/route.ts | 5 + src/app/favicon.ico | Bin 25931 -> 15406 bytes src/app/layout.tsx | 13 +- src/app/login/page.tsx | 129 ----------- src/app/logout/page.tsx | 7 - src/components/common/LoadingOverlay.tsx | 17 ++ src/components/layout/Header.tsx | 120 ++++++++++ src/components/layout/MainLayout.tsx | 127 +++++++++++ src/components/layout/Sidebar.tsx | 130 +++++++++++ src/components/providers/AppProvider.tsx | 13 ++ src/config/commonConst.ts | 7 + src/config/menu.data.ts | 80 +++++++ src/config/menu.types.ts | 25 +++ src/hooks/useAuth.ts | 51 +++++ src/hooks/useFontSize.ts | 106 +++++++++ src/hooks/useLoading.ts | 56 +++++ src/hooks/useSelectedProject.ts | 16 ++ src/hooks/useStorage.ts | 49 ++++ src/lib/env.client.ts | 13 +- src/lib/env.server.ts | 9 +- src/lib/http-client.ts | 47 +++- src/lib/security.ts | 196 ++++++++++++++++ src/lib/server-api.ts | 17 ++ src/store/cookie/cookie-keys.ts | 11 + src/store/cookie/cookie.ts | 105 +++++++++ src/store/jotai/auth.ts | 22 ++ src/store/jotai/loading.ts | 8 + src/store/jotai/project.ts | 23 ++ src/store/jotai/utils.ts | 118 ++++++++++ src/store/storage/secure-storage.ts | 128 +++++++++++ src/store/storage/storage-keys.ts | 17 ++ src/types/auth.ts | 13 +- 63 files changed, 2056 insertions(+), 261 deletions(-) create mode 100644 .idea/codeStyles/codeStyleConfig.xml create mode 100644 public/kri_logo.png delete mode 100644 src/api/auth.ts delete mode 100644 src/app/(main)/layout.tsx delete mode 100644 src/app/(main)/list/page.tsx delete mode 100644 src/app/(main)/user/page.tsx create mode 100644 src/app/(pages)/(main)/assign/list/page.tsx create mode 100644 src/app/(pages)/(main)/assign/project/page.tsx create mode 100644 src/app/(pages)/(main)/layout.tsx create mode 100644 src/app/(pages)/(main)/list/contact/page.tsx create mode 100644 src/app/(pages)/(main)/list/manage/page.tsx create mode 100644 src/app/(pages)/(main)/manage/user/page.tsx create mode 100644 src/app/(pages)/(main)/message/template/email/page.tsx create mode 100644 src/app/(pages)/(main)/message/template/text/page.tsx rename src/app/{ => (pages)}/(main)/page.tsx (100%) create mode 100644 src/app/(pages)/(main)/progress/contact/page.tsx create mode 100644 src/app/(pages)/(main)/progress/fieldwork/page.tsx create mode 100644 src/app/(pages)/(main)/progress/message/page.tsx create mode 100644 src/app/(pages)/(main)/project/info/page.tsx create mode 100644 src/app/(pages)/login/page.tsx create mode 100644 src/app/(pages)/logout/page.tsx create mode 100644 src/app/api/logout/route.ts create mode 100644 src/app/api/project/route.ts delete mode 100644 src/app/login/page.tsx delete mode 100644 src/app/logout/page.tsx create mode 100644 src/components/common/LoadingOverlay.tsx create mode 100644 src/components/layout/Header.tsx create mode 100644 src/components/layout/MainLayout.tsx create mode 100644 src/components/layout/Sidebar.tsx create mode 100644 src/components/providers/AppProvider.tsx create mode 100644 src/config/commonConst.ts create mode 100644 src/config/menu.data.ts create mode 100644 src/config/menu.types.ts create mode 100644 src/hooks/useAuth.ts create mode 100644 src/hooks/useFontSize.ts create mode 100644 src/hooks/useLoading.ts create mode 100644 src/hooks/useSelectedProject.ts create mode 100644 src/hooks/useStorage.ts create mode 100644 src/lib/security.ts create mode 100644 src/lib/server-api.ts create mode 100644 src/store/cookie/cookie-keys.ts create mode 100644 src/store/cookie/cookie.ts create mode 100644 src/store/jotai/auth.ts create mode 100644 src/store/jotai/loading.ts create mode 100644 src/store/jotai/project.ts create mode 100644 src/store/jotai/utils.ts create mode 100644 src/store/storage/secure-storage.ts create mode 100644 src/store/storage/storage-keys.ts diff --git a/.env b/.env index e69de29..1ffa797 100644 --- a/.env +++ b/.env @@ -0,0 +1 @@ +NEXT_PUBLIC_STORE_KEY = 4b6f7265615265736561726368-496e7465726e6174696f6e616c-49545465616d \ No newline at end of file diff --git a/.env.development b/.env.development index 03b72de..930a694 100644 --- a/.env.development +++ b/.env.development @@ -1,4 +1,5 @@ NEXT_PUBLIC_ENV=dev NEXT_PUBLIC_API_BASE=http://localhost:3000 -API_INTRANET=http://10.10.10.11:8081 \ No newline at end of file +ENV=dev +API_CONTACT_SERVER=http://localhost:4001/api/v1 \ No newline at end of file diff --git a/.env.local b/.env.local index 9cca8f7..57807a6 100644 --- a/.env.local +++ b/.env.local @@ -1,4 +1,5 @@ NEXT_PUBLIC_ENV=local NEXT_PUBLIC_API_BASE=http://localhost:3000 -API_INTRANET=http://10.10.10.11:8081 \ No newline at end of file +ENV=local +API_CONTACT_SERVER=http://localhost:4001/api/v1 \ No newline at end of file diff --git a/.env.production b/.env.production index 7ea6d2b..3358727 100644 --- a/.env.production +++ b/.env.production @@ -1,4 +1,5 @@ NEXT_PUBLIC_ENV=prod NEXT_PUBLIC_API_BASE=http://localhost:3000 -API_INTRANET=http://10.10.10.11:8081 \ No newline at end of file +ENV=prod +API_CONTACT_SERVER=http://localhost:4001/api/v1 \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..a55e7a1 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index 52ff362..3e84b06 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -3,5 +3,7 @@