bfg-common 1.6.78 → 1.6.79
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 +14 -1
- package/assets/localization/local_en.json +14 -1
- package/assets/localization/local_hy.json +14 -1
- package/assets/localization/local_kk.json +14 -1
- package/assets/localization/local_ru.json +14 -1
- package/assets/localization/local_zh.json +14 -1
- 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/diagramMain/modals/Modals.vue +479 -483
- 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/package.json +2 -2
- package/components/common/certificate/lib/config/tabsPannel.ts +0 -22
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<atoms-loader v-show="props.loading" test-id="certificate-spinner" />
|
|
3
|
+
<div class="certificate flex flex-col h-full">
|
|
4
|
+
<common-certificate-tools @renew-certificate="emits('renew-certificate')" />
|
|
5
|
+
|
|
6
|
+
<common-certificate-info :certificate-data="props.certificateData" />
|
|
7
|
+
</div>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script lang="ts" setup>
|
|
11
|
+
import type { UI_I_Certificate } from '~/components/common/certificate/lib/models/interfaces'
|
|
12
|
+
|
|
13
|
+
const props = defineProps<{
|
|
14
|
+
loading: boolean
|
|
15
|
+
certificateData: UI_I_Certificate | {}
|
|
16
|
+
}>()
|
|
17
|
+
|
|
18
|
+
const emits = defineEmits<{
|
|
19
|
+
(event: 'renew-certificate'): void
|
|
20
|
+
}>()
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<style lang="scss" scoped>
|
|
24
|
+
.certificate {
|
|
25
|
+
padding-left: 10px;
|
|
26
|
+
}
|
|
27
|
+
</style>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<common-certificate-new-skeleton
|
|
3
|
+
v-if="props.loading"
|
|
4
|
+
test-id="certificate-spinner"
|
|
5
|
+
/>
|
|
6
|
+
<div v-else class="certificate flex flex-col h-full">
|
|
7
|
+
<common-certificate-tools @renew-certificate="emits('renew-certificate')" />
|
|
8
|
+
|
|
9
|
+
<common-certificate-info :certificate-data="props.certificateData" />
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
|
|
13
|
+
<script lang="ts" setup>
|
|
14
|
+
import type { UI_I_Certificate } from '~/components/common/certificate/lib/models/interfaces'
|
|
15
|
+
|
|
16
|
+
const props = defineProps<{
|
|
17
|
+
loading: boolean
|
|
18
|
+
certificateData: UI_I_Certificate | {}
|
|
19
|
+
}>()
|
|
20
|
+
|
|
21
|
+
const emits = defineEmits<{
|
|
22
|
+
(event: 'renew-certificate'): void
|
|
23
|
+
}>()
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<style lang="scss" scoped>
|
|
27
|
+
.certificate {
|
|
28
|
+
padding-left: 10px;
|
|
29
|
+
}
|
|
30
|
+
</style>
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="certificate-skeleton-page grid h-full">
|
|
3
|
+
<div class="flex justify-between flex-wrap gap-4 mb-4">
|
|
4
|
+
<ui-skeleton-item width="160" height="22" />
|
|
5
|
+
<ui-skeleton-item width="106" height="36" border-radius="8" />
|
|
6
|
+
</div>
|
|
7
|
+
|
|
8
|
+
<div class="page-body p-4">
|
|
9
|
+
<div class="info-block-box flex justify-between flex-wrap gap-4 mb-3 p-4">
|
|
10
|
+
<div class="flex gap-3">
|
|
11
|
+
<ui-skeleton-item width="38" height="38" border-radius="50%" />
|
|
12
|
+
<div class="grid gap-1">
|
|
13
|
+
<ui-skeleton-item width="80" height="18" />
|
|
14
|
+
<ui-skeleton-item width="400" height="16" />
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="info-block-top-right-block">
|
|
18
|
+
<div class="flex justify-between gap-3 mb-[10px]">
|
|
19
|
+
<ui-skeleton-item width="64" height="18" />
|
|
20
|
+
<ui-skeleton-item width="64" height="18" />
|
|
21
|
+
</div>
|
|
22
|
+
<ui-skeleton-item width="100%" height="10" />
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
<div class="grid cols-2 gap-3">
|
|
26
|
+
<div class="info-block-box p-4">
|
|
27
|
+
<div class="flex items-center gap-3 mb-4">
|
|
28
|
+
<ui-skeleton-item width="40" height="40" border-radius="8" />
|
|
29
|
+
<ui-skeleton-item width="80" height="18" />
|
|
30
|
+
</div>
|
|
31
|
+
<div class="flex justify-between gap-4 mb-3">
|
|
32
|
+
<ui-skeleton-item width="212" height="18" />
|
|
33
|
+
<ui-skeleton-item width="292" height="18" />
|
|
34
|
+
</div>
|
|
35
|
+
<div class="flex justify-between gap-4 mb-3">
|
|
36
|
+
<ui-skeleton-item width="160" height="18" />
|
|
37
|
+
<ui-skeleton-item width="160" height="18" />
|
|
38
|
+
</div>
|
|
39
|
+
<div class="flex justify-between gap-4 mb-3">
|
|
40
|
+
<ui-skeleton-item width="240" height="18" />
|
|
41
|
+
<ui-skeleton-item width="240" height="18" />
|
|
42
|
+
</div>
|
|
43
|
+
<div class="flex justify-between gap-4 mb-3">
|
|
44
|
+
<ui-skeleton-item width="112" height="18" />
|
|
45
|
+
<ui-skeleton-item width="272" height="18" />
|
|
46
|
+
</div>
|
|
47
|
+
<div class="flex justify-between gap-4 mb-3">
|
|
48
|
+
<ui-skeleton-item width="212" height="18" />
|
|
49
|
+
<ui-skeleton-item width="144" height="18" />
|
|
50
|
+
</div>
|
|
51
|
+
<div class="flex justify-between gap-4 mb-3">
|
|
52
|
+
<ui-skeleton-item width="80" height="18" />
|
|
53
|
+
<ui-skeleton-item width="290" height="18" />
|
|
54
|
+
</div>
|
|
55
|
+
<div class="flex justify-between gap-4 mb-3">
|
|
56
|
+
<ui-skeleton-item width="256" height="18" />
|
|
57
|
+
<ui-skeleton-item width="80" height="18" />
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="info-block-box p-4">
|
|
61
|
+
<div class="flex items-center gap-3 mb-4">
|
|
62
|
+
<ui-skeleton-item width="40" height="40" border-radius="8" />
|
|
63
|
+
<ui-skeleton-item width="80" height="18" />
|
|
64
|
+
</div>
|
|
65
|
+
<div class="flex justify-between gap-4 mb-3">
|
|
66
|
+
<ui-skeleton-item width="212" height="18" />
|
|
67
|
+
<ui-skeleton-item width="292" height="18" />
|
|
68
|
+
</div>
|
|
69
|
+
<div class="flex justify-between gap-4 mb-3">
|
|
70
|
+
<ui-skeleton-item width="160" height="18" />
|
|
71
|
+
<ui-skeleton-item width="160" height="18" />
|
|
72
|
+
</div>
|
|
73
|
+
<div class="flex justify-between gap-4 mb-3">
|
|
74
|
+
<ui-skeleton-item width="240" height="18" />
|
|
75
|
+
<ui-skeleton-item width="240" height="18" />
|
|
76
|
+
</div>
|
|
77
|
+
<div class="flex justify-between gap-4 mb-3">
|
|
78
|
+
<ui-skeleton-item width="112" height="18" />
|
|
79
|
+
<ui-skeleton-item width="272" height="18" />
|
|
80
|
+
</div>
|
|
81
|
+
<div class="flex justify-between gap-4 mb-3">
|
|
82
|
+
<ui-skeleton-item width="212" height="18" />
|
|
83
|
+
<ui-skeleton-item width="144" height="18" />
|
|
84
|
+
</div>
|
|
85
|
+
<div class="flex justify-between gap-4 mb-3">
|
|
86
|
+
<ui-skeleton-item width="80" height="18" />
|
|
87
|
+
<ui-skeleton-item width="290" height="18" />
|
|
88
|
+
</div>
|
|
89
|
+
<div class="flex justify-between gap-4 mb-3">
|
|
90
|
+
<ui-skeleton-item width="256" height="18" />
|
|
91
|
+
<ui-skeleton-item width="80" height="18" />
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
<ui-skeleton-item width="80" height="20" class="mt-4 mb-4" />
|
|
96
|
+
<div class="info-block-box p-4">
|
|
97
|
+
<ui-skeleton-item width="80" height="18" />
|
|
98
|
+
<div class="grid cols-2">
|
|
99
|
+
<div class="flex mt-4">
|
|
100
|
+
<ui-skeleton-item width="40" height="40" border-radius="8" />
|
|
101
|
+
<div class="ml-3">
|
|
102
|
+
<ui-skeleton-item width="80" height="18" class="mb-1" />
|
|
103
|
+
<ui-skeleton-item width="240" height="18" />
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
<div class="flex mt-4">
|
|
107
|
+
<ui-skeleton-item width="40" height="40" border-radius="8" />
|
|
108
|
+
<div class="ml-3">
|
|
109
|
+
<ui-skeleton-item width="80" height="18" class="mb-1" />
|
|
110
|
+
<ui-skeleton-item width="240" height="18" />
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
</template>
|
|
118
|
+
|
|
119
|
+
<script setup lang="ts"></script>
|
|
120
|
+
|
|
121
|
+
<style>
|
|
122
|
+
:root {
|
|
123
|
+
--certificate-page-skeleton-body-bg: #ffffff;
|
|
124
|
+
--certificate-page-skeleton-body-info-block-bg: #ffffff;
|
|
125
|
+
--certificate-page-skeleton-body-info-block-border: #e9ebed;
|
|
126
|
+
}
|
|
127
|
+
:root.dark-theme {
|
|
128
|
+
--certificate-page-skeleton-body-bg: #334453;
|
|
129
|
+
--certificate-page-skeleton-body-info-block-bg: #1b2a371f;
|
|
130
|
+
--certificate-page-skeleton-body-info-block-border: #e9ebed1f;
|
|
131
|
+
}
|
|
132
|
+
</style>
|
|
133
|
+
|
|
134
|
+
<style scoped lang="scss">
|
|
135
|
+
.certificate-skeleton-page {
|
|
136
|
+
grid-template-rows: max-content auto;
|
|
137
|
+
margin-top: 6px;
|
|
138
|
+
|
|
139
|
+
.page-body {
|
|
140
|
+
background-color: var(--certificate-page-skeleton-body-bg);
|
|
141
|
+
box-shadow: 0 1px 4px 0 #00000014;
|
|
142
|
+
border-radius: 8px;
|
|
143
|
+
|
|
144
|
+
.info-block-box {
|
|
145
|
+
background-color: var(--certificate-page-skeleton-body-info-block-bg);
|
|
146
|
+
border: 1px solid var(--certificate-page-skeleton-body-info-block-border);
|
|
147
|
+
border-radius: 8px;
|
|
148
|
+
|
|
149
|
+
.info-block-top-right-block {
|
|
150
|
+
min-width: 320px;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
</style>
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex flex-wrap justify-between gap-4 mb-4">
|
|
3
|
+
<h3 class="certificate-title text-[18px] font-[500]">
|
|
4
|
+
{{ props.pageTitle }}
|
|
5
|
+
</h3>
|
|
6
|
+
|
|
7
|
+
<ui-button
|
|
8
|
+
test-id="certificate-renew-button"
|
|
9
|
+
size="md"
|
|
10
|
+
@click="emits('show-modal', 'renew')"
|
|
11
|
+
>
|
|
12
|
+
<template #icon> <ui-icon name="update" width="24" /> </template>
|
|
13
|
+
{{ localization.common.renew }}
|
|
14
|
+
</ui-button>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script lang="ts" setup>
|
|
19
|
+
import type { UI_I_CollapseNavItem } from '~/components/atoms/collapse/lib/models/interfaces'
|
|
20
|
+
import type { UI_T_ModeModal } from '~/components/common/certificate/lib/models/types'
|
|
21
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
22
|
+
|
|
23
|
+
const props = defineProps<{
|
|
24
|
+
pageTitle: string
|
|
25
|
+
tabs: UI_I_CollapseNavItem[]
|
|
26
|
+
}>()
|
|
27
|
+
|
|
28
|
+
const emits = defineEmits<{
|
|
29
|
+
(event: 'show-modal', value: UI_T_ModeModal): void
|
|
30
|
+
}>()
|
|
31
|
+
|
|
32
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
33
|
+
</script>
|
|
34
|
+
|
|
35
|
+
<style>
|
|
36
|
+
:root {
|
|
37
|
+
--certificate-page-title: #4d5d69;
|
|
38
|
+
}
|
|
39
|
+
:root.dark-theme {
|
|
40
|
+
--certificate-page-title: #e9eaec;
|
|
41
|
+
}
|
|
42
|
+
</style>
|
|
43
|
+
|
|
44
|
+
<style lang="scss" scoped>
|
|
45
|
+
.certificate-title {
|
|
46
|
+
color: var(--certificate-page-title);
|
|
47
|
+
}
|
|
48
|
+
</style>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="certificate-headline">
|
|
3
|
+
<common-headline :headline="props.pageTitle">
|
|
4
|
+
<template #action>
|
|
5
|
+
<atoms-tabs
|
|
6
|
+
:items="props.tabs"
|
|
7
|
+
test-id="certificate-tabs"
|
|
8
|
+
size="small"
|
|
9
|
+
@change="emits('show-modal', $event)"
|
|
10
|
+
/>
|
|
11
|
+
</template>
|
|
12
|
+
</common-headline>
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<script lang="ts" setup>
|
|
17
|
+
import type { UI_I_CollapseNavItem } from '~/components/atoms/collapse/lib/models/interfaces'
|
|
18
|
+
import type { UI_T_ModeModal } from '~/components/common/certificate/lib/models/types'
|
|
19
|
+
|
|
20
|
+
const props = defineProps<{
|
|
21
|
+
pageTitle: string
|
|
22
|
+
tabs: UI_I_CollapseNavItem[]
|
|
23
|
+
}>()
|
|
24
|
+
|
|
25
|
+
const emits = defineEmits<{
|
|
26
|
+
(event: 'show-modal', value: UI_T_ModeModal): void
|
|
27
|
+
}>()
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
<style lang="scss" scoped>
|
|
31
|
+
.certificate-headline {
|
|
32
|
+
:deep(.heading-block__actions) {
|
|
33
|
+
.nav {
|
|
34
|
+
margin-top: 0;
|
|
35
|
+
align-items: flex-start;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
</style>
|
|
@@ -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
|
+
]
|