feat(frontend): added frontend
- Router: client side route handling with client side rendering - Toast: rought Toast handling for better UX and messaging - Auth: single point of truth for the Logged in user This commit doesnt not include the openapi generated code
This commit is contained in:
parent
0db41a440d
commit
08c910c193
28 changed files with 1994 additions and 0 deletions
15
frontend/src/pages/root/root.html
Normal file
15
frontend/src/pages/root/root.html
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<div>
|
||||
Welcome a to <span> The Site de Boule </span>
|
||||
</div>
|
||||
<div>
|
||||
Welcome a to <span> The Site de Boule </span>
|
||||
</div>
|
||||
<div>
|
||||
Welcome a to <span> The Site de Boule </span>
|
||||
</div>
|
||||
<div>
|
||||
Welcome a to <span> The Site de Boule </span>
|
||||
</div>
|
||||
<div>
|
||||
Welcome a to <span> The Site de Boule </span>
|
||||
</div>
|
||||
14
frontend/src/pages/root/root.ts
Normal file
14
frontend/src/pages/root/root.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { addRoute, setTitle, type RouteHandlerParams } from "@app/routing";
|
||||
import page from './root.html?raw'
|
||||
|
||||
addRoute('/', (_: string) => {
|
||||
setTitle('ft boules')
|
||||
return page;
|
||||
})
|
||||
|
||||
|
||||
addRoute('/with_title/:title', (_: string, args: RouteHandlerParams) => {
|
||||
setTitle(args.title)
|
||||
console.log(`title should be '${args.title}'`);
|
||||
return page;
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue