bfg-common 1.5.688 → 1.5.690
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 +3804 -3783
- package/assets/localization/local_en.json +3808 -3787
- package/assets/localization/local_hy.json +21 -0
- package/assets/localization/local_kk.json +21 -0
- package/assets/localization/local_ru.json +21 -0
- package/assets/localization/local_zh.json +21 -0
- package/assets/scss/components/auth.scss +15 -5
- package/components/atoms/dropdown/tree/Tree.vue +2 -0
- package/components/atoms/switch/Switch.vue +7 -1
- package/components/atoms/wizard/Wizard.vue +1 -1
- package/components/common/layout/theHeader/userMenu/modals/preferences/PreferencesNew.vue +115 -115
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +108 -108
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/New.vue +88 -88
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/Old.vue +89 -89
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/DefaultConsole.vue +43 -43
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/New.vue +53 -53
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/Old.vue +49 -49
- package/components/common/layout/theHeader/userMenu/modals/preferences/inventory/Inventory.vue +31 -31
- package/components/common/layout/theHeader/userMenu/modals/preferences/inventory/New.vue +36 -36
- package/components/common/layout/theHeader/userMenu/modals/preferences/inventory/Old.vue +31 -31
- package/components/common/layout/theHeader/userMenu/modals/preferences/security/New.vue +282 -34
- package/components/common/layout/theHeader/userMenu/modals/preferences/security/Old.vue +23 -55
- package/components/common/layout/theHeader/userMenu/modals/preferences/security/Security.vue +65 -6
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/New.vue +52 -52
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/Old.vue +45 -45
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/TimeFormat.vue +54 -54
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/New.vue +47 -47
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/Old.vue +112 -112
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/View.vue +46 -46
- package/components/common/qr/Qr.vue +17 -5
- package/components/common/vm/actions/clone/old/Old.vue +1 -0
- package/components/common/wizards/common/compatibility/New.vue +1 -1
- package/components/common/wizards/common/compatibility/Old.vue +1 -1
- package/lib/models/interfaces.ts +1 -0
- package/package.json +1 -1
|
@@ -3762,6 +3762,9 @@
|
|
|
3762
3762
|
"securityLabel": "Ավելացրեք հաշվին անվտանգության լրացուցիչ շերտ",
|
|
3763
3763
|
"enterOtpForDisabled": "Մուտքագրեք 6 նիշի կոդը և հաստատեք անջատելու համար.",
|
|
3764
3764
|
"enterOtpForEnabled": "Մուտքագրեք 6 նիշի կոդը և հաստատեք.",
|
|
3765
|
+
"enterOtpCode": "Մուտքագրեք 6-նիշ կոդը",
|
|
3766
|
+
"otpCode": "6-նիշ կոդ",
|
|
3767
|
+
"otpCodeErrorLength": "Կոդը պետք է բաղկացած լինի 6 թվից",
|
|
3765
3768
|
"qrcodeDescription": "Սկանավորեք այս QR կոդը ձեր նույնականացման հավելվածով կամ մուտքագրեք այս կոդերից մեկը ձեռքով: Դրանից հետո հաստատեք գործողությունը՝ ներքևում մուտքագրելով միանգամյա կոդը:"
|
|
3766
3769
|
},
|
|
3767
3770
|
"ssoConfiguration": {
|
|
@@ -3783,5 +3786,23 @@
|
|
|
3783
3786
|
"maxDurationSec": "Առավելագույն տևողություն (վայրկյան)",
|
|
3784
3787
|
"idleTimeoutSec": "Անգործության ժամանակավոր պատուհան (վայրկյան)",
|
|
3785
3788
|
"maxConcurrentSessions": "Առավելագույն համաժամանակյա սեսիաներ"
|
|
3789
|
+
},
|
|
3790
|
+
"cacheConfiguration": {
|
|
3791
|
+
"cacheConfiguration": "Քեշավորման կոնֆիգուրացիաներ",
|
|
3792
|
+
"cpu": "CPU",
|
|
3793
|
+
"memory": "Հիշողություն",
|
|
3794
|
+
"network": "Ցանց",
|
|
3795
|
+
"disk": "Սկավառակ",
|
|
3796
|
+
"lvm": "LVM",
|
|
3797
|
+
"nfs": "NFS",
|
|
3798
|
+
"hci": "HCI",
|
|
3799
|
+
"vm_cpu": "VM CPU",
|
|
3800
|
+
"vm_memory": "VM Հիշողություն",
|
|
3801
|
+
"vm_network": "VM Ցանց",
|
|
3802
|
+
"vm_disk": "VM Սկավառակ",
|
|
3803
|
+
"sensors": "Զգայուն տարրեր",
|
|
3804
|
+
"cpu_temp": "CPU Ջերմաստիճան",
|
|
3805
|
+
"power": "Էլեկտրամատակարարում",
|
|
3806
|
+
"services": "Ծառայություններ"
|
|
3786
3807
|
}
|
|
3787
3808
|
}
|
|
@@ -3761,6 +3761,9 @@
|
|
|
3761
3761
|
"securityLabel": "Аккаунтыңызға қауіпсіздіктің қосымша қабатын қосыңыз",
|
|
3762
3762
|
"enterOtpForDisabled": "Өшіру үшін 6 таңбалы кодты енгізіп, растаңыз:",
|
|
3763
3763
|
"enterOtpForEnabled": "6 таңбалы кодты енгізіп, растаңыз:",
|
|
3764
|
+
"enterOtpCode": "6 таңбалы кодты енгізіңіз",
|
|
3765
|
+
"otpCode": "6 таңбалы код",
|
|
3766
|
+
"otpCodeErrorLength": "Код 6 саннан тұруы керек",
|
|
3764
3767
|
"qrcodeDescription": "Бұл QR-кодты аутентификатор қолданбасымен сканерлеңіз немесе осы кодтардың бірін қолмен енгізіңіз. Содан кейін әрекетті төмендегі бір реттік кодты енгізу арқылы растаңыз."
|
|
3765
3768
|
},
|
|
3766
3769
|
"ssoConfiguration": {
|
|
@@ -3782,5 +3785,23 @@
|
|
|
3782
3785
|
"maxDurationSec": "Максималды ұзақтық (сек)",
|
|
3783
3786
|
"idleTimeoutSec": "Босқа тұрған уақыт (сек)",
|
|
3784
3787
|
"maxConcurrentSessions": "Максималды бір уақытта қосылған сессиялар"
|
|
3788
|
+
},
|
|
3789
|
+
"cacheConfiguration": {
|
|
3790
|
+
"cacheConfiguration": "Кэшталу конфигурациялары",
|
|
3791
|
+
"cpu": "CPU",
|
|
3792
|
+
"memory": "Жад",
|
|
3793
|
+
"network": "Желі",
|
|
3794
|
+
"disk": "Диск",
|
|
3795
|
+
"lvm": "LVM",
|
|
3796
|
+
"nfs": "NFS",
|
|
3797
|
+
"hci": "HCI",
|
|
3798
|
+
"vm_cpu": "VM CPU",
|
|
3799
|
+
"vm_memory": "VM Жад",
|
|
3800
|
+
"vm_network": "VM Желі",
|
|
3801
|
+
"vm_disk": "VM Диск",
|
|
3802
|
+
"sensors": "Сенсорлар",
|
|
3803
|
+
"cpu_temp": "CPU Температурасы",
|
|
3804
|
+
"power": "Қуат",
|
|
3805
|
+
"services": "Қызметтер"
|
|
3785
3806
|
}
|
|
3786
3807
|
}
|
|
@@ -3761,6 +3761,9 @@
|
|
|
3761
3761
|
"securityLabel": "Добавьте дополнительный уровень защиты к вашему аккаунту",
|
|
3762
3762
|
"enterOtpForDisabled": "Введите 6-значный код и подтвердите, чтобы отключить:",
|
|
3763
3763
|
"enterOtpForEnabled": "Введите 6-значный код и подтвердите:",
|
|
3764
|
+
"enterOtpCode": "Введите 6-значный код",
|
|
3765
|
+
"otpCode": "6-значный код",
|
|
3766
|
+
"otpCodeErrorLength": "Код должен состоять из 6 цифр",
|
|
3764
3767
|
"qrcodeDescription": "Отсканируйте этот QR-код с помощью приложения-аутентификатора или введите один из этих кодов вручную. После этого подтвердите действие, введя одноразовый код ниже."
|
|
3765
3768
|
},
|
|
3766
3769
|
"ssoConfiguration": {
|
|
@@ -3782,5 +3785,23 @@
|
|
|
3782
3785
|
"maxDurationSec": "Максимальная продолжительность (сек)",
|
|
3783
3786
|
"idleTimeoutSec": "Время простоя (сек)",
|
|
3784
3787
|
"maxConcurrentSessions": "Макс. количество одновременных сессий"
|
|
3788
|
+
},
|
|
3789
|
+
"cacheConfiguration": {
|
|
3790
|
+
"cacheConfiguration": "Конфигурации кэширования",
|
|
3791
|
+
"cpu": "Процессор",
|
|
3792
|
+
"memory": "Память",
|
|
3793
|
+
"network": "Сеть",
|
|
3794
|
+
"disk": "Диск",
|
|
3795
|
+
"lvm": "LVM",
|
|
3796
|
+
"nfs": "NFS",
|
|
3797
|
+
"hci": "HCI",
|
|
3798
|
+
"vm_cpu": "ВМ Процессор",
|
|
3799
|
+
"vm_memory": "ВМ Память",
|
|
3800
|
+
"vm_network": "ВМ Сеть",
|
|
3801
|
+
"vm_disk": "ВМ Диск",
|
|
3802
|
+
"sensors": "Датчики",
|
|
3803
|
+
"cpu_temp": "Температура Процессора",
|
|
3804
|
+
"power": "Питание",
|
|
3805
|
+
"services": "Службы"
|
|
3785
3806
|
}
|
|
3786
3807
|
}
|
|
@@ -3759,6 +3759,9 @@
|
|
|
3759
3759
|
"securityLabel": "为您的账户添加额外的安全层",
|
|
3760
3760
|
"enterOtpForDisabled": "输入6位代码并确认以禁用它:",
|
|
3761
3761
|
"enterOtpForEnabled": "输入6位代码并确认:",
|
|
3762
|
+
"enterOtpCode": "输入 6 位数代码",
|
|
3763
|
+
"otpCode": "6 位数代码",
|
|
3764
|
+
"otpCodeErrorLength": "代码必须是 6 位数字",
|
|
3762
3765
|
"qrcodeDescription": "使用您的身份验证器应用程序扫描此QR码,或手动输入其中一个代码。然后,通过输入下面的一次性代码来确认操作。"
|
|
3763
3766
|
},
|
|
3764
3767
|
"ssoConfiguration": {
|
|
@@ -3780,5 +3783,23 @@
|
|
|
3780
3783
|
"maxDurationSec": "最长持续时间(秒)",
|
|
3781
3784
|
"idleTimeoutSec": "空闲超时(秒)",
|
|
3782
3785
|
"maxConcurrentSessions": "最大并发会话数"
|
|
3786
|
+
},
|
|
3787
|
+
"cacheConfiguration": {
|
|
3788
|
+
"cacheConfiguration": "缓存配置",
|
|
3789
|
+
"cpu": "CPU",
|
|
3790
|
+
"memory": "内存",
|
|
3791
|
+
"network": "网络",
|
|
3792
|
+
"disk": "磁盘",
|
|
3793
|
+
"lvm": "LVM",
|
|
3794
|
+
"nfs": "NFS",
|
|
3795
|
+
"hci": "HCI",
|
|
3796
|
+
"vm_cpu": "VM CPU",
|
|
3797
|
+
"vm_memory": "VM 内存",
|
|
3798
|
+
"vm_network": "VM 网络",
|
|
3799
|
+
"vm_disk": "VM 磁盘",
|
|
3800
|
+
"sensors": "传感器",
|
|
3801
|
+
"cpu_temp": "CPU 温度",
|
|
3802
|
+
"power": "电源",
|
|
3803
|
+
"services": "服务"
|
|
3783
3804
|
}
|
|
3784
3805
|
}
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
color: #000000;
|
|
170
170
|
font-size: 32px;
|
|
171
171
|
font-weight: 400;
|
|
172
|
-
line-height:
|
|
172
|
+
line-height: 44px;
|
|
173
173
|
margin-bottom: 48px;
|
|
174
174
|
span {
|
|
175
175
|
font-size: 32px;
|
|
@@ -180,8 +180,18 @@
|
|
|
180
180
|
margin-bottom: 48px;
|
|
181
181
|
}
|
|
182
182
|
&__input {
|
|
183
|
+
&:before {
|
|
184
|
+
content: '';
|
|
185
|
+
position: absolute;
|
|
186
|
+
top: 0;
|
|
187
|
+
left: 0;
|
|
188
|
+
right: 0;
|
|
189
|
+
bottom: 0;
|
|
190
|
+
background-color: var(--input-bg);
|
|
191
|
+
border-radius: 8px;
|
|
192
|
+
}
|
|
183
193
|
:deep(.ui-main-input) {
|
|
184
|
-
background-color:
|
|
194
|
+
background-color: var(--input-bg);
|
|
185
195
|
}
|
|
186
196
|
:deep(input.ui-main-input:-internal-autofill-selected),
|
|
187
197
|
:deep(input.ui-main-input:-internal-autofill-selected:hover),
|
|
@@ -189,7 +199,7 @@
|
|
|
189
199
|
:deep(input.ui-main-input:-internal-autofill-selected:focus) {
|
|
190
200
|
appearance: menulist-button;
|
|
191
201
|
background-image: none !important;
|
|
192
|
-
background-color:
|
|
202
|
+
background-color: var(--input-bg) !important;
|
|
193
203
|
color: fieldtext !important;
|
|
194
204
|
-webkit-background-clip: text;
|
|
195
205
|
}
|
|
@@ -210,11 +220,11 @@
|
|
|
210
220
|
}
|
|
211
221
|
}
|
|
212
222
|
&__checkbox {
|
|
213
|
-
margin-top:
|
|
223
|
+
margin-top: 16px;
|
|
214
224
|
}
|
|
215
225
|
&__button {
|
|
216
226
|
@include flex($just: center, $align: center);
|
|
217
|
-
margin-top:
|
|
227
|
+
margin-top: 32px;
|
|
218
228
|
height: 44px;
|
|
219
229
|
border-radius: 8px;
|
|
220
230
|
:deep(svg) {
|
|
@@ -119,6 +119,7 @@ onUnmounted(() => {
|
|
|
119
119
|
.dropdown-menu {
|
|
120
120
|
position: fixed;
|
|
121
121
|
transform: translateX(-100%);
|
|
122
|
+
background-color: var(--dropdown-bg-color);
|
|
122
123
|
|
|
123
124
|
h4 {
|
|
124
125
|
font-size: 12px;
|
|
@@ -130,6 +131,7 @@ onUnmounted(() => {
|
|
|
130
131
|
button {
|
|
131
132
|
&:hover {
|
|
132
133
|
border-bottom: 1px solid #666;
|
|
134
|
+
color: #565656;
|
|
133
135
|
}
|
|
134
136
|
}
|
|
135
137
|
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="flex-align-center">
|
|
3
3
|
<div class="switch-body">
|
|
4
|
-
<input
|
|
4
|
+
<input
|
|
5
|
+
:id="props.testId"
|
|
6
|
+
v-model="value"
|
|
7
|
+
type="checkbox"
|
|
8
|
+
@change="emits('change', value)"
|
|
9
|
+
/>
|
|
5
10
|
<label :for="props.testId" class="switch-label"></label>
|
|
6
11
|
</div>
|
|
7
12
|
<label :for="props.testId"><slot></slot></label>
|
|
@@ -19,6 +24,7 @@ const props = withDefaults(
|
|
|
19
24
|
|
|
20
25
|
const emits = defineEmits<{
|
|
21
26
|
(event: 'update:model-value', value: boolean): void
|
|
27
|
+
(event: 'change', value: boolean): void
|
|
22
28
|
}>()
|
|
23
29
|
|
|
24
30
|
const value = computed<boolean>({
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
<slot name="contentHeading">
|
|
22
22
|
<div class="modal-title-wrapper">
|
|
23
23
|
<h2 class="modal-title">
|
|
24
|
-
<span class="modal-title-text">
|
|
24
|
+
<span class="modal-title-text" :data-id="`${props.testId}-modal-title`">
|
|
25
25
|
{{ props.wizard.selectedStepCom.value.title }}
|
|
26
26
|
</span>
|
|
27
27
|
</h2>
|
|
@@ -1,115 +1,115 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ui-modal
|
|
3
|
-
:title="localization.common.preferences"
|
|
4
|
-
:texts="modalTexts"
|
|
5
|
-
test-id="user-preferences-modal"
|
|
6
|
-
width="580px"
|
|
7
|
-
show
|
|
8
|
-
@reset="emits('reset')"
|
|
9
|
-
@submit="emits('submit')"
|
|
10
|
-
@hide="onHide"
|
|
11
|
-
>
|
|
12
|
-
<template #content>
|
|
13
|
-
<ui-modal-block-standard>
|
|
14
|
-
<ui-modal-block-form-standard>
|
|
15
|
-
<common-layout-the-header-user-menu-modals-preferences-time-format
|
|
16
|
-
:new-view="props.newView"
|
|
17
|
-
:time-format="props.timeFormat"
|
|
18
|
-
@update-time-format="emits('update-time-format', $event)"
|
|
19
|
-
/>
|
|
20
|
-
</ui-modal-block-form-standard>
|
|
21
|
-
|
|
22
|
-
<ui-modal-block-form-standard>
|
|
23
|
-
<common-layout-the-header-user-menu-modals-preferences-change-language
|
|
24
|
-
:new-view="props.newView"
|
|
25
|
-
:selected-type="props.selectedLanguageType"
|
|
26
|
-
:selected-language="props.selectedLanguage"
|
|
27
|
-
@update-language="emits('update-language', $event)"
|
|
28
|
-
@update-is-browser="emits('update-is-browser', $event)"
|
|
29
|
-
/>
|
|
30
|
-
</ui-modal-block-form-standard>
|
|
31
|
-
|
|
32
|
-
<ui-modal-block-form-standard v-if="isSphere">
|
|
33
|
-
<common-layout-the-header-user-menu-modals-preferences-default-console
|
|
34
|
-
:new-view="props.newView"
|
|
35
|
-
:remote-console="props.remoteConsole"
|
|
36
|
-
@update-remote-console="emits('update-remote-console', $event)"
|
|
37
|
-
/>
|
|
38
|
-
</ui-modal-block-form-standard>
|
|
39
|
-
|
|
40
|
-
<ui-modal-block-form-standard v-if="isSphere">
|
|
41
|
-
<common-layout-the-header-user-menu-modals-preferences-inventory
|
|
42
|
-
:new-view="props.newView"
|
|
43
|
-
:vm-cluster="props.vmCluster"
|
|
44
|
-
@update-vm-clusters="emits('update-vm-clusters', $event)"
|
|
45
|
-
/>
|
|
46
|
-
</ui-modal-block-form-standard>
|
|
47
|
-
|
|
48
|
-
<ui-modal-block-form-standard v-if="isSphere">
|
|
49
|
-
<common-layout-the-header-user-menu-modals-preferences-security
|
|
50
|
-
v-model:security="security"
|
|
51
|
-
:recovery="props.recovery"
|
|
52
|
-
@confirm="emits('security-confirm', $event)"
|
|
53
|
-
/>
|
|
54
|
-
</ui-modal-block-form-standard>
|
|
55
|
-
|
|
56
|
-
<ui-modal-block-form-standard without-border-bottom>
|
|
57
|
-
<common-layout-the-header-user-menu-modals-preferences-view
|
|
58
|
-
:new-view="props.newView"
|
|
59
|
-
:new-view-local="props.newViewLocal"
|
|
60
|
-
@update-is-new-view="emits('update-is-new-view', $event)"
|
|
61
|
-
/>
|
|
62
|
-
</ui-modal-block-form-standard>
|
|
63
|
-
</ui-modal-block-standard>
|
|
64
|
-
</template>
|
|
65
|
-
</ui-modal>
|
|
66
|
-
</template>
|
|
67
|
-
|
|
68
|
-
<script setup lang="ts">
|
|
69
|
-
import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
|
|
70
|
-
import type { UI_I_ModalTexts } from '~/node_modules/bfg-uikit/components/ui/modal/models/interfaces'
|
|
71
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
72
|
-
import type { UI_T_LangValue, UI_T_Project } from '~/lib/models/types'
|
|
73
|
-
import type { UI_T_TimeValue } from '~/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/lib/models/types'
|
|
74
|
-
import type { UI_I_Recovery } from '~/components/common/layout/theHeader/userMenu/modals/preferences/security/lib/models/interfaces'
|
|
75
|
-
|
|
76
|
-
const security = defineModel<boolean>('security')
|
|
77
|
-
|
|
78
|
-
const props = defineProps<{
|
|
79
|
-
project: UI_T_Project
|
|
80
|
-
timeFormat: UI_T_TimeValue
|
|
81
|
-
selectedLanguage: UI_I_Dropdown
|
|
82
|
-
selectedLanguageType: UI_T_LangValue
|
|
83
|
-
newView: boolean
|
|
84
|
-
newViewLocal: boolean
|
|
85
|
-
remoteConsole: string
|
|
86
|
-
vmCluster: boolean
|
|
87
|
-
recovery: UI_I_Recovery | null // для Сферы
|
|
88
|
-
}>()
|
|
89
|
-
const emits = defineEmits<{
|
|
90
|
-
(event: 'hide'): void
|
|
91
|
-
(event: 'update-time-format', value: UI_T_TimeValue): void
|
|
92
|
-
(event: 'update-language', value: UI_I_Dropdown): void
|
|
93
|
-
(event: 'update-is-browser', value: string): void
|
|
94
|
-
(event: 'update-is-new-view', value: boolean): void
|
|
95
|
-
(event: 'update-remote-console', value: string): void
|
|
96
|
-
(event: 'update-vm-clusters', value: boolean): void
|
|
97
|
-
(event: 'security-confirm', value: boolean): void
|
|
98
|
-
(event: 'submit'): void
|
|
99
|
-
(event: 'reset'): void
|
|
100
|
-
}>()
|
|
101
|
-
|
|
102
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
103
|
-
|
|
104
|
-
const modalTexts = ref<UI_I_ModalTexts>({
|
|
105
|
-
resetToDefault: localization.value.common.resetToDefault,
|
|
106
|
-
button1: localization.value.common.cancel,
|
|
107
|
-
button2: localization.value.common.save,
|
|
108
|
-
})
|
|
109
|
-
|
|
110
|
-
const isSphere = ref<boolean>(props.project === 'sphere')
|
|
111
|
-
|
|
112
|
-
const onHide = (): void => {
|
|
113
|
-
emits('hide')
|
|
114
|
-
}
|
|
115
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<ui-modal
|
|
3
|
+
:title="localization.common.preferences"
|
|
4
|
+
:texts="modalTexts"
|
|
5
|
+
test-id="user-preferences-modal"
|
|
6
|
+
width="580px"
|
|
7
|
+
show
|
|
8
|
+
@reset="emits('reset')"
|
|
9
|
+
@submit="emits('submit')"
|
|
10
|
+
@hide="onHide"
|
|
11
|
+
>
|
|
12
|
+
<template #content>
|
|
13
|
+
<ui-modal-block-standard>
|
|
14
|
+
<ui-modal-block-form-standard>
|
|
15
|
+
<common-layout-the-header-user-menu-modals-preferences-time-format
|
|
16
|
+
:new-view="props.newView"
|
|
17
|
+
:time-format="props.timeFormat"
|
|
18
|
+
@update-time-format="emits('update-time-format', $event)"
|
|
19
|
+
/>
|
|
20
|
+
</ui-modal-block-form-standard>
|
|
21
|
+
|
|
22
|
+
<ui-modal-block-form-standard>
|
|
23
|
+
<common-layout-the-header-user-menu-modals-preferences-change-language
|
|
24
|
+
:new-view="props.newView"
|
|
25
|
+
:selected-type="props.selectedLanguageType"
|
|
26
|
+
:selected-language="props.selectedLanguage"
|
|
27
|
+
@update-language="emits('update-language', $event)"
|
|
28
|
+
@update-is-browser="emits('update-is-browser', $event)"
|
|
29
|
+
/>
|
|
30
|
+
</ui-modal-block-form-standard>
|
|
31
|
+
|
|
32
|
+
<ui-modal-block-form-standard v-if="isSphere">
|
|
33
|
+
<common-layout-the-header-user-menu-modals-preferences-default-console
|
|
34
|
+
:new-view="props.newView"
|
|
35
|
+
:remote-console="props.remoteConsole"
|
|
36
|
+
@update-remote-console="emits('update-remote-console', $event)"
|
|
37
|
+
/>
|
|
38
|
+
</ui-modal-block-form-standard>
|
|
39
|
+
|
|
40
|
+
<ui-modal-block-form-standard v-if="isSphere">
|
|
41
|
+
<common-layout-the-header-user-menu-modals-preferences-inventory
|
|
42
|
+
:new-view="props.newView"
|
|
43
|
+
:vm-cluster="props.vmCluster"
|
|
44
|
+
@update-vm-clusters="emits('update-vm-clusters', $event)"
|
|
45
|
+
/>
|
|
46
|
+
</ui-modal-block-form-standard>
|
|
47
|
+
|
|
48
|
+
<ui-modal-block-form-standard v-if="isSphere">
|
|
49
|
+
<common-layout-the-header-user-menu-modals-preferences-security
|
|
50
|
+
v-model:security="security"
|
|
51
|
+
:recovery="props.recovery"
|
|
52
|
+
@confirm="emits('security-confirm', $event)"
|
|
53
|
+
/>
|
|
54
|
+
</ui-modal-block-form-standard>
|
|
55
|
+
|
|
56
|
+
<ui-modal-block-form-standard without-border-bottom>
|
|
57
|
+
<common-layout-the-header-user-menu-modals-preferences-view
|
|
58
|
+
:new-view="props.newView"
|
|
59
|
+
:new-view-local="props.newViewLocal"
|
|
60
|
+
@update-is-new-view="emits('update-is-new-view', $event)"
|
|
61
|
+
/>
|
|
62
|
+
</ui-modal-block-form-standard>
|
|
63
|
+
</ui-modal-block-standard>
|
|
64
|
+
</template>
|
|
65
|
+
</ui-modal>
|
|
66
|
+
</template>
|
|
67
|
+
|
|
68
|
+
<script setup lang="ts">
|
|
69
|
+
import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
|
|
70
|
+
import type { UI_I_ModalTexts } from '~/node_modules/bfg-uikit/components/ui/modal/models/interfaces'
|
|
71
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
72
|
+
import type { UI_T_LangValue, UI_T_Project } from '~/lib/models/types'
|
|
73
|
+
import type { UI_T_TimeValue } from '~/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/lib/models/types'
|
|
74
|
+
import type { UI_I_Recovery } from '~/components/common/layout/theHeader/userMenu/modals/preferences/security/lib/models/interfaces'
|
|
75
|
+
|
|
76
|
+
const security = defineModel<boolean>('security')
|
|
77
|
+
|
|
78
|
+
const props = defineProps<{
|
|
79
|
+
project: UI_T_Project
|
|
80
|
+
timeFormat: UI_T_TimeValue
|
|
81
|
+
selectedLanguage: UI_I_Dropdown
|
|
82
|
+
selectedLanguageType: UI_T_LangValue
|
|
83
|
+
newView: boolean
|
|
84
|
+
newViewLocal: boolean
|
|
85
|
+
remoteConsole: string
|
|
86
|
+
vmCluster: boolean
|
|
87
|
+
recovery: UI_I_Recovery | null // для Сферы
|
|
88
|
+
}>()
|
|
89
|
+
const emits = defineEmits<{
|
|
90
|
+
(event: 'hide'): void
|
|
91
|
+
(event: 'update-time-format', value: UI_T_TimeValue): void
|
|
92
|
+
(event: 'update-language', value: UI_I_Dropdown): void
|
|
93
|
+
(event: 'update-is-browser', value: string): void
|
|
94
|
+
(event: 'update-is-new-view', value: boolean): void
|
|
95
|
+
(event: 'update-remote-console', value: string): void
|
|
96
|
+
(event: 'update-vm-clusters', value: boolean): void
|
|
97
|
+
(event: 'security-confirm', value: boolean): void
|
|
98
|
+
(event: 'submit'): void
|
|
99
|
+
(event: 'reset'): void
|
|
100
|
+
}>()
|
|
101
|
+
|
|
102
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
103
|
+
|
|
104
|
+
const modalTexts = ref<UI_I_ModalTexts>({
|
|
105
|
+
resetToDefault: localization.value.common.resetToDefault,
|
|
106
|
+
button1: localization.value.common.cancel,
|
|
107
|
+
button2: localization.value.common.save,
|
|
108
|
+
})
|
|
109
|
+
|
|
110
|
+
const isSphere = ref<boolean>(props.project === 'sphere')
|
|
111
|
+
|
|
112
|
+
const onHide = (): void => {
|
|
113
|
+
emits('hide')
|
|
114
|
+
}
|
|
115
|
+
</script>
|