Update home page and styles, add user API URL

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jay Sheen
2025-09-22 10:20:52 +09:00
parent 1cd1f40e86
commit 1610ae144a
3 changed files with 32 additions and 11 deletions

View File

@@ -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();
}

View File

@@ -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`;
},
}

View File

@@ -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);