Skip to content

Commit 605229f

Browse files
committed
fix: helpers dup %
1 parent c7154c3 commit 605229f

File tree

1 file changed

+6
-25
lines changed

1 file changed

+6
-25
lines changed

src/tools/crontab-generator/crontab-generator.vue

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ watchEffect(() => {
2929
cronstrueConfig.tzOffset = -getTimezoneOffset(currentTimezone.value, new Date()) / 60;
3030
});
3131
32-
const standardHelpers = [
32+
const commonHelpers = [
3333
{
3434
symbol: '*',
3535
meaning: 'Any value',
@@ -54,6 +54,10 @@ const standardHelpers = [
5454
example: '*/10 * * *',
5555
equivalent: 'Every 10 minutes',
5656
},
57+
];
58+
59+
const standardHelpers = [
60+
...commonHelpers,
5761
{
5862
symbol: '@yearly',
5963
meaning: 'Once every year at midnight of 1 January',
@@ -105,30 +109,7 @@ const standardHelpers = [
105109
];
106110
107111
const awsHelpers = [
108-
{
109-
symbol: '*',
110-
meaning: 'Any value',
111-
example: '* * * *',
112-
equivalent: 'Every minute',
113-
},
114-
{
115-
symbol: '-',
116-
meaning: 'Range of values',
117-
example: '1-10 * * *',
118-
equivalent: 'Minutes 1 through 10',
119-
},
120-
{
121-
symbol: ',',
122-
meaning: 'List of values',
123-
example: '1,10 * * *',
124-
equivalent: 'At minutes 1 and 10',
125-
},
126-
{
127-
symbol: '/',
128-
meaning: 'Step values',
129-
example: '*/10 * * *',
130-
equivalent: 'Every 10 minutes',
131-
},
112+
...commonHelpers,
132113
{
133114
symbol: '?',
134115
meaning: 'One or another. In the Day-of-month field you could enter 7, and if you didn\'t care what day of the week the seventh was, you could enter ? in the Day-of-week field',

0 commit comments

Comments
 (0)