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