license checking

This commit is contained in:
Jan Prochazka
2024-07-31 15:36:55 +02:00
parent 07cb4defe6
commit 2e847eee9b
6 changed files with 108 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ import localStorageGarbageCollector from './utility/localStorageGarbageCollector
import { handleOauthCallback } from './clientAuth';
import LoginPage from './LoginPage.svelte';
import NotLoggedPage from './NotLoggedPage.svelte';
import ErrorPage from './ErrorPage.svelte';
const isOauthCallback = handleOauthCallback();
@@ -22,6 +23,13 @@ function createApp() {
switch (page) {
case 'login':
return new LoginPage({
target: document.body,
props: {
isAdminPage: false,
},
});
case 'error':
return new ErrorPage({
target: document.body,
props: {},
});