mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-02 14:34:46 +00:00
feat: optimize menus and add Windows monitoring menu (#236)
This commit is contained in:
parent
b2707e0e62
commit
b247ed1c24
@ -25,10 +25,11 @@ limitations under the License. -->
|
|||||||
:default-active="name"
|
:default-active="name"
|
||||||
text-color="#efefef"
|
text-color="#efefef"
|
||||||
:collapse="isCollapse"
|
:collapse="isCollapse"
|
||||||
|
:collapse-transition="false"
|
||||||
:style="{ border: 'none' }"
|
:style="{ border: 'none' }"
|
||||||
>
|
>
|
||||||
<template v-for="(menu, index) in routes" :key="index">
|
<template v-for="(menu, index) in routes" :key="index">
|
||||||
<el-sub-menu :index="String(menu.name)" v-if="menu.meta.hasGroup">
|
<el-sub-menu :index="String(menu.name)" v-if="menu.meta.hasGroup" popper-class="sub-list">
|
||||||
<template #title>
|
<template #title>
|
||||||
<router-link class="items" :to="menu.path">
|
<router-link class="items" :to="menu.path">
|
||||||
<el-icon class="menu-icons" :style="{ marginRight: '12px' }" @mouseover="setCollapse">
|
<el-icon class="menu-icons" :style="{ marginRight: '12px' }" @mouseover="setCollapse">
|
||||||
@ -49,12 +50,12 @@ limitations under the License. -->
|
|||||||
</el-sub-menu>
|
</el-sub-menu>
|
||||||
<el-menu-item :index="String(menu.name)" @click="changePage(menu)" v-else>
|
<el-menu-item :index="String(menu.name)" @click="changePage(menu)" v-else>
|
||||||
<el-icon class="menu-icons" :style="{ marginRight: '12px' }" @mouseover="setCollapse">
|
<el-icon class="menu-icons" :style="{ marginRight: '12px' }" @mouseover="setCollapse">
|
||||||
<router-link class="items" :to="menu.children[0].path">
|
<router-link class="items menu-title" :to="menu.children[0].path">
|
||||||
<Icon size="lg" :iconName="menu.meta.icon" />
|
<Icon size="lg" :iconName="menu.meta.icon" />
|
||||||
</router-link>
|
</router-link>
|
||||||
</el-icon>
|
</el-icon>
|
||||||
<template #title>
|
<template #title>
|
||||||
<router-link class="items" :to="menu.children[0].path">
|
<router-link class="items menu-title" :to="menu.children[0].path">
|
||||||
<span class="title">{{ t(menu.meta.title) }}</span>
|
<span class="title">{{ t(menu.meta.title) }}</span>
|
||||||
</router-link>
|
</router-link>
|
||||||
</template>
|
</template>
|
||||||
|
@ -185,6 +185,7 @@ const msg = {
|
|||||||
setDuration: "Lock Query Duration",
|
setDuration: "Lock Query Duration",
|
||||||
openFunction: "OpenFunction",
|
openFunction: "OpenFunction",
|
||||||
period: "Period",
|
period: "Period",
|
||||||
|
windows: "Windows",
|
||||||
seconds: "Seconds",
|
seconds: "Seconds",
|
||||||
hourTip: "Select Hour",
|
hourTip: "Select Hour",
|
||||||
minuteTip: "Select Minute",
|
minuteTip: "Select Minute",
|
||||||
|
@ -187,6 +187,7 @@ const msg = {
|
|||||||
when5xx: "Ejemplo de solicitud y respuesta http con seguimiento cuando el Código de respuesta está entre 500 y 599",
|
when5xx: "Ejemplo de solicitud y respuesta http con seguimiento cuando el Código de respuesta está entre 500 y 599",
|
||||||
taskTitle: "Reglas de recolección de peticiones y respuestas HTTP",
|
taskTitle: "Reglas de recolección de peticiones y respuestas HTTP",
|
||||||
period: "Period",
|
period: "Period",
|
||||||
|
windows: "Windows",
|
||||||
second: "s",
|
second: "s",
|
||||||
yearSuffix: "Año",
|
yearSuffix: "Año",
|
||||||
monthsHead: "Ene_Feb_Mar_Abr_May_Jun_Jul_Ago_Set_Oct_Nov_Dic",
|
monthsHead: "Ene_Feb_Mar_Abr_May_Jun_Jul_Ago_Set_Oct_Nov_Dic",
|
||||||
|
@ -182,6 +182,7 @@ const msg = {
|
|||||||
setDuration: "锁定查询持续时间",
|
setDuration: "锁定查询持续时间",
|
||||||
openFunction: "OpenFunction",
|
openFunction: "OpenFunction",
|
||||||
period: "周期",
|
period: "周期",
|
||||||
|
windows: "Windows",
|
||||||
seconds: "秒",
|
seconds: "秒",
|
||||||
hourTip: "选择小时",
|
hourTip: "选择小时",
|
||||||
minuteTip: "选择分钟",
|
minuteTip: "选择分钟",
|
||||||
|
@ -43,6 +43,23 @@ export default [
|
|||||||
layer: "OS_LINUX",
|
layer: "OS_LINUX",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "/windows",
|
||||||
|
name: "Windows",
|
||||||
|
meta: {
|
||||||
|
title: "windows",
|
||||||
|
layer: "OS_WINDOWS",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/windows/tab/:activeTabIndex",
|
||||||
|
name: "WindowsActiveTabIndex",
|
||||||
|
meta: {
|
||||||
|
title: "windows",
|
||||||
|
notShow: true,
|
||||||
|
layer: "OS_WINDOWS",
|
||||||
|
},
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
@ -204,3 +204,11 @@ div.vis-tooltip {
|
|||||||
.vis-item.vis-selected.Normal {
|
.vis-item.vis-selected.Normal {
|
||||||
color: #1a1a1a !important;
|
color: #1a1a1a !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.el-menu--vertical.sub-list {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
div:has(> a.menu-title) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user