feat(web): 整体替换 UI 框架为 Ant Design 6 并接入自定义主题
以 antd ConfigProvider + antd-style 承载 zinc 风格自定义主题(明暗双套 token), button/input/select/notification 用 createStyles 定制;三态主题经 darkAlgorithm 无刷新切换;use-toast 改基于 antd notification; 移除 shadcn/ui 组件目录与 radix 依赖;样式桥接层保证排版与多端布局不变。
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { fileURLToPath, URL } from 'node:url'
|
||||
import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
import tailwindcss from '@tailwindcss/vite'
|
||||
@@ -8,6 +9,12 @@ export default defineConfig({
|
||||
// /notes/assets/… 导致白屏(设计 §8.3-2,禁止修改)
|
||||
base: '/',
|
||||
plugins: [react(), tailwindcss()],
|
||||
resolve: {
|
||||
// shadcn 组件别名的运行时解析(components.json aliases)
|
||||
alias: {
|
||||
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
||||
},
|
||||
},
|
||||
server: {
|
||||
proxy: {
|
||||
// 同源是 Cookie/CSRF 成立的前提(§10.5)
|
||||
|
||||
Reference in New Issue
Block a user