bfg-common 1.5.725 → 1.5.726
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,97 +1,97 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ui-modal
|
|
3
|
-
:title="props.title"
|
|
4
|
-
:subtitle="props.subtitle"
|
|
5
|
-
:texts="{}"
|
|
6
|
-
test-id="about-modal"
|
|
7
|
-
width="720px"
|
|
8
|
-
show
|
|
9
|
-
@hide="onHideModal"
|
|
10
|
-
>
|
|
11
|
-
<template #content>
|
|
12
|
-
<ui-modal-block-standard>
|
|
13
|
-
<div class="about-modal__text">
|
|
14
|
-
<p>{{ aboutHeadingText }}</p>
|
|
15
|
-
|
|
16
|
-
<p>{{ localization.layout.aboutSubtitle }}</p>
|
|
17
|
-
</div>
|
|
18
|
-
|
|
19
|
-
<div class="about-modal__description">
|
|
20
|
-
{{ props.aboutDescOne
|
|
21
|
-
}}<a
|
|
22
|
-
id="about-description-link"
|
|
23
|
-
:href="url"
|
|
24
|
-
data-id="about-description-link"
|
|
25
|
-
target="_blank"
|
|
26
|
-
class="about-modal__description-link"
|
|
27
|
-
>
|
|
28
|
-
{{ props.url }} </a
|
|
29
|
-
>{{ props.aboutDescSecond }}
|
|
30
|
-
</div>
|
|
31
|
-
</ui-modal-block-standard>
|
|
32
|
-
</template>
|
|
33
|
-
<template #footer><div class="modal-footer-block"></div></template>
|
|
34
|
-
</ui-modal>
|
|
35
|
-
</template>
|
|
36
|
-
|
|
37
|
-
<script lang="ts" setup>
|
|
38
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
39
|
-
|
|
40
|
-
const props = defineProps<{
|
|
41
|
-
title: string
|
|
42
|
-
subtitle: string
|
|
43
|
-
aboutHeadingText: string
|
|
44
|
-
aboutDescOne: string
|
|
45
|
-
aboutDescSecond: string
|
|
46
|
-
url: string
|
|
47
|
-
projectName: string // для warning console
|
|
48
|
-
}>()
|
|
49
|
-
const emits = defineEmits<{
|
|
50
|
-
(event: 'hide'): void
|
|
51
|
-
}>()
|
|
52
|
-
|
|
53
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
54
|
-
|
|
55
|
-
const onHideModal = (): void => {
|
|
56
|
-
emits('hide')
|
|
57
|
-
}
|
|
58
|
-
</script>
|
|
59
|
-
|
|
60
|
-
<style lang="scss" scoped>
|
|
61
|
-
.modal-container-standard {
|
|
62
|
-
padding-top: 12px;
|
|
63
|
-
padding-bottom: 12px;
|
|
64
|
-
|
|
65
|
-
.about-modal {
|
|
66
|
-
&__text {
|
|
67
|
-
color: var(--about-text-color);
|
|
68
|
-
font-size: 13px;
|
|
69
|
-
font-weight: 400;
|
|
70
|
-
line-height: 15.73px;
|
|
71
|
-
|
|
72
|
-
p:last-child {
|
|
73
|
-
margin: 16px 0;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
&__description {
|
|
77
|
-
color: var(--about-text-color);
|
|
78
|
-
font-size: 13px;
|
|
79
|
-
font-weight: 400;
|
|
80
|
-
line-height: 15.73px;
|
|
81
|
-
|
|
82
|
-
&-link {
|
|
83
|
-
color: var(--about-text-link-color);
|
|
84
|
-
&:hover {
|
|
85
|
-
color: var(--about-text-link-hover-color);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
.modal-footer-block {
|
|
92
|
-
height: 32px;
|
|
93
|
-
}
|
|
94
|
-
:deep(.title-wrapper__subtitle) {
|
|
95
|
-
max-width: 400px;
|
|
96
|
-
}
|
|
97
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<ui-modal
|
|
3
|
+
:title="props.title"
|
|
4
|
+
:subtitle="props.subtitle"
|
|
5
|
+
:texts="{}"
|
|
6
|
+
test-id="about-modal"
|
|
7
|
+
width="720px"
|
|
8
|
+
show
|
|
9
|
+
@hide="onHideModal"
|
|
10
|
+
>
|
|
11
|
+
<template #content>
|
|
12
|
+
<ui-modal-block-standard>
|
|
13
|
+
<div class="about-modal__text">
|
|
14
|
+
<p>{{ aboutHeadingText }}</p>
|
|
15
|
+
|
|
16
|
+
<p>{{ localization.layout.aboutSubtitle }}</p>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<div class="about-modal__description">
|
|
20
|
+
{{ props.aboutDescOne
|
|
21
|
+
}}<a
|
|
22
|
+
id="about-description-link"
|
|
23
|
+
:href="url"
|
|
24
|
+
data-id="about-description-link"
|
|
25
|
+
target="_blank"
|
|
26
|
+
class="about-modal__description-link"
|
|
27
|
+
>
|
|
28
|
+
{{ props.url }} </a
|
|
29
|
+
>{{ props.aboutDescSecond }}
|
|
30
|
+
</div>
|
|
31
|
+
</ui-modal-block-standard>
|
|
32
|
+
</template>
|
|
33
|
+
<template #footer><div class="modal-footer-block"></div></template>
|
|
34
|
+
</ui-modal>
|
|
35
|
+
</template>
|
|
36
|
+
|
|
37
|
+
<script lang="ts" setup>
|
|
38
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
39
|
+
|
|
40
|
+
const props = defineProps<{
|
|
41
|
+
title: string
|
|
42
|
+
subtitle: string
|
|
43
|
+
aboutHeadingText: string
|
|
44
|
+
aboutDescOne: string
|
|
45
|
+
aboutDescSecond: string
|
|
46
|
+
url: string
|
|
47
|
+
projectName: string // для warning console
|
|
48
|
+
}>()
|
|
49
|
+
const emits = defineEmits<{
|
|
50
|
+
(event: 'hide'): void
|
|
51
|
+
}>()
|
|
52
|
+
|
|
53
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
54
|
+
|
|
55
|
+
const onHideModal = (): void => {
|
|
56
|
+
emits('hide')
|
|
57
|
+
}
|
|
58
|
+
</script>
|
|
59
|
+
|
|
60
|
+
<style lang="scss" scoped>
|
|
61
|
+
.modal-container-standard {
|
|
62
|
+
padding-top: 12px;
|
|
63
|
+
padding-bottom: 12px;
|
|
64
|
+
|
|
65
|
+
.about-modal {
|
|
66
|
+
&__text {
|
|
67
|
+
color: var(--about-text-color);
|
|
68
|
+
font-size: 13px;
|
|
69
|
+
font-weight: 400;
|
|
70
|
+
line-height: 15.73px;
|
|
71
|
+
|
|
72
|
+
p:last-child {
|
|
73
|
+
margin: 16px 0;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
&__description {
|
|
77
|
+
color: var(--about-text-color);
|
|
78
|
+
font-size: 13px;
|
|
79
|
+
font-weight: 400;
|
|
80
|
+
line-height: 15.73px;
|
|
81
|
+
|
|
82
|
+
&-link {
|
|
83
|
+
color: var(--about-text-link-color);
|
|
84
|
+
&:hover {
|
|
85
|
+
color: var(--about-text-link-hover-color);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
.modal-footer-block {
|
|
92
|
+
height: 32px;
|
|
93
|
+
}
|
|
94
|
+
:deep(.title-wrapper__subtitle) {
|
|
95
|
+
max-width: 400px;
|
|
96
|
+
}
|
|
97
|
+
</style>
|
package/package.json
CHANGED
package/composables/deepCopy.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
let exists: any = []
|
|
2
|
-
export const useDeepCopy = (obj: any, is = false) => {
|
|
3
|
-
if (!is) exists = []
|
|
4
|
-
if (typeof obj !== 'object' || obj === null) {
|
|
5
|
-
return obj
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
const res: any = Array.isArray(obj) ? [] : {}
|
|
9
|
-
for (const i in obj) {
|
|
10
|
-
const item = obj[i]
|
|
11
|
-
if (exists.includes(item)) {
|
|
12
|
-
res[i] = item
|
|
13
|
-
continue
|
|
14
|
-
}
|
|
15
|
-
exists.push(item)
|
|
16
|
-
|
|
17
|
-
res[i] = useDeepCopy(item, true)
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
return res
|
|
21
|
-
}
|