dev #6

Merged
philipp merged 36 commits from dev into main 2021-03-19 16:17:10 +00:00
2 changed files with 6 additions and 1 deletions
Showing only changes of commit c2f9da6e92 - Show all commits

View File

@ -14,6 +14,7 @@
href="https://docs.lauf-fuer-kaya.de/">See our configuration guide.</a></p>
<form class="flex flex-col pt-3 md:pt-8" onsubmit="event.preventDefault();" on:submit={()=>
{
// TODO: validate token with backend api
console.log(token);
apikey.set(token)
}}>

View File

@ -1,3 +1,7 @@
import { writable } from 'svelte/store';
export const apikey = writable('');
const stored_apikey = localStorage.getItem('apikey');
export const apikey = writable(stored_apikey);
apikey.subscribe((value) => {
localStorage.setItem('apikey', value);
});