revert: update

This commit is contained in:
Fine 2024-01-11 16:38:25 +08:00
parent 44ed462663
commit e719bc9db8
2 changed files with 0 additions and 16 deletions

View File

@ -42,7 +42,6 @@ export interface LayoutConfig {
children?: { name: string; children: LayoutConfig[]; expression?: string; enable?: boolean }[]; children?: { name: string; children: LayoutConfig[]; expression?: string; enable?: boolean }[];
activedTabIndex?: number; activedTabIndex?: number;
metricConfig?: MetricConfigOpt[]; metricConfig?: MetricConfigOpt[];
hierarchyServicesConfig?: HierarchyServicesConfig[];
id?: string; id?: string;
associate?: { widgetId: string }[]; associate?: { widgetId: string }[];
eventAssociate?: boolean; eventAssociate?: boolean;
@ -86,16 +85,6 @@ export type MetricConfigOpt = {
detailLabel?: string; detailLabel?: string;
}; };
export interface HierarchyServicesConfigMap {
[key: string]: HierarchyServicesConfig;
}
export interface HierarchyServicesConfig {
layer: string;
nodeExpressions: string[];
expressionsConfig: MetricConfigOpt[];
}
export interface WidgetConfig { export interface WidgetConfig {
name?: string; name?: string;
title?: string; title?: string;

View File

@ -81,7 +81,6 @@ limitations under the License. -->
<script lang="ts" setup> <script lang="ts" setup>
import type { PropType } from "vue"; import type { PropType } from "vue";
import { ref, onMounted, watch, computed, nextTick } from "vue"; import { ref, onMounted, watch, computed, nextTick } from "vue";
import { useI18n } from "vue-i18n";
import * as d3 from "d3"; import * as d3 from "d3";
import type { Node } from "@/types/topology"; import type { Node } from "@/types/topology";
import { useTopologyStore } from "@/store/modules/topology"; import { useTopologyStore } from "@/store/modules/topology";
@ -95,7 +94,6 @@ limitations under the License. -->
import icons from "@/assets/img/icons"; import icons from "@/assets/img/icons";
import { layout, changeNode, computeLevels } from "./utils/layout"; import { layout, changeNode, computeLevels } from "./utils/layout";
import zoom from "@/views/dashboard/related/components/utils/zoom"; import zoom from "@/views/dashboard/related/components/utils/zoom";
import type { HierarchyServicesConfig } from "@/types/dashboard";
import getDashboard from "@/hooks/useDashboardsSession"; import getDashboard from "@/hooks/useDashboardsSession";
/*global Nullable, defineProps */ /*global Nullable, defineProps */
@ -105,7 +103,6 @@ limitations under the License. -->
default: () => ({}), default: () => ({}),
}, },
}); });
const { t } = useI18n();
const topologyStore = useTopologyStore(); const topologyStore = useTopologyStore();
const dashboardStore = useDashboardStore(); const dashboardStore = useDashboardStore();
const appStore = useAppStoreWithOut(); const appStore = useAppStoreWithOut();
@ -114,8 +111,6 @@ limitations under the License. -->
const loading = ref<boolean>(false); const loading = ref<boolean>(false);
const svg = ref<Nullable<any>>(null); const svg = ref<Nullable<any>>(null);
const graph = ref<Nullable<any>>(null); const graph = ref<Nullable<any>>(null);
// const settings = ref<any>(props.config);
const showSetting = ref<boolean>(false);
const topologyLayout = ref<any>({}); const topologyLayout = ref<any>({});
const popover = ref<Nullable<any>>(null); const popover = ref<Nullable<any>>(null);
const graphWidth = ref<number>(100); const graphWidth = ref<number>(100);