feat: add token management and configuration UI

- Implemented a new app structure with context management for the router.
- Created a token management page with a table to display configurations.
- Added forms for creating and editing token configurations with validation.
- Integrated Zustand for state management, including fetching, updating, and deleting configurations.
- Added dialogs for viewing and copying tokens.
This commit is contained in:
2026-01-28 01:52:19 +08:00
parent 44aef38631
commit 0de344c7ad
6 changed files with 1542 additions and 671 deletions

View File

@@ -11,10 +11,10 @@
},
"dependencies": {
"@ant-design/icons": "^6.1.0",
"@kevisual/api": "^0.0.26",
"@kevisual/api": "^0.0.28",
"@kevisual/cache": "^0.0.5",
"@kevisual/query": "^0.0.38",
"@kevisual/router": "^0.0.60",
"@kevisual/router": "^0.0.63",
"@radix-ui/react-checkbox": "^1.3.3",
"@radix-ui/react-dialog": "^1.1.15",
"@radix-ui/react-dropdown-menu": "^2.1.16",
@@ -27,7 +27,7 @@
"@radix-ui/react-tabs": "^1.1.13",
"@radix-ui/react-tooltip": "^1.2.8",
"@tanstack/react-table": "^8.21.3",
"antd": "^6.2.1",
"antd": "^6.2.2",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
@@ -37,12 +37,12 @@
"dotenv": "^17.2.3",
"es-toolkit": "^1.44.0",
"idb-keyval": "^6.2.2",
"lucide-react": "^0.562.0",
"lucide-react": "^0.563.0",
"marked": "^17.0.1",
"next": "16.1.4",
"react": "19.2.3",
"next": "16.1.5",
"react": "19.2.4",
"react-day-picker": "^9.13.0",
"react-dom": "19.2.3",
"react-dom": "19.2.4",
"react-hook-form": "^7.71.1",
"sonner": "^2.0.7",
"tailwind-merge": "^3.4.0",
@@ -51,6 +51,7 @@
"zustand": "^5.0.10"
},
"devDependencies": {
"@kevisual/context": "^0.0.4",
"@kevisual/types": "^0.0.12",
"@tailwindcss/postcss": "^4",
"@types/node": "^25",