From b256ef20bfa63607b54f15a316a7e09d661c1d40 Mon Sep 17 00:00:00 2001 From: abearxiong Date: Fri, 26 Dec 2025 21:32:31 +0800 Subject: [PATCH] update --- package.json | 4 ++-- src/apps/config/firstLogin.tsx | 16 ++++++++++++++++ src/apps/config/store.ts | 7 +++++-- 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 53a8d8f..ac282f0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kevisual/kevisual-home", - "version": "0.0.8", + "version": "0.0.9", "description": "", "main": "index.js", "basename": "/root/home", @@ -10,7 +10,7 @@ "preview": "astro preview", "ui": "pnpm dlx shadcn@latest add ", "prepub": "pnpm run build", - "pub": "envision deploy ./dist -k home -v 0.0.8 -u -y yes" + "pub": "envision deploy ./dist -k home -v 0.0.9 -u -y yes" }, "keywords": [], "author": "abearxiong (https://www.xiongxiao.me)", diff --git a/src/apps/config/firstLogin.tsx b/src/apps/config/firstLogin.tsx index 26957c5..3edbf97 100644 --- a/src/apps/config/firstLogin.tsx +++ b/src/apps/config/firstLogin.tsx @@ -30,6 +30,7 @@ export const App = () => { const firstStore = useFirstStore(); const [username, setUsername] = useState(""); const [nickname, setNickname] = useState(""); + const [password, setPassword] = useState(""); const [isLoading, setIsLoading] = useState(true); useEffect(() => { @@ -51,6 +52,7 @@ export const App = () => { const res = await firstStore.updateUserInfo({ username, nickname, + password, }); }; @@ -138,6 +140,20 @@ export const App = () => { /> +
+ + setPassword(e.target.value)} + disabled={!canChange} + className="w-full px-5 py-3 rounded-xl border-2 focus:outline-none focus:ring-2 focus:ring-white/50 focus:border-white/50 backdrop-blur-sm bg-white/5 text-white placeholder-white/40 border-white/20 disabled:bg-white/5 disabled:cursor-not-allowed disabled:border-white/10 disabled:text-white/40 transition-all duration-200" + placeholder="输入密码" + /> +
+