bfg-common 1.3.142 → 1.3.144
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/scss/common/icons/icons-2.scss +222 -222
- package/components/atoms/switch/Switch.vue +107 -107
- package/components/atoms/table/dataGrid/DataGrid.vue +1576 -1576
- package/components/common/monitor/advanced/Advanced.vue +9 -9
- package/components/common/monitor/advanced/GraphView.vue +2 -2
- package/components/common/monitor/advanced/lib/models/interfaces.ts +2 -1
- package/components/common/monitor/advanced/lib/models/types.ts +1 -1
- package/components/common/monitor/advanced/table/Table.vue +3 -3
- package/components/common/monitor/advanced/table/lib/config/performanceDatatable.ts +4 -4
- package/components/common/monitor/advanced/tools/Tools.vue +9 -9
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModal.vue +7 -7
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/Actions.vue +2 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/lib/utils/optionsActions.ts +2 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/actions/saveOptionsModal/SaveOptionsModal.vue +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/Counters.vue +3 -3
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/Table.vue +6 -6
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/config/tableConfig.ts +4 -4
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/config/utils.ts +5 -5
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/Timespan.vue +2 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/form/Form.vue +2 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/form/lib/config/dateForm.ts +2 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/Object.vue +6 -6
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/lib/config/objectTable.ts +4 -4
- package/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/interfaces.ts +1 -1
- package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/Metrics.vue +2 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/metrics/lib/config/optionsMetrics.ts +40 -4
- package/components/common/monitor/advanced/tools/lib/config/advancedToolbar.ts +12 -7
- package/components/common/monitor/advanced/tools/lib/utils/countCores.ts +1 -1
- package/components/common/monitor/lib/models/interfaces.ts +2 -2
- package/components/common/monitor/overview/filters/Filters.vue +5 -5
- package/components/common/monitor/overview/filters/lib/config/filterOptions.ts +6 -5
- package/components/common/monitor/overview/filters/lib/models/interfaces.ts +2 -1
- package/components/common/monitor/overview/filters/lib/models/types.ts +12 -2
- package/components/common/pages/Tasks.vue +120 -120
- package/components/common/recursionTree/RecursionTree.vue +203 -203
- package/components/common/vm/actions/add/Add.vue +575 -575
- package/components/common/vm/actions/clone/Clone.vue +518 -518
- package/components/common/vm/actions/common/customizeHardware/CustomizeHardware.vue +269 -269
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/VirtualHardware.vue +682 -682
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuModel.vue +220 -220
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +164 -164
- package/components/common/vm/actions/common/select/storage/lib/config/config.ts +166 -166
- package/components/common/vm/actions/editSettings/EditSettings.vue +313 -313
- package/composables/useAppVersion.ts +21 -21
- package/composables/useEnvLanguage.ts +20 -20
- package/composables/useLocal.ts +38 -38
- package/lib/utils/sendTask.ts +72 -72
- package/minify.js +146 -146
- package/package.json +1 -1
- package/public/spice-console/application/codec.js +257 -257
- package/public/spice-console/lib/rasterEngine.js +907 -907
- package/public/spice-console/network/spicechannel.js +369 -369
- package/store/main/lib/interfaces.ts +9 -9
- package/store/tasks/actions.ts +133 -133
- package/store/tasks/getters.ts +25 -25
- package/store/tasks/lib/models/interfaces.ts +18 -18
- package/store/tasks/mutations.ts +58 -58
- package/store/tasks/state.ts +16 -16
|
@@ -89,18 +89,18 @@
|
|
|
89
89
|
</template>
|
|
90
90
|
|
|
91
91
|
<script setup lang="ts">
|
|
92
|
-
import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
93
|
-
import { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
94
|
-
import { I_SeriesLine } from 'bfg-nuxt-3-graph/graph/lib/models/interfaces'
|
|
95
|
-
import { UI_I_MonitorGraphPayload } from '~/components/common/monitor/lib/models/interfaces'
|
|
96
|
-
import { UI_I_PerformanceItem } from '~/components/common/monitor/advanced/table/lib/models/interfaces'
|
|
97
|
-
import {
|
|
92
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
93
|
+
import type { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
94
|
+
import type { I_SeriesLine } from 'bfg-nuxt-3-graph/graph/lib/models/interfaces'
|
|
95
|
+
import type { UI_I_MonitorGraphPayload } from '~/components/common/monitor/lib/models/interfaces'
|
|
96
|
+
import type { UI_I_PerformanceItem } from '~/components/common/monitor/advanced/table/lib/models/interfaces'
|
|
97
|
+
import type {
|
|
98
98
|
UI_T_ChartHost,
|
|
99
99
|
UI_T_ChartVm,
|
|
100
100
|
} from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/types'
|
|
101
|
-
import { UI_I_OptionsForm } from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/interfaces'
|
|
102
|
-
import { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
103
|
-
import { UI_T_Project } from '~/lib/models/types'
|
|
101
|
+
import type { UI_I_OptionsForm } from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/interfaces'
|
|
102
|
+
import type { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
103
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
104
104
|
import { getCountCores } from '~/components/common/monitor/advanced/tools/lib/utils/countCores'
|
|
105
105
|
|
|
106
106
|
const props = defineProps<{
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
<script setup lang="ts">
|
|
20
20
|
import { useDebounceFn, useElementSize } from '@vueuse/core'
|
|
21
21
|
import { format } from 'date-fns'
|
|
22
|
-
import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
22
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
23
23
|
import { graphDataFunc } from 'bfg-nuxt-3-graph/graph/lib/utils/renderGraph'
|
|
24
|
-
import {
|
|
24
|
+
import type {
|
|
25
25
|
I_LineGraph,
|
|
26
26
|
I_SeriesLine,
|
|
27
27
|
} from 'bfg-nuxt-3-graph/graph/lib/models/interfaces'
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
1
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
2
2
|
|
|
3
3
|
export interface UI_I_OptionData {
|
|
4
|
+
zone: UI_I_OptionItem[]
|
|
4
5
|
cluster: UI_I_OptionItem[]
|
|
5
6
|
datacenter: UI_I_OptionItem[]
|
|
6
7
|
host: UI_I_OptionItem[]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type UI_T_AdvancedType = 'cluster' | 'datacenter' | 'host' | 'vm'
|
|
1
|
+
export type UI_T_AdvancedType = 'zone' | 'cluster' | 'datacenter' | 'host' | 'vm'
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
</template>
|
|
28
28
|
|
|
29
29
|
<script setup lang="ts">
|
|
30
|
-
import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
31
|
-
import {
|
|
30
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
31
|
+
import type {
|
|
32
32
|
UI_I_HeadItem,
|
|
33
33
|
UI_I_BodyItem,
|
|
34
34
|
UI_I_ColumnKey,
|
|
35
35
|
} from '~/components/atoms/table/dataGrid/lib/models/interfaces'
|
|
36
|
-
import { UI_I_PerformanceItem } from '~/components/common/monitor/advanced/table/lib/models/interfaces'
|
|
36
|
+
import type { UI_I_PerformanceItem } from '~/components/common/monitor/advanced/table/lib/models/interfaces'
|
|
37
37
|
import * as table from '~/components/common/monitor/advanced/table/lib/config/performanceDatatable'
|
|
38
38
|
|
|
39
39
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
-
import {
|
|
1
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
+
import type {
|
|
3
3
|
UI_I_HeadItem,
|
|
4
4
|
UI_I_BodyItem,
|
|
5
5
|
UI_I_ColumnKey,
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
constructColumnKey,
|
|
9
9
|
constructHeadItem,
|
|
10
10
|
} from '~/components/atoms/table/dataGrid/lib/utils/constructDataTable'
|
|
11
|
-
import { UI_T_PerformanceColumnKey } from '~/components/common/monitor/advanced/table/lib/models/types'
|
|
12
|
-
import { UI_I_PerformanceItem } from '~/components/common/monitor/advanced/table/lib/models/interfaces'
|
|
11
|
+
import type { UI_T_PerformanceColumnKey } from '~/components/common/monitor/advanced/table/lib/models/types'
|
|
12
|
+
import type { UI_I_PerformanceItem } from '~/components/common/monitor/advanced/table/lib/models/interfaces'
|
|
13
13
|
|
|
14
14
|
export const performanceTableKey: UI_T_PerformanceColumnKey[] = [
|
|
15
15
|
'key',
|
|
@@ -123,18 +123,18 @@
|
|
|
123
123
|
</template>
|
|
124
124
|
|
|
125
125
|
<script setup lang="ts">
|
|
126
|
-
import { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
127
|
-
import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
128
|
-
import { UI_I_MonitorGraphPayload } from '~/components/common/monitor/lib/models/interfaces'
|
|
129
|
-
import { UI_I_DropMenu } from '~/components/common/monitor/advanced/tools/lib/models/interfaces'
|
|
130
|
-
import { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
131
|
-
import {
|
|
126
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
127
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
128
|
+
import type { UI_I_MonitorGraphPayload } from '~/components/common/monitor/lib/models/interfaces'
|
|
129
|
+
import type { UI_I_DropMenu } from '~/components/common/monitor/advanced/tools/lib/models/interfaces'
|
|
130
|
+
import type { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
131
|
+
import type {
|
|
132
132
|
UI_T_ChartHost,
|
|
133
133
|
UI_T_ChartVm,
|
|
134
134
|
} from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/types'
|
|
135
|
-
import { UI_I_OptionsForm } from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/interfaces'
|
|
136
|
-
import { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
137
|
-
import { UI_T_Project } from '~/lib/models/types'
|
|
135
|
+
import type { UI_I_OptionsForm } from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/interfaces'
|
|
136
|
+
import type { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
137
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
138
138
|
import { getValidDateByOptionFunc } from '~/components/common/monitor/lib/config/getValidDateByOption'
|
|
139
139
|
import {
|
|
140
140
|
periodFunc,
|
|
@@ -70,16 +70,16 @@
|
|
|
70
70
|
</template>
|
|
71
71
|
|
|
72
72
|
<script setup lang="ts">
|
|
73
|
-
import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
74
|
-
import { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
75
|
-
import { UI_I_VerticalTabs } from '~/components/atoms/tabs/lib/models/interfaces'
|
|
76
|
-
import { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
77
|
-
import {
|
|
73
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
74
|
+
import type { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
75
|
+
import type { UI_I_VerticalTabs } from '~/components/atoms/tabs/lib/models/interfaces'
|
|
76
|
+
import type { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
77
|
+
import type {
|
|
78
78
|
UI_T_ChartHost,
|
|
79
79
|
UI_T_ChartVm,
|
|
80
80
|
} from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/types'
|
|
81
|
-
import { UI_I_OptionsForm } from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/interfaces'
|
|
82
|
-
import { UI_T_Project } from '~/lib/models/types'
|
|
81
|
+
import type { UI_I_OptionsForm } from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/interfaces'
|
|
82
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
83
83
|
import { metricsFunc } from '~/components/common/monitor/advanced/tools/chartOptionsModal/metrics/lib/config/optionsMetrics'
|
|
84
84
|
import { getCurrentOptionsStorageFunc } from '~/components/common/monitor/advanced/tools/lib/config/advancedToolbar'
|
|
85
85
|
import { checkDateFunc } from '~/components/common/monitor/overview/filters/customIntervalModal/lib/config/dateChecker'
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
</template>
|
|
49
49
|
|
|
50
50
|
<script setup lang="ts">
|
|
51
|
-
import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
52
|
-
import { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
51
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
52
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
53
53
|
import { chartOptionItems } from '~/components/common/monitor/advanced/tools/chartOptionsModal/actions/lib/utils/optionsActions'
|
|
54
54
|
|
|
55
55
|
const props = defineProps<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
-
import { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
1
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
3
3
|
|
|
4
4
|
export const chartOptionItems = (
|
|
5
5
|
localization: UI_I_Localization,
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
</template>
|
|
44
44
|
|
|
45
45
|
<script setup lang="ts">
|
|
46
|
-
import {
|
|
46
|
+
import type {
|
|
47
47
|
UI_T_ChartHost,
|
|
48
48
|
UI_T_ChartVm,
|
|
49
49
|
} from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/types'
|
|
50
|
-
import { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
51
|
-
import { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
50
|
+
import type { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
51
|
+
import type { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
52
52
|
|
|
53
53
|
const props = defineProps<{
|
|
54
54
|
language: string
|
|
@@ -23,20 +23,20 @@
|
|
|
23
23
|
</template>
|
|
24
24
|
|
|
25
25
|
<script setup lang="ts">
|
|
26
|
-
import {
|
|
26
|
+
import type {
|
|
27
27
|
UI_I_HeadItem,
|
|
28
28
|
UI_I_BodyItem,
|
|
29
29
|
UI_I_ColumnKey,
|
|
30
30
|
} from '~/components/atoms/table/dataGrid/lib/models/interfaces'
|
|
31
|
-
import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
32
|
-
import { UI_I_Pagination } from '~/lib/models/table/interfaces'
|
|
31
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
32
|
+
import type { UI_I_Pagination } from '~/lib/models/table/interfaces'
|
|
33
33
|
import * as table from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/config/tableConfig'
|
|
34
|
-
import { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
35
|
-
import {
|
|
34
|
+
import type { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
35
|
+
import type {
|
|
36
36
|
UI_T_ChartHost,
|
|
37
37
|
UI_T_ChartVm,
|
|
38
38
|
} from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/types'
|
|
39
|
-
import { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
39
|
+
import type { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
40
40
|
import { countersItemsFunc } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/config/utils'
|
|
41
41
|
|
|
42
42
|
const props = defineProps<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
-
import {
|
|
1
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
+
import type {
|
|
3
3
|
UI_I_HeadItem,
|
|
4
4
|
UI_I_BodyItem,
|
|
5
5
|
UI_I_ColumnKey,
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
constructColumnKey,
|
|
9
9
|
constructHeadItem,
|
|
10
10
|
} from '~/components/atoms/table/dataGrid/lib/utils/constructDataTable'
|
|
11
|
-
import { UI_T_AdvancedCountersColumnKey } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/types'
|
|
12
|
-
import { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
11
|
+
import type { UI_T_AdvancedCountersColumnKey } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/types'
|
|
12
|
+
import type { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
13
13
|
|
|
14
14
|
export const countersTableKey: UI_T_AdvancedCountersColumnKey[] = [
|
|
15
15
|
'name',
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
2
|
-
import { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
3
|
-
import {
|
|
1
|
+
import type { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
2
|
+
import type { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
3
|
+
import type {
|
|
4
4
|
I_HostMetrics,
|
|
5
5
|
I_VmMetrics,
|
|
6
6
|
} from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
7
|
-
import {
|
|
7
|
+
import type {
|
|
8
8
|
UI_T_ChartHost,
|
|
9
9
|
UI_T_ChartVm,
|
|
10
10
|
} from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/types'
|
|
11
|
-
import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
11
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
12
12
|
|
|
13
13
|
const hostItemsFunc = (
|
|
14
14
|
chart: UI_T_ChartHost,
|
package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/Timespan.vue
CHANGED
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
</template>
|
|
38
38
|
|
|
39
39
|
<script setup lang="ts">
|
|
40
|
-
import { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
41
|
-
import {
|
|
40
|
+
import type { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
41
|
+
import type {
|
|
42
42
|
UI_T_ChartHost,
|
|
43
43
|
UI_T_ChartVm,
|
|
44
44
|
} from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/types'
|
package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/form/Form.vue
CHANGED
|
@@ -206,8 +206,8 @@
|
|
|
206
206
|
|
|
207
207
|
<script setup lang="ts">
|
|
208
208
|
import { format } from 'date-fns'
|
|
209
|
-
import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
210
|
-
import { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
209
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
210
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
211
211
|
import {
|
|
212
212
|
timespanFunc,
|
|
213
213
|
customTimeFunc,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
-
import { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
1
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
3
3
|
|
|
4
4
|
export const timespanFunc = (localization: UI_I_Localization): UI_I_OptionItem[] => [
|
|
5
5
|
{
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
</template>
|
|
28
28
|
|
|
29
29
|
<script setup lang="ts">
|
|
30
|
-
import {
|
|
30
|
+
import type {
|
|
31
31
|
UI_I_HeadItem,
|
|
32
32
|
UI_I_BodyItem,
|
|
33
33
|
UI_I_ColumnKey,
|
|
34
34
|
} from '~/components/atoms/table/dataGrid/lib/models/interfaces'
|
|
35
|
-
import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
36
|
-
import { UI_I_Pagination } from '~/lib/models/table/interfaces'
|
|
37
|
-
import { UI_I_AdvancedTargetObject } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
35
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
36
|
+
import type { UI_I_Pagination } from '~/lib/models/table/interfaces'
|
|
37
|
+
import type { UI_I_AdvancedTargetObject } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
38
38
|
import * as table from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/lib/config/objectTable'
|
|
39
|
-
import { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
40
|
-
import {
|
|
39
|
+
import type { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
40
|
+
import type {
|
|
41
41
|
UI_T_ChartHost,
|
|
42
42
|
UI_T_ChartVm,
|
|
43
43
|
} from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/types'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
-
import {
|
|
1
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
+
import type {
|
|
3
3
|
UI_I_HeadItem,
|
|
4
4
|
UI_I_BodyItem,
|
|
5
5
|
UI_I_ColumnKey,
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
constructColumnKey,
|
|
9
9
|
constructHeadItem,
|
|
10
10
|
} from '~/components/atoms/table/dataGrid/lib/utils/constructDataTable'
|
|
11
|
-
import { UI_T_ObjectColumnKey } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/lib/models/types'
|
|
12
|
-
import { UI_I_ObjectItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/lib/models/interfaces'
|
|
11
|
+
import type { UI_T_ObjectColumnKey } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/lib/models/types'
|
|
12
|
+
import type { UI_I_ObjectItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/lib/models/interfaces'
|
|
13
13
|
|
|
14
14
|
export const objectTableKey: UI_T_ObjectColumnKey[] = ['target_object']
|
|
15
15
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
1
|
+
import type { UI_I_AdvancedCounterItem } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/models/interfaces'
|
|
2
2
|
|
|
3
3
|
export interface UI_I_OptionsForm {
|
|
4
4
|
fields: string
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
</template>
|
|
10
10
|
|
|
11
11
|
<script setup lang="ts">
|
|
12
|
-
import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
13
|
-
import { UI_I_VerticalTabs } from '~/components/atoms/tabs/lib/models/interfaces'
|
|
12
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
13
|
+
import type { UI_I_VerticalTabs } from '~/components/atoms/tabs/lib/models/interfaces'
|
|
14
14
|
|
|
15
15
|
const props = defineProps<{
|
|
16
16
|
metricsItems: UI_I_VerticalTabs[]
|
|
@@ -1,13 +1,49 @@
|
|
|
1
|
-
import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
-
import { UI_I_VerticalTabs } from '~/components/atoms/tabs/lib/models/interfaces'
|
|
3
|
-
import { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
4
|
-
import { UI_I_OptionData } from '~/components/common/monitor/advanced/lib/models/interfaces'
|
|
1
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
+
import type { UI_I_VerticalTabs } from '~/components/atoms/tabs/lib/models/interfaces'
|
|
3
|
+
import type { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
4
|
+
import type { UI_I_OptionData } from '~/components/common/monitor/advanced/lib/models/interfaces'
|
|
5
5
|
|
|
6
6
|
export const metricsFunc = (
|
|
7
7
|
localization: UI_I_Localization,
|
|
8
8
|
type: UI_T_AdvancedType
|
|
9
9
|
): UI_I_VerticalTabs[] => {
|
|
10
10
|
const metrics: UI_I_OptionData = {
|
|
11
|
+
zone: [
|
|
12
|
+
{
|
|
13
|
+
text: localization.cpu,
|
|
14
|
+
value: 'cpu',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
text: localization.disk,
|
|
18
|
+
value: 'disk',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
text: localization.memory,
|
|
22
|
+
value: 'memory',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
text: localization.network,
|
|
26
|
+
value: 'network',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
cluster: [
|
|
30
|
+
{
|
|
31
|
+
text: localization.cpu,
|
|
32
|
+
value: 'cpu',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
text: localization.disk,
|
|
36
|
+
value: 'disk',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
text: localization.memory,
|
|
40
|
+
value: 'memory',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
text: localization.network,
|
|
44
|
+
value: 'network',
|
|
45
|
+
},
|
|
46
|
+
],
|
|
11
47
|
datacenter: [
|
|
12
48
|
{
|
|
13
49
|
text: localization.cpu,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
-
import { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
3
|
-
import { UI_I_DropMenu } from '~/components/common/monitor/advanced/tools/lib/models/interfaces'
|
|
4
|
-
import { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
5
|
-
import { UI_I_OptionData } from '~/components/common/monitor/advanced/lib/models/interfaces'
|
|
6
|
-
import { UI_T_Project } from '~/lib/models/types'
|
|
1
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
3
|
+
import type { UI_I_DropMenu } from '~/components/common/monitor/advanced/tools/lib/models/interfaces'
|
|
4
|
+
import type { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
5
|
+
import type { UI_I_OptionData } from '~/components/common/monitor/advanced/lib/models/interfaces'
|
|
6
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
7
7
|
|
|
8
8
|
export const periodFunc = (
|
|
9
9
|
localization: UI_I_Localization,
|
|
@@ -48,7 +48,12 @@ export const viewFunc = (
|
|
|
48
48
|
optionsNames?: string[]
|
|
49
49
|
): UI_I_OptionItem[] => {
|
|
50
50
|
const viewData: UI_I_OptionData = {
|
|
51
|
-
|
|
51
|
+
zone: [
|
|
52
|
+
{ text: localization.cpuUsageInPercent, value: 'cpuUsageInPercent' },
|
|
53
|
+
],
|
|
54
|
+
cluster: [
|
|
55
|
+
{ text: localization.cpuUsageInPercent, value: 'cpuUsageInPercent' },
|
|
56
|
+
],
|
|
52
57
|
datacenter: [
|
|
53
58
|
{
|
|
54
59
|
text: localization.virtualMachineOperations,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I_SeriesLine } from 'bfg-nuxt-3-graph/graph/lib/models/interfaces'
|
|
2
|
-
import { UI_T_OverviewRequestType } from '~/components/common/monitor/overview/filters/lib/models/types'
|
|
1
|
+
import type { I_SeriesLine } from 'bfg-nuxt-3-graph/graph/lib/models/interfaces'
|
|
2
|
+
import type { UI_T_OverviewRequestType } from '~/components/common/monitor/overview/filters/lib/models/types'
|
|
3
3
|
|
|
4
4
|
export interface UI_I_GraphDataSettingItem {
|
|
5
5
|
title: string
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
</template>
|
|
54
54
|
|
|
55
55
|
<script setup lang="ts">
|
|
56
|
-
import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
57
|
-
import { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
58
|
-
import { UI_T_Project } from '~/lib/models/types'
|
|
59
|
-
import { UI_I_MonitorGraphPayload } from '~/components/common/monitor/lib/models/interfaces'
|
|
60
|
-
import { UI_T_OverviewViewType } from '~/components/common/monitor/overview/filters/lib/models/types'
|
|
56
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
57
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
58
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
59
|
+
import type { UI_I_MonitorGraphPayload } from '~/components/common/monitor/lib/models/interfaces'
|
|
60
|
+
import type { UI_T_OverviewViewType } from '~/components/common/monitor/overview/filters/lib/models/types'
|
|
61
61
|
import {
|
|
62
62
|
periodFunc,
|
|
63
63
|
viewFunc,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
-
import { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
3
|
-
import { UI_I_OverviewViewOptionData } from '~/components/common/monitor/overview/filters/lib/models/interfaces'
|
|
4
|
-
import { UI_T_OverviewViewType } from '~/components/common/monitor/overview/filters/lib/models/types'
|
|
5
|
-
import { UI_T_Project } from '~/lib/models/types'
|
|
1
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
3
|
+
import type { UI_I_OverviewViewOptionData } from '~/components/common/monitor/overview/filters/lib/models/interfaces'
|
|
4
|
+
import type { UI_T_OverviewViewType } from '~/components/common/monitor/overview/filters/lib/models/types'
|
|
5
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
6
6
|
|
|
7
7
|
export const periodFunc = (
|
|
8
8
|
localization: UI_I_Localization
|
|
@@ -53,6 +53,7 @@ export const viewFunc = (
|
|
|
53
53
|
})
|
|
54
54
|
|
|
55
55
|
const viewData: UI_I_OverviewViewOptionData = {
|
|
56
|
+
zone: [{ text: localization.overview, value: 'overview' }],
|
|
56
57
|
datacenter: [
|
|
57
58
|
{
|
|
58
59
|
text: localization.clusters,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
1
|
+
import type { UI_I_OptionItem } from '~/components/atoms/lib/models/interfaces'
|
|
2
2
|
|
|
3
3
|
export interface UI_I_OverviewViewOptionData {
|
|
4
|
+
zone: UI_I_OptionItem[]
|
|
4
5
|
datacenter: UI_I_OptionItem[]
|
|
5
6
|
host: UI_I_OptionItem[]
|
|
6
7
|
vm: UI_I_OptionItem[]
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
-
export type UI_T_OverviewViewType =
|
|
1
|
+
export type UI_T_OverviewViewType =
|
|
2
|
+
| 'zone'
|
|
3
|
+
| 'host'
|
|
4
|
+
| 'vm'
|
|
5
|
+
| 'datacenter'
|
|
6
|
+
| 'cluster'
|
|
2
7
|
|
|
3
|
-
export type UI_T_OverviewRequestType =
|
|
8
|
+
export type UI_T_OverviewRequestType =
|
|
9
|
+
| 'cluster'
|
|
10
|
+
| 'zone'
|
|
11
|
+
| 'hosts'
|
|
12
|
+
| 'vms'
|
|
13
|
+
| 'datacenters'
|