dev #6

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

View File

@ -15,6 +15,7 @@
<form class="flex flex-col pt-3 md:pt-8" onsubmit="event.preventDefault();" on:submit={()=>
{
console.log(token);
apikey.set(token)
}}>
<div class="flex flex-col pt-4">
<label for="token" class="text-lg">Client Token</label>
@ -75,6 +76,7 @@
</div>
</div>
<script>
import {apikey} from './store.js';
let token;
$: isTokenValid=token?.length===44&& token.split(".")[0].length===7 &&isUUID(token.split(".")[1]);
function isUUID ( uuid ) {

3
app/src/store.js Normal file
View File

@ -0,0 +1,3 @@
import { writable } from 'svelte/store';
export const apikey = writable('');