- run
npm install
andnpm run dev
for the frontend - run
cd backend && npm install && npm run dev
for the backend
This project exposes a small UI store to control the top-panel title across pages:
src/lib/stores/uiStore.ts
exportspageTitle
(a writable store),setPageTitle(t: string)
andresetPageTitle()
.- Use
setPageTitle('My Title')
in a page'sonMount
to change the TopPanel title. The layout reads$pageTitle
and forwards it to theTopPanel
.
Example:
import { onMount } from 'svelte';
import { setPageTitle } from '../lib/stores/uiStore';
onMount(() => setPageTitle('Courses'));
Call resetPageTitle()
to return to the default title.
- A lightweight auth store lives at
src/lib/stores/auth.ts
exposingisAuthenticated
,loginDemo()
, andlogout()
. - The
AuthOverlay
component dispatchessuccess
on successful login; pages can show it and react to events.