diff --git a/.prettierrc b/.prettierrc index 9cfdeb9..33afac8 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,5 +1,5 @@ { - "useTabs": true, + "useTabs": false, "singleQuote": true, "trailingComma": "all", "printWidth": 100, diff --git a/src/app.css b/src/app.css index 736ecf1..adc8a5c 100644 --- a/src/app.css +++ b/src/app.css @@ -2,5 +2,5 @@ @import 'tailwindcss'; * { - font-family: "Inter", sans-serif; -} \ No newline at end of file + font-family: 'Inter', sans-serif; +} diff --git a/src/app.d.ts b/src/app.d.ts index 693aaee..0dcd3b8 100644 --- a/src/app.d.ts +++ b/src/app.d.ts @@ -1,19 +1,19 @@ // See https://svelte.dev/docs/kit/types#app.d.ts -import type { Guard } from "$lib/server/guard"; +import type { Guard } from '$lib/server/guard'; import 'unplugin-icons/types/svelte'; // for information about these interfaces declare global { - namespace App { - // interface Error {} - interface Locals { - guard: Guard; - } - // interface PageData {} - // interface PageState {} - // interface Platform {} - } + namespace App { + // interface Error {} + interface Locals { + guard: Guard; + } + // interface PageData {} + // interface PageState {} + // interface Platform {} + } } export {}; diff --git a/src/app.html b/src/app.html index 5889edb..25525f6 100644 --- a/src/app.html +++ b/src/app.html @@ -1,12 +1,12 @@ -
- - - - %sveltekit.head% - - -{description}
- {/if} + > +{description}
+ {/if} diff --git a/src/lib/v2/forms/InputCombobox.svelte b/src/lib/v2/forms/InputCombobox.svelte index 6ee65be..2315fb9 100644 --- a/src/lib/v2/forms/InputCombobox.svelte +++ b/src/lib/v2/forms/InputCombobox.svelte @@ -1,139 +1,139 @@+ No results found. Try another term. +
+ {/if} + +{description}
- {/if} + {#if description} +{description}
+ {/if} diff --git a/src/lib/v2/forms/InputText.svelte b/src/lib/v2/forms/InputText.svelte index 751f51d..5a445e9 100644 --- a/src/lib/v2/forms/InputText.svelte +++ b/src/lib/v2/forms/InputText.svelte @@ -1,29 +1,29 @@{description}
- {/if} + /> + {#if description} +{description}
+ {/if}Delete
+ + {/if} +Nothing here.
- {#if createHref} -Get started by clicking "{msgAdd}".
- {/if} -Nothing here.
+ {#if createHref} +Get started by clicking "{msgAdd}".
+ {/if} +{title}
-{subtitle}
-{title}
+{subtitle}
+{$pageTitle}
-{$pageTitle}
+Sessions
-Logout
-Logout
+{form?.error}
Could not login: {form.error}
-{/if} \ No newline at end of file +Could not login: {form.error}
+{/if} diff --git a/src/routes/logout/+page.server.ts b/src/routes/logout/+page.server.ts index 846136f..9cb52e1 100644 --- a/src/routes/logout/+page.server.ts +++ b/src/routes/logout/+page.server.ts @@ -1,8 +1,8 @@ -import { deleteSession } from "$lib/server/sessions"; -import { redirect, type ServerLoad } from "@sveltejs/kit"; +import { deleteSession } from '$lib/server/sessions'; +import { redirect, type ServerLoad } from '@sveltejs/kit'; export const load: ServerLoad = async ({ cookies }) => { - deleteSession(cookies.get("session")); - cookies.delete("session", { path: "/" }); - redirect(302, "/login"); -}; \ No newline at end of file + deleteSession(cookies.get('session')); + cookies.delete('session', { path: '/' }); + redirect(302, '/login'); +};