Added a search for Chromebook usage after a specific date. Removed references to the schema code which was not working. Ran into a deployment issue that requires I manually run sudo npm run install from the bundle/programs/server folder after deploying.
This commit is contained in:
16
imports/ui/DateInput.svelte
Normal file
16
imports/ui/DateInput.svelte
Normal file
@@ -0,0 +1,16 @@
|
||||
<script>
|
||||
import dayjs from 'dayjs'
|
||||
|
||||
export let format = 'YYYY-MM-DD'
|
||||
export let date = new Date()
|
||||
|
||||
let internal
|
||||
|
||||
const input = (x) => (internal = dayjs(x).format(format))
|
||||
const output = (x) => (date = dayjs(x, format).toDate())
|
||||
|
||||
$: input(date)
|
||||
$: output(internal)
|
||||
</script>
|
||||
|
||||
<input type="date" bind:value={internal} />
|
||||
Reference in New Issue
Block a user