feat: add the MYSQL layer and update layer routers (#134)

This commit is contained in:
Fine0830 2022-08-07 17:16:44 +08:00 committed by GitHub
parent 4b43196bc2
commit 732b834749
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 39 additions and 11 deletions

View File

@ -29,8 +29,8 @@ export const Languages = [
export const RoutesMap: { [key: string]: string } = {
GeneralServices: "GENERAL",
GeneralServicesActiveTabIndex: "GENERAL",
Database: "VIRTUAL_DATABASE",
DatabaseActiveTabIndex: "VIRTUAL_DATABASE",
VirtualDatabase: "VIRTUAL_DATABASE",
VirtualDatabaseActiveTabIndex: "VIRTUAL_DATABASE",
MeshServices: "MESH",
MeshServicesActiveTabIndex: "MESH",
ControlPanel: "MESH_CP",
@ -50,4 +50,6 @@ export const RoutesMap: { [key: string]: string } = {
KubernetesClusterActiveTabIndex: "K8S",
KubernetesService: "K8S_SERVICE",
KubernetesServiceActiveTabIndex: "K8S_SERVICE",
MySQL: "MYSQL",
MySQLActiveTabIndex: "MYSQL",
};

View File

@ -32,6 +32,7 @@ const msg = {
dashboards: "Dashboards",
profiles: "Profiles",
database: "Database",
mySQL: "MySQL",
serviceName: "Service Name",
technologies: "Technologies",
generalServicePanel: "General Service Panel",

View File

@ -32,6 +32,7 @@ const msg = {
dashboards: "Paneles",
profiles: "Perfiles",
database: "Base de Datos",
mySQL: "MySQL",
serviceName: "Nombre Servicio",
technologies: "Tecnologías",
generalServicePanel: "Panel Servicio General",

View File

@ -32,6 +32,7 @@ const msg = {
dashboards: "仪表盘",
profiles: "性能剖析",
database: "数据库",
mySQL: "MySQL",
serviceName: "服务名称",
technologies: "技术",
health: "健康",

View File

@ -26,22 +26,22 @@ export const routesDatabase: Array<RouteRecordRaw> = [
icon: "storage",
hasGroup: true,
},
redirect: "/database",
redirect: "/mySQL",
component: Layout,
children: [
{
path: "/database",
name: "Database",
path: "/mySQL",
name: "MySQL",
meta: {
title: "virtualDatabase",
title: "mySQL",
exact: true,
},
component: () =>
import(/* webpackChunkName: "layer" */ "@/views/Layer.vue"),
},
{
path: "/database/tab/:activeTabIndex",
name: "DatabaseActiveTabIndex",
path: "/mySQL/tab/:activeTabIndex",
name: "MySQLActiveTabIndex",
meta: {
notShow: true,
},

View File

@ -24,7 +24,7 @@ export const routesGen: Array<RouteRecordRaw> = [
meta: {
title: "general",
icon: "chart",
hasGroup: false,
hasGroup: true,
exact: true,
},
component: Layout,
@ -34,6 +34,7 @@ export const routesGen: Array<RouteRecordRaw> = [
name: "GeneralServices",
meta: {
exact: true,
title: "services",
},
component: () =>
import(/* webpackChunkName: "layers" */ "@/views/Layer.vue"),
@ -43,10 +44,30 @@ export const routesGen: Array<RouteRecordRaw> = [
name: "GeneralServicesActiveTabIndex",
meta: {
exact: true,
notShow: true,
},
component: () =>
import(/* webpackChunkName: "layers" */ "@/views/Layer.vue"),
},
{
path: "/database",
name: "VirtualDatabase",
meta: {
title: "virtualDatabase",
exact: true,
},
component: () =>
import(/* webpackChunkName: "layer" */ "@/views/Layer.vue"),
},
{
path: "/database/tab/:activeTabIndex",
name: "VirtualDatabaseActiveTabIndex",
meta: {
notShow: true,
},
component: () =>
import(/* webpackChunkName: "layer" */ "@/views/Layer.vue"),
},
],
},
];

View File

@ -139,8 +139,10 @@ pre {
padding-left: 56px !important;
}
.el-icon.menu-icons {
margin-top: -3px !important;
.el-sub-menu__title {
.el-icon.menu-icons {
margin-top: -5px !important;
}
}
.el-switch__label--left {