refactor: 完成项目目录重构与代码迁移
本次提交完成了整体项目的目录梳理与代码迁移: 1. 将根级controlplane、webhost等目录的代码迁移至desktop/对应子目录,统一桌面端架构 2. 移动并整理了插件目录结构,将插件统一放入根级plugins/ 3. 调整了前端项目的路径与配置,统一前后端开发构建流程 4. 清理了废弃的旧版app/目录与冗余的构建中间文件 5. 更新了.gitignore与README.md,适配新的项目结构
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
// Naive UI 主题与离散式反馈(message/dialog 无需 Provider 包裹即可调用)
|
||||
import { createDiscreteApi, zhCN, dateZhCN } from 'naive-ui'
|
||||
|
||||
export const themeOverrides = {
|
||||
common: {
|
||||
primaryColor: '#3b6cff',
|
||||
primaryColorHover: '#5e84ff',
|
||||
primaryColorPressed: '#2f56d6',
|
||||
primaryColorSuppl: '#4c79ff',
|
||||
infoColor: '#3b6cff',
|
||||
successColor: '#22b07a',
|
||||
warningColor: '#eab308',
|
||||
errorColor: '#e5484d',
|
||||
borderRadius: '10px',
|
||||
borderRadiusSmall: '8px',
|
||||
fontFamily:
|
||||
'"HarmonyOS Sans SC","Microsoft YaHei UI","PingFang SC",-apple-system,"Segoe UI",sans-serif',
|
||||
},
|
||||
Card: {
|
||||
borderRadius: '16px',
|
||||
},
|
||||
Button: {
|
||||
borderRadiusMedium: '10px',
|
||||
borderRadiusLarge: '12px',
|
||||
},
|
||||
Menu: {
|
||||
itemHeight: '46px',
|
||||
itemBorderRadius: '10px',
|
||||
itemTextColor: '#3a4660',
|
||||
itemTextColorHover: '#3b6cff',
|
||||
itemTextColorActive: '#3b6cff',
|
||||
itemTextColorActiveHover: '#2f56d6',
|
||||
itemColorHover: 'rgba(31, 45, 80, .05)',
|
||||
itemColorActive: 'rgba(59, 108, 255, .10)',
|
||||
itemColorActiveHover: 'rgba(59, 108, 255, .15)',
|
||||
iconColor: '#7b8aa8',
|
||||
iconColorHover: '#3b6cff',
|
||||
iconColorActive: '#3b6cff',
|
||||
iconColorActiveHover: '#2f56d6',
|
||||
},
|
||||
DataTable: {
|
||||
thColor: '#f5f8fe',
|
||||
thTextColor: '#5b6b8c',
|
||||
thFontWeight: '600',
|
||||
tdColor: 'transparent',
|
||||
tdColorHover: 'rgba(59,108,255,.06)',
|
||||
borderColor: 'rgba(88,113,183,.10)',
|
||||
borderRadius: '12px',
|
||||
},
|
||||
Dialog: {
|
||||
borderRadius: '16px',
|
||||
},
|
||||
}
|
||||
|
||||
export const { message, dialog, notification } = createDiscreteApi(
|
||||
['message', 'dialog', 'notification'],
|
||||
{
|
||||
configProviderProps: { themeOverrides, locale: zhCN, dateLocale: dateZhCN },
|
||||
}
|
||||
)
|
||||
|
||||
export { zhCN, dateZhCN }
|
||||
Reference in New Issue
Block a user