|
|
|
@ -15,6 +15,7 @@ import Button from '@/app/components/base/button'
|
|
|
|
|
|
|
|
|
|
|
|
import { fetchInitValidateStatus, fetchSetupStatus, setup } from '@/service/common'
|
|
|
|
import { fetchInitValidateStatus, fetchSetupStatus, setup } from '@/service/common'
|
|
|
|
import type { InitValidateStatusResponse, SetupStatusResponse } from '@/models/common'
|
|
|
|
import type { InitValidateStatusResponse, SetupStatusResponse } from '@/models/common'
|
|
|
|
|
|
|
|
import useDocumentTitle from '@/hooks/use-document-title'
|
|
|
|
|
|
|
|
|
|
|
|
const validPassword = /^(?=.*[a-zA-Z])(?=.*\d).{8,}$/
|
|
|
|
const validPassword = /^(?=.*[a-zA-Z])(?=.*\d).{8,}$/
|
|
|
|
|
|
|
|
|
|
|
|
@ -32,6 +33,7 @@ const accountFormSchema = z.object({
|
|
|
|
type AccountFormValues = z.infer<typeof accountFormSchema>
|
|
|
|
type AccountFormValues = z.infer<typeof accountFormSchema>
|
|
|
|
|
|
|
|
|
|
|
|
const InstallForm = () => {
|
|
|
|
const InstallForm = () => {
|
|
|
|
|
|
|
|
useDocumentTitle('')
|
|
|
|
const { t } = useTranslation()
|
|
|
|
const { t } = useTranslation()
|
|
|
|
const router = useRouter()
|
|
|
|
const router = useRouter()
|
|
|
|
const [showPassword, setShowPassword] = React.useState(false)
|
|
|
|
const [showPassword, setShowPassword] = React.useState(false)
|
|
|
|
|