mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-14 00:37:33 +00:00
update config
This commit is contained in:
parent
6e15317835
commit
8e7702b09b
@ -60,9 +60,11 @@ const msg = {
|
|||||||
max: "Max",
|
max: "Max",
|
||||||
min: "Min",
|
min: "Min",
|
||||||
plus: "Plus",
|
plus: "Plus",
|
||||||
|
mean: "Mean",
|
||||||
minus: "Minus",
|
minus: "Minus",
|
||||||
multiply: "Multiply",
|
multiply: "Multiply",
|
||||||
divide: "Divide",
|
divide: "Divide",
|
||||||
|
total: "Total",
|
||||||
convertToMilliseconds: "Convert Unix Timestamp(milliseconds)",
|
convertToMilliseconds: "Convert Unix Timestamp(milliseconds)",
|
||||||
convertToSeconds: "Convert Unix Timestamp(seconds)",
|
convertToSeconds: "Convert Unix Timestamp(seconds)",
|
||||||
smooth: "Smooth",
|
smooth: "Smooth",
|
||||||
@ -171,6 +173,7 @@ const msg = {
|
|||||||
showLegend: "Show Legend",
|
showLegend: "Show Legend",
|
||||||
asTable: "As Table",
|
asTable: "As Table",
|
||||||
toTheRight: "To The Right",
|
toTheRight: "To The Right",
|
||||||
|
legendValues: "Legend Values",
|
||||||
seconds: "Seconds",
|
seconds: "Seconds",
|
||||||
hourTip: "Select Hour",
|
hourTip: "Select Hour",
|
||||||
minuteTip: "Select Minute",
|
minuteTip: "Select Minute",
|
||||||
|
@ -59,9 +59,11 @@ const msg = {
|
|||||||
standardOptions: "Opciones estandar",
|
standardOptions: "Opciones estandar",
|
||||||
max: "Máx",
|
max: "Máx",
|
||||||
min: "Mín",
|
min: "Mín",
|
||||||
|
mean: "Promedio",
|
||||||
plus: "Más",
|
plus: "Más",
|
||||||
minus: "Menoss",
|
minus: "Menoss",
|
||||||
multiply: "Multiplcar",
|
multiply: "Multiplcar",
|
||||||
|
total: "Todo",
|
||||||
divide: "Dividir",
|
divide: "Dividir",
|
||||||
convertToMilliseconds: "Convertir Unix Timestamp(milisegundos)",
|
convertToMilliseconds: "Convertir Unix Timestamp(milisegundos)",
|
||||||
convertToSeconds: "Convertir Unix Timestamp(segundos)",
|
convertToSeconds: "Convertir Unix Timestamp(segundos)",
|
||||||
@ -160,6 +162,7 @@ const msg = {
|
|||||||
queryOrder: "Orden de consulta",
|
queryOrder: "Orden de consulta",
|
||||||
latency: "Retraso",
|
latency: "Retraso",
|
||||||
metricValues: "Valor métrico",
|
metricValues: "Valor métrico",
|
||||||
|
legendValues: "Valor de la leyenda",
|
||||||
seconds: "Segundos",
|
seconds: "Segundos",
|
||||||
hourTip: "Seleccione Hora",
|
hourTip: "Seleccione Hora",
|
||||||
minuteTip: "Seleccione Minuto",
|
minuteTip: "Seleccione Minuto",
|
||||||
|
@ -56,10 +56,12 @@ const msg = {
|
|||||||
standardOptions: "标准选项",
|
standardOptions: "标准选项",
|
||||||
max: "最大值",
|
max: "最大值",
|
||||||
min: "最小值",
|
min: "最小值",
|
||||||
|
mean: "平均值",
|
||||||
plus: "加法",
|
plus: "加法",
|
||||||
minus: "减法",
|
minus: "减法",
|
||||||
multiply: "乘法",
|
multiply: "乘法",
|
||||||
divide: "除法",
|
divide: "除法",
|
||||||
|
total: "总计",
|
||||||
convertToMilliseconds: "转换Unix时间戳(毫秒)",
|
convertToMilliseconds: "转换Unix时间戳(毫秒)",
|
||||||
convertToSeconds: "转换Unix时间戳(秒)",
|
convertToSeconds: "转换Unix时间戳(秒)",
|
||||||
smooth: "光滑的",
|
smooth: "光滑的",
|
||||||
@ -168,6 +170,7 @@ const msg = {
|
|||||||
showLegend: "显示图例",
|
showLegend: "显示图例",
|
||||||
asTable: "作为表格",
|
asTable: "作为表格",
|
||||||
toTheRight: "在右边",
|
toTheRight: "在右边",
|
||||||
|
legendValues: "图例值",
|
||||||
seconds: "秒",
|
seconds: "秒",
|
||||||
hourTip: "选择小时",
|
hourTip: "选择小时",
|
||||||
minuteTip: "选择分钟",
|
minuteTip: "选择分钟",
|
||||||
|
@ -15,28 +15,28 @@ limitations under the License. -->
|
|||||||
<template>
|
<template>
|
||||||
<div class="legend">
|
<div class="legend">
|
||||||
<span class="label">{{ t("legendOptions") }}</span>
|
<span class="label">{{ t("legendOptions") }}</span>
|
||||||
<span class="label">{{ t("showLegend") }}</span>
|
<span class="title">{{ t("showLegend") }}</span>
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="legend.showLegend"
|
v-model="legend.showLegend"
|
||||||
active-text="Yes"
|
active-text="Yes"
|
||||||
inactive-text="No"
|
inactive-text="No"
|
||||||
@change="updateLegendConfig({ showLegend: legend.showLegend })"
|
@change="updateLegendConfig({ showLegend: legend.showLegend })"
|
||||||
/>
|
/>
|
||||||
<span class="label">{{ t("asTable") }}</span>
|
<span class="title">{{ t("asTable") }}</span>
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="legend.asTable"
|
v-model="legend.asTable"
|
||||||
active-text="Yes"
|
active-text="Yes"
|
||||||
inactive-text="No"
|
inactive-text="No"
|
||||||
@change="updateLegendConfig({ asTable: legend.asTable })"
|
@change="updateLegendConfig({ asTable: legend.asTable })"
|
||||||
/>
|
/>
|
||||||
<span class="label">{{ t("toTheRight") }}</span>
|
<span class="title">{{ t("toTheRight") }}</span>
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="legend.toTheRight"
|
v-model="legend.toTheRight"
|
||||||
active-text="Yes"
|
active-text="Yes"
|
||||||
inactive-text="No"
|
inactive-text="No"
|
||||||
@change="updateLegendConfig({ toTheRight: legend.toTheRight })"
|
@change="updateLegendConfig({ toTheRight: legend.toTheRight })"
|
||||||
/>
|
/>
|
||||||
<span class="label">{{ t("width") }}</span>
|
<span class="title">{{ t("width") }}</span>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="legend.width"
|
v-model="legend.width"
|
||||||
class="input"
|
class="input"
|
||||||
@ -44,6 +44,35 @@ limitations under the License. -->
|
|||||||
placeholder="Please input the width"
|
placeholder="Please input the width"
|
||||||
@change="updateLegendConfig({ toTheRight: legend.width })"
|
@change="updateLegendConfig({ toTheRight: legend.width })"
|
||||||
/>
|
/>
|
||||||
|
<span class="label">{{ t("legendValues") }}</span>
|
||||||
|
<span class="title">{{ t("min") }}</span>
|
||||||
|
<el-switch
|
||||||
|
v-model="legend.min"
|
||||||
|
active-text="Yes"
|
||||||
|
inactive-text="No"
|
||||||
|
@change="updateLegendConfig({ min: legend.min })"
|
||||||
|
/>
|
||||||
|
<span class="title">{{ t("max") }}</span>
|
||||||
|
<el-switch
|
||||||
|
v-model="legend.max"
|
||||||
|
active-text="Yes"
|
||||||
|
inactive-text="No"
|
||||||
|
@change="updateLegendConfig({ max: legend.max })"
|
||||||
|
/>
|
||||||
|
<span class="title">{{ t("mean") }}</span>
|
||||||
|
<el-switch
|
||||||
|
v-model="legend.mean"
|
||||||
|
active-text="Yes"
|
||||||
|
inactive-text="No"
|
||||||
|
@change="updateLegendConfig({ avg: legend.mean })"
|
||||||
|
/>
|
||||||
|
<span class="title">{{ t("total") }}</span>
|
||||||
|
<el-switch
|
||||||
|
v-model="legend.total"
|
||||||
|
active-text="Yes"
|
||||||
|
inactive-text="No"
|
||||||
|
@change="updateLegendConfig({ avg: legend.total })"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<span class="label">{{ t("showXAxis") }}</span>
|
<span class="label">{{ t("showXAxis") }}</span>
|
||||||
@ -130,4 +159,12 @@ function updateLegendConfig(param: { [key: string]: unknown }) {
|
|||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
margin-bottom: -5px;
|
margin-bottom: -5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.legend {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user