bfg-common 1.3.233 → 1.3.235
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/localization/local_be.json +4 -1
- package/assets/localization/local_en.json +4 -1
- package/assets/localization/local_hy.json +4 -1
- package/assets/localization/local_kk.json +4 -1
- package/assets/localization/local_ru.json +4 -1
- package/assets/localization/local_zh.json +4 -1
- package/assets/scss/common/normalize.scss +4 -0
- package/components/atoms/switch/Switch.vue +111 -111
- package/components/atoms/table/compact/Compact.vue +526 -526
- package/components/common/diagramMain/lib/models/interfaces.ts +1 -1
- package/components/common/diagramMain/modals/lib/config/networkModal.ts +5 -5
- 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 +693 -693
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/CpuModel.vue +220 -220
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/lib/config/dropdownItems.ts +59 -59
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +294 -294
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/NewPciDevice.vue +165 -165
- 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/components/common/weekSelect/WeekSelect.vue +112 -112
- package/components/common/weekSelect/lib/config/options.ts +10 -10
- package/composables/useAppVersion.ts +21 -21
- package/composables/useEnvLanguage.ts +20 -20
- 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
|
@@ -134,7 +134,7 @@ export interface UI_I_NetworkSummaryPortletListItem<
|
|
|
134
134
|
label: string
|
|
135
135
|
value: T
|
|
136
136
|
id: string
|
|
137
|
-
initialValue
|
|
137
|
+
initialValue: UI_I_OverrideValue<T>
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
export interface UI_I_NetworkInfo<T = string | number | boolean> {
|
|
@@ -47,7 +47,7 @@ export const networkViewSettingsFunc = (
|
|
|
47
47
|
(
|
|
48
48
|
teaming: UI_I_NetworkSummaryPortletListItem<UI_E_IBSTLoadBalancingMode>
|
|
49
49
|
) => teaming.id === 'mode'
|
|
50
|
-
)?.value || UI_E_IBSTLoadBalancingMode.BACKUP
|
|
50
|
+
)?.initialValue?.value || UI_E_IBSTLoadBalancingMode.BACKUP
|
|
51
51
|
|
|
52
52
|
let loadBalancingValue: string
|
|
53
53
|
|
|
@@ -167,7 +167,7 @@ export const networkViewSettingsFunc = (
|
|
|
167
167
|
(
|
|
168
168
|
teaming: UI_I_NetworkSummaryPortletListItem<UI_E_ICBLinkDetectionMode>
|
|
169
169
|
) => teaming.id === 'link_detect'
|
|
170
|
-
)?.value === 1
|
|
170
|
+
)?.initialValue?.value === 1
|
|
171
171
|
? localization.linkStatusOnly
|
|
172
172
|
: localization.beaconProbing,
|
|
173
173
|
},
|
|
@@ -179,7 +179,7 @@ export const networkViewSettingsFunc = (
|
|
|
179
179
|
)?.find(
|
|
180
180
|
(teaming: UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>) =>
|
|
181
181
|
teaming.id === 'notify_switches'
|
|
182
|
-
)?.value === UI_E_IYNOption.YES
|
|
182
|
+
)?.initialValue?.value === UI_E_IYNOption.YES
|
|
183
183
|
? localization.yes
|
|
184
184
|
: localization.no,
|
|
185
185
|
},
|
|
@@ -191,7 +191,7 @@ export const networkViewSettingsFunc = (
|
|
|
191
191
|
)?.find(
|
|
192
192
|
(teaming: UI_I_NetworkSummaryPortletListItem<UI_E_IYNOption>) =>
|
|
193
193
|
teaming.id === 'failback'
|
|
194
|
-
)?.value === UI_E_IYNOption.YES
|
|
194
|
+
)?.initialValue?.value === UI_E_IYNOption.YES
|
|
195
195
|
? localization.yes
|
|
196
196
|
: localization.no,
|
|
197
197
|
},
|
|
@@ -326,4 +326,4 @@ export const teamingAndFailoverTemplateMakerFunc = (
|
|
|
326
326
|
},
|
|
327
327
|
],
|
|
328
328
|
},
|
|
329
|
-
]
|
|
329
|
+
]
|
|
@@ -1,120 +1,120 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="tasks">
|
|
3
|
-
<common-headline
|
|
4
|
-
:headline="localization.taskConsole"
|
|
5
|
-
class="tasks__headline"
|
|
6
|
-
/>
|
|
7
|
-
|
|
8
|
-
<div class="btn-group">
|
|
9
|
-
<button
|
|
10
|
-
id="task-previous-button"
|
|
11
|
-
class="btn btn-sm btn-link nav-link"
|
|
12
|
-
:disabled="pagination.page === 1"
|
|
13
|
-
@click="onClickButton('previous')"
|
|
14
|
-
>
|
|
15
|
-
{{ localization.previous }}
|
|
16
|
-
</button>
|
|
17
|
-
|
|
18
|
-
<button
|
|
19
|
-
id="task-next-button"
|
|
20
|
-
class="btn btn-sm btn-link nav-link"
|
|
21
|
-
:disabled="pagination.page === tasksList?.total_pages"
|
|
22
|
-
@click="onClickButton('next')"
|
|
23
|
-
>
|
|
24
|
-
{{ localization.next }}
|
|
25
|
-
</button>
|
|
26
|
-
</div>
|
|
27
|
-
|
|
28
|
-
<templates-tasks-table-view
|
|
29
|
-
:data-table="tasksList?.items || []"
|
|
30
|
-
:total-items="tasksList?.total_items || 0"
|
|
31
|
-
:total-pages="tasksList?.total_pages || 1"
|
|
32
|
-
:pagination="pagination"
|
|
33
|
-
:loading="isLoading"
|
|
34
|
-
@pagination="onUpdatePagination"
|
|
35
|
-
@sort="onSortTable"
|
|
36
|
-
/>
|
|
37
|
-
</div>
|
|
38
|
-
</template>
|
|
39
|
-
|
|
40
|
-
<script lang="ts" setup>
|
|
41
|
-
import type {
|
|
42
|
-
UI_I_Localization,
|
|
43
|
-
} from '~/lib/models/interfaces'
|
|
44
|
-
import type {
|
|
45
|
-
UI_I_Pagination,
|
|
46
|
-
UI_I_DataTableQuery,
|
|
47
|
-
} from '~/lib/models/table/interfaces'
|
|
48
|
-
import type { UI_I_Task } from '~/lib/models/store/tasks/interfaces'
|
|
49
|
-
|
|
50
|
-
definePageMeta({
|
|
51
|
-
middleware: ['auth'],
|
|
52
|
-
})
|
|
53
|
-
|
|
54
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
55
|
-
const { $store }: any = useNuxtApp()
|
|
56
|
-
|
|
57
|
-
const pagination = ref<UI_I_Pagination>({
|
|
58
|
-
page: 1,
|
|
59
|
-
pageSize: 100,
|
|
60
|
-
})
|
|
61
|
-
const sort = ref<string | null>(null)
|
|
62
|
-
|
|
63
|
-
const tasksList = computed<UI_I_Task>(() => $store.getters['tasks/getTaskList'])
|
|
64
|
-
|
|
65
|
-
const onClickButton = (status: string): void => {
|
|
66
|
-
if (status === 'next') {
|
|
67
|
-
pagination.value.page += 1
|
|
68
|
-
return
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
pagination.value.page -= 1
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
const getTasks = async (): Promise<void> => {
|
|
75
|
-
pauseGlobalRefresh()
|
|
76
|
-
|
|
77
|
-
const payload: UI_I_DataTableQuery = {
|
|
78
|
-
...pagination.value,
|
|
79
|
-
sortBy: sort.value || '',
|
|
80
|
-
}
|
|
81
|
-
await $store.dispatch('tasks/A_GET_TASKS', payload)
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
const onUpdatePagination = (event: UI_I_Pagination): void => {
|
|
85
|
-
pagination.value = event
|
|
86
|
-
getTasks()
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
const onSortTable = (event: string): void => {
|
|
90
|
-
sort.value = event
|
|
91
|
-
getTasks()
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
const isLoading = computed<boolean>(() =>
|
|
95
|
-
$store.getters['tasks/getLoading']('tasks')
|
|
96
|
-
)
|
|
97
|
-
const pauseGlobalRefresh = (): void => {
|
|
98
|
-
const tasksLastRequestType = $store.getters['tasks/getTasksLastRequestType']
|
|
99
|
-
$store.dispatch('main/A_PAUSE_GLOBAL_REFRESH', tasksLastRequestType)
|
|
100
|
-
}
|
|
101
|
-
onUnmounted(() => {
|
|
102
|
-
pauseGlobalRefresh()
|
|
103
|
-
})
|
|
104
|
-
</script>
|
|
105
|
-
|
|
106
|
-
<style lang="scss">
|
|
107
|
-
@import '~/node_modules/bfg-common/assets/scss/common/mixins';
|
|
108
|
-
.tasks {
|
|
109
|
-
@include flex($dir: column);
|
|
110
|
-
height: 100%;
|
|
111
|
-
padding-left: 10px;
|
|
112
|
-
&__headline {
|
|
113
|
-
padding-left: 10px;
|
|
114
|
-
margin-bottom: 0.6rem;
|
|
115
|
-
}
|
|
116
|
-
.btn {
|
|
117
|
-
text-transform: uppercase;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="tasks">
|
|
3
|
+
<common-headline
|
|
4
|
+
:headline="localization.taskConsole"
|
|
5
|
+
class="tasks__headline"
|
|
6
|
+
/>
|
|
7
|
+
|
|
8
|
+
<div class="btn-group">
|
|
9
|
+
<button
|
|
10
|
+
id="task-previous-button"
|
|
11
|
+
class="btn btn-sm btn-link nav-link"
|
|
12
|
+
:disabled="pagination.page === 1"
|
|
13
|
+
@click="onClickButton('previous')"
|
|
14
|
+
>
|
|
15
|
+
{{ localization.previous }}
|
|
16
|
+
</button>
|
|
17
|
+
|
|
18
|
+
<button
|
|
19
|
+
id="task-next-button"
|
|
20
|
+
class="btn btn-sm btn-link nav-link"
|
|
21
|
+
:disabled="pagination.page === tasksList?.total_pages"
|
|
22
|
+
@click="onClickButton('next')"
|
|
23
|
+
>
|
|
24
|
+
{{ localization.next }}
|
|
25
|
+
</button>
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
<templates-tasks-table-view
|
|
29
|
+
:data-table="tasksList?.items || []"
|
|
30
|
+
:total-items="tasksList?.total_items || 0"
|
|
31
|
+
:total-pages="tasksList?.total_pages || 1"
|
|
32
|
+
:pagination="pagination"
|
|
33
|
+
:loading="isLoading"
|
|
34
|
+
@pagination="onUpdatePagination"
|
|
35
|
+
@sort="onSortTable"
|
|
36
|
+
/>
|
|
37
|
+
</div>
|
|
38
|
+
</template>
|
|
39
|
+
|
|
40
|
+
<script lang="ts" setup>
|
|
41
|
+
import type {
|
|
42
|
+
UI_I_Localization,
|
|
43
|
+
} from '~/lib/models/interfaces'
|
|
44
|
+
import type {
|
|
45
|
+
UI_I_Pagination,
|
|
46
|
+
UI_I_DataTableQuery,
|
|
47
|
+
} from '~/lib/models/table/interfaces'
|
|
48
|
+
import type { UI_I_Task } from '~/lib/models/store/tasks/interfaces'
|
|
49
|
+
|
|
50
|
+
definePageMeta({
|
|
51
|
+
middleware: ['auth'],
|
|
52
|
+
})
|
|
53
|
+
|
|
54
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
55
|
+
const { $store }: any = useNuxtApp()
|
|
56
|
+
|
|
57
|
+
const pagination = ref<UI_I_Pagination>({
|
|
58
|
+
page: 1,
|
|
59
|
+
pageSize: 100,
|
|
60
|
+
})
|
|
61
|
+
const sort = ref<string | null>(null)
|
|
62
|
+
|
|
63
|
+
const tasksList = computed<UI_I_Task>(() => $store.getters['tasks/getTaskList'])
|
|
64
|
+
|
|
65
|
+
const onClickButton = (status: string): void => {
|
|
66
|
+
if (status === 'next') {
|
|
67
|
+
pagination.value.page += 1
|
|
68
|
+
return
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
pagination.value.page -= 1
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
const getTasks = async (): Promise<void> => {
|
|
75
|
+
pauseGlobalRefresh()
|
|
76
|
+
|
|
77
|
+
const payload: UI_I_DataTableQuery = {
|
|
78
|
+
...pagination.value,
|
|
79
|
+
sortBy: sort.value || '',
|
|
80
|
+
}
|
|
81
|
+
await $store.dispatch('tasks/A_GET_TASKS', payload)
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
const onUpdatePagination = (event: UI_I_Pagination): void => {
|
|
85
|
+
pagination.value = event
|
|
86
|
+
getTasks()
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
const onSortTable = (event: string): void => {
|
|
90
|
+
sort.value = event
|
|
91
|
+
getTasks()
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
const isLoading = computed<boolean>(() =>
|
|
95
|
+
$store.getters['tasks/getLoading']('tasks')
|
|
96
|
+
)
|
|
97
|
+
const pauseGlobalRefresh = (): void => {
|
|
98
|
+
const tasksLastRequestType = $store.getters['tasks/getTasksLastRequestType']
|
|
99
|
+
$store.dispatch('main/A_PAUSE_GLOBAL_REFRESH', tasksLastRequestType)
|
|
100
|
+
}
|
|
101
|
+
onUnmounted(() => {
|
|
102
|
+
pauseGlobalRefresh()
|
|
103
|
+
})
|
|
104
|
+
</script>
|
|
105
|
+
|
|
106
|
+
<style lang="scss">
|
|
107
|
+
@import '~/node_modules/bfg-common/assets/scss/common/mixins';
|
|
108
|
+
.tasks {
|
|
109
|
+
@include flex($dir: column);
|
|
110
|
+
height: 100%;
|
|
111
|
+
padding-left: 10px;
|
|
112
|
+
&__headline {
|
|
113
|
+
padding-left: 10px;
|
|
114
|
+
margin-bottom: 0.6rem;
|
|
115
|
+
}
|
|
116
|
+
.btn {
|
|
117
|
+
text-transform: uppercase;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
</style>
|