add auth via uuid only

This commit is contained in:
2026-01-31 15:25:33 +01:00
parent 57020a8913
commit f919079f69
9 changed files with 113 additions and 22 deletions

View File

@@ -1,7 +1,9 @@
import { router } from '../router.js';
import { i18n } from '../i18n.js';
import { auth } from '../services/auth.js';
import './app-header.js';
import './app-footer.js';
import './auth-modal.js';
import './pages/page-home.js';
import './pages/page-search.js';
import './pages/page-listing.js';
@@ -29,9 +31,13 @@ class AppShell extends HTMLElement {
<app-header></app-header>
<main class="container" id="router-outlet"></main>
<app-footer></app-footer>
<auth-modal hidden></auth-modal>
`;
this.main = this.querySelector('#router-outlet');
// Try to restore session
auth.tryRestoreSession();
}
setupRouter() {