bfg-common 1.4.329 → 1.4.331
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/feedback/Feedback.vue +0 -2
- package/components/common/layout/theHeader/feedback/FeedbackNew/FeedbackNew.vue +61 -0
- package/components/common/layout/theHeader/feedback/FeedbackNew/description/Description.vue +53 -0
- package/components/common/pages/scheduledTasks/modals/common/frequency/on/On.vue +2 -18
- package/components/common/pages/scheduledTasks/modals/common/newTaskForm/lib/utils.ts +4 -4
- package/package.json +1 -1
- package/components/common/layout/theHeader/feedback/FeedbackNew.vue +0 -63
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<ui-modal
|
|
3
|
+
show
|
|
4
|
+
width="560px"
|
|
5
|
+
test-id="feedback-modal"
|
|
6
|
+
:title="localization.common.sendFeedback"
|
|
7
|
+
:texts="texts"
|
|
8
|
+
class="feedback"
|
|
9
|
+
@submit="onSubmit"
|
|
10
|
+
@hide="onHideModal"
|
|
11
|
+
>
|
|
12
|
+
<template #content>
|
|
13
|
+
<ui-modal-block-standard>
|
|
14
|
+
<common-layout-the-header-feedback-new-description />
|
|
15
|
+
|
|
16
|
+
</ui-modal-block-standard>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<template #footerLeftContent><span /></template>
|
|
20
|
+
</ui-modal>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<script setup lang="ts">
|
|
24
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
25
|
+
// import type { UI_I_FeedbackForm } from '~/components/common/feedback/lib/models/interfaces'
|
|
26
|
+
|
|
27
|
+
// const props = defineProps<{
|
|
28
|
+
// title: string
|
|
29
|
+
// }>()
|
|
30
|
+
// console.log(props)
|
|
31
|
+
// const emits = defineEmits<{
|
|
32
|
+
// (event: 'hide'): void
|
|
33
|
+
// (event: 'submit', value: UI_I_FeedbackForm): void
|
|
34
|
+
// }>()
|
|
35
|
+
|
|
36
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
37
|
+
|
|
38
|
+
const texts = {
|
|
39
|
+
button1: localization.value.common.send,
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const onHideModal = (): void => {
|
|
43
|
+
// emits('hide')
|
|
44
|
+
}
|
|
45
|
+
const onSubmit = (): void => {}
|
|
46
|
+
</script>
|
|
47
|
+
|
|
48
|
+
<style lang="scss">
|
|
49
|
+
:root {
|
|
50
|
+
--description-color: #414b57;
|
|
51
|
+
--link-visited-color: #5659b8;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:root.dark-theme {
|
|
55
|
+
--description-color: #adbbc4;
|
|
56
|
+
--link-visited-color: #49afd9;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.feedback {
|
|
60
|
+
}
|
|
61
|
+
</style>
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="description">
|
|
3
|
+
<span class="description-label text-ellipsis">
|
|
4
|
+
{{ localization.common.helpUsImprove }}
|
|
5
|
+
</span>
|
|
6
|
+
<ui-icon
|
|
7
|
+
id="feedback-description-info-icon"
|
|
8
|
+
name="info"
|
|
9
|
+
width="18"
|
|
10
|
+
height="18"
|
|
11
|
+
:color="isShowInfo ? '#008FD6' : '#9DA6AD'"
|
|
12
|
+
class="info-icon pointer"
|
|
13
|
+
@click="isShowInfo = !isShowInfo"
|
|
14
|
+
/>
|
|
15
|
+
<ui-popup-window
|
|
16
|
+
v-model="isShowInfo"
|
|
17
|
+
width="232px"
|
|
18
|
+
:elem-id="'feedback-description-info-icon'"
|
|
19
|
+
>
|
|
20
|
+
<div class="common-widget-info">
|
|
21
|
+
<div class="headline justify-between flex-align-center">
|
|
22
|
+
<div class="flex-align-center">
|
|
23
|
+
<ui-icon-icon3 name="info-2" width="16px" height="16px" />
|
|
24
|
+
<span class="title">Feedback Help</span>
|
|
25
|
+
</div>
|
|
26
|
+
<ui-icon
|
|
27
|
+
name="close"
|
|
28
|
+
class="pointer hide-icon"
|
|
29
|
+
width="16px"
|
|
30
|
+
height="16px"
|
|
31
|
+
@click="isShowInfo = false"
|
|
32
|
+
/>
|
|
33
|
+
</div>
|
|
34
|
+
|
|
35
|
+
<div class="common-widget-info-description">
|
|
36
|
+
{{ infoDescription }}
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</ui-popup-window>
|
|
40
|
+
</div>
|
|
41
|
+
</template>
|
|
42
|
+
|
|
43
|
+
<script lang="ts" setup>
|
|
44
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
|
45
|
+
|
|
46
|
+
const localization = computed<UI_I_Localization>(() => useLocal())
|
|
47
|
+
|
|
48
|
+
const isShowInfo = ref<boolean>(false)
|
|
49
|
+
|
|
50
|
+
const infoDescription = ref('')
|
|
51
|
+
</script>
|
|
52
|
+
|
|
53
|
+
<style lang="scss" scoped></style>
|
|
@@ -63,19 +63,13 @@
|
|
|
63
63
|
<common-select-input
|
|
64
64
|
v-model="model.frq_ordinal_number"
|
|
65
65
|
:data="frequencyOnOrdinalNumber"
|
|
66
|
-
:class="[
|
|
67
|
-
'radio__select ordinary-day',
|
|
68
|
-
!isDisabledMonthlyDayField && 'disabled',
|
|
69
|
-
]"
|
|
66
|
+
:class="['radio__select', !isDisabledMonthlyDayField && 'disabled']"
|
|
70
67
|
/>
|
|
71
68
|
|
|
72
69
|
<common-select-input
|
|
73
70
|
v-model="model.frq_week_day"
|
|
74
71
|
:data="frequencyOnWeeksDays"
|
|
75
|
-
:class="[
|
|
76
|
-
'radio__select week-days',
|
|
77
|
-
!isDisabledMonthlyDayField && 'disabled',
|
|
78
|
-
]"
|
|
72
|
+
:class="['radio__select', !isDisabledMonthlyDayField && 'disabled']"
|
|
79
73
|
/>
|
|
80
74
|
</div>
|
|
81
75
|
</div>
|
|
@@ -197,16 +191,6 @@ const setDefaultDateTime = () => {
|
|
|
197
191
|
&__select {
|
|
198
192
|
width: 100%;
|
|
199
193
|
margin-top: 10px;
|
|
200
|
-
:deep(.select-input__inner) {
|
|
201
|
-
max-width: 100% !important;
|
|
202
|
-
}
|
|
203
|
-
&.ordinary-day :deep(select) {
|
|
204
|
-
min-width: 80px;
|
|
205
|
-
}
|
|
206
|
-
&.week-days :deep(select) {
|
|
207
|
-
min-width: 110px;
|
|
208
|
-
margin-left: 15px;
|
|
209
|
-
}
|
|
210
194
|
select {
|
|
211
195
|
width: 80px;
|
|
212
196
|
}
|
|
@@ -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-${data.frg_interval}
|
|
28
|
+
? `* * * * ${daysOfWeek} ${startTimestamp}-${endTimestamp}:0-0-0-${data.frg_interval}`
|
|
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 daysOfWeek = `${frq_week_day}#${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
|
+
? `* * * * * ${timestamp}:0-0-${frg_interval}-${daysOfWeek}`
|
|
66
|
+
: `* * ${frg_monthly_day} */${frg_interval} * ${timestamp}:0-0-0-0`
|
|
67
67
|
}
|
package/package.json
CHANGED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<Teleport to="body">
|
|
3
|
-
<common-feedback
|
|
4
|
-
width="576px"
|
|
5
|
-
:show="props.isShowFeedback"
|
|
6
|
-
:title="props.title"
|
|
7
|
-
@hide="emits('hide')"
|
|
8
|
-
@submit="emits('submit', $event)"
|
|
9
|
-
/>
|
|
10
|
-
</Teleport>
|
|
11
|
-
</template>
|
|
12
|
-
|
|
13
|
-
<script setup lang="ts">
|
|
14
|
-
import type { UI_I_FeedbackForm } from '~/components/common/feedback/lib/models/interfaces'
|
|
15
|
-
|
|
16
|
-
const props = defineProps<{
|
|
17
|
-
isShowFeedback: boolean
|
|
18
|
-
title: string
|
|
19
|
-
}>()
|
|
20
|
-
|
|
21
|
-
const emits = defineEmits<{
|
|
22
|
-
(event: 'hide'): void
|
|
23
|
-
(event: 'submit', value: UI_I_FeedbackForm): void
|
|
24
|
-
}>()
|
|
25
|
-
</script>
|
|
26
|
-
|
|
27
|
-
<style lang="scss">
|
|
28
|
-
:root {
|
|
29
|
-
--description-color: #414b57;
|
|
30
|
-
--link-visited-color: #5659b8;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
:root.dark-theme {
|
|
34
|
-
--description-color: #adbbc4;
|
|
35
|
-
--link-visited-color: #49afd9;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.feedback {
|
|
39
|
-
width: 60px;
|
|
40
|
-
height: 60px;
|
|
41
|
-
display: flex;
|
|
42
|
-
flex-direction: column;
|
|
43
|
-
justify-content: center;
|
|
44
|
-
align-items: center;
|
|
45
|
-
fill: #fafafa;
|
|
46
|
-
|
|
47
|
-
&-icon {
|
|
48
|
-
width: 24px;
|
|
49
|
-
height: 24px;
|
|
50
|
-
opacity: 0.65;
|
|
51
|
-
cursor: pointer;
|
|
52
|
-
}
|
|
53
|
-
&-icon:hover {
|
|
54
|
-
opacity: 1;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
.about-vsphere-dialog-legal-section {
|
|
58
|
-
color: var(--description-color);
|
|
59
|
-
a {
|
|
60
|
-
color: var(--link-visited-color);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
</style>
|