mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-31 22:48:27 +00:00
Merge branch 'v2.0' into jym_dev
This commit is contained in:
@@ -2,4 +2,5 @@ build/*.js
|
|||||||
src/assets
|
src/assets
|
||||||
public
|
public
|
||||||
dist
|
dist
|
||||||
|
lina
|
||||||
node_modules
|
node_modules
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="footer" :style="style">
|
<div class="footer" :style="style">
|
||||||
<div class="pull-right">
|
<div class="pull-right">
|
||||||
Version <strong>2.0.0</strong> <span v-if="!publicSettings.XPACK_LICENSE_IS_VALID"> GPLv2. </span>
|
Version <strong>2.0.1</strong> <span v-if="!publicSettings.XPACK_LICENSE_IS_VALID"> GPLv2. </span>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!publicSettings.XPACK_LICENSE_IS_VALID" style="padding-left:20px;">
|
<div v-if="!publicSettings.XPACK_LICENSE_IS_VALID" style="padding-left:20px;">
|
||||||
<strong>Copyright</strong> FIT2CLOUD 飞致云 © 2014-2020
|
<strong>Copyright</strong> FIT2CLOUD 飞致云 © 2014-2020
|
||||||
|
@@ -1,32 +1,41 @@
|
|||||||
import i18n from '@/i18n/i18n'
|
import i18n from '@/i18n/i18n'
|
||||||
|
import empty from '@/layout/empty'
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
{
|
{
|
||||||
path: 'remote-apps',
|
path: 'remote-apps',
|
||||||
name: 'RemoteAppList',
|
redirect: '',
|
||||||
component: () => import('@/views/applications/RemoteApp/RemoteAppList'),
|
component: empty,
|
||||||
meta: { title: i18n.t('route.RemoteApp'), licenseRequired: true }
|
meta: { title: i18n.t('route.RemoteApp'), licenseRequired: true },
|
||||||
},
|
children: [
|
||||||
{
|
{
|
||||||
path: 'remote-apps/create',
|
path: '',
|
||||||
name: 'RemoteAppCreate',
|
name: 'RemoteAppList',
|
||||||
component: () => import('@/views/applications/RemoteApp/RemoteAppCreateUpdate'),
|
meta: { title: i18n.t('route.RemoteApp') },
|
||||||
meta: { title: i18n.t('route.RemoteApp'), activeMenu: '/applications/remote-apps', action: 'create', licenseRequired: true },
|
component: () => import('@/views/applications/RemoteApp/RemoteAppList')
|
||||||
hidden: true
|
},
|
||||||
},
|
{
|
||||||
{
|
path: 'create',
|
||||||
path: 'remote-apps/:id/update',
|
name: 'RemoteAppCreate',
|
||||||
name: 'RemoteAppUpdate',
|
component: () => import('@/views/applications/RemoteApp/RemoteAppCreateUpdate'),
|
||||||
component: () => import('@/views/applications/RemoteApp/RemoteAppCreateUpdate'),
|
meta: { title: i18n.t('route.RemoteApp'), activeMenu: '/applications/remote-apps', action: 'create' },
|
||||||
meta: { title: i18n.t('route.RemoteAppUpdate'), activeMenu: '/applications/remote-apps', action: 'update', licenseRequired: true },
|
hidden: true
|
||||||
hidden: true
|
},
|
||||||
},
|
{
|
||||||
{
|
path: ':id/update',
|
||||||
path: 'remote-apps/:id',
|
name: 'RemoteAppUpdate',
|
||||||
name: 'RemoteAppDetail',
|
component: () => import('@/views/applications/RemoteApp/RemoteAppCreateUpdate'),
|
||||||
component: () => import('@/views/applications/RemoteApp/RemoteAppDetail/index'),
|
meta: { title: i18n.t('route.RemoteAppUpdate'), activeMenu: '/applications/remote-apps', action: 'update' },
|
||||||
meta: { title: i18n.t('route.RemoteAppDetail'), activeMenu: '/applications/remote-apps', licenseRequired: true },
|
hidden: true
|
||||||
hidden: true
|
},
|
||||||
|
{
|
||||||
|
path: ':id',
|
||||||
|
name: 'RemoteAppDetail',
|
||||||
|
component: () => import('@/views/applications/RemoteApp/RemoteAppDetail/index'),
|
||||||
|
meta: { title: i18n.t('route.RemoteAppDetail'), activeMenu: '/applications/remote-apps' },
|
||||||
|
hidden: true
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'database-apps',
|
path: 'database-apps',
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
import i18n from '@/i18n/i18n'
|
import i18n from '@/i18n/i18n'
|
||||||
|
import empty from '@/layout/empty'
|
||||||
|
|
||||||
const assetPermissionRoutes = [
|
const assetPermissionRoutes = [
|
||||||
{
|
{
|
||||||
@@ -33,31 +34,40 @@ const assetPermissionRoutes = [
|
|||||||
const remoteAppPermissionRoutes = [
|
const remoteAppPermissionRoutes = [
|
||||||
{
|
{
|
||||||
path: 'remote-app-permissions',
|
path: 'remote-app-permissions',
|
||||||
name: 'RemoteAppPermissionList',
|
component: empty,
|
||||||
component: () => import('@/views/perms/RemoteAppPermission/RemoteAppPermissionList'),
|
meta: { title: i18n.t('route.RemoteAppPermission'), licenseRequired: true },
|
||||||
meta: { title: i18n.t('route.RemoteAppPermission'), licenseRequired: true }
|
redirect: '',
|
||||||
},
|
children: [
|
||||||
{
|
{
|
||||||
path: 'remote-app-permissions/create',
|
path: '',
|
||||||
component: () => import('@/views/perms/RemoteAppPermission/RemoteAppPermissionCreateUpdate'),
|
name: 'RemoteAppPermissionList',
|
||||||
name: 'RemoteAppPermissionCreate',
|
component: () => import('@/views/perms/RemoteAppPermission/RemoteAppPermissionList'),
|
||||||
hidden: true,
|
meta: { title: i18n.t('route.RemoteAppPermission') }
|
||||||
meta: { title: i18n.t('route.RemoteAppPermissionCreate'), activeMenu: '/perms/remote-app-permissions', action: 'create', licenseRequired: true }
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'remote-app-permissions/update',
|
path: 'create',
|
||||||
component: () => import('@/views/perms/RemoteAppPermission/RemoteAppPermissionCreateUpdate'),
|
component: () => import('@/views/perms/RemoteAppPermission/RemoteAppPermissionCreateUpdate'),
|
||||||
name: 'RemoteAppPermissionUpdate',
|
name: 'RemoteAppPermissionCreate',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
meta: { title: i18n.t('route.RemoteAppPermissionUpdate'), activeMenu: '/perms/remote-app-permissions', action: 'update', licenseRequired: true }
|
meta: { title: i18n.t('route.RemoteAppPermissionCreate'), activeMenu: '/perms/remote-app-permissions', action: 'create' }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'remote-app-permissions/:id',
|
path: 'update',
|
||||||
component: () => import('@/views/perms/RemoteAppPermission/RemoteAppPermissionDetail/index'),
|
component: () => import('@/views/perms/RemoteAppPermission/RemoteAppPermissionCreateUpdate'),
|
||||||
name: 'RemoteAppPermissionDetail',
|
name: 'RemoteAppPermissionUpdate',
|
||||||
hidden: true,
|
hidden: true,
|
||||||
meta: { title: i18n.t('route.RemoteAppPermissionDetail'), activeMenu: '/perms/remote-app-permissions', licenseRequired: true }
|
meta: { title: i18n.t('route.RemoteAppPermissionUpdate'), activeMenu: '/perms/remote-app-permissions', action: 'update' }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: ':id',
|
||||||
|
component: () => import('@/views/perms/RemoteAppPermission/RemoteAppPermissionDetail/index'),
|
||||||
|
name: 'RemoteAppPermissionDetail',
|
||||||
|
hidden: true,
|
||||||
|
meta: { title: i18n.t('route.RemoteAppPermissionDetail'), activeMenu: '/perms/remote-app-permissions' }
|
||||||
|
}]
|
||||||
}
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
const databasePermissionRoutes = [
|
const databasePermissionRoutes = [
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
import i18n from '@/i18n/i18n'
|
import i18n from '@/i18n/i18n'
|
||||||
import rolec from '@/utils/role'
|
import rolec from '@/utils/role'
|
||||||
|
import empty from '@/layout/empty'
|
||||||
export default [
|
export default [
|
||||||
{
|
{
|
||||||
path: 'session',
|
path: 'session',
|
||||||
@@ -34,23 +35,31 @@ export default [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'terminal',
|
path: 'terminal',
|
||||||
name: 'TerminalList',
|
component: empty,
|
||||||
component: () => import('@/views/sessions/TerminalList'),
|
redirect: '',
|
||||||
meta: { title: i18n.t('route.Terminal'), permissions: [rolec.PERM_SUPER] }
|
meta: { title: i18n.t('route.Terminal'), permissions: [rolec.PERM_SUPER] },
|
||||||
},
|
children: [
|
||||||
{
|
{
|
||||||
path: 'terminals/:id',
|
path: '',
|
||||||
name: 'TerminalDetail',
|
name: 'TerminalList',
|
||||||
component: () => import('@/views/sessions/TerminalDetail'),
|
component: () => import('@/views/sessions/TerminalList'),
|
||||||
meta: { title: i18n.t('route.Terminal'), activeMenu: '/terminal/terminal', permissions: [rolec.PERM_SUPER] },
|
meta: { title: i18n.t('route.Terminal') }
|
||||||
hidden: true
|
},
|
||||||
},
|
{
|
||||||
{
|
path: ':id',
|
||||||
path: 'terminals/:id/update',
|
name: 'TerminalDetail',
|
||||||
name: 'TerminalUpdate',
|
component: () => import('@/views/sessions/TerminalDetail'),
|
||||||
component: () => import('@/views/sessions/TerminalUpdate'),
|
meta: { title: i18n.t('route.Terminal'), activeMenu: '/terminal/terminal' },
|
||||||
meta: { title: i18n.t('route.Terminal'), activeMenu: '/terminal/terminal', permissions: [rolec.PERM_SUPER] },
|
hidden: true
|
||||||
hidden: true
|
},
|
||||||
|
{
|
||||||
|
path: ':id/update',
|
||||||
|
name: 'TerminalUpdate',
|
||||||
|
component: () => import('@/views/sessions/TerminalUpdate'),
|
||||||
|
meta: { title: i18n.t('route.Terminal'), activeMenu: '/terminal/terminal' },
|
||||||
|
hidden: true
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'storages',
|
path: 'storages',
|
||||||
|
Reference in New Issue
Block a user