| 1 | <!DOCTYPE html> |
| 2 | <html lang="en"> |
| 3 | |
| 4 | <head> |
| 5 | <meta charset="UTF-8" /> |
| 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 7 | <title>File Manager</title> |
| 8 | <link rel="stylesheet" href="style.css" /> |
| 9 | </head> |
| 10 | |
| 11 | <body> |
| 12 | |
| 13 | <!-- ===================================================================== |
| 14 | LOGIN / SETUP OVERLAY |
| 15 | ====================================================================== --> |
| 16 | <div id="auth-overlay" class="overlay hidden"> |
| 17 | <div class="auth-card"> |
| 18 | <h1 id="auth-title">Sign In</h1> |
| 19 | <p id="auth-subtitle" class="auth-subtitle hidden"> |
| 20 | No accounts exist yet. Create the first admin account. |
| 21 | </p> |
| 22 | <form id="auth-form" autocomplete="off"> |
| 23 | <label> |
| 24 | Username |
| 25 | <input id="auth-username" name="username" type="text" autocomplete="username" required /> |
| 26 | </label> |
| 27 | <label> |
| 28 | Password |
| 29 | <input id="auth-password" name="password" type="password" autocomplete="current-password" required /> |
| 30 | </label> |
| 31 | <p id="auth-error" class="error hidden"></p> |
| 32 | <button type="submit" id="auth-submit">Sign In</button> |
| 33 | </form> |
| 34 | </div> |
| 35 | </div> |
| 36 | |
| 37 | <!-- ===================================================================== |
| 38 | MAIN APP SHELL |
| 39 | ====================================================================== --> |
| 40 | <div id="app" class="hidden"> |
| 41 | |
| 42 | <!-- TOP BAR --> |
| 43 | <header id="topbar"> |
| 44 | <button id="btn-refresh" class="icon-btn icon-only" title="Refresh page" aria-label="Refresh page"> |
| 45 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" |
| 46 | stroke-linecap="round" stroke-linejoin="round"> |
| 47 | <polyline points="23 4 23 10 17 10" /> |
| 48 | <polyline points="1 20 1 14 7 14" /> |
| 49 | <path d="M3.51 9a9 9 0 0 1 14.13-3.36L23 10M1 14l5.36 4.36A9 9 0 0 0 20.49 15" /> |
| 50 | </svg> |
| 51 | </button> |
| 52 | |
| 53 | <div id="breadcrumb-wrap"> |
| 54 | <nav id="breadcrumb" aria-label="Breadcrumb"></nav> |
| 55 | </div> |
| 56 | <div id="topbar-actions"> |
| 57 | <div id="top-search" class="top-search" role="search"> |
| 58 | <input id="top-search-input" type="text" placeholder="Search files" aria-label="Search files" /> |
| 59 | <button id="btn-search" class="icon-btn icon-only" title="Search files" aria-label="Search files"> |
| 60 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" |
| 61 | stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> |
| 62 | <circle cx="11" cy="11" r="8" /> |
| 63 | <line x1="21" y1="21" x2="16.65" y2="16.65" /> |
| 64 | </svg> |
| 65 | </button> |
| 66 | </div> |
| 67 | |
| 68 | <input id="file-input" type="file" multiple class="hidden" aria-hidden="true" /> |
| 69 | <input id="folder-input" type="file" webkitdirectory directory multiple class="hidden" aria-hidden="true" /> |
| 70 | |
| 71 | <div class="topbar-dropdown" data-dropdown> |
| 72 | <button id="btn-upload-menu" class="icon-btn" title="Upload options" aria-label="Upload options" |
| 73 | aria-expanded="false"> |
| 74 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" |
| 75 | stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> |
| 76 | <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" /> |
| 77 | <polyline points="17 8 12 3 7 8" /> |
| 78 | <line x1="12" y1="3" x2="12" y2="15" /> |
| 79 | </svg> |
| 80 | Upload |
| 81 | </button> |
| 82 | <div class="topbar-dropdown-menu" role="menu" aria-label="Upload actions"> |
| 83 | <button id="btn-upload" class="topbar-menu-item" type="button" role="menuitem">Upload file</button> |
| 84 | <button id="btn-upload-folder" class="topbar-menu-item" type="button" role="menuitem">Upload folder</button> |
| 85 | <button id="btn-new-folder" class="topbar-menu-item" type="button" role="menuitem">New folder</button> |
| 86 | </div> |
| 87 | </div> |
| 88 | |
| 89 | <div class="topbar-dropdown" data-dropdown> |
| 90 | <button id="btn-user-menu" class="icon-btn" title="User menu" aria-label="User menu" aria-expanded="false"> |
| 91 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" |
| 92 | stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> |
| 93 | <circle cx="12" cy="8" r="4" /> |
| 94 | <path d="M6 20v-2a6 6 0 0 1 12 0v2" /> |
| 95 | </svg> |
| 96 | <span id="user-menu-label">User</span> |
| 97 | <span id="admin-update-badge" class="topbar-badge hidden" aria-hidden="true"></span> |
| 98 | </button> |
| 99 | <div class="topbar-dropdown-menu topbar-dropdown-menu--right" role="menu" aria-label="User actions"> |
| 100 | <button id="btn-admin" class="topbar-menu-item hidden" type="button" role="menuitem" title="Admin panel" |
| 101 | aria-label="Admin panel"> |
| 102 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" |
| 103 | stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> |
| 104 | <rect x="3" y="11" width="18" height="11" rx="2" ry="2" /> |
| 105 | <path d="M7 11V7a5 5 0 0 1 10 0v4" /> |
| 106 | </svg> |
| 107 | Admin |
| 108 | </button> |
| 109 | <button id="btn-debug" class="topbar-menu-item hidden" type="button" role="menuitem" title="Debug dashboard" |
| 110 | aria-label="Debug dashboard"> |
| 111 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" |
| 112 | stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> |
| 113 | <rect x="3" y="4" width="18" height="12" rx="2" ry="2" /> |
| 114 | <line x1="8" y1="20" x2="16" y2="20" /> |
| 115 | <line x1="12" y1="16" x2="12" y2="20" /> |
| 116 | </svg> |
| 117 | Debug |
| 118 | </button> |
| 119 | <button id="btn-change-password" class="topbar-menu-item" type="button" role="menuitem" |
| 120 | title="Change Password" aria-label="Change Password"> |
| 121 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" |
| 122 | stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> |
| 123 | <rect x="3" y="11" width="18" height="10" rx="2" ry="2" /> |
| 124 | <path d="M7 11V7a5 5 0 0 1 10 0v4" /> |
| 125 | <circle cx="12" cy="16" r="1" /> |
| 126 | </svg> |
| 127 | Change Password |
| 128 | </button> |
| 129 | <a id="btn-connected-apps" class="topbar-menu-item" href="/apps.html" role="menuitem" |
| 130 | title="Connected apps & API access" aria-label="Connected apps and API access"> |
| 131 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" |
| 132 | stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> |
| 133 | <rect x="5" y="2" width="14" height="20" rx="2" ry="2" /> |
| 134 | <line x1="12" y1="18" x2="12.01" y2="18" /> |
| 135 | </svg> |
| 136 | Connected apps |
| 137 | </a> |
| 138 | <button id="btn-logout" class="topbar-menu-item" type="button" role="menuitem" title="Sign out" |
| 139 | aria-label="Sign out"> |
| 140 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" |
| 141 | stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> |
| 142 | <path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" /> |
| 143 | <polyline points="16 17 21 12 16 7" /> |
| 144 | <line x1="21" y1="12" x2="9" y2="12" /> |
| 145 | </svg> |
| 146 | Sign out |
| 147 | </button> |
| 148 | </div> |
| 149 | </div> |
| 150 | </div> |
| 151 | </header> |
| 152 | |
| 153 | <!-- MAIN CONTENT AREA --> |
| 154 | <main id="main-content"> |
| 155 | <p id="folder-stats" class="muted hidden"></p> |
| 156 | |
| 157 | <!-- Drop zone hint shown when dragging files over the main area --> |
| 158 | <div id="drop-overlay" class="hidden"> |
| 159 | <span>Drop files here to upload</span> |
| 160 | </div> |
| 161 | |
| 162 | <!-- File / folder grid --> |
| 163 | <div id="file-grid"></div> |
| 164 | |
| 165 | <!-- Empty directory notice --> |
| 166 | <p id="empty-notice" class="hidden muted">This folder is empty.</p> |
| 167 | |
| 168 | </main> |
| 169 | |
| 170 | <!-- SIDEBAR --> |
| 171 | <aside id="sidebar" class="hidden"> |
| 172 | <button id="sidebar-close" aria-label="Fold sidebar">⌄</button> |
| 173 | <div id="sidebar-icon"></div> |
| 174 | <h2 id="sidebar-name"></h2> |
| 175 | <dl id="sidebar-meta"></dl> |
| 176 | <div id="sidebar-actions"></div> |
| 177 | <div id="sidebar-duplicates" class="hidden"></div> |
| 178 | </aside> |
| 179 | |
| 180 | </div> |
| 181 | |
| 182 | <!-- ===================================================================== |
| 183 | ADMIN MODAL |
| 184 | ====================================================================== --> |
| 185 | <div id="admin-modal" class="modal-overlay hidden"> |
| 186 | <div class="modal"> |
| 187 | <button class="modal-close" id="admin-modal-close" aria-label="Close admin panel">✕</button> |
| 188 | <h2>Admin Panel</h2> |
| 189 | |
| 190 | <section id="admin-userfolder-section"> |
| 191 | <h3>User Folders</h3> |
| 192 | <label>User folder path |
| 193 | <input id="admin-user-path" type="text" placeholder="/data/userfolders" /> |
| 194 | </label> |
| 195 | <label>Size limit per user |
| 196 | <input id="admin-user-size-limit" type="text" placeholder="e.g. 25 MB or 1 GB" /> |
| 197 | </label> |
| 198 | <p id="admin-user-size-feedback" class="admin-size-feedback hidden"></p> |
| 199 | <button id="admin-save-userpath" class="primary">Save user folder settings</button> |
| 200 | </section> |
| 201 | |
| 202 | <section> |
| 203 | <h3>Configured Paths</h3> |
| 204 | <div id="admin-paths"></div> |
| 205 | <div class="path-add-row"> |
| 206 | <input id="admin-new-path" type="text" placeholder="/mnt/ssd/media" /> |
| 207 | <button id="admin-add-path">Add</button> |
| 208 | </div> |
| 209 | <button id="admin-save-paths" class="primary">Save paths</button> |
| 210 | </section> |
| 211 | |
| 212 | <section> |
| 213 | <h3>Users</h3> |
| 214 | <div id="admin-users-list"></div> |
| 215 | <button id="admin-new-user-btn" class="primary">+ New user</button> |
| 216 | <div id="admin-orphan-userfolders-section" class="hidden"> |
| 217 | <h4>Orphaned User Folders</h4> |
| 218 | <div id="admin-orphan-userfolders-list"></div> |
| 219 | </div> |
| 220 | </section> |
| 221 | |
| 222 | <section> |
| 223 | <h3>Server</h3> |
| 224 | <div class="admin-favicon-row"> |
| 225 | <span>Global favicon</span> |
| 226 | <button id="btn-admin-favicon" class="icon-btn icon-only" title="Set global favicon" |
| 227 | aria-label="Set global favicon"> |
| 228 | <span id="global-favicon-preview" class="global-favicon-preview" aria-hidden="true"> |
| 229 | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" |
| 230 | stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> |
| 231 | <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" /> |
| 232 | <polyline points="14 2 14 8 20 8" /> |
| 233 | </svg> |
| 234 | </span> |
| 235 | </button> |
| 236 | </div> |
| 237 | <div id="admin-scheduled-restart" class="admin-scheduled-restart"> |
| 238 | <label class="checkbox-label admin-scheduled-restart-toggle"> |
| 239 | <input id="admin-scheduled-restart-enabled" type="checkbox" /> |
| 240 | Enable scheduled restart |
| 241 | </label> |
| 242 | <div class="admin-scheduled-restart-grid"> |
| 243 | <label>Cadence |
| 244 | <select id="admin-scheduled-restart-cadence"> |
| 245 | <option value="daily">Daily</option> |
| 246 | <option value="every3days">Every 3 days</option> |
| 247 | <option value="weekly">Weekly</option> |
| 248 | <option value="biweekly">Bi-weekly</option> |
| 249 | <option value="monthly">Monthly</option> |
| 250 | </select> |
| 251 | </label> |
| 252 | <label>Time |
| 253 | <input id="admin-scheduled-restart-time" type="time" step="60" /> |
| 254 | </label> |
| 255 | </div> |
| 256 | <p id="admin-scheduled-restart-help" class="muted">When the scheduled time is reached, restart waits until |
| 257 | there have been no logged-in clients for at least one hour.</p> |
| 258 | <button id="admin-save-scheduled-restart" class="primary">Save scheduled restart</button> |
| 259 | </div> |
| 260 | <button id="admin-shutdown-btn" class="danger">Shut down server</button> |
| 261 | </section> |
| 262 | </div> |
| 263 | </div> |
| 264 | |
| 265 | <!-- DEBUG MODAL --> |
| 266 | <div id="debug-modal" class="modal-overlay hidden"> |
| 267 | <div class="modal debug-modal"> |
| 268 | <button class="modal-close" id="debug-modal-close" aria-label="Close debug dashboard">✕</button> |
| 269 | <h2>Debug Dashboard</h2> |
| 270 | <p class="muted">Live diagnostics for active streams, cache usage and signed-in users.</p> |
| 271 | |
| 272 | <div class="debug-toolbar"> |
| 273 | <span id="debug-generated-at" class="muted">Last update: —</span> |
| 274 | <button id="debug-refresh" class="primary" type="button">Refresh</button> |
| 275 | </div> |
| 276 | |
| 277 | <section> |
| 278 | <div class="debug-section-head"> |
| 279 | <h3>Signed-in Users</h3> |
| 280 | <button id="debug-copy-users" class="debug-copy-btn" type="button">Copy JSON</button> |
| 281 | </div> |
| 282 | <div id="debug-users" class="debug-chips"></div> |
| 283 | </section> |
| 284 | |
| 285 | <section> |
| 286 | <div class="debug-section-head"> |
| 287 | <h3>Storage Usage</h3> |
| 288 | <button id="debug-copy-storage" class="debug-copy-btn" type="button">Copy JSON</button> |
| 289 | </div> |
| 290 | <div id="debug-storage-summary" class="debug-summary-grid"></div> |
| 291 | <div id="debug-roots" class="debug-table-wrap"></div> |
| 292 | </section> |
| 293 | |
| 294 | <section> |
| 295 | <div class="debug-section-head"> |
| 296 | <h3>Server Maintenance</h3> |
| 297 | <button id="debug-copy-maintenance" class="debug-copy-btn" type="button">Copy JSON</button> |
| 298 | </div> |
| 299 | <div id="debug-maintenance-summary" class="debug-summary-grid"></div> |
| 300 | </section> |
| 301 | |
| 302 | <section> |
| 303 | <div class="debug-section-head"> |
| 304 | <h3>Video Streams and Caches</h3> |
| 305 | <button id="debug-copy-video-files" class="debug-copy-btn" type="button">Copy CSV</button> |
| 306 | </div> |
| 307 | <p class="muted">Includes files with cached subtitle data even if no viewers are currently watching.</p> |
| 308 | <div id="debug-video-files" class="debug-table-wrap"></div> |
| 309 | </section> |
| 310 | |
| 311 | <section> |
| 312 | <div class="debug-section-head"> |
| 313 | <h3>Orphaned Stream Output Directories</h3> |
| 314 | <button id="debug-copy-orphaned" class="debug-copy-btn" type="button">Copy CSV</button> |
| 315 | </div> |
| 316 | <div id="debug-orphaned-streams" class="debug-table-wrap"></div> |
| 317 | </section> |
| 318 | |
| 319 | <section id="debug-subtitle-log-section" class="hidden"> |
| 320 | <div class="debug-section-head"> |
| 321 | <h3>Subtitle Debug Cache</h3> |
| 322 | <button id="debug-open-subtitle-log-folder" class="debug-copy-btn" type="button">Open folder</button> |
| 323 | </div> |
| 324 | <p id="debug-subtitle-log-meta" class="muted"></p> |
| 325 | <p class="muted"><span id="debug-subtitle-log-path" class="debug-path"></span></p> |
| 326 | </section> |
| 327 | </div> |
| 328 | </div> |
| 329 | |
| 330 | <!-- NEW / EDIT USER MODAL --> |
| 331 | <div id="user-modal" class="modal-overlay hidden"> |
| 332 | <div class="modal"> |
| 333 | <button class="modal-close" id="user-modal-close" aria-label="Close">✕</button> |
| 334 | <h2 id="user-modal-title">New User</h2> |
| 335 | <form id="user-form"> |
| 336 | <label>Username<input id="user-username" type="text" autocomplete="username" required /></label> |
| 337 | <label id="user-password-label"> |
| 338 | Password<input id="user-password" type="password" placeholder="Min 8 characters" |
| 339 | autocomplete="new-password" /> |
| 340 | </label> |
| 341 | <label class="checkbox-label"> |
| 342 | <input id="user-is-admin" type="checkbox" /> |
| 343 | Admin privileges |
| 344 | </label> |
| 345 | <div id="user-permissions"></div> |
| 346 | <p id="user-error" class="error hidden"></p> |
| 347 | <button type="submit" class="primary">Save</button> |
| 348 | </form> |
| 349 | </div> |
| 350 | </div> |
| 351 | |
| 352 | <!-- RENAME MODAL --> |
| 353 | <div id="rename-modal" class="modal-overlay hidden"> |
| 354 | <div class="modal small"> |
| 355 | <button class="modal-close" id="rename-modal-close" aria-label="Close">✕</button> |
| 356 | <h2>Rename</h2> |
| 357 | <form id="rename-form"> |
| 358 | <label>New name<input id="rename-input" type="text" required /></label> |
| 359 | <p id="rename-error" class="error hidden"></p> |
| 360 | <button type="submit" class="primary">Rename</button> |
| 361 | </form> |
| 362 | </div> |
| 363 | </div> |
| 364 | |
| 365 | <!-- CHANGE PASSWORD MODAL --> |
| 366 | <div id="change-password-modal" class="modal-overlay hidden"> |
| 367 | <div class="modal small"> |
| 368 | <button class="modal-close" id="change-password-modal-close" aria-label="Close">✕</button> |
| 369 | <h2>Change Password</h2> |
| 370 | <form id="change-password-form" autocomplete="off"> |
| 371 | <label>Current password |
| 372 | <input id="change-password-current" type="password" autocomplete="current-password" required /> |
| 373 | </label> |
| 374 | <label>New password |
| 375 | <input id="change-password-next" type="password" autocomplete="new-password" required /> |
| 376 | </label> |
| 377 | <label>Confirm new password |
| 378 | <input id="change-password-confirm" type="password" autocomplete="new-password" required /> |
| 379 | </label> |
| 380 | <p id="change-password-error" class="error hidden"></p> |
| 381 | <button type="submit" class="primary">Change password</button> |
| 382 | </form> |
| 383 | </div> |
| 384 | </div> |
| 385 | |
| 386 | <!-- CONFIRM MODAL --> |
| 387 | <div id="confirm-modal" class="modal-overlay hidden" role="dialog" aria-modal="true" |
| 388 | aria-labelledby="confirm-modal-title"> |
| 389 | <div class="modal small"> |
| 390 | <h2 id="confirm-modal-title"></h2> |
| 391 | <p id="confirm-modal-message" class="dialog-message"></p> |
| 392 | <div class="dialog-actions"> |
| 393 | <button id="confirm-modal-cancel">Cancel</button> |
| 394 | <button id="confirm-modal-ok" class="primary">OK</button> |
| 395 | </div> |
| 396 | </div> |
| 397 | </div> |
| 398 | |
| 399 | <!-- PROMPT MODAL --> |
| 400 | <div id="prompt-modal" class="modal-overlay hidden" role="dialog" aria-modal="true" |
| 401 | aria-labelledby="prompt-modal-title"> |
| 402 | <div class="modal small"> |
| 403 | <h2 id="prompt-modal-title"></h2> |
| 404 | <p id="prompt-modal-message" class="dialog-message"></p> |
| 405 | <form id="prompt-modal-form"> |
| 406 | <label id="prompt-modal-label"><input id="prompt-modal-input" type="text" /></label> |
| 407 | <p id="prompt-modal-error" class="error hidden"></p> |
| 408 | <div class="dialog-actions"> |
| 409 | <button type="button" id="prompt-modal-cancel">Cancel</button> |
| 410 | <button type="submit" class="primary">OK</button> |
| 411 | </div> |
| 412 | </form> |
| 413 | </div> |
| 414 | </div> |
| 415 | |
| 416 | <!-- OVERWRITE MODAL --> |
| 417 | <div id="overwrite-modal" class="modal-overlay hidden" role="dialog" aria-modal="true" |
| 418 | aria-labelledby="overwrite-modal-title"> |
| 419 | <div class="modal small"> |
| 420 | <h2 id="overwrite-modal-title">File already exists</h2> |
| 421 | <p class="dialog-message"> |
| 422 | <strong id="overwrite-modal-filename"></strong> already exists in the destination folder. |
| 423 | What would you like to do? |
| 424 | </p> |
| 425 | <div class="dialog-actions dialog-actions--overwrite"> |
| 426 | <button id="overwrite-modal-skip-all">Skip all</button> |
| 427 | <button id="overwrite-modal-no">Skip</button> |
| 428 | <button id="overwrite-modal-all" class="primary">Overwrite all</button> |
| 429 | <button id="overwrite-modal-yes" class="primary">Overwrite</button> |
| 430 | </div> |
| 431 | </div> |
| 432 | </div> |
| 433 | |
| 434 | <!-- FILE CONFLICT MODAL (single upload/move) --> |
| 435 | <div id="file-conflict-modal" class="modal-overlay hidden" role="dialog" aria-modal="true" |
| 436 | aria-labelledby="file-conflict-title"> |
| 437 | <div class="modal small"> |
| 438 | <h2 id="file-conflict-title">File conflict</h2> |
| 439 | <p class="dialog-message"> |
| 440 | <strong id="file-conflict-filename"></strong> already exists in the destination folder. |
| 441 | </p> |
| 442 | <p class="dialog-message"> |
| 443 | Rename to <strong id="file-conflict-rename"></strong>? |
| 444 | </p> |
| 445 | <div class="dialog-actions"> |
| 446 | <button id="file-conflict-cancel">Cancel</button> |
| 447 | <button id="file-conflict-overwrite" class="primary">Overwrite</button> |
| 448 | <button id="file-conflict-rename-btn" class="primary">Rename</button> |
| 449 | </div> |
| 450 | </div> |
| 451 | </div> |
| 452 | |
| 453 | <!-- FILE PREVIEW OVERLAY --> |
| 454 | <!-- TOAST --> |
| 455 | <div id="toast" aria-live="assertive" aria-atomic="true"></div> |
| 456 | |
| 457 | <!-- SHARE MODAL --> |
| 458 | <div id="share-modal" class="modal-overlay hidden" role="dialog" aria-modal="true" |
| 459 | aria-labelledby="share-modal-title"> |
| 460 | <div class="modal small"> |
| 461 | <button class="modal-close" id="share-modal-close" aria-label="Close">✕</button> |
| 462 | <h2 id="share-modal-title">Share</h2> |
| 463 | <p class="dialog-message" id="share-modal-msg">This link is valid for 24 hours.</p> |
| 464 | <div id="share-url-row" style="display:flex;gap:0.5rem;margin:0.8rem 0"> |
| 465 | <input id="share-url-input" type="text" readonly |
| 466 | style="flex:1;font-size:0.82rem;background:var(--surface2);border:1px solid var(--border);border-radius:6px;padding:0.45rem 0.65rem;color:var(--text);min-width:0" /> |
| 467 | <button id="share-copy-btn" title="Copy link">Copy</button> |
| 468 | </div> |
| 469 | <div class="dialog-actions"> |
| 470 | <button class="primary" id="share-modal-ok">OK</button> |
| 471 | </div> |
| 472 | </div> |
| 473 | </div> |
| 474 | |
| 475 | <link rel="stylesheet" href="drag-move.css" /> |
| 476 | <script type="importmap"> |
| 477 | { |
| 478 | "imports": { |
| 479 | "three": "/vendor/three/three.module.js", |
| 480 | "three/addons/": "/vendor/three/addons/" |
| 481 | } |
| 482 | } |
| 483 | </script> |
| 484 | <script src="drag-move.js"></script> |
| 485 | <script src="shared-video-player.js"></script> |
| 486 | <script src="app.js"></script> |
| 487 | </body> |
| 488 | |
| 489 | </html> |