feat: add scheduled maintenance tasks (#320)

* add scheduled maintenance tasks

* fix failing typecheck
This commit is contained in:
Hayden 2023-02-26 18:42:23 -09:00 committed by GitHub
parent 70297b9d27
commit 025521431e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 521 additions and 121 deletions

View file

@ -1,13 +1,13 @@
<template>
<div v-if="!inline" class="form-control w-full">
<label class="label">
<span class="label-text"> Date </span>
<span class="label-text"> {{ label }}</span>
</label>
<input ref="input" v-model="selected" type="date" class="input input-bordered w-full" />
</div>
<div v-else class="sm:grid sm:grid-cols-4 sm:items-start sm:gap-4">
<label class="label">
<span class="label-text"> Date </span>
<span class="label-text"> {{ label }} </span>
</label>
<input v-model="selected" type="date" class="input input-bordered col-span-3 w-full mt-2" />
</div>
@ -18,7 +18,7 @@
const props = defineProps({
modelValue: {
type: Date as () => Date | string,
type: Date as () => Date | string | null,
required: false,
default: null,
},
@ -26,6 +26,10 @@
type: Boolean,
default: false,
},
label: {
type: String,
default: "Date",
},
});
const selected = computed({