|
|
|
@@ -13,14 +13,14 @@ import { useEffect, useState, type FormEvent } from 'react'
|
|
|
|
|
import { useNavigate } from 'react-router-dom'
|
|
|
|
|
import { useMutation } from '@tanstack/react-query'
|
|
|
|
|
import { motion } from 'framer-motion'
|
|
|
|
|
import { Eye, EyeOff, Loader2, Lock, ShieldCheck, ShieldAlert, Sparkles } from 'lucide-react'
|
|
|
|
|
import { Eye, EyeOff, Loader2, Lock, ShieldCheck, ShieldAlert } from 'lucide-react'
|
|
|
|
|
import { api } from '@/lib/api'
|
|
|
|
|
import { Logo } from '@/components/Logo'
|
|
|
|
|
import { cn } from '@/lib/cn'
|
|
|
|
|
|
|
|
|
|
export function Auth() {
|
|
|
|
|
const navigate = useNavigate()
|
|
|
|
|
const [username, setUsername] = useState('admin')
|
|
|
|
|
const [username, setUsername] = useState('')
|
|
|
|
|
const [password, setPassword] = useState('')
|
|
|
|
|
const [confirmPassword, setConfirmPassword] = useState('') // 仅设密码时用
|
|
|
|
|
const [showPwd, setShowPwd] = useState(false)
|
|
|
|
@@ -196,11 +196,6 @@ export function Auth() {
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="mt-4 flex items-center justify-center gap-1.5 text-[10px] text-muted/60">
|
|
|
|
|
<Sparkles className="h-3 w-3" />
|
|
|
|
|
自托管量化工作台 · 数据完全掌握在自己手里
|
|
|
|
|
</div>
|
|
|
|
|
</motion.div>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|