Skip to content

Commit

Permalink
Merge pull request #3 from hlt1997/feat_space
Browse files Browse the repository at this point in the history
Feat space
  • Loading branch information
hlt1997 authored Aug 29, 2023
2 parents c918a72 + 994d4e5 commit db3fa2a
Show file tree
Hide file tree
Showing 64 changed files with 7,941 additions and 1,118 deletions.
9 changes: 2 additions & 7 deletions chaosmeta-platform-frontend/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,12 @@ export default defineConfig({
styledComponents: {},
proxy: {
'/users': {
target: 'http://30.46.241.183:8082/',
target: 'http://30.46.242.17:8082/',
changeOrigin: true,
pathRewrite: { '^/api': '' },
},
'/chaosmeta': {
target: 'http://30.46.241.183:8082/',
changeOrigin: true,
pathRewrite: { '^/api': '' },
},
'/chaos': {
target: 'http://antchaos-gz00b-006002015020.sa128-sqa.alipay.net/',
target: 'http://30.46.242.17:8082/',
changeOrigin: true,
pathRewrite: { '^/api': '' },
},
Expand Down
34 changes: 27 additions & 7 deletions chaosmeta-platform-frontend/config/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,24 @@ export default [
{
name: '空间',
path: '/space',
key: '/space',
hideInBreadcrumb: true,
routes: [
{
path: '/space',
redirect: './overview',
},
{
name: '空间',
name: '空间概览',
path: '/space/overview',
component: './Space/SpaceOverview',
icon: 'https://mdn.alipayobjects.com/huamei_d3kmvr/afts/img/A*ySleT74WnD4AAAAAAAAAAAAADmKmAQ/original',
},
{
name: '实验',
key: 'shiyan',
path: '/space/experiment',
// parentKeys: ['/space'],
component: './Space/Experiment',
icon: 'https://mdn.alipayobjects.com/huamei_d3kmvr/afts/img/A*LTdSQbHlFP8AAAAAAAAAAAAADmKmAQ/original',
},
Expand All @@ -43,6 +46,19 @@ export default [
component: './Space/ChooseExperiment',
hideInMenu: true,
},
{
name: '实验详情',
path: '/space/experiment/detail',
component: './Space/ExperimentDetail',
hideInMenu: true,
},
{
name: '实验结果详情',
path: '/space/experiment-result/detail',
component: './Space/ExperimentResultDetail',
parentKeys: [''],
hideInMenu: true,
},
// {
// name: '创建实验',
// path: '/space/experiment/add',
Expand All @@ -52,8 +68,9 @@ export default [
// },
{
name: '实验结果',
path: '/space/result',
path: '/space/experiment-result',
component: './Space/ExperimentResult',
parentKeys: [''],
icon: 'https://mdn.alipayobjects.com/huamei_d3kmvr/afts/img/A*bABiRoluWWUAAAAAAAAAAAAADmKmAQ/original',
},
{
Expand All @@ -77,17 +94,20 @@ export default [
name: '账号管理',
path: '/setting/account',
component: './GlobalSetting/Account',
icon: 'https://mdn.alipayobjects.com/huamei_d3kmvr/afts/img/A*Yvf-TKO1tPAAAAAAAAAAAAAADmKmAQ/original',
},
{
name: '空间管理',
path: '/setting/space',
component: './GlobalSetting/Space',
icon: 'https://mdn.alipayobjects.com/huamei_d3kmvr/afts/img/A*8FUVTpn7RXIAAAAAAAAAAAAADmKmAQ/original',
},
{
name: 'Agent管理',
path: '/setting/agent',
component: './GlobalSetting/Agent',
},
// {
// name: 'Agent管理',
// path: '/setting/agent',
// component: './GlobalSetting/Agent',
// icon: 'https://mdn.alipayobjects.com/huamei_d3kmvr/afts/img/A*tFm6TIYpRC8AAAAAAAAAAAAADmKmAQ/original',
// },
],
},
];
Loading

0 comments on commit db3fa2a

Please sign in to comment.