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:
eho
2026-07-03 13:39:31 +02:00
co-authored by Claude Opus 4.8
parent 546097434d
commit e82309786d
176 changed files with 5067 additions and 1469 deletions
+16 -4
View File
@@ -42,16 +42,26 @@ export class UploadShellService {
/** Start (or retry) an upload: queue → progress → complete/failed. */
upload(req: XhrUploadRequest, dispatch: Dispatch): void {
dispatch({ type: 'UploadQueued', localId: req.localId, backgroundSync: this.backgroundSyncAvailable });
dispatch({
type: 'UploadQueued',
localId: req.localId,
backgroundSync: this.backgroundSyncAvailable,
});
const { done, cancel } = this.transport.send(req, (pct) =>
dispatch({ type: 'UploadProgress', localId: req.localId, progressPct: pct }),
);
this.inflight.set(req.localId, cancel);
done
.then(({ documentId }) => dispatch({ type: 'UploadComplete', localId: req.localId, documentId }))
.then(({ documentId }) =>
dispatch({ type: 'UploadComplete', localId: req.localId, documentId }),
)
.catch((e) => {
if (e !== UPLOAD_ABORTED) {
dispatch({ type: 'UploadFailed', localId: req.localId, reason: typeof e === 'string' ? e : '' });
dispatch({
type: 'UploadFailed',
localId: req.localId,
reason: typeof e === 'string' ? e : '',
});
}
})
.finally(() => this.inflight.delete(req.localId));
@@ -63,7 +73,9 @@ export class UploadShellService {
this.adapter
.deleteDocument(documentId)
.then(() => dispatch({ type: 'UploadDeleteComplete', localId }))
.catch((e) => dispatch({ type: 'UploadDeleteFailed', localId, reason: problemDetail(e, '') }));
.catch((e) =>
dispatch({ type: 'UploadDeleteFailed', localId, reason: problemDetail(e, '') }),
);
}
/** Cancel any in-flight XHRs (e.g. when a category switches to post-delivery). */