feat: Update Dockerfile to include mutagen dependency and enhance dashboard event handling

This commit is contained in:
JB
2025-10-11 05:41:44 -07:00
parent aed0df1b09
commit e15d2b12a3
3 changed files with 20 additions and 3 deletions
+2 -1
View File
@@ -35,7 +35,8 @@ RUN pip install --upgrade pip \
pip install torch torchvision torchaudio --index-url "$TORCH_INDEX_URL"; \ pip install torch torchvision torchaudio --index-url "$TORCH_INDEX_URL"; \
fi \ fi \
&& pip install --no-cache-dir . \ && pip install --no-cache-dir . \
https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl \
&& pip install --no-cache-dir "mutagen>=1.47.0"
ENV ABOGEN_HOST=0.0.0.0 \ ENV ABOGEN_HOST=0.0.0.0 \
ABOGEN_PORT=8808 ABOGEN_PORT=8808
+3 -2
View File
@@ -205,8 +205,9 @@ const initDashboard = () => {
}); });
document.addEventListener("click", (event) => { document.addEventListener("click", (event) => {
const target = event.target; const rawTarget = event.target;
if (!(target instanceof Element)) { const target = rawTarget instanceof Element ? rawTarget : rawTarget?.parentElement || null;
if (!target) {
return; return;
} }
+15
View File
@@ -1191,6 +1191,21 @@ body {
cursor: pointer; cursor: pointer;
transition: background 0.2s ease, color 0.2s ease; transition: background 0.2s ease, color 0.2s ease;
} }
.prepare-wizard[data-speaker-step="disabled"] [data-step-key="speakers"] {
display: none;
}
.prepare-wizard[data-speaker-step="disabled"] [data-speaker-panel="true"] {
display: none !important;
}
.prepare-wizard[data-speaker-step="enabled"] [data-chapter-action="finalize"] {
display: none;
}
.prepare-wizard[data-speaker-step="disabled"] [data-chapter-action="continue"] {
display: none;
}
.prepare-wizard[data-speaker-step="disabled"] [data-chapter-action="finalize"] {
display: inline-flex;
}
.field--file input[type="file"]:hover::file-selector-button, .field--file input[type="file"]:hover::file-selector-button,
.field--file input[type="file"]:focus::file-selector-button, .field--file input[type="file"]:focus::file-selector-button,