bfg-common 1.4.578 → 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.
|
@@ -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>
|
|
@@ -1,74 +1,79 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="home-total-quantities">
|
|
3
|
-
<h1>
|
|
4
|
-
{{ localization.home.totalQuantities }}
|
|
5
|
-
</h1>
|
|
6
|
-
|
|
7
|
-
<div class="grid-container">
|
|
8
|
-
<common-pages-home-widgets-vms :vms="vms" :loading="props.loading" />
|
|
9
|
-
|
|
10
|
-
<common-pages-home-widgets-hosts
|
|
11
|
-
:hosts="hosts"
|
|
12
|
-
:loading="props.loading"
|
|
13
|
-
/>
|
|
14
|
-
</div>
|
|
15
|
-
</div>
|
|
16
|
-
|
|
17
|
-
<div class="home-total-warnings">
|
|
18
|
-
<h1>
|
|
19
|
-
{{ localization.home.totalAlertsWarnings }}
|
|
20
|
-
</h1>
|
|
21
|
-
|
|
22
|
-
<div class="grid-container">
|
|
23
|
-
<common-pages-home-widgets-warnings
|
|
24
|
-
:alerts="alerts || []"
|
|
25
|
-
:loading="props.loading"
|
|
26
|
-
/>
|
|
27
|
-
|
|
28
|
-
<common-pages-home-widgets-services
|
|
29
|
-
:services="services || []"
|
|
30
|
-
:loading="props.loading"
|
|
31
|
-
/>
|
|
32
|
-
</div>
|
|
33
|
-
</div>
|
|
34
|
-
</template>
|
|
35
|
-
|
|
36
|
-
<script lang="ts" setup>
|
|
37
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
38
|
-
import type {
|
|
39
|
-
UI_I_Alert,
|
|
40
|
-
UI_I_Hosts,
|
|
41
|
-
UI_I_Vms,
|
|
42
|
-
UI_I_Service,
|
|
43
|
-
} from '~/components/common/pages/home/lib/models/interfaces'
|
|
44
|
-
|
|
45
|
-
const props = defineProps<{
|
|
46
|
-
vms: UI_I_Vms
|
|
47
|
-
hosts: UI_I_Hosts
|
|
48
|
-
alerts: UI_I_Alert[]
|
|
49
|
-
services: UI_I_Service[]
|
|
50
|
-
loading: boolean
|
|
51
|
-
}>()
|
|
52
|
-
|
|
53
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
54
|
-
</script>
|
|
55
|
-
|
|
56
|
-
<style lang="scss" scoped>
|
|
57
|
-
.home-total-warnings,
|
|
58
|
-
.home-total-quantities {
|
|
59
|
-
margin-top: 24px;
|
|
60
|
-
& > h1 {
|
|
61
|
-
font-size: 14px;
|
|
62
|
-
font-weight: 400;
|
|
63
|
-
line-height: 16.94px;
|
|
64
|
-
color: #9da6ad;
|
|
65
|
-
margin-bottom: 12px;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.grid-container {
|
|
70
|
-
display: grid;
|
|
71
|
-
grid-template-columns: repeat(2, 1fr);
|
|
72
|
-
grid-column-gap: 12px;
|
|
73
|
-
|
|
74
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="home-total-quantities">
|
|
3
|
+
<h1>
|
|
4
|
+
{{ localization.home.totalQuantities }}
|
|
5
|
+
</h1>
|
|
6
|
+
|
|
7
|
+
<div class="grid-container">
|
|
8
|
+
<common-pages-home-widgets-vms :vms="vms" :loading="props.loading" />
|
|
9
|
+
|
|
10
|
+
<common-pages-home-widgets-hosts
|
|
11
|
+
:hosts="hosts"
|
|
12
|
+
:loading="props.loading"
|
|
13
|
+
/>
|
|
14
|
+
</div>
|
|
15
|
+
</div>
|
|
16
|
+
|
|
17
|
+
<div class="home-total-warnings">
|
|
18
|
+
<h1>
|
|
19
|
+
{{ localization.home.totalAlertsWarnings }}
|
|
20
|
+
</h1>
|
|
21
|
+
|
|
22
|
+
<div class="grid-container">
|
|
23
|
+
<common-pages-home-widgets-warnings
|
|
24
|
+
:alerts="alerts || []"
|
|
25
|
+
:loading="props.loading"
|
|
26
|
+
/>
|
|
27
|
+
|
|
28
|
+
<common-pages-home-widgets-services
|
|
29
|
+
:services="services || []"
|
|
30
|
+
:loading="props.loading"
|
|
31
|
+
/>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</template>
|
|
35
|
+
|
|
36
|
+
<script lang="ts" setup>
|
|
37
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
38
|
+
import type {
|
|
39
|
+
UI_I_Alert,
|
|
40
|
+
UI_I_Hosts,
|
|
41
|
+
UI_I_Vms,
|
|
42
|
+
UI_I_Service,
|
|
43
|
+
} from '~/components/common/pages/home/lib/models/interfaces'
|
|
44
|
+
|
|
45
|
+
const props = defineProps<{
|
|
46
|
+
vms: UI_I_Vms
|
|
47
|
+
hosts: UI_I_Hosts
|
|
48
|
+
alerts: UI_I_Alert[]
|
|
49
|
+
services: UI_I_Service[]
|
|
50
|
+
loading: boolean
|
|
51
|
+
}>()
|
|
52
|
+
|
|
53
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
54
|
+
</script>
|
|
55
|
+
|
|
56
|
+
<style lang="scss" scoped>
|
|
57
|
+
.home-total-warnings,
|
|
58
|
+
.home-total-quantities {
|
|
59
|
+
margin-top: 24px;
|
|
60
|
+
& > h1 {
|
|
61
|
+
font-size: 14px;
|
|
62
|
+
font-weight: 400;
|
|
63
|
+
line-height: 16.94px;
|
|
64
|
+
color: #9da6ad;
|
|
65
|
+
margin-bottom: 12px;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.grid-container {
|
|
70
|
+
display: grid;
|
|
71
|
+
grid-template-columns: repeat(2, 1fr);
|
|
72
|
+
grid-column-gap: 12px;
|
|
73
|
+
|
|
74
|
+
@media (max-width: 1024px) {
|
|
75
|
+
grid-template-columns: 1fr;
|
|
76
|
+
grid-row-gap: 12px;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
</style>
|