chore: add radix as the ui framework.

This commit is contained in:
Yufan Sheng 2024-12-25 14:01:12 +08:00
parent 817fe58d9d
commit 1548fb82c7
Signed by: syhily
GPG Key ID: 9D18A22A7DCD5A9B
3 changed files with 1433 additions and 818 deletions

2238
web/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -39,6 +39,9 @@
] ]
}, },
"dependencies": { "dependencies": {
"@radix-ui/colors": "^3.0.0",
"@radix-ui/react-icons": "^1.3.2",
"@radix-ui/themes": "^3.1.6",
"@react-router/node": "^7.1.1", "@react-router/node": "^7.1.1",
"@react-router/serve": "^7.1.1", "@react-router/serve": "^7.1.1",
"isbot": "^5.1.18", "isbot": "^5.1.18",
@ -53,12 +56,9 @@
"@types/node": "^22", "@types/node": "^22",
"@types/react": "^19.0.2", "@types/react": "^19.0.2",
"@types/react-dom": "^19.0.2", "@types/react-dom": "^19.0.2",
"autoprefixer": "^10.4.20",
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
"husky": "^9.1.7", "husky": "^9.1.7",
"postcss": "^8.4.49",
"prettier": "^3.4.2", "prettier": "^3.4.2",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.2", "typescript": "^5.7.2",
"vite": "^6.0.5", "vite": "^6.0.5",
"vite-tsconfig-paths": "^5.1.4" "vite-tsconfig-paths": "^5.1.4"

View File

@ -1,14 +1,7 @@
import { reactRouter } from '@react-router/dev/vite'; import { reactRouter } from '@react-router/dev/vite';
import autoprefixer from 'autoprefixer';
import tailwindcss from 'tailwindcss';
import { defineConfig } from 'vite'; import { defineConfig } from 'vite';
import tsconfigPaths from 'vite-tsconfig-paths'; import tsconfigPaths from 'vite-tsconfig-paths';
export default defineConfig({ export default defineConfig({
css: {
postcss: {
plugins: [tailwindcss, autoprefixer],
},
},
plugins: [reactRouter(), tsconfigPaths()], plugins: [reactRouter(), tsconfigPaths()],
}); });