Skip to content

Commit 8653976

Browse files
author
ws-wangjg
committed
feat: auto deploy
1 parent 3c607cc commit 8653976

12 files changed

Lines changed: 1721 additions & 0 deletions

File tree

.backups/autodeploy-1769232500/index.jsx

Lines changed: 469 additions & 0 deletions
Large diffs are not rendered by default.

.backups/autodeploy-1769232500/index.module.less

Lines changed: 447 additions & 0 deletions
Large diffs are not rendered by default.

src/config/menu.config.jsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import {
3131
FileTextOutlined,
3232
ThunderboltOutlined,
3333
ToolOutlined,
34+
CloudUploadOutlined,
3435
} from '@ant-design/icons'
3536

3637
// 静态菜单配置
@@ -44,6 +45,12 @@ const rawMainLayoutMenu = [
4445
path: '/svg-viewer',
4546
icon: <HeatMapOutlined />,
4647
},
48+
{
49+
label: 'AUTO DEPLOY',
50+
i18nKey: 'menu.autoDeploy',
51+
path: '/auto-deploy',
52+
icon: <CloudUploadOutlined />,
53+
},
4754
{
4855
label: 'Zustand演示',
4956
i18nKey: 'menu.zustand',

src/locales/en/translation.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ const en = {
7979
mermaid: 'Mermaid',
8080
topology: 'Topology',
8181
svgViewer: 'Arc Preview',
82+
autoDeploy: 'Auto Deploy',
8283
permissionExample: 'Permission',
8384
phBar: 'PH Bar',
8485
chatgpt: 'ChatGPT',

src/locales/zh/translation.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ const zh = {
7979
mermaid: 'Mermaid',
8080
topology: '拓扑图',
8181
svgViewer: '架构预览',
82+
autoDeploy: '自动部署',
8283
permissionExample: '权限示例',
8384
phBar: 'PH Bar',
8485
chatgpt: 'ChatGPT',

src/mock/permission.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ const allRoutes = [
3636
'/topology',
3737
'/zustand',
3838
'/svg-viewer',
39+
'/auto-deploy',
3940
]
4041

4142
// 超级管理员:所有路由
@@ -60,6 +61,7 @@ const managerRoutes = [
6061
'/postmessage',
6162
'/topology',
6263
'/svg-viewer',
64+
'/auto-deploy',
6365
]
6466

6567
// 业务员:业务相关功能
@@ -194,6 +196,7 @@ export const routePermissionMap: Record<string, PermissionCode> = {
194196
'/topology': 'topology:read',
195197
'/zustand': 'zustand:read',
196198
'/svg-viewer': 'svg-viewer:read',
199+
'/auto-deploy': 'auto-deploy:read',
197200
'*': '*:*',
198201
}
199202

0 commit comments

Comments
 (0)