此提交实现完整的插件管理产品化闭环: 1. 中心机新增Ed25519密钥、审计/运行上报表、插件扩展字段,实现票据/管控清单签发、鉴权下载能力 2. 部署端新增设备级单活调度器、用户私有插件库、离线/联网校验链、插件下载安装流程 3. 控制面与部署前端同步更新UI与接口适配,新增审计页、插件管理增强功能 4. 修复两个工作流脚本的过滤与Excel导出问题,优化打包依赖与日志面板 5. 新增完整架构设计与实施文档
63 lines
1.7 KiB
JavaScript
63 lines
1.7 KiB
JavaScript
// 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 }
|