| 1 | <!DOCTYPE html> |
| 2 | <html lang="es"> |
| 3 | <head> |
| 4 | <meta charset="UTF-8"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | <title>VibeCodeViewer — Metrópolis de Cristal</title> |
| 7 | <link rel="stylesheet" href="src/styles.css"> |
| 8 | <script type="importmap"> |
| 9 | { |
| 10 | "imports": { |
| 11 | "three": "./vendor/three.module.js", |
| 12 | "three/addons/": "./vendor/addons/" |
| 13 | } |
| 14 | } |
| 15 | </script> |
| 16 | </head> |
| 17 | <body> |
| 18 | <canvas id="view"></canvas> |
| 19 | |
| 20 | <div id="stats"></div> |
| 21 | |
| 22 | <div id="mode-switch"> |
| 23 | <button data-mode="basic" class="active" data-i18n="mode.basic">Básico</button> |
| 24 | <button data-mode="git" data-i18n="mode.git">Git</button> |
| 25 | <button data-mode="ownership" data-i18n="mode.ownership">Owners</button> |
| 26 | <button data-mode="blast" data-i18n="mode.blast">Blast</button> |
| 27 | </div> |
| 28 | |
| 29 | |
| 30 | <div id="view-buttons"> |
| 31 | <select id="lang-select" title="Idioma" data-i18n-title="label.language"> |
| 32 | <option value="es">Español</option> |
| 33 | <option value="en">English</option> |
| 34 | </select> |
| 35 | <button id="btn-aerial" data-i18n="button.aerial">Vista Aérea</button> |
| 36 | <button id="btn-skyline" data-i18n="button.skyline">Vista Altura Edificios</button> |
| 37 | <button id="btn-reset" data-i18n="button.resetView">Reset Vista</button> |
| 38 | <button id="btn-settings" onclick="window.VCCOpenSettings?.()" data-i18n="button.settings">Settings</button> |
| 39 | <button id="btn-legend" data-i18n="button.legend">Leyenda</button> |
| 40 | <button id="btn-ground" data-i18n="button.ground">Suelo Opaco</button> |
| 41 | <select id="theme-select" title="Tema de color" data-i18n-title="label.themeTitle"></select> |
| 42 | <button id="btn-reopen" style="display:none"></button> |
| 43 | <button id="btn-folder" data-i18n="button.openFolder">Abrir Carpeta…</button> |
| 44 | </div> |
| 45 | |
| 46 | <div id="search-panel"> |
| 47 | <div class="title" data-i18n="search.title">Búsqueda</div> |
| 48 | <input id="search-input" type="text" placeholder="Buscar fichero… (p. ej. *.js, src/*.css)" data-i18n-placeholder="search.placeholder" autocomplete="off" spellcheck="false"> |
| 49 | <div id="search-results"></div> |
| 50 | </div> |
| 51 | |
| 52 | <div id="tree-panel"> |
| 53 | <div class="title" data-i18n="tree.title">Árbol de ficheros</div> |
| 54 | <div id="tree"></div> |
| 55 | </div> |
| 56 | |
| 57 | <div id="pathbar"></div> |
| 58 | |
| 59 | <div id="right-stack"> |
| 60 | <div id="color-legend"></div> |
| 61 | <div id="help"> |
| 62 | <div class="title" data-i18n="help.title">Navegación</div> |
| 63 | <table> |
| 64 | <tr><td data-i18n="help.drag.key">Arrastrar</td><td data-i18n="help.drag.value">orbitar · rueda zoom</td></tr> |
| 65 | <tr><td data-i18n="help.click.key">Clic</td><td data-i18n="help.click.value">seleccionar fichero / edificio</td></tr> |
| 66 | <tr><td><b data-i18n="help.fly.key">F</b></td><td data-i18n="help.fly.value">modo vuelo (atraviesa paredes)</td></tr> |
| 67 | <tr><td data-i18n="help.move.key">W A S D</td><td data-i18n="help.move.value">mover · ratón mirar</td></tr> |
| 68 | <tr><td data-i18n="help.vertical.key">Space / C</td><td data-i18n="help.vertical.value">subir / bajar · Shift turbo</td></tr> |
| 69 | <tr><td data-i18n="help.views.key">1 · 2 · 3</td><td data-i18n="help.views.value">reset · aérea · altura</td></tr> |
| 70 | <tr><td><b data-i18n="help.clear.key">X</b></td><td data-i18n="help.clear.value">limpiar selección · / buscar</td></tr> |
| 71 | <tr><td><b data-i18n="help.toggles.key">L · G</b></td><td data-i18n="help.toggles.value">leyenda · suelo opaco</td></tr> |
| 72 | <tr><td data-i18n="help.tree.key">↑↓ ←→</td><td data-i18n="help.tree.value">navegar árbol · plegar/desplegar</td></tr> |
| 73 | </table> |
| 74 | </div> |
| 75 | </div> |
| 76 | |
| 77 | <div id="crosshair">+</div> |
| 78 | |
| 79 | <div id="settings-modal" aria-hidden="true"> |
| 80 | <div id="settings-panel" role="dialog" aria-modal="true" aria-labelledby="settings-title"> |
| 81 | <div class="settings-head"> |
| 82 | <div id="settings-title" class="title" data-i18n="settings.title">Settings</div> |
| 83 | <button id="settings-close" title="Cerrar" data-i18n-title="settings.close" onclick="window.VCCCloseSettings?.()">×</button> |
| 84 | </div> |
| 85 | <div id="settings-presets"></div> |
| 86 | <div id="settings-controls"></div> |
| 87 | <div class="settings-foot"> |
| 88 | <label class="check-row"><input id="setting-bloom" type="checkbox"> <span data-i18n="settings.bloom">Bloom HDR</span></label> |
| 89 | <button id="settings-reset" data-i18n="button.resetSettings">Reset Settings</button> |
| 90 | </div> |
| 91 | </div> |
| 92 | </div> |
| 93 | |
| 94 | <script type="module" src="src/main.js"></script> |
| 95 | <script> |
| 96 | window.VCCOpenSettings = () => { |
| 97 | const modal = document.getElementById('settings-modal'); |
| 98 | if (!modal) return; |
| 99 | modal.classList.add('show'); |
| 100 | modal.setAttribute('aria-hidden', 'false'); |
| 101 | }; |
| 102 | window.VCCCloseSettings = () => { |
| 103 | const modal = document.getElementById('settings-modal'); |
| 104 | if (!modal) return; |
| 105 | modal.classList.remove('show'); |
| 106 | modal.setAttribute('aria-hidden', 'true'); |
| 107 | }; |
| 108 | </script> |
| 109 | </body> |
| 110 | </html> |