style: format HTML and TypeScript files for consistency

This commit is contained in:
Jan Gleytenhoover 2025-01-21 14:57:49 +01:00
parent cb658a7721
commit 56cb68a3ce
Signed by: jank
GPG key ID: 50620ADD22CD330B
4 changed files with 17 additions and 10 deletions

View file

@ -1,6 +1,6 @@
<h2 mat-dialog-title>{{ data.title }}</h2>
<mat-dialog-content>{{ data.description }}</mat-dialog-content>
<mat-dialog-actions>
<button mat-flat-button color="warn" (click)="close()">No</button>
<button mat-flat-button (click)="accept()">Yes</button>
<button mat-flat-button (click)="close()">No</button>
<button mat-flat-button color="warn" (click)="accept()">Yes</button>
</mat-dialog-actions>

View file

@ -24,9 +24,16 @@
placeholder="Aurelius14"
/>
</mat-form-field>
<button class="mb-3" mat-flat-button type="submit" (click)="submit()">Login</button>
<button class="mb-3" mat-flat-button type="submit" (click)="submit()">
Login
</button>
<mat-divider></mat-divider>
<button mat-flat-button [style.backgroundColor]="'#FD4B2D'" class="mt-3 mat-authentik" (click)="loginWithAuthentik()">
<button
mat-flat-button
[style.backgroundColor]="'#FD4B2D'"
class="mt-3 mat-authentik"
(click)="loginWithAuthentik()"
>
Log in with Authentik
</button>
</form>

View file

@ -78,7 +78,9 @@ export class LoginComponent {
}
loginWithAuthentik() {
this.pb.collection('users').authWithOAuth2({ provider: 'oidc' })
this.pb
.collection('users')
.authWithOAuth2({ provider: 'oidc' })
.then(() => {
this.router.navigate(['dashboard']);
})

View file

@ -15,8 +15,6 @@ html {
@apply underline text-blue-500 cursor-pointer;
}
html,
body {
height: 100%;