style: format frontend, docs and skills with prettier; add .prettierignore
One-time prettier --write so the new format:check CI gate starts green. .prettierignore excludes generated (api-client.ts, documentation.json), vendored (public/cibg-huisstijl), and backend (dotnet format owns it). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -4,17 +4,35 @@ import { Component, OnDestroy, OnInit, input, signal } from '@angular/core';
|
||||
flash a spinner, slow ones get feedback. */
|
||||
@Component({
|
||||
selector: 'app-spinner',
|
||||
styles: [`
|
||||
:host{display:block}
|
||||
.sp{inline-size:var(--rhc-space-max-3xl);block-size:var(--rhc-space-max-3xl);border-radius:var(--rhc-border-radius-round);
|
||||
border:var(--rhc-space-max-xs) solid var(--rhc-color-cool-grey-300);
|
||||
border-block-start-color:var(--rhc-color-lintblauw-700);
|
||||
animation:sp 0.8s linear infinite;margin:var(--rhc-space-max-2xl) auto}
|
||||
@keyframes sp{to{transform:rotate(360deg)}}
|
||||
`],
|
||||
styles: [
|
||||
`
|
||||
:host {
|
||||
display: block;
|
||||
}
|
||||
.sp {
|
||||
inline-size: var(--rhc-space-max-3xl);
|
||||
block-size: var(--rhc-space-max-3xl);
|
||||
border-radius: var(--rhc-border-radius-round);
|
||||
border: var(--rhc-space-max-xs) solid var(--rhc-color-cool-grey-300);
|
||||
border-block-start-color: var(--rhc-color-lintblauw-700);
|
||||
animation: sp 0.8s linear infinite;
|
||||
margin: var(--rhc-space-max-2xl) auto;
|
||||
}
|
||||
@keyframes sp {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
`,
|
||||
],
|
||||
template: `
|
||||
@if (visible()) {
|
||||
<div class="sp" role="status" i18n-aria-label="@@spinner.aria" aria-label="Bezig met laden"></div>
|
||||
<div
|
||||
class="sp"
|
||||
role="status"
|
||||
i18n-aria-label="@@spinner.aria"
|
||||
aria-label="Bezig met laden"
|
||||
></div>
|
||||
}
|
||||
`,
|
||||
})
|
||||
@@ -23,6 +41,10 @@ export class SpinnerComponent implements OnInit, OnDestroy {
|
||||
protected visible = signal(false);
|
||||
private timer?: ReturnType<typeof setTimeout>;
|
||||
|
||||
ngOnInit() { this.timer = setTimeout(() => this.visible.set(true), this.delay()); }
|
||||
ngOnDestroy() { clearTimeout(this.timer); }
|
||||
ngOnInit() {
|
||||
this.timer = setTimeout(() => this.visible.set(true), this.delay());
|
||||
}
|
||||
ngOnDestroy() {
|
||||
clearTimeout(this.timer);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user