client for blocking

This commit is contained in:
2020-09-20 22:24:57 +02:00
parent c078f3150e
commit 77564060e2
12 changed files with 81 additions and 22 deletions

View File

@@ -1,10 +1,11 @@
<script>
import { onMount } from 'svelte'
import dj from 'dayjs'
import DateInput from './DateInput.svelte'
export let start
export let end
export let start = new Date()
export let end = new Date()
function set(interval, amount = 1) {
return () => {
@@ -19,7 +20,7 @@
}
// Init
set('week')()
onMount(() => set('day', 0)())
</script>
<style>

View File

@@ -1,7 +1,7 @@
<script>
import dj from 'dayjs'
import { getUsageForRules } from '../lib.js'
import { getUsageForRules } from '../../shared/lib.js'
export let host = ''
export let rules = []