|
@@ -1,6 +1,5 @@
|
|
|
// ********************************************************************************************************************
|
|
// ********************************************************************************************************************
|
|
|
const Background = () => import('views/admin/Background')
|
|
const Background = () => import('views/admin/Background')
|
|
|
-const Dashboard = () => import('views/devops/Dashboard')
|
|
|
|
|
|
|
|
|
|
// user
|
|
// user
|
|
|
const UserProfile = () => import('views/devops/user/UserProfile')
|
|
const UserProfile = () => import('views/devops/user/UserProfile')
|
|
@@ -25,188 +24,215 @@ const BuildDeploy = () => import('views/devops/app/BuildDeploy')
|
|
|
const AppStat = () => import('views/devops/app/AppStat')
|
|
const AppStat = () => import('views/devops/app/AppStat')
|
|
|
// sys
|
|
// sys
|
|
|
const SiteConfig = () => import('views/devops/sys/SiteConfig')
|
|
const SiteConfig = () => import('views/devops/sys/SiteConfig')
|
|
|
-const AccessLog = () => import('views/devops/sys/AccessLog')
|
|
|
|
|
-const RuntimeLog = () => import('views/devops/sys/RuntimeLog')
|
|
|
|
|
-const RealtimeLog = () => import('views/devops/sys/RealtimeLog')
|
|
|
|
|
const Webhook = () => import('views/devops/sys/Webhook')
|
|
const Webhook = () => import('views/devops/sys/Webhook')
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
path: '/bg',
|
|
path: '/bg',
|
|
|
name: 'Background',
|
|
name: 'Background',
|
|
|
component: Background,
|
|
component: Background,
|
|
|
- meta: { needAuth: true, roles: ['admin'] },
|
|
|
|
|
|
|
+ meta: { needAuth: true, roles: ['devops_admin', 'devops_java', 'devops_dotnet', 'devops_npm'] },
|
|
|
children: [
|
|
children: [
|
|
|
{
|
|
{
|
|
|
path: '/bg/user',
|
|
path: '/bg/user',
|
|
|
- name: 'UserProfile',
|
|
|
|
|
|
|
+ name: 'UserProfileIndex',
|
|
|
|
|
+ title: '我的',
|
|
|
|
|
+ icon: 'el-icon-user',
|
|
|
component: { render: (e) => e('router-view') },
|
|
component: { render: (e) => e('router-view') },
|
|
|
- meta: { needAuth: true, roles: ['user'] },
|
|
|
|
|
|
|
+ meta: { needAuth: true, roles: ['devops_admin', 'devops_java', 'devops_dotnet', 'devops_npm'] },
|
|
|
children: [
|
|
children: [
|
|
|
{
|
|
{
|
|
|
path: '/bg/user/profile',
|
|
path: '/bg/user/profile',
|
|
|
name: 'UserProfile',
|
|
name: 'UserProfile',
|
|
|
|
|
+ title: '我的资料',
|
|
|
|
|
+ icon: 'el-icon-user',
|
|
|
component: UserProfile,
|
|
component: UserProfile,
|
|
|
- meta: { needAuth: true, roles: ['user'] }
|
|
|
|
|
|
|
+ meta: { needAuth: true, roles: ['devops_admin', 'devops_java', 'devops_dotnet', 'devops_npm'] }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/bg/user/record',
|
|
path: '/bg/user/record',
|
|
|
name: 'UserLogin',
|
|
name: 'UserLogin',
|
|
|
|
|
+ title: '登入记录',
|
|
|
|
|
+ icon: 'el-icon-user',
|
|
|
component: UserLogin,
|
|
component: UserLogin,
|
|
|
- meta: { needAuth: true, roles: ['user'] }
|
|
|
|
|
|
|
+ meta: { needAuth: true, roles: ['devops_admin', 'devops_java', 'devops_dotnet', 'devops_npm'] }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/bg/user/message',
|
|
path: '/bg/user/message',
|
|
|
name: 'UserMessage',
|
|
name: 'UserMessage',
|
|
|
|
|
+ title: '我的消息',
|
|
|
|
|
+ icon: 'el-icon-user',
|
|
|
component: UserMessage,
|
|
component: UserMessage,
|
|
|
- meta: { needAuth: true, roles: ['user'] }
|
|
|
|
|
|
|
+ meta: { needAuth: true, roles: ['devops_admin', 'devops_java', 'devops_dotnet', 'devops_npm'] }
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/bg/machine',
|
|
path: '/bg/machine',
|
|
|
- name: 'MachineHost',
|
|
|
|
|
|
|
+ name: 'MachineHostIndex',
|
|
|
|
|
+ title: '机器',
|
|
|
|
|
+ icon: 'el-icon-s-data',
|
|
|
component: { render: (e) => e('router-view') },
|
|
component: { render: (e) => e('router-view') },
|
|
|
- meta: { needAuth: true, roles: ['admin'] },
|
|
|
|
|
|
|
+ meta: { needAuth: true, roles: ['devops_admin'] },
|
|
|
children: [
|
|
children: [
|
|
|
{
|
|
{
|
|
|
path: '/bg/machine/host',
|
|
path: '/bg/machine/host',
|
|
|
name: 'MachineHost',
|
|
name: 'MachineHost',
|
|
|
|
|
+ title: '机器节点',
|
|
|
|
|
+ icon: 'el-icon-s-data',
|
|
|
component: MachineHost,
|
|
component: MachineHost,
|
|
|
- meta: { needAuth: true, roles: ['admin'] }
|
|
|
|
|
|
|
+ meta: { needAuth: true, roles: ['devops_admin'] }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/bg/machine/aliyun_key',
|
|
path: '/bg/machine/aliyun_key',
|
|
|
name: 'AliyunKey',
|
|
name: 'AliyunKey',
|
|
|
|
|
+ title: '阿里云帐号',
|
|
|
|
|
+ icon: 'el-icon-s-data',
|
|
|
component: AliyunKey,
|
|
component: AliyunKey,
|
|
|
- meta: { needAuth: true, roles: ['admin'] }
|
|
|
|
|
|
|
+ meta: { needAuth: true, roles: ['devops_admin'] }
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/bg/build',
|
|
path: '/bg/build',
|
|
|
- name: 'BuildDir',
|
|
|
|
|
|
|
+ name: 'BuildDirIndex',
|
|
|
|
|
+ title: '构建配置',
|
|
|
|
|
+ icon: 'el-icon-film',
|
|
|
component: { render: (e) => e('router-view') },
|
|
component: { render: (e) => e('router-view') },
|
|
|
- meta: { needAuth: true, roles: ['admin'] },
|
|
|
|
|
|
|
+ meta: { needAuth: true, roles: ['devops_admin'] },
|
|
|
children: [
|
|
children: [
|
|
|
{
|
|
{
|
|
|
path: '/bg/build/dir',
|
|
path: '/bg/build/dir',
|
|
|
name: 'BuildDir',
|
|
name: 'BuildDir',
|
|
|
|
|
+ title: '构建目录',
|
|
|
|
|
+ icon: 'el-icon-film',
|
|
|
component: BuildDir,
|
|
component: BuildDir,
|
|
|
- meta: { needAuth: true, roles: ['admin'] }
|
|
|
|
|
|
|
+ meta: { needAuth: true, roles: ['devops_admin'] }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/bg/build/repo_auth',
|
|
path: '/bg/build/repo_auth',
|
|
|
name: 'RepoAuth',
|
|
name: 'RepoAuth',
|
|
|
|
|
+ title: '仓库认证',
|
|
|
|
|
+ icon: 'el-icon-film',
|
|
|
component: RepoAuth,
|
|
component: RepoAuth,
|
|
|
- meta: { needAuth: true, roles: ['admin'] }
|
|
|
|
|
|
|
+ meta: { needAuth: true, roles: ['devops_admin'] }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/bg/build/compiler',
|
|
path: '/bg/build/compiler',
|
|
|
name: 'Compiler',
|
|
name: 'Compiler',
|
|
|
|
|
+ title: '编译器',
|
|
|
|
|
+ icon: 'el-icon-film',
|
|
|
component: Compiler,
|
|
component: Compiler,
|
|
|
- meta: { needAuth: true, roles: ['admin'] }
|
|
|
|
|
|
|
+ meta: { needAuth: true, roles: ['devops_admin'] }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/bg/build/docker_registry',
|
|
path: '/bg/build/docker_registry',
|
|
|
name: 'DockerRegistry',
|
|
name: 'DockerRegistry',
|
|
|
|
|
+ title: 'docker 仓库',
|
|
|
|
|
+ icon: 'el-icon-files',
|
|
|
component: DockerRegistry,
|
|
component: DockerRegistry,
|
|
|
- meta: { needAuth: true, roles: ['admin'] }
|
|
|
|
|
|
|
+ meta: { needAuth: true, roles: ['devops_admin'] }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/bg/build/packer',
|
|
path: '/bg/build/packer',
|
|
|
name: 'Packer',
|
|
name: 'Packer',
|
|
|
|
|
+ title: '应用打包',
|
|
|
|
|
+ icon: 'el-icon-files',
|
|
|
component: Packer,
|
|
component: Packer,
|
|
|
- meta: { needAuth: true, roles: ['admin'] }
|
|
|
|
|
|
|
+ meta: { needAuth: true, roles: ['devops_admin'] }
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/bg/app',
|
|
path: '/bg/app',
|
|
|
- name: 'AppConfig',
|
|
|
|
|
|
|
+ name: 'AppConfigIndex',
|
|
|
|
|
+ title: '应用',
|
|
|
|
|
+ icon: 'el-icon-files',
|
|
|
component: { render: (e) => e('router-view') },
|
|
component: { render: (e) => e('router-view') },
|
|
|
- meta: { needAuth: true, roles: ['admin'] },
|
|
|
|
|
|
|
+ meta: { needAuth: true, roles: ['devops_admin', 'devops_java', 'devops_dotnet', 'devops_npm'] },
|
|
|
children: [
|
|
children: [
|
|
|
{
|
|
{
|
|
|
path: '/bg/app/config',
|
|
path: '/bg/app/config',
|
|
|
name: 'AppConfig',
|
|
name: 'AppConfig',
|
|
|
|
|
+ title: '应用配置',
|
|
|
|
|
+ icon: 'el-icon-files',
|
|
|
component: AppConfig,
|
|
component: AppConfig,
|
|
|
- meta: { needAuth: true, roles: ['admin'] }
|
|
|
|
|
|
|
+ meta: { needAuth: true, roles: ['devops_admin', 'devops_java', 'devops_dotnet', 'devops_npm'] }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/bg/app/bd',
|
|
path: '/bg/app/bd',
|
|
|
name: 'BuildDeploy',
|
|
name: 'BuildDeploy',
|
|
|
|
|
+ title: '构建部署',
|
|
|
|
|
+ icon: 'el-icon-files',
|
|
|
component: BuildDeploy,
|
|
component: BuildDeploy,
|
|
|
- meta: { needAuth: true, roles: ['admin'] }
|
|
|
|
|
|
|
+ meta: { needAuth: true, roles: ['devops_admin', 'devops_java', 'devops_dotnet', 'devops_npm'] }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/bg/app/stat',
|
|
path: '/bg/app/stat',
|
|
|
name: 'AppStat',
|
|
name: 'AppStat',
|
|
|
|
|
+ title: '运行状态',
|
|
|
|
|
+ icon: 'el-icon-files',
|
|
|
component: AppStat,
|
|
component: AppStat,
|
|
|
- meta: { needAuth: true, roles: ['admin'] }
|
|
|
|
|
|
|
+ meta: { needAuth: true, roles: ['devops_admin', 'devops_java', 'devops_dotnet', 'devops_npm'] }
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/bg/sys',
|
|
path: '/bg/sys',
|
|
|
- name: 'SiteConfig',
|
|
|
|
|
|
|
+ name: 'SiteConfigIndex',
|
|
|
|
|
+ title: '系统',
|
|
|
|
|
+ icon: 'el-icon-user-solid',
|
|
|
component: { render: (e) => e('router-view') },
|
|
component: { render: (e) => e('router-view') },
|
|
|
- meta: { needAuth: true, roles: ['admin'] },
|
|
|
|
|
|
|
+ meta: { needAuth: true, roles: ['devops_admin'] },
|
|
|
children: [
|
|
children: [
|
|
|
{
|
|
{
|
|
|
path: '/bg/sys/site',
|
|
path: '/bg/sys/site',
|
|
|
name: 'SiteConfig',
|
|
name: 'SiteConfig',
|
|
|
|
|
+ title: '站点配置',
|
|
|
|
|
+ icon: 'el-icon-user-solid',
|
|
|
component: SiteConfig,
|
|
component: SiteConfig,
|
|
|
- meta: { needAuth: true, roles: ['admin'] }
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- path: '/bg/sys/access_log',
|
|
|
|
|
- name: 'AccessLog',
|
|
|
|
|
- component: AccessLog,
|
|
|
|
|
- meta: { needAuth: true, roles: ['admin'] }
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- path: '/bg/sys/runtime_log',
|
|
|
|
|
- name: 'RuntimeLog',
|
|
|
|
|
- component: RuntimeLog,
|
|
|
|
|
- meta: { needAuth: true, roles: ['admin'] }
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- path: '/bg/sys/realtime_log',
|
|
|
|
|
- name: 'RealtimeLog',
|
|
|
|
|
- component: RealtimeLog,
|
|
|
|
|
- meta: { needAuth: true, roles: ['admin'] }
|
|
|
|
|
|
|
+ meta: { needAuth: true, roles: ['devops_admin'] }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/bg/sys/webhook',
|
|
path: '/bg/sys/webhook',
|
|
|
name: 'Webhook',
|
|
name: 'Webhook',
|
|
|
|
|
+ title: 'webhook通知',
|
|
|
|
|
+ icon: 'el-icon-user-solid',
|
|
|
component: Webhook,
|
|
component: Webhook,
|
|
|
- meta: { needAuth: true, roles: ['admin'] }
|
|
|
|
|
|
|
+ meta: { needAuth: true, roles: ['devops_admin'] }
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/bg/rbac',
|
|
path: '/bg/rbac',
|
|
|
- name: 'RBAC',
|
|
|
|
|
|
|
+ name: 'RBACIndex',
|
|
|
|
|
+ title: 'RBAC',
|
|
|
|
|
+ icon: 'el-icon-loading',
|
|
|
component: { render: (e) => e('router-view') },
|
|
component: { render: (e) => e('router-view') },
|
|
|
- meta: { needAuth: true, roles: ['admin'] },
|
|
|
|
|
|
|
+ meta: { needAuth: true, roles: ['devops_admin'] },
|
|
|
children: [
|
|
children: [
|
|
|
{
|
|
{
|
|
|
path: '/bg/rbac/menu',
|
|
path: '/bg/rbac/menu',
|
|
|
name: 'Menu',
|
|
name: 'Menu',
|
|
|
|
|
+ title: '资源管理',
|
|
|
|
|
+ icon: 'el-icon-loading',
|
|
|
component: Menu,
|
|
component: Menu,
|
|
|
- meta: { needAuth: true, roles: ['admin'] }
|
|
|
|
|
|
|
+ meta: { needAuth: true, roles: ['devops_admin'] }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/bg/rbac/role',
|
|
path: '/bg/rbac/role',
|
|
|
name: 'Role',
|
|
name: 'Role',
|
|
|
|
|
+ title: '角色管理',
|
|
|
|
|
+ icon: 'el-icon-loading',
|
|
|
component: Role,
|
|
component: Role,
|
|
|
- meta: { needAuth: true, roles: ['admin'] }
|
|
|
|
|
|
|
+ meta: { needAuth: true, roles: ['devops_admin'] }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/bg/rbac/user',
|
|
path: '/bg/rbac/user',
|
|
|
name: 'User',
|
|
name: 'User',
|
|
|
|
|
+ title: '用户管理',
|
|
|
|
|
+ icon: 'el-icon-loading',
|
|
|
component: User,
|
|
component: User,
|
|
|
- meta: { needAuth: true, roles: ['admin'] }
|
|
|
|
|
|
|
+ meta: { needAuth: true, roles: ['devops_admin'] }
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
}
|
|
}
|