|
- const AOM_PREFIX = '/apsc-bff/api/v1';
-
- export default [
- {
- path: '/',
- component: '../layouts/SecurityLayout',
- routes: [
- {
- path: '/',
- component: '../layouts/BasicLayout',
- routes: [
- {
- path: '/',
- redirect: '/resourceManagement/monitor',
- },
- // {
- // path: '/dashboard',
- // name: 'dashboard',
- // icon: 'dashboard',
- // component: './Dashboard',
- // authority: {
- // anyOf: [
- // [AOM_PREFIX + '/nodes/overview', 'get'],
- // [AOM_PREFIX + '/prometheus/query-range', 'get'],
- // ],
- // },
- // },
- {
- path: '/resourceManagement',
- name: 'resourceManagement',
- icon: 'ProfileOutlined',
- authority: {
- anyOf: [
- [AOM_PREFIX + '/alert/resource-rules', 'get'],
- [AOM_PREFIX + '/alert/resource-history', 'get'],
- ],
- },
- routes: [
- {
- path: '/resourceManagement/monitor',
- name: 'monitor',
- component: './ResourceManagement/Monitor',
- },
- {
- path: '/resourceManagement/alert',
- name: 'alert',
- component: './ResourceManagement/Alert/',
- authority: {
- anyOf: [
- [AOM_PREFIX + '/alert/resource-rules', 'get'],
- [AOM_PREFIX + '/alert/resource-history', 'get'],
- ],
- },
- },
- {
- path: '/resourceManagement/alert/create',
- name: 'createRule',
- component: './ResourceManagement/Alert/CreatRule',
- hideInMenu: true,
- authority: {
- anyOf: [
- [AOM_PREFIX + '/alert/resource-rules', 'post'],
- ],
- },
- },
- {
- path: '/resourceManagement/alert/edit/:id',
- name: 'editRule',
- component: './ResourceManagement/Alert/CreatRule',
- hideInMenu: true,
- authority: {
- anyOf: [
- [AOM_PREFIX + '/alert/resource-rules/{id}', 'put'],
- ],
- },
- },
- {
- component: './404',
- },
- ],
- },
- {
- path: '/resourceAllocation',
- name: 'resourceAllocation',
- icon: 'ReconciliationOutlined',
- authority: {
- anyOf: [
- [AOM_PREFIX + '/nodes', 'get'],
- [AOM_PREFIX + '/org-resources', 'get'],
- [AOM_PREFIX + '/user-group-resources', 'get'],
- [AOM_PREFIX + '/resource-quotas', 'get'],
- ],
- },
- routes: [
- {
- path: '/resourceAllocation/physicalNode',
- name: 'physicalNode',
- component: './ResourceAllocation/PhysicalNode',
- authority: {
- anyOf: [
- [AOM_PREFIX + '/nodes', 'get'],
- ],
- },
- },
- {
- path: '/resourceAllocation/organization',
- name: 'organization',
- component: './ResourceAllocation/Organization',
- authority: {
- anyOf: [
- [AOM_PREFIX + '/org-resources', 'get'],
- ],
- },
- },
- {
- path: '/resourceAllocation/organization/detail/:id',
- name: 'organizationDetail',
- component: './ResourceAllocation/Organization/Detail',
- hideInMenu: true,
- authority: {
- anyOf: [
- [AOM_PREFIX + '/org-resources/{id}', 'get'],
- ],
- },
- },
- {
- path: '/resourceAllocation/organization/edit/:id',
- name: 'editOrganization',
- component: './ResourceAllocation/Organization/Detail',
- hideInMenu: true,
- authority: {
- anyOf: [
- [AOM_PREFIX + '/org-resources/{id}', 'get'],
- [AOM_PREFIX + '/org-resources/{id}', 'patch'],
- ],
- },
- },
- {
- path: '/resourceAllocation/userGroup',
- name: 'userGroup',
- component: './ResourceAllocation/UserGroup',
- authority: {
- anyOf: [
- [AOM_PREFIX + '/user-group-resources', 'get'],
- ],
- },
- },
- {
- path: '/resourceAllocation/userGroup/detail/:id',
- name: 'userGroupDetail',
- component: './ResourceAllocation/UserGroup/Detail',
- hideInMenu: true,
- authority: {
- anyOf: [
- [AOM_PREFIX + '/user-group-resources/{id}', 'get'],
- ],
- },
- },
- {
- path: '/resourceAllocation/userGroup/edit/:id',
- name: 'editUserGroup',
- component: './ResourceAllocation/UserGroup/Detail',
- hideInMenu: true,
- authority: {
- anyOf: [
- [AOM_PREFIX + '/user-group-resources/{id}', 'get'],
- [AOM_PREFIX + '/user-group-resources/{id}', 'patch'],
- ],
- },
- },
- {
- path: '/resourceAllocation/quota',
- name: 'quota',
- component: './ResourceAllocation/Quota',
- authority: {
- anyOf: [
- [AOM_PREFIX + '/resource-quotas', 'get'],
- ],
- },
- },
- {
- path: '/resourceAllocation/quota/add',
- name: 'addQuota',
- component: './ResourceAllocation/Quota/Add',
- hideInMenu: true,
- authority: {
- anyOf: [
- [AOM_PREFIX + '/resource-quotas', 'post'],
- ],
- },
- },
- {
- component: './404',
- },
- ],
- },
- {
- path: '/jobManagement',
- name: 'jobManagement',
- icon: 'FileSearchOutlined',
- authority: {
- anyOf: [
- [AOM_PREFIX + '/job-management/{moduleName}/jobs', 'get'],
- [AOM_PREFIX + '/job-management/{moduleName}/metaInfo', 'get'],
- ],
- },
- routes: [
- {
- path: '/jobManagement/jobManagementList',
- name: 'jobManagementList',
- component: './JobManagementList',
- authority: {
- anyOf: [
- [AOM_PREFIX + '/job-management/{moduleName}/jobs', 'get'],
- [AOM_PREFIX + '/job-management/{moduleName}/metaInfo', 'get'],
- ],
- },
- },
- {
- component: './404',
- },
- ],
- },
- {
- path: '/systemManagement',
- name: 'systemManagement',
- icon: 'AppstoreOutlined',
- authority: {
- anyOf: [
- [AOM_PREFIX + '/system-version', 'get'],
- [AOM_PREFIX + '/alert/setting/sender', 'get'],
- [AOM_PREFIX + '/alert/setting/sender', 'post'],
- ],
- },
- routes: [
- {
- path: '/systemManagement/log',
- name: 'log',
- component: './SystemManagement/SystemLog',
- authority: {
- anyOf: [
- [AOM_PREFIX + '/log/label', 'get'],
- [AOM_PREFIX + '/log/query-range', 'get'],
- ],
- },
- },
- {
- path: '/systemManagement/version',
- name: 'version',
- component: './SystemManagement/Version',
- authority: {
- anyOf: [
- [AOM_PREFIX + '/system-version', 'get'],
- ],
- },
- },
- {
- path: '/systemManagement/setting',
- name: 'setting',
- component: './SystemManagement/Setting',
- authority: {
- anyOf: [
- [AOM_PREFIX + '/alert/setting/sender', 'get'],
- [AOM_PREFIX + '/alert/setting/sender', 'post'],
- ],
- },
- },
- {
- component: './404',
- },
- ],
- },
- {
- path: '/recycleBin',
- name: 'recycleBin',
- icon: 'RestOutlined',
- component: './RecycleBin',
- authority: {
- anyOf: [
- [AOM_PREFIX + '/recycle-bin', 'get'],
- [AOM_PREFIX + '/recycle-bin', 'post'],
- ],
- },
- },
- {
- component: './404',
- },
- ],
- },
- {
- component: './404',
- },
- ],
- },
- {
- component: './404',
- },
- ];
|