Merge branch 'main' of github.com:apache/skywalking-booster-ui into feat/profiling

This commit is contained in:
Qiuxia Fan 2022-08-08 10:51:55 +08:00
commit 001785ba3a
11 changed files with 45 additions and 12 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

@ -36,6 +36,7 @@ export enum Calculations {
Average = "average",
PercentageAvg = "percentageAvg",
ApdexAvg = "apdexAvg",
SecondToDay = "secondToDay",
}
export enum sizeEnum {
XS = "XS",

View File

@ -398,6 +398,9 @@ export function aggregation(
case Calculations.MsTos:
data = (val / 1000).toFixed(2);
break;
case Calculations.SecondToDay:
data = (val / 86400).toFixed(2);
break;
default:
data;
break;

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 {

View File

@ -289,4 +289,5 @@ export const CalculationOpts = [
{ label: "Seconds to YYYY-MM-DD HH:mm:ss", value: "convertSeconds" },
{ label: "Precision is 2", value: "precision" },
{ label: "Milliseconds to seconds", value: "msTos" },
{ label: "Seconds to days", value: "secondToDay" },
];

View File

@ -205,7 +205,7 @@ function searchTraces() {
queryDuration: duration.value,
minTraceDuration: Number(minTraceDuration.value),
maxTraceDuration: Number(maxTraceDuration.value),
queryOrder: "BY_DURATION",
queryOrder: traceStore.conditions.queryOrder || "BY_DURATION",
tags: tagsMap.value.length ? tagsMap.value : undefined,
paging: { pageNum: 1, pageSize: 20 },
});