Configurez Radarr puis lancez votre premier scan.
- {movies.map((movie) => (
-
-
-
{movie.title}
-
{movie.year ?? "Année inconnue"} · {readableSize(movie.size)}
-
{movie.path}
-
- {movie.status}
-
+ {selectMode && (
+
+
+
+ Tout sélectionner
+
+
{selectedIds.length} sélectionné(s)
+
+
setConfirmBulk(true)}
+ >
+ Supprimer la sélection
+
+
+ )}
+
+ {TABS.map(({ id, label }) => (
+ setTab(id)}
+ >
+ {label}
+ {groups[id].length}
+
))}
+
+ {visible.length === 0 ? (
+
Aucun film dans cette catégorie.
+ ) : (
+
+ {visible.map((movie) => (
+
+ selectMode ? toggleSelect(movie.id) : openMovie(movie)
+ }
+ onKeyDown={(event) => {
+ if (event.key === "Enter" || event.key === " ") {
+ event.preventDefault();
+ selectMode ? toggleSelect(movie.id) : openMovie(movie);
+ }
+ }}
+ >
+ {selectMode && (
+ toggleSelect(movie.id)}
+ aria-label={`Sélectionner ${movie.title}`}
+ />
+ )}
+
+
{movie.title}
+
{movie.year ?? "Année inconnue"} · {readableSize(movie.size)}
+
{movie.path}
+
+
+ {movie.status === "validating" && !selectMode && (
+ {
+ event.stopPropagation();
+ validate(movie);
+ }}
+ >
+ {validatingId === movie.id ? "Validation…" : "Valider"}
+
+ )}
+ {!selectMode && (
+ {
+ event.stopPropagation();
+ setConfirmSingle(movie);
+ }}
+ >
+ Supprimer
+
+ )}
+
+ {statusLabel(movie.status)}
+
+
+
+ ))}
+
+ )}
+
+ )}
+
+ {page === "configuration" && (
+ <>
+
+
+
CONFIGURATION
+
Connexion Radarr
+
L’URL doit être accessible depuis le conteneur MKVTool.
+
+
+ {keyConfigured && Clé API configurée
}
+
+
+
+
+
CONFIGURATION
+
Connexion qBittorrent
+
+ Utilisée pour supprimer le torrent et ses données lors de la validation
+ finale d’une conversion.
+
- )}
-
+
+ {qbitConfigured && (
+
Connexion configurée — le torrent sera supprimé à la validation
+ )}
+
+ >
+ )}
+
+ {selected && (
+
+
event.stopPropagation()}>
+
+
+
FICHE FILM · ISO
+
{selected.title}
+
+ {selected.year ?? "Année inconnue"} · Radarr #{selected.radarr_movie_id}
+
+
+
+ Fermer
+
+
+
+ {posterUrl ? (
+
setPosterUrl(null)}
+ />
+ ) : (
+
+ {selected.title.charAt(0).toUpperCase()}
+
+ )}
+
+
+
+
État
+ {statusLabel(selected.status)}
+
+
+
Taille de l’ISO
+ {readableSize(selected.size)}
+
+
+
Dernier passage du scan
+ {formatDateTime(selected.last_seen_at)}
+
+
+
Fichier Radarr
+ #{selected.radarr_movie_file_id}
+
+ {selected.completed_at && (
+
+
Fin de traitement
+ {formatDateTime(selected.completed_at)}
+
+ )}
+ {selected.failed_step && (
+
+
Étape en échec
+ {STEP_LABELS[selected.failed_step] ?? selected.failed_step}
+
+ )}
+
+
Emplacement
+ {selected.path}
+
+
+
+ {selected.last_error &&
{selected.last_error}
}
+
+
+ La conversion extrait le film du disque ISO vers un fichier MKV avec MakeMKV,
+ sans réencodage : vidéo, audio et sous-titres sont conservés à l’identique.
+ Le MKV est lié dans le dossier du film pour que Jellyfin le détecte.
+ Rien n’est supprimé automatiquement : après vérification manuelle,
+ la validation supprime l’ISO et son torrent.
+
+
+ {modalMessage && (
+
{modalMessage}
+ )}
+
+
+ {selected.status === "validating" ? (
+ <>
+ validate(selected, true)}
+ >
+ {modalBusy ? "Validation…" : "Valider la conversion"}
+
+ cancel(selected)}>
+ Annuler
+
+ >
+ ) : (
+ convert(selected)}>
+ {modalBusy
+ ? "Envoi…"
+ : resuming
+ ? "Reprendre la conversion en MKV"
+ : "Convertir en MKV"}
+
+ )}
+
+ {selected.status === "validating" ? (
+
+ Vérifiez que le MKV s’affiche correctement dans Jellyfin, puis validez :
+ l’ISO et son torrent seront supprimés et le film passera en « Terminé ».
+
+ ) : (
+ !convertible && (
+
+ {selected.status === "completed"
+ ? "Ce film a déjà été converti."
+ : BLOCKED.includes(selected.status)
+ ? "Une conversion est déjà en cours pour ce film."
+ : "Fichier ISO introuvable — relancez un scan."}
+
+ )
+ )}
+
+
+ )}
+ {confirmSingle && (
+
setConfirmSingle(null)}>
+
event.stopPropagation()}>
+
SUPPRIMER LA LIGNE
+
{confirmSingle.title}
+
+ Cette action retire le film de l’inventaire MKVTool. Les fichiers présents
+ sur le disque ne sont pas modifiés.
+
+
+ deleteRow(confirmSingle)}>
+ {deleting ? "Suppression…" : "Supprimer"}
+
+ setConfirmSingle(null)}>Fermer
+
+
+
+ )}
+
+ {confirmBulk && (
+
setConfirmBulk(false)}>
+
event.stopPropagation()}>
+
SUPPRESSION MULTIPLE
+
{selectedIds.length} ligne(s) sélectionnée(s)
+
+ Ces films seront retirés de l’inventaire MKVTool. Les fichiers présents
+ sur le disque ne sont pas modifiés.
+
+
+
+ {deleting ? "Suppression…" : "Supprimer"}
+
+ setConfirmBulk(false)}>Fermer
+
+
+
+ )}
);
}
diff --git a/web/src/style.css b/web/src/style.css
index aad36ea..521fb7f 100644
--- a/web/src/style.css
+++ b/web/src/style.css
@@ -1,42 +1,387 @@
:root {
- font-family: Inter, ui-sans-serif, system-ui, sans-serif;
- color: #e8ebe9;
- background: #0b0f0e;
+ font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
+ color: #f4f4f5;
+ background: #09090b;
font-synthesis: none;
+ color-scheme: dark;
+
+ --bg: #09090b;
+ --surface: #101012;
+ --surface-raised: #17171a;
+ --border: #26262b;
+ --border-strong: #3f3f46;
+ --text: #f4f4f5;
+ --text-muted: #a1a1aa;
+ --text-faint: #71717a;
+ --danger: #f87171;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input { font: inherit; }
button {
- border: 0; border-radius: 10px; padding: 0.75rem 1rem; color: #07110d;
- background: #62e6a7; font-weight: 750; cursor: pointer;
+ border: 1px solid var(--border-strong);
+ border-radius: 8px;
+ padding: 0.7rem 1.1rem;
+ color: var(--text);
+ background: transparent;
+ font-weight: 600;
+ cursor: pointer;
+ transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
-button:disabled { cursor: not-allowed; opacity: 0.45; }
-main { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; padding: 3rem 0; }
+button:hover:not(:disabled) { border-color: #d4d4d8; }
+button:disabled { cursor: not-allowed; opacity: 0.4; }
+button.primary {
+ color: #09090b;
+ background: #fafafa;
+ border-color: #fafafa;
+ font-weight: 650;
+}
+button.primary:hover:not(:disabled) { background: #ffffff; border-color: #ffffff; }
+:focus-visible { outline: 2px solid #fafafa; outline-offset: 2px; }
+
+main { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; padding: 3.5rem 0 4rem; }
header, .section-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
h1, h2, h3, p { margin-top: 0; }
-h1 { margin-bottom: 0; font-size: clamp(2.5rem, 8vw, 5rem); letter-spacing: -0.07em; }
-.eyebrow { color: #62e6a7; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; }
-.panel { margin: 3rem 0 1rem; padding: 1.5rem; border: 1px solid #26332e; border-radius: 16px; background: #111816; }
-.settings { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
-.settings p, article p { color: #91a199; }
+h1 {
+ margin-bottom: 0;
+ font-size: clamp(2.25rem, 6vw, 3.5rem);
+ font-weight: 700;
+ letter-spacing: -0.05em;
+ line-height: 1.05;
+}
+.eyebrow {
+ color: var(--text-faint);
+ font-size: 0.72rem;
+ font-weight: 700;
+ letter-spacing: 0.22em;
+ margin-bottom: 0.6rem;
+}
+
+.stats {
+ display: grid;
+ grid-template-columns: repeat(3, 1fr);
+ gap: 1px;
+ background: var(--border);
+ border: 1px solid var(--border);
+ border-radius: 12px;
+ overflow: hidden;
+ margin: 2.5rem 0 0;
+}
+.stat { background: var(--surface); padding: 1.25rem 1.4rem; }
+.stat-value {
+ display: block;
+ font-size: 2rem;
+ font-weight: 700;
+ letter-spacing: -0.03em;
+ font-variant-numeric: tabular-nums;
+ line-height: 1.2;
+}
+.stat-label {
+ display: block;
+ margin-top: 0.15rem;
+ color: var(--text-muted);
+ font-size: 0.8rem;
+ letter-spacing: 0.04em;
+}
+
+.panel {
+ margin: 2rem 0 0;
+ padding: 1.75rem;
+ border: 1px solid var(--border);
+ border-radius: 12px;
+ background: var(--surface);
+}
+.settings { display: grid; grid-template-columns: 1fr 2fr; gap: 2.5rem; }
+.panel-head h2 { font-size: 1.15rem; font-weight: 650; margin-bottom: 0.4rem; }
+.settings p, article p { color: var(--text-muted); }
form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 0.75rem; }
-label { display: grid; gap: 0.4rem; color: #b7c1bc; font-size: 0.85rem; }
-label span { color: #62e6a7; }
-input { width: 100%; padding: 0.75rem; color: #eef5f1; border: 1px solid #35463f; border-radius: 9px; background: #090e0c; }
-.message { padding: 0.8rem 1rem; border-left: 3px solid #62e6a7; background: #111816; }
+form.wide { grid-template-columns: 1fr 1fr 1fr auto; }
+label { display: grid; gap: 0.45rem; color: var(--text-muted); font-size: 0.8rem; letter-spacing: 0.03em; }
+input {
+ width: 100%;
+ padding: 0.7rem 0.85rem;
+ color: var(--text);
+ border: 1px solid var(--border-strong);
+ border-radius: 8px;
+ background: var(--bg);
+ transition: border-color 0.15s ease;
+}
+input::placeholder { color: #52525b; }
+input:focus { outline: none; border-color: #fafafa; }
+.hint { grid-column: 1 / -1; margin: 0.6rem 0 0; color: var(--text-faint); font-size: 0.8rem; }
+
+.message {
+ margin: 1.25rem 0 0;
+ padding: 0.85rem 1.1rem;
+ border: 1px solid var(--border);
+ border-left: 3px solid #fafafa;
+ border-radius: 8px;
+ background: var(--surface);
+ font-size: 0.92rem;
+}
+.message.error { border-left-color: var(--danger); color: #fecaca; }
+
.library { margin-top: 3rem; }
-.section-title > span { color: #91a199; }
-.empty { padding: 4rem 1rem; text-align: center; color: #91a199; border: 1px dashed #35463f; border-radius: 16px; }
-.movie-list { display: grid; gap: 0.75rem; }
-article { display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem; border: 1px solid #26332e; border-radius: 13px; background: #111816; }
-article h3 { margin-bottom: 0.3rem; }
-article p { margin-bottom: 0.6rem; }
-code { color: #a9b6b0; overflow-wrap: anywhere; }
-.status { align-self: start; padding: 0.35rem 0.6rem; color: #62e6a7; background: #183328; border-radius: 999px; font-size: 0.75rem; }
+.library h2 { font-size: 1.35rem; font-weight: 650; letter-spacing: -0.02em; }
+.section-title { margin-bottom: 1.1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
+.section-title > span { color: var(--text-faint); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
+.empty {
+ padding: 4rem 1rem;
+ text-align: center;
+ color: var(--text-faint);
+ border: 1px dashed var(--border-strong);
+ border-radius: 12px;
+ font-size: 0.95rem;
+}
+.movie-list { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
+article {
+ display: flex;
+ justify-content: space-between;
+ align-items: flex-start;
+ gap: 1rem;
+ padding: 1.15rem 1.4rem;
+ background: var(--surface);
+ transition: background 0.15s ease;
+}
+article:hover { background: var(--surface-raised); }
+article[role="button"] { cursor: pointer; }
+article h3 { margin-bottom: 0.25rem; font-size: 1rem; font-weight: 650; }
+article p { margin-bottom: 0.5rem; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
+code { color: var(--text-muted); font-size: 0.8rem; overflow-wrap: anywhere; }
+.status {
+ align-self: start;
+ flex-shrink: 0;
+ padding: 0.3rem 0.7rem;
+ color: var(--text);
+ background: var(--surface-raised);
+ border: 1px solid var(--border-strong);
+ border-radius: 999px;
+ font-size: 0.72rem;
+ font-weight: 600;
+ letter-spacing: 0.05em;
+}
+
+.status.error { color: var(--danger); border-color: rgba(248, 113, 113, 0.4); }
+
+.row-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
+button.small { padding: 0.45rem 0.9rem; font-size: 0.85rem; border-radius: 8px; }
+button.validate {
+ color: #4ade80;
+ border-color: rgba(74, 222, 128, 0.45);
+}
+button.validate:hover:not(:disabled) {
+ color: #09090b;
+ background: #4ade80;
+ border-color: #4ade80;
+}
+button.delete-row { color: var(--text-faint); border-color: transparent; }
+button.delete-row:hover:not(:disabled) {
+ color: var(--danger);
+ border-color: rgba(248, 113, 113, 0.45);
+}
+
+.title-actions { display: flex; align-items: center; gap: 0.9rem; }
+.bulk-bar {
+ display: flex;
+ align-items: center;
+ gap: 1.25rem;
+ margin-bottom: 1rem;
+ padding: 0.85rem 1.1rem;
+ border: 1px solid var(--border);
+ border-radius: 10px;
+ background: var(--surface);
+}
+.bulk-bar .spacer { flex: 1; }
+.bulk-count { color: var(--text-muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
+.check-all { display: flex; align-items: center; gap: 0.55rem; color: var(--text-muted); font-size: 0.88rem; cursor: pointer; }
+input[type="checkbox"] {
+ width: 16px;
+ height: 16px;
+ margin: 0;
+ accent-color: #fafafa;
+ cursor: pointer;
+ flex-shrink: 0;
+}
+article.selected {
+ background: var(--surface-raised);
+ box-shadow: inset 2px 0 0 #fafafa;
+}
+.modal.confirm { width: min(480px, 100%); padding: 1.6rem; }
+.modal.confirm h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
+
+.activity {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 1.25rem;
+}
+.activity-col {
+ padding: 1.25rem 1.4rem;
+ border: 1px solid var(--border);
+ border-radius: 12px;
+ background: var(--surface);
+}
+.activity-col h3 {
+ margin: 0 0 0.9rem;
+ font-size: 0.78rem;
+ font-weight: 700;
+ letter-spacing: 0.14em;
+ text-transform: uppercase;
+ color: var(--text-muted);
+}
+.activity-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--border); border-radius: 8px; overflow: hidden; }
+.activity-list li {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ gap: 1rem;
+ padding: 0.8rem 1rem;
+ background: var(--bg);
+}
+.activity-list li > div { display: grid; gap: 0.15rem; min-width: 0; }
+.activity-list strong { font-size: 0.92rem; font-weight: 600; overflow-wrap: anywhere; }
+.activity-list span { color: var(--text-faint); font-size: 0.78rem; }
+.activity-list time { color: var(--text-muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
+
+.pages {
+ display: flex;
+ gap: 0.5rem;
+ flex-wrap: wrap;
+ margin: 2rem 0 1.5rem;
+ padding-bottom: 1.1rem;
+ border-bottom: 1px solid var(--border);
+}
+.page-link {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.5rem;
+ padding: 0.5rem 1rem;
+ border-radius: 999px;
+ color: var(--text-muted);
+ font-size: 0.9rem;
+ font-weight: 600;
+}
+.page-link:hover:not(.active) { color: var(--text); border-color: #d4d4d8; }
+.page-link.active { color: #09090b; background: #fafafa; border-color: #fafafa; }
+.page-link .count { font-variant-numeric: tabular-nums; font-size: 0.78rem; opacity: 0.7; }
+
+.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
+.tab {
+ display: inline-flex;
+ align-items: center;
+ gap: 0.5rem;
+ padding: 0.45rem 0.9rem;
+ border-radius: 999px;
+ color: var(--text-muted);
+ font-size: 0.85rem;
+ font-weight: 600;
+}
+.tab:hover:not(.active) { color: var(--text); }
+.tab.active { color: #09090b; background: #fafafa; border-color: #fafafa; }
+.tab .count { font-variant-numeric: tabular-nums; font-size: 0.78rem; opacity: 0.7; }
+.empty.small { padding: 1.6rem 1rem; font-size: 0.88rem; border-radius: 8px; }
+.panel-head .eyebrow { margin-bottom: 0.3rem; }
+
+.overlay {
+ position: fixed;
+ inset: 0;
+ z-index: 50;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ padding: 1.5rem;
+ background: rgba(9, 9, 11, 0.78);
+ backdrop-filter: blur(4px);
+ animation: fade-in 0.15s ease;
+}
+.modal {
+ width: min(680px, 100%);
+ max-height: calc(100vh - 3rem);
+ overflow-y: auto;
+ padding: 2rem;
+ border: 1px solid var(--border-strong);
+ border-radius: 16px;
+ background: var(--surface);
+ animation: rise 0.18s ease;
+}
+.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
+.modal-head h2 { margin: 0 0 0.25rem; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
+.modal-head .eyebrow { margin-bottom: 0.3rem; }
+.modal-sub { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
+.modal-poster {
+ display: block;
+ width: 138px;
+ aspect-ratio: 2 / 3;
+ object-fit: cover;
+ margin: 1.5rem auto 0;
+ border: 1px solid var(--border-strong);
+ border-radius: 10px;
+ background: var(--bg);
+}
+.modal-poster.placeholder {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ color: var(--text-faint);
+ font-size: 2.4rem;
+ font-weight: 700;
+}
+.modal-close { flex-shrink: 0; }
+.modal-grid {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 1px;
+ background: var(--border);
+ border: 1px solid var(--border);
+ border-radius: 10px;
+ overflow: hidden;
+ margin: 1.5rem 0 0;
+}
+.modal-grid > div { background: var(--bg); padding: 0.9rem 1.1rem; }
+.modal-grid dt {
+ color: var(--text-faint);
+ font-size: 0.72rem;
+ font-weight: 700;
+ letter-spacing: 0.12em;
+ text-transform: uppercase;
+ margin-bottom: 0.3rem;
+}
+.modal-grid dd { margin: 0; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
+.modal-grid .modal-path { grid-column: 1 / -1; }
+.modal-explain {
+ margin: 1.25rem 0 0;
+ padding: 1rem 1.15rem;
+ border-left: 3px solid var(--border-strong);
+ color: var(--text-muted);
+ font-size: 0.9rem;
+ line-height: 1.55;
+}
+.modal .message { margin: 1.25rem 0 0; }
+.modal-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
+.modal-actions .primary { flex-grow: 1; }
+button.danger {
+ color: var(--danger);
+ border-color: rgba(248, 113, 113, 0.45);
+ background: transparent;
+}
+button.danger:hover:not(:disabled) {
+ color: #09090b;
+ background: var(--danger);
+ border-color: var(--danger);
+}
+.hint.center { text-align: center; margin-top: 0.75rem; }
+
+@keyframes fade-in { from { opacity: 0; } }
+@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 800px) {
- .settings, form { grid-template-columns: 1fr; }
+ .settings { grid-template-columns: 1fr; gap: 1.25rem; }
+ form, form.wide { grid-template-columns: 1fr; }
+ .stats { grid-template-columns: repeat(2, 1fr); }
+ .activity { grid-template-columns: 1fr; }
+ .modal-grid { grid-template-columns: 1fr; }
header { align-items: flex-end; }
+ article { flex-direction: column; gap: 0.75rem; }
+ article.selected { box-shadow: inset 2px 0 0 #fafafa; }
+ .bulk-bar { flex-wrap: wrap; gap: 0.75rem; }
}