bfg-common 1.5.773 → 1.5.774
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/CODE_STYLE.md +109 -109
- package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
- package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
- package/assets/img/icons/icons-sprite-light-3.svg +227 -227
- package/assets/img/icons/icons-sprite-light-5.svg +488 -488
- package/components/atoms/TheIcon3.vue +50 -50
- package/components/atoms/collapse/CollapseNav.vue +170 -170
- package/components/atoms/perPage/PerPage.vue +58 -58
- package/components/atoms/table/dataGrid/DataGrid.vue +19 -4
- package/components/atoms/table/dataGrid/DataGridPagination.vue +97 -97
- package/components/atoms/table/dataGrid/lib/config/settingsTable.ts +94 -94
- package/components/atoms/table/dataGrid/lib/utils/export.ts +16 -16
- package/components/common/backup/storage/actions/add/lib/utils.ts +51 -51
- package/components/common/browse/blocks/contents/filesNew/Skeleton.vue +18 -18
- package/components/common/configure/advancedSystemSettings/AdvancedSystemSettings.vue +49 -0
- package/components/common/configure/advancedSystemSettings/modals/edit/Edit.vue +55 -0
- package/components/common/configure/advancedSystemSettings/modals/edit/New.vue +37 -0
- package/components/common/configure/advancedSystemSettings/modals/edit/Old.vue +46 -0
- package/components/common/configure/advancedSystemSettings/tableView/TableView.vue +30 -0
- package/components/common/configure/advancedSystemSettings/tableView/new/New.vue +193 -0
- package/components/common/configure/advancedSystemSettings/tableView/new/lib/config/hostTable.ts +308 -0
- package/components/common/configure/advancedSystemSettings/tableView/old/Old.vue +128 -0
- package/components/common/configure/advancedSystemSettings/tableView/old/lib/config/table.ts +93 -0
- package/components/common/configure/advancedSystemSettings/tableView/old/lib/config/tableKeys.ts +9 -0
- package/components/common/configure/advancedSystemSettings/tableView/old/lib/models/types.ts +5 -0
- package/components/common/configure/advancedSystemSettings/tools/New.vue +5 -0
- package/components/common/configure/advancedSystemSettings/tools/Old.vue +28 -0
- package/components/common/configure/advancedSystemSettings/tools/Tools.vue +28 -0
- package/components/common/configure/securityProfile/SecurityProfile.vue +28 -0
- package/components/common/configure/securityProfile/lockdownMode/LockdownMode.vue +112 -0
- package/components/common/configure/securityProfile/lockdownMode/lib/utils/constructData.ts +27 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/LockdownModeEdit.vue +61 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/New.vue +5 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/Old.vue +109 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/ExceptionUsers.vue +28 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/New.vue +5 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/Old.vue +180 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/config/table.ts +64 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/config/tableKeys.ts +6 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/models/types.ts +1 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lib/config/tabs.ts +19 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/LockdownMode.vue +22 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/New.vue +5 -0
- package/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/lockdownMode/Old.vue +76 -0
- package/components/common/configure/securityProfile/lockdownMode/tools/New.vue +5 -0
- package/components/common/configure/securityProfile/lockdownMode/tools/Old.vue +30 -0
- package/components/common/configure/securityProfile/lockdownMode/tools/Tools.vue +29 -0
- package/components/common/diagramMain/modals/lib/config/vCenterModal.ts +48 -48
- package/components/common/diagramMain/port/Port.vue +580 -580
- package/components/common/layout/console/Console.vue +70 -70
- package/components/common/layout/theHeader/userMenu/modals/preferences/lib/models/types.ts +7 -7
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/New.vue +64 -64
- package/components/common/pages/backups/DetailView.vue +52 -52
- package/components/common/pages/backups/lib/models/interfaces.ts +36 -36
- package/components/common/pages/backups/modals/Modals.vue +243 -243
- package/components/common/pages/backups/modals/createBackup/configuration/backupWindow/BackupWindow.vue +29 -29
- package/components/common/pages/backups/modals/createBackup/configuration/maxBandwidth/MaxBandwidth.vue +69 -69
- package/components/common/pages/backups/modals/createBackup/configuration/strategy/Strategy.vue +38 -38
- package/components/common/pages/backups/modals/createBackup/lib/models/interfaces.ts +8 -8
- package/components/common/pages/backups/modals/lib/config/restore.ts +116 -116
- package/components/common/pages/backups/modals/lib/models/interfaces.ts +187 -187
- package/components/common/pages/backups/modals/restore/Restore.vue +302 -302
- package/components/common/pages/backups/modals/restore/disks/Disks.vue +50 -50
- package/components/common/pages/backups/modals/restore/lib/config/readyToCompleteOptions.ts +94 -94
- package/components/common/pages/backups/modals/restore/lib/config/steps.ts +130 -130
- package/components/common/pages/backups/modals/restore/name/lib/models/interfaces.ts +6 -6
- package/components/common/pages/backups/modals/restore/types/New.vue +95 -95
- package/components/common/pages/backups/modals/restore/types/Old.vue +62 -62
- package/components/common/pages/backups/modals/restore/types/Types.vue +31 -31
- package/components/common/pages/home/lib/models/interfaces.ts +48 -48
- package/components/common/pages/home/widgets/hosts/Hosts.vue +27 -27
- package/components/common/pages/home/widgets/hosts/lib/config/items.ts +23 -23
- package/components/common/pages/home/widgets/vms/VmsOld.vue +35 -35
- package/components/common/pages/home/widgets/vms/lib/config/items.ts +19 -19
- package/components/common/pages/scheduledTasks/lib/utils/utils.ts +84 -84
- package/components/common/pages/scheduledTasks/table/Table.vue +3 -11
- package/components/common/pages/scheduledTasks/table/expandDetails/ExpandDetails.vue +30 -0
- package/components/common/pages/scheduledTasks/table/expandDetails/New.vue +61 -0
- package/components/common/pages/scheduledTasks/table/{detailsList/DetailsList.vue → expandDetails/Old.vue} +7 -4
- package/components/common/pages/scheduledTasks/table/{detailsList/Table.vue → expandDetails/historyRun/HistoryRun.vue} +9 -5
- package/components/common/pages/scheduledTasks/table/{detailsList → expandDetails/historyRun}/lib/config/historyRunsTable.ts +4 -2
- package/components/common/pages/scheduledTasks/table/{detailsList → expandDetails/historyRun}/lib/config/tableKeys.ts +1 -1
- package/components/common/pages/scheduledTasks/table/{detailsList/lib/config/tasksRowDetails.ts → expandDetails/lib/config/expandDetails.ts} +3 -1
- package/components/common/pages/scheduledTasks/table/lib/config/scheduledTasksTable.ts +3 -0
- package/components/common/pages/tasks/Tasks.vue +125 -125
- package/components/common/pages/tasks/table/Table.vue +373 -373
- package/components/common/pages/tasks/table/lib/config/config.ts +279 -279
- package/components/common/pages/tasks/table/lib/models/interfaces.ts +9 -9
- package/components/common/readyToComplete/ReadyToComplete.vue +17 -17
- package/components/common/select/radio/RadioGroup.vue +137 -137
- package/components/common/spiceConsole/Drawer.vue +420 -420
- package/components/common/spiceConsole/SpiceConsole.vue +184 -184
- package/components/common/spiceConsole/lib/models/interfaces.ts +5 -5
- package/components/common/tools/Actions.vue +207 -207
- package/components/common/treeView/TreeView.vue +52 -52
- package/components/common/vm/actions/clone/lib/config/steps.ts +295 -295
- package/components/common/vm/actions/clone/new/New.vue +438 -438
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/lib/config/options.ts +28 -28
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/Memory.vue +283 -283
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/Order.vue +156 -156
- package/components/common/vm/actions/common/select/compatibility/Old.vue +107 -107
- package/components/common/vm/actions/common/select/createType/lib/models/interfaces.ts +5 -5
- package/components/common/vm/actions/common/select/options/New.vue +264 -264
- package/components/common/vm/actions/common/select/options/Options.vue +58 -58
- package/components/common/vm/actions/common/select/storage/Old.vue +125 -125
- package/components/common/vm/actions/common/select/storage/new/lib/models/interfaces.ts +5 -5
- package/components/common/vm/actions/common/select/storage/new/lib/utils/utils.ts +21 -21
- package/components/common/vm/actions/common/select/template/old/Old.vue +50 -50
- package/components/common/vm/actions/editSettings/new/Skeleton.vue +88 -88
- package/components/common/wizards/common/compatibility/Compatibility.vue +35 -35
- package/components/common/wizards/common/steps/name/Name.vue +178 -178
- package/components/common/wizards/common/steps/name/New.vue +221 -221
- package/components/common/wizards/common/steps/name/Old.vue +121 -121
- package/components/common/wizards/common/steps/name/lib/models/interfaces.ts +4 -4
- package/components/common/wizards/common/steps/name/location/New.vue +40 -40
- package/components/common/wizards/datastore/add/Add.vue +227 -227
- package/components/common/wizards/datastore/add/lib/utils.ts +85 -85
- package/components/common/wizards/datastore/add/steps/typeMode/lib/config/typeOptions.ts +43 -43
- package/composables/useAppVersion.ts +21 -21
- package/composables/useBrowse.ts +24 -24
- package/composables/useLocal.ts +6 -6
- package/composables/useLocalCommon.ts +39 -39
- package/lib/models/types.ts +59 -59
- package/package.json +1 -1
- package/plugins/console.ts +21 -21
- package/plugins/mouse.ts +21 -21
- package/plugins/panelStates.ts +70 -70
- package/plugins/text.ts +59 -59
- package/public/spice-console/application/clientgui.js +854 -854
- package/public/spice-console/application/packetfactory.js +211 -211
- package/public/spice-console/application/virtualmouse.js +147 -147
- package/public/spice-console/lib/images/bitmap.js +203 -203
- package/public/spice-console/network/spicechannel.js +440 -440
- package/public/spice-console/process/cursorprocess.js +128 -128
- package/public/spice-console/process/inputprocess.js +227 -227
- package/public/spice-console/process/mainprocess.js +212 -212
- package/public/spice-console/run.js +210 -210
- package/store/inventory/modules/configure/advancedSystemSettings/actions.ts +122 -0
- package/store/inventory/modules/configure/advancedSystemSettings/getters.ts +9 -0
- package/store/inventory/modules/configure/advancedSystemSettings/lib/models/interfaces.ts +11 -0
- package/store/inventory/modules/configure/advancedSystemSettings/mutations.ts +12 -0
- package/store/inventory/modules/configure/advancedSystemSettings/state.ts +9 -0
- package/store/inventory/modules/configure/advancedSystemSettings/store.ts +12 -0
- package/store/inventory/modules/configure/securityProfile/actions.ts +58 -0
- package/store/inventory/modules/configure/securityProfile/getters.ts +10 -0
- package/store/inventory/modules/configure/securityProfile/lib/models/interfaces.ts +16 -0
- package/store/inventory/modules/configure/securityProfile/mutations.ts +13 -0
- package/store/inventory/modules/configure/securityProfile/state.ts +7 -0
- package/store/inventory/modules/configure/securityProfile/store.ts +12 -0
- package/store/main/mutations.ts +7 -7
- package/store/main/state.ts +7 -7
- package/store/tasks/mappers/recentTasks.ts +123 -123
- package/store/tasks/mutations.ts +82 -82
- /package/components/common/pages/scheduledTasks/table/{detailsList → expandDetails/historyRun}/lib/models/types.ts +0 -0
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="exception-users">
|
|
3
|
+
<h5 class="font-bold">
|
|
4
|
+
{{ localization.configureSecurityProfile.exceptionUsers }}
|
|
5
|
+
</h5>
|
|
6
|
+
<label>
|
|
7
|
+
{{ localization.configureSecurityProfile.exceptionUsersDesc }}
|
|
8
|
+
<span class="relative">
|
|
9
|
+
<input v-model="newUserName" type="text" class="add-new-name-input" />
|
|
10
|
+
<span class="sub-text-input">
|
|
11
|
+
{{ localization.configureSecurityProfile.separateUsersWithCommas }}
|
|
12
|
+
</span>
|
|
13
|
+
</span>
|
|
14
|
+
<span class="add-user-btn" @click="emits('add', newUserName)">
|
|
15
|
+
{{ localization.common.addUser }}
|
|
16
|
+
</span>
|
|
17
|
+
</label>
|
|
18
|
+
|
|
19
|
+
<div class="mt-3">
|
|
20
|
+
<atoms-table-data-grid
|
|
21
|
+
v-model:column-keys="columnItems"
|
|
22
|
+
:head-items="headItems"
|
|
23
|
+
:body-items="bodyItems"
|
|
24
|
+
:total-items="bodyItems.length"
|
|
25
|
+
:page-size="100"
|
|
26
|
+
:page="1"
|
|
27
|
+
:total-pages="1"
|
|
28
|
+
test-id="exception-users-table"
|
|
29
|
+
hide-pagination
|
|
30
|
+
hide-page-size
|
|
31
|
+
off-select-by-row
|
|
32
|
+
server-off
|
|
33
|
+
>
|
|
34
|
+
<template #col1="{ item }">
|
|
35
|
+
<div class="data-table__action-icon">
|
|
36
|
+
<atoms-popover
|
|
37
|
+
:test-id="`${item.data.id}-popover`"
|
|
38
|
+
@click="onShowTooltip(item.data.id)"
|
|
39
|
+
>
|
|
40
|
+
<template #elem>
|
|
41
|
+
<span class="ellipsis-vertical-btn">
|
|
42
|
+
<atoms-the-icon name="ellipsis-vertical" />
|
|
43
|
+
</span>
|
|
44
|
+
</template>
|
|
45
|
+
<template #content>
|
|
46
|
+
<div v-if="showTooltip && item.data.id === selectedUserId">
|
|
47
|
+
<div class="action-container">
|
|
48
|
+
<div class="action-wrap relative">
|
|
49
|
+
<button
|
|
50
|
+
:data-id="`${item.data.id}-remove-button`"
|
|
51
|
+
class="action"
|
|
52
|
+
@click="onRemoveUser(item.data.name)"
|
|
53
|
+
>
|
|
54
|
+
{{ localization.common.removeUser }}
|
|
55
|
+
</button>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
</template>
|
|
60
|
+
</atoms-popover>
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
63
|
+
</atoms-table-data-grid>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
</template>
|
|
67
|
+
|
|
68
|
+
<script setup lang="ts">
|
|
69
|
+
import type {
|
|
70
|
+
UI_I_HeadItem,
|
|
71
|
+
UI_I_BodyItem,
|
|
72
|
+
} from '~/components/atoms/table/compact/lib/models/interfaces'
|
|
73
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
74
|
+
import type { UI_I_ColumnKey } from '~/components/atoms/table/dataGrid/lib/models/interfaces'
|
|
75
|
+
import type { UI_I_LockdownModeData } from '~/store/inventory/modules/configure/securityProfile/lib/models/interfaces'
|
|
76
|
+
import * as exceptionUsersTable from '~/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/config/table'
|
|
77
|
+
|
|
78
|
+
const localEditData = defineModel<UI_I_LockdownModeData>('localEditData', {
|
|
79
|
+
required: true,
|
|
80
|
+
})
|
|
81
|
+
|
|
82
|
+
const emits = defineEmits<{
|
|
83
|
+
(event: 'add', value: string): void
|
|
84
|
+
}>()
|
|
85
|
+
|
|
86
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
87
|
+
|
|
88
|
+
const newUserName = ref<string>('')
|
|
89
|
+
|
|
90
|
+
const columnItems = computed<UI_I_ColumnKey[]>(() =>
|
|
91
|
+
exceptionUsersTable.columnKeys(localization.value)
|
|
92
|
+
)
|
|
93
|
+
const headItems = computed<UI_I_HeadItem[]>(() =>
|
|
94
|
+
exceptionUsersTable.headItems(localization.value)
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
const bodyItems = ref<UI_I_BodyItem[][]>([])
|
|
98
|
+
watch(
|
|
99
|
+
localEditData,
|
|
100
|
+
(newValue) => {
|
|
101
|
+
if (!newValue.exceptionUsers?.length) {
|
|
102
|
+
bodyItems.value = []
|
|
103
|
+
return
|
|
104
|
+
}
|
|
105
|
+
bodyItems.value = exceptionUsersTable.bodyItems(newValue.exceptionUsers)
|
|
106
|
+
},
|
|
107
|
+
{ immediate: true, deep: true }
|
|
108
|
+
)
|
|
109
|
+
|
|
110
|
+
const selectedUserId = ref<number | null>(null)
|
|
111
|
+
const showTooltip = ref<boolean>(false)
|
|
112
|
+
const onShowTooltip = (id: number): void => {
|
|
113
|
+
selectedUserId.value = id
|
|
114
|
+
showTooltip.value = true
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
const onRemoveUser = (value: string): void => {
|
|
118
|
+
localEditData.value.exceptionUsers =
|
|
119
|
+
localEditData.value.exceptionUsers.filter((item) => item !== value)
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
const hideActionsPopover = (): void => {
|
|
123
|
+
showTooltip.value = false
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
onMounted(() => {
|
|
127
|
+
// TODO найти вариант лучше
|
|
128
|
+
|
|
129
|
+
setTimeout(() => {
|
|
130
|
+
window.addEventListener('click', hideActionsPopover)
|
|
131
|
+
})
|
|
132
|
+
})
|
|
133
|
+
onUnmounted(() => {
|
|
134
|
+
window.removeEventListener('click', hideActionsPopover)
|
|
135
|
+
})
|
|
136
|
+
</script>
|
|
137
|
+
|
|
138
|
+
<style scoped lang="scss">
|
|
139
|
+
.action-container {
|
|
140
|
+
position: absolute;
|
|
141
|
+
top: -33px;
|
|
142
|
+
left: 5px;
|
|
143
|
+
background: var(--block-view-bg-color2);
|
|
144
|
+
border: 1px solid var(--block-border-color);
|
|
145
|
+
padding: 5px 6px;
|
|
146
|
+
border-radius: 3px;
|
|
147
|
+
|
|
148
|
+
.action-wrap {
|
|
149
|
+
&::after {
|
|
150
|
+
content: '';
|
|
151
|
+
display: block;
|
|
152
|
+
position: absolute;
|
|
153
|
+
width: 8px;
|
|
154
|
+
height: 8px;
|
|
155
|
+
background: var(--block-view-bg-color2);
|
|
156
|
+
transform: rotate(45deg);
|
|
157
|
+
left: -11px;
|
|
158
|
+
bottom: calc(50% - 4px);
|
|
159
|
+
border-left: 0.5px solid var(--block-border-color);
|
|
160
|
+
border-bottom: 0.5px solid var(--block-border-color);
|
|
161
|
+
z-index: var(--z-dropdown);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
.action {
|
|
165
|
+
border: none;
|
|
166
|
+
padding: 1px 20px;
|
|
167
|
+
width: 100%;
|
|
168
|
+
text-align: left;
|
|
169
|
+
cursor: pointer;
|
|
170
|
+
background: var(--block-view-bg-color2);
|
|
171
|
+
color: var(--global-font-color3);
|
|
172
|
+
white-space: nowrap;
|
|
173
|
+
text-transform: capitalize;
|
|
174
|
+
|
|
175
|
+
&:hover {
|
|
176
|
+
background: var(--vertical-nav-hover-bg-color);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
</style>
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
+
import type {
|
|
3
|
+
UI_I_ColumnKey,
|
|
4
|
+
UI_I_HeadItem,
|
|
5
|
+
UI_I_BodyItem,
|
|
6
|
+
} from '~/components/atoms/table/dataGrid/lib/models/interfaces'
|
|
7
|
+
import { exceptionUsersTableKeys } from '~/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/config/tableKeys'
|
|
8
|
+
import {
|
|
9
|
+
constructColumnKey,
|
|
10
|
+
constructHeadItem,
|
|
11
|
+
} from '~/components/atoms/table/dataGrid/lib/utils/constructDataTable'
|
|
12
|
+
|
|
13
|
+
const getItems = (
|
|
14
|
+
localization: UI_I_Localization
|
|
15
|
+
): [string, boolean, string, string][] => {
|
|
16
|
+
return [
|
|
17
|
+
['', true, '10%', exceptionUsersTableKeys[0]],
|
|
18
|
+
[localization.common.user, true, '90%', exceptionUsersTableKeys[1]],
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export const columnKeys = (
|
|
23
|
+
localization: UI_I_Localization
|
|
24
|
+
): UI_I_ColumnKey[] => {
|
|
25
|
+
const result: UI_I_ColumnKey[] = []
|
|
26
|
+
getItems(localization).forEach((item, i) => {
|
|
27
|
+
const col = `col${i + 1}`
|
|
28
|
+
result.push(constructColumnKey(col, item[0], item[1]))
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
return result
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const headItems = (localization: UI_I_Localization): UI_I_HeadItem[] => {
|
|
35
|
+
const result: UI_I_HeadItem[] = []
|
|
36
|
+
getItems(localization).forEach((item, i) => {
|
|
37
|
+
const col = `col${i + 1}`
|
|
38
|
+
result.push(
|
|
39
|
+
constructHeadItem(col, item[0], item[3], false, item[2], '', item[3])
|
|
40
|
+
)
|
|
41
|
+
})
|
|
42
|
+
return result
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export const bodyItems = (data: string[]): UI_I_BodyItem[][] => {
|
|
46
|
+
const bodyItems: UI_I_BodyItem[][] = []
|
|
47
|
+
data.forEach((item: string, key) => {
|
|
48
|
+
bodyItems.push([
|
|
49
|
+
{
|
|
50
|
+
key: 'col1',
|
|
51
|
+
text: '',
|
|
52
|
+
id: key,
|
|
53
|
+
data: { id: key, name: item },
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
key: 'col2',
|
|
57
|
+
text: item,
|
|
58
|
+
id: key,
|
|
59
|
+
},
|
|
60
|
+
])
|
|
61
|
+
})
|
|
62
|
+
|
|
63
|
+
return bodyItems
|
|
64
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { UI_T_ExceptionUsersTableKeys } from '~/components/common/configure/securityProfile/lockdownMode/modals/lockdownModeEdit/exceptionUsers/old/lib/models/types'
|
|
2
|
+
|
|
3
|
+
export const exceptionUsersTableKeys: UI_T_ExceptionUsersTableKeys[] = [
|
|
4
|
+
'action',
|
|
5
|
+
'user',
|
|
6
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type UI_T_ExceptionUsersTableKeys = 'action' | 'user'
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
+
import type { UI_I_VerticalTabs } from '~/components/atoms/tabs/lib/models/interfaces'
|
|
3
|
+
|
|
4
|
+
export const navigateTabsFunc = (
|
|
5
|
+
localization: UI_I_Localization
|
|
6
|
+
): UI_I_VerticalTabs[] => {
|
|
7
|
+
return [
|
|
8
|
+
{
|
|
9
|
+
value: 1,
|
|
10
|
+
text: localization.common.lockdownMode,
|
|
11
|
+
testId: 'lockdown-mode-tab',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
value: 2,
|
|
15
|
+
text: localization.configureSecurityProfile.exceptionUsers,
|
|
16
|
+
testId: 'exception-users-tab',
|
|
17
|
+
},
|
|
18
|
+
]
|
|
19
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<component :is="currentComponent" v-model:form="form" />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script setup lang="ts">
|
|
6
|
+
import type { UI_I_LockdownModeData } from '~/store/inventory/modules/configure/securityProfile/lib/models/interfaces'
|
|
7
|
+
|
|
8
|
+
const form = defineModel<UI_I_LockdownModeData>('form', {
|
|
9
|
+
required: true,
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
const { $store }: any = useNuxtApp()
|
|
13
|
+
|
|
14
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
15
|
+
const currentComponent = computed(() =>
|
|
16
|
+
isNewView.value
|
|
17
|
+
? defineAsyncComponent(() => import('./New.vue'))
|
|
18
|
+
: defineAsyncComponent(() => import('./Old.vue'))
|
|
19
|
+
)
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<style scoped lang="scss"></style>
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="lockdown-mode">
|
|
3
|
+
<h5 class="font-bold">{{ localization.common.lockdownMode }}</h5>
|
|
4
|
+
<p>{{ localization.configureSecurityProfile.lockdownModeDesc }}</p>
|
|
5
|
+
|
|
6
|
+
<div class="clr-form-control">
|
|
7
|
+
<label class="clr-col-12 clr-col-md-12 clr-control-label">
|
|
8
|
+
{{ localization.configureSecurityProfile.specifyHostLockdownMode }}
|
|
9
|
+
</label>
|
|
10
|
+
<div class="radio-content">
|
|
11
|
+
<div class="label-content">
|
|
12
|
+
<div class="flex-align-center">
|
|
13
|
+
<input
|
|
14
|
+
id="disabledValue"
|
|
15
|
+
v-model="form.lockdownMode"
|
|
16
|
+
type="radio"
|
|
17
|
+
class="custom-radio-button absolute"
|
|
18
|
+
value="disabled"
|
|
19
|
+
name="lockdownMode"
|
|
20
|
+
/>
|
|
21
|
+
<label for="disabledValue" class="custom-radio-label">
|
|
22
|
+
{{ localization.common.disabled }}
|
|
23
|
+
</label>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="radio-content">
|
|
28
|
+
<div class="label-content">
|
|
29
|
+
<div class="flex-align-center">
|
|
30
|
+
<input
|
|
31
|
+
id="normalValue"
|
|
32
|
+
v-model="form.lockdownMode"
|
|
33
|
+
type="radio"
|
|
34
|
+
class="custom-radio-button absolute"
|
|
35
|
+
value="normal"
|
|
36
|
+
name="lockdownMode"
|
|
37
|
+
/>
|
|
38
|
+
<label for="normalValue" class="custom-radio-label">
|
|
39
|
+
{{ localization.common.normal }}
|
|
40
|
+
</label>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
<div class="radio-content">
|
|
45
|
+
<div class="label-content">
|
|
46
|
+
<div class="flex-align-center">
|
|
47
|
+
<input
|
|
48
|
+
id="strictValue"
|
|
49
|
+
v-model="form.lockdownMode"
|
|
50
|
+
type="radio"
|
|
51
|
+
class="custom-radio-button absolute"
|
|
52
|
+
value="strict"
|
|
53
|
+
name="lockdownMode"
|
|
54
|
+
/>
|
|
55
|
+
<label for="strictValue" class="custom-radio-label">
|
|
56
|
+
{{ localization.common.strict }}
|
|
57
|
+
</label>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
</template>
|
|
64
|
+
|
|
65
|
+
<script setup lang="ts">
|
|
66
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
67
|
+
import type { UI_I_LockdownModeData } from '~/store/inventory/modules/configure/securityProfile/lib/models/interfaces'
|
|
68
|
+
|
|
69
|
+
const form = defineModel<UI_I_LockdownModeData>('form', {
|
|
70
|
+
required: true,
|
|
71
|
+
})
|
|
72
|
+
|
|
73
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
74
|
+
</script>
|
|
75
|
+
|
|
76
|
+
<style scoped lang="scss"></style>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<common-headline :headline="props.title" class="items-center">
|
|
3
|
+
<template #action>
|
|
4
|
+
<button
|
|
5
|
+
class="btn btn-sm btn-secondary ng-star-inserted"
|
|
6
|
+
@click="emits('show-edit')"
|
|
7
|
+
>
|
|
8
|
+
{{ localization.common.edit }}...
|
|
9
|
+
</button>
|
|
10
|
+
</template>
|
|
11
|
+
</common-headline>
|
|
12
|
+
<p>{{ props.description }}</p>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script setup lang="ts">
|
|
16
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
17
|
+
|
|
18
|
+
const props = defineProps<{
|
|
19
|
+
title: string
|
|
20
|
+
description: string
|
|
21
|
+
}>()
|
|
22
|
+
|
|
23
|
+
const emits = defineEmits<{
|
|
24
|
+
(event: 'show-edit'): void
|
|
25
|
+
}>()
|
|
26
|
+
|
|
27
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
<style scoped lang="scss"></style>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<component
|
|
3
|
+
:is="currentComponent"
|
|
4
|
+
:title="localization.common.lockdownMode"
|
|
5
|
+
:description="localization.configureSecurityProfile.lockdownModeDesc"
|
|
6
|
+
@show-edit="emits('show-edit')"
|
|
7
|
+
/>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script setup lang="ts">
|
|
11
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
12
|
+
|
|
13
|
+
const emits = defineEmits<{
|
|
14
|
+
(event: 'show-edit'): void
|
|
15
|
+
}>()
|
|
16
|
+
|
|
17
|
+
const { $store }: any = useNuxtApp()
|
|
18
|
+
|
|
19
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
20
|
+
|
|
21
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
22
|
+
const currentComponent = computed(() =>
|
|
23
|
+
isNewView.value
|
|
24
|
+
? defineAsyncComponent(() => import('./New.vue'))
|
|
25
|
+
: defineAsyncComponent(() => import('./Old.vue'))
|
|
26
|
+
)
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<style scoped lang="scss"></style>
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
|
|
2
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
3
|
-
import type { UI_I_ModalsInitialData } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
4
|
-
import type { UI_I_CollapseNavItem } from '~/components/atoms/collapse/lib/models/interfaces'
|
|
5
|
-
|
|
6
|
-
export const vCenterViewSettingsFunc = (
|
|
7
|
-
localization: UI_I_Localization,
|
|
8
|
-
initialData: UI_I_ModalsInitialData
|
|
9
|
-
) => [
|
|
10
|
-
{
|
|
11
|
-
title: 'Network adapter 1',
|
|
12
|
-
id: 1,
|
|
13
|
-
type: 1,
|
|
14
|
-
rows: [
|
|
15
|
-
{
|
|
16
|
-
name: localization.common.macAddress,
|
|
17
|
-
value: initialData.macAddress,
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
name: localization.common.adapterType,
|
|
21
|
-
value: initialData.adapter,
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
},
|
|
25
|
-
]
|
|
26
|
-
|
|
27
|
-
export const vCenterPopupFieldsFunc = (
|
|
28
|
-
localization: UI_I_Localization,
|
|
29
|
-
testId: string
|
|
30
|
-
): UI_I_CollapseNavItem[] => [
|
|
31
|
-
{
|
|
32
|
-
text: localization.common.viewSettings,
|
|
33
|
-
value: 'v-center-view-settings',
|
|
34
|
-
testId: `${testId}-view`,
|
|
35
|
-
},
|
|
36
|
-
]
|
|
37
|
-
|
|
38
|
-
export const vCenterPopupFieldsNewFunc = (
|
|
39
|
-
localization: UI_I_Localization,
|
|
40
|
-
testId: string
|
|
41
|
-
): UI_I_Dropdown[] => [
|
|
42
|
-
{
|
|
43
|
-
text: localization.common.viewSettings,
|
|
44
|
-
value: 'v-center-view-settings',
|
|
45
|
-
iconName: 'password-hide',
|
|
46
|
-
testId: `${testId}-view`,
|
|
47
|
-
},
|
|
48
|
-
]
|
|
1
|
+
import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
|
|
2
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
3
|
+
import type { UI_I_ModalsInitialData } from '~/components/common/diagramMain/lib/models/interfaces'
|
|
4
|
+
import type { UI_I_CollapseNavItem } from '~/components/atoms/collapse/lib/models/interfaces'
|
|
5
|
+
|
|
6
|
+
export const vCenterViewSettingsFunc = (
|
|
7
|
+
localization: UI_I_Localization,
|
|
8
|
+
initialData: UI_I_ModalsInitialData
|
|
9
|
+
) => [
|
|
10
|
+
{
|
|
11
|
+
title: 'Network adapter 1',
|
|
12
|
+
id: 1,
|
|
13
|
+
type: 1,
|
|
14
|
+
rows: [
|
|
15
|
+
{
|
|
16
|
+
name: localization.common.macAddress,
|
|
17
|
+
value: initialData.macAddress,
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: localization.common.adapterType,
|
|
21
|
+
value: initialData.adapter,
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
},
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
export const vCenterPopupFieldsFunc = (
|
|
28
|
+
localization: UI_I_Localization,
|
|
29
|
+
testId: string
|
|
30
|
+
): UI_I_CollapseNavItem[] => [
|
|
31
|
+
{
|
|
32
|
+
text: localization.common.viewSettings,
|
|
33
|
+
value: 'v-center-view-settings',
|
|
34
|
+
testId: `${testId}-view`,
|
|
35
|
+
},
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
export const vCenterPopupFieldsNewFunc = (
|
|
39
|
+
localization: UI_I_Localization,
|
|
40
|
+
testId: string
|
|
41
|
+
): UI_I_Dropdown[] => [
|
|
42
|
+
{
|
|
43
|
+
text: localization.common.viewSettings,
|
|
44
|
+
value: 'v-center-view-settings',
|
|
45
|
+
iconName: 'password-hide',
|
|
46
|
+
testId: `${testId}-view`,
|
|
47
|
+
},
|
|
48
|
+
]
|