bfg-common 1.1.2 → 1.1.4
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/components/atoms/alert/Notification.vue +167 -167
- package/components/atoms/autocomplete/Autocomplete.vue +236 -236
- package/components/atoms/datepicker/Datepicker.vue +612 -612
- package/components/atoms/list/SelectList.vue +62 -62
- package/components/atoms/nav/NavBar.vue +116 -116
- package/components/atoms/nav/VerticalNavBar.vue +89 -89
- package/components/atoms/notificationBar/NotificationBar.vue +174 -174
- package/components/atoms/perPage/PerPage.vue +52 -52
- package/components/atoms/popup/SimplePopup.vue +90 -90
- package/components/atoms/step/VerticalStep.vue +104 -104
- package/components/atoms/switch/Switch.vue +107 -107
- package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +204 -204
- package/components/atoms/table/dataGrid/DataGridPage.vue +189 -189
- package/components/atoms/tabs/Tabs.vue +189 -189
- package/components/atoms/tooltip/Signpost.vue +224 -224
- package/components/common/adapterManager/AddAdapterWarningModal.vue +82 -82
- package/components/common/adapterManager/NoActiveAdaptersModal.vue +62 -62
- package/components/common/adapterManager/NoConnectedActiveAdaptersModal.vue +62 -62
- package/components/common/browse/Browse.vue +182 -182
- package/components/common/browse/blocks/Title.vue +66 -66
- package/components/common/diagramMain/adapter/AdapterItem.vue +227 -227
- package/components/common/diagramMain/adapter/AdapterItems.vue +57 -57
- package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +339 -339
- package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +202 -202
- package/components/common/diagramMain/modals/remove/RemoveModal.vue +226 -226
- package/components/common/diagramMain/network/Contents.vue +238 -238
- package/components/common/feedback/Buttons.vue +232 -232
- package/components/common/feedback/Message.vue +468 -468
- package/components/common/feedback/VisitPortal.vue +54 -54
- package/components/common/help/navbar/left/Left.vue +139 -139
- package/components/common/help/navbar/left/utils/constructAccordion.ts +27 -27
- package/components/common/home/Card.vue +63 -0
- package/components/common/home/ResourceBlock.vue +117 -0
- package/components/common/home/StatusContent.vue +47 -0
- package/components/common/home/alertsTable/AlertsTable.vue +105 -0
- package/components/common/home/alertsTable/config/config.ts +61 -0
- package/components/common/home/alertsTable/models/enums.ts +11 -0
- package/components/common/home/alertsTable/models/interfaces.ts +19 -0
- package/components/common/home/alertsTable/models/types.ts +18 -0
- package/components/common/home/config/configResourceMeterBlock.ts +25 -0
- package/components/common/home/models/interfaces.ts +59 -0
- package/components/common/home/models/types.ts +18 -0
- package/components/common/home/servicesTable/ServicesTable.vue +79 -0
- package/components/common/home/servicesTable/config/config.ts +62 -0
- package/components/common/mainNavigationPanel/MainNavigationPanel.vue +359 -359
- package/components/common/modals/Rename.vue +165 -165
- package/components/common/perPage/PerPage.vue +51 -51
- package/components/common/recursionTree/RecursionTree.vue +201 -201
- package/components/common/wizards/datastore/add/nfs/configuration/Configuration.vue +373 -373
- package/components/common/wizards/datastore/add/nfs/configuration/serversList/ServersList.vue +123 -123
- package/components/common/wizards/datastore/add/nfs/kerberosAuthentication/KerberosAuthentication.vue +54 -54
- package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/HostTable.vue +131 -131
- package/components/common/wizards/datastore/add/sharedStorm/partitionConfiguration/PartitionConfiguration.vue +230 -230
- package/models/store/storage/interfaces.ts +32 -32
- package/modules/fixContentBuild/index.ts +80 -84
- package/modules/fixContentBuild/utils/methods.ts +114 -117
- package/package.json +1 -1
- package/public/spice-console/application/codec.js +257 -257
- package/public/spice-console/lib/rasterEngine.js +907 -907
- package/public/spice-console/network/spicechannel.js +369 -369
- package/public/spice-console-minify/lib/decoder/dixie.min.js +4 -4
- package/public/spice-console-minify/lib/jgestures.min.js +24 -24
- package/public/spice-console-minify/lib/jquery-2.0.3.min.js +24 -24
- package/public/spice-console-minify/lib/jquery-mousewheel.min.js +11 -11
- package/public/spice-console-minify/lib/jquery-visibility.min.js +1 -1
- package/public/spice-console-minify/lib/lodash.4.0.0.min.js +5 -5
- package/utils/contentBuild.ts +34 -34
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div class="modal-body">
|
|
4
|
-
<div>
|
|
5
|
-
{{ localization.useOurExternalIdeasPortal }}
|
|
6
|
-
</div>
|
|
7
|
-
<a id="portal-link" :href="portalLink" target="_blank">
|
|
8
|
-
<button id="visit-ideas-portal-button" class="btn btn-outline wrap">
|
|
9
|
-
<span class="text"> {{ localization.visitIdeasPortal }} </span>
|
|
10
|
-
<atoms-the-icon2 class="btn-icon" name="pop-out" />
|
|
11
|
-
</button>
|
|
12
|
-
</a>
|
|
13
|
-
</div>
|
|
14
|
-
</div>
|
|
15
|
-
</template>
|
|
16
|
-
|
|
17
|
-
<script setup lang="ts">
|
|
18
|
-
import { UI_I_Localization } from '~/models/interfaces'
|
|
19
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
20
|
-
const portalLink = ref<string>('#')
|
|
21
|
-
</script>
|
|
22
|
-
|
|
23
|
-
<style scoped lang="scss">
|
|
24
|
-
.modal-body {
|
|
25
|
-
padding: 0;
|
|
26
|
-
a {
|
|
27
|
-
text-decoration: none;
|
|
28
|
-
|
|
29
|
-
.btn.btn-outline.wrap {
|
|
30
|
-
display: flex;
|
|
31
|
-
flex-direction: row;
|
|
32
|
-
align-items: center;
|
|
33
|
-
|
|
34
|
-
.text {
|
|
35
|
-
color: var(--icon-fill-hover-color);
|
|
36
|
-
}
|
|
37
|
-
& .btn-icon {
|
|
38
|
-
width: 16px;
|
|
39
|
-
height: 16px;
|
|
40
|
-
margin-left: 5px;
|
|
41
|
-
fill: var(--icon-fill-hover-color);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
</style>
|
|
47
|
-
<style>
|
|
48
|
-
:root {
|
|
49
|
-
--icon-fill-hover-color: rgb(0, 121, 184);
|
|
50
|
-
}
|
|
51
|
-
:root.dark-theme {
|
|
52
|
-
--icon-fill-hover-color: rgb(73, 175, 217);
|
|
53
|
-
}
|
|
54
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div class="modal-body">
|
|
4
|
+
<div>
|
|
5
|
+
{{ localization.useOurExternalIdeasPortal }}
|
|
6
|
+
</div>
|
|
7
|
+
<a id="portal-link" :href="portalLink" target="_blank">
|
|
8
|
+
<button id="visit-ideas-portal-button" class="btn btn-outline wrap">
|
|
9
|
+
<span class="text"> {{ localization.visitIdeasPortal }} </span>
|
|
10
|
+
<atoms-the-icon2 class="btn-icon" name="pop-out" />
|
|
11
|
+
</button>
|
|
12
|
+
</a>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script setup lang="ts">
|
|
18
|
+
import { UI_I_Localization } from '~/models/interfaces'
|
|
19
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
20
|
+
const portalLink = ref<string>('#')
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<style scoped lang="scss">
|
|
24
|
+
.modal-body {
|
|
25
|
+
padding: 0;
|
|
26
|
+
a {
|
|
27
|
+
text-decoration: none;
|
|
28
|
+
|
|
29
|
+
.btn.btn-outline.wrap {
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: row;
|
|
32
|
+
align-items: center;
|
|
33
|
+
|
|
34
|
+
.text {
|
|
35
|
+
color: var(--icon-fill-hover-color);
|
|
36
|
+
}
|
|
37
|
+
& .btn-icon {
|
|
38
|
+
width: 16px;
|
|
39
|
+
height: 16px;
|
|
40
|
+
margin-left: 5px;
|
|
41
|
+
fill: var(--icon-fill-hover-color);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
</style>
|
|
47
|
+
<style>
|
|
48
|
+
:root {
|
|
49
|
+
--icon-fill-hover-color: rgb(0, 121, 184);
|
|
50
|
+
}
|
|
51
|
+
:root.dark-theme {
|
|
52
|
+
--icon-fill-hover-color: rgb(73, 175, 217);
|
|
53
|
+
}
|
|
54
|
+
</style>
|
|
@@ -1,139 +1,139 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="left-navbar">
|
|
3
|
-
<div class="header-content">
|
|
4
|
-
<button
|
|
5
|
-
class="btn-trigger-collapsed-all"
|
|
6
|
-
@click="onToggleAccordionShowType"
|
|
7
|
-
>
|
|
8
|
-
<atoms-the-icon
|
|
9
|
-
:class="[
|
|
10
|
-
'trigger-icon',
|
|
11
|
-
{
|
|
12
|
-
isOpen: isCollapsed,
|
|
13
|
-
},
|
|
14
|
-
]"
|
|
15
|
-
name="angle"
|
|
16
|
-
/>
|
|
17
|
-
<span v-if="isCollapsed">{{ localization.collapseAll }}</span>
|
|
18
|
-
<span v-else>{{ localization.expandAll }}</span>
|
|
19
|
-
</button>
|
|
20
|
-
</div>
|
|
21
|
-
<common-accordion
|
|
22
|
-
:accordion="accordionItems"
|
|
23
|
-
:show-type="accordionShowType"
|
|
24
|
-
test-id="accordion-left-navbar"
|
|
25
|
-
/>
|
|
26
|
-
</div>
|
|
27
|
-
</template>
|
|
28
|
-
|
|
29
|
-
<script setup lang="ts">
|
|
30
|
-
import type { UI_I_Localization } from '~/models/interfaces'
|
|
31
|
-
import type { UI_T_ShowType } from '~/components/common/accordion/models/types'
|
|
32
|
-
import type { UI_I_AccordionRecursion } from '~/components/common/accordion/models/interfaces'
|
|
33
|
-
import type { UI_I_ContentNavigation } from '~/components/common/help/navbar/left/models/interfaces'
|
|
34
|
-
import { constructItems } from '~/components/common/help/navbar/left/utils/constructAccordion'
|
|
35
|
-
|
|
36
|
-
const props = defineProps<{
|
|
37
|
-
items: UI_I_ContentNavigation[] | null
|
|
38
|
-
}>()
|
|
39
|
-
|
|
40
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
41
|
-
|
|
42
|
-
const accordionShowType = ref<UI_T_ShowType>('default')
|
|
43
|
-
const isCollapsed = computed<boolean>(
|
|
44
|
-
() => accordionShowType.value === 'collapse'
|
|
45
|
-
)
|
|
46
|
-
|
|
47
|
-
const onToggleAccordionShowType = (): void => {
|
|
48
|
-
accordionShowType.value =
|
|
49
|
-
accordionShowType.value === 'collapse' ? 'expand' : 'collapse'
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
const accordionItems = ref<UI_I_AccordionRecursion[]>([])
|
|
53
|
-
|
|
54
|
-
watch(
|
|
55
|
-
() => props.items,
|
|
56
|
-
(newValue) => {
|
|
57
|
-
if (newValue === null) return
|
|
58
|
-
|
|
59
|
-
accordionItems.value = constructItems(newValue)
|
|
60
|
-
},
|
|
61
|
-
{ deep: true, immediate: true }
|
|
62
|
-
)
|
|
63
|
-
</script>
|
|
64
|
-
|
|
65
|
-
<style lang="scss">
|
|
66
|
-
.left-navbar {
|
|
67
|
-
width: 350px;
|
|
68
|
-
overflow: auto;
|
|
69
|
-
position: sticky;
|
|
70
|
-
top: 0;
|
|
71
|
-
border: 0.5px solid #e8e8e8;
|
|
72
|
-
|
|
73
|
-
.header-content {
|
|
74
|
-
border-bottom: 0.5px solid #e8e8e8;
|
|
75
|
-
padding: 11px 16px 11px 5px;
|
|
76
|
-
background-color: #fff;
|
|
77
|
-
position: sticky;
|
|
78
|
-
top: 0;
|
|
79
|
-
z-index: 1;
|
|
80
|
-
|
|
81
|
-
.btn-trigger-collapsed-all {
|
|
82
|
-
display: flex;
|
|
83
|
-
align-items: center;
|
|
84
|
-
gap: 5px;
|
|
85
|
-
cursor: pointer;
|
|
86
|
-
background-color: unset;
|
|
87
|
-
border: unset;
|
|
88
|
-
|
|
89
|
-
.trigger-icon {
|
|
90
|
-
width: 16px;
|
|
91
|
-
height: 16px;
|
|
92
|
-
transform: rotate(180deg);
|
|
93
|
-
fill: var(--triger-icon-color);
|
|
94
|
-
&.isOpen {
|
|
95
|
-
transform: rotate(0deg);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
span {
|
|
100
|
-
color: #0079b8;
|
|
101
|
-
font-size: 12px;
|
|
102
|
-
font-weight: bold;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.accordion {
|
|
108
|
-
.accordion-item.active {
|
|
109
|
-
background-color: #fafafa;
|
|
110
|
-
color: unset;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.router-link-exact-active {
|
|
114
|
-
& .text {
|
|
115
|
-
font-weight: bold !important;
|
|
116
|
-
background-color: #e6f4fb !important;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.heading-wrap {
|
|
121
|
-
flex-direction: row-reverse;
|
|
122
|
-
border: unset !important;
|
|
123
|
-
margin-bottom: 0 !important;
|
|
124
|
-
background-color: unset !important;
|
|
125
|
-
|
|
126
|
-
.btn-trigger {
|
|
127
|
-
flex: 0;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.text {
|
|
132
|
-
font-weight: normal !important;
|
|
133
|
-
font-size: 14px;
|
|
134
|
-
width: 100%;
|
|
135
|
-
padding: 6px 6px 6px 0;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="left-navbar">
|
|
3
|
+
<div class="header-content">
|
|
4
|
+
<button
|
|
5
|
+
class="btn-trigger-collapsed-all"
|
|
6
|
+
@click="onToggleAccordionShowType"
|
|
7
|
+
>
|
|
8
|
+
<atoms-the-icon
|
|
9
|
+
:class="[
|
|
10
|
+
'trigger-icon',
|
|
11
|
+
{
|
|
12
|
+
isOpen: isCollapsed,
|
|
13
|
+
},
|
|
14
|
+
]"
|
|
15
|
+
name="angle"
|
|
16
|
+
/>
|
|
17
|
+
<span v-if="isCollapsed">{{ localization.collapseAll }}</span>
|
|
18
|
+
<span v-else>{{ localization.expandAll }}</span>
|
|
19
|
+
</button>
|
|
20
|
+
</div>
|
|
21
|
+
<common-accordion
|
|
22
|
+
:accordion="accordionItems"
|
|
23
|
+
:show-type="accordionShowType"
|
|
24
|
+
test-id="accordion-left-navbar"
|
|
25
|
+
/>
|
|
26
|
+
</div>
|
|
27
|
+
</template>
|
|
28
|
+
|
|
29
|
+
<script setup lang="ts">
|
|
30
|
+
import type { UI_I_Localization } from '~/models/interfaces'
|
|
31
|
+
import type { UI_T_ShowType } from '~/components/common/accordion/models/types'
|
|
32
|
+
import type { UI_I_AccordionRecursion } from '~/components/common/accordion/models/interfaces'
|
|
33
|
+
import type { UI_I_ContentNavigation } from '~/components/common/help/navbar/left/models/interfaces'
|
|
34
|
+
import { constructItems } from '~/components/common/help/navbar/left/utils/constructAccordion'
|
|
35
|
+
|
|
36
|
+
const props = defineProps<{
|
|
37
|
+
items: UI_I_ContentNavigation[] | null
|
|
38
|
+
}>()
|
|
39
|
+
|
|
40
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
41
|
+
|
|
42
|
+
const accordionShowType = ref<UI_T_ShowType>('default')
|
|
43
|
+
const isCollapsed = computed<boolean>(
|
|
44
|
+
() => accordionShowType.value === 'collapse'
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
const onToggleAccordionShowType = (): void => {
|
|
48
|
+
accordionShowType.value =
|
|
49
|
+
accordionShowType.value === 'collapse' ? 'expand' : 'collapse'
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const accordionItems = ref<UI_I_AccordionRecursion[]>([])
|
|
53
|
+
|
|
54
|
+
watch(
|
|
55
|
+
() => props.items,
|
|
56
|
+
(newValue) => {
|
|
57
|
+
if (newValue === null) return
|
|
58
|
+
|
|
59
|
+
accordionItems.value = constructItems(newValue)
|
|
60
|
+
},
|
|
61
|
+
{ deep: true, immediate: true }
|
|
62
|
+
)
|
|
63
|
+
</script>
|
|
64
|
+
|
|
65
|
+
<style lang="scss">
|
|
66
|
+
.left-navbar {
|
|
67
|
+
width: 350px;
|
|
68
|
+
overflow: auto;
|
|
69
|
+
position: sticky;
|
|
70
|
+
top: 0;
|
|
71
|
+
border: 0.5px solid #e8e8e8;
|
|
72
|
+
|
|
73
|
+
.header-content {
|
|
74
|
+
border-bottom: 0.5px solid #e8e8e8;
|
|
75
|
+
padding: 11px 16px 11px 5px;
|
|
76
|
+
background-color: #fff;
|
|
77
|
+
position: sticky;
|
|
78
|
+
top: 0;
|
|
79
|
+
z-index: 1;
|
|
80
|
+
|
|
81
|
+
.btn-trigger-collapsed-all {
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
gap: 5px;
|
|
85
|
+
cursor: pointer;
|
|
86
|
+
background-color: unset;
|
|
87
|
+
border: unset;
|
|
88
|
+
|
|
89
|
+
.trigger-icon {
|
|
90
|
+
width: 16px;
|
|
91
|
+
height: 16px;
|
|
92
|
+
transform: rotate(180deg);
|
|
93
|
+
fill: var(--triger-icon-color);
|
|
94
|
+
&.isOpen {
|
|
95
|
+
transform: rotate(0deg);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
span {
|
|
100
|
+
color: #0079b8;
|
|
101
|
+
font-size: 12px;
|
|
102
|
+
font-weight: bold;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.accordion {
|
|
108
|
+
.accordion-item.active {
|
|
109
|
+
background-color: #fafafa;
|
|
110
|
+
color: unset;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.router-link-exact-active {
|
|
114
|
+
& .text {
|
|
115
|
+
font-weight: bold !important;
|
|
116
|
+
background-color: #e6f4fb !important;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.heading-wrap {
|
|
121
|
+
flex-direction: row-reverse;
|
|
122
|
+
border: unset !important;
|
|
123
|
+
margin-bottom: 0 !important;
|
|
124
|
+
background-color: unset !important;
|
|
125
|
+
|
|
126
|
+
.btn-trigger {
|
|
127
|
+
flex: 0;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.text {
|
|
132
|
+
font-weight: normal !important;
|
|
133
|
+
font-size: 14px;
|
|
134
|
+
width: 100%;
|
|
135
|
+
padding: 6px 6px 6px 0;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
</style>
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import type { UI_I_ContentNavigation } from '~/components/common/help/navbar/left/models/interfaces'
|
|
2
|
-
import type { UI_I_AccordionRecursion } from '~/components/common/accordion/models/interfaces'
|
|
3
|
-
|
|
4
|
-
export const constructItems = (
|
|
5
|
-
items?: UI_I_ContentNavigation[],
|
|
6
|
-
parent?: UI_I_ContentNavigation
|
|
7
|
-
): UI_I_AccordionRecursion[] => {
|
|
8
|
-
if (!items) return []
|
|
9
|
-
|
|
10
|
-
return items
|
|
11
|
-
.filter((item) => {
|
|
12
|
-
return (
|
|
13
|
-
!parent || (item.title !== parent.title && item._path !== parent._path)
|
|
14
|
-
)
|
|
15
|
-
})
|
|
16
|
-
.map((item: UI_I_ContentNavigation): UI_I_AccordionRecursion => {
|
|
17
|
-
const children = constructItems(item.children, item)
|
|
18
|
-
return {
|
|
19
|
-
children,
|
|
20
|
-
id: item._path,
|
|
21
|
-
path: item._path,
|
|
22
|
-
name: item.title,
|
|
23
|
-
hasChild: !!children.length,
|
|
24
|
-
isOpen: !parent,
|
|
25
|
-
}
|
|
26
|
-
})
|
|
27
|
-
}
|
|
1
|
+
import type { UI_I_ContentNavigation } from '~/components/common/help/navbar/left/models/interfaces'
|
|
2
|
+
import type { UI_I_AccordionRecursion } from '~/components/common/accordion/models/interfaces'
|
|
3
|
+
|
|
4
|
+
export const constructItems = (
|
|
5
|
+
items?: UI_I_ContentNavigation[],
|
|
6
|
+
parent?: UI_I_ContentNavigation
|
|
7
|
+
): UI_I_AccordionRecursion[] => {
|
|
8
|
+
if (!items) return []
|
|
9
|
+
|
|
10
|
+
return items
|
|
11
|
+
.filter((item) => {
|
|
12
|
+
return (
|
|
13
|
+
!parent || (item.title !== parent.title && item._path !== parent._path)
|
|
14
|
+
)
|
|
15
|
+
})
|
|
16
|
+
.map((item: UI_I_ContentNavigation): UI_I_AccordionRecursion => {
|
|
17
|
+
const children = constructItems(item.children, item)
|
|
18
|
+
return {
|
|
19
|
+
children,
|
|
20
|
+
id: item._path,
|
|
21
|
+
path: item._path,
|
|
22
|
+
name: item.title,
|
|
23
|
+
hasChild: !!children.length,
|
|
24
|
+
isOpen: !parent,
|
|
25
|
+
}
|
|
26
|
+
})
|
|
27
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="card">
|
|
3
|
+
<div class="header flex-align-center flex-space-between">
|
|
4
|
+
<div class="flex-align-center">
|
|
5
|
+
<i :class="['card-icon', props.iconName]" />
|
|
6
|
+
<p>{{ props.title }}</p>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="pull-right">
|
|
9
|
+
{{ props.count }}
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
<div class="block">
|
|
13
|
+
<slot></slot>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script setup lang="ts">
|
|
19
|
+
const props = withDefaults(
|
|
20
|
+
defineProps<{
|
|
21
|
+
title: string
|
|
22
|
+
count: number
|
|
23
|
+
iconName: string
|
|
24
|
+
}>(),
|
|
25
|
+
{ count: 0 }
|
|
26
|
+
)
|
|
27
|
+
</script>
|
|
28
|
+
<style scoped lang="scss">
|
|
29
|
+
.card {
|
|
30
|
+
color: var(--global-font-color);
|
|
31
|
+
background-color: var(--global-bg-color);
|
|
32
|
+
|
|
33
|
+
.block {
|
|
34
|
+
color: inherit;
|
|
35
|
+
background-color: inherit;
|
|
36
|
+
padding: 12px 18px;
|
|
37
|
+
}
|
|
38
|
+
.header {
|
|
39
|
+
color: var(--global-font-color2);
|
|
40
|
+
background-color: inherit;
|
|
41
|
+
padding: 12px 18px;
|
|
42
|
+
height: auto;
|
|
43
|
+
border-bottom: 1px solid var(--global-border-color);
|
|
44
|
+
|
|
45
|
+
i {
|
|
46
|
+
margin: 1px 4px 0;
|
|
47
|
+
}
|
|
48
|
+
p {
|
|
49
|
+
font-size: 18px;
|
|
50
|
+
margin-left: 4px;
|
|
51
|
+
}
|
|
52
|
+
.pull-right {
|
|
53
|
+
font-size: 18px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.card-icon {
|
|
57
|
+
width: 18px;
|
|
58
|
+
height: 18px;
|
|
59
|
+
fill: var(--global-font-color2);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
</style>
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="card">
|
|
3
|
+
<div class="card-block">
|
|
4
|
+
<div class="clr-row vc-capacity-content">
|
|
5
|
+
<div
|
|
6
|
+
v-for="item in props.items"
|
|
7
|
+
:key="item.type"
|
|
8
|
+
class="clr-col-md clr-col-sm-12 clr-col-xs-12 capacity-entity"
|
|
9
|
+
>
|
|
10
|
+
<div class="capacity-entity-content">
|
|
11
|
+
<h3 class="capacity-entity-label">
|
|
12
|
+
{{ localization[item.type] }}
|
|
13
|
+
</h3>
|
|
14
|
+
<div class="capacity-entity-metrics-content">
|
|
15
|
+
<h4 class="capacity-entity-free">
|
|
16
|
+
{{ item.free.text }} {{ localization.free }}
|
|
17
|
+
</h4>
|
|
18
|
+
<progress
|
|
19
|
+
class="progress-block"
|
|
20
|
+
:max="item.capacity.value"
|
|
21
|
+
:value="item.used.value"
|
|
22
|
+
/>
|
|
23
|
+
<div class="capacity-entity-used">
|
|
24
|
+
{{ item.used.text }} {{ localization.used?.toLowerCase() }} |
|
|
25
|
+
{{ item.capacity.text }} {{ localization.total?.toLowerCase() }}
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</template>
|
|
34
|
+
<script setup lang="ts">
|
|
35
|
+
import { UI_I_Localization } from '~/models/interfaces'
|
|
36
|
+
import type {
|
|
37
|
+
UI_I_ResourceMeter,
|
|
38
|
+
UI_I_MeterBlockItem,
|
|
39
|
+
} from '~/components/common/home/models/interfaces'
|
|
40
|
+
|
|
41
|
+
const props = defineProps<{
|
|
42
|
+
items: UI_I_ResourceMeter<UI_I_MeterBlockItem>[]
|
|
43
|
+
}>()
|
|
44
|
+
|
|
45
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
46
|
+
</script>
|
|
47
|
+
<style lang="scss" scoped>
|
|
48
|
+
.card {
|
|
49
|
+
color: var(--global-font-color);
|
|
50
|
+
background-color: var(--global-bg-color);
|
|
51
|
+
|
|
52
|
+
&-block {
|
|
53
|
+
.capacity-entity {
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
align-items: center;
|
|
57
|
+
margin: 0;
|
|
58
|
+
padding: 0 10px;
|
|
59
|
+
border-left: 1px solid var(--global-border-color);
|
|
60
|
+
|
|
61
|
+
&:first-of-type {
|
|
62
|
+
border-left: none;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.capacity-entity-content {
|
|
66
|
+
min-height: 120px;
|
|
67
|
+
display: flex;
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
justify-content: center;
|
|
70
|
+
align-items: center;
|
|
71
|
+
width: 100%;
|
|
72
|
+
|
|
73
|
+
h3 {
|
|
74
|
+
font-size: 18px;
|
|
75
|
+
font-weight: 200;
|
|
76
|
+
margin-bottom: 5px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
progress.progress-block {
|
|
80
|
+
width: 100%;
|
|
81
|
+
height: 0.6395rem;
|
|
82
|
+
line-height: 24px;
|
|
83
|
+
background-color: var(--progress-bg-color);
|
|
84
|
+
}
|
|
85
|
+
progress::-webkit-progress-value,
|
|
86
|
+
progress::-moz-progress-value {
|
|
87
|
+
background-color: var(--progress-value-bg-color);
|
|
88
|
+
}
|
|
89
|
+
progress::-webkit-progress-bar {
|
|
90
|
+
background-color: var(--progress-bg-color);
|
|
91
|
+
}
|
|
92
|
+
.capacity-entity-free {
|
|
93
|
+
font-size: 22px;
|
|
94
|
+
font-weight: 200;
|
|
95
|
+
margin-bottom: 10px;
|
|
96
|
+
}
|
|
97
|
+
.capacity-entity-used {
|
|
98
|
+
font-size: 12px;
|
|
99
|
+
}
|
|
100
|
+
.capacity-entity-label {
|
|
101
|
+
align-self: flex-start;
|
|
102
|
+
// font-size: 0.9rem;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
.capacity-entity-content:nth-child(1) {
|
|
109
|
+
border-left: none;
|
|
110
|
+
}
|
|
111
|
+
.capacity-entity-metrics-content {
|
|
112
|
+
display: flex;
|
|
113
|
+
flex-direction: column;
|
|
114
|
+
justify-content: space-between;
|
|
115
|
+
align-items: center;
|
|
116
|
+
}
|
|
117
|
+
</style>
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="entity-status-content">
|
|
3
|
+
<div v-for="(text, value) in props.items" :key="value" class="item">
|
|
4
|
+
<h3 class="entity-status-item-value">
|
|
5
|
+
{{ text }}
|
|
6
|
+
</h3>
|
|
7
|
+
<div class="entity-status-item-status">{{ localization[value] }}</div>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script setup lang="ts">
|
|
13
|
+
import type { UI_I_Localization } from '~/models/interfaces'
|
|
14
|
+
import type { UI_I_Card } from '~/components/common/home/models/interfaces'
|
|
15
|
+
|
|
16
|
+
const props = defineProps<{
|
|
17
|
+
items: UI_I_Card
|
|
18
|
+
}>()
|
|
19
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
20
|
+
</script>
|
|
21
|
+
|
|
22
|
+
<style scoped lang="scss">
|
|
23
|
+
.entity-status-content {
|
|
24
|
+
display: flex;
|
|
25
|
+
justify-content: space-around;
|
|
26
|
+
align-items: center;
|
|
27
|
+
min-height: 100px;
|
|
28
|
+
|
|
29
|
+
.item {
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
align-items: center;
|
|
34
|
+
color: inherit;
|
|
35
|
+
background-color: inherit;
|
|
36
|
+
|
|
37
|
+
.entity-status-item-value {
|
|
38
|
+
font-size: 22px;
|
|
39
|
+
font-weight: 200;
|
|
40
|
+
}
|
|
41
|
+
.entity-status-item-status {
|
|
42
|
+
font-size: 13px;
|
|
43
|
+
margin-top: 5px;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
</style>
|