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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -24,7 +24,7 @@ export const routesGen: Array<RouteRecordRaw> = [
meta: { meta: {
title: "general", title: "general",
icon: "chart", icon: "chart",
hasGroup: false, hasGroup: true,
exact: true, exact: true,
}, },
component: Layout, component: Layout,
@ -34,6 +34,7 @@ export const routesGen: Array<RouteRecordRaw> = [
name: "GeneralServices", name: "GeneralServices",
meta: { meta: {
exact: true, exact: true,
title: "services",
}, },
component: () => component: () =>
import(/* webpackChunkName: "layers" */ "@/views/Layer.vue"), import(/* webpackChunkName: "layers" */ "@/views/Layer.vue"),
@ -43,10 +44,30 @@ export const routesGen: Array<RouteRecordRaw> = [
name: "GeneralServicesActiveTabIndex", name: "GeneralServicesActiveTabIndex",
meta: { meta: {
exact: true, exact: true,
notShow: true,
}, },
component: () => component: () =>
import(/* webpackChunkName: "layers" */ "@/views/Layer.vue"), 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; padding-left: 56px !important;
} }
.el-sub-menu__title {
.el-icon.menu-icons { .el-icon.menu-icons {
margin-top: -3px !important; margin-top: -5px !important;
}
} }
.el-switch__label--left { .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: "Seconds to YYYY-MM-DD HH:mm:ss", value: "convertSeconds" },
{ label: "Precision is 2", value: "precision" }, { label: "Precision is 2", value: "precision" },
{ label: "Milliseconds to seconds", value: "msTos" }, { label: "Milliseconds to seconds", value: "msTos" },
{ label: "Seconds to days", value: "secondToDay" },
]; ];

View File

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