forked from mirrors/homebox
feat: add scheduled maintenance tasks (#320)
* add scheduled maintenance tasks * fix failing typecheck
This commit is contained in:
parent
70297b9d27
commit
025521431e
25 changed files with 521 additions and 121 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue