bfg-common 1.4.326 → 1.4.328
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/layout/theHeader/helpMenu/About.vue +91 -23
- package/components/common/layout/theHeader/helpMenu/HelpMenu.vue +1 -1
- package/components/common/pages/scheduledTasks/modals/common/newTaskForm/lib/utils.ts +4 -4
- package/package.json +1 -1
- package/components/common/layout/theHeader/helpMenu/aboutNew/AboutNew.vue +0 -114
- package/components/common/layout/theHeader/helpMenu/aboutOld/AboutOld.vue +0 -110
|
@@ -1,42 +1,110 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<Teleport to="body">
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
:
|
|
6
|
-
:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
3
|
+
<atoms-modal
|
|
4
|
+
width="864px"
|
|
5
|
+
:show="true"
|
|
6
|
+
:title="`${brandName}® ${props.projectName}`"
|
|
7
|
+
test-id="about-modal"
|
|
8
|
+
>
|
|
9
|
+
<template #modalHeader>
|
|
10
|
+
<div class="flex-align-center">
|
|
11
|
+
<h3 class="modal-title">{{ brandName }}® {{ props.projectName }}</h3>
|
|
12
|
+
<span class="separator" />
|
|
13
|
+
<h4 class="secondary-title">
|
|
14
|
+
{{ props.projectName }} Web Client, version: {{ version }}
|
|
15
|
+
</h4>
|
|
16
|
+
<span
|
|
17
|
+
v-if="props.isBetaVersion"
|
|
18
|
+
class="beta-version badge badge-info"
|
|
19
|
+
>{{ localization.common.beta }}</span
|
|
20
|
+
>
|
|
21
|
+
<span v-else-if="isDev" class="beta-version badge badge-info"
|
|
22
|
+
>Dev</span
|
|
23
|
+
>
|
|
24
|
+
</div>
|
|
25
|
+
<button id="about-modal-button-close" class="close">
|
|
26
|
+
<atoms-the-icon
|
|
27
|
+
data-id="about-modal-button-close-icon"
|
|
28
|
+
class="close-icon"
|
|
29
|
+
name="close"
|
|
30
|
+
@click="() => emits('hide')"
|
|
31
|
+
/>
|
|
32
|
+
</button>
|
|
33
|
+
</template>
|
|
34
|
+
|
|
35
|
+
<template #modalBody>
|
|
36
|
+
<div class="about-vsphere-dialog-legal-section">
|
|
37
|
+
<p>{{ aboutHeadingText }}</p>
|
|
38
|
+
<p>{{ localization.layout.aboutSubtitle }}</p>
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
<div class="about-vsphere-dialog-legal-section description">
|
|
42
|
+
{{ aboutDesc1 }}
|
|
43
|
+
(<a
|
|
44
|
+
id="about-description-link"
|
|
45
|
+
data-id="about-description-link"
|
|
46
|
+
:href="url"
|
|
47
|
+
target="_blank"
|
|
48
|
+
>{{ url }}</a
|
|
49
|
+
>){{ aboutDesc2 }}
|
|
50
|
+
</div>
|
|
51
|
+
</template>
|
|
52
|
+
|
|
53
|
+
<template #modalFooter>
|
|
54
|
+
<span></span>
|
|
55
|
+
</template>
|
|
56
|
+
</atoms-modal>
|
|
22
57
|
</Teleport>
|
|
23
58
|
</template>
|
|
24
59
|
|
|
25
60
|
<script lang="ts" setup>
|
|
61
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
62
|
+
|
|
26
63
|
const props = defineProps<{
|
|
27
64
|
version: string
|
|
28
|
-
|
|
65
|
+
isBetaVersion: boolean
|
|
29
66
|
isDev: boolean
|
|
30
67
|
projectName: string
|
|
31
68
|
}>()
|
|
69
|
+
|
|
32
70
|
const emits = defineEmits<{
|
|
33
71
|
(event: 'hide'): void
|
|
34
72
|
}>()
|
|
35
73
|
|
|
36
|
-
const
|
|
74
|
+
const config = useRuntimeConfig()
|
|
37
75
|
|
|
76
|
+
const brandName = computed<string>(
|
|
77
|
+
() => config.public[`TRADEMARK_${useEnvLanguage()}`]
|
|
78
|
+
)
|
|
79
|
+
const companyName = computed<string>(
|
|
80
|
+
() => config.public[`COMPANY_NAME_${useEnvLanguage()}`]
|
|
81
|
+
)
|
|
82
|
+
const aboutHeadingText = computed<string>(() =>
|
|
83
|
+
localization.value.layout.aboutHeading.replaceAll('{companyName}', companyName.value)
|
|
84
|
+
)
|
|
85
|
+
const aboutDesc1 = computed<string>(() =>
|
|
86
|
+
localization.value.layout.aboutDesc1
|
|
87
|
+
.replaceAll('{companyName}', companyName.value)
|
|
88
|
+
.replaceAll('{trademark}', brandName.value)
|
|
89
|
+
)
|
|
90
|
+
const aboutDesc2 = computed<string>(() =>
|
|
91
|
+
localization.value.layout.aboutDesc2
|
|
92
|
+
.replaceAll('{companyName}', companyName.value)
|
|
93
|
+
.replaceAll('{trademark}', brandName.value)
|
|
94
|
+
)
|
|
38
95
|
|
|
39
|
-
const
|
|
96
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
40
97
|
|
|
41
|
-
const
|
|
98
|
+
const url = ref<string>('https://iridium-soft.com/')
|
|
42
99
|
</script>
|
|
100
|
+
|
|
101
|
+
<style lang="scss" scoped>
|
|
102
|
+
.modal-title {
|
|
103
|
+
color: var(--main-color-mode);
|
|
104
|
+
}
|
|
105
|
+
.description {
|
|
106
|
+
padding-top: 10px;
|
|
107
|
+
font-size: 13px;
|
|
108
|
+
line-height: 19px;
|
|
109
|
+
}
|
|
110
|
+
</style>
|
|
@@ -25,7 +25,7 @@ export const generateWeeklyCronExpression = (
|
|
|
25
25
|
const daysOfWeek = frg_on_week_days.join(',')
|
|
26
26
|
|
|
27
27
|
return endTimestamp
|
|
28
|
-
? `* * * * ${daysOfWeek} ${startTimestamp}-${endTimestamp}:0-0
|
|
28
|
+
? `* * * * ${daysOfWeek} ${startTimestamp}-${endTimestamp}:0-0-${data.frg_interval}-0`
|
|
29
29
|
: `* * * * ${daysOfWeek} ${startTimestamp}:0-0-0-${data.frg_interval}`
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -54,7 +54,7 @@ export const generateMonthlyCronExpression = (
|
|
|
54
54
|
)
|
|
55
55
|
const endTimestamp = Math.floor(new Date(data.frg_end_time).getTime() / 1000)
|
|
56
56
|
|
|
57
|
-
const
|
|
57
|
+
const ordinaryDaysOfWeek = `${frq_ordinal_number}`
|
|
58
58
|
|
|
59
59
|
const timestamp = endTimestamp
|
|
60
60
|
? `${startTimestamp}-${endTimestamp}`
|
|
@@ -62,6 +62,6 @@ export const generateMonthlyCronExpression = (
|
|
|
62
62
|
|
|
63
63
|
// Генерируем cron-выражение
|
|
64
64
|
return data.frg_monthly_mode === 'week'
|
|
65
|
-
? `* * * *
|
|
66
|
-
: `* * ${frg_monthly_day}
|
|
65
|
+
? `* * * * ${frq_week_day} ${timestamp}:0-0-${ordinaryDaysOfWeek}-${frg_interval}`
|
|
66
|
+
: `* * ${frg_monthly_day} * * ${timestamp}:0-0-0-${frg_interval}`
|
|
67
67
|
}
|
package/package.json
CHANGED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<ui-modal
|
|
3
|
-
test-id="about-modal"
|
|
4
|
-
width="720px"
|
|
5
|
-
:title="`${brandName}® ${props.projectName}`"
|
|
6
|
-
:subtitle="`${props.projectName} Web Client, version: ${props.version}`"
|
|
7
|
-
class="about-modal"
|
|
8
|
-
@hide="onHideModal"
|
|
9
|
-
>
|
|
10
|
-
<template #content>
|
|
11
|
-
<ui-modal-block-standard>
|
|
12
|
-
<div class="about-modal__text">
|
|
13
|
-
<p>{{ aboutHeadingText }}</p>
|
|
14
|
-
|
|
15
|
-
<p>{{ localization.layout.aboutSubtitle }}</p>
|
|
16
|
-
</div>
|
|
17
|
-
|
|
18
|
-
<div class="about-modal__description">
|
|
19
|
-
{{ aboutDesc1 }}
|
|
20
|
-
|
|
21
|
-
(<a
|
|
22
|
-
id="about-description-link"
|
|
23
|
-
data-id="about-description-link"
|
|
24
|
-
:href="url"
|
|
25
|
-
target="_blank"
|
|
26
|
-
class="about-modal__description-link"
|
|
27
|
-
>
|
|
28
|
-
{{ props.url }} </a
|
|
29
|
-
>)
|
|
30
|
-
|
|
31
|
-
{{ aboutDesc2 }}
|
|
32
|
-
</div>
|
|
33
|
-
</ui-modal-block-standard>
|
|
34
|
-
</template>
|
|
35
|
-
<template #footerContent><span /></template>
|
|
36
|
-
<template #footerLeftContent><span /></template>
|
|
37
|
-
</ui-modal>
|
|
38
|
-
</template>
|
|
39
|
-
|
|
40
|
-
<script lang="ts" setup>
|
|
41
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
42
|
-
|
|
43
|
-
const props = defineProps<{
|
|
44
|
-
version: string
|
|
45
|
-
isBetaVersion: boolean
|
|
46
|
-
isDev: boolean
|
|
47
|
-
projectName: string
|
|
48
|
-
url: string
|
|
49
|
-
}>()
|
|
50
|
-
const emits = defineEmits<{
|
|
51
|
-
(event: 'hide'): void
|
|
52
|
-
}>()
|
|
53
|
-
|
|
54
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
55
|
-
const config = useRuntimeConfig()
|
|
56
|
-
|
|
57
|
-
const brandName = computed<string>(
|
|
58
|
-
() => config.public[`TRADEMARK_${useEnvLanguage()}`]
|
|
59
|
-
)
|
|
60
|
-
const companyName = computed<string>(
|
|
61
|
-
() => config.public[`COMPANY_NAME_${useEnvLanguage()}`]
|
|
62
|
-
)
|
|
63
|
-
|
|
64
|
-
const aboutHeadingText = computed<string>(() =>
|
|
65
|
-
localization.value.layout.aboutHeading.replaceAll(
|
|
66
|
-
'{companyName}',
|
|
67
|
-
companyName.value
|
|
68
|
-
)
|
|
69
|
-
)
|
|
70
|
-
|
|
71
|
-
const aboutDesc1 = computed<string>(() =>
|
|
72
|
-
localization.value.layout.aboutDesc1
|
|
73
|
-
.replaceAll('{companyName}', companyName.value)
|
|
74
|
-
.replaceAll('{trademark}', brandName.value)
|
|
75
|
-
)
|
|
76
|
-
const aboutDesc2 = computed<string>(() =>
|
|
77
|
-
localization.value.layout.aboutDesc2
|
|
78
|
-
.replaceAll('{companyName}', companyName.value)
|
|
79
|
-
.replaceAll('{trademark}', brandName.value)
|
|
80
|
-
)
|
|
81
|
-
|
|
82
|
-
const onHideModal = (): void => {
|
|
83
|
-
emits('hide')
|
|
84
|
-
}
|
|
85
|
-
</script>
|
|
86
|
-
|
|
87
|
-
<style lang="scss" scoped>
|
|
88
|
-
.about-modal {
|
|
89
|
-
&__text {
|
|
90
|
-
color: #4d5d69;
|
|
91
|
-
font-size: 13px;
|
|
92
|
-
font-weight: 400;
|
|
93
|
-
line-height: 15.73px;
|
|
94
|
-
p:last-child {
|
|
95
|
-
margin: 16px 0;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
&__description {
|
|
99
|
-
color: #4d5d69;
|
|
100
|
-
font-size: 13px;
|
|
101
|
-
font-weight: 400;
|
|
102
|
-
line-height: 15.73px;
|
|
103
|
-
&-link {
|
|
104
|
-
color: #0786d2;
|
|
105
|
-
&:hover {
|
|
106
|
-
color: #0081c1;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
:deep(.title-wrapper__subtitle) {
|
|
112
|
-
max-width: 400px;
|
|
113
|
-
}
|
|
114
|
-
</style>
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<Teleport to="body">
|
|
3
|
-
<atoms-modal
|
|
4
|
-
width="864px"
|
|
5
|
-
:show="true"
|
|
6
|
-
:title="`${brandName}® ${props.projectName}`"
|
|
7
|
-
test-id="about-modal"
|
|
8
|
-
>
|
|
9
|
-
<template #modalHeader>
|
|
10
|
-
<div class="flex-align-center">
|
|
11
|
-
<h3 class="modal-title">{{ brandName }}® {{ props.projectName }}</h3>
|
|
12
|
-
<span class="separator" />
|
|
13
|
-
<h4 class="secondary-title">
|
|
14
|
-
{{ props.projectName }} Web Client, version: {{ version }}
|
|
15
|
-
</h4>
|
|
16
|
-
<span
|
|
17
|
-
v-if="props.isBetaVersion"
|
|
18
|
-
class="beta-version badge badge-info"
|
|
19
|
-
>{{ localization.common.beta }}</span
|
|
20
|
-
>
|
|
21
|
-
<span v-else-if="isDev" class="beta-version badge badge-info"
|
|
22
|
-
>Dev</span
|
|
23
|
-
>
|
|
24
|
-
</div>
|
|
25
|
-
<button id="about-modal-button-close" class="close">
|
|
26
|
-
<atoms-the-icon
|
|
27
|
-
data-id="about-modal-button-close-icon"
|
|
28
|
-
class="close-icon"
|
|
29
|
-
name="close"
|
|
30
|
-
@click="() => emits('hide')"
|
|
31
|
-
/>
|
|
32
|
-
</button>
|
|
33
|
-
</template>
|
|
34
|
-
|
|
35
|
-
<template #modalBody>
|
|
36
|
-
<div class="about-vsphere-dialog-legal-section">
|
|
37
|
-
<p>{{ aboutHeadingText }}</p>
|
|
38
|
-
<p>{{ localization.layout.aboutSubtitle }}</p>
|
|
39
|
-
</div>
|
|
40
|
-
|
|
41
|
-
<div class="about-vsphere-dialog-legal-section description">
|
|
42
|
-
{{ aboutDesc1 }}
|
|
43
|
-
(<a
|
|
44
|
-
id="about-description-link"
|
|
45
|
-
data-id="about-description-link"
|
|
46
|
-
:href="url"
|
|
47
|
-
target="_blank"
|
|
48
|
-
>{{ props.url }}</a
|
|
49
|
-
>){{ aboutDesc2 }}
|
|
50
|
-
</div>
|
|
51
|
-
</template>
|
|
52
|
-
|
|
53
|
-
<template #modalFooter>
|
|
54
|
-
<span></span>
|
|
55
|
-
</template>
|
|
56
|
-
</atoms-modal>
|
|
57
|
-
</Teleport>
|
|
58
|
-
</template>
|
|
59
|
-
|
|
60
|
-
<script lang="ts" setup>
|
|
61
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
62
|
-
|
|
63
|
-
const props = defineProps<{
|
|
64
|
-
version: string
|
|
65
|
-
isBetaVersion: boolean
|
|
66
|
-
isDev: boolean
|
|
67
|
-
projectName: string
|
|
68
|
-
url: string
|
|
69
|
-
}>()
|
|
70
|
-
const emits = defineEmits<{
|
|
71
|
-
(event: 'hide'): void
|
|
72
|
-
}>()
|
|
73
|
-
|
|
74
|
-
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
75
|
-
const config = useRuntimeConfig()
|
|
76
|
-
|
|
77
|
-
const brandName = computed<string>(
|
|
78
|
-
() => config.public[`TRADEMARK_${useEnvLanguage()}`]
|
|
79
|
-
)
|
|
80
|
-
const companyName = computed<string>(
|
|
81
|
-
() => config.public[`COMPANY_NAME_${useEnvLanguage()}`]
|
|
82
|
-
)
|
|
83
|
-
const aboutHeadingText = computed<string>(() =>
|
|
84
|
-
localization.value.layout.aboutHeading.replaceAll(
|
|
85
|
-
'{companyName}',
|
|
86
|
-
companyName.value
|
|
87
|
-
)
|
|
88
|
-
)
|
|
89
|
-
const aboutDesc1 = computed<string>(() =>
|
|
90
|
-
localization.value.layout.aboutDesc1
|
|
91
|
-
.replaceAll('{companyName}', companyName.value)
|
|
92
|
-
.replaceAll('{trademark}', brandName.value)
|
|
93
|
-
)
|
|
94
|
-
const aboutDesc2 = computed<string>(() =>
|
|
95
|
-
localization.value.layout.aboutDesc2
|
|
96
|
-
.replaceAll('{companyName}', companyName.value)
|
|
97
|
-
.replaceAll('{trademark}', brandName.value)
|
|
98
|
-
)
|
|
99
|
-
</script>
|
|
100
|
-
|
|
101
|
-
<style lang="scss" scoped>
|
|
102
|
-
.modal-title {
|
|
103
|
-
color: var(--main-color-mode);
|
|
104
|
-
}
|
|
105
|
-
.description {
|
|
106
|
-
padding-top: 10px;
|
|
107
|
-
font-size: 13px;
|
|
108
|
-
line-height: 19px;
|
|
109
|
-
}
|
|
110
|
-
</style>
|