Refactored everything into modules.
This commit is contained in:
+2
-24
@@ -66,8 +66,7 @@
|
||||
window.rstack = [];
|
||||
</script>
|
||||
|
||||
<!-- TTS implementation scripts - order matters! -->
|
||||
<!-- 1. Kokoro TTS library - load as module -->
|
||||
<!-- Kokoro TTS library - load as module -->
|
||||
<script type="module">
|
||||
try {
|
||||
// Import KokoroTTS class from the module
|
||||
@@ -88,28 +87,7 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- 2. TTS handlers (kokoro-handler needs to wait for KokoroTTS) -->
|
||||
<script src="js/kokoro-handler.js"></script>
|
||||
<script src="js/tts-handler.js"></script>
|
||||
|
||||
<!-- 3. TTS Factory for automatic selection -->
|
||||
<script src="js/tts-factory.js"></script>
|
||||
|
||||
<!-- New Modules for Socket-based Interaction -->
|
||||
<script src="js/input-handler.js"></script>
|
||||
<script src="js/socket-client.js"></script>
|
||||
|
||||
<!-- Modular layout and animation components -->
|
||||
<script type="module" src="js/animation-queue.js"></script>
|
||||
<script type="module" src="js/text-processor.js"></script>
|
||||
<script type="module" src="js/paragraph-layout.js"></script>
|
||||
<script type="module" src="js/layout-renderer.js"></script>
|
||||
<script type="module" src="js/persistence-manager.js"></script>
|
||||
<script type="module" src="js/ui-controller.js"></script>
|
||||
<script type="module" src="js/audio-manager.js"></script>
|
||||
<script type="module" src="js/tts-player.js"></script>
|
||||
|
||||
<!-- Main application script - using ES modules -->
|
||||
<!-- Main application script - imports all needed modules -->
|
||||
<script type="module" src="js/ai-fiction.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user