bfg-common 1.4.511 → 1.4.513
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/{shortcuts → pages/shortcuts}/Block.vue +1 -1
- package/components/common/{shortcuts → pages/shortcuts}/Category.vue +1 -1
- package/components/common/{shortcuts → pages/shortcuts}/Shortcuts.vue +20 -3
- package/components/common/pages/shortcuts/category/Category.vue +42 -0
- package/components/common/pages/shortcuts/category/CategoryNew.vue +41 -0
- package/components/common/pages/shortcuts/category/CategoryOld.vue +41 -0
- package/package.json +1 -1
- /package/components/common/{shortcuts → pages/shortcuts}/lib/models/interfaces.ts +0 -0
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
</div>
|
|
23
23
|
</template>
|
|
24
24
|
<script setup lang="ts">
|
|
25
|
-
import type { UI_I_BlockItem } from '~/components/common/shortcuts/lib/models/interfaces'
|
|
25
|
+
import type { UI_I_BlockItem } from '~/components/common/pages/shortcuts/lib/models/interfaces'
|
|
26
26
|
|
|
27
27
|
const props = defineProps<{
|
|
28
28
|
item: UI_I_BlockItem
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
</template>
|
|
16
16
|
|
|
17
17
|
<script setup lang="ts">
|
|
18
|
-
import type { UI_I_BlockItem } from '~/components/common/shortcuts/lib/models/interfaces'
|
|
18
|
+
import type { UI_I_BlockItem } from '~/components/common/pages/shortcuts/lib/models/interfaces'
|
|
19
19
|
|
|
20
20
|
const props = defineProps<{
|
|
21
21
|
title: string
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="shortcut">
|
|
2
|
+
<div class="shortcut" :class="isNewView && 'new'">
|
|
3
3
|
<h1>{{ localization.mainNavigation.shortcuts }}</h1>
|
|
4
4
|
<template v-for="item in props.shortcutsItems">
|
|
5
5
|
<div class="shortcut-category">
|
|
@@ -14,12 +14,16 @@
|
|
|
14
14
|
|
|
15
15
|
<script setup lang="ts">
|
|
16
16
|
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
17
|
-
import type { UI_I_ShortcutsItems } from '~/components/common/shortcuts/lib/models/interfaces'
|
|
17
|
+
import type { UI_I_ShortcutsItems } from '~/components/common/pages/shortcuts/lib/models/interfaces'
|
|
18
18
|
|
|
19
19
|
const props = defineProps<{
|
|
20
20
|
shortcutsItems: UI_I_ShortcutsItems[]
|
|
21
21
|
}>()
|
|
22
22
|
|
|
23
|
+
const { $store }: any = useNuxtApp()
|
|
24
|
+
|
|
25
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
26
|
+
|
|
23
27
|
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
24
28
|
</script>
|
|
25
29
|
|
|
@@ -30,7 +34,20 @@ const localization = computed<UI_I_Localization>(() => useLocal())
|
|
|
30
34
|
height: 100%;
|
|
31
35
|
overflow-y: scroll;
|
|
32
36
|
|
|
33
|
-
|
|
37
|
+
&.new {
|
|
38
|
+
background: var(--bottom-pannel-bg-color);
|
|
39
|
+
padding: 16px;
|
|
40
|
+
margin: 0;
|
|
41
|
+
|
|
42
|
+
& > h1 {
|
|
43
|
+
color: var(--home-title-color);
|
|
44
|
+
font-size: 22px;
|
|
45
|
+
font-weight: 400;
|
|
46
|
+
line-height: 26.63px;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
& > h1 {
|
|
34
51
|
line-height: 26px;
|
|
35
52
|
font-size: 22px;
|
|
36
53
|
font-weight: 200;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<common-pages-shortcuts-category-new
|
|
3
|
+
v-if="isNewView"
|
|
4
|
+
:title="props.title"
|
|
5
|
+
:block-items="props.blockItems"
|
|
6
|
+
/>
|
|
7
|
+
<common-pages-shortcuts-category-old
|
|
8
|
+
v-else
|
|
9
|
+
:title="props.title"
|
|
10
|
+
:block-items="props.blockItems"
|
|
11
|
+
/>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script setup lang="ts">
|
|
15
|
+
import type { UI_I_BlockItem } from '~/components/common/pages/shortcuts/lib/models/interfaces'
|
|
16
|
+
|
|
17
|
+
const props = defineProps<{
|
|
18
|
+
title: string
|
|
19
|
+
blockItems: UI_I_BlockItem[]
|
|
20
|
+
}>()
|
|
21
|
+
|
|
22
|
+
const { $store }: any = useNuxtApp()
|
|
23
|
+
|
|
24
|
+
const isNewView = computed<boolean>(() => $store.getters['main/getIsNewView'])
|
|
25
|
+
</script>
|
|
26
|
+
<style lang="scss" scoped>
|
|
27
|
+
//.category {
|
|
28
|
+
// &-text {
|
|
29
|
+
// color: var(--light-white-100);
|
|
30
|
+
// font-size: 18px;
|
|
31
|
+
// line-height: 21px;
|
|
32
|
+
// font-weight: 400;
|
|
33
|
+
// }
|
|
34
|
+
// &-block {
|
|
35
|
+
// display: flex;
|
|
36
|
+
// flex-direction: row;
|
|
37
|
+
// justify-content: flex-start;
|
|
38
|
+
// border-top: 1px solid var(--global-border-color);
|
|
39
|
+
// margin-top: -4px;
|
|
40
|
+
// }
|
|
41
|
+
//}
|
|
42
|
+
</style>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="category">
|
|
3
|
+
<span class="category__headline">
|
|
4
|
+
{{ props.title }}
|
|
5
|
+
</span>
|
|
6
|
+
<div class="category-block">
|
|
7
|
+
<common-pages-shortcuts-block
|
|
8
|
+
v-for="(item, key) in props.blockItems"
|
|
9
|
+
:key="key"
|
|
10
|
+
:item="item"
|
|
11
|
+
:test-id="item.testId"
|
|
12
|
+
/>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script setup lang="ts">
|
|
18
|
+
import type { UI_I_BlockItem } from '~/components/common/pages/shortcuts/lib/models/interfaces'
|
|
19
|
+
|
|
20
|
+
const props = defineProps<{
|
|
21
|
+
title: string
|
|
22
|
+
blockItems: UI_I_BlockItem[]
|
|
23
|
+
}>()
|
|
24
|
+
</script>
|
|
25
|
+
<style lang="scss" scoped>
|
|
26
|
+
.category {
|
|
27
|
+
&__headline {
|
|
28
|
+
color: #9da6ad;
|
|
29
|
+
font-size: 16px;
|
|
30
|
+
font-weight: 400;
|
|
31
|
+
line-height: 19.36px;
|
|
32
|
+
}
|
|
33
|
+
&-block {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: row;
|
|
36
|
+
justify-content: flex-start;
|
|
37
|
+
border-top: 1px solid var(--global-border-color);
|
|
38
|
+
margin-top: -4px;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
</style>
|
|
@@ -0,0 +1,41 @@
|
|
|
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-pages-shortcuts-block
|
|
8
|
+
v-for="(item, key) in props.blockItems"
|
|
9
|
+
:key="key"
|
|
10
|
+
:item="item"
|
|
11
|
+
:test-id="item.testId"
|
|
12
|
+
/>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script setup lang="ts">
|
|
18
|
+
import type { UI_I_BlockItem } from '~/components/common/pages/shortcuts/lib/models/interfaces'
|
|
19
|
+
|
|
20
|
+
const props = defineProps<{
|
|
21
|
+
title: string
|
|
22
|
+
blockItems: UI_I_BlockItem[]
|
|
23
|
+
}>()
|
|
24
|
+
</script>
|
|
25
|
+
<style lang="scss" scoped>
|
|
26
|
+
.category {
|
|
27
|
+
&-text {
|
|
28
|
+
color: var(--light-white-100);
|
|
29
|
+
font-size: 18px;
|
|
30
|
+
line-height: 21px;
|
|
31
|
+
font-weight: 400;
|
|
32
|
+
}
|
|
33
|
+
&-block {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: row;
|
|
36
|
+
justify-content: flex-start;
|
|
37
|
+
border-top: 1px solid var(--global-border-color);
|
|
38
|
+
margin-top: -4px;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
</style>
|
package/package.json
CHANGED
|
File without changes
|