bfg-common 1.4.577 → 1.4.579
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/img/icons/icons-sprite-dark-1.svg +437 -407
- package/assets/img/icons/icons-sprite-dark-2.svg +347 -343
- package/assets/img/icons/icons-sprite-dark-3.svg +227 -227
- package/assets/img/icons/icons-sprite-dark-4.svg +259 -255
- package/assets/img/icons/icons-sprite-dark-5.svg +488 -488
- package/assets/img/icons/icons-sprite-dark-6.svg +94 -94
- package/assets/img/icons/icons-sprite-light-1.svg +437 -407
- package/assets/img/icons/icons-sprite-light-2.svg +347 -343
- package/assets/img/icons/icons-sprite-light-3.svg +227 -227
- package/assets/img/icons/icons-sprite-light-4.svg +259 -255
- package/assets/img/icons/icons-sprite-light-5.svg +488 -488
- package/assets/img/icons/icons-sprite-light-6.svg +94 -94
- package/assets/scss/common/icons/icons-6.scss +156 -156
- package/components/common/pages/home/headline/HeadlineNew.vue +71 -48
- package/components/common/pages/home/resource/ResourceNew.vue +63 -58
- package/components/common/pages/home/widgets/WidgetsNew.vue +79 -74
- package/package.json +1 -1
|
@@ -1,156 +1,156 @@
|
|
|
1
|
-
/* _____BACKGROUND POSITION_____ */
|
|
2
|
-
.icon-workload-management {
|
|
3
|
-
background-position: 0 0;
|
|
4
|
-
}
|
|
5
|
-
.icon-guest-os {
|
|
6
|
-
background-position: 0 5%;
|
|
7
|
-
}
|
|
8
|
-
.icon-guest-os-reset {
|
|
9
|
-
background-position: 0 9.5%;
|
|
10
|
-
}
|
|
11
|
-
.icon-guest-os-install {
|
|
12
|
-
background-position: 0 14%;
|
|
13
|
-
}
|
|
14
|
-
.icon-guest-os-shut-down {
|
|
15
|
-
background-position: 0 18.8%;
|
|
16
|
-
}
|
|
17
|
-
.icon-guest-os-mount {
|
|
18
|
-
background-position: 0 23.5%;
|
|
19
|
-
}
|
|
20
|
-
.icon-guest-os-unmount {
|
|
21
|
-
background-position: 0 28.3%;
|
|
22
|
-
}
|
|
23
|
-
.icon-consolidate {
|
|
24
|
-
background-position: 0 33.3%;
|
|
25
|
-
}
|
|
26
|
-
.icon-clone {
|
|
27
|
-
background-position: 0 38%;
|
|
28
|
-
}
|
|
29
|
-
.icon-edit-note {
|
|
30
|
-
background-position: 0 42.8%;
|
|
31
|
-
}
|
|
32
|
-
.icon-delete-from-disk {
|
|
33
|
-
background-position: 0 47.3%;
|
|
34
|
-
}
|
|
35
|
-
.icon-vm-power-off {
|
|
36
|
-
background-position: 0
|
|
37
|
-
}
|
|
38
|
-
.icon-vm-reset {
|
|
39
|
-
background-position: 0 63.1%;
|
|
40
|
-
}
|
|
41
|
-
.icon-vm-hard-stop {
|
|
42
|
-
background-position: 0 61.7%;
|
|
43
|
-
}
|
|
44
|
-
.icon-backups {
|
|
45
|
-
background-position: 0 66.7%;
|
|
46
|
-
}
|
|
47
|
-
.icon-backup-new {
|
|
48
|
-
background-position: 0 71.3%;
|
|
49
|
-
}
|
|
50
|
-
.icon-rules {
|
|
51
|
-
background-position: 0 76.2%;
|
|
52
|
-
}
|
|
53
|
-
.icon-rules-new {
|
|
54
|
-
background-position: 0 85.6%;
|
|
55
|
-
}
|
|
56
|
-
.icon-rules-apply {
|
|
57
|
-
background-position: 0 85.5%;
|
|
58
|
-
}
|
|
59
|
-
.icon-backup-restore {
|
|
60
|
-
background-position: 0 90.5%;
|
|
61
|
-
}
|
|
62
|
-
.icon-sensors {
|
|
63
|
-
background-position: 0 95.2%;
|
|
64
|
-
}
|
|
65
|
-
.icon-sessions {
|
|
66
|
-
background-position: 0 100%;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/* _____BACKGROUND IMAGE_____ */
|
|
70
|
-
.icon-guest-os,
|
|
71
|
-
.icon-guest-os-reset,
|
|
72
|
-
.icon-guest-os-install,
|
|
73
|
-
.icon-guest-os-shut-down,
|
|
74
|
-
.icon-guest-os-mount,
|
|
75
|
-
.icon-guest-os-unmount,
|
|
76
|
-
.icon-consolidate,
|
|
77
|
-
.icon-clone,
|
|
78
|
-
.icon-edit-note,
|
|
79
|
-
.icon-delete-from-disk,
|
|
80
|
-
.icon-vm-power-off,
|
|
81
|
-
.icon-vm-reset,
|
|
82
|
-
.icon-vm-hard-stop,
|
|
83
|
-
.icon-backups,
|
|
84
|
-
.icon-backup-new,
|
|
85
|
-
.icon-rules,
|
|
86
|
-
.icon-rules-new,
|
|
87
|
-
.icon-rules-apply,
|
|
88
|
-
.icon-backup-restore,
|
|
89
|
-
.icon-sensors,
|
|
90
|
-
.icon-sessions,
|
|
91
|
-
.icon-workload-management {
|
|
92
|
-
background-image: url('../img/icons/icons-sprite-light-6.svg');
|
|
93
|
-
|
|
94
|
-
html.dark-theme & {
|
|
95
|
-
background-image: url('../img/icons/icons-sprite-dark-6.svg');
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
.active .icon-guest-os,
|
|
99
|
-
.active .icon-guest-os-reset,
|
|
100
|
-
.active .icon-guest-os-install,
|
|
101
|
-
.active .icon-guest-os-shut-down,
|
|
102
|
-
.active .icon-guest-os-mount,
|
|
103
|
-
.active .icon-guest-os-unmount,
|
|
104
|
-
.active .icon-consolidate,
|
|
105
|
-
.active .icon-clone,
|
|
106
|
-
.active .icon-edit-note,
|
|
107
|
-
.active .icon-delete-from-disk,
|
|
108
|
-
.active .icon-vm-power-off,
|
|
109
|
-
.active .icon-vm-reset,
|
|
110
|
-
.active .icon-vm-hard-stop,
|
|
111
|
-
.active .icon-backups,
|
|
112
|
-
.active .icon-backup-new,
|
|
113
|
-
.active .icon-rules,
|
|
114
|
-
.active .icon-rules-new,
|
|
115
|
-
.active .icon-rules-apply,
|
|
116
|
-
.active .icon-backup-restore,
|
|
117
|
-
.active .icon-sensors,
|
|
118
|
-
.active .icon-sessions,
|
|
119
|
-
.active .icon-workload-management {
|
|
120
|
-
background-image: url('../img/icons/icons-sprite-dark-6.svg');
|
|
121
|
-
|
|
122
|
-
html.dark-theme & {
|
|
123
|
-
background-image: url('../img/icons/icons-sprite-light-6.svg');
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
/* _____ICONS COMMON STYLES_____ */
|
|
128
|
-
.icon-guest-os,
|
|
129
|
-
.icon-guest-os-reset,
|
|
130
|
-
.icon-guest-os-install,
|
|
131
|
-
.icon-guest-os-shut-down,
|
|
132
|
-
.icon-guest-os-mount,
|
|
133
|
-
.icon-guest-os-unmount,
|
|
134
|
-
.icon-consolidate,
|
|
135
|
-
.icon-clone,
|
|
136
|
-
.icon-edit-note,
|
|
137
|
-
.icon-delete-from-disk,
|
|
138
|
-
.icon-vm-power-off,
|
|
139
|
-
.icon-vm-reset,
|
|
140
|
-
.icon-vm-hard-stop,
|
|
141
|
-
.icon-backups,
|
|
142
|
-
.icon-backup-new,
|
|
143
|
-
.icon-rules,
|
|
144
|
-
.icon-rules-new,
|
|
145
|
-
.icon-rules-apply,
|
|
146
|
-
.icon-backup-restore,
|
|
147
|
-
.icon-sensors,
|
|
148
|
-
.icon-sessions,
|
|
149
|
-
.icon-workload-management {
|
|
150
|
-
display: inline-block;
|
|
151
|
-
width: 18px;
|
|
152
|
-
min-width: 18px;
|
|
153
|
-
height: 18px;
|
|
154
|
-
min-height: 18px;
|
|
155
|
-
background-size: 100% auto;
|
|
156
|
-
}
|
|
1
|
+
/* _____BACKGROUND POSITION_____ */
|
|
2
|
+
.icon-workload-management {
|
|
3
|
+
background-position: 0 0;
|
|
4
|
+
}
|
|
5
|
+
.icon-guest-os {
|
|
6
|
+
background-position: 0 5%;
|
|
7
|
+
}
|
|
8
|
+
.icon-guest-os-reset {
|
|
9
|
+
background-position: 0 9.5%;
|
|
10
|
+
}
|
|
11
|
+
.icon-guest-os-install {
|
|
12
|
+
background-position: 0 14%;
|
|
13
|
+
}
|
|
14
|
+
.icon-guest-os-shut-down {
|
|
15
|
+
background-position: 0 18.8%;
|
|
16
|
+
}
|
|
17
|
+
.icon-guest-os-mount {
|
|
18
|
+
background-position: 0 23.5%;
|
|
19
|
+
}
|
|
20
|
+
.icon-guest-os-unmount {
|
|
21
|
+
background-position: 0 28.3%;
|
|
22
|
+
}
|
|
23
|
+
.icon-consolidate {
|
|
24
|
+
background-position: 0 33.3%;
|
|
25
|
+
}
|
|
26
|
+
.icon-clone {
|
|
27
|
+
background-position: 0 38%;
|
|
28
|
+
}
|
|
29
|
+
.icon-edit-note {
|
|
30
|
+
background-position: 0 42.8%;
|
|
31
|
+
}
|
|
32
|
+
.icon-delete-from-disk {
|
|
33
|
+
background-position: 0 47.3%;
|
|
34
|
+
}
|
|
35
|
+
.icon-vm-power-off {
|
|
36
|
+
background-position: 0 52.3%;
|
|
37
|
+
}
|
|
38
|
+
.icon-vm-reset {
|
|
39
|
+
background-position: 0 63.1%;
|
|
40
|
+
}
|
|
41
|
+
.icon-vm-hard-stop {
|
|
42
|
+
background-position: 0 61.7%;
|
|
43
|
+
}
|
|
44
|
+
.icon-backups {
|
|
45
|
+
background-position: 0 66.7%;
|
|
46
|
+
}
|
|
47
|
+
.icon-backup-new {
|
|
48
|
+
background-position: 0 71.3%;
|
|
49
|
+
}
|
|
50
|
+
.icon-rules {
|
|
51
|
+
background-position: 0 76.2%;
|
|
52
|
+
}
|
|
53
|
+
.icon-rules-new {
|
|
54
|
+
background-position: 0 85.6%;
|
|
55
|
+
}
|
|
56
|
+
.icon-rules-apply {
|
|
57
|
+
background-position: 0 85.5%;
|
|
58
|
+
}
|
|
59
|
+
.icon-backup-restore {
|
|
60
|
+
background-position: 0 90.5%;
|
|
61
|
+
}
|
|
62
|
+
.icon-sensors {
|
|
63
|
+
background-position: 0 95.2%;
|
|
64
|
+
}
|
|
65
|
+
.icon-sessions {
|
|
66
|
+
background-position: 0 100%;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* _____BACKGROUND IMAGE_____ */
|
|
70
|
+
.icon-guest-os,
|
|
71
|
+
.icon-guest-os-reset,
|
|
72
|
+
.icon-guest-os-install,
|
|
73
|
+
.icon-guest-os-shut-down,
|
|
74
|
+
.icon-guest-os-mount,
|
|
75
|
+
.icon-guest-os-unmount,
|
|
76
|
+
.icon-consolidate,
|
|
77
|
+
.icon-clone,
|
|
78
|
+
.icon-edit-note,
|
|
79
|
+
.icon-delete-from-disk,
|
|
80
|
+
.icon-vm-power-off,
|
|
81
|
+
.icon-vm-reset,
|
|
82
|
+
.icon-vm-hard-stop,
|
|
83
|
+
.icon-backups,
|
|
84
|
+
.icon-backup-new,
|
|
85
|
+
.icon-rules,
|
|
86
|
+
.icon-rules-new,
|
|
87
|
+
.icon-rules-apply,
|
|
88
|
+
.icon-backup-restore,
|
|
89
|
+
.icon-sensors,
|
|
90
|
+
.icon-sessions,
|
|
91
|
+
.icon-workload-management {
|
|
92
|
+
background-image: url('../img/icons/icons-sprite-light-6.svg');
|
|
93
|
+
|
|
94
|
+
html.dark-theme & {
|
|
95
|
+
background-image: url('../img/icons/icons-sprite-dark-6.svg');
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
.active .icon-guest-os,
|
|
99
|
+
.active .icon-guest-os-reset,
|
|
100
|
+
.active .icon-guest-os-install,
|
|
101
|
+
.active .icon-guest-os-shut-down,
|
|
102
|
+
.active .icon-guest-os-mount,
|
|
103
|
+
.active .icon-guest-os-unmount,
|
|
104
|
+
.active .icon-consolidate,
|
|
105
|
+
.active .icon-clone,
|
|
106
|
+
.active .icon-edit-note,
|
|
107
|
+
.active .icon-delete-from-disk,
|
|
108
|
+
.active .icon-vm-power-off,
|
|
109
|
+
.active .icon-vm-reset,
|
|
110
|
+
.active .icon-vm-hard-stop,
|
|
111
|
+
.active .icon-backups,
|
|
112
|
+
.active .icon-backup-new,
|
|
113
|
+
.active .icon-rules,
|
|
114
|
+
.active .icon-rules-new,
|
|
115
|
+
.active .icon-rules-apply,
|
|
116
|
+
.active .icon-backup-restore,
|
|
117
|
+
.active .icon-sensors,
|
|
118
|
+
.active .icon-sessions,
|
|
119
|
+
.active .icon-workload-management {
|
|
120
|
+
background-image: url('../img/icons/icons-sprite-dark-6.svg');
|
|
121
|
+
|
|
122
|
+
html.dark-theme & {
|
|
123
|
+
background-image: url('../img/icons/icons-sprite-light-6.svg');
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* _____ICONS COMMON STYLES_____ */
|
|
128
|
+
.icon-guest-os,
|
|
129
|
+
.icon-guest-os-reset,
|
|
130
|
+
.icon-guest-os-install,
|
|
131
|
+
.icon-guest-os-shut-down,
|
|
132
|
+
.icon-guest-os-mount,
|
|
133
|
+
.icon-guest-os-unmount,
|
|
134
|
+
.icon-consolidate,
|
|
135
|
+
.icon-clone,
|
|
136
|
+
.icon-edit-note,
|
|
137
|
+
.icon-delete-from-disk,
|
|
138
|
+
.icon-vm-power-off,
|
|
139
|
+
.icon-vm-reset,
|
|
140
|
+
.icon-vm-hard-stop,
|
|
141
|
+
.icon-backups,
|
|
142
|
+
.icon-backup-new,
|
|
143
|
+
.icon-rules,
|
|
144
|
+
.icon-rules-new,
|
|
145
|
+
.icon-rules-apply,
|
|
146
|
+
.icon-backup-restore,
|
|
147
|
+
.icon-sensors,
|
|
148
|
+
.icon-sessions,
|
|
149
|
+
.icon-workload-management {
|
|
150
|
+
display: inline-block;
|
|
151
|
+
width: 18px;
|
|
152
|
+
min-width: 18px;
|
|
153
|
+
height: 18px;
|
|
154
|
+
min-height: 18px;
|
|
155
|
+
background-size: 100% auto;
|
|
156
|
+
}
|
|
@@ -1,48 +1,71 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="container-flex">
|
|
3
|
-
<h1>{{ localization.mainNavigation.home }}</h1>
|
|
4
|
-
|
|
5
|
-
<ui-select
|
|
6
|
-
v-if="isProjectSphere"
|
|
7
|
-
v-model="selectedZoneModel"
|
|
8
|
-
:items="selectItems"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
})
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="container-flex">
|
|
3
|
+
<h1>{{ localization.mainNavigation.home }}</h1>
|
|
4
|
+
|
|
5
|
+
<ui-select
|
|
6
|
+
v-if="isProjectSphere"
|
|
7
|
+
v-model="selectedZoneModel"
|
|
8
|
+
:items="selectItems"
|
|
9
|
+
:disabled="!selectItems.length"
|
|
10
|
+
width="165px"
|
|
11
|
+
select-width="100%"
|
|
12
|
+
size="sm"
|
|
13
|
+
test-id="home-zone-select"
|
|
14
|
+
>
|
|
15
|
+
<template v-if="!selectItems.length" #toggleContent>
|
|
16
|
+
<div class="default-toggle-content">
|
|
17
|
+
<span class="default-icon vsphere-icon-vcenter"></span>
|
|
18
|
+
<span class="text">{{ localization.common.default }}</span>
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
</ui-select>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<script lang="ts" setup>
|
|
26
|
+
import type { UI_I_Dropdown } from '~/node_modules/bfg-uikit/components/ui/dropdown/models/interfaces'
|
|
27
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
28
|
+
import type { UI_T_Project } from '~/lib/models/types'
|
|
29
|
+
|
|
30
|
+
const props = defineProps<{
|
|
31
|
+
project: UI_T_Project
|
|
32
|
+
}>()
|
|
33
|
+
const selectedZoneModel = defineModel<number>({ required: true })
|
|
34
|
+
|
|
35
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
36
|
+
|
|
37
|
+
const isProjectSphere = computed<boolean>(() => props.project === 'sphere')
|
|
38
|
+
|
|
39
|
+
const selectItems = computed<UI_I_Dropdown[]>(() => {
|
|
40
|
+
return []
|
|
41
|
+
})
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
<style lang="scss" scoped>
|
|
45
|
+
@import '/assets/scss/common/mixins';
|
|
46
|
+
.container-flex {
|
|
47
|
+
@include flex($align: center, $just: space-between);
|
|
48
|
+
& > h1 {
|
|
49
|
+
color: var(--home-title-color);
|
|
50
|
+
font-size: 22px;
|
|
51
|
+
font-weight: 400;
|
|
52
|
+
line-height: 26.63px;
|
|
53
|
+
margin-bottom: 19px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.default-toggle-content {
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
grid-gap: 8px;
|
|
60
|
+
|
|
61
|
+
.default-icon {
|
|
62
|
+
width: 20px;
|
|
63
|
+
height: 20px;
|
|
64
|
+
}
|
|
65
|
+
.text {
|
|
66
|
+
font-size: 13px;
|
|
67
|
+
font-weight: 400;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
</style>
|
|
@@ -1,58 +1,63 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="total-usages">
|
|
3
|
-
<h1>{{ localization.home.totalUsages }}</h1>
|
|
4
|
-
<div class="total-usages__container">
|
|
5
|
-
<ui-widget v-for="(item, key) in resourceMeter" :key="key">
|
|
6
|
-
<template v-if="props.loading">
|
|
7
|
-
<ui-widget-items-skeleton-line-bar />
|
|
8
|
-
</template>
|
|
9
|
-
<ui-widget-items-progress-bar-linear
|
|
10
|
-
v-else
|
|
11
|
-
id="host-summary-memory"
|
|
12
|
-
container-id="host"
|
|
13
|
-
:icon="item.icon"
|
|
14
|
-
:title="item.title"
|
|
15
|
-
:data="item.data"
|
|
16
|
-
:used-title="item.usedTitle"
|
|
17
|
-
:capacity-title="item.capacityTitle"
|
|
18
|
-
:status="item.status"
|
|
19
|
-
/>
|
|
20
|
-
</ui-widget>
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
</template>
|
|
24
|
-
|
|
25
|
-
<script lang="ts" setup>
|
|
26
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
27
|
-
import type { UI_I_Resources } from '~/components/common/resource/lib/models/interfaces'
|
|
28
|
-
import type { UI_I_ResourceBlock } from '~/components/common/pages/home/resource/lib/models/interfaces'
|
|
29
|
-
import { constructResourceMeter } from '~/components/common/pages/home/resource/lib/utils/resourceMeter'
|
|
30
|
-
|
|
31
|
-
const props = defineProps<{
|
|
32
|
-
items: UI_I_Resources[]
|
|
33
|
-
loading: boolean
|
|
34
|
-
}>()
|
|
35
|
-
|
|
36
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
37
|
-
|
|
38
|
-
const resourceMeter = computed<UI_I_ResourceBlock[]>(() =>
|
|
39
|
-
constructResourceMeter(props.items, localization.value)
|
|
40
|
-
)
|
|
41
|
-
</script>
|
|
42
|
-
|
|
43
|
-
<style lang="scss" scoped>
|
|
44
|
-
.total-usages {
|
|
45
|
-
& > h1 {
|
|
46
|
-
font-size: 14px;
|
|
47
|
-
font-weight: 400;
|
|
48
|
-
line-height: 16.94px;
|
|
49
|
-
color: #9da6ad;
|
|
50
|
-
margin-bottom: 12px;
|
|
51
|
-
}
|
|
52
|
-
&__container {
|
|
53
|
-
display: grid;
|
|
54
|
-
grid-template-columns: repeat(3, 1fr);
|
|
55
|
-
grid-column-gap: 12px;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="total-usages">
|
|
3
|
+
<h1>{{ localization.home.totalUsages }}</h1>
|
|
4
|
+
<div class="total-usages__container">
|
|
5
|
+
<ui-widget v-for="(item, key) in resourceMeter" :key="key">
|
|
6
|
+
<template v-if="props.loading">
|
|
7
|
+
<ui-widget-items-skeleton-line-bar />
|
|
8
|
+
</template>
|
|
9
|
+
<ui-widget-items-progress-bar-linear
|
|
10
|
+
v-else
|
|
11
|
+
id="host-summary-memory"
|
|
12
|
+
container-id="host"
|
|
13
|
+
:icon="item.icon"
|
|
14
|
+
:title="item.title"
|
|
15
|
+
:data="item.data"
|
|
16
|
+
:used-title="item.usedTitle"
|
|
17
|
+
:capacity-title="item.capacityTitle"
|
|
18
|
+
:status="item.status"
|
|
19
|
+
/>
|
|
20
|
+
</ui-widget>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</template>
|
|
24
|
+
|
|
25
|
+
<script lang="ts" setup>
|
|
26
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
27
|
+
import type { UI_I_Resources } from '~/components/common/resource/lib/models/interfaces'
|
|
28
|
+
import type { UI_I_ResourceBlock } from '~/components/common/pages/home/resource/lib/models/interfaces'
|
|
29
|
+
import { constructResourceMeter } from '~/components/common/pages/home/resource/lib/utils/resourceMeter'
|
|
30
|
+
|
|
31
|
+
const props = defineProps<{
|
|
32
|
+
items: UI_I_Resources[]
|
|
33
|
+
loading: boolean
|
|
34
|
+
}>()
|
|
35
|
+
|
|
36
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
37
|
+
|
|
38
|
+
const resourceMeter = computed<UI_I_ResourceBlock[]>(() =>
|
|
39
|
+
constructResourceMeter(props.items, localization.value)
|
|
40
|
+
)
|
|
41
|
+
</script>
|
|
42
|
+
|
|
43
|
+
<style lang="scss" scoped>
|
|
44
|
+
.total-usages {
|
|
45
|
+
& > h1 {
|
|
46
|
+
font-size: 14px;
|
|
47
|
+
font-weight: 400;
|
|
48
|
+
line-height: 16.94px;
|
|
49
|
+
color: #9da6ad;
|
|
50
|
+
margin-bottom: 12px;
|
|
51
|
+
}
|
|
52
|
+
&__container {
|
|
53
|
+
display: grid;
|
|
54
|
+
grid-template-columns: repeat(3, 1fr);
|
|
55
|
+
grid-column-gap: 12px;
|
|
56
|
+
|
|
57
|
+
@media (max-width: 1440px) {
|
|
58
|
+
grid-template-columns: 1fr;
|
|
59
|
+
grid-row-gap: 12px;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
</style>
|