Skip to content

Commit

Permalink
docs: add spring format
Browse files Browse the repository at this point in the history
  • Loading branch information
abichinger committed Nov 14, 2024
1 parent 577e019 commit ee55b62
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions docs/src/.vuepress/components/cron-demo.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="cron-demo">
<p>Flavor</p>
<p class="pb-1">Flavor</p>
<v-select
v-model="flavor"
:items="flavors"
Expand All @@ -9,14 +9,14 @@
return-object>
</v-select>

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

<p>Format</p>
<p class="pb-1">Format</p>
<v-btn-toggle
v-model="format"
tile
Expand All @@ -26,11 +26,13 @@
class="mb-5 elevation-5">

<v-btn v-for="item in formats" :value="item" :key="item">
{{item}}
{{ item.value }}
</v-btn>

</v-btn-toggle>

<p>{{ format.value }} documentation: <a :href="format.docs">{{ format.docs }}</a></p>

<v-switch v-model="disabled" color="secondary" label="Disabled"></v-switch>

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

0 comments on commit ee55b62

Please sign in to comment.