bfg-common 1.1.23 → 1.1.25
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/common/help/navbar/left/Left.vue +21 -1
- package/components/common/shortcuts/Block.vue +83 -0
- package/components/common/shortcuts/Category.vue +40 -0
- package/components/common/shortcuts/Shortcuts.vue +44 -0
- package/components/common/shortcuts/models/interfaces.ts +11 -0
- package/package.json +1 -1
|
@@ -111,7 +111,7 @@ watch(
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
.router-link-exact-active {
|
|
114
|
-
|
|
114
|
+
.text {
|
|
115
115
|
font-weight: bold !important;
|
|
116
116
|
background-color: #e6f4fb !important;
|
|
117
117
|
}
|
|
@@ -136,4 +136,24 @@ watch(
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
+
|
|
140
|
+
html.dark-theme {
|
|
141
|
+
.left-navbar {
|
|
142
|
+
.header-content {
|
|
143
|
+
background-color: transparent;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.accordion {
|
|
147
|
+
.accordion-item.active {
|
|
148
|
+
background-color: transparent;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.router-link-exact-active {
|
|
153
|
+
.text {
|
|
154
|
+
background-color: transparent !important;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
139
159
|
</style>
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<nuxt-link
|
|
4
|
+
class="unit"
|
|
5
|
+
:to="navigate"
|
|
6
|
+
:title="props.item.navigateTo"
|
|
7
|
+
@click="changeLastNavigation"
|
|
8
|
+
>
|
|
9
|
+
<span :class="['unit-icon', props.item.iconClassName]" />
|
|
10
|
+
<div class="unit-text" :title="props.item.text">
|
|
11
|
+
{{ props.item.text }}
|
|
12
|
+
</div>
|
|
13
|
+
</nuxt-link>
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
<script setup lang="ts">
|
|
17
|
+
import type { UI_I_BlockItem } from '~/components/common/shortcuts/models/interfaces'
|
|
18
|
+
|
|
19
|
+
const props = defineProps<{
|
|
20
|
+
item: UI_I_BlockItem
|
|
21
|
+
}>()
|
|
22
|
+
|
|
23
|
+
const navigate = computed<string>(() => '/' + props.item.navigateTo)
|
|
24
|
+
|
|
25
|
+
const changeLastNavigation = (): void => {
|
|
26
|
+
if (!props.item.nav) return
|
|
27
|
+
|
|
28
|
+
const lastSelectedInventory = 'lastSelectedInventoryTreeIdStorageKey'
|
|
29
|
+
useLocalStorage(lastSelectedInventory, props.item.nav)
|
|
30
|
+
}
|
|
31
|
+
</script>
|
|
32
|
+
<style lang="scss" scoped>
|
|
33
|
+
.unit {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
align-items: center;
|
|
38
|
+
width: 95px;
|
|
39
|
+
margin: 21px 10px;
|
|
40
|
+
text-decoration-line: none;
|
|
41
|
+
&-icon {
|
|
42
|
+
margin: 0px 10px 15px 10px;
|
|
43
|
+
min-width: 34px;
|
|
44
|
+
min-height: 34px;
|
|
45
|
+
display: inline-block;
|
|
46
|
+
color: var(--global-font-color3);
|
|
47
|
+
|
|
48
|
+
&.icon-lifecycle-manager,
|
|
49
|
+
&.icon-cloud-provider-services {
|
|
50
|
+
background-size: contain;
|
|
51
|
+
background-repeat: no-repeat;
|
|
52
|
+
}
|
|
53
|
+
&.icon-lifecycle-manager {
|
|
54
|
+
background-image: url('assets/img/icons/icon-life-m-light.svg');
|
|
55
|
+
html.dark-theme & {
|
|
56
|
+
background-image: url('assets/img/icons/icon-life-m-dark.svg');
|
|
57
|
+
color: var(--global-font-color3);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
&.icon-cloud-provider-services {
|
|
61
|
+
background-image: url('assets/img/icons/icon-cps.png');
|
|
62
|
+
html.dark-theme & {
|
|
63
|
+
background-image: url('assets/img/icons/icon-cps-dark-mode.png');
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
&.icon-vm-customizationManager-32x,
|
|
67
|
+
&.icon-storage-profile-32x,
|
|
68
|
+
&.icon-Host_Policy-32x,
|
|
69
|
+
&.icon-certificate-32x {
|
|
70
|
+
width: 34px;
|
|
71
|
+
height: 34px;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
&-text {
|
|
75
|
+
color: var(--global-font-color3);
|
|
76
|
+
font-size: 13px;
|
|
77
|
+
line-height: 13px;
|
|
78
|
+
font-weight: 400;
|
|
79
|
+
padding-bottom: 2px;
|
|
80
|
+
text-align: center;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
</style>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="category">
|
|
3
|
+
<span class="category-text" :title="props.title">
|
|
4
|
+
{{ props.title }}
|
|
5
|
+
</span>
|
|
6
|
+
<div class="category-block">
|
|
7
|
+
<common-shortcuts-block
|
|
8
|
+
v-for="(item, key) in props.blockItems"
|
|
9
|
+
:key="key"
|
|
10
|
+
:item="item"
|
|
11
|
+
/>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<script setup lang="ts">
|
|
17
|
+
import type { UI_I_BlockItem } from '~/components/common/shortcuts/models/interfaces'
|
|
18
|
+
|
|
19
|
+
const props = defineProps<{
|
|
20
|
+
title: string
|
|
21
|
+
blockItems: UI_I_BlockItem[]
|
|
22
|
+
}>()
|
|
23
|
+
</script>
|
|
24
|
+
<style lang="scss" scoped>
|
|
25
|
+
.category {
|
|
26
|
+
&-text {
|
|
27
|
+
color: var(--light-white-100);
|
|
28
|
+
font-size: 18px;
|
|
29
|
+
line-height: 21px;
|
|
30
|
+
font-weight: 400;
|
|
31
|
+
}
|
|
32
|
+
&-block {
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: row;
|
|
35
|
+
justify-content: flex-start;
|
|
36
|
+
border-top: 1px solid var(--global-border-color);
|
|
37
|
+
margin-top: -4px;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
</style>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="shortcut">
|
|
3
|
+
<h1>{{ localization.shortcuts }}</h1>
|
|
4
|
+
<template v-for="item in props.shortcutsItems">
|
|
5
|
+
<div class="shortcut-category">
|
|
6
|
+
<common-shortcuts-category
|
|
7
|
+
:title="item.title"
|
|
8
|
+
:block-items="item.blockItems"
|
|
9
|
+
/>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script setup lang="ts">
|
|
16
|
+
import type { UI_I_Localization } from '~/models/interfaces'
|
|
17
|
+
import { UI_I_ShortcutsItems } from '~/components/common/shortcuts/models/interfaces'
|
|
18
|
+
|
|
19
|
+
const props = defineProps<{
|
|
20
|
+
shortcutsItems: UI_I_ShortcutsItems[]
|
|
21
|
+
}>()
|
|
22
|
+
|
|
23
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<style lang="scss" scoped>
|
|
27
|
+
.shortcut {
|
|
28
|
+
margin: 20px;
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 100%;
|
|
31
|
+
overflow-y: scroll;
|
|
32
|
+
|
|
33
|
+
h1 {
|
|
34
|
+
line-height: 26px;
|
|
35
|
+
font-size: 22px;
|
|
36
|
+
font-weight: 200;
|
|
37
|
+
letter-spacing: normal;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&-category {
|
|
41
|
+
margin: 30px 20px 0 0;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
</style>
|