refactor: scope rehearser voice picker
This commit is contained in:
parent
dea1de5c57
commit
0f3d410260
@ -8,6 +8,8 @@ Follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) · versioned wi
|
|||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
- **Rehearser voice-picker namespace migration.** Local matching, preview state, Fish.audio search/import, and candidate
|
||||||
|
assignment now use a private scope with explicit compatibility exports.
|
||||||
- **Rehearser stage namespace migration.** Stage scaling, cast-sidebar controls, and strip rendering now use a private
|
- **Rehearser stage namespace migration.** Stage scaling, cast-sidebar controls, and strip rendering now use a private
|
||||||
scope with explicit compatibility exports and the existing stage namespace.
|
scope with explicit compatibility exports and the existing stage namespace.
|
||||||
- **Audiobook network namespace migration.** Timeout, streaming, and attribution transport helpers now use a private
|
- **Audiobook network namespace migration.** Timeout, streaming, and attribution transport helpers now use a private
|
||||||
|
|||||||
@ -58,6 +58,7 @@ Done incrementally as global-scope ordered files (no ES-module change needed)
|
|||||||
- ✅ Rehearser library persistence uses a private scope with explicit SQLite/IndexedDB compatibility exports.
|
- ✅ Rehearser library persistence uses a private scope with explicit SQLite/IndexedDB compatibility exports.
|
||||||
- ✅ Audiobook network transport uses a private scope with explicit timeout/stream compatibility exports.
|
- ✅ Audiobook network transport uses a private scope with explicit timeout/stream compatibility exports.
|
||||||
- ✅ Rehearser stage controls use a private scope with explicit scaling and cast-sidebar compatibility exports.
|
- ✅ Rehearser stage controls use a private scope with explicit scaling and cast-sidebar compatibility exports.
|
||||||
|
- ✅ Rehearser voice-picker uses a private scope with explicit preview, search, and assignment compatibility exports.
|
||||||
- ✅ `static/css/resource-diagnostics.css` — isolated Performance/resource diagnostic panel styles.
|
- ✅ `static/css/resource-diagnostics.css` — isolated Performance/resource diagnostic panel styles.
|
||||||
- ✅ `static/css/background-jobs.css` — isolated background-job history and retry-panel styles.
|
- ✅ `static/css/background-jobs.css` — isolated background-job history and retry-panel styles.
|
||||||
- ✅ `static/css/voice-design.css` — isolated Voice Design form, samples, and preview-match styles.
|
- ✅ `static/css/voice-design.css` — isolated Voice Design form, samples, and preview-match styles.
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
<meta name="format-detection" content="telephone=no">
|
<meta name="format-detection" content="telephone=no">
|
||||||
<meta name="color-scheme" content="light dark">
|
<meta name="color-scheme" content="light dark">
|
||||||
<meta name="theme-color" content="#2563EB">
|
<meta name="theme-color" content="#2563EB">
|
||||||
<meta name="app-version" content="1.24.68">
|
<meta name="app-version" content="1.24.69">
|
||||||
<link rel="manifest" href="/manifest.webmanifest">
|
<link rel="manifest" href="/manifest.webmanifest">
|
||||||
<link rel="icon" href="/static/icon.svg" type="image/svg+xml">
|
<link rel="icon" href="/static/icon.svg" type="image/svg+xml">
|
||||||
<link rel="apple-touch-icon" href="/static/icon.svg">
|
<link rel="apple-touch-icon" href="/static/icon.svg">
|
||||||
@ -27,12 +27,12 @@
|
|||||||
|
|
||||||
<!-- ── Core styles (local — no CDN dependency for first paint) ────────── -->
|
<!-- ── Core styles (local — no CDN dependency for first paint) ────────── -->
|
||||||
<link rel="stylesheet" href="/static/vendor/mdi/materialdesignicons.min.css">
|
<link rel="stylesheet" href="/static/vendor/mdi/materialdesignicons.min.css">
|
||||||
<link rel="stylesheet" href="/static/style.css?v=1.24.68">
|
<link rel="stylesheet" href="/static/style.css?v=1.24.69">
|
||||||
<link rel="stylesheet" href="/static/css/resource-diagnostics.css?v=1.24.68">
|
<link rel="stylesheet" href="/static/css/resource-diagnostics.css?v=1.24.69">
|
||||||
<link rel="stylesheet" href="/static/css/background-jobs.css?v=1.24.68">
|
<link rel="stylesheet" href="/static/css/background-jobs.css?v=1.24.69">
|
||||||
<link rel="stylesheet" href="/static/css/voice-design.css?v=1.24.68">
|
<link rel="stylesheet" href="/static/css/voice-design.css?v=1.24.69">
|
||||||
<link rel="stylesheet" href="/static/css/rehearser.css?v=1.24.68">
|
<link rel="stylesheet" href="/static/css/rehearser.css?v=1.24.69">
|
||||||
<link rel="stylesheet" href="/static/css/audiobook.css?v=1.24.68">
|
<link rel="stylesheet" href="/static/css/audiobook.css?v=1.24.69">
|
||||||
|
|
||||||
|
|
||||||
<!-- ── Flag icons — non-blocking (loaded async, icons appear after JS) ── -->
|
<!-- ── Flag icons — non-blocking (loaded async, icons appear after JS) ── -->
|
||||||
@ -397,7 +397,7 @@ window.toggleNavTree = function(treeId, chevronId) {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- loader.js: fetches sections → loads JS modules → removes skeleton -->
|
<!-- loader.js: fetches sections → loads JS modules → removes skeleton -->
|
||||||
<script src="/static/loader.js?v=1.24.68"></script>
|
<script src="/static/loader.js?v=1.24.69"></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -2,6 +2,8 @@
|
|||||||
// Preview, local-library matching, and online search/import actions share this
|
// Preview, local-library matching, and online search/import actions share this
|
||||||
// module; DOM event registration remains in the cast renderer.
|
// module; DOM event registration remains in the cast renderer.
|
||||||
|
|
||||||
|
(function (root) {
|
||||||
|
|
||||||
let _rehAudEl = null, _rehAudBtn = null, _rehAudObjectUrl = null;
|
let _rehAudEl = null, _rehAudBtn = null, _rehAudObjectUrl = null;
|
||||||
function _rehStopAudition() {
|
function _rehStopAudition() {
|
||||||
if (_rehAudEl) { try { _rehAudEl.pause(); } catch (_) {} }
|
if (_rehAudEl) { try { _rehAudEl.pause(); } catch (_) {} }
|
||||||
@ -270,9 +272,16 @@ async function _rehUseCandidate(sp, idx, btn) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
window.TTVC = window.TTVC || {};
|
Object.assign(root, {
|
||||||
window.TTVC.rehearser = window.TTVC.rehearser || {};
|
_rehAudEl, _rehAudBtn, _rehAudObjectUrl, _rehStopAudition, _rehAudition,
|
||||||
window.TTVC.rehearser.voicePicker = {
|
_REH_PREVIEW_TEXT, _rehSearchCache, _rehVoiceRow, castOnlinePanelHtml,
|
||||||
|
_rehPreviewLocal, _rehPickOneLiner, _rehPreviewCastLine, _rehAssignLocal,
|
||||||
|
_rehRenderLocalResults, _rehSearchOnline, _rehUseSearchResult, _rehFishImported,
|
||||||
|
_rehImportFishCandidate, _rehUseCandidate,
|
||||||
|
});
|
||||||
|
root.TTVC = root.TTVC || {};
|
||||||
|
root.TTVC.rehearser = root.TTVC.rehearser || {};
|
||||||
|
root.TTVC.rehearser.voicePicker = {
|
||||||
castOnlinePanelHtml,
|
castOnlinePanelHtml,
|
||||||
preview: _rehAudition,
|
preview: _rehAudition,
|
||||||
stopPreview: _rehStopAudition,
|
stopPreview: _rehStopAudition,
|
||||||
@ -280,3 +289,4 @@ window.TTVC.rehearser.voicePicker = {
|
|||||||
assignLocal: _rehAssignLocal,
|
assignLocal: _rehAssignLocal,
|
||||||
useCandidate: _rehUseCandidate,
|
useCandidate: _rehUseCandidate,
|
||||||
};
|
};
|
||||||
|
})(window);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user