mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-07-18 14:05:25 +00:00
fix: update style and settings
This commit is contained in:
parent
f98c5ae62a
commit
f5228e86fe
@ -139,3 +139,7 @@
|
|||||||
transform: rotate(1turn);
|
transform: rotate(1turn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.topology-dialog {
|
||||||
|
background-color: #333840 !important;
|
||||||
|
}
|
||||||
|
@ -22,7 +22,7 @@ limitations under the License. -->
|
|||||||
<span class="label">{{ t("language") }}</span>
|
<span class="label">{{ t("language") }}</span>
|
||||||
<el-switch
|
<el-switch
|
||||||
v-model="lang"
|
v-model="lang"
|
||||||
:change="setLang"
|
@change="setLang"
|
||||||
active-text="En"
|
active-text="En"
|
||||||
inactive-text="Zh"
|
inactive-text="Zh"
|
||||||
style="height: 25px"
|
style="height: 25px"
|
||||||
|
@ -27,10 +27,10 @@ limitations under the License. -->
|
|||||||
</el-dialog>
|
</el-dialog>
|
||||||
<el-dialog
|
<el-dialog
|
||||||
v-model="dashboardStore.showTopology"
|
v-model="dashboardStore.showTopology"
|
||||||
:title="t('topology')"
|
|
||||||
:destroy-on-close="true"
|
:destroy-on-close="true"
|
||||||
fullscreen
|
fullscreen
|
||||||
@closed="dashboardStore.setTopology(false)"
|
@closed="dashboardStore.setTopology(false)"
|
||||||
|
custom-class="topology-dialog"
|
||||||
>
|
>
|
||||||
<Graph />
|
<Graph />
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
@ -92,8 +92,4 @@ function handleClick(e: any) {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
// .el-overlay-dialog {
|
|
||||||
// background-color: #333840 !important;
|
|
||||||
// color: #ddd;
|
|
||||||
// }
|
|
||||||
</style>
|
</style>
|
||||||
|
@ -30,6 +30,7 @@ import { Node, Call } from "@/types/topology";
|
|||||||
import { useTopologyStore } from "@/store/modules/topology";
|
import { useTopologyStore } from "@/store/modules/topology";
|
||||||
import { useDashboardStore } from "@/store/modules/dashboard";
|
import { useDashboardStore } from "@/store/modules/dashboard";
|
||||||
import { EntityType } from "../../data";
|
import { EntityType } from "../../data";
|
||||||
|
import router from "@/router";
|
||||||
|
|
||||||
/*global Nullable */
|
/*global Nullable */
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
@ -39,7 +40,7 @@ const height = ref<number>(document.body.clientHeight - 90);
|
|||||||
const width = ref<number>(document.body.clientWidth - 40);
|
const width = ref<number>(document.body.clientWidth - 40);
|
||||||
const simulation = ref<any>("");
|
const simulation = ref<any>("");
|
||||||
const svg = ref<Nullable<any>>(null);
|
const svg = ref<Nullable<any>>(null);
|
||||||
const chart = ref<HTMLDivElement | null>(null);
|
const chart = ref<Nullable<HTMLDivElement>>(null);
|
||||||
const tip = ref<any>(null);
|
const tip = ref<any>(null);
|
||||||
const graph = ref<any>(null);
|
const graph = ref<any>(null);
|
||||||
const node = ref<any>(null);
|
const node = ref<any>(null);
|
||||||
@ -154,10 +155,12 @@ function handleNodeClick(d: any) {
|
|||||||
topologyStore.setNode(d);
|
topologyStore.setNode(d);
|
||||||
topologyStore.setLink({});
|
topologyStore.setLink({});
|
||||||
}
|
}
|
||||||
function handleLinkClick(event: any, d: any) {
|
function handleLinkClick(event: any, d: Call) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
topologyStore.setNode({});
|
topologyStore.setNode({});
|
||||||
topologyStore.setLink(d);
|
topologyStore.setLink(d);
|
||||||
|
// const path = `/dashboard/${states.selectedLayer}/${states.entity}/${name}`;
|
||||||
|
// router.push(path);
|
||||||
}
|
}
|
||||||
function update() {
|
function update() {
|
||||||
// node element
|
// node element
|
||||||
@ -255,8 +258,6 @@ watch(
|
|||||||
}
|
}
|
||||||
|
|
||||||
.micro-topo-chart {
|
.micro-topo-chart {
|
||||||
background: #333840;
|
|
||||||
|
|
||||||
.topo-svg {
|
.topo-svg {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -38,8 +38,8 @@ export const anchorElement = (graph: any, funcs: any, tip: any) => {
|
|||||||
.on("mouseout", function () {
|
.on("mouseout", function () {
|
||||||
tip.hide(this);
|
tip.hide(this);
|
||||||
})
|
})
|
||||||
.on("click", (d: unknown) => {
|
.on("click", (event: unknown, d: unknown) => {
|
||||||
funcs.handleLinkClick(d);
|
funcs.handleLinkClick(event, d);
|
||||||
});
|
});
|
||||||
return linkEnter;
|
return linkEnter;
|
||||||
};
|
};
|
||||||
|
@ -39,6 +39,9 @@ export default (
|
|||||||
tip
|
tip
|
||||||
.html(() => {
|
.html(() => {
|
||||||
return `
|
return `
|
||||||
|
<div class="mb-5"><span class="grey">${t("name")}: </span>${
|
||||||
|
d.name
|
||||||
|
}</div>
|
||||||
<div class="mb-5"><span class="grey">${t("cpm")}: </span>${
|
<div class="mb-5"><span class="grey">${t("cpm")}: </span>${
|
||||||
d.cpm
|
d.cpm
|
||||||
}</div>
|
}</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user