update login

This commit is contained in:
熊潇 2025-06-09 17:49:04 +08:00
parent 571eb89df5
commit 896390e8eb
6 changed files with 298 additions and 552 deletions

View File

@ -17,8 +17,8 @@
"license": "MIT",
"type": "module",
"dependencies": {
"@floating-ui/dom": "^1.7.0",
"@kevisual/query": "0.0.18",
"@floating-ui/dom": "^1.7.1",
"@kevisual/query": "0.0.28",
"@kevisual/query-login": "^0.0.6",
"@kevisual/system-lib": "^0.0.22",
"@kevisual/system-ui": "^0.0.3",
@ -27,22 +27,24 @@
"lodash-es": "^4.17.21",
"qrcode": "^1.5.4",
"react-dom": "^19.1.0",
"zustand": "^5.0.4"
"react-toastify": "^11.0.5",
"zustand": "^5.0.5"
},
"devDependencies": {
"@kevisual/router": "0.0.20",
"@kevisual/store": "0.0.4",
"@kevisual/router": "0.0.22",
"@kevisual/ssl": "^0.0.1",
"@kevisual/store": "0.0.9",
"@kevisual/types": "^0.0.10",
"@tailwindcss/vite": "^4.1.7",
"@tailwindcss/vite": "^4.1.8",
"@types/qrcode": "^1.5.5",
"@types/react": "^19.1.4",
"@types/react-dom": "^19.1.5",
"@types/react": "^19.1.6",
"@types/react-dom": "^19.1.6",
"@vitejs/plugin-basic-ssl": "^2.0.0",
"@vitejs/plugin-react": "^4.4.1",
"@vitejs/plugin-react": "^4.5.1",
"cross-env": "^7.0.3",
"esbuild": "^0.25.4",
"esbuild": "^0.25.5",
"react": "^19.1.0",
"tailwindcss": "^4.1.7",
"tailwindcss": "^4.1.8",
"vite": "^6.3.5"
},
"pnpm": {

797
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,4 @@
import { message } from '@kevisual/system-ui/dist/message';
// import { message } from '@kevisual/system-ui/dist/message';
import { toast } from 'react-toastify';
export { message };
export const message = toast;

View File

@ -1,6 +1,11 @@
import './index.css';
import { Login } from './login';
import { ToastContainer } from 'react-toastify';
export const App = () => {
return <Login />;
return (
<>
<Login />
<ToastContainer position='top-center' autoClose={5000} draggable />
</>
);
};

View File

@ -140,7 +140,10 @@ function AccountLogin({ accountName, setAccountName, password, setPassword }) {
const handlePasswordChange = (e) => {
setPassword(e.target.value);
};
const onTestAccountLogin = () => {
setAccountName('demo');
setPassword('123456');
};
return (
<div className='flex flex-col gap-1'>
<label className='block text-[#F39800] py-1 mb-1'></label>
@ -164,6 +167,14 @@ function AccountLogin({ accountName, setAccountName, password, setPassword }) {
value={password}
onChange={handlePasswordChange}
/>
<div
className='text-xs text-gray-400/60 mt-2 hover:text-gray-500 cursor-pointer'
onClick={() => {
onTestAccountLogin();
}}>
</div>
</div>
);
}

View File

@ -1,5 +1,5 @@
import { defineConfig } from 'vite';
import basicSsl from '@vitejs/plugin-basic-ssl';
import basicSsl from '@kevisual/ssl';
// import react from '@vitejs/plugin-react';
import dayjs from 'dayjs';
import path from 'path';