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
8
frontend/src/utils.ts
Normal file
8
frontend/src/utils.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
export function escapeHTML(str: string): string {
|
||||
const p = document.createElement("p");
|
||||
p.appendChild(document.createTextNode(str));
|
||||
return p.innerHTML;
|
||||
}
|
||||
export function isNullish<T>(v: T | undefined | null): v is (null | undefined) {
|
||||
return v === null || v === undefined;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue