Turn the comments that describe functions into JSDoc so the editor shows them on hover

The 669 // comments sitting right above a function, method or hook become
/** */ blocks, unchanged in wording; eslint directives stay right above the
line they target. website/AGENTS.md now asks for JSDoc on function comments
and // inside function bodies. ExpeditionPlanner.jsx grew past 300 lines and
gets its full header, as the header test requires.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-12-01 11:51:47 +01:00
parent 88c7bf8317
commit 166790245f
152 changed files with 1389 additions and 967 deletions

View file

@ -18,7 +18,7 @@ export async function loadSharesConfig() {
return response.json();
}
// XMLHttpRequest reste nécessaire pour suivre la progression d'un envoi : fetch ne l'expose pas.
/** XMLHttpRequest reste nécessaire pour suivre la progression d'un envoi : fetch ne l'expose pas. */
export function uploadShare(bytes, { singleUse = true, onProgress } = {}) {
return new Promise((resolve, reject) => {
const request = new XMLHttpRequest();
@ -69,7 +69,7 @@ export async function downloadShare(id, { onProgress } = {}) {
return bytes;
}
// Un lien déjà expiré ou utilisé n'existe plus : la révocation est alors considérée comme faite.
/** Un lien déjà expiré ou utilisé n'existe plus : la révocation est alors considérée comme faite. */
export async function revokeShare(id, deleteToken) {
const response = await fetch(`/api/shares/${encodeURIComponent(id)}`, { method: "DELETE", headers: { "X-Share-Delete-Token": deleteToken } });
if (response.ok || response.status === 404) return true;