From 1610ae144a34fcffbfe93bcf3289ef801618aaa5 Mon Sep 17 00:00:00 2001 From: Jay Sheen Date: Mon, 22 Sep 2025 10:20:52 +0900 Subject: [PATCH] Update home page and styles, add user API URL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- src/pages/home/home-page.tsx | 5 ----- src/shared/api/api-url-user.ts | 25 +++++++++++++++++++++++++ src/shared/ui/assets/css/style.css | 13 +++++++------ 3 files changed, 32 insertions(+), 11 deletions(-) create mode 100644 src/shared/api/api-url-user.ts diff --git a/src/pages/home/home-page.tsx b/src/pages/home/home-page.tsx index fd50151..4ed6e4e 100644 --- a/src/pages/home/home-page.tsx +++ b/src/pages/home/home-page.tsx @@ -93,7 +93,6 @@ export const HomePage = () => { const handleLogin = useCallback(async () =>{ //let appStart = getLocalStorage(StorageKeys.AppStart); - alert('handleLogin'); //if(!!appStart){ if(false){ useStore.getState().UserStore.resetUserInfo(); @@ -150,12 +149,8 @@ export const HomePage = () => { useEffect(() => { // handleRequestToken(); if (isNativeEnvironment) { - alert('isNativeEnvironment'); - console.log('isNativeEnvironment'); handleRequestToken(); } else { - alert('not isNativeEnvironment'); - console.log('not isNativeEnvironment'); handleLogin(); } diff --git a/src/shared/api/api-url-user.ts b/src/shared/api/api-url-user.ts new file mode 100644 index 0000000..f2750f0 --- /dev/null +++ b/src/shared/api/api-url-user.ts @@ -0,0 +1,25 @@ +import { + API_BASE_URL, + API_URL_KEY, + } from './../constants/url'; + +export const API_URL_USER = { + allUserList: () => { + return `${API_BASE_URL}/api/v1/${API_URL_KEY}/user/all/users`; + }, + createUser: () => { + return `${API_BASE_URL}/api/v1/${API_URL_KEY}/user/create`; + }, + deleteUser: () => { + return `${API_BASE_URL}/api/v1/${API_URL_KEY}/user/delete`; + }, + updateUser: () => { + return `${API_BASE_URL}/api/v1/${API_URL_KEY}/user/update`; + }, + userDetail: () => { + return `${API_BASE_URL}/api/v1/${API_URL_KEY}/user/detail`; + }, + existsUserid: () => { + return `${API_BASE_URL}/api/v1/${API_URL_KEY}/user/exists/userid`; + }, +} \ No newline at end of file diff --git a/src/shared/ui/assets/css/style.css b/src/shared/ui/assets/css/style.css index c236cb2..9640e1f 100644 --- a/src/shared/ui/assets/css/style.css +++ b/src/shared/ui/assets/css/style.css @@ -5593,6 +5593,12 @@ ul.txn-amount-detail li span:last-child { .faq-section { padding: 0 10px; } + +.faq-controlls { + display: grid; + gap: 16px; +} + .faq-search { position: relative; display: flex; @@ -5618,14 +5624,9 @@ ul.txn-amount-detail li span:last-child { } .faq-filter { display: flex; - align-items: center; - justify-content: space-between; height: 40px; - padding: 0 12px; - border: 1px solid #D9D9D9; - border-radius: 8px; - margin-top: 10px; } + .faq-filter .text { font-size: 15px; color: var(--color-2D3436);