236 lines
8.4 KiB
JavaScript
236 lines
8.4 KiB
JavaScript
import { RouterView } from 'vue-router';
|
|
|
|
export default {
|
|
path: '/account',
|
|
name: 'Account',
|
|
meta: {
|
|
title: 'users',
|
|
icon: 'face',
|
|
moduleName: 'Account',
|
|
},
|
|
component: RouterView,
|
|
redirect: { name: 'AccountMain' },
|
|
menus: {
|
|
main: [
|
|
'AccountList',
|
|
'AccountRoles',
|
|
'AccountAlias',
|
|
'AccountAccounts',
|
|
'AccountLdap',
|
|
'AccountSamba',
|
|
'AccountConnections',
|
|
],
|
|
card: [
|
|
'AccountBasicData',
|
|
'AccountInheritedRoles',
|
|
'AccountMailForwarding',
|
|
'AccountMailAlias',
|
|
'AccountPrivileges',
|
|
'AccountLog',
|
|
],
|
|
},
|
|
children: [
|
|
{
|
|
path: '',
|
|
name: 'AccountMain',
|
|
component: () => import('src/pages/Account/AccountMain.vue'),
|
|
redirect: { name: 'AccountList' },
|
|
children: [
|
|
{
|
|
path: 'list',
|
|
name: 'AccountList',
|
|
meta: {
|
|
title: 'list',
|
|
icon: 'view_list',
|
|
},
|
|
component: () => import('src/pages/Account/AccountList.vue'),
|
|
},
|
|
{
|
|
path: 'role',
|
|
name: 'AccountRoles',
|
|
meta: {
|
|
title: 'roles',
|
|
icon: 'group',
|
|
},
|
|
component: () => import('src/pages/Account/Role/AccountRoles.vue'),
|
|
// children: [
|
|
// {
|
|
// name: 'RoleCard',
|
|
// path: ':id',
|
|
// component: () =>
|
|
// import('src/pages/Account/Role/Card/RoleCard.vue'),
|
|
// redirect: { name: 'RoleSummary' },
|
|
// children: [
|
|
// {
|
|
// name: 'RoleSummary',
|
|
// path: 'summary',
|
|
// meta: {
|
|
// title: 'summary',
|
|
// icon: 'launch',
|
|
// },
|
|
// component: () =>
|
|
// import(
|
|
// 'src/pages/Account/Role/Card/RoleSummary.vue'
|
|
// ),
|
|
// },
|
|
// {
|
|
// name: 'RoleBasicData',
|
|
// path: 'basic-data',
|
|
// meta: {
|
|
// title: 'basicData',
|
|
// icon: 'vn:settings',
|
|
// },
|
|
// component: () =>
|
|
// import(
|
|
// 'src/pages/Account/Role/Card/RoleBasicData.vue'
|
|
// ),
|
|
// },
|
|
// ],
|
|
// },
|
|
// ],
|
|
},
|
|
{
|
|
path: 'alias',
|
|
name: 'AccountAlias',
|
|
meta: {
|
|
title: 'alias',
|
|
icon: 'email',
|
|
},
|
|
component: () => import('src/pages/Account/AccountAlias.vue'),
|
|
},
|
|
{
|
|
path: 'accounts',
|
|
name: 'AccountAccounts',
|
|
meta: {
|
|
title: 'accounts',
|
|
icon: 'accessibility',
|
|
},
|
|
component: () => import('src/pages/Account/AccountAccounts.vue'),
|
|
},
|
|
{
|
|
path: 'ldap',
|
|
name: 'AccountLdap',
|
|
meta: {
|
|
title: 'ldap',
|
|
icon: 'account_tree',
|
|
},
|
|
component: () => import('src/pages/Account/AccountLdap.vue'),
|
|
},
|
|
{
|
|
path: 'samba',
|
|
name: 'AccountSamba',
|
|
meta: {
|
|
title: 'samba',
|
|
icon: 'preview',
|
|
},
|
|
component: () => import('src/pages/Account/AccountSamba.vue'),
|
|
},
|
|
{
|
|
path: 'acls',
|
|
name: 'AccountAcls',
|
|
meta: {
|
|
title: 'acls',
|
|
icon: 'check',
|
|
},
|
|
component: () => import('src/pages/Account/AccountAcls.vue'),
|
|
},
|
|
{
|
|
path: 'connections',
|
|
name: 'AccountConnections',
|
|
meta: {
|
|
title: 'connections',
|
|
icon: 'check',
|
|
},
|
|
component: () => import('src/pages/Account/AccountConnections.vue'),
|
|
},
|
|
|
|
{
|
|
path: 'create',
|
|
name: 'AccountCreate',
|
|
meta: {
|
|
title: 'accountCreate',
|
|
icon: 'add',
|
|
},
|
|
component: () => import('src/pages/Account/AccountCreate.vue'),
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: 'AccountCard',
|
|
path: ':id',
|
|
component: () => import('src/pages/Account/Card/AccountCard.vue'),
|
|
redirect: { name: 'AccountSummary' },
|
|
children: [
|
|
{
|
|
name: 'AccountSummary',
|
|
path: 'summary',
|
|
meta: {
|
|
title: 'summary',
|
|
icon: 'launch',
|
|
},
|
|
component: () => import('src/pages/Account/Card/AccountSummary.vue'),
|
|
},
|
|
{
|
|
name: 'AccountBasicData',
|
|
path: 'basic-data',
|
|
meta: {
|
|
title: 'basicData',
|
|
icon: 'vn:settings',
|
|
},
|
|
component: () =>
|
|
import('src/pages/Account/Card/AccountBasicData.vue'),
|
|
},
|
|
{
|
|
name: 'AccountInheritedRoles',
|
|
path: 'inherited-oles',
|
|
meta: {
|
|
title: 'inheritedRoles',
|
|
icon: 'group',
|
|
},
|
|
component: () =>
|
|
import('src/pages/Account/Card/AccountInheritedRoles.vue'),
|
|
},
|
|
{
|
|
name: 'AccountMailForwarding',
|
|
path: 'mail-forwarding',
|
|
meta: {
|
|
title: 'mailForwarding',
|
|
icon: 'forward',
|
|
},
|
|
component: () =>
|
|
import('src/pages/Account/Card/AccountMailForwarding.vue'),
|
|
},
|
|
{
|
|
name: 'AccountMailAlias',
|
|
path: 'mail-alias',
|
|
meta: {
|
|
title: 'mailAlias',
|
|
icon: 'email',
|
|
},
|
|
component: () =>
|
|
import('src/pages/Account/Card/AccountMailAlias.vue'),
|
|
},
|
|
{
|
|
name: 'AccountPrivileges',
|
|
path: 'privileges',
|
|
meta: {
|
|
title: 'privileges',
|
|
icon: 'badge',
|
|
},
|
|
component: () =>
|
|
import('src/pages/Account/Card/AccountPrivileges.vue'),
|
|
},
|
|
{
|
|
name: 'AccountLog',
|
|
path: 'log',
|
|
meta: {
|
|
title: 'log',
|
|
icon: 'history',
|
|
},
|
|
component: () => import('src/pages/Account/Card/AccountLog.vue'),
|
|
},
|
|
],
|
|
},
|
|
],
|
|
};
|