chore: remove agent-oriented comments from the codebase (#25)
CD — Deployment / deploy (push) Successful in 23s

PR automatique de chore/code-cleanup vers main.

---------

Co-authored-by: xEsiah <[email protected]>
Reviewed-on: #25
Reviewed-by: Esiah <[email protected]>
Co-authored-by: Gitea Actions <-[email protected]>
This commit was merged in pull request #25.
This commit is contained in:
Gitea Actions
2026-11-04 15:04:00 +00:00
committed by Esiah
co-authored by Esiah
parent fb7d0bab16
commit d837817bcb
52 changed files with 70 additions and 841 deletions
-8
View File
@@ -11,15 +11,11 @@ import { IconAction } from "./IconAction.js";
import { CloseIcon, TrashIcon, MoveIcon } from "./icons.js";
export interface ConfirmOptions {
/** Titre de la modale. */
title?: string;
/** Corps du message ; accepte du balisage pour mettre un nom en valeur. */
message: ReactNode;
confirmLabel?: string;
cancelLabel?: string;
/** `danger` reserve l'action a une operation destructive. */
tone?: "default" | "danger";
/** Icone du bouton de confirmation (defaut selon le tone). */
confirmIcon?: ReactNode;
}
@@ -32,10 +28,6 @@ interface PendingConfirm {
const ConfirmContext = createContext<ConfirmFn | null>(null);
/**
* Remplace `window.confirm` par une modale maison aux couleurs de l'app.
* `useConfirm()` renvoie une promesse resolue a `true` (confirme) ou `false`.
*/
export const ConfirmProvider = ({ children }: { children: ReactNode }) => {
const { t } = useI18n();
const [pending, setPending] = useState<PendingConfirm | null>(null);