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