add settings page
This commit is contained in:
parent
f35352eedd
commit
865b7fd5c4
46
src/views/Settings.svelte
Normal file
46
src/views/Settings.svelte
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
<script>
|
||||||
|
import Nav from '../ui/Nav.svelte';
|
||||||
|
import Link from '../ui/Link.svelte';
|
||||||
|
|
||||||
|
export let appState;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<Nav />
|
||||||
|
|
||||||
|
<div class="mx-auto mt-3 max-w-md">
|
||||||
|
<h2 class="text-2xl font-bold text-center">Settings</h2>
|
||||||
|
|
||||||
|
<div class="divider"></div>
|
||||||
|
<div class="grid grid-cols-2 items-center">
|
||||||
|
<h3 class="text-lg font-bold">Start minimized</h3>
|
||||||
|
<input type="checkbox" class="justify-self-end toggle toggle-success" />
|
||||||
|
</div>
|
||||||
|
<p class="mt-3">Minimize to the system tray at startup.</p>
|
||||||
|
|
||||||
|
<div class="divider"></div>
|
||||||
|
<div class="grid grid-cols-2 items-center">
|
||||||
|
<h3 class="text-lg font-bold">Re-hide delay</h3>
|
||||||
|
<div class="justify-self-end">
|
||||||
|
<span class="mr-2">(Seconds)</span>
|
||||||
|
<input type="text" class="input input-sm input-bordered text-right max-w-[4rem]" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p class="mt-3">
|
||||||
|
How long to wait after a request is approved/denied before minimizing
|
||||||
|
the window to tray. Only applicable if the window was minimized
|
||||||
|
to tray before the request was received.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div class="divider"></div>
|
||||||
|
<div class="grid grid-cols-2 items-center">
|
||||||
|
<h3 class="text-lg font-bold">Update credentials</h3>
|
||||||
|
<div class="justify-self-end">
|
||||||
|
<Link target="EnterCredentials">
|
||||||
|
<button class="btn btn-sm btn-primary">Update</button>
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p class="mt-3">Update or re-enter your encrypted credentials.</p>
|
||||||
|
|
||||||
|
</div>
|
Loading…
x
Reference in New Issue
Block a user