refactor: scope engine support
This commit is contained in:
parent
b747553bf6
commit
260c5c22a7
@ -8,6 +8,8 @@ Follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) · versioned wi
|
||||
## [Unreleased]
|
||||
|
||||
### Changed
|
||||
- **Engine support namespace migration.** ElevenLabs browser state, custom engine cards, and local-container discovery
|
||||
now use a private scope with explicit compatibility exports and a `window.TTVC.engines` API.
|
||||
- **Routing namespace migration.** Route configuration, sound selection, speed previews, routing tests, and routing-log
|
||||
rendering now use a private scope with live compatibility accessors and a `window.TTVC.routing` API.
|
||||
- **Voice-source namespace migration.** Source URL management, filtering, source metadata normalization, and library
|
||||
|
||||
@ -68,6 +68,7 @@ Done incrementally as global-scope ordered files (no ES-module change needed)
|
||||
- ✅ Voice-clone audio, recording, and design controls use a private scope with explicit compatibility exports.
|
||||
- ✅ Voice-source discovery and import helpers use a private scope with explicit source-list/import compatibility exports.
|
||||
- ✅ TTS routing configuration and routing-log UI use a private scope with live route/sound compatibility accessors.
|
||||
- ✅ Engine browser, custom-card, and local-container helpers use a private scope with an explicit namespace API.
|
||||
- ✅ `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/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="color-scheme" content="light dark">
|
||||
<meta name="theme-color" content="#2563EB">
|
||||
<meta name="app-version" content="1.24.78">
|
||||
<meta name="app-version" content="1.24.79">
|
||||
<link rel="manifest" href="/manifest.webmanifest">
|
||||
<link rel="icon" href="/static/icon.svg" type="image/svg+xml">
|
||||
<link rel="apple-touch-icon" href="/static/icon.svg">
|
||||
@ -27,12 +27,12 @@
|
||||
|
||||
<!-- ── Core styles (local — no CDN dependency for first paint) ────────── -->
|
||||
<link rel="stylesheet" href="/static/vendor/mdi/materialdesignicons.min.css">
|
||||
<link rel="stylesheet" href="/static/style.css?v=1.24.78">
|
||||
<link rel="stylesheet" href="/static/css/resource-diagnostics.css?v=1.24.78">
|
||||
<link rel="stylesheet" href="/static/css/background-jobs.css?v=1.24.78">
|
||||
<link rel="stylesheet" href="/static/css/voice-design.css?v=1.24.78">
|
||||
<link rel="stylesheet" href="/static/css/rehearser.css?v=1.24.78">
|
||||
<link rel="stylesheet" href="/static/css/audiobook.css?v=1.24.78">
|
||||
<link rel="stylesheet" href="/static/style.css?v=1.24.79">
|
||||
<link rel="stylesheet" href="/static/css/resource-diagnostics.css?v=1.24.79">
|
||||
<link rel="stylesheet" href="/static/css/background-jobs.css?v=1.24.79">
|
||||
<link rel="stylesheet" href="/static/css/voice-design.css?v=1.24.79">
|
||||
<link rel="stylesheet" href="/static/css/rehearser.css?v=1.24.79">
|
||||
<link rel="stylesheet" href="/static/css/audiobook.css?v=1.24.79">
|
||||
|
||||
|
||||
<!-- ── Flag icons — non-blocking (loaded async, icons appear after JS) ── -->
|
||||
@ -397,7 +397,7 @@ window.toggleNavTree = function(treeId, chevronId) {
|
||||
</script>
|
||||
|
||||
<!-- loader.js: fetches sections → loads JS modules → removes skeleton -->
|
||||
<script src="/static/loader.js?v=1.24.78"></script>
|
||||
<script src="/static/loader.js?v=1.24.79"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
// ── ElevenLabs Voice Library Browser ──────────────────────────────────────
|
||||
|
||||
(function (root) {
|
||||
|
||||
let _elevenLabsBrowserReady = false;
|
||||
function initElevenLabsBrowser() {
|
||||
if (_elevenLabsBrowserReady || !$('el-browser-card')) return;
|
||||
@ -846,3 +848,18 @@ function renderLocalContainers(containers) {
|
||||
}
|
||||
|
||||
document.querySelectorAll('.dc-refresh-btn').forEach(b => b.addEventListener('click', loadLocalContainers));
|
||||
|
||||
Object.assign(root, {
|
||||
_elevenLabsBrowserReady, initElevenLabsBrowser, _localContainersLoadSeq,
|
||||
loadCustomEngineCards, saveCustomEngineCards, DC_USE_MAP, DC_ROLE_USE,
|
||||
editCustomEngineCard, _lastLocalContainers, cardType, _dcSkel,
|
||||
fetchLocalContainersWithRetry, loadLocalContainers, renderLocalContainers,
|
||||
});
|
||||
root.TTVC = root.TTVC || {};
|
||||
root.TTVC.engines = root.TTVC.engines || {};
|
||||
Object.assign(root.TTVC.engines, {
|
||||
browser: { init: initElevenLabsBrowser },
|
||||
cards: { load: loadCustomEngineCards, save: saveCustomEngineCards, edit: editCustomEngineCard },
|
||||
containers: { load: loadLocalContainers, render: renderLocalContainers },
|
||||
});
|
||||
})(window);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user