mirror of
https://github.com/cupcakearmy/ora.git
synced 2024-12-22 08:06:28 +00:00
cleanup
This commit is contained in:
parent
12d2b3b99e
commit
2f86c4169f
@ -5,7 +5,7 @@
|
|||||||
import Dashboard from './pages/Dashboard.svelte'
|
import Dashboard from './pages/Dashboard.svelte'
|
||||||
import Limits from './pages/Limits.svelte'
|
import Limits from './pages/Limits.svelte'
|
||||||
import Footer from './components/Footer.svelte'
|
import Footer from './components/Footer.svelte'
|
||||||
import Options from './components/Options.svelte'
|
import Options from './pages/Options.svelte'
|
||||||
|
|
||||||
import { isDev } from '../shared/utils'
|
import { isDev } from '../shared/utils'
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
<script>
|
<script>
|
||||||
import { onMount } from 'svelte'
|
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
|
|
||||||
const format = 'YYYY-MM-DD'
|
const format = 'YYYY-MM-DD'
|
||||||
@ -16,10 +15,10 @@
|
|||||||
$: output(internal)
|
$: output(internal)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<input class="form-input input-sm" type="date" bind:value={internal} {name} />
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
input {
|
input {
|
||||||
width: 7rem !important;
|
width: 7rem !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<input class="form-input input-sm" type="date" bind:value={internal} {name} />
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
import day from 'dayjs'
|
import day from 'dayjs'
|
||||||
import { range, random } from 'lodash'
|
import { range, random } from 'lodash'
|
||||||
|
|
||||||
import { insertLog, normalizeTimestamp, DB, clear as clearDB } from '../../shared/db'
|
import { insertLog, normalizeTimestamp, clear as clearDB } from '../../shared/db'
|
||||||
|
|
||||||
let loading = false
|
let loading = false
|
||||||
|
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
<script>
|
<script>
|
||||||
import { isEqual } from 'lodash'
|
|
||||||
|
|
||||||
let text = 'Select File'
|
let text = 'Select File'
|
||||||
|
|
||||||
export let value = undefined
|
export let value = undefined
|
||||||
@ -30,6 +28,11 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<label class="btn">
|
||||||
|
{#if error}Invalid file{:else}{text}{/if}
|
||||||
|
<input bind:this={input} on:change={validate} class="input" accept="application/json" type="file" />
|
||||||
|
</label>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
label {
|
label {
|
||||||
width: 18em;
|
width: 18em;
|
||||||
@ -40,8 +43,3 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<label class="btn">
|
|
||||||
{#if error}Invalid file{:else}{text}{/if}
|
|
||||||
<input bind:this={input} on:change={validate} class="input" accept="application/json" type="file" />
|
|
||||||
</label>
|
|
||||||
|
@ -23,12 +23,6 @@
|
|||||||
onMount(() => set('day', 0)())
|
onMount(() => set('day', 0)())
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
|
||||||
.spacer {
|
|
||||||
width: 0.5em;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button class="btn btn-sm" on:click={all}>All</button>
|
<button class="btn btn-sm" on:click={all}>All</button>
|
||||||
@ -43,3 +37,9 @@
|
|||||||
<DateInput bind:date={end} />
|
<DateInput bind:date={end} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.spacer {
|
||||||
|
width: 0.5em;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
@ -21,7 +21,8 @@
|
|||||||
style={`width:${percentage}%;`}
|
style={`width:${percentage}%;`}
|
||||||
aria-valuenow={percentage}
|
aria-valuenow={percentage}
|
||||||
aria-valuemin="0"
|
aria-valuemin="0"
|
||||||
aria-valuemax="100" />
|
aria-valuemax="100"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
{/await}
|
{/await}
|
||||||
{/each}
|
{/each}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
import { saveAs } from 'file-saver'
|
import { saveAs } from 'file-saver'
|
||||||
import dj from 'dayjs'
|
import dj from 'dayjs'
|
||||||
|
|
||||||
import FileUpload from './FileUpload.svelte'
|
import FileUpload from '../components/FileUpload.svelte'
|
||||||
|
|
||||||
import { dump as dumpDB, load as loadDB, clear as clearDB, validate } from '../../shared/db'
|
import { dump as dumpDB, load as loadDB, clear as clearDB, validate } from '../../shared/db'
|
||||||
import { longPress } from '../../shared/lib'
|
import { longPress } from '../../shared/lib'
|
Loading…
Reference in New Issue
Block a user