bfg-common 1.6.78 → 1.6.80
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 +21 -7
- package/assets/localization/local_en.json +21 -7
- package/assets/localization/local_hy.json +21 -7
- package/assets/localization/local_kk.json +21 -7
- package/assets/localization/local_ru.json +21 -7
- package/assets/localization/local_zh.json +21 -7
- package/components/common/adapterManager/AdapterManagerNew.vue +1 -0
- package/components/common/certificate/Certificate.vue +16 -6
- package/components/common/certificate/Info/Info.vue +61 -0
- package/components/common/certificate/{CertificateInfo.vue → Info/Old.vue} +6 -34
- package/components/common/certificate/Info/new/New.vue +285 -0
- package/components/common/certificate/Info/new/lib/config/index.ts +59 -0
- package/components/common/certificate/Info/new/lib/models/interfaces.ts +3 -0
- package/components/common/certificate/Info/new/lib/utils/index.ts +10 -0
- package/components/common/certificate/Old.vue +27 -0
- package/components/common/certificate/new/New.vue +30 -0
- package/components/common/certificate/new/Skeleton.vue +155 -0
- package/components/common/certificate/tools/New.vue +48 -0
- package/components/common/certificate/tools/Old.vue +39 -0
- package/components/common/certificate/{Tools.vue → tools/Tools.vue} +18 -23
- package/components/common/certificate/tools/lib/config/tabsPannel.ts +20 -0
- package/components/common/configure/physicalAdapters/tableView/lib/config/settings.ts +29 -29
- package/components/common/diagramMain/modals/Modals.vue +479 -483
- package/components/common/diagramMain/modals/lib/config/adapterModal.ts +147 -147
- package/components/common/diagramMain/modals/lib/config/networkModal.ts +405 -405
- package/components/common/diagramMain/modals/lib/config/portModal.ts +253 -253
- package/components/common/diagramMain/modals/lib/config/vCenterModal.ts +48 -48
- package/components/common/diagramMain/modals/managePhysicalAdapters/ManagePhysicalAdapters.vue +164 -0
- package/components/common/diagramMain/modals/managePhysicalAdapters/ManagePhysicalAdaptersNew.vue +306 -0
- package/components/common/diagramMain/modals/{ManagePhysicalAdaptersModal.vue → managePhysicalAdapters/ManagePhysicalAdaptersOld.vue} +245 -331
- package/components/common/diagramMain/modals/remove/RemoveModalNew.vue +157 -106
- package/components/common/diagramMain/modals/viewSettings/viewSettingsModal/ViewSettingsModalNew.vue +58 -50
- package/package.json +2 -2
- package/components/common/certificate/lib/config/tabsPannel.ts +0 -22
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
size="small"
|
|
9
|
-
@change="onShowModal"
|
|
10
|
-
/>
|
|
11
|
-
</template>
|
|
12
|
-
</common-headline>
|
|
13
|
-
</div>
|
|
2
|
+
<component
|
|
3
|
+
:is="currentComponent"
|
|
4
|
+
:page-title="localization.common.certificate"
|
|
5
|
+
:tabs="tabs"
|
|
6
|
+
@show-modal="onShowModal"
|
|
7
|
+
/>
|
|
14
8
|
|
|
15
9
|
<common-certificate-modals-renew
|
|
16
10
|
v-if="isShowModal"
|
|
@@ -24,12 +18,22 @@
|
|
|
24
18
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
25
19
|
import type { UI_I_CollapseNavItem } from '~/components/atoms/collapse/lib/models/interfaces'
|
|
26
20
|
import type { UI_T_ModeModal } from '~/components/common/certificate/lib/models/types'
|
|
27
|
-
import { certificateTabsFunc } from '~/components/common/certificate/lib/config/tabsPannel'
|
|
21
|
+
import { certificateTabsFunc } from '~/components/common/certificate/tools/lib/config/tabsPannel'
|
|
28
22
|
|
|
29
23
|
const emits = defineEmits<{
|
|
30
24
|
(event: 'renew-certificate'): void
|
|
31
25
|
}>()
|
|
32
26
|
|
|
27
|
+
const { $store }: any = useNuxtApp()
|
|
28
|
+
|
|
29
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
30
|
+
|
|
31
|
+
const currentComponent = computed(() =>
|
|
32
|
+
isNewView.value
|
|
33
|
+
? defineAsyncComponent(() => import('./New.vue'))
|
|
34
|
+
: defineAsyncComponent(() => import('./Old.vue'))
|
|
35
|
+
)
|
|
36
|
+
|
|
33
37
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
34
38
|
|
|
35
39
|
const tabs = computed<UI_I_CollapseNavItem[]>(() =>
|
|
@@ -47,13 +51,4 @@ const onHideModal = (): void => {
|
|
|
47
51
|
}
|
|
48
52
|
</script>
|
|
49
53
|
|
|
50
|
-
<style lang="scss" scoped>
|
|
51
|
-
.certificate-headline {
|
|
52
|
-
:deep(.heading-block__actions) {
|
|
53
|
-
.nav {
|
|
54
|
-
margin-top: 0;
|
|
55
|
-
align-items: flex-start;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
</style>
|
|
54
|
+
<style lang="scss" scoped></style>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
2
|
+
import type { UI_I_CollapseNavItem } from '~/components/atoms/collapse/lib/models/interfaces'
|
|
3
|
+
|
|
4
|
+
export const certificateTabsFunc = (
|
|
5
|
+
localization: UI_I_Localization
|
|
6
|
+
): UI_I_CollapseNavItem[] => [
|
|
7
|
+
{
|
|
8
|
+
text: localization.common.renew,
|
|
9
|
+
value: 'renew',
|
|
10
|
+
disabled: false,
|
|
11
|
+
testId: 'certificate-renew',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
text: localization.common.certificateRefreshTitle,
|
|
15
|
+
value: 'refreshCaCertificates',
|
|
16
|
+
disabled: true,
|
|
17
|
+
testId: 'certificate-refresh',
|
|
18
|
+
development: true,
|
|
19
|
+
},
|
|
20
|
+
]
|
|
@@ -6,7 +6,7 @@ import type {
|
|
|
6
6
|
} from '~/components/common/configure/physicalAdapters/tableView/lib/models/interfaces'
|
|
7
7
|
|
|
8
8
|
export const adapterViewSettingsModalTabsFunc = (
|
|
9
|
-
|
|
9
|
+
localization: UI_I_Localization
|
|
10
10
|
): UI_I_ViewSettingsModalTabs[] => [
|
|
11
11
|
{
|
|
12
12
|
text: localization.common.all,
|
|
@@ -31,8 +31,8 @@ export const adapterViewSettingsModalTabsFunc = (
|
|
|
31
31
|
]
|
|
32
32
|
|
|
33
33
|
export const adapterViewSettingsFunc = (
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
localization: UI_I_Localization,
|
|
35
|
+
initialData: UI_I_ModalsInitialData
|
|
36
36
|
): UI_I_ViewSettingsFields[] => {
|
|
37
37
|
return [
|
|
38
38
|
{
|
|
@@ -41,19 +41,19 @@ export const adapterViewSettingsFunc = (
|
|
|
41
41
|
type: 1,
|
|
42
42
|
rows: [
|
|
43
43
|
{
|
|
44
|
-
name: localization.common.adapter,
|
|
44
|
+
name: localization.common.adapter + ':',
|
|
45
45
|
value: initialData.adapter?.trim() || '',
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
|
-
name: localization.common.name,
|
|
48
|
+
name: localization.common.name + ':',
|
|
49
49
|
value: initialData.name || '',
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
|
-
name: localization.common.location,
|
|
52
|
+
name: localization.common.location + ':',
|
|
53
53
|
value: `PCI ${initialData.pciAddress}`,
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
|
-
name: localization.common.driver,
|
|
56
|
+
name: localization.common.driver + ':',
|
|
57
57
|
value: initialData.driver || '',
|
|
58
58
|
},
|
|
59
59
|
],
|
|
@@ -64,37 +64,37 @@ export const adapterViewSettingsFunc = (
|
|
|
64
64
|
type: 1,
|
|
65
65
|
rows: [
|
|
66
66
|
{
|
|
67
|
-
name: localization.common.status,
|
|
67
|
+
name: localization.common.status + ':',
|
|
68
68
|
value: initialData.carrier
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
? localization.common.connected
|
|
70
|
+
: localization.common.disconnected,
|
|
71
71
|
status: true,
|
|
72
72
|
color: initialData.carrier,
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
|
-
name: localization.common.actualSpeedDuplex,
|
|
75
|
+
name: localization.common.actualSpeedDuplex + ':',
|
|
76
76
|
value:
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
77
|
+
initialData.carrier && initialData.speed
|
|
78
|
+
? `${initialData.speed / 1000} ${localization.common.gbitS}, ${
|
|
79
|
+
initialData.duplex
|
|
80
|
+
} Duplex`
|
|
81
|
+
: localization.common.down,
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
|
-
name: localization.common.configuredSpeedDuplex,
|
|
84
|
+
name: localization.common.configuredSpeedDuplex + ':',
|
|
85
85
|
value:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
initialData.carrier && initialData.speed
|
|
87
|
+
? `${initialData.speed / 1000} ${localization.common.gbitS}, ${
|
|
88
|
+
initialData.duplex
|
|
89
|
+
} Duplex`
|
|
90
|
+
: localization.common.autoNegotiate,
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
|
-
name: localization.common.networks,
|
|
93
|
+
name: localization.common.networks + ':',
|
|
94
94
|
value:
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
95
|
+
initialData.networks && initialData.networks?.length > 0
|
|
96
|
+
? initialData.networks
|
|
97
|
+
: localization.common.noNetworks,
|
|
98
98
|
},
|
|
99
99
|
],
|
|
100
100
|
},
|
|
@@ -104,10 +104,10 @@ export const adapterViewSettingsFunc = (
|
|
|
104
104
|
type: 1,
|
|
105
105
|
rows: [
|
|
106
106
|
{
|
|
107
|
-
name: localization.common.status,
|
|
107
|
+
name: localization.common.status + ':',
|
|
108
108
|
value: !initialData.srIov
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
? localization.common.notSupported
|
|
110
|
+
: localization.common.supported,
|
|
111
111
|
status: true,
|
|
112
112
|
color: initialData.srIov,
|
|
113
113
|
},
|