fix: helpers dup %

This commit is contained in:
ShareVB 2024-09-21 14:42:22 +02:00
parent c7154c36eb
commit 605229f4ef

View file

@ -29,7 +29,7 @@ watchEffect(() => {
cronstrueConfig.tzOffset = -getTimezoneOffset(currentTimezone.value, new Date()) / 60; cronstrueConfig.tzOffset = -getTimezoneOffset(currentTimezone.value, new Date()) / 60;
}); });
const standardHelpers = [ const commonHelpers = [
{ {
symbol: '*', symbol: '*',
meaning: 'Any value', meaning: 'Any value',
@ -54,6 +54,10 @@ const standardHelpers = [
example: '*/10 * * *', example: '*/10 * * *',
equivalent: 'Every 10 minutes', equivalent: 'Every 10 minutes',
}, },
];
const standardHelpers = [
...commonHelpers,
{ {
symbol: '@yearly', symbol: '@yearly',
meaning: 'Once every year at midnight of 1 January', meaning: 'Once every year at midnight of 1 January',
@ -105,30 +109,7 @@ const standardHelpers = [
]; ];
const awsHelpers = [ const awsHelpers = [
{ ...commonHelpers,
symbol: '*',
meaning: 'Any value',
example: '* * * *',
equivalent: 'Every minute',
},
{
symbol: '-',
meaning: 'Range of values',
example: '1-10 * * *',
equivalent: 'Minutes 1 through 10',
},
{
symbol: ',',
meaning: 'List of values',
example: '1,10 * * *',
equivalent: 'At minutes 1 and 10',
},
{
symbol: '/',
meaning: 'Step values',
example: '*/10 * * *',
equivalent: 'Every 10 minutes',
},
{ {
symbol: '?', symbol: '?',
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', 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',