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:
@@ -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). */
|
||||
|
||||
Reference in New Issue
Block a user