mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-01 23:18:17 +00:00
perf: 去掉 applications
This commit is contained in:
parent
a3d3dcc44c
commit
ee4a9a967b
@ -1,120 +0,0 @@
|
||||
import i18n from '@/i18n/i18n'
|
||||
import empty from '@/layout/empty'
|
||||
|
||||
export default [
|
||||
{
|
||||
path: 'remote-apps',
|
||||
redirect: '',
|
||||
component: empty,
|
||||
meta: {
|
||||
title: i18n.t('route.RemoteApp'),
|
||||
licenseRequired: true,
|
||||
app: 'applications',
|
||||
resource: 'application'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
name: 'RemoteAppList',
|
||||
meta: { title: i18n.t('route.RemoteApp') },
|
||||
component: () => import('@/views/applications/RemoteApp/RemoteAppList')
|
||||
},
|
||||
{
|
||||
path: 'create',
|
||||
name: 'RemoteAppCreate',
|
||||
component: () => import('@/views/applications/RemoteApp/RemoteAppCreateUpdate'),
|
||||
hidden: true,
|
||||
meta: { title: i18n.t('route.RemoteApp') }
|
||||
},
|
||||
{
|
||||
path: ':id/update',
|
||||
name: 'RemoteAppUpdate',
|
||||
component: () => import('@/views/applications/RemoteApp/RemoteAppCreateUpdate'),
|
||||
hidden: true,
|
||||
meta: { title: i18n.t('route.RemoteAppUpdate') }
|
||||
},
|
||||
{
|
||||
path: ':id',
|
||||
name: 'RemoteAppDetail',
|
||||
component: () => import('@/views/applications/RemoteApp/RemoteAppDetail'),
|
||||
hidden: true,
|
||||
meta: { title: i18n.t('route.RemoteAppDetail') }
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'databases',
|
||||
component: empty,
|
||||
redirect: '',
|
||||
meta: {
|
||||
title: i18n.t('route.DatabaseApp'),
|
||||
resource: 'application'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
name: 'DatabaseAppList',
|
||||
component: () => import('@/views/applications/DatabaseApp/DatabaseAppList'),
|
||||
meta: { title: i18n.t('route.DatabaseApp') }
|
||||
},
|
||||
{
|
||||
path: 'create',
|
||||
name: 'DatabaseAppCreate',
|
||||
component: () => import('@/views/applications/DatabaseApp/DatabaseAppCreateUpdate'),
|
||||
hidden: true,
|
||||
meta: { title: i18n.t('route.DatabaseAppCreate') }
|
||||
},
|
||||
{
|
||||
path: ':id/update',
|
||||
name: 'DatabaseAppUpdate',
|
||||
component: () => import('@/views/applications/DatabaseApp/DatabaseAppCreateUpdate'),
|
||||
hidden: true,
|
||||
meta: { title: i18n.t('route.DatabaseAppUpdate') }
|
||||
},
|
||||
{
|
||||
path: ':id',
|
||||
name: 'DatabaseAppDetail',
|
||||
component: () => import('@/views/applications/DatabaseApp/DatabaseAppDetail'),
|
||||
hidden: true,
|
||||
meta: { title: i18n.t('route.DatabaseAppDetail') }
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'kubernetes',
|
||||
component: empty,
|
||||
meta: {
|
||||
title: i18n.t('route.KubernetesApp'),
|
||||
resource: 'application'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
name: 'KubernetesAppList',
|
||||
component: () => import('@/views/applications/KubernetesApp/KubernetesAppList'),
|
||||
meta: { title: i18n.t('route.KubernetesApp') }
|
||||
},
|
||||
{
|
||||
path: 'create',
|
||||
name: 'KubernetesAppCreate',
|
||||
component: () => import('@/views/applications/KubernetesApp/KubernetesAppCreateUpdate'),
|
||||
hidden: true,
|
||||
meta: { title: i18n.t('route.KubernetesAppCreate') }
|
||||
},
|
||||
{
|
||||
path: ':id/update',
|
||||
name: 'KubernetesAppUpdate',
|
||||
component: () => import('@/views/applications/KubernetesApp/KubernetesAppCreateUpdate'),
|
||||
hidden: true,
|
||||
meta: { title: i18n.t('route.KubernetesAppUpdate') }
|
||||
},
|
||||
{
|
||||
path: ':id',
|
||||
name: 'KubernetesAppDetail',
|
||||
component: () => import('@/views/applications/KubernetesApp/KubernetesAppDetail'),
|
||||
hidden: true,
|
||||
meta: { title: i18n.t('route.KubernetesAppDetail') }
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
@ -171,72 +171,6 @@ export default [
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'cmd-filters',
|
||||
component: empty,
|
||||
redirect: '',
|
||||
meta: {
|
||||
resource: 'commandfilter',
|
||||
permissions: ['assets.view_commandfilter']
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
name: 'CommandFilterList',
|
||||
component: () => import('@/views/assets/CommandFilter/CommandFilterList.vue'),
|
||||
meta: { title: i18n.t('route.CommandFilterList') }
|
||||
},
|
||||
{
|
||||
path: ':id/update',
|
||||
component: () => import('@/views/assets/CommandFilter/CommandFilterCreateUpdate.vue'), // Parent router-view
|
||||
name: 'CommandFilterUpdate',
|
||||
hidden: true,
|
||||
meta: { title: i18n.t('route.CommandFilterUpdate') }
|
||||
},
|
||||
{
|
||||
path: 'create',
|
||||
component: () => import('@/views/assets/CommandFilter/CommandFilterCreateUpdate.vue'), // Parent router-view
|
||||
name: 'CommandFilterCreate',
|
||||
hidden: true,
|
||||
meta: { title: i18n.t('route.CommandFilterCreate') }
|
||||
},
|
||||
{
|
||||
path: ':id',
|
||||
component: () => import('@/views/assets/CommandFilter/CommandFilterDetail'), // Parent router-view
|
||||
name: 'CommandFilterDetail',
|
||||
hidden: true,
|
||||
meta: { title: i18n.t('route.CommandFilterDetail') }
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'command-filter-rules',
|
||||
component: empty,
|
||||
hidden: true,
|
||||
meta: {
|
||||
resource: 'commandfilterrule'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'create',
|
||||
component: () => import('@/views/assets/CommandFilter/CommandFilterDetail/RulesCreateUpdate.vue'), // Parent router-view
|
||||
name: 'CommandFilterRulesCreate',
|
||||
meta: {
|
||||
title: i18n.t('route.CommandFilterRulesCreate'),
|
||||
activeMenu: '/console/assets/cmd-filters'
|
||||
}
|
||||
},
|
||||
{
|
||||
path: ':id/update',
|
||||
component: () => import('@/views/assets/CommandFilter/CommandFilterDetail/RulesCreateUpdate.vue'), // Parent router-view
|
||||
name: 'CommandFilterRulesUpdate',
|
||||
meta: {
|
||||
title: i18n.t('route.CommandFilterRulesUpdate'),
|
||||
activeMenu: '/console/assets/cmd-filters'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'platforms',
|
||||
component: empty,
|
||||
|
@ -5,7 +5,6 @@ import store from '@/store'
|
||||
|
||||
import UsersRoute from './users'
|
||||
import AssetsRoute from './assets'
|
||||
import ApplicationsRoute from './applications'
|
||||
import PermsRoute from './perms'
|
||||
import OpsRoutes from './ops'
|
||||
import AclRoutes from './acls'
|
||||
@ -57,16 +56,6 @@ export default {
|
||||
},
|
||||
children: AssetsRoute
|
||||
},
|
||||
{
|
||||
path: '/console/applications',
|
||||
component: empty,
|
||||
name: 'applications',
|
||||
meta: {
|
||||
title: i18n.t('route.Applications'),
|
||||
icon: 'th'
|
||||
},
|
||||
children: ApplicationsRoute
|
||||
},
|
||||
{
|
||||
path: '/console/accounts',
|
||||
component: empty,
|
||||
|
Loading…
Reference in New Issue
Block a user