subvind-components
Advanced tools
@@ -9,3 +9,3 @@ | ||
| let type = ""; | ||
| let organization = ""; | ||
| export let organization; | ||
| async function login(event) { | ||
@@ -61,3 +61,3 @@ event.preventDefault(); | ||
| localStorage.setItem("access_token", res.access_token); | ||
| let decodedToken = jwt_decode(res.access_token); | ||
| let decodedToken = jwtDecode(res.access_token); | ||
| window.location.href = `/${decodedToken.ownername}/${decodedToken.orgname}/accounts/${decodedToken.accountname}`; | ||
@@ -90,2 +90,7 @@ } else { | ||
| </h1> | ||
| <div> | ||
| {#if organization} | ||
| {organization.backendHostname} | ||
| {/if} | ||
| </div> | ||
| </div> | ||
@@ -92,0 +97,0 @@ <form class="card" on:submit={(e) => login(e)}> |
| import { SvelteComponent } from "svelte"; | ||
| declare const __propDef: { | ||
| props: Record<string, never>; | ||
| props: { | ||
| organization: any; | ||
| }; | ||
| events: { | ||
@@ -5,0 +7,0 @@ [evt: string]: CustomEvent<any>; |
@@ -10,2 +10,3 @@ <script>import { onMount } from "svelte"; | ||
| let passwordRepeat = ""; | ||
| export let organization; | ||
| async function register(event) { | ||
@@ -74,2 +75,5 @@ event.preventDefault(); | ||
| } | ||
| onMount(() => { | ||
| M.updateTextFields(); | ||
| }); | ||
| </script> | ||
@@ -85,2 +89,7 @@ | ||
| </h1> | ||
| <div> | ||
| {#if organization} | ||
| {organization.backendHostname} | ||
| {/if} | ||
| </div> | ||
| </div> | ||
@@ -91,2 +100,6 @@ <form class="card" on:submit={(e) => register(e)}> | ||
| <div class="input-field col s12"> | ||
| <input id="accountType" type="text" value="root user" disabled> | ||
| <label for="accountType">Account Type</label> | ||
| </div> | ||
| <div class="input-field col s12"> | ||
| <input id="username" type="text" class="validate" bind:value={username}> | ||
@@ -93,0 +106,0 @@ <label for="username">Username</label> |
| import { SvelteComponent } from "svelte"; | ||
| declare const __propDef: { | ||
| props: Record<string, never>; | ||
| props: { | ||
| organization: any; | ||
| }; | ||
| events: { | ||
@@ -5,0 +7,0 @@ [evt: string]: CustomEvent<any>; |
+1
-1
| { | ||
| "name": "subvind-components", | ||
| "version": "0.0.12", | ||
| "version": "0.0.13", | ||
| "scripts": { | ||
@@ -5,0 +5,0 @@ "dev": "vite dev", |
35297
1.37%195
2.09%