From 3d819beab60f982aece37af939d3d0fad6e5d5f7 Mon Sep 17 00:00:00 2001 From: pillow12360 Date: Fri, 3 Jan 2025 22:19:57 +0900 Subject: [PATCH] Delete .idea directory --- .idea/encodings.xml | 4 - .idea/git_toolbox_blame.xml | 6 - .idea/git_toolbox_prj.xml | 15 - .idea/material_theme_project_new.xml | 12 - .idea/prettier.xml | 7 - .../24__10__13___1_43_________Changes_.xml | 4 - .../shelved.patch" | 19 - .../shelved.patch" | 0 .idea/swagger-settings.xml | 6 - .idea/vcs.xml | 6 - .idea/workspace.xml | 622 ------------------ 11 files changed, 701 deletions(-) delete mode 100644 .idea/encodings.xml delete mode 100644 .idea/git_toolbox_blame.xml delete mode 100644 .idea/git_toolbox_prj.xml delete mode 100644 .idea/material_theme_project_new.xml delete mode 100644 .idea/prettier.xml delete mode 100644 .idea/shelf/24__10__13___1_43_________Changes_.xml delete mode 100644 ".idea/shelf/24__10__13__\354\230\244\355\233\204_1_43,_\354\262\264\355\201\254\354\225\204\354\233\203_\354\240\204\354\227\220_\354\273\244\353\260\213\353\220\230\354\247\200_\354\225\212\354\235\200_\353\263\200\352\262\275_\353\202\264\354\232\251_[Changes]/shelved.patch" delete mode 100644 ".idea/shelf/24__10__13__\354\230\244\355\233\204_1_43,_\354\262\264\355\201\254\354\225\204\354\233\203_\354\240\204\354\227\220_\354\273\244\353\260\213\353\220\230\354\247\200_\354\225\212\354\235\200_\353\263\200\352\262\275_\353\202\264\354\232\251_[Changes]1/shelved.patch" delete mode 100644 .idea/swagger-settings.xml delete mode 100644 .idea/vcs.xml delete mode 100644 .idea/workspace.xml diff --git a/.idea/encodings.xml b/.idea/encodings.xml deleted file mode 100644 index da0415a0..00000000 --- a/.idea/encodings.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/git_toolbox_blame.xml b/.idea/git_toolbox_blame.xml deleted file mode 100644 index 7dc12496..00000000 --- a/.idea/git_toolbox_blame.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.idea/git_toolbox_prj.xml b/.idea/git_toolbox_prj.xml deleted file mode 100644 index 02b915b8..00000000 --- a/.idea/git_toolbox_prj.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/.idea/material_theme_project_new.xml b/.idea/material_theme_project_new.xml deleted file mode 100644 index c7c8d03d..00000000 --- a/.idea/material_theme_project_new.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/prettier.xml b/.idea/prettier.xml deleted file mode 100644 index 0c83ac4e..00000000 --- a/.idea/prettier.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.idea/shelf/24__10__13___1_43_________Changes_.xml b/.idea/shelf/24__10__13___1_43_________Changes_.xml deleted file mode 100644 index 9da81d6b..00000000 --- a/.idea/shelf/24__10__13___1_43_________Changes_.xml +++ /dev/null @@ -1,4 +0,0 @@ - - \ No newline at end of file diff --git "a/.idea/shelf/24__10__13__\354\230\244\355\233\204_1_43,_\354\262\264\355\201\254\354\225\204\354\233\203_\354\240\204\354\227\220_\354\273\244\353\260\213\353\220\230\354\247\200_\354\225\212\354\235\200_\353\263\200\352\262\275_\353\202\264\354\232\251_[Changes]/shelved.patch" "b/.idea/shelf/24__10__13__\354\230\244\355\233\204_1_43,_\354\262\264\355\201\254\354\225\204\354\233\203_\354\240\204\354\227\220_\354\273\244\353\260\213\353\220\230\354\247\200_\354\225\212\354\235\200_\353\263\200\352\262\275_\353\202\264\354\232\251_[Changes]/shelved.patch" deleted file mode 100644 index 8b1df81f..00000000 --- "a/.idea/shelf/24__10__13__\354\230\244\355\233\204_1_43,_\354\262\264\355\201\254\354\225\204\354\233\203_\354\240\204\354\227\220_\354\273\244\353\260\213\353\220\230\354\247\200_\354\225\212\354\235\200_\353\263\200\352\262\275_\353\202\264\354\232\251_[Changes]/shelved.patch" +++ /dev/null @@ -1,19 +0,0 @@ -Index: frontend/src/context/AuthContext.tsx -IDEA additional info: -Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP -<+>import { createContext, useState, ReactNode } from 'react';\r\nimport axios from 'axios';\r\n\r\ninterface AuthContextType {\r\n user: string | null;\r\n isAuthenticated: boolean;\r\n signin: (userName: string, password: string) => Promise;\r\n signout: () => void;\r\n}\r\n\r\nexport const AuthContext = createContext(\r\n undefined,\r\n);\r\n\r\ninterface AuthProviderProps {\r\n children: ReactNode;\r\n}\r\n\r\nexport const AuthProvider: React.FC = ({ children }) => {\r\n const [user, setUser] = useState(null);\r\n const [isAuthenticated, setIsAuthenticated] = useState(false);\r\n const [error, setError] = useState(null);\r\n const apiUrl = 'http://172.16.67.246:8080';\r\n\r\n const signin = async (userName: string, password: string) => {\r\n if (!userName || !password) {\r\n console.error('아이디와 비밀번호가 필요합니다.');\r\n setError('아이디와 비밀번호를 입력해주세요.');\r\n return;\r\n }\r\n\r\n try {\r\n console.log(\r\n `로그인 시도 중 - loginId: ${userName}, password: ${password}`,\r\n );\r\n\r\n // FormData 객체 생성 및 필드 추가\r\n const formData = new FormData();\r\n formData.append('loginId', userName);\r\n formData.append('password', password);\r\n\r\n // axios를 이용한 multipart/form-data 형식의 POST 요청\r\n const response = await axios.post(`${apiUrl}/api/admin/login`, formData, {\r\n headers: {\r\n 'Content-Type': 'multipart/form-data',\r\n },\r\n });\r\n\r\n const authorizationHeader = response.headers['authorization'];\r\n const token = authorizationHeader && authorizationHeader.split(' ')[1];\r\n\r\n setUser(userName);\r\n setIsAuthenticated(true);\r\n setError(null);\r\n localStorage.setItem('token', token);\r\n } catch (error: any) {\r\n console.error('로그인 실패:', error);\r\n setError(error.response?.data?.message || '로그인 실패');\r\n throw error;\r\n }\r\n };\r\n\r\n const signout = () => {\r\n setUser(null);\r\n setIsAuthenticated(false);\r\n localStorage.removeItem('token');\r\n };\r\n\r\n const authValue: AuthContextType = {\r\n user,\r\n isAuthenticated,\r\n signin,\r\n signout,\r\n };\r\n\r\n return (\r\n \r\n {children}\r\n {error &&
{error}
}\r\n
\r\n );\r\n};\r\n -Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP -<+>UTF-8 -=================================================================== -diff --git a/frontend/src/context/AuthContext.tsx b/frontend/src/context/AuthContext.tsx ---- a/frontend/src/context/AuthContext.tsx (revision c0564527debcbd4684d884bfe2e625f978eef3c0) -+++ b/frontend/src/context/AuthContext.tsx (date 1728746959563) -@@ -20,7 +20,7 @@ - const [user, setUser] = useState(null); - const [isAuthenticated, setIsAuthenticated] = useState(false); - const [error, setError] = useState(null); -- const apiUrl = 'http://172.16.67.246:8080'; -+ const apiUrl = 'http://localhost:8080'; - - const signin = async (userName: string, password: string) => { - if (!userName || !password) { diff --git "a/.idea/shelf/24__10__13__\354\230\244\355\233\204_1_43,_\354\262\264\355\201\254\354\225\204\354\233\203_\354\240\204\354\227\220_\354\273\244\353\260\213\353\220\230\354\247\200_\354\225\212\354\235\200_\353\263\200\352\262\275_\353\202\264\354\232\251_[Changes]1/shelved.patch" "b/.idea/shelf/24__10__13__\354\230\244\355\233\204_1_43,_\354\262\264\355\201\254\354\225\204\354\233\203_\354\240\204\354\227\220_\354\273\244\353\260\213\353\220\230\354\247\200_\354\225\212\354\235\200_\353\263\200\352\262\275_\353\202\264\354\232\251_[Changes]1/shelved.patch" deleted file mode 100644 index e69de29b..00000000 diff --git a/.idea/swagger-settings.xml b/.idea/swagger-settings.xml deleted file mode 100644 index 6d2f747d..00000000 --- a/.idea/swagger-settings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 35eb1ddf..00000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index 79b2d84c..00000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,622 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - { - "history": [ - { - "state": "OPEN" - } - ], - "lastFilter": { - "state": "OPEN" - } -} - { - "prStates": [ - { - "id": { - "id": "PR_kwDOMwmWp86AtmIX", - "number": 102 - }, - "lastSeen": 1730641004807 - } - ] -} - - - - { - "selectedUrlAndAccountId": { - "url": "https://github.com/urinaner/sejong-dibb.git", - "accountId": "85e19c8a-b9ef-4c52-b180-a34b9661e785" - } -} - { - "associatedIndex": 5 -} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1727352447907 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file