bfg-common 1.3.590 → 1.3.591
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 +66 -77
- package/assets/localization/local_en.json +66 -77
- package/assets/localization/local_hy.json +66 -77
- package/assets/localization/local_kk.json +66 -77
- package/assets/localization/local_ru.json +66 -80
- package/assets/localization/local_zh.json +66 -77
- package/components/atoms/TheIcon2.vue +1366 -1366
- package/components/common/browse/Browse.vue +240 -240
- package/components/common/browse/blocks/Title.vue +91 -91
- package/components/common/browse/blocks/info/Date.vue +21 -21
- package/components/common/context/recursion/Recursion.vue +86 -86
- package/components/common/context/recursion/RecursionNew.vue +198 -198
- package/components/common/context/recursion/RecursionOld.vue +212 -212
- package/components/common/layout/theHeader/TheHeaderNew.vue +5 -4
- package/components/common/layout/theHeader/helpMenu/helpMenuNew/HelpMenuNew.vue +37 -2
- package/components/common/layout/theHeader/helpMenu/helpMenuNew/lib/config/dropMenu.ts +3 -0
- package/components/common/layout/theHeader/userMenu/userMenuNew/UserMenuNew.vue +9 -2
- package/components/common/monitor/advanced/Advanced.vue +7 -4
- package/components/common/monitor/advanced/tools/Tools.vue +7 -4
- package/components/common/monitor/advanced/tools/chartOptionsModal/ChartOptionsModal.vue +19 -4
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/Counters.vue +3 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/Timespan.vue +3 -2
- package/components/common/monitor/advanced/tools/chartOptionsModal/counters/timespan/object/Object.vue +34 -12
- package/components/common/split/horizontal/HorizontalNew.vue +321 -321
- package/components/common/wizards/datastore/add/Add.vue +437 -437
- package/components/common/wizards/datastore/add/nfs/configuration/Configuration.vue +2 -2
- package/components/common/wizards/datastore/add/readyComplete/ReadyComplete.vue +95 -95
- package/composables/productNameLocal.ts +22 -31
- package/lib/models/interfaces.ts +3 -9
- package/lib/models/types.ts +13 -29
- package/package.json +1 -1
- package/plugins/recursion.ts +293 -293
- package/store/tasks/mappers/recentTasks.ts +45 -45
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
>
|
|
91
91
|
<div class="flex-align-center input-action-wrapper">
|
|
92
92
|
<input
|
|
93
|
-
id="configuration-
|
|
93
|
+
id="configuration-server-input"
|
|
94
94
|
v-model="form.server.value"
|
|
95
|
-
data-id="configuration-
|
|
95
|
+
data-id="configuration-server-input"
|
|
96
96
|
type="text"
|
|
97
97
|
class="clr-input"
|
|
98
98
|
@blur="onBlurInputServer"
|
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="ready-complete">
|
|
3
|
-
<div class="ready-complete__desc">{{ localization.readyCompleteDesc }}</div>
|
|
4
|
-
|
|
5
|
-
<common-details-list :items="properties" class="ready-complete__list list">
|
|
6
|
-
<template #default="{ item }">
|
|
7
|
-
<common-details-item
|
|
8
|
-
:has-children="true"
|
|
9
|
-
:test-id="item.testId"
|
|
10
|
-
open-by-default
|
|
11
|
-
>
|
|
12
|
-
<template #stackBlockKey>
|
|
13
|
-
<span class="list__labels">
|
|
14
|
-
{{ localization.chosenDatastoreName }}
|
|
15
|
-
</span>
|
|
16
|
-
</template>
|
|
17
|
-
|
|
18
|
-
<template #stackChildren>
|
|
19
|
-
<template
|
|
20
|
-
v-for="(item2, key2) in item.items"
|
|
21
|
-
:key="`${item2}_${key2}`"
|
|
22
|
-
>
|
|
23
|
-
<common-details-item
|
|
24
|
-
:has-children="false"
|
|
25
|
-
:test-id="item2.testId"
|
|
26
|
-
class="list__default-style"
|
|
27
|
-
>
|
|
28
|
-
<template #stackBlockKey>
|
|
29
|
-
<div>
|
|
30
|
-
{{ item2.label }}
|
|
31
|
-
</div>
|
|
32
|
-
</template>
|
|
33
|
-
<template #stackBlockContent>
|
|
34
|
-
<div v-if="item2.data">
|
|
35
|
-
<div
|
|
36
|
-
v-for="item3 in item2.data"
|
|
37
|
-
:key="item3"
|
|
38
|
-
class="flex-align-center"
|
|
39
|
-
>
|
|
40
|
-
<div class="vsphere-icon-host"></div>
|
|
41
|
-
<span>{{ item3 }}</span>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
<span v-else>
|
|
45
|
-
{{ item2.value }}
|
|
46
|
-
</span>
|
|
47
|
-
</template>
|
|
48
|
-
</common-details-item>
|
|
49
|
-
</template>
|
|
50
|
-
</template>
|
|
51
|
-
</common-details-item>
|
|
52
|
-
</template>
|
|
53
|
-
</common-details-list>
|
|
54
|
-
</div>
|
|
55
|
-
</template>
|
|
56
|
-
|
|
57
|
-
<script lang="ts" setup>
|
|
58
|
-
import { UI_I_DetailsItem } from '~/components/common/details/lib/models/interfaces'
|
|
59
|
-
import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
60
|
-
|
|
61
|
-
const props = defineProps<{
|
|
62
|
-
dataReadyView: UI_I_DetailsItem[]
|
|
63
|
-
}>()
|
|
64
|
-
// console.log(props)
|
|
65
|
-
|
|
66
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
67
|
-
|
|
68
|
-
const properties = computed<UI_I_DetailsItem[]>(() => props.dataReadyView)
|
|
69
|
-
</script>
|
|
70
|
-
|
|
71
|
-
<style lang="scss" scoped>
|
|
72
|
-
@import '~/assets/scss/common/mixins.scss';
|
|
73
|
-
.ready-complete {
|
|
74
|
-
&__list {
|
|
75
|
-
@include flex($dir: column);
|
|
76
|
-
padding: 12px 0;
|
|
77
|
-
row-gap: 15px;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
.list {
|
|
81
|
-
&__labels {
|
|
82
|
-
@include text($fs: 13px, $fw: 700);
|
|
83
|
-
}
|
|
84
|
-
:deep(.list__default-style) {
|
|
85
|
-
.stack-block {
|
|
86
|
-
&__label {
|
|
87
|
-
align-items: flex-start;
|
|
88
|
-
}
|
|
89
|
-
&-content {
|
|
90
|
-
white-space: pre-line;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="ready-complete">
|
|
3
|
+
<div class="ready-complete__desc">{{ localization.readyCompleteDesc }}</div>
|
|
4
|
+
|
|
5
|
+
<common-details-list :items="properties" class="ready-complete__list list">
|
|
6
|
+
<template #default="{ item }">
|
|
7
|
+
<common-details-item
|
|
8
|
+
:has-children="true"
|
|
9
|
+
:test-id="item.testId"
|
|
10
|
+
open-by-default
|
|
11
|
+
>
|
|
12
|
+
<template #stackBlockKey>
|
|
13
|
+
<span class="list__labels">
|
|
14
|
+
{{ localization.chosenDatastoreName }}
|
|
15
|
+
</span>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<template #stackChildren>
|
|
19
|
+
<template
|
|
20
|
+
v-for="(item2, key2) in item.items"
|
|
21
|
+
:key="`${item2}_${key2}`"
|
|
22
|
+
>
|
|
23
|
+
<common-details-item
|
|
24
|
+
:has-children="false"
|
|
25
|
+
:test-id="item2.testId"
|
|
26
|
+
class="list__default-style"
|
|
27
|
+
>
|
|
28
|
+
<template #stackBlockKey>
|
|
29
|
+
<div>
|
|
30
|
+
{{ item2.label }}
|
|
31
|
+
</div>
|
|
32
|
+
</template>
|
|
33
|
+
<template #stackBlockContent>
|
|
34
|
+
<div v-if="item2.data">
|
|
35
|
+
<div
|
|
36
|
+
v-for="item3 in item2.data"
|
|
37
|
+
:key="item3"
|
|
38
|
+
class="flex-align-center"
|
|
39
|
+
>
|
|
40
|
+
<div class="vsphere-icon-host"></div>
|
|
41
|
+
<span>{{ item3 }}</span>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
<span v-else>
|
|
45
|
+
{{ item2.value }}
|
|
46
|
+
</span>
|
|
47
|
+
</template>
|
|
48
|
+
</common-details-item>
|
|
49
|
+
</template>
|
|
50
|
+
</template>
|
|
51
|
+
</common-details-item>
|
|
52
|
+
</template>
|
|
53
|
+
</common-details-list>
|
|
54
|
+
</div>
|
|
55
|
+
</template>
|
|
56
|
+
|
|
57
|
+
<script lang="ts" setup>
|
|
58
|
+
import { UI_I_DetailsItem } from '~/components/common/details/lib/models/interfaces'
|
|
59
|
+
import { UI_I_Localization } from '~/lib/models/interfaces'
|
|
60
|
+
|
|
61
|
+
const props = defineProps<{
|
|
62
|
+
dataReadyView: UI_I_DetailsItem[]
|
|
63
|
+
}>()
|
|
64
|
+
// console.log(props)
|
|
65
|
+
|
|
66
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
67
|
+
|
|
68
|
+
const properties = computed<UI_I_DetailsItem[]>(() => props.dataReadyView)
|
|
69
|
+
</script>
|
|
70
|
+
|
|
71
|
+
<style lang="scss" scoped>
|
|
72
|
+
@import '~/assets/scss/common/mixins.scss';
|
|
73
|
+
.ready-complete {
|
|
74
|
+
&__list {
|
|
75
|
+
@include flex($dir: column);
|
|
76
|
+
padding: 12px 0;
|
|
77
|
+
row-gap: 15px;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
.list {
|
|
81
|
+
&__labels {
|
|
82
|
+
@include text($fs: 13px, $fw: 700);
|
|
83
|
+
}
|
|
84
|
+
:deep(.list__default-style) {
|
|
85
|
+
.stack-block {
|
|
86
|
+
&__label {
|
|
87
|
+
align-items: flex-start;
|
|
88
|
+
}
|
|
89
|
+
&-content {
|
|
90
|
+
white-space: pre-line;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
</style>
|
|
@@ -1,31 +1,22 @@
|
|
|
1
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const productName =
|
|
10
|
-
config.public.LOCALIZATION_CODE === 'ru'
|
|
11
|
-
? config.public.PRODUCT_NAME_RU
|
|
12
|
-
: config.public.PRODUCT_NAME_EN
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
if (['common', 'auth', 'home', 'tasks', 'layout', 'mainNavigation'].includes(key)) {
|
|
24
|
-
for (const key2 of Object.keys(item)) {
|
|
25
|
-
item[key2] = item[key2].replaceAll('{productName}', productName)
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
return localization
|
|
31
|
-
}
|
|
1
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
+
|
|
3
|
+
export function productNameLocal(
|
|
4
|
+
localization: UI_I_Localization
|
|
5
|
+
): UI_I_Localization {
|
|
6
|
+
const config = useRuntimeConfig()
|
|
7
|
+
|
|
8
|
+
const keys = Object.keys(localization)
|
|
9
|
+
const productName =
|
|
10
|
+
config.public.LOCALIZATION_CODE === 'ru'
|
|
11
|
+
? config.public.PRODUCT_NAME_RU
|
|
12
|
+
: config.public.PRODUCT_NAME_EN
|
|
13
|
+
|
|
14
|
+
for (let key in localization) {
|
|
15
|
+
localization[key] = localization[key].replaceAll(
|
|
16
|
+
'{productName}',
|
|
17
|
+
String(productName)
|
|
18
|
+
)
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return localization
|
|
22
|
+
}
|
package/lib/models/interfaces.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { UI_T_NotificationStatus } from '~/components/atoms/alert/lib/models/types'
|
|
2
2
|
import { UI_E_State } from '~/lib/models/enums'
|
|
3
3
|
|
|
4
4
|
export interface UI_I_ItemView {
|
|
@@ -13,14 +13,8 @@ export interface UI_I_ArbitraryObject<T> {
|
|
|
13
13
|
[key: string]: T
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export interface UI_I_Localization {
|
|
17
|
-
|
|
18
|
-
auth: UI_I_ArbitraryObject<string>
|
|
19
|
-
home: UI_I_ArbitraryObject<string>
|
|
20
|
-
tasks: UI_I_ArbitraryObject<string>
|
|
21
|
-
layout: UI_I_ArbitraryObject<string>
|
|
22
|
-
mainNavigation: UI_I_ArbitraryObject<string>
|
|
23
|
-
}
|
|
16
|
+
export interface UI_I_Localization extends UI_I_ArbitraryObject<string> {}
|
|
17
|
+
|
|
24
18
|
export interface UI_I_SendTaskParams {
|
|
25
19
|
method: string
|
|
26
20
|
target: string
|
package/lib/models/types.ts
CHANGED
|
@@ -1,29 +1,13 @@
|
|
|
1
|
-
export type UI_T_Project = 'sphere' | 'procurator'
|
|
2
|
-
|
|
3
|
-
export type UI_T_Binary = 'KB' | 'MB' | 'GB' | 'TB' | 'PB' | 'EB' | 'ZB' | 'YB'
|
|
4
|
-
export type UI_T_BinaryLower =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
| '
|
|
8
|
-
| '
|
|
9
|
-
| '
|
|
10
|
-
| '
|
|
11
|
-
| '
|
|
12
|
-
| '
|
|
13
|
-
|
|
14
|
-
export type UI_T_LangValue =
|
|
15
|
-
| 'en_US'
|
|
16
|
-
| 'ru_RU'
|
|
17
|
-
| 'hy_AM'
|
|
18
|
-
| 'zh_CHS'
|
|
19
|
-
| 'kk_KZ'
|
|
20
|
-
| 'be_BY'
|
|
21
|
-
| 'BROWSER'
|
|
22
|
-
|
|
23
|
-
export type UI_T_LanguageKey =
|
|
24
|
-
| 'common'
|
|
25
|
-
| 'auth'
|
|
26
|
-
| 'home'
|
|
27
|
-
| 'tasks'
|
|
28
|
-
| 'layout'
|
|
29
|
-
| 'mainNavigation'
|
|
1
|
+
export type UI_T_Project = 'sphere' | 'procurator'
|
|
2
|
+
|
|
3
|
+
export type UI_T_Binary = 'KB' | 'MB' | 'GB' | 'TB' | 'PB' | 'EB' | 'ZB' | 'YB'
|
|
4
|
+
export type UI_T_BinaryLower = 'kb' | 'mb' | 'gb' | 'tb' | 'pb' | 'eb' | 'zb' | 'yb'
|
|
5
|
+
|
|
6
|
+
export type UI_T_LangValue =
|
|
7
|
+
| 'en_US'
|
|
8
|
+
| 'ru_RU'
|
|
9
|
+
| 'hy_AM'
|
|
10
|
+
| 'zh_CHS'
|
|
11
|
+
| 'kk_KZ'
|
|
12
|
+
| 'be_BY'
|
|
13
|
+
| 'BROWSER'
|