Skip to content

Commit ee55b62

Browse files
committed
docs: add spring format
1 parent 577e019 commit ee55b62

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

docs/src/.vuepress/components/cron-demo.vue

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="cron-demo">
3-
<p>Flavor</p>
3+
<p class="pb-1">Flavor</p>
44
<v-select
55
v-model="flavor"
66
:items="flavors"
@@ -9,14 +9,14 @@
99
return-object>
1010
</v-select>
1111

12-
<p>Locale</p>
12+
<p class="pb-1">Locale</p>
1313
<v-select v-model="locale" :items="locales" item-title="name">
1414
<template #item="{ item, props }">
1515
<v-list-item v-bind="props" :subtitle="'locale: '+item.value"></v-list-item>
1616
</template>
1717
</v-select>
1818

19-
<p>Format</p>
19+
<p class="pb-1">Format</p>
2020
<v-btn-toggle
2121
v-model="format"
2222
tile
@@ -26,11 +26,13 @@
2626
class="mb-5 elevation-5">
2727

2828
<v-btn v-for="item in formats" :value="item" :key="item">
29-
{{item}}
29+
{{ item.value }}
3030
</v-btn>
3131

3232
</v-btn-toggle>
3333

34+
<p>{{ format.value }} documentation: <a :href="format.docs">{{ format.docs }}</a></p>
35+
3436
<v-switch v-model="disabled" color="secondary" label="Disabled"></v-switch>
3537

3638
<iframe :src="src"></iframe>
@@ -125,7 +127,11 @@ export default {
125127
]
126128
locales.sort((a, b) => a.name.localeCompare(b.name))
127129
128-
const formats = ['crontab', 'quartz']
130+
const formats = [
131+
{value: 'crontab', docs: 'https://man7.org/linux/man-pages/man5/crontab.5.html'},
132+
{value: 'quartz', docs: 'https://www.quartz-scheduler.org/documentation/quartz-2.3.0/tutorials/crontrigger.html'},
133+
{value: 'spring', docs: 'https://spring.io/blog/2020/11/10/new-in-spring-5-3-improved-cron-expressions'},
134+
]
129135
130136
const flavor = ref(flavors[0])
131137
const locale = ref('en')

0 commit comments

Comments
 (0)