bfg-common 1.6.13 → 1.6.15
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 +5 -1
- package/assets/localization/local_en.json +5 -1
- package/assets/localization/local_hy.json +5 -1
- package/assets/localization/local_kk.json +5 -1
- package/assets/localization/local_ru.json +5 -1
- package/assets/localization/local_zh.json +5 -1
- package/components/common/layout/theHeader/userMenu/modals/preferences/New.vue +3 -0
- package/components/common/layout/theHeader/userMenu/modals/preferences/Old.vue +9 -2
- package/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/ChangeLanguage.vue +11 -7
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/DefaultConsole.vue +7 -1
- package/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/config/consoleOptions.ts +8 -5
- package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/TimeFormat.vue +9 -5
- package/components/common/layout/theHeader/userMenu/modals/preferences/view/View.vue +9 -6
- package/package.json +1 -1
|
@@ -2643,7 +2643,11 @@
|
|
|
2643
2643
|
"controllers": "Кантролеры",
|
|
2644
2644
|
"scsi_adapters": "SCSI-адаптары",
|
|
2645
2645
|
"canceled": "Скасавана",
|
|
2646
|
-
"retrying": "Паўторная спроба"
|
|
2646
|
+
"retrying": "Паўторная спроба",
|
|
2647
|
+
"timeFormatDesc1": "Выберыце фармат часу",
|
|
2648
|
+
"languageDesc1": "Выберыце мову адлюстравання",
|
|
2649
|
+
"remoteConsoleVmrc1": "Аддаленая кансоль (VMRC)",
|
|
2650
|
+
"viewDesc1": "Выберыце інтэрфейс і візуальныя налады"
|
|
2647
2651
|
},
|
|
2648
2652
|
"auth": {
|
|
2649
2653
|
"welcomeTo": "Сардэчна запрашаем у",
|
|
@@ -2647,7 +2647,11 @@
|
|
|
2647
2647
|
"controllers": "Controllers",
|
|
2648
2648
|
"scsi_adapters": "SCSI Adapters",
|
|
2649
2649
|
"canceled": "Canceled",
|
|
2650
|
-
"retrying": "Retrying"
|
|
2650
|
+
"retrying": "Retrying",
|
|
2651
|
+
"timeFormatDesc1": "Select time format",
|
|
2652
|
+
"languageDesc1": "Select display language",
|
|
2653
|
+
"remoteConsoleVmrc1": "Remote Console (VMRC)",
|
|
2654
|
+
"viewDesc1": "Select interface and visual preferences"
|
|
2651
2655
|
},
|
|
2652
2656
|
"auth": {
|
|
2653
2657
|
"welcomeTo": "Welcome to",
|
|
@@ -2647,7 +2647,11 @@
|
|
|
2647
2647
|
"controllers": "Կառավարիչներ",
|
|
2648
2648
|
"scsi_adapters": "SCSI ցանցային քարտեր",
|
|
2649
2649
|
"canceled": "Չեղարկված",
|
|
2650
|
-
"retrying": "Կրկնակի փորձ"
|
|
2650
|
+
"retrying": "Կրկնակի փորձ",
|
|
2651
|
+
"timeFormatDesc1": "Ընտրեք ժամանակի ձևաչափը",
|
|
2652
|
+
"languageDesc1": "Ընտրեք ցուցադրման լեզուն",
|
|
2653
|
+
"remoteConsoleVmrc1": "Հեռավար կոնսոլ (VMRC)",
|
|
2654
|
+
"viewDesc1": "Ընտրեք ինտերֆեյսը և տեսողական նախընտրությունները"
|
|
2651
2655
|
},
|
|
2652
2656
|
"auth": {
|
|
2653
2657
|
"welcomeTo": "Բարի գալուստ",
|
|
@@ -2646,7 +2646,11 @@
|
|
|
2646
2646
|
"controllers": "Контроллерлер",
|
|
2647
2647
|
"scsi_adapters": "SCSI-адаптерлер",
|
|
2648
2648
|
"canceled": "Бас тартылды",
|
|
2649
|
-
"retrying": "Қайта әрекет ету"
|
|
2649
|
+
"retrying": "Қайта әрекет ету",
|
|
2650
|
+
"timeFormatDesc1": "Уақыт пішімін таңдаңыз",
|
|
2651
|
+
"languageDesc1": "Көрсету тілін таңдаңыз",
|
|
2652
|
+
"remoteConsoleVmrc1": "Қашықтан басқару консолі (VMRC)",
|
|
2653
|
+
"viewDesc1": "Интерфейс пен визуалды параметрлерді таңдаңыз"
|
|
2650
2654
|
},
|
|
2651
2655
|
"auth": {
|
|
2652
2656
|
"welcomeTo": "Қош келдіңіз",
|
|
@@ -2646,7 +2646,11 @@
|
|
|
2646
2646
|
"controllers": "Контроллеры",
|
|
2647
2647
|
"scsi_adapters": "Адаптеры SCSI",
|
|
2648
2648
|
"canceled": "Отменено",
|
|
2649
|
-
"retrying": "Повторная попытка"
|
|
2649
|
+
"retrying": "Повторная попытка",
|
|
2650
|
+
"timeFormatDesc1": "Выберите формат времени",
|
|
2651
|
+
"languageDesc1": "Выберите язык отображения",
|
|
2652
|
+
"remoteConsoleVmrc1": "Удалённая консоль (VMRC)",
|
|
2653
|
+
"viewDesc1": "Выберите интерфейс и визуальные настройки"
|
|
2650
2654
|
},
|
|
2651
2655
|
"auth": {
|
|
2652
2656
|
"welcomeTo": "Добро пожаловать в",
|
|
@@ -2644,7 +2644,11 @@
|
|
|
2644
2644
|
"controllers": "控制器",
|
|
2645
2645
|
"scsi_adapters": "SCSI 适配器",
|
|
2646
2646
|
"canceled": "已取消",
|
|
2647
|
-
"retrying": "正在重试"
|
|
2647
|
+
"retrying": "正在重试",
|
|
2648
|
+
"timeFormatDesc1": "选择时间格式",
|
|
2649
|
+
"languageDesc1": "选择显示语言",
|
|
2650
|
+
"remoteConsoleVmrc1": "远程控制台(VMRC)",
|
|
2651
|
+
"viewDesc1": "选择界面和视觉偏好设置"
|
|
2648
2652
|
},
|
|
2649
2653
|
"auth": {
|
|
2650
2654
|
"welcomeTo": "欢迎来到",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
<common-layout-the-header-user-menu-modals-preferences-time-format
|
|
16
16
|
v-model:time-format="timeFormat"
|
|
17
17
|
:new-view="props.newView"
|
|
18
|
+
:project="props.project"
|
|
18
19
|
/>
|
|
19
20
|
</ui-modal-block-form-standard>
|
|
20
21
|
|
|
@@ -23,6 +24,7 @@
|
|
|
23
24
|
:new-view="props.newView"
|
|
24
25
|
:selected-type="props.selectedLanguageType"
|
|
25
26
|
:selected-language="props.selectedLanguage"
|
|
27
|
+
:project="props.project"
|
|
26
28
|
@update-language="emits('update-language', $event)"
|
|
27
29
|
@update-is-browser="emits('update-is-browser', $event)"
|
|
28
30
|
/>
|
|
@@ -32,6 +34,7 @@
|
|
|
32
34
|
<common-layout-the-header-user-menu-modals-preferences-default-console
|
|
33
35
|
v-model="consoleValue"
|
|
34
36
|
:new-view="props.newView"
|
|
37
|
+
:project="props.project"
|
|
35
38
|
/>
|
|
36
39
|
</ui-modal-block-form-standard>
|
|
37
40
|
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
v-if="selectedTab === 'time-tab'"
|
|
20
20
|
v-model:time-format="timeFormat"
|
|
21
21
|
:new-view="props.newView"
|
|
22
|
+
:project="props.project"
|
|
22
23
|
/>
|
|
23
24
|
|
|
24
25
|
<common-layout-the-header-user-menu-modals-preferences-change-language
|
|
@@ -26,6 +27,7 @@
|
|
|
26
27
|
:new-view="props.newView"
|
|
27
28
|
:selected-type="props.selectedLanguageType"
|
|
28
29
|
:selected-language="props.selectedLanguage"
|
|
30
|
+
:project="props.project"
|
|
29
31
|
@update-language="emits('update-language', $event)"
|
|
30
32
|
@update-is-browser="emits('update-is-browser', $event)"
|
|
31
33
|
/>
|
|
@@ -40,6 +42,7 @@
|
|
|
40
42
|
v-if="selectedTab === 'console-tab' && isSphere"
|
|
41
43
|
v-model="consoleValue"
|
|
42
44
|
:new-view="props.newView"
|
|
45
|
+
:project="props.project"
|
|
43
46
|
/>
|
|
44
47
|
|
|
45
48
|
<common-layout-the-header-user-menu-modals-preferences-security
|
|
@@ -146,8 +149,12 @@ const isOn2FaImportant = ref<boolean>(false)
|
|
|
146
149
|
watch(
|
|
147
150
|
topNotifications,
|
|
148
151
|
(newValue) => {
|
|
149
|
-
if (
|
|
150
|
-
|
|
152
|
+
if (
|
|
153
|
+
newValue === UI_E_TopNotificationActionId.on2Fa ||
|
|
154
|
+
newValue === UI_E_TopNotificationActionId.on2FaImportant
|
|
155
|
+
) {
|
|
156
|
+
isOn2FaImportant.value =
|
|
157
|
+
newValue === UI_E_TopNotificationActionId.on2FaImportant
|
|
151
158
|
selectedTab.value = 'security-tab'
|
|
152
159
|
$store.dispatch('main/A_SET_TOP_NOTIFICATION_ACTION_ID', -1)
|
|
153
160
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
<script setup lang="ts">
|
|
13
13
|
import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
|
|
14
|
-
import type { UI_T_LangValue } from '~/lib/models/types'
|
|
14
|
+
import type { UI_T_LangValue, UI_T_Project } from '~/lib/models/types'
|
|
15
15
|
import type { UI_T_SelectedRadio } from '~/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/lib/models/types'
|
|
16
16
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
17
17
|
import type { UI_I_RadioItemLang } from '~/components/common/layout/theHeader/userMenu/modals/preferences/changeLanguage/lib/models/interfaces'
|
|
@@ -24,6 +24,7 @@ import { defineBrowserLangFunc } from '~/components/common/layout/theHeader/lib/
|
|
|
24
24
|
const props = defineProps<{
|
|
25
25
|
newView: boolean
|
|
26
26
|
selectedType: UI_T_LangValue
|
|
27
|
+
project: UI_T_Project
|
|
27
28
|
selectedLanguage: UI_I_Dropdown | UI_T_LangValue
|
|
28
29
|
}>()
|
|
29
30
|
|
|
@@ -41,12 +42,15 @@ const currentComponent = computed(() =>
|
|
|
41
42
|
: defineAsyncComponent(() => import('./Old.vue'))
|
|
42
43
|
)
|
|
43
44
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
45
|
+
/* TODO SC-2104 */
|
|
46
|
+
const description = computed<string>(() =>
|
|
47
|
+
props.project === 'sphere'
|
|
48
|
+
? localization.value.common.languageDesc1
|
|
49
|
+
: localization.value.common.languageDesc.replaceAll(
|
|
50
|
+
'{trademark}',
|
|
51
|
+
String(config.public[`TRADEMARK_${useEnvLanguage()}`])
|
|
52
|
+
)
|
|
53
|
+
)
|
|
50
54
|
|
|
51
55
|
const radioOptions = readonly<UI_I_RadioItemLang[]>(
|
|
52
56
|
radioOptionsFunc(localization.value)
|
|
@@ -8,11 +8,13 @@
|
|
|
8
8
|
|
|
9
9
|
<script setup lang="ts">
|
|
10
10
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
11
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
11
12
|
import type { UI_I_RadioItemConsole } from '~/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/models/interfaces'
|
|
12
13
|
import { consoleOptionsFunc } from '~/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/config/consoleOptions'
|
|
13
14
|
|
|
14
15
|
const consoleValue = defineModel<string>()
|
|
15
16
|
const props = defineProps<{
|
|
17
|
+
project: UI_T_Project
|
|
16
18
|
newView: boolean
|
|
17
19
|
}>()
|
|
18
20
|
|
|
@@ -24,7 +26,11 @@ const currentComponent = computed(() =>
|
|
|
24
26
|
|
|
25
27
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
26
28
|
|
|
29
|
+
/* TODO SC-2104 */
|
|
27
30
|
const consoleOptions = readonly<UI_I_RadioItemConsole[]>(
|
|
28
|
-
consoleOptionsFunc(
|
|
31
|
+
consoleOptionsFunc(
|
|
32
|
+
localization.value,
|
|
33
|
+
props.newView && props.project === 'sphere'
|
|
34
|
+
)
|
|
29
35
|
)
|
|
30
36
|
</script>
|
|
@@ -2,14 +2,17 @@ import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
|
2
2
|
import type { UI_I_RadioItemConsole } from '~/components/common/layout/theHeader/userMenu/modals/preferences/defaultConsole/lib/models/interfaces'
|
|
3
3
|
|
|
4
4
|
export const consoleOptionsFunc = (
|
|
5
|
-
localization: UI_I_Localization
|
|
5
|
+
localization: UI_I_Localization,
|
|
6
|
+
isSphereNewView: boolean
|
|
6
7
|
): UI_I_RadioItemConsole[] => {
|
|
7
8
|
const config = useRuntimeConfig()
|
|
8
9
|
|
|
9
|
-
const remoteConsole =
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
const remoteConsole = isSphereNewView
|
|
11
|
+
? localization.common.remoteConsoleVmrc1
|
|
12
|
+
: localization.common.remoteConsoleVmrc.replaceAll(
|
|
13
|
+
'{trademark}',
|
|
14
|
+
String(config.public[`TRADEMARK_${useEnvLanguage()}`])
|
|
15
|
+
)
|
|
13
16
|
|
|
14
17
|
return [
|
|
15
18
|
{
|
package/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/TimeFormat.vue
CHANGED
|
@@ -12,12 +12,13 @@ import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
|
12
12
|
import type { UI_I_RadioItem } from '~/components/common/layout/theHeader/userMenu/lib/models/interfaces'
|
|
13
13
|
import type { UI_T_TimeValue } from '~/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/lib/models/types'
|
|
14
14
|
import { formatOptionsFunc } from '~/components/common/layout/theHeader/userMenu/modals/preferences/timeFormat/lib/config/formatOptions'
|
|
15
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
15
16
|
|
|
16
17
|
const timeFormat = defineModel<UI_T_TimeValue>('timeFormat')
|
|
17
18
|
const props = defineProps<{
|
|
19
|
+
project: UI_T_Project
|
|
18
20
|
newView: boolean
|
|
19
21
|
}>()
|
|
20
|
-
|
|
21
22
|
const currentComponent = computed(() =>
|
|
22
23
|
props.newView
|
|
23
24
|
? defineAsyncComponent(() => import('./New.vue'))
|
|
@@ -28,11 +29,14 @@ const localization = computed<UI_I_Localization>(() => useLocal())
|
|
|
28
29
|
|
|
29
30
|
const config = useRuntimeConfig()
|
|
30
31
|
|
|
32
|
+
/* TODO SC-2104 */
|
|
31
33
|
const description = computed<string>(() =>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
props.project === 'sphere'
|
|
35
|
+
? localization.value.common.timeFormatDesc1
|
|
36
|
+
: localization.value.common.timeFormatDesc.replaceAll(
|
|
37
|
+
'{trademark}',
|
|
38
|
+
String(config.public[`TRADEMARK_${useEnvLanguage()}`])
|
|
39
|
+
)
|
|
36
40
|
)
|
|
37
41
|
|
|
38
42
|
const formatOptions = readonly<UI_I_RadioItem[]>(
|
|
@@ -30,10 +30,13 @@ const currentComponent = computed(() =>
|
|
|
30
30
|
|
|
31
31
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
33
|
+
/* TODO SC-2104 */
|
|
34
|
+
const description = computed<string>(() =>
|
|
35
|
+
props.project === 'sphere'
|
|
36
|
+
? localization.value.common.viewDesc1
|
|
37
|
+
: localization.value.common.viewDesc.replaceAll(
|
|
38
|
+
'{trademark}',
|
|
39
|
+
String(config.public[`TRADEMARK_${useEnvLanguage()}`])
|
|
40
|
+
)
|
|
41
|
+
)
|
|
39
42
|
</script>
|