wip: trpc

This commit is contained in:
Andras Bacsai
2022-12-13 12:47:14 +01:00
parent 1639d1725a
commit 1180d3fdde
28 changed files with 1341 additions and 175 deletions

View File

@@ -1,6 +1,6 @@
<script lang="ts">
export let data: PageData;
import type { PageData } from './$types';
export let data: LayoutData;
import type { LayoutData } from './$types';
import '../app.postcss';
import { appSession } from '$lib/store';
@@ -12,11 +12,12 @@
import Toasts from '$lib/components/Toasts.svelte';
let sidedrawerToggler: HTMLInputElement;
$appSession = {
...$appSession,
...data.data
};
if (data.settings.success) {
$appSession = {
...$appSession,
...data.settings.data
};
}
const closeDrawer = () => (sidedrawerToggler.checked = false);
async function logout() {