mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-14 17:05:10 +00:00
merge
This commit is contained in:
commit
3ffc491f2e
@ -145,7 +145,7 @@ const msg = {
|
|||||||
associateOptions: "Association Options",
|
associateOptions: "Association Options",
|
||||||
widget: "Widget",
|
widget: "Widget",
|
||||||
nameTip:
|
nameTip:
|
||||||
"The name only supports Chinese and English, horizontal lines and underscores",
|
"The name only supports Chinese and English, horizontal lines and underscores. The length of the name is limited to 300 characters",
|
||||||
duplicateName: "Duplicate name",
|
duplicateName: "Duplicate name",
|
||||||
enableAssociate: "Enable association",
|
enableAssociate: "Enable association",
|
||||||
seconds: "Seconds",
|
seconds: "Seconds",
|
||||||
@ -157,8 +157,6 @@ const msg = {
|
|||||||
monthsHead: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec",
|
monthsHead: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec",
|
||||||
months: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec",
|
months: "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec",
|
||||||
weeks: "Mon_Tue_Wed_Thu_Fri_Sat_Sun",
|
weeks: "Mon_Tue_Wed_Thu_Fri_Sat_Sun",
|
||||||
hello: "Hello",
|
|
||||||
helloMessage: "Welcome Back, Apache SkyWalking APM System !",
|
|
||||||
username: "Username",
|
username: "Username",
|
||||||
password: "Password",
|
password: "Password",
|
||||||
title: "Title",
|
title: "Title",
|
||||||
|
@ -146,7 +146,7 @@ const msg = {
|
|||||||
widget: "Dispositivo pequeño",
|
widget: "Dispositivo pequeño",
|
||||||
duplicateName: "Nombre duplicado",
|
duplicateName: "Nombre duplicado",
|
||||||
nameTip:
|
nameTip:
|
||||||
"Este nombre sólo admite chino e inglés, líneas cruzadas y subrayado",
|
"El nombre sólo admite chino e inglés, líneas horizontales y subrayado, y la longitud del nombre no excederá de 300 caracteres",
|
||||||
enableAssociate: "Activar asociación",
|
enableAssociate: "Activar asociación",
|
||||||
seconds: "Segundos",
|
seconds: "Segundos",
|
||||||
hourTip: "Seleccione Hora",
|
hourTip: "Seleccione Hora",
|
||||||
@ -157,8 +157,6 @@ const msg = {
|
|||||||
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",
|
||||||
months: "Ene_Feb_Mar_Abr_May_Jun_Jul_Ago_Set_Oct_Nov_Dic",
|
months: "Ene_Feb_Mar_Abr_May_Jun_Jul_Ago_Set_Oct_Nov_Dic",
|
||||||
weeks: "Lun_Mar_Mier_Jue_Vie_Sáb_Dom",
|
weeks: "Lun_Mar_Mier_Jue_Vie_Sáb_Dom",
|
||||||
hello: "Hola",
|
|
||||||
helloMessage: "Bienvenido de vuelta, Apache SkyWalking APM System !",
|
|
||||||
username: "Usuario",
|
username: "Usuario",
|
||||||
password: "Contraseña",
|
password: "Contraseña",
|
||||||
title: "Título",
|
title: "Título",
|
||||||
|
@ -142,8 +142,8 @@ const msg = {
|
|||||||
begin: "开始",
|
begin: "开始",
|
||||||
associateOptions: "关联选项",
|
associateOptions: "关联选项",
|
||||||
widget: "部件",
|
widget: "部件",
|
||||||
nameTip: "该名称仅支持中文和英文、横线和下划线",
|
|
||||||
enableAssociate: "启用关联",
|
enableAssociate: "启用关联",
|
||||||
|
nameTip: "该名称仅支持中文和英文、横线和下划线, 并且限制长度为300个字符",
|
||||||
duplicateName: "重复的名称",
|
duplicateName: "重复的名称",
|
||||||
seconds: "秒",
|
seconds: "秒",
|
||||||
hourTip: "选择小时",
|
hourTip: "选择小时",
|
||||||
@ -154,8 +154,6 @@ const msg = {
|
|||||||
monthsHead: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月",
|
monthsHead: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月",
|
||||||
months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月",
|
months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月",
|
||||||
weeks: "一_二_三_四_五_六_日",
|
weeks: "一_二_三_四_五_六_日",
|
||||||
hello: "你好",
|
|
||||||
helloMessage: "欢迎来到, Apache SkyWalking APM 系统 !",
|
|
||||||
username: "用户名",
|
username: "用户名",
|
||||||
password: "密码",
|
password: "密码",
|
||||||
title: "标题",
|
title: "标题",
|
||||||
|
@ -74,7 +74,7 @@ function updateWidgetConfig(param: { [key: string]: string }) {
|
|||||||
function updateWidgetName(param: { [key: string]: string }) {
|
function updateWidgetName(param: { [key: string]: string }) {
|
||||||
const key = Object.keys(param)[0];
|
const key = Object.keys(param)[0];
|
||||||
const n = decodeURIComponent(param[key]);
|
const n = decodeURIComponent(param[key]);
|
||||||
const pattern = /^[A-Za-z0-9-_\u4e00-\u9fa5]{1,30}$/;
|
const pattern = /^[A-Za-z0-9-_\u4e00-\u9fa5]{1,300}$/;
|
||||||
if (!pattern.test(n)) {
|
if (!pattern.test(n)) {
|
||||||
ElMessage.error(t("nameTip"));
|
ElMessage.error(t("nameTip"));
|
||||||
return;
|
return;
|
||||||
|
@ -34,7 +34,7 @@ limitations under the License. -->
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="setting" v-if="showSetting">
|
<div class="setting" v-if="showSetting && dashboardStore.editMode">
|
||||||
<Settings @update="updateSettings" @updateNodes="freshNodes" />
|
<Settings @update="updateSettings" @updateNodes="freshNodes" />
|
||||||
</div>
|
</div>
|
||||||
<div class="tool">
|
<div class="tool">
|
||||||
@ -113,6 +113,7 @@ import getDashboard from "@/hooks/useDashboardsSession";
|
|||||||
import { MetricConfigOpt } from "@/types/dashboard";
|
import { MetricConfigOpt } from "@/types/dashboard";
|
||||||
import { aggregation } from "@/hooks/useProcessor";
|
import { aggregation } from "@/hooks/useProcessor";
|
||||||
import icons from "@/assets/img/icons";
|
import icons from "@/assets/img/icons";
|
||||||
|
import { useQueryTopologyMetrics } from "@/hooks/useProcessor";
|
||||||
|
|
||||||
/*global Nullable, defineProps */
|
/*global Nullable, defineProps */
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
@ -170,6 +171,7 @@ onMounted(async () => {
|
|||||||
width.value = dom.width;
|
width.value = dom.width;
|
||||||
window.addEventListener("resize", resize);
|
window.addEventListener("resize", resize);
|
||||||
svg.value = d3.select(chart.value).append("svg").attr("class", "topo-svg");
|
svg.value = d3.select(chart.value).append("svg").attr("class", "topo-svg");
|
||||||
|
await initLegendMetrics();
|
||||||
await init();
|
await init();
|
||||||
update();
|
update();
|
||||||
setNodeTools(settings.value.nodeDashboard);
|
setNodeTools(settings.value.nodeDashboard);
|
||||||
@ -200,6 +202,18 @@ async function init() {
|
|||||||
dashboardStore.selectWidget(props.config);
|
dashboardStore.selectWidget(props.config);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function initLegendMetrics() {
|
||||||
|
const ids = topologyStore.nodes.map((d: Node) => d.id);
|
||||||
|
const names = props.config.legend.map((d: any) => d.name);
|
||||||
|
if (names.length && ids.length) {
|
||||||
|
const param = await useQueryTopologyMetrics(names, ids);
|
||||||
|
const res = await topologyStore.getLegendMetrics(param);
|
||||||
|
if (res.errors) {
|
||||||
|
ElMessage.error(res.errors);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
function ticked() {
|
function ticked() {
|
||||||
link.value.attr(
|
link.value.attr(
|
||||||
"d",
|
"d",
|
||||||
|
@ -48,7 +48,7 @@ limitations under the License. -->
|
|||||||
<span class="g-sm-8 wba">
|
<span class="g-sm-8 wba">
|
||||||
{{ i.value }}
|
{{ i.value }}
|
||||||
<span
|
<span
|
||||||
v-if="i.key === 'db.statement'"
|
v-if="i.key === 'db.statement' && i.value"
|
||||||
class="grey link-hover cp ml-5"
|
class="grey link-hover cp ml-5"
|
||||||
@click="copy(i.value)"
|
@click="copy(i.value)"
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user