feat: refactor user authentication and subscription dialogs for improved structure and consistency

This commit is contained in:
Ardeman
2025-03-15 15:24:01 +08:00
parent 6d99a37f20
commit c7195b7428
13 changed files with 404 additions and 389 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import { XiorError } from 'xior'
import { getUser } from '~/apis/news/get-user'
import { userLoginRequest } from '~/apis/news/login-user'
import { loginSchema, type TLoginSchema } from '~/layouts/news/form-login'
import { loginSchema, type TLoginSchema } from '~/layouts/news/dialog-login'
import { generateUserTokenCookie } from '~/utils/token'
import type { Route } from './+types/actions.login'
+1 -1
View File
@@ -8,7 +8,7 @@ import { userRegisterRequest } from '~/apis/news/register-user'
import {
registerSchema,
type TRegisterSchema,
} from '~/layouts/news/form-register'
} from '~/layouts/news/dialog-register'
import { generateUserTokenCookie } from '~/utils/token'
import type { Route } from './+types/actions.register'
+1 -1
View File
@@ -8,7 +8,7 @@ import { getUser } from '~/apis/news/get-user'
import {
subscribeSchema,
type TSubscribeSchema,
} from '~/layouts/news/form-subscribe-plan'
} from '~/layouts/news/dialog-subscribe-plan'
import { handleCookie } from '~/libs/cookies'
import type { Route } from './+types/actions.subscribe'