From 0e8195c44f67f02a8a20d412ec99d2cb21bd358d Mon Sep 17 00:00:00 2001 From: P4l0m4 Date: Tue, 16 Jul 2024 10:30:32 +0200 Subject: [PATCH] update to match parent PR --- .../lib/components/DonutWithLegends.vue | 76 +++++++++++++++++++ .../web-core/lib/types/donut-chart.type.ts | 4 +- .../{ui-legend.type.ts => legend.type.ts} | 0 .../web/src/components/DonutWithLegends.vue | 72 ------------------ .../components/pool/dashboard/VmStatus.vue | 10 +-- 5 files changed, 83 insertions(+), 79 deletions(-) create mode 100644 @xen-orchestra/web-core/lib/components/DonutWithLegends.vue rename @xen-orchestra/web-core/lib/types/{ui-legend.type.ts => legend.type.ts} (100%) delete mode 100644 @xen-orchestra/web/src/components/DonutWithLegends.vue diff --git a/@xen-orchestra/web-core/lib/components/DonutWithLegends.vue b/@xen-orchestra/web-core/lib/components/DonutWithLegends.vue new file mode 100644 index 00000000000..26ed3ca648c --- /dev/null +++ b/@xen-orchestra/web-core/lib/components/DonutWithLegends.vue @@ -0,0 +1,76 @@ + + + + + diff --git a/@xen-orchestra/web-core/lib/types/donut-chart.type.ts b/@xen-orchestra/web-core/lib/types/donut-chart.type.ts index fa3d2f946c7..19d1adcec14 100644 --- a/@xen-orchestra/web-core/lib/types/donut-chart.type.ts +++ b/@xen-orchestra/web-core/lib/types/donut-chart.type.ts @@ -1,5 +1,5 @@ -export type DonutColor = 'success' | 'warning' | 'error' | 'unknown' +export type DonutSegmentColor = 'success' | 'warning' | 'error' | 'unknown' export type DonutSegment = { value: number - color: DonutColor + color: DonutSegmentColor } diff --git a/@xen-orchestra/web-core/lib/types/ui-legend.type.ts b/@xen-orchestra/web-core/lib/types/legend.type.ts similarity index 100% rename from @xen-orchestra/web-core/lib/types/ui-legend.type.ts rename to @xen-orchestra/web-core/lib/types/legend.type.ts diff --git a/@xen-orchestra/web/src/components/DonutWithLegends.vue b/@xen-orchestra/web/src/components/DonutWithLegends.vue deleted file mode 100644 index ca209113b49..00000000000 --- a/@xen-orchestra/web/src/components/DonutWithLegends.vue +++ /dev/null @@ -1,72 +0,0 @@ - - - - - diff --git a/@xen-orchestra/web/src/components/pool/dashboard/VmStatus.vue b/@xen-orchestra/web/src/components/pool/dashboard/VmStatus.vue index b4b79ee8d9d..a0310375e57 100644 --- a/@xen-orchestra/web/src/components/pool/dashboard/VmStatus.vue +++ b/@xen-orchestra/web/src/components/pool/dashboard/VmStatus.vue @@ -7,12 +7,12 @@