feat: 重构控制台为37du自动化平台,新增权限授权与通知中心功能
- 更新系统名称、登录页宣传文案为37du平台相关内容 - 移除聊天功能相关代码与配置 - 新增客户端版本上报字段与设备统计接口 - 新增通知中心功能(60s轮询、localStorage已读标记) - 新增权限授权工作台相关接口与页面 - 新增统一页头组件ArtPageHeader - 调整快速入口配置指向真实功能页面 - 修复控制面地址为内网生产库
This commit is contained in:
@@ -38,7 +38,7 @@ import { headerBarConfig } from './modules/headerBar'
|
||||
const appConfig: SystemConfig = {
|
||||
// 系统信息
|
||||
systemInfo: {
|
||||
name: 'Art Design Pro' // 系统名称
|
||||
name: '37du 控制台' // 系统名称
|
||||
},
|
||||
// 系统主题
|
||||
systemThemeStyles: {
|
||||
|
||||
@@ -45,14 +45,6 @@ export const globalComponentsConfig: GlobalComponentConfig[] = [
|
||||
),
|
||||
enabled: true
|
||||
},
|
||||
{
|
||||
name: '聊天窗口',
|
||||
key: 'chat-window',
|
||||
component: defineAsyncComponent(
|
||||
() => import('@/components/core/layouts/art-chat-window/index.vue')
|
||||
),
|
||||
enabled: true
|
||||
},
|
||||
{
|
||||
name: '礼花效果',
|
||||
key: 'fireworks-effect',
|
||||
|
||||
@@ -1,127 +1,95 @@
|
||||
/**
|
||||
* 快速入口配置
|
||||
* 包含:应用列表、快速链接等配置
|
||||
*/
|
||||
import { WEB_LINKS } from '@/utils/constants'
|
||||
import type { FastEnterConfig } from '@/types/config'
|
||||
|
||||
const fastEnterConfig: FastEnterConfig = {
|
||||
// 显示条件(屏幕宽度)
|
||||
minWidth: 1200,
|
||||
// 应用列表
|
||||
applications: [
|
||||
{
|
||||
name: '工作台',
|
||||
description: '系统概览与数据统计',
|
||||
icon: 'ri:pie-chart-line',
|
||||
iconColor: '#377dff',
|
||||
enabled: true,
|
||||
order: 1,
|
||||
routeName: 'Console'
|
||||
},
|
||||
{
|
||||
name: '分析页',
|
||||
description: '数据分析与可视化',
|
||||
icon: 'ri:game-line',
|
||||
iconColor: '#ff3b30',
|
||||
enabled: true,
|
||||
order: 2,
|
||||
routeName: 'Analysis'
|
||||
},
|
||||
{
|
||||
name: '礼花效果',
|
||||
description: '动画特效展示',
|
||||
icon: 'ri:loader-line',
|
||||
iconColor: '#7A7FFF',
|
||||
enabled: true,
|
||||
order: 3,
|
||||
routeName: 'Fireworks'
|
||||
},
|
||||
{
|
||||
name: '聊天',
|
||||
description: '即时通讯功能',
|
||||
icon: 'ri:user-line',
|
||||
iconColor: '#13DEB9',
|
||||
enabled: true,
|
||||
order: 4,
|
||||
routeName: 'Chat'
|
||||
},
|
||||
{
|
||||
name: '官方文档',
|
||||
description: '使用指南与开发文档',
|
||||
icon: 'ri:bill-line',
|
||||
iconColor: '#ffb100',
|
||||
enabled: true,
|
||||
order: 5,
|
||||
link: WEB_LINKS.DOCS
|
||||
},
|
||||
{
|
||||
name: '技术支持',
|
||||
description: '技术支持与问题反馈',
|
||||
icon: 'ri:user-location-line',
|
||||
iconColor: '#ff6b6b',
|
||||
enabled: true,
|
||||
order: 6,
|
||||
link: WEB_LINKS.COMMUNITY
|
||||
},
|
||||
{
|
||||
name: '更新日志',
|
||||
description: '版本更新与变更记录',
|
||||
icon: 'ri:gamepad-line',
|
||||
iconColor: '#38C0FC',
|
||||
enabled: true,
|
||||
order: 7,
|
||||
routeName: 'ChangeLog'
|
||||
},
|
||||
{
|
||||
name: '哔哩哔哩',
|
||||
description: '技术分享与交流',
|
||||
icon: 'ri:bilibili-line',
|
||||
iconColor: '#FB7299',
|
||||
enabled: true,
|
||||
order: 8,
|
||||
link: WEB_LINKS.BILIBILI
|
||||
}
|
||||
],
|
||||
// 快速链接
|
||||
quickLinks: [
|
||||
{
|
||||
name: '登录',
|
||||
enabled: true,
|
||||
order: 1,
|
||||
routeName: 'Login'
|
||||
},
|
||||
{
|
||||
name: '注册',
|
||||
enabled: true,
|
||||
order: 2,
|
||||
routeName: 'Register'
|
||||
},
|
||||
{
|
||||
name: '忘记密码',
|
||||
enabled: true,
|
||||
order: 3,
|
||||
routeName: 'ForgetPassword'
|
||||
},
|
||||
{
|
||||
name: '定价',
|
||||
enabled: true,
|
||||
order: 4,
|
||||
routeName: 'Pricing'
|
||||
},
|
||||
{
|
||||
name: '个人中心',
|
||||
enabled: true,
|
||||
order: 5,
|
||||
routeName: 'UserCenter'
|
||||
},
|
||||
{
|
||||
name: '留言管理',
|
||||
enabled: true,
|
||||
order: 6,
|
||||
routeName: 'ArticleComment'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
export default Object.freeze(fastEnterConfig)
|
||||
/**
|
||||
* 快速入口配置(37du:仅指向控制台真实页面)
|
||||
*/
|
||||
import type { FastEnterConfig } from '@/types/config'
|
||||
|
||||
const fastEnterConfig: FastEnterConfig = {
|
||||
// 显示条件(屏幕宽度)
|
||||
minWidth: 1200,
|
||||
// 应用列表
|
||||
applications: [
|
||||
{
|
||||
name: '概览',
|
||||
description: '插件与账号全景',
|
||||
icon: 'ri:pie-chart-line',
|
||||
iconColor: '#377dff',
|
||||
enabled: true,
|
||||
order: 1,
|
||||
routeName: 'Overview'
|
||||
},
|
||||
{
|
||||
name: '插件管理',
|
||||
description: '上传发布与版本管理',
|
||||
icon: 'ri:box-3-line',
|
||||
iconColor: '#13DEB9',
|
||||
enabled: true,
|
||||
order: 2,
|
||||
routeName: 'Plugins'
|
||||
},
|
||||
{
|
||||
name: '账号管理',
|
||||
description: '统一账号维护',
|
||||
icon: 'ri:user-3-line',
|
||||
iconColor: '#7A7FFF',
|
||||
enabled: true,
|
||||
order: 3,
|
||||
routeName: 'Accounts'
|
||||
},
|
||||
{
|
||||
name: '权限授权',
|
||||
description: '插件/平台授权工作台',
|
||||
icon: 'ri:key-2-line',
|
||||
iconColor: '#ffb100',
|
||||
enabled: true,
|
||||
order: 4,
|
||||
routeName: 'Grants'
|
||||
},
|
||||
{
|
||||
name: '通知推送',
|
||||
description: '执行机用户消息触达',
|
||||
icon: 'ri:notification-3-line',
|
||||
iconColor: '#ff6b6b',
|
||||
enabled: true,
|
||||
order: 5,
|
||||
routeName: 'Notify'
|
||||
},
|
||||
{
|
||||
name: '数据看板',
|
||||
description: '运行统计与趋势',
|
||||
icon: 'ri:bar-chart-2-line',
|
||||
iconColor: '#38C0FC',
|
||||
enabled: true,
|
||||
order: 6,
|
||||
routeName: 'Stats'
|
||||
}
|
||||
],
|
||||
// 快速链接
|
||||
quickLinks: [
|
||||
{
|
||||
name: '审计报表',
|
||||
enabled: true,
|
||||
order: 1,
|
||||
routeName: 'Audit'
|
||||
},
|
||||
{
|
||||
name: '运行记录',
|
||||
enabled: true,
|
||||
order: 2,
|
||||
routeName: 'Reports'
|
||||
},
|
||||
{
|
||||
name: '执行机设备',
|
||||
enabled: true,
|
||||
order: 3,
|
||||
routeName: 'Devices'
|
||||
},
|
||||
{
|
||||
name: '敏感凭证',
|
||||
enabled: true,
|
||||
order: 4,
|
||||
routeName: 'Creds'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
export default Object.freeze(fastEnterConfig)
|
||||
|
||||
@@ -43,8 +43,8 @@ export const headerBarConfig: HeaderBarFeatureConfig = {
|
||||
description: '通知中心,显示系统通知和消息'
|
||||
},
|
||||
chat: {
|
||||
enabled: true,
|
||||
description: '聊天功能,提供实时沟通'
|
||||
enabled: false,
|
||||
description: '聊天功能(37du 未使用,已停用)'
|
||||
},
|
||||
language: {
|
||||
enabled: true,
|
||||
|
||||
Reference in New Issue
Block a user