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
12
frontend/src/routing/special_routes.ts
Normal file
12
frontend/src/routing/special_routes.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { escapeHTML } from "@app/utils";
|
||||
import { getRoute, type RouteHandlerParams } from "@app/routing";
|
||||
|
||||
export async function route_404(url: string, _args: RouteHandlerParams): Promise<string> {
|
||||
console.log(`asked about route '${url}: not found'`)
|
||||
console.log(getRoute())
|
||||
return `
|
||||
<div> 404 - Not Found </div>
|
||||
<hr />
|
||||
<center> ${escapeHTML(url)} </center>
|
||||
`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue