bfg-common 1.3.95 → 1.3.97
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/tools/chartOptionsModal/counters/table/Table.vue +137 -137
- package/components/common/monitor/lib/models/interfaces.ts +23 -23
- package/components/common/monitor/overview/Overview.vue +228 -470
- package/components/common/pages/Tasks.vue +120 -120
- package/components/common/recursionTree/RecursionTree.vue +203 -203
- package/components/common/vm/actions/clone/Clone.vue +518 -518
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +2 -2
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuModel.vue +220 -220
- package/components/common/vm/actions/common/lib/config/capabilities.ts +1 -1
- package/components/common/vm/actions/common/select/storage/lib/config/config.ts +166 -166
- 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 +2 -2
- 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
|
@@ -1,137 +1,137 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="vertical-flex-container chart-option-counters-vertical-split">
|
|
3
|
-
<span class="chart-options-grid-title">{{
|
|
4
|
-
localization.selectCountersForThisChart
|
|
5
|
-
}}</span>
|
|
6
|
-
|
|
7
|
-
<atoms-table-data-grid
|
|
8
|
-
v-model:selected-row="selectedCounters"
|
|
9
|
-
v-model:column-keys="columnItems"
|
|
10
|
-
v-model:page-size="pagination.pageSize"
|
|
11
|
-
v-model:page="pagination.page"
|
|
12
|
-
type="checkbox"
|
|
13
|
-
class="data-table"
|
|
14
|
-
:head-items="headItems"
|
|
15
|
-
:body-items="bodyItems"
|
|
16
|
-
:total-items="totalItems"
|
|
17
|
-
:total-pages="totalPages"
|
|
18
|
-
hide-footer
|
|
19
|
-
server-off
|
|
20
|
-
@change="onChangeRow"
|
|
21
|
-
/>
|
|
22
|
-
</div>
|
|
23
|
-
</template>
|
|
24
|
-
|
|
25
|
-
<script setup lang="ts">
|
|
26
|
-
import {
|
|
27
|
-
UI_I_HeadItem,
|
|
28
|
-
UI_I_BodyItem,
|
|
29
|
-
UI_I_ColumnKey,
|
|
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'
|
|
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 {
|
|
36
|
-
UI_T_ChartHost,
|
|
37
|
-
UI_T_ChartVm,
|
|
38
|
-
} from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/types'
|
|
39
|
-
import { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
40
|
-
import { countersItemsFunc } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/config/utils'
|
|
41
|
-
|
|
42
|
-
const props = defineProps<{
|
|
43
|
-
chart: UI_T_ChartHost | UI_T_ChartVm
|
|
44
|
-
type: UI_T_AdvancedType
|
|
45
|
-
selectedKeys: number[]
|
|
46
|
-
}>()
|
|
47
|
-
|
|
48
|
-
const emits = defineEmits<{
|
|
49
|
-
(event: 'select-row', value: UI_I_AdvancedCounterItem[]): void
|
|
50
|
-
(event: 'total-items', value: number): void
|
|
51
|
-
}>()
|
|
52
|
-
|
|
53
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
54
|
-
|
|
55
|
-
const counters = computed<UI_I_AdvancedCounterItem[]>(() =>
|
|
56
|
-
countersItemsFunc(props.type, props.chart, localization.value)
|
|
57
|
-
)
|
|
58
|
-
|
|
59
|
-
const totalItems = computed<number>(() => counters.value.length)
|
|
60
|
-
const totalPages = computed<number>(() => 1)
|
|
61
|
-
|
|
62
|
-
watch(
|
|
63
|
-
totalItems,
|
|
64
|
-
(newValue) => {
|
|
65
|
-
emits('total-items', newValue)
|
|
66
|
-
},
|
|
67
|
-
{ immediate: true }
|
|
68
|
-
)
|
|
69
|
-
|
|
70
|
-
const selectedCounters = ref<number[]>([])
|
|
71
|
-
watch(
|
|
72
|
-
() => props.selectedKeys,
|
|
73
|
-
(newValue) => {
|
|
74
|
-
selectedCounters.value = newValue
|
|
75
|
-
},
|
|
76
|
-
{ immediate: true, deep: true }
|
|
77
|
-
)
|
|
78
|
-
watch(
|
|
79
|
-
() => props.chart,
|
|
80
|
-
() => {
|
|
81
|
-
selectedCounters.value = []
|
|
82
|
-
}
|
|
83
|
-
)
|
|
84
|
-
const pagination = ref<UI_I_Pagination>({
|
|
85
|
-
page: 1,
|
|
86
|
-
pageSize: 35,
|
|
87
|
-
})
|
|
88
|
-
|
|
89
|
-
const columnItems = computed<UI_I_ColumnKey[]>(() =>
|
|
90
|
-
table.columnKeys(localization.value)
|
|
91
|
-
)
|
|
92
|
-
const headItems = computed<UI_I_HeadItem[]>(() =>
|
|
93
|
-
table.headItems(localization.value)
|
|
94
|
-
)
|
|
95
|
-
const bodyItems = ref<UI_I_BodyItem[][]>([])
|
|
96
|
-
|
|
97
|
-
watch(
|
|
98
|
-
counters,
|
|
99
|
-
(newValue) => {
|
|
100
|
-
if (!newValue.length) return
|
|
101
|
-
|
|
102
|
-
bodyItems.value = table.bodyItems(newValue)
|
|
103
|
-
},
|
|
104
|
-
{ deep: true, immediate: true }
|
|
105
|
-
)
|
|
106
|
-
|
|
107
|
-
const onChangeRow = (val: number[]): void => {
|
|
108
|
-
const result: UI_I_AdvancedCounterItem[] = []
|
|
109
|
-
|
|
110
|
-
counters.value.forEach((item) => {
|
|
111
|
-
if (val.includes(item.id)) result.push(item)
|
|
112
|
-
})
|
|
113
|
-
|
|
114
|
-
emits('select-row', result)
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
watch(
|
|
118
|
-
selectedCounters,
|
|
119
|
-
(newValue) => {
|
|
120
|
-
onChangeRow(newValue)
|
|
121
|
-
},
|
|
122
|
-
{ immediate: true }
|
|
123
|
-
)
|
|
124
|
-
</script>
|
|
125
|
-
|
|
126
|
-
<style scoped lang="scss">
|
|
127
|
-
.chart-option-counters-vertical-split {
|
|
128
|
-
.chart-options-grid-title {
|
|
129
|
-
display: block;
|
|
130
|
-
margin-bottom: -20px;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
:deep(.datagrid-table-wrapper) {
|
|
134
|
-
max-height: 88px;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="vertical-flex-container chart-option-counters-vertical-split">
|
|
3
|
+
<span class="chart-options-grid-title">{{
|
|
4
|
+
localization.selectCountersForThisChart
|
|
5
|
+
}}</span>
|
|
6
|
+
|
|
7
|
+
<atoms-table-data-grid
|
|
8
|
+
v-model:selected-row="selectedCounters"
|
|
9
|
+
v-model:column-keys="columnItems"
|
|
10
|
+
v-model:page-size="pagination.pageSize"
|
|
11
|
+
v-model:page="pagination.page"
|
|
12
|
+
type="checkbox"
|
|
13
|
+
class="data-table"
|
|
14
|
+
:head-items="headItems"
|
|
15
|
+
:body-items="bodyItems"
|
|
16
|
+
:total-items="totalItems"
|
|
17
|
+
:total-pages="totalPages"
|
|
18
|
+
hide-footer
|
|
19
|
+
server-off
|
|
20
|
+
@change="onChangeRow"
|
|
21
|
+
/>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<script setup lang="ts">
|
|
26
|
+
import {
|
|
27
|
+
UI_I_HeadItem,
|
|
28
|
+
UI_I_BodyItem,
|
|
29
|
+
UI_I_ColumnKey,
|
|
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'
|
|
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 {
|
|
36
|
+
UI_T_ChartHost,
|
|
37
|
+
UI_T_ChartVm,
|
|
38
|
+
} from '~/components/common/monitor/advanced/tools/chartOptionsModal/lib/models/types'
|
|
39
|
+
import { UI_T_AdvancedType } from '~/components/common/monitor/advanced/lib/models/types'
|
|
40
|
+
import { countersItemsFunc } from '~/components/common/monitor/advanced/tools/chartOptionsModal/counters/table/lib/config/utils'
|
|
41
|
+
|
|
42
|
+
const props = defineProps<{
|
|
43
|
+
chart: UI_T_ChartHost | UI_T_ChartVm
|
|
44
|
+
type: UI_T_AdvancedType
|
|
45
|
+
selectedKeys: number[]
|
|
46
|
+
}>()
|
|
47
|
+
|
|
48
|
+
const emits = defineEmits<{
|
|
49
|
+
(event: 'select-row', value: UI_I_AdvancedCounterItem[]): void
|
|
50
|
+
(event: 'total-items', value: number): void
|
|
51
|
+
}>()
|
|
52
|
+
|
|
53
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
54
|
+
|
|
55
|
+
const counters = computed<UI_I_AdvancedCounterItem[]>(() =>
|
|
56
|
+
countersItemsFunc(props.type, props.chart, localization.value)
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
const totalItems = computed<number>(() => counters.value.length)
|
|
60
|
+
const totalPages = computed<number>(() => 1)
|
|
61
|
+
|
|
62
|
+
watch(
|
|
63
|
+
totalItems,
|
|
64
|
+
(newValue) => {
|
|
65
|
+
emits('total-items', newValue)
|
|
66
|
+
},
|
|
67
|
+
{ immediate: true }
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
const selectedCounters = ref<number[]>([])
|
|
71
|
+
watch(
|
|
72
|
+
() => props.selectedKeys,
|
|
73
|
+
(newValue) => {
|
|
74
|
+
selectedCounters.value = newValue
|
|
75
|
+
},
|
|
76
|
+
{ immediate: true, deep: true }
|
|
77
|
+
)
|
|
78
|
+
watch(
|
|
79
|
+
() => props.chart,
|
|
80
|
+
() => {
|
|
81
|
+
selectedCounters.value = []
|
|
82
|
+
}
|
|
83
|
+
)
|
|
84
|
+
const pagination = ref<UI_I_Pagination>({
|
|
85
|
+
page: 1,
|
|
86
|
+
pageSize: 35,
|
|
87
|
+
})
|
|
88
|
+
|
|
89
|
+
const columnItems = computed<UI_I_ColumnKey[]>(() =>
|
|
90
|
+
table.columnKeys(localization.value)
|
|
91
|
+
)
|
|
92
|
+
const headItems = computed<UI_I_HeadItem[]>(() =>
|
|
93
|
+
table.headItems(localization.value)
|
|
94
|
+
)
|
|
95
|
+
const bodyItems = ref<UI_I_BodyItem[][]>([])
|
|
96
|
+
|
|
97
|
+
watch(
|
|
98
|
+
counters,
|
|
99
|
+
(newValue) => {
|
|
100
|
+
if (!newValue.length) return
|
|
101
|
+
|
|
102
|
+
bodyItems.value = table.bodyItems(newValue)
|
|
103
|
+
},
|
|
104
|
+
{ deep: true, immediate: true }
|
|
105
|
+
)
|
|
106
|
+
|
|
107
|
+
const onChangeRow = (val: number[]): void => {
|
|
108
|
+
const result: UI_I_AdvancedCounterItem[] = []
|
|
109
|
+
|
|
110
|
+
counters.value.forEach((item) => {
|
|
111
|
+
if (val.includes(item.id)) result.push(item)
|
|
112
|
+
})
|
|
113
|
+
|
|
114
|
+
emits('select-row', result)
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
watch(
|
|
118
|
+
selectedCounters,
|
|
119
|
+
(newValue) => {
|
|
120
|
+
onChangeRow(newValue)
|
|
121
|
+
},
|
|
122
|
+
{ immediate: true }
|
|
123
|
+
)
|
|
124
|
+
</script>
|
|
125
|
+
|
|
126
|
+
<style scoped lang="scss">
|
|
127
|
+
.chart-option-counters-vertical-split {
|
|
128
|
+
.chart-options-grid-title {
|
|
129
|
+
display: block;
|
|
130
|
+
margin-bottom: -20px;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
:deep(.datagrid-table-wrapper) {
|
|
134
|
+
max-height: 88px;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
</style>
|
|
@@ -1,23 +1,23 @@
|
|
|
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'
|
|
3
|
-
|
|
4
|
-
export interface UI_I_GraphDataSettingItem {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface UI_I_MonitorGraphPayload {
|
|
12
|
-
period: number[]
|
|
13
|
-
view: string
|
|
14
|
-
periodType?: string
|
|
15
|
-
id?: string
|
|
16
|
-
requestType?: UI_T_OverviewRequestType
|
|
17
|
-
storageId?: string
|
|
18
|
-
hostName?: string
|
|
19
|
-
fields?: string
|
|
20
|
-
metricType?: string
|
|
21
|
-
place?: number
|
|
22
|
-
periodName?: string
|
|
23
|
-
}
|
|
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'
|
|
3
|
+
|
|
4
|
+
export interface UI_I_GraphDataSettingItem {
|
|
5
|
+
title: string
|
|
6
|
+
loader: boolean
|
|
7
|
+
data: I_SeriesLine | null
|
|
8
|
+
chartType: string
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface UI_I_MonitorGraphPayload {
|
|
12
|
+
period: number[]
|
|
13
|
+
view: string
|
|
14
|
+
periodType?: string
|
|
15
|
+
id?: string
|
|
16
|
+
requestType?: UI_T_OverviewRequestType
|
|
17
|
+
storageId?: string
|
|
18
|
+
hostName?: string
|
|
19
|
+
fields?: string
|
|
20
|
+
metricType?: string
|
|
21
|
+
place?: number
|
|
22
|
+
periodName?: string
|
|
23
|
+
}
|