API: Use noOptions for parameters

Move  config.service to _services/
Rationalise  bootstrap and conf (WIP)
Fix auth:
- Add HTTP interceptor
- Bootstrap after login/logout
Some cleanups
This commit is contained in:
phil 2024-03-20 10:48:33 +05:30
parent 8593d0b5cd
commit 4eb4c0d0dd
29 changed files with 223 additions and 296 deletions

View file

@ -2,7 +2,7 @@
<mat-toolbar fxFlex="2em" id='top-toolbar'>
<span
style='font-family:GisafSymbols'
matTooltip="Gisaf v. {{ version }}"
matTooltip="Gisaf v. {{ (configService.conf | async).bsData?.version }}"
matTooltipPosition="below"
class='gisafIcon'
>
@ -25,12 +25,12 @@
</a>
</nav>
<span class="fill-space"></span>
<span *ngIf="authenticationService.user$ | async; else login" class="auth-indicator">
<span *ngIf="(configService.conf | async).bsData?.user; else login" class="auth-indicator">
<nav>
<a mat-icon-button
(click)='this.authenticationService.logout()'
aria-label="Log out"
matTooltip="User: {{ (authenticationService.user$ | async ).userName }}. Click to log out">
matTooltip="User: {{ (configService.conf | async ).bsData?.user.username }}. Click to log out">
<mat-icon>verified_user</mat-icon>
</a>
</nav>