Spaces:
Running
Running
Upload 12 files
Browse files- index.html +1404 -1240
- package-lock.json +943 -0
- style.css +1440 -1278
index.html
CHANGED
|
@@ -1,1241 +1,1405 @@
|
|
| 1 |
-
<!DOCTYPE html>
|
| 2 |
-
<html lang="zh-CN">
|
| 3 |
-
<head>
|
| 4 |
-
<meta charset="UTF-8">
|
| 5 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
| 6 |
-
<title>Banana Pro AI</title>
|
| 7 |
-
<link rel="stylesheet" href="style.css">
|
| 8 |
-
<style>
|
| 9 |
-
/* 顶部固定布局样式 */
|
| 10 |
-
.input-section {
|
| 11 |
-
position: fixed !important;
|
| 12 |
-
top: 0 !important;
|
| 13 |
-
bottom: auto !important;
|
| 14 |
-
left: 0 !important;
|
| 15 |
-
right: 0 !important;
|
| 16 |
-
transform: none !important;
|
| 17 |
-
width: 100% !important;
|
| 18 |
-
max-width: 100% !important;
|
| 19 |
-
border-radius: 0 !important;
|
| 20 |
-
z-index: 1000 !important;
|
| 21 |
-
box-shadow: 0 2px 20px rgba(0,0,0,0.3) !important;
|
| 22 |
-
}
|
| 23 |
-
|
| 24 |
-
header {
|
| 25 |
-
margin-top: 80px; /* 为输入区留空间 */
|
| 26 |
-
}
|
| 27 |
-
|
| 28 |
-
.history-container {
|
| 29 |
-
padding-bottom: 20px !important;
|
| 30 |
-
}
|
| 31 |
-
|
| 32 |
-
/* 调整输入区内部布局 */
|
| 33 |
-
.control-bar {
|
| 34 |
-
max-width: 1200px;
|
| 35 |
-
margin: 0 auto;
|
| 36 |
-
padding: 12px 20px !important;
|
| 37 |
-
}
|
| 38 |
-
|
| 39 |
-
.preview-bar {
|
| 40 |
-
max-width: 1200px;
|
| 41 |
-
margin: 0 auto;
|
| 42 |
-
padding: 0 20px;
|
| 43 |
-
}
|
| 44 |
-
|
| 45 |
-
.preview-bar.visible {
|
| 46 |
-
padding: 12px 20px;
|
| 47 |
-
}
|
| 48 |
-
|
| 49 |
-
/* 动态调整header间距 */
|
| 50 |
-
.has-preview header {
|
| 51 |
-
margin-top: 180px;
|
| 52 |
-
}
|
| 53 |
-
|
| 54 |
-
@media (max-width: 768px) {
|
| 55 |
-
header {
|
| 56 |
-
margin-top: 70px;
|
| 57 |
-
}
|
| 58 |
-
.has-preview header {
|
| 59 |
-
margin-top: 150px;
|
| 60 |
-
}
|
| 61 |
-
}
|
| 62 |
-
</style>
|
| 63 |
-
</head>
|
| 64 |
-
<body>
|
| 65 |
-
<!-- 在预览栏显示时添加 has-preview 类 -->
|
| 66 |
-
<script>
|
| 67 |
-
// 监听预览栏变化
|
| 68 |
-
const observePreviewBar = () => {
|
| 69 |
-
const previewBar = document.getElementById('preview-bar');
|
| 70 |
-
const observer = new MutationObserver(() => {
|
| 71 |
-
if (previewBar.classList.contains('visible')) {
|
| 72 |
-
document.body.classList.add('has-preview');
|
| 73 |
-
} else {
|
| 74 |
-
document.body.classList.remove('has-preview');
|
| 75 |
-
}
|
| 76 |
-
});
|
| 77 |
-
observer.observe(previewBar, { attributes: true, attributeFilter: ['class'] });
|
| 78 |
-
};
|
| 79 |
-
document.addEventListener('DOMContentLoaded', observePreviewBar);
|
| 80 |
-
</script>
|
| 81 |
-
|
| 82 |
-
<!-- 登录界面 -->
|
| 83 |
-
<div id="login-overlay">
|
| 84 |
-
<div class="login-card glass-panel">
|
| 85 |
-
<h1 style="font-size: 2rem;">🍌</h1>
|
| 86 |
-
<h3 style="margin: 10px 0; color: #cbd5e1;">Banana Pro</h3>
|
| 87 |
-
<input type="password" id="pwd" placeholder="Password" onkeypress="if(event.key==='Enter')doLogin()">
|
| 88 |
-
<button class="btn-3d" onclick="doLogin()" style="width: 100%; padding: 10px;">Unlock</button>
|
| 89 |
-
</div>
|
| 90 |
-
</div>
|
| 91 |
-
|
| 92 |
-
<!-- 主应用 -->
|
| 93 |
-
<div class="app-container" id="app" style="filter: blur(10px); pointer-events: none;">
|
| 94 |
-
<!-- 顶部固定输入区 -->
|
| 95 |
-
<div class="input-section glass-panel" id="drop-zone">
|
| 96 |
-
<!-- 上部分:预览条 -->
|
| 97 |
-
<div class="preview-bar" id="preview-bar"></div>
|
| 98 |
-
|
| 99 |
-
<!-- 下部分:操作栏 -->
|
| 100 |
-
<div class="control-bar">
|
| 101 |
-
<button class="upload-trigger" id="upload-btn" title="上传参考图">📷</button>
|
| 102 |
-
<textarea id="prompt" class="main-input" rows="1" placeholder="描述画面... (支持拖拽图片)"></textarea>
|
| 103 |
-
<button class="
|
| 104 |
-
|
| 105 |
-
<
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
<div
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
const
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
const
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
const request = store.
|
| 230 |
-
|
| 231 |
-
request.
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
request.onerror = () => reject(request.error);
|
| 247 |
-
});
|
| 248 |
-
},
|
| 249 |
-
|
| 250 |
-
async
|
| 251 |
-
return new Promise((resolve, reject) => {
|
| 252 |
-
const tx = AppState.db.transaction([STORE_NAME], '
|
| 253 |
-
const store = tx.objectStore(STORE_NAME);
|
| 254 |
-
const request = store.
|
| 255 |
-
request.onsuccess = () => resolve(
|
| 256 |
-
request.onerror = () => reject(request.error);
|
| 257 |
-
});
|
| 258 |
-
}
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
//
|
| 276 |
-
|
| 277 |
-
return new Promise((resolve) => {
|
| 278 |
-
const
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
|
| 325 |
-
|
| 326 |
-
|
| 327 |
-
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
|
| 335 |
-
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
|
| 340 |
-
|
| 341 |
-
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
| 346 |
-
|
| 347 |
-
|
| 348 |
-
|
| 349 |
-
|
| 350 |
-
|
| 351 |
-
|
| 352 |
-
|
| 353 |
-
|
| 354 |
-
|
| 355 |
-
|
| 356 |
-
|
| 357 |
-
|
| 358 |
-
|
| 359 |
-
|
| 360 |
-
|
| 361 |
-
|
| 362 |
-
|
| 363 |
-
|
| 364 |
-
|
| 365 |
-
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
|
| 369 |
-
|
| 370 |
-
|
| 371 |
-
|
| 372 |
-
|
| 373 |
-
|
| 374 |
-
|
| 375 |
-
|
| 376 |
-
|
| 377 |
-
|
| 378 |
-
|
| 379 |
-
|
| 380 |
-
const
|
| 381 |
-
|
| 382 |
-
|
| 383 |
-
|
| 384 |
-
|
| 385 |
-
|
| 386 |
-
|
| 387 |
-
|
| 388 |
-
|
| 389 |
-
|
| 390 |
-
|
| 391 |
-
|
| 392 |
-
|
| 393 |
-
|
| 394 |
-
|
| 395 |
-
|
| 396 |
-
|
| 397 |
-
|
| 398 |
-
|
| 399 |
-
|
| 400 |
-
|
| 401 |
-
|
| 402 |
-
|
| 403 |
-
|
| 404 |
-
|
| 405 |
-
|
| 406 |
-
|
| 407 |
-
|
| 408 |
-
|
| 409 |
-
|
| 410 |
-
|
| 411 |
-
|
| 412 |
-
|
| 413 |
-
|
| 414 |
-
|
| 415 |
-
|
| 416 |
-
|
| 417 |
-
|
| 418 |
-
|
| 419 |
-
|
| 420 |
-
|
| 421 |
-
|
| 422 |
-
|
| 423 |
-
|
| 424 |
-
|
| 425 |
-
|
| 426 |
-
|
| 427 |
-
|
| 428 |
-
|
| 429 |
-
|
| 430 |
-
|
| 431 |
-
|
| 432 |
-
|
| 433 |
-
|
| 434 |
-
|
| 435 |
-
|
| 436 |
-
|
| 437 |
-
|
| 438 |
-
|
| 439 |
-
|
| 440 |
-
|
| 441 |
-
|
| 442 |
-
|
| 443 |
-
|
| 444 |
-
|
| 445 |
-
|
| 446 |
-
|
| 447 |
-
|
| 448 |
-
|
| 449 |
-
|
| 450 |
-
|
| 451 |
-
|
| 452 |
-
|
| 453 |
-
|
| 454 |
-
|
| 455 |
-
|
| 456 |
-
|
| 457 |
-
|
| 458 |
-
|
| 459 |
-
|
| 460 |
-
|
| 461 |
-
|
| 462 |
-
|
| 463 |
-
|
| 464 |
-
|
| 465 |
-
|
| 466 |
-
|
| 467 |
-
|
| 468 |
-
|
| 469 |
-
|
| 470 |
-
|
| 471 |
-
|
| 472 |
-
|
| 473 |
-
|
| 474 |
-
|
| 475 |
-
|
| 476 |
-
|
| 477 |
-
|
| 478 |
-
|
| 479 |
-
|
| 480 |
-
|
| 481 |
-
|
| 482 |
-
|
| 483 |
-
|
| 484 |
-
|
| 485 |
-
|
| 486 |
-
|
| 487 |
-
|
| 488 |
-
|
| 489 |
-
|
| 490 |
-
|
| 491 |
-
|
| 492 |
-
|
| 493 |
-
|
| 494 |
-
|
| 495 |
-
|
| 496 |
-
|
| 497 |
-
|
| 498 |
-
|
| 499 |
-
|
| 500 |
-
|
| 501 |
-
|
| 502 |
-
|
| 503 |
-
|
| 504 |
-
|
| 505 |
-
|
| 506 |
-
|
| 507 |
-
|
| 508 |
-
|
| 509 |
-
|
| 510 |
-
|
| 511 |
-
|
| 512 |
-
|
| 513 |
-
|
| 514 |
-
|
| 515 |
-
|
| 516 |
-
|
| 517 |
-
|
| 518 |
-
|
| 519 |
-
|
| 520 |
-
|
| 521 |
-
|
| 522 |
-
|
| 523 |
-
}
|
| 524 |
-
|
| 525 |
-
|
| 526 |
-
|
| 527 |
-
|
| 528 |
-
|
| 529 |
-
|
| 530 |
-
|
| 531 |
-
|
| 532 |
-
|
| 533 |
-
|
| 534 |
-
|
| 535 |
-
|
| 536 |
-
|
| 537 |
-
|
| 538 |
-
|
| 539 |
-
|
| 540 |
-
|
| 541 |
-
this.
|
| 542 |
-
|
| 543 |
-
|
| 544 |
-
|
| 545 |
-
|
| 546 |
-
|
| 547 |
-
|
| 548 |
-
|
| 549 |
-
|
| 550 |
-
|
| 551 |
-
|
| 552 |
-
|
| 553 |
-
|
| 554 |
-
|
| 555 |
-
|
| 556 |
-
|
| 557 |
-
|
| 558 |
-
|
| 559 |
-
|
| 560 |
-
|
| 561 |
-
|
| 562 |
-
|
| 563 |
-
|
| 564 |
-
|
| 565 |
-
|
| 566 |
-
|
| 567 |
-
|
| 568 |
-
|
| 569 |
-
|
| 570 |
-
|
| 571 |
-
|
| 572 |
-
|
| 573 |
-
|
| 574 |
-
|
| 575 |
-
|
| 576 |
-
|
| 577 |
-
|
| 578 |
-
|
| 579 |
-
|
| 580 |
-
|
| 581 |
-
|
| 582 |
-
|
| 583 |
-
|
| 584 |
-
|
| 585 |
-
|
| 586 |
-
|
| 587 |
-
|
| 588 |
-
|
| 589 |
-
|
| 590 |
-
|
| 591 |
-
|
| 592 |
-
|
| 593 |
-
|
| 594 |
-
|
| 595 |
-
|
| 596 |
-
|
| 597 |
-
|
| 598 |
-
|
| 599 |
-
|
| 600 |
-
|
| 601 |
-
|
| 602 |
-
|
| 603 |
-
|
| 604 |
-
|
| 605 |
-
|
| 606 |
-
|
| 607 |
-
|
| 608 |
-
|
| 609 |
-
|
| 610 |
-
|
| 611 |
-
|
| 612 |
-
|
| 613 |
-
|
| 614 |
-
|
| 615 |
-
|
| 616 |
-
|
| 617 |
-
|
| 618 |
-
|
| 619 |
-
|
| 620 |
-
|
| 621 |
-
|
| 622 |
-
|
| 623 |
-
|
| 624 |
-
|
| 625 |
-
|
| 626 |
-
|
| 627 |
-
|
| 628 |
-
|
| 629 |
-
|
| 630 |
-
|
| 631 |
-
|
| 632 |
-
|
| 633 |
-
|
| 634 |
-
|
| 635 |
-
|
| 636 |
-
|
| 637 |
-
|
| 638 |
-
|
| 639 |
-
|
| 640 |
-
|
| 641 |
-
|
| 642 |
-
|
| 643 |
-
|
| 644 |
-
|
| 645 |
-
|
| 646 |
-
|
| 647 |
-
|
| 648 |
-
|
| 649 |
-
|
| 650 |
-
|
| 651 |
-
|
| 652 |
-
|
| 653 |
-
|
| 654 |
-
|
| 655 |
-
|
| 656 |
-
|
| 657 |
-
|
| 658 |
-
|
| 659 |
-
|
| 660 |
-
|
| 661 |
-
}
|
| 662 |
-
|
| 663 |
-
|
| 664 |
-
|
| 665 |
-
|
| 666 |
-
|
| 667 |
-
|
| 668 |
-
|
| 669 |
-
|
| 670 |
-
|
| 671 |
-
|
| 672 |
-
|
| 673 |
-
|
| 674 |
-
|
| 675 |
-
|
| 676 |
-
|
| 677 |
-
this.
|
| 678 |
-
this.
|
| 679 |
-
|
| 680 |
-
|
| 681 |
-
|
| 682 |
-
|
| 683 |
-
|
| 684 |
-
|
| 685 |
-
|
| 686 |
-
|
| 687 |
-
|
| 688 |
-
|
| 689 |
-
|
| 690 |
-
|
| 691 |
-
|
| 692 |
-
|
| 693 |
-
|
| 694 |
-
|
| 695 |
-
|
| 696 |
-
|
| 697 |
-
|
| 698 |
-
|
| 699 |
-
|
| 700 |
-
|
| 701 |
-
|
| 702 |
-
|
| 703 |
-
|
| 704 |
-
|
| 705 |
-
|
| 706 |
-
|
| 707 |
-
|
| 708 |
-
|
| 709 |
-
|
| 710 |
-
|
| 711 |
-
|
| 712 |
-
|
| 713 |
-
|
| 714 |
-
|
| 715 |
-
|
| 716 |
-
|
| 717 |
-
|
| 718 |
-
|
| 719 |
-
|
| 720 |
-
|
| 721 |
-
|
| 722 |
-
|
| 723 |
-
|
| 724 |
-
|
| 725 |
-
|
| 726 |
-
|
| 727 |
-
|
| 728 |
-
|
| 729 |
-
|
| 730 |
-
|
| 731 |
-
|
| 732 |
-
|
| 733 |
-
|
| 734 |
-
|
| 735 |
-
|
| 736 |
-
|
| 737 |
-
|
| 738 |
-
|
| 739 |
-
|
| 740 |
-
}
|
| 741 |
-
|
| 742 |
-
|
| 743 |
-
|
| 744 |
-
|
| 745 |
-
|
| 746 |
-
|
| 747 |
-
|
| 748 |
-
|
| 749 |
-
|
| 750 |
-
|
| 751 |
-
|
| 752 |
-
|
| 753 |
-
|
| 754 |
-
|
| 755 |
-
|
| 756 |
-
|
| 757 |
-
|
| 758 |
-
|
| 759 |
-
|
| 760 |
-
|
| 761 |
-
|
| 762 |
-
|
| 763 |
-
|
| 764 |
-
|
| 765 |
-
|
| 766 |
-
|
| 767 |
-
|
| 768 |
-
|
| 769 |
-
|
| 770 |
-
|
| 771 |
-
|
| 772 |
-
|
| 773 |
-
|
| 774 |
-
|
| 775 |
-
|
| 776 |
-
|
| 777 |
-
|
| 778 |
-
|
| 779 |
-
|
| 780 |
-
|
| 781 |
-
|
| 782 |
-
|
| 783 |
-
|
| 784 |
-
|
| 785 |
-
|
| 786 |
-
|
| 787 |
-
|
| 788 |
-
|
| 789 |
-
|
| 790 |
-
|
| 791 |
-
|
| 792 |
-
|
| 793 |
-
|
| 794 |
-
|
| 795 |
-
|
| 796 |
-
|
| 797 |
-
|
| 798 |
-
|
| 799 |
-
|
| 800 |
-
|
| 801 |
-
|
| 802 |
-
|
| 803 |
-
|
| 804 |
-
|
| 805 |
-
|
| 806 |
-
|
| 807 |
-
|
| 808 |
-
|
| 809 |
-
|
| 810 |
-
|
| 811 |
-
|
| 812 |
-
|
| 813 |
-
|
| 814 |
-
|
| 815 |
-
|
| 816 |
-
|
| 817 |
-
|
| 818 |
-
|
| 819 |
-
|
| 820 |
-
|
| 821 |
-
|
| 822 |
-
|
| 823 |
-
|
| 824 |
-
|
| 825 |
-
|
| 826 |
-
|
| 827 |
-
|
| 828 |
-
|
| 829 |
-
|
| 830 |
-
|
| 831 |
-
|
| 832 |
-
|
| 833 |
-
|
| 834 |
-
|
| 835 |
-
|
| 836 |
-
|
| 837 |
-
|
| 838 |
-
|
| 839 |
-
|
| 840 |
-
|
| 841 |
-
|
| 842 |
-
|
| 843 |
-
|
| 844 |
-
|
| 845 |
-
|
| 846 |
-
|
| 847 |
-
|
| 848 |
-
|
| 849 |
-
|
| 850 |
-
|
| 851 |
-
|
| 852 |
-
|
| 853 |
-
|
| 854 |
-
|
| 855 |
-
|
| 856 |
-
|
| 857 |
-
|
| 858 |
-
|
| 859 |
-
|
| 860 |
-
|
| 861 |
-
|
| 862 |
-
|
| 863 |
-
|
| 864 |
-
|
| 865 |
-
|
| 866 |
-
|
| 867 |
-
|
| 868 |
-
|
| 869 |
-
|
| 870 |
-
|
| 871 |
-
|
| 872 |
-
|
| 873 |
-
|
| 874 |
-
|
| 875 |
-
|
| 876 |
-
|
| 877 |
-
|
| 878 |
-
|
| 879 |
-
|
| 880 |
-
|
| 881 |
-
|
| 882 |
-
|
| 883 |
-
|
| 884 |
-
|
| 885 |
-
|
| 886 |
-
|
| 887 |
-
|
| 888 |
-
|
| 889 |
-
|
| 890 |
-
|
| 891 |
-
|
| 892 |
-
|
| 893 |
-
}
|
| 894 |
-
|
| 895 |
-
|
| 896 |
-
|
| 897 |
-
|
| 898 |
-
|
| 899 |
-
|
| 900 |
-
|
| 901 |
-
|
| 902 |
-
|
| 903 |
-
|
| 904 |
-
|
| 905 |
-
|
| 906 |
-
|
| 907 |
-
|
| 908 |
-
|
| 909 |
-
|
| 910 |
-
|
| 911 |
-
|
| 912 |
-
|
| 913 |
-
|
| 914 |
-
|
| 915 |
-
|
| 916 |
-
|
| 917 |
-
|
| 918 |
-
|
| 919 |
-
|
| 920 |
-
|
| 921 |
-
|
| 922 |
-
|
| 923 |
-
|
| 924 |
-
|
| 925 |
-
|
| 926 |
-
|
| 927 |
-
|
| 928 |
-
|
| 929 |
-
|
| 930 |
-
|
| 931 |
-
|
| 932 |
-
|
| 933 |
-
|
| 934 |
-
|
| 935 |
-
|
| 936 |
-
|
| 937 |
-
|
| 938 |
-
|
| 939 |
-
|
| 940 |
-
|
| 941 |
-
|
| 942 |
-
|
| 943 |
-
|
| 944 |
-
|
| 945 |
-
|
| 946 |
-
|
| 947 |
-
|
| 948 |
-
|
| 949 |
-
|
| 950 |
-
|
| 951 |
-
|
| 952 |
-
|
| 953 |
-
|
| 954 |
-
|
| 955 |
-
|
| 956 |
-
|
| 957 |
-
|
| 958 |
-
|
| 959 |
-
|
| 960 |
-
|
| 961 |
-
|
| 962 |
-
|
| 963 |
-
}
|
| 964 |
-
|
| 965 |
-
|
| 966 |
-
|
| 967 |
-
|
| 968 |
-
|
| 969 |
-
|
| 970 |
-
|
| 971 |
-
|
| 972 |
-
|
| 973 |
-
|
| 974 |
-
|
| 975 |
-
|
| 976 |
-
|
| 977 |
-
|
| 978 |
-
|
| 979 |
-
|
| 980 |
-
|
| 981 |
-
|
| 982 |
-
|
| 983 |
-
|
| 984 |
-
|
| 985 |
-
|
| 986 |
-
|
| 987 |
-
|
| 988 |
-
|
| 989 |
-
|
| 990 |
-
|
| 991 |
-
|
| 992 |
-
|
| 993 |
-
|
| 994 |
-
|
| 995 |
-
|
| 996 |
-
|
| 997 |
-
|
| 998 |
-
|
| 999 |
-
|
| 1000 |
-
|
| 1001 |
-
|
| 1002 |
-
|
| 1003 |
-
|
| 1004 |
-
|
| 1005 |
-
|
| 1006 |
-
|
| 1007 |
-
|
| 1008 |
-
|
| 1009 |
-
|
| 1010 |
-
|
| 1011 |
-
|
| 1012 |
-
|
| 1013 |
-
|
| 1014 |
-
|
| 1015 |
-
|
| 1016 |
-
|
| 1017 |
-
|
| 1018 |
-
|
| 1019 |
-
|
| 1020 |
-
}
|
| 1021 |
-
|
| 1022 |
-
|
| 1023 |
-
|
| 1024 |
-
|
| 1025 |
-
|
| 1026 |
-
|
| 1027 |
-
|
| 1028 |
-
|
| 1029 |
-
|
| 1030 |
-
|
| 1031 |
-
|
| 1032 |
-
|
| 1033 |
-
|
| 1034 |
-
|
| 1035 |
-
|
| 1036 |
-
|
| 1037 |
-
|
| 1038 |
-
|
| 1039 |
-
|
| 1040 |
-
|
| 1041 |
-
|
| 1042 |
-
|
| 1043 |
-
|
| 1044 |
-
|
| 1045 |
-
|
| 1046 |
-
|
| 1047 |
-
|
| 1048 |
-
|
| 1049 |
-
|
| 1050 |
-
|
| 1051 |
-
|
| 1052 |
-
|
| 1053 |
-
}
|
| 1054 |
-
|
| 1055 |
-
|
| 1056 |
-
|
| 1057 |
-
if (
|
| 1058 |
-
|
| 1059 |
-
|
| 1060 |
-
|
| 1061 |
-
|
| 1062 |
-
|
| 1063 |
-
|
| 1064 |
-
|
| 1065 |
-
|
| 1066 |
-
|
| 1067 |
-
|
| 1068 |
-
|
| 1069 |
-
|
| 1070 |
-
|
| 1071 |
-
|
| 1072 |
-
|
| 1073 |
-
|
| 1074 |
-
|
| 1075 |
-
// ============================================
|
| 1076 |
-
|
| 1077 |
-
|
| 1078 |
-
|
| 1079 |
-
|
| 1080 |
-
|
| 1081 |
-
|
| 1082 |
-
|
| 1083 |
-
|
| 1084 |
-
|
| 1085 |
-
|
| 1086 |
-
|
| 1087 |
-
|
| 1088 |
-
|
| 1089 |
-
|
| 1090 |
-
|
| 1091 |
-
|
| 1092 |
-
|
| 1093 |
-
|
| 1094 |
-
|
| 1095 |
-
|
| 1096 |
-
|
| 1097 |
-
|
| 1098 |
-
|
| 1099 |
-
|
| 1100 |
-
|
| 1101 |
-
|
| 1102 |
-
|
| 1103 |
-
|
| 1104 |
-
|
| 1105 |
-
|
| 1106 |
-
|
| 1107 |
-
|
| 1108 |
-
|
| 1109 |
-
|
| 1110 |
-
|
| 1111 |
-
|
| 1112 |
-
|
| 1113 |
-
|
| 1114 |
-
|
| 1115 |
-
|
| 1116 |
-
|
| 1117 |
-
|
| 1118 |
-
|
| 1119 |
-
|
| 1120 |
-
|
| 1121 |
-
|
| 1122 |
-
|
| 1123 |
-
|
| 1124 |
-
|
| 1125 |
-
|
| 1126 |
-
|
| 1127 |
-
|
| 1128 |
-
this.
|
| 1129 |
-
}
|
| 1130 |
-
|
| 1131 |
-
|
| 1132 |
-
|
| 1133 |
-
|
| 1134 |
-
|
| 1135 |
-
|
| 1136 |
-
|
| 1137 |
-
|
| 1138 |
-
|
| 1139 |
-
|
| 1140 |
-
|
| 1141 |
-
|
| 1142 |
-
|
| 1143 |
-
if (
|
| 1144 |
-
|
| 1145 |
-
}
|
| 1146 |
-
|
| 1147 |
-
|
| 1148 |
-
|
| 1149 |
-
|
| 1150 |
-
|
| 1151 |
-
|
| 1152 |
-
|
| 1153 |
-
|
| 1154 |
-
|
| 1155 |
-
|
| 1156 |
-
|
| 1157 |
-
|
| 1158 |
-
|
| 1159 |
-
|
| 1160 |
-
|
| 1161 |
-
|
| 1162 |
-
|
| 1163 |
-
this.
|
| 1164 |
-
|
| 1165 |
-
|
| 1166 |
-
|
| 1167 |
-
|
| 1168 |
-
|
| 1169 |
-
|
| 1170 |
-
|
| 1171 |
-
|
| 1172 |
-
|
| 1173 |
-
|
| 1174 |
-
|
| 1175 |
-
|
| 1176 |
-
|
| 1177 |
-
|
| 1178 |
-
|
| 1179 |
-
|
| 1180 |
-
|
| 1181 |
-
|
| 1182 |
-
|
| 1183 |
-
|
| 1184 |
-
|
| 1185 |
-
|
| 1186 |
-
|
| 1187 |
-
|
| 1188 |
-
|
| 1189 |
-
|
| 1190 |
-
|
| 1191 |
-
|
| 1192 |
-
|
| 1193 |
-
|
| 1194 |
-
|
| 1195 |
-
|
| 1196 |
-
|
| 1197 |
-
|
| 1198 |
-
|
| 1199 |
-
|
| 1200 |
-
|
| 1201 |
-
|
| 1202 |
-
|
| 1203 |
-
|
| 1204 |
-
|
| 1205 |
-
|
| 1206 |
-
|
| 1207 |
-
|
| 1208 |
-
|
| 1209 |
-
|
| 1210 |
-
|
| 1211 |
-
|
| 1212 |
-
|
| 1213 |
-
|
| 1214 |
-
|
| 1215 |
-
|
| 1216 |
-
|
| 1217 |
-
|
| 1218 |
-
|
| 1219 |
-
|
| 1220 |
-
|
| 1221 |
-
|
| 1222 |
-
|
| 1223 |
-
|
| 1224 |
-
|
| 1225 |
-
}
|
| 1226 |
-
|
| 1227 |
-
|
| 1228 |
-
|
| 1229 |
-
|
| 1230 |
-
|
| 1231 |
-
|
| 1232 |
-
|
| 1233 |
-
|
| 1234 |
-
|
| 1235 |
-
|
| 1236 |
-
|
| 1237 |
-
|
| 1238 |
-
|
| 1239 |
-
|
| 1240 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1241 |
</html>
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="zh-CN">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
| 6 |
+
<title>Banana Pro AI</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
<style>
|
| 9 |
+
/* 顶部固定布局样式 */
|
| 10 |
+
.input-section {
|
| 11 |
+
position: fixed !important;
|
| 12 |
+
top: 0 !important;
|
| 13 |
+
bottom: auto !important;
|
| 14 |
+
left: 0 !important;
|
| 15 |
+
right: 0 !important;
|
| 16 |
+
transform: none !important;
|
| 17 |
+
width: 100% !important;
|
| 18 |
+
max-width: 100% !important;
|
| 19 |
+
border-radius: 0 !important;
|
| 20 |
+
z-index: 1000 !important;
|
| 21 |
+
box-shadow: 0 2px 20px rgba(0,0,0,0.3) !important;
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
header {
|
| 25 |
+
margin-top: 80px; /* 为输入区留空间 */
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
.history-container {
|
| 29 |
+
padding-bottom: 20px !important;
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
/* 调整输入区内部布局 */
|
| 33 |
+
.control-bar {
|
| 34 |
+
max-width: 1200px;
|
| 35 |
+
margin: 0 auto;
|
| 36 |
+
padding: 12px 20px !important;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
.preview-bar {
|
| 40 |
+
max-width: 1200px;
|
| 41 |
+
margin: 0 auto;
|
| 42 |
+
padding: 0 20px;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
.preview-bar.visible {
|
| 46 |
+
padding: 12px 20px;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
/* 动态调整header间距 */
|
| 50 |
+
.has-preview header {
|
| 51 |
+
margin-top: 180px;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
@media (max-width: 768px) {
|
| 55 |
+
header {
|
| 56 |
+
margin-top: 70px;
|
| 57 |
+
}
|
| 58 |
+
.has-preview header {
|
| 59 |
+
margin-top: 150px;
|
| 60 |
+
}
|
| 61 |
+
}
|
| 62 |
+
</style>
|
| 63 |
+
</head>
|
| 64 |
+
<body>
|
| 65 |
+
<!-- 在预览栏显示时添加 has-preview 类 -->
|
| 66 |
+
<script>
|
| 67 |
+
// 监听预览栏变化
|
| 68 |
+
const observePreviewBar = () => {
|
| 69 |
+
const previewBar = document.getElementById('preview-bar');
|
| 70 |
+
const observer = new MutationObserver(() => {
|
| 71 |
+
if (previewBar.classList.contains('visible')) {
|
| 72 |
+
document.body.classList.add('has-preview');
|
| 73 |
+
} else {
|
| 74 |
+
document.body.classList.remove('has-preview');
|
| 75 |
+
}
|
| 76 |
+
});
|
| 77 |
+
observer.observe(previewBar, { attributes: true, attributeFilter: ['class'] });
|
| 78 |
+
};
|
| 79 |
+
document.addEventListener('DOMContentLoaded', observePreviewBar);
|
| 80 |
+
</script>
|
| 81 |
+
|
| 82 |
+
<!-- 登录界面 -->
|
| 83 |
+
<div id="login-overlay">
|
| 84 |
+
<div class="login-card glass-panel">
|
| 85 |
+
<h1 style="font-size: 2rem;">🍌</h1>
|
| 86 |
+
<h3 style="margin: 10px 0; color: #cbd5e1;">Banana Pro</h3>
|
| 87 |
+
<input type="password" id="pwd" placeholder="Password" onkeypress="if(event.key==='Enter')doLogin()">
|
| 88 |
+
<button class="btn-3d" onclick="doLogin()" style="width: 100%; padding: 10px;">Unlock</button>
|
| 89 |
+
</div>
|
| 90 |
+
</div>
|
| 91 |
+
|
| 92 |
+
<!-- 主应用 -->
|
| 93 |
+
<div class="app-container" id="app" style="filter: blur(10px); pointer-events: none;">
|
| 94 |
+
<!-- 顶部固定输入区 -->
|
| 95 |
+
<div class="input-section glass-panel" id="drop-zone">
|
| 96 |
+
<!-- 上部分:预览条 -->
|
| 97 |
+
<div class="preview-bar" id="preview-bar"></div>
|
| 98 |
+
|
| 99 |
+
<!-- 下部分:操作栏 -->
|
| 100 |
+
<div class="control-bar">
|
| 101 |
+
<button class="upload-trigger" id="upload-btn" title="上传参考图">📷</button>
|
| 102 |
+
<textarea id="prompt" class="main-input" rows="1" placeholder="描述画面... (支持拖拽图片)"></textarea>
|
| 103 |
+
<button class="ghost-btn" id="clear-btn" title="清空输入" aria-label="清空输入">清空</button>
|
| 104 |
+
<button class="btn-3d send-btn" id="send-btn">
|
| 105 |
+
<span>生成</span>
|
| 106 |
+
<div class="loader"></div>
|
| 107 |
+
</button>
|
| 108 |
+
</div>
|
| 109 |
+
</div>
|
| 110 |
+
|
| 111 |
+
<header>
|
| 112 |
+
<div class="header-stack">
|
| 113 |
+
<div class="title-row">
|
| 114 |
+
<h2>创意画板</h2>
|
| 115 |
+
<a class="prompt-link" href="https://nanobananamaker.com/" target="_blank" rel="noopener">提示词用法库</a>
|
| 116 |
+
</div>
|
| 117 |
+
<div class="status-bar" id="status-bar" aria-live="polite">
|
| 118 |
+
<span class="status-text" id="status-text">Ready 生成较慢,放后台等待即可</span>
|
| 119 |
+
<div class="status-meter" id="status-meter" aria-hidden="true">
|
| 120 |
+
<div class="status-meter-fill" id="status-meter-fill"></div>
|
| 121 |
+
</div>
|
| 122 |
+
<span class="status-timer" id="status-timer"></span>
|
| 123 |
+
</div>
|
| 124 |
+
</div>
|
| 125 |
+
</header>
|
| 126 |
+
|
| 127 |
+
<!-- 历史画廊 -->
|
| 128 |
+
<div class="history-container">
|
| 129 |
+
<div class="grid-layout" id="gallery"></div>
|
| 130 |
+
|
| 131 |
+
<section class="public-gallery-section glass-panel">
|
| 132 |
+
<div class="section-title">
|
| 133 |
+
<div>
|
| 134 |
+
<h3>✨ 社区创意画廊</h3>
|
| 135 |
+
<p class="section-subtitle" id="public-gallery-hint">分享你的作品,欣赏社区灵感</p>
|
| 136 |
+
</div>
|
| 137 |
+
<div class="section-actions">
|
| 138 |
+
<button class="icon-btn" id="refresh-public-gallery" title="刷新公共画廊" aria-label="刷新公共画廊">⟳</button>
|
| 139 |
+
</div>
|
| 140 |
+
</div>
|
| 141 |
+
<div class="grid-layout public-grid" id="public-gallery"></div>
|
| 142 |
+
</section>
|
| 143 |
+
</div>
|
| 144 |
+
|
| 145 |
+
<input type="file" id="file-input" multiple accept="image/*" hidden>
|
| 146 |
+
</div>
|
| 147 |
+
|
| 148 |
+
<!-- 详情弹窗 -->
|
| 149 |
+
<div class="modal" id="modal">
|
| 150 |
+
<div class="modal-content glass-panel">
|
| 151 |
+
<button class="close-modal" onclick="closeModal()">×</button>
|
| 152 |
+
<div class="modal-img-area">
|
| 153 |
+
<img id="m-img" src="">
|
| 154 |
+
</div>
|
| 155 |
+
<div class="modal-footer">
|
| 156 |
+
<div class="input-refs" id="m-refs"></div>
|
| 157 |
+
<div class="prompt-display" id="m-prompt"></div>
|
| 158 |
+
<button class="btn-3d" id="m-reuse" style="width: 100%; padding: 12px;">
|
| 159 |
+
🎨 复用参数与图片
|
| 160 |
+
</button>
|
| 161 |
+
</div>
|
| 162 |
+
</div>
|
| 163 |
+
</div>
|
| 164 |
+
|
| 165 |
+
<script>
|
| 166 |
+
// ============================================
|
| 167 |
+
// 全局状态管理
|
| 168 |
+
// ============================================
|
| 169 |
+
const AppState = {
|
| 170 |
+
db: null,
|
| 171 |
+
currentImages: [], // 当前上传的图片 Base64 数组
|
| 172 |
+
galleryData: [], // 个人画廊数据缓存
|
| 173 |
+
publicGalleryData: [], // 公共画廊数据缓存
|
| 174 |
+
currentModalItem: null // 当前弹窗显示的项目
|
| 175 |
+
};
|
| 176 |
+
|
| 177 |
+
const STORAGE_KEYS = {
|
| 178 |
+
publicGalleryTokens: 'BananaPro_PublicGallery_Tokens_v1'
|
| 179 |
+
};
|
| 180 |
+
|
| 181 |
+
const DEFAULT_PUBLIC_HINT = '分享你的作品,欣赏社区灵感';
|
| 182 |
+
|
| 183 |
+
const DB_NAME = 'BananaProDB_v3';
|
| 184 |
+
const DB_VERSION = 1;
|
| 185 |
+
|
| 186 |
+
const STORE_NAME = 'artworks';
|
| 187 |
+
|
| 188 |
+
// ============================================
|
| 189 |
+
// IndexedDB 模块(使用 Blob 存储避免 Base64 问题)
|
| 190 |
+
// ============================================
|
| 191 |
+
const Database = {
|
| 192 |
+
async init() {
|
| 193 |
+
return new Promise((resolve, reject) => {
|
| 194 |
+
const request = indexedDB.open(DB_NAME, DB_VERSION);
|
| 195 |
+
|
| 196 |
+
request.onerror = () => reject(request.error);
|
| 197 |
+
|
| 198 |
+
request.onsuccess = () => {
|
| 199 |
+
AppState.db = request.result;
|
| 200 |
+
resolve();
|
| 201 |
+
};
|
| 202 |
+
|
| 203 |
+
request.onupgradeneeded = (event) => {
|
| 204 |
+
const db = event.target.result;
|
| 205 |
+
if (!db.objectStoreNames.contains(STORE_NAME)) {
|
| 206 |
+
const store = db.createObjectStore(STORE_NAME, {
|
| 207 |
+
keyPath: 'id',
|
| 208 |
+
autoIncrement: true
|
| 209 |
+
});
|
| 210 |
+
store.createIndex('timestamp', 'timestamp', { unique: false });
|
| 211 |
+
}
|
| 212 |
+
};
|
| 213 |
+
});
|
| 214 |
+
},
|
| 215 |
+
|
| 216 |
+
async save(item) {
|
| 217 |
+
return new Promise((resolve, reject) => {
|
| 218 |
+
const tx = AppState.db.transaction([STORE_NAME], 'readwrite');
|
| 219 |
+
const store = tx.objectStore(STORE_NAME);
|
| 220 |
+
|
| 221 |
+
// 直接存储完整对象,不做任何转换
|
| 222 |
+
const record = {
|
| 223 |
+
prompt: item.prompt,
|
| 224 |
+
image: item.image, // 完整的 data:image/... 字符串
|
| 225 |
+
inputImages: item.inputImages || [],
|
| 226 |
+
timestamp: Date.now()
|
| 227 |
+
};
|
| 228 |
+
|
| 229 |
+
const request = store.add(record);
|
| 230 |
+
request.onsuccess = () => resolve(request.result);
|
| 231 |
+
request.onerror = () => reject(request.error);
|
| 232 |
+
});
|
| 233 |
+
},
|
| 234 |
+
|
| 235 |
+
async getAll() {
|
| 236 |
+
return new Promise((resolve, reject) => {
|
| 237 |
+
const tx = AppState.db.transaction([STORE_NAME], 'readonly');
|
| 238 |
+
const store = tx.objectStore(STORE_NAME);
|
| 239 |
+
const request = store.getAll();
|
| 240 |
+
|
| 241 |
+
request.onsuccess = () => {
|
| 242 |
+
// 按时间戳倒序
|
| 243 |
+
const results = request.result.sort((a, b) => b.timestamp - a.timestamp);
|
| 244 |
+
resolve(results);
|
| 245 |
+
};
|
| 246 |
+
request.onerror = () => reject(request.error);
|
| 247 |
+
});
|
| 248 |
+
},
|
| 249 |
+
|
| 250 |
+
async delete(id) {
|
| 251 |
+
return new Promise((resolve, reject) => {
|
| 252 |
+
const tx = AppState.db.transaction([STORE_NAME], 'readwrite');
|
| 253 |
+
const store = tx.objectStore(STORE_NAME);
|
| 254 |
+
const request = store.delete(id);
|
| 255 |
+
request.onsuccess = () => resolve();
|
| 256 |
+
request.onerror = () => reject(request.error);
|
| 257 |
+
});
|
| 258 |
+
},
|
| 259 |
+
|
| 260 |
+
async getById(id) {
|
| 261 |
+
return new Promise((resolve, reject) => {
|
| 262 |
+
const tx = AppState.db.transaction([STORE_NAME], 'readonly');
|
| 263 |
+
const store = tx.objectStore(STORE_NAME);
|
| 264 |
+
const request = store.get(id);
|
| 265 |
+
request.onsuccess = () => resolve(request.result);
|
| 266 |
+
request.onerror = () => reject(request.error);
|
| 267 |
+
});
|
| 268 |
+
}
|
| 269 |
+
};
|
| 270 |
+
|
| 271 |
+
// ============================================
|
| 272 |
+
// ��片处理模块
|
| 273 |
+
// ============================================
|
| 274 |
+
const ImageHandler = {
|
| 275 |
+
// 文件转 Base64
|
| 276 |
+
fileToBase64(file) {
|
| 277 |
+
return new Promise((resolve, reject) => {
|
| 278 |
+
const reader = new FileReader();
|
| 279 |
+
reader.onload = () => resolve(reader.result);
|
| 280 |
+
reader.onerror = () => reject(reader.error);
|
| 281 |
+
reader.readAsDataURL(file);
|
| 282 |
+
});
|
| 283 |
+
},
|
| 284 |
+
|
| 285 |
+
// 压缩图片(手机端优化)
|
| 286 |
+
async compressImage(base64Data, maxWidth = 1280) {
|
| 287 |
+
return new Promise((resolve) => {
|
| 288 |
+
const img = new Image();
|
| 289 |
+
img.onload = () => {
|
| 290 |
+
if (img.width <= maxWidth && base64Data.length < 500000) {
|
| 291 |
+
resolve(base64Data);
|
| 292 |
+
return;
|
| 293 |
+
}
|
| 294 |
+
|
| 295 |
+
const canvas = document.createElement('canvas');
|
| 296 |
+
const ctx = canvas.getContext('2d');
|
| 297 |
+
const scale = Math.min(1, maxWidth / img.width);
|
| 298 |
+
canvas.width = img.width * scale;
|
| 299 |
+
canvas.height = img.height * scale;
|
| 300 |
+
ctx.drawImage(img, 0, 0, canvas.width, canvas.height);
|
| 301 |
+
|
| 302 |
+
resolve(canvas.toDataURL('image/jpeg', 0.8));
|
| 303 |
+
};
|
| 304 |
+
img.onerror = () => resolve(base64Data);
|
| 305 |
+
img.src = base64Data;
|
| 306 |
+
});
|
| 307 |
+
},
|
| 308 |
+
|
| 309 |
+
// 处理上传的文件
|
| 310 |
+
async processFiles(files) {
|
| 311 |
+
const maxImages = 16;
|
| 312 |
+
const imageFiles = Array.from(files).filter(f => f.type.startsWith('image/'));
|
| 313 |
+
|
| 314 |
+
for (const file of imageFiles) {
|
| 315 |
+
if (AppState.currentImages.length >= maxImages) {
|
| 316 |
+
alert(`最多只能上传 ${maxImages} 张图片`);
|
| 317 |
+
break;
|
| 318 |
+
}
|
| 319 |
+
|
| 320 |
+
try {
|
| 321 |
+
let base64 = await this.fileToBase64(file);
|
| 322 |
+
base64 = await this.compressImage(base64);
|
| 323 |
+
AppState.currentImages.push(base64);
|
| 324 |
+
} catch (err) {
|
| 325 |
+
console.error('图片读取失败:', err);
|
| 326 |
+
}
|
| 327 |
+
}
|
| 328 |
+
|
| 329 |
+
PreviewManager.render();
|
| 330 |
+
},
|
| 331 |
+
|
| 332 |
+
// 移除指定索引的图片
|
| 333 |
+
removeAt(index) {
|
| 334 |
+
AppState.currentImages.splice(index, 1);
|
| 335 |
+
PreviewManager.render();
|
| 336 |
+
},
|
| 337 |
+
|
| 338 |
+
// 清空所有上传的图片
|
| 339 |
+
clear() {
|
| 340 |
+
AppState.currentImages = [];
|
| 341 |
+
PreviewManager.render();
|
| 342 |
+
},
|
| 343 |
+
|
| 344 |
+
// 设置图片(用于复用功能)
|
| 345 |
+
setImages(images) {
|
| 346 |
+
AppState.currentImages = images ? [...images] : [];
|
| 347 |
+
PreviewManager.render();
|
| 348 |
+
}
|
| 349 |
+
};
|
| 350 |
+
|
| 351 |
+
// ============================================
|
| 352 |
+
// 预览条管理模块
|
| 353 |
+
// ============================================
|
| 354 |
+
const PreviewManager = {
|
| 355 |
+
container: null,
|
| 356 |
+
uploadBtn: null,
|
| 357 |
+
|
| 358 |
+
init() {
|
| 359 |
+
this.container = document.getElementById('preview-bar');
|
| 360 |
+
this.uploadBtn = document.getElementById('upload-btn');
|
| 361 |
+
},
|
| 362 |
+
|
| 363 |
+
render() {
|
| 364 |
+
this.container.innerHTML = '';
|
| 365 |
+
|
| 366 |
+
const images = AppState.currentImages;
|
| 367 |
+
|
| 368 |
+
if (images.length === 0) {
|
| 369 |
+
this.container.classList.remove('visible');
|
| 370 |
+
this.uploadBtn.classList.remove('active');
|
| 371 |
+
StatusBar.resetToContext();
|
| 372 |
+
return;
|
| 373 |
+
}
|
| 374 |
+
|
| 375 |
+
this.container.classList.add('visible');
|
| 376 |
+
this.uploadBtn.classList.add('active');
|
| 377 |
+
StatusBar.setText("\u5df2\u9009\u62e9 " + images.length + '/16 ' + "\u5f20\u56fe\u7247");
|
| 378 |
+
|
| 379 |
+
images.forEach((imgData, index) => {
|
| 380 |
+
const wrapper = document.createElement('div');
|
| 381 |
+
wrapper.className = 'thumb-wrapper';
|
| 382 |
+
|
| 383 |
+
const img = document.createElement('img');
|
| 384 |
+
img.src = imgData;
|
| 385 |
+
img.decoding = 'async';
|
| 386 |
+
|
| 387 |
+
const removeBtn = document.createElement('div');
|
| 388 |
+
removeBtn.className = 'thumb-remove';
|
| 389 |
+
removeBtn.textContent = '?';
|
| 390 |
+
removeBtn.onclick = (e) => {
|
| 391 |
+
e.stopPropagation();
|
| 392 |
+
ImageHandler.removeAt(index);
|
| 393 |
+
};
|
| 394 |
+
|
| 395 |
+
wrapper.appendChild(img);
|
| 396 |
+
wrapper.appendChild(removeBtn);
|
| 397 |
+
this.container.appendChild(wrapper);
|
| 398 |
+
});
|
| 399 |
+
}
|
| 400 |
+
};
|
| 401 |
+
|
| 402 |
+
wrapper.appendChild(img);
|
| 403 |
+
wrapper.appendChild(removeBtn);
|
| 404 |
+
this.container.appendChild(wrapper);
|
| 405 |
+
});
|
| 406 |
+
}
|
| 407 |
+
};
|
| 408 |
+
|
| 409 |
+
// ============================================
|
| 410 |
+
// Status bar
|
| 411 |
+
// ============================================
|
| 412 |
+
const StatusBar = {
|
| 413 |
+
container: null,
|
| 414 |
+
textEl: null,
|
| 415 |
+
meterEl: null,
|
| 416 |
+
meterFill: null,
|
| 417 |
+
timerEl: null,
|
| 418 |
+
defaultText: "Ready \u751f\u6210\u8f83\u6162\uff0c\u653e\u540e\u53f0\u7b49\u5f85\u5373\u53ef",
|
| 419 |
+
locked: false,
|
| 420 |
+
countdownTimer: null,
|
| 421 |
+
flashTimer: null,
|
| 422 |
+
countdownTotal: 60,
|
| 423 |
+
|
| 424 |
+
init() {
|
| 425 |
+
this.container = document.getElementById('status-bar');
|
| 426 |
+
this.textEl = document.getElementById('status-text');
|
| 427 |
+
this.meterEl = document.getElementById('status-meter');
|
| 428 |
+
this.meterFill = document.getElementById('status-meter-fill');
|
| 429 |
+
this.timerEl = document.getElementById('status-timer');
|
| 430 |
+
|
| 431 |
+
if (this.textEl && this.textEl.textContent) {
|
| 432 |
+
this.defaultText = this.textEl.textContent.trim();
|
| 433 |
+
}
|
| 434 |
+
|
| 435 |
+
this.resetMeter();
|
| 436 |
+
},
|
| 437 |
+
|
| 438 |
+
resetMeter() {
|
| 439 |
+
if (this.meterFill) {
|
| 440 |
+
this.meterFill.style.width = '0%';
|
| 441 |
+
}
|
| 442 |
+
if (this.timerEl) {
|
| 443 |
+
this.timerEl.textContent = '';
|
| 444 |
+
}
|
| 445 |
+
if (this.container) {
|
| 446 |
+
this.container.classList.remove('is-generating');
|
| 447 |
+
}
|
| 448 |
+
},
|
| 449 |
+
|
| 450 |
+
lock() {
|
| 451 |
+
this.locked = true;
|
| 452 |
+
},
|
| 453 |
+
|
| 454 |
+
unlock() {
|
| 455 |
+
this.locked = false;
|
| 456 |
+
},
|
| 457 |
+
|
| 458 |
+
setText(text, options = {}) {
|
| 459 |
+
const { force = false } = options;
|
| 460 |
+
if (this.locked && !force) {
|
| 461 |
+
return;
|
| 462 |
+
}
|
| 463 |
+
if (this.textEl) {
|
| 464 |
+
this.textEl.textContent = text;
|
| 465 |
+
}
|
| 466 |
+
},
|
| 467 |
+
|
| 468 |
+
resetToContext() {
|
| 469 |
+
if (this.locked) {
|
| 470 |
+
return;
|
| 471 |
+
}
|
| 472 |
+
if (AppState.currentImages.length > 0) {
|
| 473 |
+
this.setText("\u5df2\u9009\u62e9 " + AppState.currentImages.length + '/16 ' + "\u5f20\u56fe\u7247");
|
| 474 |
+
} else {
|
| 475 |
+
this.setText(this.defaultText);
|
| 476 |
+
}
|
| 477 |
+
},
|
| 478 |
+
|
| 479 |
+
startCountdown(totalSeconds = 60) {
|
| 480 |
+
this.countdownTotal = totalSeconds;
|
| 481 |
+
clearInterval(this.countdownTimer);
|
| 482 |
+
clearTimeout(this.flashTimer);
|
| 483 |
+
this.lock();
|
| 484 |
+
|
| 485 |
+
if (this.container) {
|
| 486 |
+
this.container.classList.add('is-generating');
|
| 487 |
+
}
|
| 488 |
+
|
| 489 |
+
const startTime = Date.now();
|
| 490 |
+
const endTime = startTime + totalSeconds * 1000;
|
| 491 |
+
|
| 492 |
+
const tick = () => {
|
| 493 |
+
const now = Date.now();
|
| 494 |
+
const remainingMs = endTime - now;
|
| 495 |
+
const remaining = Math.max(0, Math.ceil(remainingMs / 1000));
|
| 496 |
+
const progress = Math.min(1, (totalSeconds - remaining) / totalSeconds);
|
| 497 |
+
|
| 498 |
+
if (this.meterFill) {
|
| 499 |
+
this.meterFill.style.width = `${progress * 100}%`;
|
| 500 |
+
}
|
| 501 |
+
if (this.timerEl) {
|
| 502 |
+
this.timerEl.textContent = remaining > 0 ? `${remaining}s` : '60s+';
|
| 503 |
+
}
|
| 504 |
+
|
| 505 |
+
const text = remaining > 0
|
| 506 |
+
? "\u751f\u6210\u4e2d\uff0c\u9884\u8ba1\u7b49\u5f85 " + remaining + 's'
|
| 507 |
+
: "\u751f\u6210\u4e2d\uff0c\u7b49\u5f85\u7ed3\u679c...";
|
| 508 |
+
|
| 509 |
+
if (this.textEl) {
|
| 510 |
+
this.textEl.textContent = text;
|
| 511 |
+
}
|
| 512 |
+
};
|
| 513 |
+
|
| 514 |
+
tick();
|
| 515 |
+
this.countdownTimer = setInterval(tick, 1000);
|
| 516 |
+
},
|
| 517 |
+
|
| 518 |
+
stopCountdown() {
|
| 519 |
+
clearInterval(this.countdownTimer);
|
| 520 |
+
this.countdownTimer = null;
|
| 521 |
+
this.unlock();
|
| 522 |
+
this.resetMeter();
|
| 523 |
+
},
|
| 524 |
+
|
| 525 |
+
flash(text, duration = 3000) {
|
| 526 |
+
this.setText(text, { force: true });
|
| 527 |
+
clearTimeout(this.flashTimer);
|
| 528 |
+
this.flashTimer = setTimeout(() => {
|
| 529 |
+
this.resetToContext();
|
| 530 |
+
}, duration);
|
| 531 |
+
}
|
| 532 |
+
};
|
| 533 |
+
|
| 534 |
+
// ============================================
|
| 535 |
+
// 画廊管理模块
|
| 536 |
+
// ============================================
|
| 537 |
+
const GalleryManager = {
|
| 538 |
+
container: null,
|
| 539 |
+
|
| 540 |
+
init() {
|
| 541 |
+
this.container = document.getElementById('gallery');
|
| 542 |
+
},
|
| 543 |
+
|
| 544 |
+
async load() {
|
| 545 |
+
try {
|
| 546 |
+
AppState.galleryData = await Database.getAll();
|
| 547 |
+
this.render();
|
| 548 |
+
} catch (err) {
|
| 549 |
+
console.error('加载画廊失败:', err);
|
| 550 |
+
}
|
| 551 |
+
},
|
| 552 |
+
|
| 553 |
+
render() {
|
| 554 |
+
this.container.innerHTML = '';
|
| 555 |
+
|
| 556 |
+
if (AppState.galleryData.length === 0) {
|
| 557 |
+
this.container.innerHTML = `
|
| 558 |
+
<div style="grid-column: 1/-1; text-align: center; color: var(--text-sub); padding: 60px 20px;">
|
| 559 |
+
<div style="font-size: 48px; margin-bottom: 10px;">🎨</div>
|
| 560 |
+
<div>暂无作品,开始创作吧!</div>
|
| 561 |
+
</div>
|
| 562 |
+
`;
|
| 563 |
+
return;
|
| 564 |
+
}
|
| 565 |
+
|
| 566 |
+
const fragment = document.createDocumentFragment();
|
| 567 |
+
AppState.galleryData.forEach(item => {
|
| 568 |
+
const card = this.createCard(item);
|
| 569 |
+
fragment.appendChild(card);
|
| 570 |
+
});
|
| 571 |
+
this.container.appendChild(fragment);
|
| 572 |
+
},
|
| 573 |
+
|
| 574 |
+
createCard(item) {
|
| 575 |
+
const el = document.createElement('div');
|
| 576 |
+
el.className = 'history-item';
|
| 577 |
+
el.dataset.id = item.id;
|
| 578 |
+
|
| 579 |
+
// 参考图标记
|
| 580 |
+
if (item.inputImages && item.inputImages.length > 0) {
|
| 581 |
+
const badge = document.createElement('div');
|
| 582 |
+
badge.className = 'item-badge';
|
| 583 |
+
badge.textContent = `📎 ${item.inputImages.length}`;
|
| 584 |
+
el.appendChild(badge);
|
| 585 |
+
}
|
| 586 |
+
|
| 587 |
+
// 主图片 - 使用 DOM API 设置 src
|
| 588 |
+
const img = document.createElement('img');
|
| 589 |
+
img.loading = 'lazy';
|
| 590 |
+
img.decoding = 'async';
|
| 591 |
+
img.src = item.image;
|
| 592 |
+
img.alt = `作品 ${item.id}`;
|
| 593 |
+
img.onerror = () => {
|
| 594 |
+
console.error('图片加载失败, ID:', item.id);
|
| 595 |
+
img.src = 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%23333" width="100" height="100"/><text fill="%23666" x="50%" y="50%" text-anchor="middle" dy=".3em">Error</text></svg>';
|
| 596 |
+
};
|
| 597 |
+
el.appendChild(img);
|
| 598 |
+
|
| 599 |
+
// 操作按钮
|
| 600 |
+
const actions = document.createElement('div');
|
| 601 |
+
actions.className = 'item-actions';
|
| 602 |
+
|
| 603 |
+
const shareBtn = document.createElement('button');
|
| 604 |
+
shareBtn.className = 'icon-btn share-btn';
|
| 605 |
+
shareBtn.textContent = '🌐';
|
| 606 |
+
shareBtn.title = '发布到公共画廊';
|
| 607 |
+
shareBtn.setAttribute('aria-label', '发布到公共画廊');
|
| 608 |
+
shareBtn.onclick = (e) => {
|
| 609 |
+
e.stopPropagation();
|
| 610 |
+
PublicGalleryManager.share(item, shareBtn);
|
| 611 |
+
};
|
| 612 |
+
|
| 613 |
+
const downloadBtn = document.createElement('button');
|
| 614 |
+
downloadBtn.className = 'icon-btn';
|
| 615 |
+
downloadBtn.textContent = '⬇';
|
| 616 |
+
downloadBtn.title = '下载图片';
|
| 617 |
+
downloadBtn.onclick = (e) => {
|
| 618 |
+
e.stopPropagation();
|
| 619 |
+
this.downloadImage(item);
|
| 620 |
+
};
|
| 621 |
+
|
| 622 |
+
const deleteBtn = document.createElement('button');
|
| 623 |
+
deleteBtn.className = 'icon-btn';
|
| 624 |
+
deleteBtn.style.background = 'rgba(239,68,68,0.8)';
|
| 625 |
+
deleteBtn.textContent = '🗑';
|
| 626 |
+
deleteBtn.title = '删除图片';
|
| 627 |
+
deleteBtn.onclick = (e) => {
|
| 628 |
+
e.stopPropagation();
|
| 629 |
+
this.deleteItem(item.id);
|
| 630 |
+
};
|
| 631 |
+
|
| 632 |
+
actions.appendChild(shareBtn);
|
| 633 |
+
actions.appendChild(downloadBtn);
|
| 634 |
+
actions.appendChild(deleteBtn);
|
| 635 |
+
el.appendChild(actions);
|
| 636 |
+
|
| 637 |
+
// 点击打开弹窗
|
| 638 |
+
el.onclick = () => ModalManager.open(item);
|
| 639 |
+
|
| 640 |
+
return el;
|
| 641 |
+
},
|
| 642 |
+
|
| 643 |
+
downloadImage(item) {
|
| 644 |
+
const link = document.createElement('a');
|
| 645 |
+
link.href = item.image;
|
| 646 |
+
link.download = `banana-pro-${item.id}-${Date.now()}.png`;
|
| 647 |
+
document.body.appendChild(link);
|
| 648 |
+
link.click();
|
| 649 |
+
document.body.removeChild(link);
|
| 650 |
+
},
|
| 651 |
+
|
| 652 |
+
async deleteItem(id) {
|
| 653 |
+
if (!confirm('确定要删除这张图片吗?')) return;
|
| 654 |
+
|
| 655 |
+
try {
|
| 656 |
+
await Database.delete(id);
|
| 657 |
+
await this.load();
|
| 658 |
+
} catch (err) {
|
| 659 |
+
console.error('删除失败:', err);
|
| 660 |
+
alert('删除失败');
|
| 661 |
+
}
|
| 662 |
+
}
|
| 663 |
+
};
|
| 664 |
+
|
| 665 |
+
// ============================================
|
| 666 |
+
// 弹窗管理模块
|
| 667 |
+
// ============================================
|
| 668 |
+
const ModalManager = {
|
| 669 |
+
modal: null,
|
| 670 |
+
imgEl: null,
|
| 671 |
+
promptEl: null,
|
| 672 |
+
refsEl: null,
|
| 673 |
+
reuseBtn: null,
|
| 674 |
+
|
| 675 |
+
init() {
|
| 676 |
+
this.modal = document.getElementById('modal');
|
| 677 |
+
this.imgEl = document.getElementById('m-img');
|
| 678 |
+
this.promptEl = document.getElementById('m-prompt');
|
| 679 |
+
this.refsEl = document.getElementById('m-refs');
|
| 680 |
+
this.reuseBtn = document.getElementById('m-reuse');
|
| 681 |
+
|
| 682 |
+
// 点击背景关闭
|
| 683 |
+
this.modal.onclick = (e) => {
|
| 684 |
+
if (e.target === this.modal) this.close();
|
| 685 |
+
};
|
| 686 |
+
|
| 687 |
+
// ESC 关闭
|
| 688 |
+
document.addEventListener('keydown', (e) => {
|
| 689 |
+
if (e.key === 'Escape') this.close();
|
| 690 |
+
});
|
| 691 |
+
},
|
| 692 |
+
|
| 693 |
+
open(item) {
|
| 694 |
+
AppState.currentModalItem = item;
|
| 695 |
+
|
| 696 |
+
// 设置主图 - 直接赋值
|
| 697 |
+
this.imgEl.src = item.image;
|
| 698 |
+
|
| 699 |
+
// 设置提示词
|
| 700 |
+
this.promptEl.textContent = item.prompt;
|
| 701 |
+
|
| 702 |
+
// 渲染参考图
|
| 703 |
+
this.refsEl.innerHTML = '';
|
| 704 |
+
if (item.inputImages && item.inputImages.length > 0) {
|
| 705 |
+
item.inputImages.forEach(imgData => {
|
| 706 |
+
const thumb = document.createElement('img');
|
| 707 |
+
thumb.className = 'ref-thumb';
|
| 708 |
+
thumb.src = imgData; // 直接赋值
|
| 709 |
+
thumb.onclick = () => window.open(imgData, '_blank');
|
| 710 |
+
this.refsEl.appendChild(thumb);
|
| 711 |
+
});
|
| 712 |
+
}
|
| 713 |
+
|
| 714 |
+
// 绑定复用按钮
|
| 715 |
+
this.reuseBtn.onclick = () => this.reuse();
|
| 716 |
+
|
| 717 |
+
this.modal.style.display = 'flex';
|
| 718 |
+
},
|
| 719 |
+
|
| 720 |
+
close() {
|
| 721 |
+
this.modal.style.display = 'none';
|
| 722 |
+
AppState.currentModalItem = null;
|
| 723 |
+
},
|
| 724 |
+
|
| 725 |
+
reuse() {
|
| 726 |
+
const item = AppState.currentModalItem;
|
| 727 |
+
if (!item) return;
|
| 728 |
+
|
| 729 |
+
// 复用提示词
|
| 730 |
+
const textarea = document.getElementById('prompt');
|
| 731 |
+
textarea.value = item.prompt;
|
| 732 |
+
textarea.style.height = 'auto';
|
| 733 |
+
textarea.style.height = textarea.scrollHeight + 'px';
|
| 734 |
+
|
| 735 |
+
// 复用参考图
|
| 736 |
+
if (item.inputImages && item.inputImages.length > 0) {
|
| 737 |
+
ImageHandler.setImages(item.inputImages);
|
| 738 |
+
} else {
|
| 739 |
+
ImageHandler.clear();
|
| 740 |
+
}
|
| 741 |
+
|
| 742 |
+
this.close();
|
| 743 |
+
textarea.focus();
|
| 744 |
+
}
|
| 745 |
+
};
|
| 746 |
+
|
| 747 |
+
// ============================================
|
| 748 |
+
// 公共画廊管理模块
|
| 749 |
+
// ============================================
|
| 750 |
+
const PublicGalleryManager = {
|
| 751 |
+
container: null,
|
| 752 |
+
refreshBtn: null,
|
| 753 |
+
hintEl: null,
|
| 754 |
+
tokens: {},
|
| 755 |
+
isLoading: false,
|
| 756 |
+
defaultHint: DEFAULT_PUBLIC_HINT,
|
| 757 |
+
hintTimer: null,
|
| 758 |
+
syncTimer: null,
|
| 759 |
+
syncInterval: 0,
|
| 760 |
+
loadTimeout: null,
|
| 761 |
+
lastFetchTime: 0,
|
| 762 |
+
minFetchInterval: 5000,
|
| 763 |
+
|
| 764 |
+
init() {
|
| 765 |
+
this.container = document.getElementById('public-gallery');
|
| 766 |
+
this.refreshBtn = document.getElementById('refresh-public-gallery');
|
| 767 |
+
this.hintEl = document.getElementById('public-gallery-hint');
|
| 768 |
+
this.tokens = this.loadTokens();
|
| 769 |
+
if (this.hintEl && this.hintEl.textContent) {
|
| 770 |
+
this.defaultHint = this.hintEl.textContent;
|
| 771 |
+
}
|
| 772 |
+
this.setHint(this.defaultHint);
|
| 773 |
+
|
| 774 |
+
if (this.refreshBtn) {
|
| 775 |
+
this.refreshBtn.onclick = () => this.fetch();
|
| 776 |
+
}
|
| 777 |
+
|
| 778 |
+
this.initialFetch();
|
| 779 |
+
},
|
| 780 |
+
|
| 781 |
+
async initialFetch() {
|
| 782 |
+
await this.fetch();
|
| 783 |
+
},
|
| 784 |
+
|
| 785 |
+
startRealtimeSync() {
|
| 786 |
+
// 实时同步已禁用 - 改为手动刷新提高性能
|
| 787 |
+
},
|
| 788 |
+
|
| 789 |
+
stopRealtimeSync() {
|
| 790 |
+
if (this.syncTimer) {
|
| 791 |
+
clearInterval(this.syncTimer);
|
| 792 |
+
this.syncTimer = null;
|
| 793 |
+
}
|
| 794 |
+
},
|
| 795 |
+
|
| 796 |
+
loadTokens() {
|
| 797 |
+
try {
|
| 798 |
+
const raw = localStorage.getItem(STORAGE_KEYS.publicGalleryTokens);
|
| 799 |
+
return raw ? JSON.parse(raw) : {};
|
| 800 |
+
} catch (error) {
|
| 801 |
+
console.warn('无法读取公共画廊令牌:', error);
|
| 802 |
+
return {};
|
| 803 |
+
}
|
| 804 |
+
},
|
| 805 |
+
|
| 806 |
+
saveTokens() {
|
| 807 |
+
try {
|
| 808 |
+
localStorage.setItem(STORAGE_KEYS.publicGalleryTokens, JSON.stringify(this.tokens));
|
| 809 |
+
} catch (error) {
|
| 810 |
+
console.warn('无法保存公共画廊令牌:', error);
|
| 811 |
+
}
|
| 812 |
+
},
|
| 813 |
+
|
| 814 |
+
setHint(message, mode = 'default') {
|
| 815 |
+
if (!this.hintEl) return;
|
| 816 |
+
this.hintEl.textContent = message;
|
| 817 |
+
this.hintEl.classList.remove('is-error', 'is-success');
|
| 818 |
+
if (mode === 'error') {
|
| 819 |
+
this.hintEl.classList.add('is-error');
|
| 820 |
+
} else if (mode === 'success') {
|
| 821 |
+
this.hintEl.classList.add('is-success');
|
| 822 |
+
}
|
| 823 |
+
clearTimeout(this.hintTimer);
|
| 824 |
+
if (mode !== 'default') {
|
| 825 |
+
this.hintTimer = setTimeout(() => {
|
| 826 |
+
this.setHint(this.defaultHint);
|
| 827 |
+
}, 4000);
|
| 828 |
+
}
|
| 829 |
+
},
|
| 830 |
+
|
| 831 |
+
setLoading(loading) {
|
| 832 |
+
this.isLoading = loading;
|
| 833 |
+
if (this.refreshBtn) {
|
| 834 |
+
this.refreshBtn.classList.toggle('spinning', loading);
|
| 835 |
+
this.refreshBtn.disabled = loading;
|
| 836 |
+
}
|
| 837 |
+
// 防止加载超时 - 30秒后强制停止
|
| 838 |
+
if (loading) {
|
| 839 |
+
clearTimeout(this.loadTimeout);
|
| 840 |
+
this.loadTimeout = setTimeout(() => {
|
| 841 |
+
if (this.isLoading) {
|
| 842 |
+
this.setLoading(false);
|
| 843 |
+
this.setHint('加载超时,请稍后重试', 'error');
|
| 844 |
+
}
|
| 845 |
+
}, 30000);
|
| 846 |
+
} else {
|
| 847 |
+
clearTimeout(this.loadTimeout);
|
| 848 |
+
}
|
| 849 |
+
},
|
| 850 |
+
|
| 851 |
+
async fetch() {
|
| 852 |
+
if (!this.container) return;
|
| 853 |
+
|
| 854 |
+
// 防止过于频繁的请求
|
| 855 |
+
const now = Date.now();
|
| 856 |
+
if (now - this.lastFetchTime < this.minFetchInterval) {
|
| 857 |
+
return;
|
| 858 |
+
}
|
| 859 |
+
this.lastFetchTime = now;
|
| 860 |
+
|
| 861 |
+
this.setLoading(true);
|
| 862 |
+
try {
|
| 863 |
+
const controller = new AbortController();
|
| 864 |
+
const timeoutId = setTimeout(() => controller.abort(), 15000);
|
| 865 |
+
|
| 866 |
+
const res = await fetch('/api/public-gallery', {
|
| 867 |
+
signal: controller.signal
|
| 868 |
+
});
|
| 869 |
+
clearTimeout(timeoutId);
|
| 870 |
+
const data = await res.json();
|
| 871 |
+
|
| 872 |
+
if (!res.ok || !data.success) {
|
| 873 |
+
throw new Error(data.message || '无法加载公共画廊');
|
| 874 |
+
}
|
| 875 |
+
|
| 876 |
+
AppState.publicGalleryData = data.items || [];
|
| 877 |
+
this.render();
|
| 878 |
+
this.setHint(this.defaultHint);
|
| 879 |
+
} catch (error) {
|
| 880 |
+
console.error('公共画廊加载失败:', error);
|
| 881 |
+
|
| 882 |
+
let errorMessage = '加载失败,请稍后重试';
|
| 883 |
+
if (error.name === 'AbortError') {
|
| 884 |
+
errorMessage = '加载超时,请检查网络';
|
| 885 |
+
this.setHint('加载超时,请检查网络', 'error');
|
| 886 |
+
} else {
|
| 887 |
+
this.setHint(errorMessage, 'error');
|
| 888 |
+
}
|
| 889 |
+
|
| 890 |
+
if (AppState.publicGalleryData.length === 0) {
|
| 891 |
+
this.showEmpty(errorMessage);
|
| 892 |
+
}
|
| 893 |
+
} finally {
|
| 894 |
+
this.setLoading(false);
|
| 895 |
+
}
|
| 896 |
+
},
|
| 897 |
+
|
| 898 |
+
showEmpty(message) {
|
| 899 |
+
if (!this.container) return;
|
| 900 |
+
this.container.innerHTML = `
|
| 901 |
+
<div class="public-gallery-empty">
|
| 902 |
+
<div>🌌</div>
|
| 903 |
+
<p>${message}</p>
|
| 904 |
+
</div>
|
| 905 |
+
`;
|
| 906 |
+
},
|
| 907 |
+
|
| 908 |
+
render() {
|
| 909 |
+
if (!this.container) return;
|
| 910 |
+
|
| 911 |
+
if (!AppState.publicGalleryData || AppState.publicGalleryData.length === 0) {
|
| 912 |
+
this.showEmpty('还没有人分享作品,成为第一个吧!');
|
| 913 |
+
return;
|
| 914 |
+
}
|
| 915 |
+
|
| 916 |
+
this.container.innerHTML = '';
|
| 917 |
+
const fragment = document.createDocumentFragment();
|
| 918 |
+
AppState.publicGalleryData.forEach(item => {
|
| 919 |
+
const card = this.createCard(item);
|
| 920 |
+
fragment.appendChild(card);
|
| 921 |
+
});
|
| 922 |
+
this.container.appendChild(fragment);
|
| 923 |
+
},
|
| 924 |
+
|
| 925 |
+
createCard(item) {
|
| 926 |
+
const card = document.createElement('div');
|
| 927 |
+
card.className = 'public-card';
|
| 928 |
+
card.dataset.id = item.id;
|
| 929 |
+
|
| 930 |
+
const img = document.createElement('img');
|
| 931 |
+
img.loading = 'lazy';
|
| 932 |
+
img.decoding = 'async';
|
| 933 |
+
img.src = item.image;
|
| 934 |
+
img.alt = item.prompt || '创意作品';
|
| 935 |
+
card.appendChild(img);
|
| 936 |
+
|
| 937 |
+
const info = document.createElement('div');
|
| 938 |
+
info.className = 'public-card-info';
|
| 939 |
+
|
| 940 |
+
const promptText = document.createElement('p');
|
| 941 |
+
promptText.className = 'public-card-prompt';
|
| 942 |
+
promptText.textContent = item.prompt || '未提供提示词';
|
| 943 |
+
promptText.title = item.prompt;
|
| 944 |
+
info.appendChild(promptText);
|
| 945 |
+
|
| 946 |
+
const footer = document.createElement('div');
|
| 947 |
+
footer.className = 'public-card-footer';
|
| 948 |
+
|
| 949 |
+
const timeText = document.createElement('span');
|
| 950 |
+
timeText.textContent = this.formatTimestamp(item.timestamp);
|
| 951 |
+
footer.appendChild(timeText);
|
| 952 |
+
|
| 953 |
+
if (this.canDelete(item.id)) {
|
| 954 |
+
const deleteBtn = document.createElement('button');
|
| 955 |
+
deleteBtn.className = 'icon-btn small public-delete-btn';
|
| 956 |
+
deleteBtn.textContent = '🗑';
|
| 957 |
+
deleteBtn.title = '删除这张作品';
|
| 958 |
+
deleteBtn.onclick = (e) => {
|
| 959 |
+
e.stopPropagation();
|
| 960 |
+
this.delete(item.id);
|
| 961 |
+
};
|
| 962 |
+
footer.appendChild(deleteBtn);
|
| 963 |
+
}
|
| 964 |
+
|
| 965 |
+
info.appendChild(footer);
|
| 966 |
+
card.appendChild(info);
|
| 967 |
+
|
| 968 |
+
card.onclick = () => ModalManager.open(item);
|
| 969 |
+
|
| 970 |
+
return card;
|
| 971 |
+
},
|
| 972 |
+
|
| 973 |
+
formatTimestamp(timestamp) {
|
| 974 |
+
if (!timestamp) return '';
|
| 975 |
+
const date = new Date(timestamp);
|
| 976 |
+
if (Number.isNaN(date.getTime())) {
|
| 977 |
+
return '';
|
| 978 |
+
}
|
| 979 |
+
return date.toLocaleString();
|
| 980 |
+
},
|
| 981 |
+
|
| 982 |
+
canDelete(id) {
|
| 983 |
+
return true;
|
| 984 |
+
},
|
| 985 |
+
|
| 986 |
+
markOwned(id, token) {
|
| 987 |
+
if (!id || !token) return;
|
| 988 |
+
this.tokens[id] = token;
|
| 989 |
+
this.saveTokens();
|
| 990 |
+
},
|
| 991 |
+
|
| 992 |
+
removeOwnership(id) {
|
| 993 |
+
if (this.tokens[id]) {
|
| 994 |
+
delete this.tokens[id];
|
| 995 |
+
this.saveTokens();
|
| 996 |
+
}
|
| 997 |
+
},
|
| 998 |
+
|
| 999 |
+
async share(item, triggerBtn) {
|
| 1000 |
+
if (!item) return;
|
| 1001 |
+
|
| 1002 |
+
const confirmShare = confirm('确认将这张作品发布到公共画廊?提示词将对所有人可见。');
|
| 1003 |
+
if (!confirmShare) {
|
| 1004 |
+
return;
|
| 1005 |
+
}
|
| 1006 |
+
|
| 1007 |
+
if (triggerBtn) {
|
| 1008 |
+
triggerBtn.disabled = true;
|
| 1009 |
+
}
|
| 1010 |
+
|
| 1011 |
+
try {
|
| 1012 |
+
const res = await fetch('/api/public-gallery', {
|
| 1013 |
+
method: 'POST',
|
| 1014 |
+
headers: { 'Content-Type': 'application/json' },
|
| 1015 |
+
body: JSON.stringify({
|
| 1016 |
+
prompt: item.prompt,
|
| 1017 |
+
image: item.image,
|
| 1018 |
+
inputImages: item.inputImages || []
|
| 1019 |
+
})
|
| 1020 |
+
});
|
| 1021 |
+
|
| 1022 |
+
const data = await res.json();
|
| 1023 |
+
|
| 1024 |
+
if (!res.ok || !data.success) {
|
| 1025 |
+
throw new Error(data.message || '发布失败');
|
| 1026 |
+
}
|
| 1027 |
+
|
| 1028 |
+
AppState.publicGalleryData = [data.item, ...(AppState.publicGalleryData || [])];
|
| 1029 |
+
this.markOwned(data.item.id, data.deleteToken);
|
| 1030 |
+
this.render();
|
| 1031 |
+
this.setHint('作品已发布至公共画廊', 'success');
|
| 1032 |
+
} catch (error) {
|
| 1033 |
+
console.error('发布到公共画廊失败:', error);
|
| 1034 |
+
alert('发布失败: ' + error.message);
|
| 1035 |
+
this.setHint('发布失败,请稍后重试', 'error');
|
| 1036 |
+
} finally {
|
| 1037 |
+
if (triggerBtn) {
|
| 1038 |
+
triggerBtn.disabled = false;
|
| 1039 |
+
}
|
| 1040 |
+
}
|
| 1041 |
+
},
|
| 1042 |
+
|
| 1043 |
+
async delete(id) {
|
| 1044 |
+
const confirmDelete = confirm('确定要删除这张公共画廊作品吗?');
|
| 1045 |
+
if (!confirmDelete) {
|
| 1046 |
+
return;
|
| 1047 |
+
}
|
| 1048 |
+
|
| 1049 |
+
try {
|
| 1050 |
+
const res = await fetch(`/api/public-gallery/${id}`, {
|
| 1051 |
+
method: 'DELETE',
|
| 1052 |
+
headers: { 'Content-Type': 'application/json' }
|
| 1053 |
+
});
|
| 1054 |
+
|
| 1055 |
+
const data = await res.json();
|
| 1056 |
+
|
| 1057 |
+
if (!res.ok || !data.success) {
|
| 1058 |
+
throw new Error(data.message || '删除失败');
|
| 1059 |
+
}
|
| 1060 |
+
|
| 1061 |
+
AppState.publicGalleryData = AppState.publicGalleryData.filter(item => item.id !== id);
|
| 1062 |
+
this.removeOwnership(id);
|
| 1063 |
+
this.render();
|
| 1064 |
+
this.setHint('作品已删除', 'success');
|
| 1065 |
+
} catch (error) {
|
| 1066 |
+
console.error('删除公共画廊作品失败:', error);
|
| 1067 |
+
alert('删除失败: ' + error.message);
|
| 1068 |
+
this.setHint('删除失败,请稍后再试', 'error');
|
| 1069 |
+
}
|
| 1070 |
+
}
|
| 1071 |
+
};
|
| 1072 |
+
|
| 1073 |
+
// ============================================
|
| 1074 |
+
// 生成请求模块
|
| 1075 |
+
// ============================================
|
| 1076 |
+
const Generator = {
|
| 1077 |
+
sendBtn: null,
|
| 1078 |
+
uploadBtn: null,
|
| 1079 |
+
clearBtn: null,
|
| 1080 |
+
textarea: null,
|
| 1081 |
+
isGenerating: false,
|
| 1082 |
+
generateTimeout: null,
|
| 1083 |
+
|
| 1084 |
+
init() {
|
| 1085 |
+
this.sendBtn = document.getElementById('send-btn');
|
| 1086 |
+
this.uploadBtn = document.getElementById('upload-btn');
|
| 1087 |
+
this.clearBtn = document.getElementById('clear-btn');
|
| 1088 |
+
this.textarea = document.getElementById('prompt');
|
| 1089 |
+
|
| 1090 |
+
this.sendBtn.onclick = () => this.generate();
|
| 1091 |
+
|
| 1092 |
+
if (this.clearBtn) {
|
| 1093 |
+
this.clearBtn.onclick = () => {
|
| 1094 |
+
const hasPrompt = this.textarea.value.trim().length > 0;
|
| 1095 |
+
const hasImages = AppState.currentImages.length > 0;
|
| 1096 |
+
if (!hasPrompt && !hasImages) {
|
| 1097 |
+
return;
|
| 1098 |
+
}
|
| 1099 |
+
this.textarea.value = '';
|
| 1100 |
+
this.textarea.style.height = 'auto';
|
| 1101 |
+
ImageHandler.clear();
|
| 1102 |
+
StatusBar.resetToContext();
|
| 1103 |
+
};
|
| 1104 |
+
}
|
| 1105 |
+
|
| 1106 |
+
this.textarea.addEventListener('input', () => {
|
| 1107 |
+
this.textarea.style.height = 'auto';
|
| 1108 |
+
this.textarea.style.height = this.textarea.scrollHeight + 'px';
|
| 1109 |
+
});
|
| 1110 |
+
|
| 1111 |
+
this.textarea.addEventListener('keydown', (e) => {
|
| 1112 |
+
if (e.key === 'Enter' && !e.shiftKey) {
|
| 1113 |
+
e.preventDefault();
|
| 1114 |
+
this.generate();
|
| 1115 |
+
}
|
| 1116 |
+
});
|
| 1117 |
+
},
|
| 1118 |
+
|
| 1119 |
+
setLoading(loading) {
|
| 1120 |
+
this.isGenerating = loading;
|
| 1121 |
+
if (loading) {
|
| 1122 |
+
this.sendBtn.classList.add('loading');
|
| 1123 |
+
this.sendBtn.disabled = true;
|
| 1124 |
+
if (this.clearBtn) {
|
| 1125 |
+
this.clearBtn.disabled = true;
|
| 1126 |
+
}
|
| 1127 |
+
if (this.uploadBtn) {
|
| 1128 |
+
this.uploadBtn.disabled = true;
|
| 1129 |
+
}
|
| 1130 |
+
StatusBar.startCountdown(60);
|
| 1131 |
+
|
| 1132 |
+
clearTimeout(this.generateTimeout);
|
| 1133 |
+
this.generateTimeout = setTimeout(() => {
|
| 1134 |
+
if (this.isGenerating) {
|
| 1135 |
+
this.setLoading(false);
|
| 1136 |
+
StatusBar.flash("\u751f\u6210\u8d85\u65f6");
|
| 1137 |
+
alert("\u751f\u6210\u8d85\u65f6\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc\u540e\u91cd\u8bd5");
|
| 1138 |
+
}
|
| 1139 |
+
}, 180000);
|
| 1140 |
+
} else {
|
| 1141 |
+
this.sendBtn.classList.remove('loading');
|
| 1142 |
+
this.sendBtn.disabled = false;
|
| 1143 |
+
if (this.clearBtn) {
|
| 1144 |
+
this.clearBtn.disabled = false;
|
| 1145 |
+
}
|
| 1146 |
+
if (this.uploadBtn) {
|
| 1147 |
+
this.uploadBtn.disabled = false;
|
| 1148 |
+
}
|
| 1149 |
+
clearTimeout(this.generateTimeout);
|
| 1150 |
+
StatusBar.stopCountdown();
|
| 1151 |
+
}
|
| 1152 |
+
},
|
| 1153 |
+
|
| 1154 |
+
async generate() {
|
| 1155 |
+
if (this.isGenerating) return;
|
| 1156 |
+
|
| 1157 |
+
const prompt = this.textarea.value.trim();
|
| 1158 |
+
if (!prompt) {
|
| 1159 |
+
alert("\u8bf7\u8f93\u5165\u63d0\u793a\u8bcd");
|
| 1160 |
+
return;
|
| 1161 |
+
}
|
| 1162 |
+
|
| 1163 |
+
this.setLoading(true);
|
| 1164 |
+
let statusMessage = null;
|
| 1165 |
+
|
| 1166 |
+
try {
|
| 1167 |
+
const controller = new AbortController();
|
| 1168 |
+
const timeoutId = setTimeout(() => controller.abort(), 120000);
|
| 1169 |
+
|
| 1170 |
+
const response = await fetch('/api/generate', {
|
| 1171 |
+
method: 'POST',
|
| 1172 |
+
headers: { 'Content-Type': 'application/json' },
|
| 1173 |
+
body: JSON.stringify({
|
| 1174 |
+
prompt: prompt,
|
| 1175 |
+
images: AppState.currentImages
|
| 1176 |
+
}),
|
| 1177 |
+
signal: controller.signal
|
| 1178 |
+
});
|
| 1179 |
+
clearTimeout(timeoutId);
|
| 1180 |
+
|
| 1181 |
+
const data = await response.json();
|
| 1182 |
+
|
| 1183 |
+
if (!response.ok || !data.success) {
|
| 1184 |
+
throw new Error(data.message || "\u751f\u6210\u5931\u8d25");
|
| 1185 |
+
}
|
| 1186 |
+
|
| 1187 |
+
if (!data.image || !data.image.startsWith('data:image')) {
|
| 1188 |
+
throw new Error("\u8fd4\u56de\u7684\u56fe\u7247\u6570\u636e\u65e0\u6548");
|
| 1189 |
+
}
|
| 1190 |
+
|
| 1191 |
+
await Database.save({
|
| 1192 |
+
prompt: prompt,
|
| 1193 |
+
image: data.image,
|
| 1194 |
+
inputImages: [...AppState.currentImages]
|
| 1195 |
+
});
|
| 1196 |
+
|
| 1197 |
+
await GalleryManager.load();
|
| 1198 |
+
|
| 1199 |
+
this.textarea.value = '';
|
| 1200 |
+
this.textarea.style.height = 'auto';
|
| 1201 |
+
ImageHandler.clear();
|
| 1202 |
+
|
| 1203 |
+
statusMessage = "\u751f\u6210\u6210\u529f";
|
| 1204 |
+
} catch (err) {
|
| 1205 |
+
console.error('Generate failed:', err);
|
| 1206 |
+
|
| 1207 |
+
let errorMessage = "\u751f\u6210\u5931\u8d25\uff0c\u8bf7\u91cd\u8bd5";
|
| 1208 |
+
if (err.message.includes("API\u8ba4\u8bc1\u5931\u8d25")) {
|
| 1209 |
+
errorMessage = "API\u8ba4\u8bc1\u5931\u8d25\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458\u68c0\u67e5API\u914d\u7f6e";
|
| 1210 |
+
} else if (err.message.includes("\u65e0\u6cd5\u8fde\u63a5\u5230API\u670d\u52a1\u5668")) {
|
| 1211 |
+
errorMessage = "\u65e0\u6cd5\u8fde\u63a5\u5230API\u670d\u52a1\u5668\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5";
|
| 1212 |
+
} else if (err.message.includes("API\u8bf7\u6c42\u8d85\u65f6")) {
|
| 1213 |
+
errorMessage = "API\u8bf7\u6c42\u8d85\u65f6\uff0c\u8bf7\u7a0d\u540e\u91cd\u8bd5";
|
| 1214 |
+
} else if (err.message) {
|
| 1215 |
+
errorMessage = err.message;
|
| 1216 |
+
}
|
| 1217 |
+
|
| 1218 |
+
if (err.name === 'AbortError') {
|
| 1219 |
+
statusMessage = "\u751f\u6210\u8d85\u65f6";
|
| 1220 |
+
alert("\u751f\u6210\u8d85\u65f6\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc\u540e\u91cd\u8bd5");
|
| 1221 |
+
} else {
|
| 1222 |
+
statusMessage = "\u751f\u6210\u5931\u8d25";
|
| 1223 |
+
alert(errorMessage);
|
| 1224 |
+
}
|
| 1225 |
+
} finally {
|
| 1226 |
+
this.setLoading(false);
|
| 1227 |
+
if (statusMessage) {
|
| 1228 |
+
StatusBar.flash(statusMessage);
|
| 1229 |
+
} else {
|
| 1230 |
+
StatusBar.resetToContext();
|
| 1231 |
+
}
|
| 1232 |
+
}
|
| 1233 |
+
}
|
| 1234 |
+
};
|
| 1235 |
+
|
| 1236 |
+
// ============================================
|
| 1237 |
+
// 认证模块
|
| 1238 |
+
// ============================================
|
| 1239 |
+
const Auth = {
|
| 1240 |
+
async check() {
|
| 1241 |
+
try {
|
| 1242 |
+
const res = await fetch('/api/check-auth');
|
| 1243 |
+
const data = await res.json();
|
| 1244 |
+
return data.authenticated;
|
| 1245 |
+
} catch {
|
| 1246 |
+
return false;
|
| 1247 |
+
}
|
| 1248 |
+
},
|
| 1249 |
+
|
| 1250 |
+
async login(password) {
|
| 1251 |
+
const res = await fetch('/api/login', {
|
| 1252 |
+
method: 'POST',
|
| 1253 |
+
headers: { 'Content-Type': 'application/json' },
|
| 1254 |
+
body: JSON.stringify({ password })
|
| 1255 |
+
});
|
| 1256 |
+
const data = await res.json();
|
| 1257 |
+
return data.success;
|
| 1258 |
+
},
|
| 1259 |
+
|
| 1260 |
+
unlock() {
|
| 1261 |
+
document.getElementById('login-overlay').style.display = 'none';
|
| 1262 |
+
const app = document.getElementById('app');
|
| 1263 |
+
app.style.filter = 'none';
|
| 1264 |
+
app.style.pointerEvents = 'all';
|
| 1265 |
+
}
|
| 1266 |
+
};
|
| 1267 |
+
|
| 1268 |
+
// ============================================
|
| 1269 |
+
// 拖拽上传模块
|
| 1270 |
+
// ============================================
|
| 1271 |
+
const DragDrop = {
|
| 1272 |
+
dropZone: null,
|
| 1273 |
+
|
| 1274 |
+
init() {
|
| 1275 |
+
this.dropZone = document.getElementById('drop-zone');
|
| 1276 |
+
|
| 1277 |
+
// 阻止默认行为
|
| 1278 |
+
['dragenter', 'dragover', 'dragleave', 'drop'].forEach(event => {
|
| 1279 |
+
this.dropZone.addEventListener(event, (e) => {
|
| 1280 |
+
e.preventDefault();
|
| 1281 |
+
e.stopPropagation();
|
| 1282 |
+
});
|
| 1283 |
+
});
|
| 1284 |
+
|
| 1285 |
+
// 拖入高亮
|
| 1286 |
+
['dragenter', 'dragover'].forEach(event => {
|
| 1287 |
+
this.dropZone.addEventListener(event, () => {
|
| 1288 |
+
this.dropZone.style.borderColor = 'var(--accent-color)';
|
| 1289 |
+
this.dropZone.style.background = 'rgba(59, 130, 246, 0.1)';
|
| 1290 |
+
});
|
| 1291 |
+
});
|
| 1292 |
+
|
| 1293 |
+
// 拖出恢复
|
| 1294 |
+
['dragleave', 'drop'].forEach(event => {
|
| 1295 |
+
this.dropZone.addEventListener(event, () => {
|
| 1296 |
+
this.dropZone.style.borderColor = '';
|
| 1297 |
+
this.dropZone.style.background = '';
|
| 1298 |
+
});
|
| 1299 |
+
});
|
| 1300 |
+
|
| 1301 |
+
// 放下处理
|
| 1302 |
+
this.dropZone.addEventListener('drop', async (e) => {
|
| 1303 |
+
const files = e.dataTransfer.files;
|
| 1304 |
+
if (files.length > 0) {
|
| 1305 |
+
await ImageHandler.processFiles(files);
|
| 1306 |
+
}
|
| 1307 |
+
});
|
| 1308 |
+
}
|
| 1309 |
+
};
|
| 1310 |
+
|
| 1311 |
+
// ============================================
|
| 1312 |
+
// 文件选择模块
|
| 1313 |
+
// ============================================
|
| 1314 |
+
const FileSelector = {
|
| 1315 |
+
input: null,
|
| 1316 |
+
btn: null,
|
| 1317 |
+
|
| 1318 |
+
init() {
|
| 1319 |
+
this.input = document.getElementById('file-input');
|
| 1320 |
+
this.btn = document.getElementById('upload-btn');
|
| 1321 |
+
|
| 1322 |
+
this.btn.onclick = () => this.input.click();
|
| 1323 |
+
|
| 1324 |
+
this.input.onchange = async () => {
|
| 1325 |
+
if (this.input.files.length > 0) {
|
| 1326 |
+
await ImageHandler.processFiles(this.input.files);
|
| 1327 |
+
}
|
| 1328 |
+
this.input.value = ''; // 重置以便重复选择
|
| 1329 |
+
};
|
| 1330 |
+
}
|
| 1331 |
+
};
|
| 1332 |
+
|
| 1333 |
+
// ============================================
|
| 1334 |
+
// 全局函数(供 HTML onclick 调用)
|
| 1335 |
+
// ============================================
|
| 1336 |
+
async function loadWorkspaceData() {
|
| 1337 |
+
try {
|
| 1338 |
+
await GalleryManager.load();
|
| 1339 |
+
if ('requestIdleCallback' in window) {
|
| 1340 |
+
requestIdleCallback(() => PublicGalleryManager.fetch());
|
| 1341 |
+
} else {
|
| 1342 |
+
setTimeout(() => PublicGalleryManager.fetch(), 300);
|
| 1343 |
+
}
|
| 1344 |
+
} catch (error) {
|
| 1345 |
+
console.error('加载画廊数据失败:', error);
|
| 1346 |
+
}
|
| 1347 |
+
}
|
| 1348 |
+
|
| 1349 |
+
async function doLogin() {
|
| 1350 |
+
const pwd = document.getElementById('pwd').value;
|
| 1351 |
+
if (!pwd) return;
|
| 1352 |
+
|
| 1353 |
+
const success = await Auth.login(pwd);
|
| 1354 |
+
if (success) {
|
| 1355 |
+
Auth.unlock();
|
| 1356 |
+
await loadWorkspaceData();
|
| 1357 |
+
} else {
|
| 1358 |
+
alert('密码错误');
|
| 1359 |
+
}
|
| 1360 |
+
}
|
| 1361 |
+
|
| 1362 |
+
function closeModal() {
|
| 1363 |
+
ModalManager.close();
|
| 1364 |
+
}
|
| 1365 |
+
|
| 1366 |
+
// ============================================
|
| 1367 |
+
// 应用初始化
|
| 1368 |
+
// ============================================
|
| 1369 |
+
async function initApp() {
|
| 1370 |
+
try {
|
| 1371 |
+
// 初始化数据库
|
| 1372 |
+
await Database.init();
|
| 1373 |
+
StatusBar.init();
|
| 1374 |
+
|
| 1375 |
+
// 初始化各模块
|
| 1376 |
+
PreviewManager.init();
|
| 1377 |
+
GalleryManager.init();
|
| 1378 |
+
ModalManager.init();
|
| 1379 |
+
PublicGalleryManager.init();
|
| 1380 |
+
Generator.init();
|
| 1381 |
+
DragDrop.init();
|
| 1382 |
+
FileSelector.init();
|
| 1383 |
+
|
| 1384 |
+
// 检查认证状态
|
| 1385 |
+
const isAuth = await Auth.check();
|
| 1386 |
+
if (isAuth) {
|
| 1387 |
+
Auth.unlock();
|
| 1388 |
+
await loadWorkspaceData();
|
| 1389 |
+
}
|
| 1390 |
+
|
| 1391 |
+
console.log('App initialized successfully');
|
| 1392 |
+
} catch (err) {
|
| 1393 |
+
console.error('App initialization failed:', err);
|
| 1394 |
+
}
|
| 1395 |
+
}
|
| 1396 |
+
|
| 1397 |
+
// 启动应用
|
| 1398 |
+
if (document.readyState === 'loading') {
|
| 1399 |
+
document.addEventListener('DOMContentLoaded', initApp);
|
| 1400 |
+
} else {
|
| 1401 |
+
initApp();
|
| 1402 |
+
}
|
| 1403 |
+
</script>
|
| 1404 |
+
</body>
|
| 1405 |
</html>
|
package-lock.json
ADDED
|
@@ -0,0 +1,943 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "banana-pro-ai",
|
| 3 |
+
"version": "1.0.0",
|
| 4 |
+
"lockfileVersion": 3,
|
| 5 |
+
"requires": true,
|
| 6 |
+
"packages": {
|
| 7 |
+
"": {
|
| 8 |
+
"name": "banana-pro-ai",
|
| 9 |
+
"version": "1.0.0",
|
| 10 |
+
"dependencies": {
|
| 11 |
+
"cookie-parser": "^1.4.6",
|
| 12 |
+
"dotenv": "^16.3.1",
|
| 13 |
+
"express": "^4.18.2"
|
| 14 |
+
}
|
| 15 |
+
},
|
| 16 |
+
"node_modules/accepts": {
|
| 17 |
+
"version": "1.3.8",
|
| 18 |
+
"resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
|
| 19 |
+
"integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
|
| 20 |
+
"license": "MIT",
|
| 21 |
+
"dependencies": {
|
| 22 |
+
"mime-types": "~2.1.34",
|
| 23 |
+
"negotiator": "0.6.3"
|
| 24 |
+
},
|
| 25 |
+
"engines": {
|
| 26 |
+
"node": ">= 0.6"
|
| 27 |
+
}
|
| 28 |
+
},
|
| 29 |
+
"node_modules/array-flatten": {
|
| 30 |
+
"version": "1.1.1",
|
| 31 |
+
"resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
|
| 32 |
+
"integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==",
|
| 33 |
+
"license": "MIT"
|
| 34 |
+
},
|
| 35 |
+
"node_modules/body-parser": {
|
| 36 |
+
"version": "1.20.4",
|
| 37 |
+
"resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.4.tgz",
|
| 38 |
+
"integrity": "sha512-ZTgYYLMOXY9qKU/57FAo8F+HA2dGX7bqGc71txDRC1rS4frdFI5R7NhluHxH6M0YItAP0sHB4uqAOcYKxO6uGA==",
|
| 39 |
+
"license": "MIT",
|
| 40 |
+
"dependencies": {
|
| 41 |
+
"bytes": "~3.1.2",
|
| 42 |
+
"content-type": "~1.0.5",
|
| 43 |
+
"debug": "2.6.9",
|
| 44 |
+
"depd": "2.0.0",
|
| 45 |
+
"destroy": "~1.2.0",
|
| 46 |
+
"http-errors": "~2.0.1",
|
| 47 |
+
"iconv-lite": "~0.4.24",
|
| 48 |
+
"on-finished": "~2.4.1",
|
| 49 |
+
"qs": "~6.14.0",
|
| 50 |
+
"raw-body": "~2.5.3",
|
| 51 |
+
"type-is": "~1.6.18",
|
| 52 |
+
"unpipe": "~1.0.0"
|
| 53 |
+
},
|
| 54 |
+
"engines": {
|
| 55 |
+
"node": ">= 0.8",
|
| 56 |
+
"npm": "1.2.8000 || >= 1.4.16"
|
| 57 |
+
}
|
| 58 |
+
},
|
| 59 |
+
"node_modules/bytes": {
|
| 60 |
+
"version": "3.1.2",
|
| 61 |
+
"resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
|
| 62 |
+
"integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
|
| 63 |
+
"license": "MIT",
|
| 64 |
+
"engines": {
|
| 65 |
+
"node": ">= 0.8"
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
"node_modules/call-bind-apply-helpers": {
|
| 69 |
+
"version": "1.0.2",
|
| 70 |
+
"resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
|
| 71 |
+
"integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
|
| 72 |
+
"license": "MIT",
|
| 73 |
+
"dependencies": {
|
| 74 |
+
"es-errors": "^1.3.0",
|
| 75 |
+
"function-bind": "^1.1.2"
|
| 76 |
+
},
|
| 77 |
+
"engines": {
|
| 78 |
+
"node": ">= 0.4"
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
"node_modules/call-bound": {
|
| 82 |
+
"version": "1.0.4",
|
| 83 |
+
"resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",
|
| 84 |
+
"integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
|
| 85 |
+
"license": "MIT",
|
| 86 |
+
"dependencies": {
|
| 87 |
+
"call-bind-apply-helpers": "^1.0.2",
|
| 88 |
+
"get-intrinsic": "^1.3.0"
|
| 89 |
+
},
|
| 90 |
+
"engines": {
|
| 91 |
+
"node": ">= 0.4"
|
| 92 |
+
},
|
| 93 |
+
"funding": {
|
| 94 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 95 |
+
}
|
| 96 |
+
},
|
| 97 |
+
"node_modules/content-disposition": {
|
| 98 |
+
"version": "0.5.4",
|
| 99 |
+
"resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
|
| 100 |
+
"integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
|
| 101 |
+
"license": "MIT",
|
| 102 |
+
"dependencies": {
|
| 103 |
+
"safe-buffer": "5.2.1"
|
| 104 |
+
},
|
| 105 |
+
"engines": {
|
| 106 |
+
"node": ">= 0.6"
|
| 107 |
+
}
|
| 108 |
+
},
|
| 109 |
+
"node_modules/content-type": {
|
| 110 |
+
"version": "1.0.5",
|
| 111 |
+
"resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
|
| 112 |
+
"integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
|
| 113 |
+
"license": "MIT",
|
| 114 |
+
"engines": {
|
| 115 |
+
"node": ">= 0.6"
|
| 116 |
+
}
|
| 117 |
+
},
|
| 118 |
+
"node_modules/cookie": {
|
| 119 |
+
"version": "0.7.2",
|
| 120 |
+
"resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz",
|
| 121 |
+
"integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",
|
| 122 |
+
"license": "MIT",
|
| 123 |
+
"engines": {
|
| 124 |
+
"node": ">= 0.6"
|
| 125 |
+
}
|
| 126 |
+
},
|
| 127 |
+
"node_modules/cookie-parser": {
|
| 128 |
+
"version": "1.4.7",
|
| 129 |
+
"resolved": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.4.7.tgz",
|
| 130 |
+
"integrity": "sha512-nGUvgXnotP3BsjiLX2ypbQnWoGUPIIfHQNZkkC668ntrzGWEZVW70HDEB1qnNGMicPje6EttlIgzo51YSwNQGw==",
|
| 131 |
+
"license": "MIT",
|
| 132 |
+
"dependencies": {
|
| 133 |
+
"cookie": "0.7.2",
|
| 134 |
+
"cookie-signature": "1.0.6"
|
| 135 |
+
},
|
| 136 |
+
"engines": {
|
| 137 |
+
"node": ">= 0.8.0"
|
| 138 |
+
}
|
| 139 |
+
},
|
| 140 |
+
"node_modules/cookie-signature": {
|
| 141 |
+
"version": "1.0.6",
|
| 142 |
+
"resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
|
| 143 |
+
"integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==",
|
| 144 |
+
"license": "MIT"
|
| 145 |
+
},
|
| 146 |
+
"node_modules/debug": {
|
| 147 |
+
"version": "2.6.9",
|
| 148 |
+
"resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
|
| 149 |
+
"integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
|
| 150 |
+
"license": "MIT",
|
| 151 |
+
"dependencies": {
|
| 152 |
+
"ms": "2.0.0"
|
| 153 |
+
}
|
| 154 |
+
},
|
| 155 |
+
"node_modules/depd": {
|
| 156 |
+
"version": "2.0.0",
|
| 157 |
+
"resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
|
| 158 |
+
"integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
|
| 159 |
+
"license": "MIT",
|
| 160 |
+
"engines": {
|
| 161 |
+
"node": ">= 0.8"
|
| 162 |
+
}
|
| 163 |
+
},
|
| 164 |
+
"node_modules/destroy": {
|
| 165 |
+
"version": "1.2.0",
|
| 166 |
+
"resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
|
| 167 |
+
"integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
|
| 168 |
+
"license": "MIT",
|
| 169 |
+
"engines": {
|
| 170 |
+
"node": ">= 0.8",
|
| 171 |
+
"npm": "1.2.8000 || >= 1.4.16"
|
| 172 |
+
}
|
| 173 |
+
},
|
| 174 |
+
"node_modules/dotenv": {
|
| 175 |
+
"version": "16.6.1",
|
| 176 |
+
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz",
|
| 177 |
+
"integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==",
|
| 178 |
+
"license": "BSD-2-Clause",
|
| 179 |
+
"engines": {
|
| 180 |
+
"node": ">=12"
|
| 181 |
+
},
|
| 182 |
+
"funding": {
|
| 183 |
+
"url": "https://dotenvx.com"
|
| 184 |
+
}
|
| 185 |
+
},
|
| 186 |
+
"node_modules/dunder-proto": {
|
| 187 |
+
"version": "1.0.1",
|
| 188 |
+
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
|
| 189 |
+
"integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
|
| 190 |
+
"license": "MIT",
|
| 191 |
+
"dependencies": {
|
| 192 |
+
"call-bind-apply-helpers": "^1.0.1",
|
| 193 |
+
"es-errors": "^1.3.0",
|
| 194 |
+
"gopd": "^1.2.0"
|
| 195 |
+
},
|
| 196 |
+
"engines": {
|
| 197 |
+
"node": ">= 0.4"
|
| 198 |
+
}
|
| 199 |
+
},
|
| 200 |
+
"node_modules/ee-first": {
|
| 201 |
+
"version": "1.1.1",
|
| 202 |
+
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
|
| 203 |
+
"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
|
| 204 |
+
"license": "MIT"
|
| 205 |
+
},
|
| 206 |
+
"node_modules/encodeurl": {
|
| 207 |
+
"version": "2.0.0",
|
| 208 |
+
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
|
| 209 |
+
"integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
|
| 210 |
+
"license": "MIT",
|
| 211 |
+
"engines": {
|
| 212 |
+
"node": ">= 0.8"
|
| 213 |
+
}
|
| 214 |
+
},
|
| 215 |
+
"node_modules/es-define-property": {
|
| 216 |
+
"version": "1.0.1",
|
| 217 |
+
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
|
| 218 |
+
"integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
|
| 219 |
+
"license": "MIT",
|
| 220 |
+
"engines": {
|
| 221 |
+
"node": ">= 0.4"
|
| 222 |
+
}
|
| 223 |
+
},
|
| 224 |
+
"node_modules/es-errors": {
|
| 225 |
+
"version": "1.3.0",
|
| 226 |
+
"resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
|
| 227 |
+
"integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
|
| 228 |
+
"license": "MIT",
|
| 229 |
+
"engines": {
|
| 230 |
+
"node": ">= 0.4"
|
| 231 |
+
}
|
| 232 |
+
},
|
| 233 |
+
"node_modules/es-object-atoms": {
|
| 234 |
+
"version": "1.1.1",
|
| 235 |
+
"resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
|
| 236 |
+
"integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
|
| 237 |
+
"license": "MIT",
|
| 238 |
+
"dependencies": {
|
| 239 |
+
"es-errors": "^1.3.0"
|
| 240 |
+
},
|
| 241 |
+
"engines": {
|
| 242 |
+
"node": ">= 0.4"
|
| 243 |
+
}
|
| 244 |
+
},
|
| 245 |
+
"node_modules/escape-html": {
|
| 246 |
+
"version": "1.0.3",
|
| 247 |
+
"resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
|
| 248 |
+
"integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
|
| 249 |
+
"license": "MIT"
|
| 250 |
+
},
|
| 251 |
+
"node_modules/etag": {
|
| 252 |
+
"version": "1.8.1",
|
| 253 |
+
"resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
|
| 254 |
+
"integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
|
| 255 |
+
"license": "MIT",
|
| 256 |
+
"engines": {
|
| 257 |
+
"node": ">= 0.6"
|
| 258 |
+
}
|
| 259 |
+
},
|
| 260 |
+
"node_modules/express": {
|
| 261 |
+
"version": "4.22.1",
|
| 262 |
+
"resolved": "https://registry.npmjs.org/express/-/express-4.22.1.tgz",
|
| 263 |
+
"integrity": "sha512-F2X8g9P1X7uCPZMA3MVf9wcTqlyNp7IhH5qPCI0izhaOIYXaW9L535tGA3qmjRzpH+bZczqq7hVKxTR4NWnu+g==",
|
| 264 |
+
"license": "MIT",
|
| 265 |
+
"dependencies": {
|
| 266 |
+
"accepts": "~1.3.8",
|
| 267 |
+
"array-flatten": "1.1.1",
|
| 268 |
+
"body-parser": "~1.20.3",
|
| 269 |
+
"content-disposition": "~0.5.4",
|
| 270 |
+
"content-type": "~1.0.4",
|
| 271 |
+
"cookie": "~0.7.1",
|
| 272 |
+
"cookie-signature": "~1.0.6",
|
| 273 |
+
"debug": "2.6.9",
|
| 274 |
+
"depd": "2.0.0",
|
| 275 |
+
"encodeurl": "~2.0.0",
|
| 276 |
+
"escape-html": "~1.0.3",
|
| 277 |
+
"etag": "~1.8.1",
|
| 278 |
+
"finalhandler": "~1.3.1",
|
| 279 |
+
"fresh": "~0.5.2",
|
| 280 |
+
"http-errors": "~2.0.0",
|
| 281 |
+
"merge-descriptors": "1.0.3",
|
| 282 |
+
"methods": "~1.1.2",
|
| 283 |
+
"on-finished": "~2.4.1",
|
| 284 |
+
"parseurl": "~1.3.3",
|
| 285 |
+
"path-to-regexp": "~0.1.12",
|
| 286 |
+
"proxy-addr": "~2.0.7",
|
| 287 |
+
"qs": "~6.14.0",
|
| 288 |
+
"range-parser": "~1.2.1",
|
| 289 |
+
"safe-buffer": "5.2.1",
|
| 290 |
+
"send": "~0.19.0",
|
| 291 |
+
"serve-static": "~1.16.2",
|
| 292 |
+
"setprototypeof": "1.2.0",
|
| 293 |
+
"statuses": "~2.0.1",
|
| 294 |
+
"type-is": "~1.6.18",
|
| 295 |
+
"utils-merge": "1.0.1",
|
| 296 |
+
"vary": "~1.1.2"
|
| 297 |
+
},
|
| 298 |
+
"engines": {
|
| 299 |
+
"node": ">= 0.10.0"
|
| 300 |
+
},
|
| 301 |
+
"funding": {
|
| 302 |
+
"type": "opencollective",
|
| 303 |
+
"url": "https://opencollective.com/express"
|
| 304 |
+
}
|
| 305 |
+
},
|
| 306 |
+
"node_modules/finalhandler": {
|
| 307 |
+
"version": "1.3.2",
|
| 308 |
+
"resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.2.tgz",
|
| 309 |
+
"integrity": "sha512-aA4RyPcd3badbdABGDuTXCMTtOneUCAYH/gxoYRTZlIJdF0YPWuGqiAsIrhNnnqdXGswYk6dGujem4w80UJFhg==",
|
| 310 |
+
"license": "MIT",
|
| 311 |
+
"dependencies": {
|
| 312 |
+
"debug": "2.6.9",
|
| 313 |
+
"encodeurl": "~2.0.0",
|
| 314 |
+
"escape-html": "~1.0.3",
|
| 315 |
+
"on-finished": "~2.4.1",
|
| 316 |
+
"parseurl": "~1.3.3",
|
| 317 |
+
"statuses": "~2.0.2",
|
| 318 |
+
"unpipe": "~1.0.0"
|
| 319 |
+
},
|
| 320 |
+
"engines": {
|
| 321 |
+
"node": ">= 0.8"
|
| 322 |
+
}
|
| 323 |
+
},
|
| 324 |
+
"node_modules/forwarded": {
|
| 325 |
+
"version": "0.2.0",
|
| 326 |
+
"resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
|
| 327 |
+
"integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
|
| 328 |
+
"license": "MIT",
|
| 329 |
+
"engines": {
|
| 330 |
+
"node": ">= 0.6"
|
| 331 |
+
}
|
| 332 |
+
},
|
| 333 |
+
"node_modules/fresh": {
|
| 334 |
+
"version": "0.5.2",
|
| 335 |
+
"resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
|
| 336 |
+
"integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
|
| 337 |
+
"license": "MIT",
|
| 338 |
+
"engines": {
|
| 339 |
+
"node": ">= 0.6"
|
| 340 |
+
}
|
| 341 |
+
},
|
| 342 |
+
"node_modules/function-bind": {
|
| 343 |
+
"version": "1.1.2",
|
| 344 |
+
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
|
| 345 |
+
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
|
| 346 |
+
"license": "MIT",
|
| 347 |
+
"funding": {
|
| 348 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 349 |
+
}
|
| 350 |
+
},
|
| 351 |
+
"node_modules/get-intrinsic": {
|
| 352 |
+
"version": "1.3.0",
|
| 353 |
+
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
|
| 354 |
+
"integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
|
| 355 |
+
"license": "MIT",
|
| 356 |
+
"dependencies": {
|
| 357 |
+
"call-bind-apply-helpers": "^1.0.2",
|
| 358 |
+
"es-define-property": "^1.0.1",
|
| 359 |
+
"es-errors": "^1.3.0",
|
| 360 |
+
"es-object-atoms": "^1.1.1",
|
| 361 |
+
"function-bind": "^1.1.2",
|
| 362 |
+
"get-proto": "^1.0.1",
|
| 363 |
+
"gopd": "^1.2.0",
|
| 364 |
+
"has-symbols": "^1.1.0",
|
| 365 |
+
"hasown": "^2.0.2",
|
| 366 |
+
"math-intrinsics": "^1.1.0"
|
| 367 |
+
},
|
| 368 |
+
"engines": {
|
| 369 |
+
"node": ">= 0.4"
|
| 370 |
+
},
|
| 371 |
+
"funding": {
|
| 372 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 373 |
+
}
|
| 374 |
+
},
|
| 375 |
+
"node_modules/get-proto": {
|
| 376 |
+
"version": "1.0.1",
|
| 377 |
+
"resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
|
| 378 |
+
"integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
|
| 379 |
+
"license": "MIT",
|
| 380 |
+
"dependencies": {
|
| 381 |
+
"dunder-proto": "^1.0.1",
|
| 382 |
+
"es-object-atoms": "^1.0.0"
|
| 383 |
+
},
|
| 384 |
+
"engines": {
|
| 385 |
+
"node": ">= 0.4"
|
| 386 |
+
}
|
| 387 |
+
},
|
| 388 |
+
"node_modules/gopd": {
|
| 389 |
+
"version": "1.2.0",
|
| 390 |
+
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
|
| 391 |
+
"integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
|
| 392 |
+
"license": "MIT",
|
| 393 |
+
"engines": {
|
| 394 |
+
"node": ">= 0.4"
|
| 395 |
+
},
|
| 396 |
+
"funding": {
|
| 397 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 398 |
+
}
|
| 399 |
+
},
|
| 400 |
+
"node_modules/has-symbols": {
|
| 401 |
+
"version": "1.1.0",
|
| 402 |
+
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
|
| 403 |
+
"integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
|
| 404 |
+
"license": "MIT",
|
| 405 |
+
"engines": {
|
| 406 |
+
"node": ">= 0.4"
|
| 407 |
+
},
|
| 408 |
+
"funding": {
|
| 409 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 410 |
+
}
|
| 411 |
+
},
|
| 412 |
+
"node_modules/hasown": {
|
| 413 |
+
"version": "2.0.2",
|
| 414 |
+
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
|
| 415 |
+
"integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
|
| 416 |
+
"license": "MIT",
|
| 417 |
+
"dependencies": {
|
| 418 |
+
"function-bind": "^1.1.2"
|
| 419 |
+
},
|
| 420 |
+
"engines": {
|
| 421 |
+
"node": ">= 0.4"
|
| 422 |
+
}
|
| 423 |
+
},
|
| 424 |
+
"node_modules/http-errors": {
|
| 425 |
+
"version": "2.0.1",
|
| 426 |
+
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",
|
| 427 |
+
"integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",
|
| 428 |
+
"license": "MIT",
|
| 429 |
+
"dependencies": {
|
| 430 |
+
"depd": "~2.0.0",
|
| 431 |
+
"inherits": "~2.0.4",
|
| 432 |
+
"setprototypeof": "~1.2.0",
|
| 433 |
+
"statuses": "~2.0.2",
|
| 434 |
+
"toidentifier": "~1.0.1"
|
| 435 |
+
},
|
| 436 |
+
"engines": {
|
| 437 |
+
"node": ">= 0.8"
|
| 438 |
+
},
|
| 439 |
+
"funding": {
|
| 440 |
+
"type": "opencollective",
|
| 441 |
+
"url": "https://opencollective.com/express"
|
| 442 |
+
}
|
| 443 |
+
},
|
| 444 |
+
"node_modules/iconv-lite": {
|
| 445 |
+
"version": "0.4.24",
|
| 446 |
+
"resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
|
| 447 |
+
"integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
|
| 448 |
+
"license": "MIT",
|
| 449 |
+
"dependencies": {
|
| 450 |
+
"safer-buffer": ">= 2.1.2 < 3"
|
| 451 |
+
},
|
| 452 |
+
"engines": {
|
| 453 |
+
"node": ">=0.10.0"
|
| 454 |
+
}
|
| 455 |
+
},
|
| 456 |
+
"node_modules/inherits": {
|
| 457 |
+
"version": "2.0.4",
|
| 458 |
+
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
| 459 |
+
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
|
| 460 |
+
"license": "ISC"
|
| 461 |
+
},
|
| 462 |
+
"node_modules/ipaddr.js": {
|
| 463 |
+
"version": "1.9.1",
|
| 464 |
+
"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
|
| 465 |
+
"integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
|
| 466 |
+
"license": "MIT",
|
| 467 |
+
"engines": {
|
| 468 |
+
"node": ">= 0.10"
|
| 469 |
+
}
|
| 470 |
+
},
|
| 471 |
+
"node_modules/math-intrinsics": {
|
| 472 |
+
"version": "1.1.0",
|
| 473 |
+
"resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
|
| 474 |
+
"integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
|
| 475 |
+
"license": "MIT",
|
| 476 |
+
"engines": {
|
| 477 |
+
"node": ">= 0.4"
|
| 478 |
+
}
|
| 479 |
+
},
|
| 480 |
+
"node_modules/media-typer": {
|
| 481 |
+
"version": "0.3.0",
|
| 482 |
+
"resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
|
| 483 |
+
"integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
|
| 484 |
+
"license": "MIT",
|
| 485 |
+
"engines": {
|
| 486 |
+
"node": ">= 0.6"
|
| 487 |
+
}
|
| 488 |
+
},
|
| 489 |
+
"node_modules/merge-descriptors": {
|
| 490 |
+
"version": "1.0.3",
|
| 491 |
+
"resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz",
|
| 492 |
+
"integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==",
|
| 493 |
+
"license": "MIT",
|
| 494 |
+
"funding": {
|
| 495 |
+
"url": "https://github.com/sponsors/sindresorhus"
|
| 496 |
+
}
|
| 497 |
+
},
|
| 498 |
+
"node_modules/methods": {
|
| 499 |
+
"version": "1.1.2",
|
| 500 |
+
"resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
|
| 501 |
+
"integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
|
| 502 |
+
"license": "MIT",
|
| 503 |
+
"engines": {
|
| 504 |
+
"node": ">= 0.6"
|
| 505 |
+
}
|
| 506 |
+
},
|
| 507 |
+
"node_modules/mime": {
|
| 508 |
+
"version": "1.6.0",
|
| 509 |
+
"resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
|
| 510 |
+
"integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
|
| 511 |
+
"license": "MIT",
|
| 512 |
+
"bin": {
|
| 513 |
+
"mime": "cli.js"
|
| 514 |
+
},
|
| 515 |
+
"engines": {
|
| 516 |
+
"node": ">=4"
|
| 517 |
+
}
|
| 518 |
+
},
|
| 519 |
+
"node_modules/mime-db": {
|
| 520 |
+
"version": "1.52.0",
|
| 521 |
+
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
|
| 522 |
+
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
|
| 523 |
+
"license": "MIT",
|
| 524 |
+
"engines": {
|
| 525 |
+
"node": ">= 0.6"
|
| 526 |
+
}
|
| 527 |
+
},
|
| 528 |
+
"node_modules/mime-types": {
|
| 529 |
+
"version": "2.1.35",
|
| 530 |
+
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
|
| 531 |
+
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
|
| 532 |
+
"license": "MIT",
|
| 533 |
+
"dependencies": {
|
| 534 |
+
"mime-db": "1.52.0"
|
| 535 |
+
},
|
| 536 |
+
"engines": {
|
| 537 |
+
"node": ">= 0.6"
|
| 538 |
+
}
|
| 539 |
+
},
|
| 540 |
+
"node_modules/ms": {
|
| 541 |
+
"version": "2.0.0",
|
| 542 |
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
|
| 543 |
+
"integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
|
| 544 |
+
"license": "MIT"
|
| 545 |
+
},
|
| 546 |
+
"node_modules/negotiator": {
|
| 547 |
+
"version": "0.6.3",
|
| 548 |
+
"resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
|
| 549 |
+
"integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
|
| 550 |
+
"license": "MIT",
|
| 551 |
+
"engines": {
|
| 552 |
+
"node": ">= 0.6"
|
| 553 |
+
}
|
| 554 |
+
},
|
| 555 |
+
"node_modules/object-inspect": {
|
| 556 |
+
"version": "1.13.4",
|
| 557 |
+
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
|
| 558 |
+
"integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
|
| 559 |
+
"license": "MIT",
|
| 560 |
+
"engines": {
|
| 561 |
+
"node": ">= 0.4"
|
| 562 |
+
},
|
| 563 |
+
"funding": {
|
| 564 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 565 |
+
}
|
| 566 |
+
},
|
| 567 |
+
"node_modules/on-finished": {
|
| 568 |
+
"version": "2.4.1",
|
| 569 |
+
"resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
|
| 570 |
+
"integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
|
| 571 |
+
"license": "MIT",
|
| 572 |
+
"dependencies": {
|
| 573 |
+
"ee-first": "1.1.1"
|
| 574 |
+
},
|
| 575 |
+
"engines": {
|
| 576 |
+
"node": ">= 0.8"
|
| 577 |
+
}
|
| 578 |
+
},
|
| 579 |
+
"node_modules/parseurl": {
|
| 580 |
+
"version": "1.3.3",
|
| 581 |
+
"resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
|
| 582 |
+
"integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
|
| 583 |
+
"license": "MIT",
|
| 584 |
+
"engines": {
|
| 585 |
+
"node": ">= 0.8"
|
| 586 |
+
}
|
| 587 |
+
},
|
| 588 |
+
"node_modules/path-to-regexp": {
|
| 589 |
+
"version": "0.1.12",
|
| 590 |
+
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz",
|
| 591 |
+
"integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==",
|
| 592 |
+
"license": "MIT"
|
| 593 |
+
},
|
| 594 |
+
"node_modules/proxy-addr": {
|
| 595 |
+
"version": "2.0.7",
|
| 596 |
+
"resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
|
| 597 |
+
"integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
|
| 598 |
+
"license": "MIT",
|
| 599 |
+
"dependencies": {
|
| 600 |
+
"forwarded": "0.2.0",
|
| 601 |
+
"ipaddr.js": "1.9.1"
|
| 602 |
+
},
|
| 603 |
+
"engines": {
|
| 604 |
+
"node": ">= 0.10"
|
| 605 |
+
}
|
| 606 |
+
},
|
| 607 |
+
"node_modules/qs": {
|
| 608 |
+
"version": "6.14.0",
|
| 609 |
+
"resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz",
|
| 610 |
+
"integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==",
|
| 611 |
+
"license": "BSD-3-Clause",
|
| 612 |
+
"dependencies": {
|
| 613 |
+
"side-channel": "^1.1.0"
|
| 614 |
+
},
|
| 615 |
+
"engines": {
|
| 616 |
+
"node": ">=0.6"
|
| 617 |
+
},
|
| 618 |
+
"funding": {
|
| 619 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 620 |
+
}
|
| 621 |
+
},
|
| 622 |
+
"node_modules/range-parser": {
|
| 623 |
+
"version": "1.2.1",
|
| 624 |
+
"resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
|
| 625 |
+
"integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
|
| 626 |
+
"license": "MIT",
|
| 627 |
+
"engines": {
|
| 628 |
+
"node": ">= 0.6"
|
| 629 |
+
}
|
| 630 |
+
},
|
| 631 |
+
"node_modules/raw-body": {
|
| 632 |
+
"version": "2.5.3",
|
| 633 |
+
"resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz",
|
| 634 |
+
"integrity": "sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA==",
|
| 635 |
+
"license": "MIT",
|
| 636 |
+
"dependencies": {
|
| 637 |
+
"bytes": "~3.1.2",
|
| 638 |
+
"http-errors": "~2.0.1",
|
| 639 |
+
"iconv-lite": "~0.4.24",
|
| 640 |
+
"unpipe": "~1.0.0"
|
| 641 |
+
},
|
| 642 |
+
"engines": {
|
| 643 |
+
"node": ">= 0.8"
|
| 644 |
+
}
|
| 645 |
+
},
|
| 646 |
+
"node_modules/safe-buffer": {
|
| 647 |
+
"version": "5.2.1",
|
| 648 |
+
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
| 649 |
+
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
|
| 650 |
+
"funding": [
|
| 651 |
+
{
|
| 652 |
+
"type": "github",
|
| 653 |
+
"url": "https://github.com/sponsors/feross"
|
| 654 |
+
},
|
| 655 |
+
{
|
| 656 |
+
"type": "patreon",
|
| 657 |
+
"url": "https://www.patreon.com/feross"
|
| 658 |
+
},
|
| 659 |
+
{
|
| 660 |
+
"type": "consulting",
|
| 661 |
+
"url": "https://feross.org/support"
|
| 662 |
+
}
|
| 663 |
+
],
|
| 664 |
+
"license": "MIT"
|
| 665 |
+
},
|
| 666 |
+
"node_modules/safer-buffer": {
|
| 667 |
+
"version": "2.1.2",
|
| 668 |
+
"resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
|
| 669 |
+
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
|
| 670 |
+
"license": "MIT"
|
| 671 |
+
},
|
| 672 |
+
"node_modules/send": {
|
| 673 |
+
"version": "0.19.1",
|
| 674 |
+
"resolved": "https://registry.npmjs.org/send/-/send-0.19.1.tgz",
|
| 675 |
+
"integrity": "sha512-p4rRk4f23ynFEfcD9LA0xRYngj+IyGiEYyqqOak8kaN0TvNmuxC2dcVeBn62GpCeR2CpWqyHCNScTP91QbAVFg==",
|
| 676 |
+
"license": "MIT",
|
| 677 |
+
"dependencies": {
|
| 678 |
+
"debug": "2.6.9",
|
| 679 |
+
"depd": "2.0.0",
|
| 680 |
+
"destroy": "1.2.0",
|
| 681 |
+
"encodeurl": "~2.0.0",
|
| 682 |
+
"escape-html": "~1.0.3",
|
| 683 |
+
"etag": "~1.8.1",
|
| 684 |
+
"fresh": "0.5.2",
|
| 685 |
+
"http-errors": "2.0.0",
|
| 686 |
+
"mime": "1.6.0",
|
| 687 |
+
"ms": "2.1.3",
|
| 688 |
+
"on-finished": "2.4.1",
|
| 689 |
+
"range-parser": "~1.2.1",
|
| 690 |
+
"statuses": "2.0.1"
|
| 691 |
+
},
|
| 692 |
+
"engines": {
|
| 693 |
+
"node": ">= 0.8.0"
|
| 694 |
+
}
|
| 695 |
+
},
|
| 696 |
+
"node_modules/send/node_modules/http-errors": {
|
| 697 |
+
"version": "2.0.0",
|
| 698 |
+
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
|
| 699 |
+
"integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
|
| 700 |
+
"license": "MIT",
|
| 701 |
+
"dependencies": {
|
| 702 |
+
"depd": "2.0.0",
|
| 703 |
+
"inherits": "2.0.4",
|
| 704 |
+
"setprototypeof": "1.2.0",
|
| 705 |
+
"statuses": "2.0.1",
|
| 706 |
+
"toidentifier": "1.0.1"
|
| 707 |
+
},
|
| 708 |
+
"engines": {
|
| 709 |
+
"node": ">= 0.8"
|
| 710 |
+
}
|
| 711 |
+
},
|
| 712 |
+
"node_modules/send/node_modules/ms": {
|
| 713 |
+
"version": "2.1.3",
|
| 714 |
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
| 715 |
+
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
|
| 716 |
+
"license": "MIT"
|
| 717 |
+
},
|
| 718 |
+
"node_modules/send/node_modules/statuses": {
|
| 719 |
+
"version": "2.0.1",
|
| 720 |
+
"resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
|
| 721 |
+
"integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
|
| 722 |
+
"license": "MIT",
|
| 723 |
+
"engines": {
|
| 724 |
+
"node": ">= 0.8"
|
| 725 |
+
}
|
| 726 |
+
},
|
| 727 |
+
"node_modules/serve-static": {
|
| 728 |
+
"version": "1.16.2",
|
| 729 |
+
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz",
|
| 730 |
+
"integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==",
|
| 731 |
+
"license": "MIT",
|
| 732 |
+
"dependencies": {
|
| 733 |
+
"encodeurl": "~2.0.0",
|
| 734 |
+
"escape-html": "~1.0.3",
|
| 735 |
+
"parseurl": "~1.3.3",
|
| 736 |
+
"send": "0.19.0"
|
| 737 |
+
},
|
| 738 |
+
"engines": {
|
| 739 |
+
"node": ">= 0.8.0"
|
| 740 |
+
}
|
| 741 |
+
},
|
| 742 |
+
"node_modules/serve-static/node_modules/http-errors": {
|
| 743 |
+
"version": "2.0.0",
|
| 744 |
+
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
|
| 745 |
+
"integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
|
| 746 |
+
"license": "MIT",
|
| 747 |
+
"dependencies": {
|
| 748 |
+
"depd": "2.0.0",
|
| 749 |
+
"inherits": "2.0.4",
|
| 750 |
+
"setprototypeof": "1.2.0",
|
| 751 |
+
"statuses": "2.0.1",
|
| 752 |
+
"toidentifier": "1.0.1"
|
| 753 |
+
},
|
| 754 |
+
"engines": {
|
| 755 |
+
"node": ">= 0.8"
|
| 756 |
+
}
|
| 757 |
+
},
|
| 758 |
+
"node_modules/serve-static/node_modules/ms": {
|
| 759 |
+
"version": "2.1.3",
|
| 760 |
+
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
| 761 |
+
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
|
| 762 |
+
"license": "MIT"
|
| 763 |
+
},
|
| 764 |
+
"node_modules/serve-static/node_modules/send": {
|
| 765 |
+
"version": "0.19.0",
|
| 766 |
+
"resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz",
|
| 767 |
+
"integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==",
|
| 768 |
+
"license": "MIT",
|
| 769 |
+
"dependencies": {
|
| 770 |
+
"debug": "2.6.9",
|
| 771 |
+
"depd": "2.0.0",
|
| 772 |
+
"destroy": "1.2.0",
|
| 773 |
+
"encodeurl": "~1.0.2",
|
| 774 |
+
"escape-html": "~1.0.3",
|
| 775 |
+
"etag": "~1.8.1",
|
| 776 |
+
"fresh": "0.5.2",
|
| 777 |
+
"http-errors": "2.0.0",
|
| 778 |
+
"mime": "1.6.0",
|
| 779 |
+
"ms": "2.1.3",
|
| 780 |
+
"on-finished": "2.4.1",
|
| 781 |
+
"range-parser": "~1.2.1",
|
| 782 |
+
"statuses": "2.0.1"
|
| 783 |
+
},
|
| 784 |
+
"engines": {
|
| 785 |
+
"node": ">= 0.8.0"
|
| 786 |
+
}
|
| 787 |
+
},
|
| 788 |
+
"node_modules/serve-static/node_modules/send/node_modules/encodeurl": {
|
| 789 |
+
"version": "1.0.2",
|
| 790 |
+
"resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
|
| 791 |
+
"integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==",
|
| 792 |
+
"license": "MIT",
|
| 793 |
+
"engines": {
|
| 794 |
+
"node": ">= 0.8"
|
| 795 |
+
}
|
| 796 |
+
},
|
| 797 |
+
"node_modules/serve-static/node_modules/statuses": {
|
| 798 |
+
"version": "2.0.1",
|
| 799 |
+
"resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
|
| 800 |
+
"integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
|
| 801 |
+
"license": "MIT",
|
| 802 |
+
"engines": {
|
| 803 |
+
"node": ">= 0.8"
|
| 804 |
+
}
|
| 805 |
+
},
|
| 806 |
+
"node_modules/setprototypeof": {
|
| 807 |
+
"version": "1.2.0",
|
| 808 |
+
"resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
|
| 809 |
+
"integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
|
| 810 |
+
"license": "ISC"
|
| 811 |
+
},
|
| 812 |
+
"node_modules/side-channel": {
|
| 813 |
+
"version": "1.1.0",
|
| 814 |
+
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
|
| 815 |
+
"integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
|
| 816 |
+
"license": "MIT",
|
| 817 |
+
"dependencies": {
|
| 818 |
+
"es-errors": "^1.3.0",
|
| 819 |
+
"object-inspect": "^1.13.3",
|
| 820 |
+
"side-channel-list": "^1.0.0",
|
| 821 |
+
"side-channel-map": "^1.0.1",
|
| 822 |
+
"side-channel-weakmap": "^1.0.2"
|
| 823 |
+
},
|
| 824 |
+
"engines": {
|
| 825 |
+
"node": ">= 0.4"
|
| 826 |
+
},
|
| 827 |
+
"funding": {
|
| 828 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 829 |
+
}
|
| 830 |
+
},
|
| 831 |
+
"node_modules/side-channel-list": {
|
| 832 |
+
"version": "1.0.0",
|
| 833 |
+
"resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz",
|
| 834 |
+
"integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==",
|
| 835 |
+
"license": "MIT",
|
| 836 |
+
"dependencies": {
|
| 837 |
+
"es-errors": "^1.3.0",
|
| 838 |
+
"object-inspect": "^1.13.3"
|
| 839 |
+
},
|
| 840 |
+
"engines": {
|
| 841 |
+
"node": ">= 0.4"
|
| 842 |
+
},
|
| 843 |
+
"funding": {
|
| 844 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 845 |
+
}
|
| 846 |
+
},
|
| 847 |
+
"node_modules/side-channel-map": {
|
| 848 |
+
"version": "1.0.1",
|
| 849 |
+
"resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
|
| 850 |
+
"integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
|
| 851 |
+
"license": "MIT",
|
| 852 |
+
"dependencies": {
|
| 853 |
+
"call-bound": "^1.0.2",
|
| 854 |
+
"es-errors": "^1.3.0",
|
| 855 |
+
"get-intrinsic": "^1.2.5",
|
| 856 |
+
"object-inspect": "^1.13.3"
|
| 857 |
+
},
|
| 858 |
+
"engines": {
|
| 859 |
+
"node": ">= 0.4"
|
| 860 |
+
},
|
| 861 |
+
"funding": {
|
| 862 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 863 |
+
}
|
| 864 |
+
},
|
| 865 |
+
"node_modules/side-channel-weakmap": {
|
| 866 |
+
"version": "1.0.2",
|
| 867 |
+
"resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
|
| 868 |
+
"integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
|
| 869 |
+
"license": "MIT",
|
| 870 |
+
"dependencies": {
|
| 871 |
+
"call-bound": "^1.0.2",
|
| 872 |
+
"es-errors": "^1.3.0",
|
| 873 |
+
"get-intrinsic": "^1.2.5",
|
| 874 |
+
"object-inspect": "^1.13.3",
|
| 875 |
+
"side-channel-map": "^1.0.1"
|
| 876 |
+
},
|
| 877 |
+
"engines": {
|
| 878 |
+
"node": ">= 0.4"
|
| 879 |
+
},
|
| 880 |
+
"funding": {
|
| 881 |
+
"url": "https://github.com/sponsors/ljharb"
|
| 882 |
+
}
|
| 883 |
+
},
|
| 884 |
+
"node_modules/statuses": {
|
| 885 |
+
"version": "2.0.2",
|
| 886 |
+
"resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",
|
| 887 |
+
"integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",
|
| 888 |
+
"license": "MIT",
|
| 889 |
+
"engines": {
|
| 890 |
+
"node": ">= 0.8"
|
| 891 |
+
}
|
| 892 |
+
},
|
| 893 |
+
"node_modules/toidentifier": {
|
| 894 |
+
"version": "1.0.1",
|
| 895 |
+
"resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
|
| 896 |
+
"integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
|
| 897 |
+
"license": "MIT",
|
| 898 |
+
"engines": {
|
| 899 |
+
"node": ">=0.6"
|
| 900 |
+
}
|
| 901 |
+
},
|
| 902 |
+
"node_modules/type-is": {
|
| 903 |
+
"version": "1.6.18",
|
| 904 |
+
"resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
|
| 905 |
+
"integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
|
| 906 |
+
"license": "MIT",
|
| 907 |
+
"dependencies": {
|
| 908 |
+
"media-typer": "0.3.0",
|
| 909 |
+
"mime-types": "~2.1.24"
|
| 910 |
+
},
|
| 911 |
+
"engines": {
|
| 912 |
+
"node": ">= 0.6"
|
| 913 |
+
}
|
| 914 |
+
},
|
| 915 |
+
"node_modules/unpipe": {
|
| 916 |
+
"version": "1.0.0",
|
| 917 |
+
"resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
|
| 918 |
+
"integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
|
| 919 |
+
"license": "MIT",
|
| 920 |
+
"engines": {
|
| 921 |
+
"node": ">= 0.8"
|
| 922 |
+
}
|
| 923 |
+
},
|
| 924 |
+
"node_modules/utils-merge": {
|
| 925 |
+
"version": "1.0.1",
|
| 926 |
+
"resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
|
| 927 |
+
"integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
|
| 928 |
+
"license": "MIT",
|
| 929 |
+
"engines": {
|
| 930 |
+
"node": ">= 0.4.0"
|
| 931 |
+
}
|
| 932 |
+
},
|
| 933 |
+
"node_modules/vary": {
|
| 934 |
+
"version": "1.1.2",
|
| 935 |
+
"resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
|
| 936 |
+
"integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
|
| 937 |
+
"license": "MIT",
|
| 938 |
+
"engines": {
|
| 939 |
+
"node": ">= 0.8"
|
| 940 |
+
}
|
| 941 |
+
}
|
| 942 |
+
}
|
| 943 |
+
}
|
style.css
CHANGED
|
@@ -1,1278 +1,1440 @@
|
|
| 1 |
-
/* style.css - Enhanced Glass Design with Animations */
|
| 2 |
-
:root {
|
| 3 |
-
--bg-color: #0f172a;
|
| 4 |
-
--panel-bg: rgba(30, 41, 59, 0.65);
|
| 5 |
-
--panel-bg-strong: rgba(30, 41, 59, 0.85);
|
| 6 |
-
--panel-border: rgba(148, 163, 184, 0.15);
|
| 7 |
-
--panel-border-strong: rgba(148, 163, 184, 0.3);
|
| 8 |
-
--accent-color: #3b82f6;
|
| 9 |
-
--accent-
|
| 10 |
-
--
|
| 11 |
-
--text-
|
| 12 |
-
--
|
| 13 |
-
--
|
| 14 |
-
--
|
| 15 |
-
--transition-
|
| 16 |
-
--transition-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
}
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
margin-top
|
| 180 |
-
}
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
}
|
| 205 |
-
|
| 206 |
-
.
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
| 231 |
-
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
height:
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
background
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
.
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
| 274 |
-
|
| 275 |
-
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
}
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
|
| 317 |
-
|
| 318 |
-
|
| 319 |
-
|
| 320 |
-
|
| 321 |
-
|
| 322 |
-
|
| 323 |
-
|
| 324 |
-
|
| 325 |
-
}
|
| 326 |
-
|
| 327 |
-
.
|
| 328 |
-
|
| 329 |
-
|
| 330 |
-
|
| 331 |
-
.
|
| 332 |
-
|
| 333 |
-
|
| 334 |
-
|
| 335 |
-
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
padding:
|
| 340 |
-
|
| 341 |
-
|
| 342 |
-
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
| 346 |
-
|
| 347 |
-
|
| 348 |
-
|
| 349 |
-
|
| 350 |
-
|
| 351 |
-
|
| 352 |
-
|
| 353 |
-
|
| 354 |
-
|
| 355 |
-
|
| 356 |
-
|
| 357 |
-
|
| 358 |
-
|
| 359 |
-
|
| 360 |
-
|
| 361 |
-
|
| 362 |
-
|
| 363 |
-
|
| 364 |
-
|
| 365 |
-
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
|
| 369 |
-
|
| 370 |
-
|
| 371 |
-
|
| 372 |
-
|
| 373 |
-
|
| 374 |
-
|
| 375 |
-
|
| 376 |
-
color:
|
| 377 |
-
|
| 378 |
-
|
| 379 |
-
|
| 380 |
-
|
| 381 |
-
|
| 382 |
-
|
| 383 |
-
|
| 384 |
-
|
| 385 |
-
|
| 386 |
-
|
| 387 |
-
|
| 388 |
-
|
| 389 |
-
|
| 390 |
-
|
| 391 |
-
|
| 392 |
-
|
| 393 |
-
|
| 394 |
-
|
| 395 |
-
|
| 396 |
-
}
|
| 397 |
-
|
| 398 |
-
.
|
| 399 |
-
|
| 400 |
-
|
| 401 |
-
|
| 402 |
-
}
|
| 403 |
-
|
| 404 |
-
.
|
| 405 |
-
|
| 406 |
-
|
| 407 |
-
|
| 408 |
-
|
| 409 |
-
|
| 410 |
-
|
| 411 |
-
|
| 412 |
-
|
| 413 |
-
|
| 414 |
-
|
| 415 |
-
|
| 416 |
-
|
| 417 |
-
|
| 418 |
-
|
| 419 |
-
|
| 420 |
-
|
| 421 |
-
|
| 422 |
-
|
| 423 |
-
|
| 424 |
-
|
| 425 |
-
|
| 426 |
-
|
| 427 |
-
|
| 428 |
-
|
| 429 |
-
|
| 430 |
-
|
| 431 |
-
|
| 432 |
-
|
| 433 |
-
|
| 434 |
-
|
| 435 |
-
|
| 436 |
-
|
| 437 |
-
transition:
|
| 438 |
-
|
| 439 |
-
|
| 440 |
-
|
| 441 |
-
|
| 442 |
-
|
| 443 |
-
|
| 444 |
-
|
| 445 |
-
|
| 446 |
-
|
| 447 |
-
|
| 448 |
-
|
| 449 |
-
|
| 450 |
-
}
|
| 451 |
-
|
| 452 |
-
.
|
| 453 |
-
.
|
| 454 |
-
.
|
| 455 |
-
.
|
| 456 |
-
|
| 457 |
-
.
|
| 458 |
-
|
| 459 |
-
|
| 460 |
-
|
| 461 |
-
|
| 462 |
-
|
| 463 |
-
|
| 464 |
-
|
| 465 |
-
|
| 466 |
-
|
| 467 |
-
|
| 468 |
-
|
| 469 |
-
|
| 470 |
-
|
| 471 |
-
|
| 472 |
-
|
| 473 |
-
|
| 474 |
-
|
| 475 |
-
|
| 476 |
-
|
| 477 |
-
|
| 478 |
-
|
| 479 |
-
|
| 480 |
-
|
| 481 |
-
|
| 482 |
-
|
| 483 |
-
|
| 484 |
-
|
| 485 |
-
|
| 486 |
-
|
| 487 |
-
|
| 488 |
-
|
| 489 |
-
|
| 490 |
-
|
| 491 |
-
|
| 492 |
-
|
| 493 |
-
|
| 494 |
-
|
| 495 |
-
|
| 496 |
-
|
| 497 |
-
|
| 498 |
-
|
| 499 |
-
|
| 500 |
-
padding:
|
| 501 |
-
background: linear-gradient(
|
| 502 |
-
|
| 503 |
-
|
| 504 |
-
|
| 505 |
-
|
| 506 |
-
|
| 507 |
-
|
| 508 |
-
|
| 509 |
-
|
| 510 |
-
|
| 511 |
-
|
| 512 |
-
|
| 513 |
-
|
| 514 |
-
|
| 515 |
-
|
| 516 |
-
|
| 517 |
-
|
| 518 |
-
|
| 519 |
-
|
| 520 |
-
|
| 521 |
-
|
| 522 |
-
background: rgba(
|
| 523 |
-
|
| 524 |
-
|
| 525 |
-
|
| 526 |
-
|
| 527 |
-
|
| 528 |
-
|
| 529 |
-
|
| 530 |
-
|
| 531 |
-
|
| 532 |
-
|
| 533 |
-
|
| 534 |
-
|
| 535 |
-
|
| 536 |
-
|
| 537 |
-
|
| 538 |
-
|
| 539 |
-
|
| 540 |
-
|
| 541 |
-
|
| 542 |
-
|
| 543 |
-
|
| 544 |
-
|
| 545 |
-
|
| 546 |
-
|
| 547 |
-
|
| 548 |
-
|
| 549 |
-
|
| 550 |
-
|
| 551 |
-
|
| 552 |
-
|
| 553 |
-
|
| 554 |
-
|
| 555 |
-
|
| 556 |
-
|
| 557 |
-
|
| 558 |
-
|
| 559 |
-
|
| 560 |
-
|
| 561 |
-
|
| 562 |
-
|
| 563 |
-
|
| 564 |
-
|
| 565 |
-
|
| 566 |
-
|
| 567 |
-
|
| 568 |
-
|
| 569 |
-
|
| 570 |
-
|
| 571 |
-
|
| 572 |
-
|
| 573 |
-
|
| 574 |
-
|
| 575 |
-
|
| 576 |
-
|
| 577 |
-
|
| 578 |
-
|
| 579 |
-
|
| 580 |
-
}
|
| 581 |
-
|
| 582 |
-
.
|
| 583 |
-
|
| 584 |
-
|
| 585 |
-
|
| 586 |
-
|
| 587 |
-
|
| 588 |
-
|
| 589 |
-
|
| 590 |
-
|
| 591 |
-
|
| 592 |
-
border-
|
| 593 |
-
|
| 594 |
-
|
| 595 |
-
|
| 596 |
-
|
| 597 |
-
|
| 598 |
-
|
| 599 |
-
|
| 600 |
-
|
| 601 |
-
|
| 602 |
-
|
| 603 |
-
|
| 604 |
-
|
| 605 |
-
|
| 606 |
-
|
| 607 |
-
|
| 608 |
-
|
| 609 |
-
|
| 610 |
-
|
| 611 |
-
|
| 612 |
-
|
| 613 |
-
|
| 614 |
-
|
| 615 |
-
|
| 616 |
-
|
| 617 |
-
|
| 618 |
-
|
| 619 |
-
|
| 620 |
-
|
| 621 |
-
|
| 622 |
-
|
| 623 |
-
|
| 624 |
-
|
| 625 |
-
|
| 626 |
-
|
| 627 |
-
|
| 628 |
-
|
| 629 |
-
|
| 630 |
-
|
| 631 |
-
|
| 632 |
-
|
| 633 |
-
|
| 634 |
-
|
| 635 |
-
|
| 636 |
-
|
| 637 |
-
|
| 638 |
-
|
| 639 |
-
|
| 640 |
-
|
| 641 |
-
|
| 642 |
-
|
| 643 |
-
|
| 644 |
-
|
| 645 |
-
|
| 646 |
-
|
| 647 |
-
|
| 648 |
-
|
| 649 |
-
|
| 650 |
-
|
| 651 |
-
|
| 652 |
-
|
| 653 |
-
|
| 654 |
-
|
| 655 |
-
|
| 656 |
-
|
| 657 |
-
|
| 658 |
-
|
| 659 |
-
|
| 660 |
-
|
| 661 |
-
|
| 662 |
-
|
| 663 |
-
|
| 664 |
-
|
| 665 |
-
|
| 666 |
-
|
| 667 |
-
|
| 668 |
-
|
| 669 |
-
|
| 670 |
-
|
| 671 |
-
|
| 672 |
-
|
| 673 |
-
|
| 674 |
-
|
| 675 |
-
|
| 676 |
-
|
| 677 |
-
|
| 678 |
-
|
| 679 |
-
|
| 680 |
-
|
| 681 |
-
|
| 682 |
-
|
| 683 |
-
|
| 684 |
-
|
| 685 |
-
|
| 686 |
-
|
| 687 |
-
|
| 688 |
-
|
| 689 |
-
|
| 690 |
-
.
|
| 691 |
-
|
| 692 |
-
|
| 693 |
-
|
| 694 |
-
|
| 695 |
-
|
| 696 |
-
|
| 697 |
-
|
| 698 |
-
|
| 699 |
-
|
| 700 |
-
|
| 701 |
-
|
| 702 |
-
|
| 703 |
-
|
| 704 |
-
|
| 705 |
-
}
|
| 706 |
-
|
| 707 |
-
.
|
| 708 |
-
|
| 709 |
-
}
|
| 710 |
-
|
| 711 |
-
.
|
| 712 |
-
|
| 713 |
-
}
|
| 714 |
-
|
| 715 |
-
|
| 716 |
-
|
| 717 |
-
|
| 718 |
-
|
| 719 |
-
|
| 720 |
-
|
| 721 |
-
|
| 722 |
-
|
| 723 |
-
}
|
| 724 |
-
|
| 725 |
-
|
| 726 |
-
|
| 727 |
-
|
| 728 |
-
|
| 729 |
-
|
| 730 |
-
|
| 731 |
-
|
| 732 |
-
|
| 733 |
-
|
| 734 |
-
|
| 735 |
-
|
| 736 |
-
|
| 737 |
-
|
| 738 |
-
|
| 739 |
-
|
| 740 |
-
|
| 741 |
-
|
| 742 |
-
|
| 743 |
-
|
| 744 |
-
|
| 745 |
-
|
| 746 |
-
|
| 747 |
-
|
| 748 |
-
|
| 749 |
-
|
| 750 |
-
|
| 751 |
-
|
| 752 |
-
|
| 753 |
-
|
| 754 |
-
|
| 755 |
-
|
| 756 |
-
|
| 757 |
-
|
| 758 |
-
|
| 759 |
-
|
| 760 |
-
|
| 761 |
-
|
| 762 |
-
|
| 763 |
-
|
| 764 |
-
|
| 765 |
-
|
| 766 |
-
|
| 767 |
-
|
| 768 |
-
|
| 769 |
-
|
| 770 |
-
|
| 771 |
-
|
| 772 |
-
|
| 773 |
-
|
| 774 |
-
|
| 775 |
-
|
| 776 |
-
|
| 777 |
-
|
| 778 |
-
|
| 779 |
-
|
| 780 |
-
|
| 781 |
-
|
| 782 |
-
.
|
| 783 |
-
|
| 784 |
-
|
| 785 |
-
|
| 786 |
-
|
| 787 |
-
|
| 788 |
-
|
| 789 |
-
|
| 790 |
-
|
| 791 |
-
|
| 792 |
-
|
| 793 |
-
|
| 794 |
-
|
| 795 |
-
}
|
| 796 |
-
|
| 797 |
-
|
| 798 |
-
|
| 799 |
-
|
| 800 |
-
|
| 801 |
-
|
| 802 |
-
|
| 803 |
-
|
| 804 |
-
|
| 805 |
-
|
| 806 |
-
|
| 807 |
-
|
| 808 |
-
|
| 809 |
-
|
| 810 |
-
|
| 811 |
-
|
| 812 |
-
|
| 813 |
-
|
| 814 |
-
|
| 815 |
-
|
| 816 |
-
|
| 817 |
-
|
| 818 |
-
|
| 819 |
-
|
| 820 |
-
|
| 821 |
-
|
| 822 |
-
|
| 823 |
-
|
| 824 |
-
|
| 825 |
-
|
| 826 |
-
|
| 827 |
-
|
| 828 |
-
|
| 829 |
-
|
| 830 |
-
|
| 831 |
-
|
| 832 |
-
|
| 833 |
-
|
| 834 |
-
|
| 835 |
-
|
| 836 |
-
|
| 837 |
-
|
| 838 |
-
|
| 839 |
-
|
| 840 |
-
|
| 841 |
-
|
| 842 |
-
|
| 843 |
-
|
| 844 |
-
}
|
| 845 |
-
|
| 846 |
-
|
| 847 |
-
|
| 848 |
-
|
| 849 |
-
|
| 850 |
-
|
| 851 |
-
|
| 852 |
-
|
| 853 |
-
|
| 854 |
-
|
| 855 |
-
|
| 856 |
-
|
| 857 |
-
|
| 858 |
-
|
| 859 |
-
|
| 860 |
-
|
| 861 |
-
|
| 862 |
-
|
| 863 |
-
|
| 864 |
-
|
| 865 |
-
|
| 866 |
-
|
| 867 |
-
|
| 868 |
-
|
| 869 |
-
|
| 870 |
-
|
| 871 |
-
|
| 872 |
-
|
| 873 |
-
|
| 874 |
-
|
| 875 |
-
|
| 876 |
-
|
| 877 |
-
|
| 878 |
-
|
| 879 |
-
|
| 880 |
-
|
| 881 |
-
|
| 882 |
-
|
| 883 |
-
|
| 884 |
-
|
| 885 |
-
|
| 886 |
-
|
| 887 |
-
|
| 888 |
-
|
| 889 |
-
|
| 890 |
-
|
| 891 |
-
|
| 892 |
-
|
| 893 |
-
|
| 894 |
-
|
| 895 |
-
|
| 896 |
-
|
| 897 |
-
|
| 898 |
-
|
| 899 |
-
|
| 900 |
-
|
| 901 |
-
|
| 902 |
-
|
| 903 |
-
|
| 904 |
-
|
| 905 |
-
|
| 906 |
-
|
| 907 |
-
|
| 908 |
-
|
| 909 |
-
|
| 910 |
-
|
| 911 |
-
|
| 912 |
-
|
| 913 |
-
|
| 914 |
-
|
| 915 |
-
|
| 916 |
-
|
| 917 |
-
|
| 918 |
-
|
| 919 |
-
|
| 920 |
-
|
| 921 |
-
|
| 922 |
-
|
| 923 |
-
|
| 924 |
-
|
| 925 |
-
|
| 926 |
-
|
| 927 |
-
|
| 928 |
-
|
| 929 |
-
|
| 930 |
-
|
| 931 |
-
|
| 932 |
-
.
|
| 933 |
-
|
| 934 |
-
|
| 935 |
-
|
| 936 |
-
|
| 937 |
-
|
| 938 |
-
|
| 939 |
-
|
| 940 |
-
|
| 941 |
-
|
| 942 |
-
|
| 943 |
-
|
| 944 |
-
}
|
| 945 |
-
|
| 946 |
-
|
| 947 |
-
|
| 948 |
-
|
| 949 |
-
|
| 950 |
-
|
| 951 |
-
|
| 952 |
-
|
| 953 |
-
|
| 954 |
-
|
| 955 |
-
|
| 956 |
-
|
| 957 |
-
|
| 958 |
-
|
| 959 |
-
|
| 960 |
-
|
| 961 |
-
|
| 962 |
-
|
| 963 |
-
|
| 964 |
-
|
| 965 |
-
|
| 966 |
-
|
| 967 |
-
|
| 968 |
-
|
| 969 |
-
|
| 970 |
-
|
| 971 |
-
|
| 972 |
-
|
| 973 |
-
|
| 974 |
-
|
| 975 |
-
|
| 976 |
-
|
| 977 |
-
|
| 978 |
-
|
| 979 |
-
|
| 980 |
-
|
| 981 |
-
|
| 982 |
-
|
| 983 |
-
|
| 984 |
-
|
| 985 |
-
|
| 986 |
-
|
| 987 |
-
|
| 988 |
-
|
| 989 |
-
position:
|
| 990 |
-
|
| 991 |
-
|
| 992 |
-
|
| 993 |
-
|
| 994 |
-
|
| 995 |
-
|
| 996 |
-
|
| 997 |
-
|
| 998 |
-
|
| 999 |
-
|
| 1000 |
-
|
| 1001 |
-
|
| 1002 |
-
|
| 1003 |
-
|
| 1004 |
-
|
| 1005 |
-
|
| 1006 |
-
|
| 1007 |
-
|
| 1008 |
-
|
| 1009 |
-
|
| 1010 |
-
|
| 1011 |
-
|
| 1012 |
-
|
| 1013 |
-
|
| 1014 |
-
|
| 1015 |
-
|
| 1016 |
-
|
| 1017 |
-
|
| 1018 |
-
|
| 1019 |
-
|
| 1020 |
-
|
| 1021 |
-
|
| 1022 |
-
|
| 1023 |
-
|
| 1024 |
-
|
| 1025 |
-
|
| 1026 |
-
|
| 1027 |
-
|
| 1028 |
-
|
| 1029 |
-
|
| 1030 |
-
|
| 1031 |
-
|
| 1032 |
-
|
| 1033 |
-
|
| 1034 |
-
|
| 1035 |
-
|
| 1036 |
-
|
| 1037 |
-
|
| 1038 |
-
|
| 1039 |
-
|
| 1040 |
-
|
| 1041 |
-
|
| 1042 |
-
|
| 1043 |
-
|
| 1044 |
-
|
| 1045 |
-
|
| 1046 |
-
|
| 1047 |
-
|
| 1048 |
-
|
| 1049 |
-
|
| 1050 |
-
|
| 1051 |
-
|
| 1052 |
-
|
| 1053 |
-
|
| 1054 |
-
|
| 1055 |
-
|
| 1056 |
-
|
| 1057 |
-
|
| 1058 |
-
|
| 1059 |
-
|
| 1060 |
-
|
| 1061 |
-
|
| 1062 |
-
|
| 1063 |
-
|
| 1064 |
-
|
| 1065 |
-
|
| 1066 |
-
|
| 1067 |
-
|
| 1068 |
-
|
| 1069 |
-
|
| 1070 |
-
|
| 1071 |
-
|
| 1072 |
-
|
| 1073 |
-
|
| 1074 |
-
|
| 1075 |
-
|
| 1076 |
-
|
| 1077 |
-
|
| 1078 |
-
|
| 1079 |
-
|
| 1080 |
-
|
| 1081 |
-
|
| 1082 |
-
|
| 1083 |
-
|
| 1084 |
-
|
| 1085 |
-
|
| 1086 |
-
|
| 1087 |
-
|
| 1088 |
-
|
| 1089 |
-
|
| 1090 |
-
|
| 1091 |
-
|
| 1092 |
-
|
| 1093 |
-
|
| 1094 |
-
|
| 1095 |
-
|
| 1096 |
-
|
| 1097 |
-
|
| 1098 |
-
|
| 1099 |
-
|
| 1100 |
-
|
| 1101 |
-
|
| 1102 |
-
|
| 1103 |
-
|
| 1104 |
-
|
| 1105 |
-
|
| 1106 |
-
|
| 1107 |
-
|
| 1108 |
-
|
| 1109 |
-
|
| 1110 |
-
|
| 1111 |
-
|
| 1112 |
-
|
| 1113 |
-
|
| 1114 |
-
|
| 1115 |
-
|
| 1116 |
-
|
| 1117 |
-
|
| 1118 |
-
|
| 1119 |
-
|
| 1120 |
-
|
| 1121 |
-
|
| 1122 |
-
|
| 1123 |
-
|
| 1124 |
-
|
| 1125 |
-
|
| 1126 |
-
|
| 1127 |
-
|
| 1128 |
-
|
| 1129 |
-
|
| 1130 |
-
|
| 1131 |
-
|
| 1132 |
-
|
| 1133 |
-
|
| 1134 |
-
|
| 1135 |
-
|
| 1136 |
-
|
| 1137 |
-
|
| 1138 |
-
|
| 1139 |
-
|
| 1140 |
-
|
| 1141 |
-
|
| 1142 |
-
|
| 1143 |
-
|
| 1144 |
-
|
| 1145 |
-
|
| 1146 |
-
|
| 1147 |
-
|
| 1148 |
-
|
| 1149 |
-
|
| 1150 |
-
|
| 1151 |
-
|
| 1152 |
-
|
| 1153 |
-
|
| 1154 |
-
|
| 1155 |
-
|
| 1156 |
-
|
| 1157 |
-
|
| 1158 |
-
|
| 1159 |
-
|
| 1160 |
-
|
| 1161 |
-
|
| 1162 |
-
|
| 1163 |
-
|
| 1164 |
-
|
| 1165 |
-
|
| 1166 |
-
|
| 1167 |
-
|
| 1168 |
-
|
| 1169 |
-
|
| 1170 |
-
|
| 1171 |
-
|
| 1172 |
-
|
| 1173 |
-
|
| 1174 |
-
|
| 1175 |
-
|
| 1176 |
-
|
| 1177 |
-
|
| 1178 |
-
|
| 1179 |
-
|
| 1180 |
-
|
| 1181 |
-
|
| 1182 |
-
|
| 1183 |
-
|
| 1184 |
-
|
| 1185 |
-
|
| 1186 |
-
|
| 1187 |
-
|
| 1188 |
-
|
| 1189 |
-
|
| 1190 |
-
|
| 1191 |
-
|
| 1192 |
-
|
| 1193 |
-
|
| 1194 |
-
|
| 1195 |
-
|
| 1196 |
-
|
| 1197 |
-
|
| 1198 |
-
|
| 1199 |
-
|
| 1200 |
-
}
|
| 1201 |
-
|
| 1202 |
-
|
| 1203 |
-
|
| 1204 |
-
.
|
| 1205 |
-
|
| 1206 |
-
|
| 1207 |
-
|
| 1208 |
-
|
| 1209 |
-
|
| 1210 |
-
|
| 1211 |
-
|
| 1212 |
-
|
| 1213 |
-
|
| 1214 |
-
|
| 1215 |
-
|
| 1216 |
-
|
| 1217 |
-
|
| 1218 |
-
|
| 1219 |
-
|
| 1220 |
-
|
| 1221 |
-
|
| 1222 |
-
|
| 1223 |
-
|
| 1224 |
-
|
| 1225 |
-
|
| 1226 |
-
|
| 1227 |
-
|
| 1228 |
-
|
| 1229 |
-
|
| 1230 |
-
|
| 1231 |
-
|
| 1232 |
-
|
| 1233 |
-
|
| 1234 |
-
|
| 1235 |
-
|
| 1236 |
-
|
| 1237 |
-
|
| 1238 |
-
|
| 1239 |
-
|
| 1240 |
-
|
| 1241 |
-
|
| 1242 |
-
|
| 1243 |
-
|
| 1244 |
-
|
| 1245 |
-
|
| 1246 |
-
|
| 1247 |
-
|
| 1248 |
-
|
| 1249 |
-
|
| 1250 |
-
|
| 1251 |
-
|
| 1252 |
-
|
| 1253 |
-
|
| 1254 |
-
|
| 1255 |
-
|
| 1256 |
-
|
| 1257 |
-
|
| 1258 |
-
|
| 1259 |
-
|
| 1260 |
-
|
| 1261 |
-
|
| 1262 |
-
|
| 1263 |
-
|
| 1264 |
-
|
| 1265 |
-
|
| 1266 |
-
|
| 1267 |
-
|
| 1268 |
-
|
| 1269 |
-
|
| 1270 |
-
|
| 1271 |
-
|
| 1272 |
-
|
| 1273 |
-
|
| 1274 |
-
|
| 1275 |
-
|
| 1276 |
-
|
| 1277 |
-
|
| 1278 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* style.css - Enhanced Glass Design with Animations */
|
| 2 |
+
:root {
|
| 3 |
+
--bg-color: #0f172a;
|
| 4 |
+
--panel-bg: rgba(30, 41, 59, 0.65);
|
| 5 |
+
--panel-bg-strong: rgba(30, 41, 59, 0.85);
|
| 6 |
+
--panel-border: rgba(148, 163, 184, 0.15);
|
| 7 |
+
--panel-border-strong: rgba(148, 163, 184, 0.3);
|
| 8 |
+
--accent-color: #3b82f6;
|
| 9 |
+
--accent-secondary: #22d3ee;
|
| 10 |
+
--accent-hover: #2563eb;
|
| 11 |
+
--text-main: #f1f5f9;
|
| 12 |
+
--text-sub: #94a3b8;
|
| 13 |
+
--btn-shadow: #1e3a8a;
|
| 14 |
+
--glass-shine: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
|
| 15 |
+
--transition-fast: 0.2s ease;
|
| 16 |
+
--transition-normal: 0.3s ease;
|
| 17 |
+
--transition-slow: 0.5s ease;
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
* {
|
| 21 |
+
box-sizing: border-box;
|
| 22 |
+
margin: 0;
|
| 23 |
+
padding: 0;
|
| 24 |
+
-webkit-tap-highlight-color: transparent;
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
body {
|
| 28 |
+
font-family: 'Avenir Next', 'Trebuchet MS', 'Segoe UI', sans-serif;
|
| 29 |
+
background:
|
| 30 |
+
radial-gradient(700px 360px at 10% -10%, rgba(59, 130, 246, 0.25), transparent 60%),
|
| 31 |
+
radial-gradient(700px 420px at 90% -20%, rgba(14, 165, 233, 0.18), transparent 55%),
|
| 32 |
+
radial-gradient(600px 500px at 50% 20%, rgba(15, 23, 42, 0.2), transparent 60%),
|
| 33 |
+
var(--bg-color);
|
| 34 |
+
color: var(--text-main);
|
| 35 |
+
height: 100vh;
|
| 36 |
+
display: flex;
|
| 37 |
+
flex-direction: column;
|
| 38 |
+
overflow: hidden;
|
| 39 |
+
animation: fadeIn 0.6s ease-out;
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
@keyframes fadeIn {
|
| 43 |
+
from { opacity: 0; }
|
| 44 |
+
to { opacity: 1; }
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
/* --- Enhanced Glass Components --- */
|
| 48 |
+
.glass-panel {
|
| 49 |
+
background: var(--panel-bg);
|
| 50 |
+
backdrop-filter: blur(20px) saturate(180%);
|
| 51 |
+
-webkit-backdrop-filter: blur(20px) saturate(180%);
|
| 52 |
+
border: 1px solid var(--panel-border);
|
| 53 |
+
position: relative;
|
| 54 |
+
transition: all var(--transition-normal);
|
| 55 |
+
will-change: transform;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
@media (max-width: 768px) {
|
| 59 |
+
.status-meter {
|
| 60 |
+
width: 120px;
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
.prompt-link {
|
| 64 |
+
font-size: 0.75rem;
|
| 65 |
+
padding: 5px 10px;
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
.glass-panel {
|
| 69 |
+
backdrop-filter: blur(10px) saturate(120%);
|
| 70 |
+
-webkit-backdrop-filter: blur(10px) saturate(120%);
|
| 71 |
+
}
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
.glass-panel::before {
|
| 75 |
+
content: '';
|
| 76 |
+
position: absolute;
|
| 77 |
+
top: 0;
|
| 78 |
+
left: 0;
|
| 79 |
+
right: 0;
|
| 80 |
+
height: 1px;
|
| 81 |
+
background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
|
| 82 |
+
opacity: 0.5;
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
.glass-panel:hover {
|
| 86 |
+
border-color: var(--panel-border-strong);
|
| 87 |
+
transform: translateY(-1px);
|
| 88 |
+
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
/* --- Enhanced 3D Buttons --- */
|
| 92 |
+
.btn-3d {
|
| 93 |
+
background: linear-gradient(135deg, var(--accent-color) 0%, #2563eb 100%);
|
| 94 |
+
color: white;
|
| 95 |
+
border: none;
|
| 96 |
+
border-radius: 12px;
|
| 97 |
+
font-weight: 600;
|
| 98 |
+
box-shadow:
|
| 99 |
+
0 4px 0 var(--btn-shadow),
|
| 100 |
+
0 5px 15px rgba(59, 130, 246, 0.3),
|
| 101 |
+
inset 0 1px 0 rgba(255, 255, 255, 0.2);
|
| 102 |
+
transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
|
| 103 |
+
cursor: pointer;
|
| 104 |
+
display: inline-flex;
|
| 105 |
+
align-items: center;
|
| 106 |
+
justify-content: center;
|
| 107 |
+
position: relative;
|
| 108 |
+
overflow: hidden;
|
| 109 |
+
}
|
| 110 |
+
|
| 111 |
+
.btn-3d::before {
|
| 112 |
+
content: '';
|
| 113 |
+
position: absolute;
|
| 114 |
+
top: 0;
|
| 115 |
+
left: -100%;
|
| 116 |
+
width: 100%;
|
| 117 |
+
height: 100%;
|
| 118 |
+
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
|
| 119 |
+
transition: left 0.5s;
|
| 120 |
+
}
|
| 121 |
+
|
| 122 |
+
.btn-3d:hover {
|
| 123 |
+
transform: translateY(-2px);
|
| 124 |
+
box-shadow:
|
| 125 |
+
0 6px 0 var(--btn-shadow),
|
| 126 |
+
0 8px 20px rgba(59, 130, 246, 0.4),
|
| 127 |
+
inset 0 1px 0 rgba(255, 255, 255, 0.2);
|
| 128 |
+
}
|
| 129 |
+
|
| 130 |
+
.btn-3d:hover::before {
|
| 131 |
+
left: 100%;
|
| 132 |
+
}
|
| 133 |
+
|
| 134 |
+
.btn-3d:active {
|
| 135 |
+
transform: translateY(4px);
|
| 136 |
+
box-shadow:
|
| 137 |
+
0 0 0 var(--btn-shadow),
|
| 138 |
+
0 2px 5px rgba(59, 130, 246, 0.3);
|
| 139 |
+
}
|
| 140 |
+
|
| 141 |
+
.btn-3d:disabled {
|
| 142 |
+
background: linear-gradient(135deg, #475569 0%, #334155 100%);
|
| 143 |
+
box-shadow: none;
|
| 144 |
+
transform: none;
|
| 145 |
+
opacity: 0.7;
|
| 146 |
+
cursor: not-allowed;
|
| 147 |
+
}
|
| 148 |
+
|
| 149 |
+
/* --- Layout --- */
|
| 150 |
+
.app-container {
|
| 151 |
+
max-width: 1200px;
|
| 152 |
+
margin: 0 auto;
|
| 153 |
+
width: 100%;
|
| 154 |
+
height: 100%;
|
| 155 |
+
display: flex;
|
| 156 |
+
flex-direction: column;
|
| 157 |
+
position: relative;
|
| 158 |
+
animation: slideUp 0.6s ease-out;
|
| 159 |
+
}
|
| 160 |
+
|
| 161 |
+
@keyframes slideUp {
|
| 162 |
+
from {
|
| 163 |
+
opacity: 0;
|
| 164 |
+
transform: translateY(20px);
|
| 165 |
+
}
|
| 166 |
+
to {
|
| 167 |
+
opacity: 1;
|
| 168 |
+
transform: translateY(0);
|
| 169 |
+
}
|
| 170 |
+
}
|
| 171 |
+
|
| 172 |
+
header {
|
| 173 |
+
padding: 15px 20px;
|
| 174 |
+
display: flex;
|
| 175 |
+
justify-content: space-between;
|
| 176 |
+
align-items: center;
|
| 177 |
+
flex-shrink: 0;
|
| 178 |
+
margin-top: 70px;
|
| 179 |
+
transition: margin-top var(--transition-normal);
|
| 180 |
+
}
|
| 181 |
+
|
| 182 |
+
header h2 {
|
| 183 |
+
font-size: 1.2rem;
|
| 184 |
+
font-weight: 700;
|
| 185 |
+
letter-spacing: 0.5px;
|
| 186 |
+
background: linear-gradient(135deg, var(--text-main) 0%, var(--text-sub) 100%);
|
| 187 |
+
-webkit-background-clip: text;
|
| 188 |
+
-webkit-text-fill-color: transparent;
|
| 189 |
+
background-clip: text;
|
| 190 |
+
}
|
| 191 |
+
|
| 192 |
+
.header-stack {
|
| 193 |
+
display: flex;
|
| 194 |
+
flex-direction: column;
|
| 195 |
+
gap: 8px;
|
| 196 |
+
width: 100%;
|
| 197 |
+
}
|
| 198 |
+
|
| 199 |
+
.title-row {
|
| 200 |
+
display: flex;
|
| 201 |
+
align-items: center;
|
| 202 |
+
gap: 12px;
|
| 203 |
+
flex-wrap: wrap;
|
| 204 |
+
}
|
| 205 |
+
|
| 206 |
+
.prompt-link {
|
| 207 |
+
font-size: 0.85rem;
|
| 208 |
+
font-weight: 600;
|
| 209 |
+
text-decoration: none;
|
| 210 |
+
color: var(--text-main);
|
| 211 |
+
padding: 6px 12px;
|
| 212 |
+
border-radius: 999px;
|
| 213 |
+
background: rgba(59, 130, 246, 0.15);
|
| 214 |
+
border: 1px solid rgba(59, 130, 246, 0.35);
|
| 215 |
+
transition: all var(--transition-fast);
|
| 216 |
+
}
|
| 217 |
+
|
| 218 |
+
.prompt-link:hover {
|
| 219 |
+
background: rgba(59, 130, 246, 0.3);
|
| 220 |
+
transform: translateY(-1px);
|
| 221 |
+
}
|
| 222 |
+
|
| 223 |
+
.status-bar {
|
| 224 |
+
display: flex;
|
| 225 |
+
align-items: center;
|
| 226 |
+
flex-wrap: wrap;
|
| 227 |
+
gap: 10px;
|
| 228 |
+
font-size: 12px;
|
| 229 |
+
color: var(--text-sub);
|
| 230 |
+
}
|
| 231 |
+
|
| 232 |
+
.status-bar::before {
|
| 233 |
+
content: '';
|
| 234 |
+
width: 6px;
|
| 235 |
+
height: 6px;
|
| 236 |
+
border-radius: 50%;
|
| 237 |
+
background: rgba(148, 163, 184, 0.8);
|
| 238 |
+
box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.08);
|
| 239 |
+
transition: background var(--transition-fast);
|
| 240 |
+
}
|
| 241 |
+
|
| 242 |
+
.status-bar.is-generating::before {
|
| 243 |
+
background: var(--accent-secondary);
|
| 244 |
+
box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.25);
|
| 245 |
+
animation: statusPulse 1.4s ease-in-out infinite;
|
| 246 |
+
}
|
| 247 |
+
|
| 248 |
+
.status-text {
|
| 249 |
+
font-weight: 500;
|
| 250 |
+
}
|
| 251 |
+
|
| 252 |
+
.status-meter {
|
| 253 |
+
position: relative;
|
| 254 |
+
width: 160px;
|
| 255 |
+
height: 6px;
|
| 256 |
+
background: rgba(15, 23, 42, 0.6);
|
| 257 |
+
border-radius: 999px;
|
| 258 |
+
overflow: hidden;
|
| 259 |
+
opacity: 0;
|
| 260 |
+
transform: scaleX(0.85);
|
| 261 |
+
transform-origin: left center;
|
| 262 |
+
transition: all var(--transition-fast);
|
| 263 |
+
}
|
| 264 |
+
|
| 265 |
+
.status-meter-fill {
|
| 266 |
+
height: 100%;
|
| 267 |
+
width: 0%;
|
| 268 |
+
background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
|
| 269 |
+
box-shadow: 0 0 10px rgba(34, 211, 238, 0.45);
|
| 270 |
+
transition: width 0.9s linear;
|
| 271 |
+
}
|
| 272 |
+
|
| 273 |
+
.status-timer {
|
| 274 |
+
min-width: 44px;
|
| 275 |
+
text-align: right;
|
| 276 |
+
font-variant-numeric: tabular-nums;
|
| 277 |
+
opacity: 0;
|
| 278 |
+
transition: opacity var(--transition-fast);
|
| 279 |
+
}
|
| 280 |
+
|
| 281 |
+
.status-bar.is-generating .status-meter,
|
| 282 |
+
.status-bar.is-generating .status-timer {
|
| 283 |
+
opacity: 1;
|
| 284 |
+
transform: scaleX(1);
|
| 285 |
+
}
|
| 286 |
+
|
| 287 |
+
@keyframes statusPulse {
|
| 288 |
+
0%, 100% {
|
| 289 |
+
transform: scale(1);
|
| 290 |
+
opacity: 0.8;
|
| 291 |
+
}
|
| 292 |
+
50% {
|
| 293 |
+
transform: scale(1.25);
|
| 294 |
+
opacity: 1;
|
| 295 |
+
}
|
| 296 |
+
}
|
| 297 |
+
|
| 298 |
+
|
| 299 |
+
body.has-preview header {
|
| 300 |
+
margin-top: 170px;
|
| 301 |
+
}
|
| 302 |
+
|
| 303 |
+
/* --- History Gallery --- */
|
| 304 |
+
.history-container {
|
| 305 |
+
flex: 1;
|
| 306 |
+
overflow-y: auto;
|
| 307 |
+
padding: 10px 20px;
|
| 308 |
+
padding-bottom: 20px;
|
| 309 |
+
scroll-behavior: smooth;
|
| 310 |
+
}
|
| 311 |
+
|
| 312 |
+
.history-container::-webkit-scrollbar {
|
| 313 |
+
width: 8px;
|
| 314 |
+
}
|
| 315 |
+
|
| 316 |
+
.history-container::-webkit-scrollbar-track {
|
| 317 |
+
background: rgba(0, 0, 0, 0.2);
|
| 318 |
+
border-radius: 4px;
|
| 319 |
+
}
|
| 320 |
+
|
| 321 |
+
.history-container::-webkit-scrollbar-thumb {
|
| 322 |
+
background: var(--panel-bg);
|
| 323 |
+
border-radius: 4px;
|
| 324 |
+
transition: background var(--transition-fast);
|
| 325 |
+
}
|
| 326 |
+
|
| 327 |
+
.history-container::-webkit-scrollbar-thumb:hover {
|
| 328 |
+
background: var(--panel-bg-strong);
|
| 329 |
+
}
|
| 330 |
+
|
| 331 |
+
.grid-layout {
|
| 332 |
+
display: grid;
|
| 333 |
+
grid-template-columns: repeat(2, 1fr);
|
| 334 |
+
gap: 16px;
|
| 335 |
+
}
|
| 336 |
+
|
| 337 |
+
.public-gallery-section {
|
| 338 |
+
margin-top: 40px;
|
| 339 |
+
padding: 32px;
|
| 340 |
+
border-radius: 24px;
|
| 341 |
+
border: 1px solid var(--panel-border);
|
| 342 |
+
background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(20, 30, 50, 0.8) 100%);
|
| 343 |
+
backdrop-filter: blur(20px) saturate(180%);
|
| 344 |
+
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
|
| 345 |
+
animation: slideUp 0.6s ease-out;
|
| 346 |
+
position: relative;
|
| 347 |
+
overflow: hidden;
|
| 348 |
+
}
|
| 349 |
+
|
| 350 |
+
.public-gallery-section::before {
|
| 351 |
+
content: '';
|
| 352 |
+
position: absolute;
|
| 353 |
+
top: 0;
|
| 354 |
+
left: 0;
|
| 355 |
+
right: 0;
|
| 356 |
+
height: 1px;
|
| 357 |
+
background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
|
| 358 |
+
opacity: 0.5;
|
| 359 |
+
}
|
| 360 |
+
|
| 361 |
+
.section-title {
|
| 362 |
+
display: flex;
|
| 363 |
+
justify-content: space-between;
|
| 364 |
+
align-items: flex-start;
|
| 365 |
+
gap: 16px;
|
| 366 |
+
flex-wrap: wrap;
|
| 367 |
+
position: relative;
|
| 368 |
+
}
|
| 369 |
+
|
| 370 |
+
.section-title h3 {
|
| 371 |
+
margin: 0;
|
| 372 |
+
font-size: 1.3rem;
|
| 373 |
+
letter-spacing: 0.5px;
|
| 374 |
+
background: linear-gradient(135deg, var(--text-main) 0%, var(--text-sub) 100%);
|
| 375 |
+
-webkit-background-clip: text;
|
| 376 |
+
-webkit-text-fill-color: transparent;
|
| 377 |
+
background-clip: text;
|
| 378 |
+
font-weight: 700;
|
| 379 |
+
}
|
| 380 |
+
|
| 381 |
+
.section-subtitle {
|
| 382 |
+
margin-top: 8px;
|
| 383 |
+
font-size: 0.95rem;
|
| 384 |
+
color: var(--text-sub);
|
| 385 |
+
transition: color var(--transition-fast);
|
| 386 |
+
}
|
| 387 |
+
|
| 388 |
+
.section-subtitle.is-success {
|
| 389 |
+
color: #34d399;
|
| 390 |
+
font-weight: 500;
|
| 391 |
+
}
|
| 392 |
+
|
| 393 |
+
.section-subtitle.is-error {
|
| 394 |
+
color: #f87171;
|
| 395 |
+
font-weight: 500;
|
| 396 |
+
}
|
| 397 |
+
|
| 398 |
+
.section-actions {
|
| 399 |
+
display: flex;
|
| 400 |
+
align-items: center;
|
| 401 |
+
gap: 12px;
|
| 402 |
+
}
|
| 403 |
+
|
| 404 |
+
.public-grid {
|
| 405 |
+
margin-top: 28px;
|
| 406 |
+
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
| 407 |
+
gap: 24px;
|
| 408 |
+
}
|
| 409 |
+
|
| 410 |
+
.public-card {
|
| 411 |
+
position: relative;
|
| 412 |
+
border-radius: 18px;
|
| 413 |
+
overflow: hidden;
|
| 414 |
+
border: 1px solid var(--panel-border);
|
| 415 |
+
background: rgba(15, 23, 42, 0.85);
|
| 416 |
+
aspect-ratio: 16 / 9;
|
| 417 |
+
cursor: pointer;
|
| 418 |
+
transition: all var(--transition-normal);
|
| 419 |
+
box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
|
| 420 |
+
animation: scaleIn 0.5s ease-out backwards;
|
| 421 |
+
content-visibility: auto;
|
| 422 |
+
contain-intrinsic-size: 320px 180px;
|
| 423 |
+
will-change: transform, box-shadow;
|
| 424 |
+
}
|
| 425 |
+
|
| 426 |
+
@media (max-width: 768px) {
|
| 427 |
+
.public-card {
|
| 428 |
+
animation: fadeIn 0.3s ease-out backwards;
|
| 429 |
+
}
|
| 430 |
+
}
|
| 431 |
+
|
| 432 |
+
.public-card img {
|
| 433 |
+
width: 100%;
|
| 434 |
+
height: 100%;
|
| 435 |
+
object-fit: cover;
|
| 436 |
+
display: block;
|
| 437 |
+
transition: transform var(--transition-normal);
|
| 438 |
+
}
|
| 439 |
+
|
| 440 |
+
.public-card:hover {
|
| 441 |
+
transform: translateY(-8px);
|
| 442 |
+
box-shadow: 0 20px 50px rgba(59, 130, 246, 0.3);
|
| 443 |
+
border-color: rgba(59, 130, 246, 0.4);
|
| 444 |
+
}
|
| 445 |
+
|
| 446 |
+
.public-card:hover img {
|
| 447 |
+
transform: scale(1.08);
|
| 448 |
+
}
|
| 449 |
+
|
| 450 |
+
.public-card:nth-child(1) { animation-delay: 0.05s; }
|
| 451 |
+
.public-card:nth-child(2) { animation-delay: 0.1s; }
|
| 452 |
+
.public-card:nth-child(3) { animation-delay: 0.15s; }
|
| 453 |
+
.public-card:nth-child(4) { animation-delay: 0.2s; }
|
| 454 |
+
.public-card:nth-child(5) { animation-delay: 0.25s; }
|
| 455 |
+
.public-card:nth-child(6) { animation-delay: 0.3s; }
|
| 456 |
+
|
| 457 |
+
.public-card-info {
|
| 458 |
+
position: absolute;
|
| 459 |
+
left: 0;
|
| 460 |
+
right: 0;
|
| 461 |
+
bottom: 0;
|
| 462 |
+
padding: 16px;
|
| 463 |
+
background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.7) 40%, rgba(15, 23, 42, 0.95) 100%);
|
| 464 |
+
display: flex;
|
| 465 |
+
flex-direction: column;
|
| 466 |
+
gap: 10px;
|
| 467 |
+
transition: all var(--transition-normal);
|
| 468 |
+
}
|
| 469 |
+
|
| 470 |
+
.public-card:hover .public-card-info {
|
| 471 |
+
padding-bottom: 20px;
|
| 472 |
+
background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.85) 30%, rgba(15, 23, 42, 0.98) 100%);
|
| 473 |
+
}
|
| 474 |
+
|
| 475 |
+
.public-card-prompt {
|
| 476 |
+
margin: 0;
|
| 477 |
+
font-size: 0.9rem;
|
| 478 |
+
color: #f1f5f9;
|
| 479 |
+
line-height: 1.4;
|
| 480 |
+
display: -webkit-box;
|
| 481 |
+
-webkit-line-clamp: 2;
|
| 482 |
+
-webkit-box-orient: vertical;
|
| 483 |
+
overflow: hidden;
|
| 484 |
+
font-weight: 500;
|
| 485 |
+
}
|
| 486 |
+
|
| 487 |
+
.public-card-footer {
|
| 488 |
+
display: flex;
|
| 489 |
+
justify-content: space-between;
|
| 490 |
+
align-items: center;
|
| 491 |
+
font-size: 0.75rem;
|
| 492 |
+
color: rgba(148, 163, 184, 0.9);
|
| 493 |
+
gap: 10px;
|
| 494 |
+
}
|
| 495 |
+
|
| 496 |
+
.public-gallery-empty {
|
| 497 |
+
grid-column: 1 / -1;
|
| 498 |
+
text-align: center;
|
| 499 |
+
color: var(--text-sub);
|
| 500 |
+
padding: 60px 30px;
|
| 501 |
+
background: linear-gradient(135deg, rgba(15, 23, 42, 0.5) 0%, rgba(20, 30, 50, 0.5) 100%);
|
| 502 |
+
border-radius: 20px;
|
| 503 |
+
border: 2px dashed var(--panel-border);
|
| 504 |
+
font-size: 1.1rem;
|
| 505 |
+
}
|
| 506 |
+
|
| 507 |
+
.public-gallery-empty > div:first-child {
|
| 508 |
+
font-size: 48px;
|
| 509 |
+
margin-bottom: 16px;
|
| 510 |
+
}
|
| 511 |
+
|
| 512 |
+
.icon-btn.small {
|
| 513 |
+
width: 36px;
|
| 514 |
+
height: 36px;
|
| 515 |
+
font-size: 14px;
|
| 516 |
+
background: rgba(239, 68, 68, 0.9);
|
| 517 |
+
border-color: rgba(248, 113, 113, 0.7);
|
| 518 |
+
transition: all var(--transition-fast);
|
| 519 |
+
}
|
| 520 |
+
|
| 521 |
+
.icon-btn.small:hover {
|
| 522 |
+
background: rgba(239, 68, 68, 0.95);
|
| 523 |
+
transform: scale(1.15);
|
| 524 |
+
box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
|
| 525 |
+
}
|
| 526 |
+
|
| 527 |
+
.icon-btn.share-btn {
|
| 528 |
+
background: rgba(59, 130, 246, 0.25);
|
| 529 |
+
border-color: rgba(59, 130, 246, 0.4);
|
| 530 |
+
}
|
| 531 |
+
|
| 532 |
+
.icon-btn.share-btn:hover {
|
| 533 |
+
background: rgba(59, 130, 246, 0.4);
|
| 534 |
+
}
|
| 535 |
+
|
| 536 |
+
.icon-btn.public-delete-btn {
|
| 537 |
+
background: rgba(239, 68, 68, 0.9);
|
| 538 |
+
border-color: rgba(248, 113, 113, 0.7);
|
| 539 |
+
}
|
| 540 |
+
|
| 541 |
+
.icon-btn.spinning {
|
| 542 |
+
animation: spin 0.8s linear infinite;
|
| 543 |
+
}
|
| 544 |
+
|
| 545 |
+
@media (max-width: 768px) {
|
| 546 |
+
.icon-btn.spinning {
|
| 547 |
+
animation: spin 1s linear infinite;
|
| 548 |
+
opacity: 0.8;
|
| 549 |
+
}
|
| 550 |
+
}
|
| 551 |
+
|
| 552 |
+
.history-item {
|
| 553 |
+
position: relative;
|
| 554 |
+
aspect-ratio: 16 / 9;
|
| 555 |
+
border-radius: 12px;
|
| 556 |
+
overflow: hidden;
|
| 557 |
+
border: 1px solid var(--panel-border);
|
| 558 |
+
background: rgba(0,0,0,0.2);
|
| 559 |
+
cursor: pointer;
|
| 560 |
+
transition: all var(--transition-normal);
|
| 561 |
+
animation: scaleIn 0.4s ease-out backwards;
|
| 562 |
+
content-visibility: auto;
|
| 563 |
+
contain-intrinsic-size: 320px 180px;
|
| 564 |
+
}
|
| 565 |
+
|
| 566 |
+
@keyframes scaleIn {
|
| 567 |
+
from {
|
| 568 |
+
opacity: 0;
|
| 569 |
+
transform: scale(0.9);
|
| 570 |
+
}
|
| 571 |
+
to {
|
| 572 |
+
opacity: 1;
|
| 573 |
+
transform: scale(1);
|
| 574 |
+
}
|
| 575 |
+
}
|
| 576 |
+
|
| 577 |
+
.history-item:nth-child(1) { animation-delay: 0.05s; }
|
| 578 |
+
.history-item:nth-child(2) { animation-delay: 0.1s; }
|
| 579 |
+
.history-item:nth-child(3) { animation-delay: 0.15s; }
|
| 580 |
+
.history-item:nth-child(4) { animation-delay: 0.2s; }
|
| 581 |
+
.history-item:nth-child(5) { animation-delay: 0.25s; }
|
| 582 |
+
.history-item:nth-child(6) { animation-delay: 0.3s; }
|
| 583 |
+
|
| 584 |
+
.history-item img {
|
| 585 |
+
width: 100%;
|
| 586 |
+
height: 100%;
|
| 587 |
+
object-fit: cover;
|
| 588 |
+
transition: transform var(--transition-normal);
|
| 589 |
+
}
|
| 590 |
+
|
| 591 |
+
.history-item:hover {
|
| 592 |
+
border-color: var(--panel-border-strong);
|
| 593 |
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
|
| 594 |
+
transform: translateY(-4px);
|
| 595 |
+
}
|
| 596 |
+
|
| 597 |
+
.history-item:hover img {
|
| 598 |
+
transform: scale(1.08);
|
| 599 |
+
}
|
| 600 |
+
|
| 601 |
+
.item-badge {
|
| 602 |
+
position: absolute;
|
| 603 |
+
top: 8px;
|
| 604 |
+
left: 8px;
|
| 605 |
+
background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%);
|
| 606 |
+
font-size: 10px;
|
| 607 |
+
padding: 4px 8px;
|
| 608 |
+
border-radius: 6px;
|
| 609 |
+
z-index: 2;
|
| 610 |
+
backdrop-filter: blur(8px);
|
| 611 |
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
| 612 |
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
|
| 613 |
+
transition: all var(--transition-fast);
|
| 614 |
+
}
|
| 615 |
+
|
| 616 |
+
.item-badge:hover {
|
| 617 |
+
transform: scale(1.05);
|
| 618 |
+
}
|
| 619 |
+
|
| 620 |
+
.item-actions {
|
| 621 |
+
position: absolute;
|
| 622 |
+
bottom: 0;
|
| 623 |
+
right: 0;
|
| 624 |
+
left: 0;
|
| 625 |
+
padding: 12px;
|
| 626 |
+
background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
|
| 627 |
+
backdrop-filter: blur(8px);
|
| 628 |
+
display: flex;
|
| 629 |
+
justify-content: flex-end;
|
| 630 |
+
gap: 8px;
|
| 631 |
+
opacity: 0;
|
| 632 |
+
transition: opacity var(--transition-normal);
|
| 633 |
+
}
|
| 634 |
+
|
| 635 |
+
.history-item:hover .item-actions {
|
| 636 |
+
opacity: 1;
|
| 637 |
+
}
|
| 638 |
+
|
| 639 |
+
@media (hover: none) {
|
| 640 |
+
.item-actions { opacity: 1; }
|
| 641 |
+
}
|
| 642 |
+
|
| 643 |
+
.icon-btn {
|
| 644 |
+
width: 36px;
|
| 645 |
+
height: 36px;
|
| 646 |
+
border-radius: 8px;
|
| 647 |
+
background: rgba(255,255,255,0.15);
|
| 648 |
+
color: white;
|
| 649 |
+
border: 1px solid rgba(255,255,255,0.2);
|
| 650 |
+
display: flex;
|
| 651 |
+
align-items: center;
|
| 652 |
+
justify-content: center;
|
| 653 |
+
backdrop-filter: blur(8px);
|
| 654 |
+
cursor: pointer;
|
| 655 |
+
transition: all var(--transition-fast);
|
| 656 |
+
font-size: 16px;
|
| 657 |
+
}
|
| 658 |
+
|
| 659 |
+
.icon-btn:hover {
|
| 660 |
+
background: rgba(255,255,255,0.25);
|
| 661 |
+
transform: scale(1.1);
|
| 662 |
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
| 663 |
+
}
|
| 664 |
+
|
| 665 |
+
.icon-btn:active {
|
| 666 |
+
transform: scale(0.95);
|
| 667 |
+
}
|
| 668 |
+
|
| 669 |
+
/* --- Fixed Input Section (Top) --- */
|
| 670 |
+
.input-section {
|
| 671 |
+
position: fixed;
|
| 672 |
+
top: 0;
|
| 673 |
+
left: 0;
|
| 674 |
+
right: 0;
|
| 675 |
+
width: 100%;
|
| 676 |
+
display: flex;
|
| 677 |
+
flex-direction: column;
|
| 678 |
+
border-radius: 0;
|
| 679 |
+
box-shadow: 0 4px 24px rgba(0,0,0,0.4);
|
| 680 |
+
z-index: 100;
|
| 681 |
+
border-bottom: 1px solid var(--panel-border);
|
| 682 |
+
transition: box-shadow var(--transition-normal);
|
| 683 |
+
}
|
| 684 |
+
|
| 685 |
+
.input-section:hover {
|
| 686 |
+
box-shadow: 0 6px 32px rgba(0,0,0,0.5);
|
| 687 |
+
}
|
| 688 |
+
|
| 689 |
+
/* Preview Bar */
|
| 690 |
+
.preview-bar {
|
| 691 |
+
padding: 0;
|
| 692 |
+
max-height: 0;
|
| 693 |
+
overflow-x: auto;
|
| 694 |
+
overflow-y: hidden;
|
| 695 |
+
background: rgba(15, 23, 42, 0.6);
|
| 696 |
+
backdrop-filter: blur(12px);
|
| 697 |
+
display: flex;
|
| 698 |
+
gap: 8px;
|
| 699 |
+
transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
|
| 700 |
+
white-space: nowrap;
|
| 701 |
+
max-width: 1200px;
|
| 702 |
+
margin: 0 auto;
|
| 703 |
+
width: 100%;
|
| 704 |
+
scroll-behavior: smooth;
|
| 705 |
+
}
|
| 706 |
+
|
| 707 |
+
.preview-bar::-webkit-scrollbar {
|
| 708 |
+
height: 4px;
|
| 709 |
+
}
|
| 710 |
+
|
| 711 |
+
.preview-bar::-webkit-scrollbar-track {
|
| 712 |
+
background: rgba(0, 0, 0, 0.2);
|
| 713 |
+
}
|
| 714 |
+
|
| 715 |
+
.preview-bar::-webkit-scrollbar-thumb {
|
| 716 |
+
background: var(--accent-color);
|
| 717 |
+
border-radius: 2px;
|
| 718 |
+
}
|
| 719 |
+
|
| 720 |
+
.preview-bar.visible {
|
| 721 |
+
padding: 12px 20px;
|
| 722 |
+
max-height: 100px;
|
| 723 |
+
}
|
| 724 |
+
|
| 725 |
+
.thumb-wrapper {
|
| 726 |
+
position: relative;
|
| 727 |
+
width: 64px;
|
| 728 |
+
height: 64px;
|
| 729 |
+
flex-shrink: 0;
|
| 730 |
+
border-radius: 8px;
|
| 731 |
+
border: 2px solid rgba(255,255,255,0.1);
|
| 732 |
+
overflow: hidden;
|
| 733 |
+
transition: all var(--transition-fast);
|
| 734 |
+
animation: slideInThumb 0.3s ease-out;
|
| 735 |
+
}
|
| 736 |
+
|
| 737 |
+
@keyframes slideInThumb {
|
| 738 |
+
from {
|
| 739 |
+
opacity: 0;
|
| 740 |
+
transform: scale(0.8) translateY(-10px);
|
| 741 |
+
}
|
| 742 |
+
to {
|
| 743 |
+
opacity: 1;
|
| 744 |
+
transform: scale(1) translateY(0);
|
| 745 |
+
}
|
| 746 |
+
}
|
| 747 |
+
|
| 748 |
+
.thumb-wrapper:hover {
|
| 749 |
+
border-color: var(--accent-color);
|
| 750 |
+
transform: scale(1.05);
|
| 751 |
+
}
|
| 752 |
+
|
| 753 |
+
.thumb-wrapper img {
|
| 754 |
+
width: 100%;
|
| 755 |
+
height: 100%;
|
| 756 |
+
object-fit: cover;
|
| 757 |
+
}
|
| 758 |
+
|
| 759 |
+
.thumb-remove {
|
| 760 |
+
position: absolute;
|
| 761 |
+
top: 2px;
|
| 762 |
+
right: 2px;
|
| 763 |
+
width: 18px;
|
| 764 |
+
height: 18px;
|
| 765 |
+
background: linear-gradient(135deg, rgba(239,68,68,0.95) 0%, rgba(220,38,38,0.95) 100%);
|
| 766 |
+
border-radius: 50%;
|
| 767 |
+
display: flex;
|
| 768 |
+
align-items: center;
|
| 769 |
+
justify-content: center;
|
| 770 |
+
font-size: 12px;
|
| 771 |
+
cursor: pointer;
|
| 772 |
+
border: 1px solid rgba(255,255,255,0.3);
|
| 773 |
+
transition: all var(--transition-fast);
|
| 774 |
+
box-shadow: 0 2px 6px rgba(0,0,0,0.3);
|
| 775 |
+
}
|
| 776 |
+
|
| 777 |
+
.thumb-remove:hover {
|
| 778 |
+
transform: scale(1.2);
|
| 779 |
+
background: linear-gradient(135deg, rgba(220,38,38,1) 0%, rgba(185,28,28,1) 100%);
|
| 780 |
+
}
|
| 781 |
+
|
| 782 |
+
.thumb-remove:active {
|
| 783 |
+
transform: scale(0.9);
|
| 784 |
+
}
|
| 785 |
+
|
| 786 |
+
/* Control Bar */
|
| 787 |
+
.control-bar {
|
| 788 |
+
display: flex;
|
| 789 |
+
align-items: flex-end;
|
| 790 |
+
padding: 12px 20px;
|
| 791 |
+
gap: 10px;
|
| 792 |
+
max-width: 1200px;
|
| 793 |
+
margin: 0 auto;
|
| 794 |
+
width: 100%;
|
| 795 |
+
}
|
| 796 |
+
|
| 797 |
+
.upload-trigger {
|
| 798 |
+
width: 44px;
|
| 799 |
+
height: 44px;
|
| 800 |
+
border-radius: 12px;
|
| 801 |
+
background: rgba(255,255,255,0.05);
|
| 802 |
+
border: 2px dashed rgba(255,255,255,0.3);
|
| 803 |
+
color: var(--text-sub);
|
| 804 |
+
display: flex;
|
| 805 |
+
align-items: center;
|
| 806 |
+
justify-content: center;
|
| 807 |
+
font-size: 20px;
|
| 808 |
+
flex-shrink: 0;
|
| 809 |
+
transition: all var(--transition-normal);
|
| 810 |
+
cursor: pointer;
|
| 811 |
+
position: relative;
|
| 812 |
+
overflow: hidden;
|
| 813 |
+
}
|
| 814 |
+
|
| 815 |
+
.upload-trigger::before {
|
| 816 |
+
content: '';
|
| 817 |
+
position: absolute;
|
| 818 |
+
inset: 0;
|
| 819 |
+
background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
|
| 820 |
+
opacity: 0;
|
| 821 |
+
transition: opacity var(--transition-fast);
|
| 822 |
+
}
|
| 823 |
+
|
| 824 |
+
.upload-trigger:hover, .upload-trigger.active {
|
| 825 |
+
background: rgba(59, 130, 246, 0.15);
|
| 826 |
+
border-color: var(--accent-color);
|
| 827 |
+
border-style: solid;
|
| 828 |
+
color: var(--accent-color);
|
| 829 |
+
transform: scale(1.05);
|
| 830 |
+
}
|
| 831 |
+
|
| 832 |
+
.upload-trigger:hover::before, .upload-trigger.active::before {
|
| 833 |
+
opacity: 1;
|
| 834 |
+
}
|
| 835 |
+
|
| 836 |
+
.upload-trigger:active {
|
| 837 |
+
transform: scale(0.95);
|
| 838 |
+
}
|
| 839 |
+
|
| 840 |
+
.upload-trigger:disabled {
|
| 841 |
+
opacity: 0.5;
|
| 842 |
+
cursor: not-allowed;
|
| 843 |
+
transform: none;
|
| 844 |
+
}
|
| 845 |
+
|
| 846 |
+
/* Drag Active State */
|
| 847 |
+
.input-section.drag-active {
|
| 848 |
+
background: rgba(59, 130, 246, 0.1);
|
| 849 |
+
border-color: var(--accent-color);
|
| 850 |
+
box-shadow:
|
| 851 |
+
0 6px 32px rgba(59, 130, 246, 0.4),
|
| 852 |
+
inset 0 0 0 2px var(--accent-color);
|
| 853 |
+
animation: pulse 1s ease-in-out infinite;
|
| 854 |
+
}
|
| 855 |
+
|
| 856 |
+
@keyframes pulse {
|
| 857 |
+
0%, 100% {
|
| 858 |
+
box-shadow:
|
| 859 |
+
0 6px 32px rgba(59, 130, 246, 0.4),
|
| 860 |
+
inset 0 0 0 2px var(--accent-color);
|
| 861 |
+
}
|
| 862 |
+
50% {
|
| 863 |
+
box-shadow:
|
| 864 |
+
0 8px 40px rgba(59, 130, 246, 0.6),
|
| 865 |
+
inset 0 0 0 3px var(--accent-color);
|
| 866 |
+
}
|
| 867 |
+
}
|
| 868 |
+
|
| 869 |
+
.main-input {
|
| 870 |
+
flex: 1;
|
| 871 |
+
background: rgba(15, 23, 42, 0.35);
|
| 872 |
+
border: 1px solid rgba(148, 163, 184, 0.2);
|
| 873 |
+
border-radius: 12px;
|
| 874 |
+
color: white;
|
| 875 |
+
font-size: 16px;
|
| 876 |
+
padding: 10px 12px;
|
| 877 |
+
resize: none;
|
| 878 |
+
max-height: 120px;
|
| 879 |
+
outline: none;
|
| 880 |
+
line-height: 1.5;
|
| 881 |
+
transition: all var(--transition-fast);
|
| 882 |
+
}
|
| 883 |
+
|
| 884 |
+
.main-input::placeholder {
|
| 885 |
+
color: rgba(255,255,255,0.3);
|
| 886 |
+
transition: color var(--transition-fast);
|
| 887 |
+
}
|
| 888 |
+
|
| 889 |
+
.main-input:focus::placeholder {
|
| 890 |
+
color: rgba(255,255,255,0.5);
|
| 891 |
+
}
|
| 892 |
+
|
| 893 |
+
.main-input:focus {
|
| 894 |
+
border-color: rgba(59, 130, 246, 0.6);
|
| 895 |
+
background: rgba(15, 23, 42, 0.55);
|
| 896 |
+
}
|
| 897 |
+
|
| 898 |
+
|
| 899 |
+
.send-btn {
|
| 900 |
+
height: 44px;
|
| 901 |
+
padding: 0 20px;
|
| 902 |
+
font-size: 15px;
|
| 903 |
+
flex-shrink: 0;
|
| 904 |
+
min-width: 90px;
|
| 905 |
+
}
|
| 906 |
+
|
| 907 |
+
.ghost-btn {
|
| 908 |
+
height: 44px;
|
| 909 |
+
padding: 0 14px;
|
| 910 |
+
border-radius: 12px;
|
| 911 |
+
border: 1px solid rgba(148, 163, 184, 0.35);
|
| 912 |
+
background: rgba(15, 23, 42, 0.4);
|
| 913 |
+
color: var(--text-main);
|
| 914 |
+
font-weight: 600;
|
| 915 |
+
cursor: pointer;
|
| 916 |
+
transition: all var(--transition-fast);
|
| 917 |
+
}
|
| 918 |
+
|
| 919 |
+
.ghost-btn:hover {
|
| 920 |
+
border-color: rgba(59, 130, 246, 0.6);
|
| 921 |
+
color: white;
|
| 922 |
+
transform: translateY(-1px);
|
| 923 |
+
}
|
| 924 |
+
|
| 925 |
+
.ghost-btn:disabled {
|
| 926 |
+
opacity: 0.5;
|
| 927 |
+
cursor: not-allowed;
|
| 928 |
+
transform: none;
|
| 929 |
+
}
|
| 930 |
+
|
| 931 |
+
/* Enhanced Loading Animation */
|
| 932 |
+
.loader {
|
| 933 |
+
width: 18px;
|
| 934 |
+
height: 18px;
|
| 935 |
+
border: 2px solid rgba(255,255,255,0.2);
|
| 936 |
+
border-top-color: white;
|
| 937 |
+
border-radius: 50%;
|
| 938 |
+
animation: spin 0.8s linear infinite;
|
| 939 |
+
display: none;
|
| 940 |
+
will-change: transform;
|
| 941 |
+
}
|
| 942 |
+
|
| 943 |
+
.loading .loader { display: block; }
|
| 944 |
+
.loading span { display: none; }
|
| 945 |
+
|
| 946 |
+
@keyframes spin {
|
| 947 |
+
from { transform: rotate(0deg); }
|
| 948 |
+
to { transform: rotate(360deg); }
|
| 949 |
+
}
|
| 950 |
+
|
| 951 |
+
@media (prefers-reduced-motion: reduce) {
|
| 952 |
+
.loader,
|
| 953 |
+
.icon-btn.spinning {
|
| 954 |
+
animation: none;
|
| 955 |
+
opacity: 0.7;
|
| 956 |
+
}
|
| 957 |
+
}
|
| 958 |
+
|
| 959 |
+
/* --- Enhanced Modal --- */
|
| 960 |
+
.modal {
|
| 961 |
+
display: none;
|
| 962 |
+
position: fixed;
|
| 963 |
+
top: 0;
|
| 964 |
+
left: 0;
|
| 965 |
+
width: 100%;
|
| 966 |
+
height: 100%;
|
| 967 |
+
background: rgba(0,0,0,0.85);
|
| 968 |
+
z-index: 1000;
|
| 969 |
+
justify-content: center;
|
| 970 |
+
align-items: center;
|
| 971 |
+
backdrop-filter: blur(8px);
|
| 972 |
+
animation: fadeIn var(--transition-normal);
|
| 973 |
+
}
|
| 974 |
+
|
| 975 |
+
.modal.show {
|
| 976 |
+
display: flex;
|
| 977 |
+
}
|
| 978 |
+
|
| 979 |
+
.modal-content {
|
| 980 |
+
background: var(--panel-bg-strong);
|
| 981 |
+
backdrop-filter: blur(24px) saturate(180%);
|
| 982 |
+
width: 95%;
|
| 983 |
+
max-width: 1000px;
|
| 984 |
+
height: 90%;
|
| 985 |
+
max-height: 900px;
|
| 986 |
+
border-radius: 20px;
|
| 987 |
+
display: flex;
|
| 988 |
+
flex-direction: column;
|
| 989 |
+
position: relative;
|
| 990 |
+
border: 1px solid var(--panel-border-strong);
|
| 991 |
+
box-shadow:
|
| 992 |
+
0 20px 60px rgba(0, 0, 0, 0.6),
|
| 993 |
+
inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
| 994 |
+
animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
|
| 995 |
+
}
|
| 996 |
+
|
| 997 |
+
@keyframes modalSlideIn {
|
| 998 |
+
from {
|
| 999 |
+
opacity: 0;
|
| 1000 |
+
transform: scale(0.9) translateY(20px);
|
| 1001 |
+
}
|
| 1002 |
+
to {
|
| 1003 |
+
opacity: 1;
|
| 1004 |
+
transform: scale(1) translateY(0);
|
| 1005 |
+
}
|
| 1006 |
+
}
|
| 1007 |
+
|
| 1008 |
+
.close-modal {
|
| 1009 |
+
position: absolute;
|
| 1010 |
+
top: 15px;
|
| 1011 |
+
right: 15px;
|
| 1012 |
+
width: 40px;
|
| 1013 |
+
height: 40px;
|
| 1014 |
+
border-radius: 50%;
|
| 1015 |
+
background: rgba(0,0,0,0.7);
|
| 1016 |
+
backdrop-filter: blur(8px);
|
| 1017 |
+
color: white;
|
| 1018 |
+
border: 1px solid rgba(255,255,255,0.2);
|
| 1019 |
+
z-index: 10;
|
| 1020 |
+
font-size: 24px;
|
| 1021 |
+
cursor: pointer;
|
| 1022 |
+
display: flex;
|
| 1023 |
+
align-items: center;
|
| 1024 |
+
justify-content: center;
|
| 1025 |
+
transition: all var(--transition-fast);
|
| 1026 |
+
}
|
| 1027 |
+
|
| 1028 |
+
.close-modal:hover {
|
| 1029 |
+
background: rgba(239,68,68,0.9);
|
| 1030 |
+
transform: rotate(90deg) scale(1.1);
|
| 1031 |
+
border-color: rgba(255,255,255,0.4);
|
| 1032 |
+
}
|
| 1033 |
+
|
| 1034 |
+
.close-modal:active {
|
| 1035 |
+
transform: rotate(90deg) scale(0.95);
|
| 1036 |
+
}
|
| 1037 |
+
|
| 1038 |
+
.modal-img-area {
|
| 1039 |
+
flex: 1;
|
| 1040 |
+
display: flex;
|
| 1041 |
+
justify-content: center;
|
| 1042 |
+
align-items: center;
|
| 1043 |
+
background: rgba(0,0,0,0.5);
|
| 1044 |
+
overflow: hidden;
|
| 1045 |
+
border-radius: 20px 20px 0 0;
|
| 1046 |
+
position: relative;
|
| 1047 |
+
}
|
| 1048 |
+
|
| 1049 |
+
.modal-img-area::before {
|
| 1050 |
+
content: '';
|
| 1051 |
+
position: absolute;
|
| 1052 |
+
inset: 0;
|
| 1053 |
+
background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.3) 100%);
|
| 1054 |
+
pointer-events: none;
|
| 1055 |
+
}
|
| 1056 |
+
|
| 1057 |
+
.modal-img-area img {
|
| 1058 |
+
max-width: 100%;
|
| 1059 |
+
max-height: 100%;
|
| 1060 |
+
object-fit: contain;
|
| 1061 |
+
animation: imageZoomIn 0.5s ease-out;
|
| 1062 |
+
}
|
| 1063 |
+
|
| 1064 |
+
@keyframes imageZoomIn {
|
| 1065 |
+
from {
|
| 1066 |
+
opacity: 0;
|
| 1067 |
+
transform: scale(0.95);
|
| 1068 |
+
}
|
| 1069 |
+
to {
|
| 1070 |
+
opacity: 1;
|
| 1071 |
+
transform: scale(1);
|
| 1072 |
+
}
|
| 1073 |
+
}
|
| 1074 |
+
|
| 1075 |
+
.modal-footer {
|
| 1076 |
+
padding: 20px;
|
| 1077 |
+
background: rgba(30, 41, 59, 0.95);
|
| 1078 |
+
backdrop-filter: blur(16px);
|
| 1079 |
+
border-top: 1px solid var(--panel-border-strong);
|
| 1080 |
+
display: flex;
|
| 1081 |
+
flex-direction: column;
|
| 1082 |
+
gap: 12px;
|
| 1083 |
+
border-radius: 0 0 20px 20px;
|
| 1084 |
+
}
|
| 1085 |
+
|
| 1086 |
+
.input-refs {
|
| 1087 |
+
display: flex;
|
| 1088 |
+
gap: 8px;
|
| 1089 |
+
overflow-x: auto;
|
| 1090 |
+
padding-bottom: 5px;
|
| 1091 |
+
scroll-behavior: smooth;
|
| 1092 |
+
}
|
| 1093 |
+
|
| 1094 |
+
.input-refs::-webkit-scrollbar {
|
| 1095 |
+
height: 4px;
|
| 1096 |
+
}
|
| 1097 |
+
|
| 1098 |
+
.input-refs::-webkit-scrollbar-track {
|
| 1099 |
+
background: rgba(0, 0, 0, 0.2);
|
| 1100 |
+
border-radius: 2px;
|
| 1101 |
+
}
|
| 1102 |
+
|
| 1103 |
+
.input-refs::-webkit-scrollbar-thumb {
|
| 1104 |
+
background: var(--accent-color);
|
| 1105 |
+
border-radius: 2px;
|
| 1106 |
+
}
|
| 1107 |
+
|
| 1108 |
+
.ref-thumb {
|
| 1109 |
+
width: 44px;
|
| 1110 |
+
height: 44px;
|
| 1111 |
+
border-radius: 8px;
|
| 1112 |
+
border: 2px solid rgba(255,255,255,0.2);
|
| 1113 |
+
cursor: pointer;
|
| 1114 |
+
transition: all var(--transition-fast);
|
| 1115 |
+
object-fit: cover;
|
| 1116 |
+
}
|
| 1117 |
+
|
| 1118 |
+
.ref-thumb:hover {
|
| 1119 |
+
border-color: var(--accent-color);
|
| 1120 |
+
transform: scale(1.1);
|
| 1121 |
+
}
|
| 1122 |
+
|
| 1123 |
+
.prompt-display {
|
| 1124 |
+
background: rgba(0,0,0,0.3);
|
| 1125 |
+
padding: 12px;
|
| 1126 |
+
border-radius: 10px;
|
| 1127 |
+
color: #cbd5e1;
|
| 1128 |
+
font-size: 0.9rem;
|
| 1129 |
+
max-height: 100px;
|
| 1130 |
+
overflow-y: auto;
|
| 1131 |
+
line-height: 1.5;
|
| 1132 |
+
border: 1px solid rgba(255,255,255,0.05);
|
| 1133 |
+
}
|
| 1134 |
+
|
| 1135 |
+
.prompt-display::-webkit-scrollbar {
|
| 1136 |
+
width: 6px;
|
| 1137 |
+
}
|
| 1138 |
+
|
| 1139 |
+
.prompt-display::-webkit-scrollbar-track {
|
| 1140 |
+
background: rgba(0, 0, 0, 0.2);
|
| 1141 |
+
border-radius: 3px;
|
| 1142 |
+
}
|
| 1143 |
+
|
| 1144 |
+
.prompt-display::-webkit-scrollbar-thumb {
|
| 1145 |
+
background: var(--accent-color);
|
| 1146 |
+
border-radius: 3px;
|
| 1147 |
+
}
|
| 1148 |
+
|
| 1149 |
+
/* --- Login Overlay --- */
|
| 1150 |
+
#login-overlay {
|
| 1151 |
+
position: fixed;
|
| 1152 |
+
inset: 0;
|
| 1153 |
+
z-index: 5000;
|
| 1154 |
+
display: flex;
|
| 1155 |
+
justify-content: center;
|
| 1156 |
+
align-items: center;
|
| 1157 |
+
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
|
| 1158 |
+
animation: fadeIn 0.5s ease-out;
|
| 1159 |
+
}
|
| 1160 |
+
|
| 1161 |
+
.login-card {
|
| 1162 |
+
width: 340px;
|
| 1163 |
+
padding: 40px;
|
| 1164 |
+
text-align: center;
|
| 1165 |
+
border-radius: 20px;
|
| 1166 |
+
box-shadow:
|
| 1167 |
+
0 20px 60px rgba(0, 0, 0, 0.5),
|
| 1168 |
+
inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
| 1169 |
+
animation: modalSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
|
| 1170 |
+
}
|
| 1171 |
+
|
| 1172 |
+
.login-card h1 {
|
| 1173 |
+
font-size: 3rem;
|
| 1174 |
+
margin-bottom: 10px;
|
| 1175 |
+
animation: bounce 1s ease-in-out infinite;
|
| 1176 |
+
}
|
| 1177 |
+
|
| 1178 |
+
@keyframes bounce {
|
| 1179 |
+
0%, 100% { transform: translateY(0); }
|
| 1180 |
+
50% { transform: translateY(-10px); }
|
| 1181 |
+
}
|
| 1182 |
+
|
| 1183 |
+
.login-card h3 {
|
| 1184 |
+
margin: 15px 0;
|
| 1185 |
+
color: #cbd5e1;
|
| 1186 |
+
font-weight: 600;
|
| 1187 |
+
}
|
| 1188 |
+
|
| 1189 |
+
.login-card input {
|
| 1190 |
+
width: 100%;
|
| 1191 |
+
padding: 14px;
|
| 1192 |
+
margin: 20px 0;
|
| 1193 |
+
background: rgba(0,0,0,0.4);
|
| 1194 |
+
border: 2px solid rgba(255,255,255,0.1);
|
| 1195 |
+
color: white;
|
| 1196 |
+
border-radius: 10px;
|
| 1197 |
+
font-size: 15px;
|
| 1198 |
+
transition: all var(--transition-normal);
|
| 1199 |
+
outline: none;
|
| 1200 |
+
}
|
| 1201 |
+
|
| 1202 |
+
.login-card input:focus {
|
| 1203 |
+
border-color: var(--accent-color);
|
| 1204 |
+
background: rgba(0,0,0,0.5);
|
| 1205 |
+
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
|
| 1206 |
+
}
|
| 1207 |
+
|
| 1208 |
+
.login-card .btn-3d {
|
| 1209 |
+
width: 100%;
|
| 1210 |
+
padding: 14px;
|
| 1211 |
+
font-size: 16px;
|
| 1212 |
+
}
|
| 1213 |
+
|
| 1214 |
+
/* --- Mobile Responsive Design --- */
|
| 1215 |
+
@media (max-width: 768px) {
|
| 1216 |
+
.grid-layout {
|
| 1217 |
+
grid-template-columns: 1fr;
|
| 1218 |
+
gap: 12px;
|
| 1219 |
+
}
|
| 1220 |
+
|
| 1221 |
+
.public-gallery-section {
|
| 1222 |
+
padding: 20px;
|
| 1223 |
+
margin-top: 30px;
|
| 1224 |
+
border-radius: 18px;
|
| 1225 |
+
backdrop-filter: blur(10px) saturate(120%);
|
| 1226 |
+
-webkit-backdrop-filter: blur(10px) saturate(120%);
|
| 1227 |
+
}
|
| 1228 |
+
|
| 1229 |
+
.section-title h3 {
|
| 1230 |
+
font-size: 1.1rem;
|
| 1231 |
+
}
|
| 1232 |
+
|
| 1233 |
+
.section-subtitle {
|
| 1234 |
+
font-size: 0.85rem;
|
| 1235 |
+
}
|
| 1236 |
+
|
| 1237 |
+
.public-grid {
|
| 1238 |
+
grid-template-columns: 1fr;
|
| 1239 |
+
gap: 14px;
|
| 1240 |
+
margin-top: 16px;
|
| 1241 |
+
}
|
| 1242 |
+
|
| 1243 |
+
.public-card {
|
| 1244 |
+
border-radius: 14px;
|
| 1245 |
+
transition: none;
|
| 1246 |
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
| 1247 |
+
}
|
| 1248 |
+
|
| 1249 |
+
.public-card:hover {
|
| 1250 |
+
transform: none;
|
| 1251 |
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
| 1252 |
+
}
|
| 1253 |
+
|
| 1254 |
+
.public-card-prompt {
|
| 1255 |
+
font-size: 0.8rem;
|
| 1256 |
+
-webkit-line-clamp: 2;
|
| 1257 |
+
}
|
| 1258 |
+
|
| 1259 |
+
.public-card-footer {
|
| 1260 |
+
font-size: 0.7rem;
|
| 1261 |
+
}
|
| 1262 |
+
|
| 1263 |
+
.icon-btn.small {
|
| 1264 |
+
width: 32px;
|
| 1265 |
+
height: 32px;
|
| 1266 |
+
font-size: 12px;
|
| 1267 |
+
}
|
| 1268 |
+
|
| 1269 |
+
.public-gallery-empty {
|
| 1270 |
+
padding: 40px 20px;
|
| 1271 |
+
border-radius: 16px;
|
| 1272 |
+
font-size: 0.95rem;
|
| 1273 |
+
}
|
| 1274 |
+
|
| 1275 |
+
.public-gallery-empty > div:first-child {
|
| 1276 |
+
font-size: 36px;
|
| 1277 |
+
margin-bottom: 12px;
|
| 1278 |
+
}
|
| 1279 |
+
|
| 1280 |
+
.history-item {
|
| 1281 |
+
animation: fadeIn 0.3s ease-out backwards;
|
| 1282 |
+
}
|
| 1283 |
+
|
| 1284 |
+
.history-item:nth-child(1) { animation-delay: 0s; }
|
| 1285 |
+
.history-item:nth-child(2) { animation-delay: 0s; }
|
| 1286 |
+
.history-item:nth-child(3) { animation-delay: 0s; }
|
| 1287 |
+
.history-item:nth-child(4) { animation-delay: 0s; }
|
| 1288 |
+
.history-item:nth-child(5) { animation-delay: 0s; }
|
| 1289 |
+
.history-item:nth-child(6) { animation-delay: 0s; }
|
| 1290 |
+
|
| 1291 |
+
.history-item:hover {
|
| 1292 |
+
transform: none;
|
| 1293 |
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
| 1294 |
+
}
|
| 1295 |
+
|
| 1296 |
+
.btn-3d {
|
| 1297 |
+
transition: none;
|
| 1298 |
+
}
|
| 1299 |
+
|
| 1300 |
+
.btn-3d:hover {
|
| 1301 |
+
transform: none;
|
| 1302 |
+
}
|
| 1303 |
+
}
|
| 1304 |
+
|
| 1305 |
+
@media (max-width: 600px) {
|
| 1306 |
+
.public-gallery-section {
|
| 1307 |
+
padding: 16px;
|
| 1308 |
+
margin-top: 20px;
|
| 1309 |
+
}
|
| 1310 |
+
|
| 1311 |
+
.section-title {
|
| 1312 |
+
flex-direction: column;
|
| 1313 |
+
}
|
| 1314 |
+
|
| 1315 |
+
.section-title h3 {
|
| 1316 |
+
font-size: 1rem;
|
| 1317 |
+
}
|
| 1318 |
+
|
| 1319 |
+
.public-grid {
|
| 1320 |
+
grid-template-columns: 1fr;
|
| 1321 |
+
gap: 12px;
|
| 1322 |
+
}
|
| 1323 |
+
|
| 1324 |
+
.public-card-info {
|
| 1325 |
+
padding: 12px;
|
| 1326 |
+
}
|
| 1327 |
+
|
| 1328 |
+
.public-card:hover .public-card-info {
|
| 1329 |
+
padding-bottom: 12px;
|
| 1330 |
+
}
|
| 1331 |
+
}
|
| 1332 |
+
|
| 1333 |
+
/* --- Tablet Responsive Design --- */
|
| 1334 |
+
@media (min-width: 768px) and (max-width: 1024px) {
|
| 1335 |
+
.grid-layout {
|
| 1336 |
+
grid-template-columns: repeat(2, 1fr);
|
| 1337 |
+
gap: 16px;
|
| 1338 |
+
}
|
| 1339 |
+
|
| 1340 |
+
.public-grid {
|
| 1341 |
+
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
| 1342 |
+
gap: 18px;
|
| 1343 |
+
}
|
| 1344 |
+
|
| 1345 |
+
.public-gallery-section {
|
| 1346 |
+
padding: 28px;
|
| 1347 |
+
margin-top: 35px;
|
| 1348 |
+
}
|
| 1349 |
+
|
| 1350 |
+
.modal-content {
|
| 1351 |
+
width: 90%;
|
| 1352 |
+
height: 85%;
|
| 1353 |
+
}
|
| 1354 |
+
|
| 1355 |
+
header {
|
| 1356 |
+
margin-top: 75px;
|
| 1357 |
+
}
|
| 1358 |
+
|
| 1359 |
+
body.has-preview header {
|
| 1360 |
+
margin-top: 160px;
|
| 1361 |
+
}
|
| 1362 |
+
}
|
| 1363 |
+
|
| 1364 |
+
/* --- Large Screen Optimization --- */
|
| 1365 |
+
@media (min-width: 1200px) {
|
| 1366 |
+
.grid-layout {
|
| 1367 |
+
grid-template-columns: repeat(3, 1fr);
|
| 1368 |
+
gap: 20px;
|
| 1369 |
+
}
|
| 1370 |
+
|
| 1371 |
+
.public-grid {
|
| 1372 |
+
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
| 1373 |
+
gap: 28px;
|
| 1374 |
+
}
|
| 1375 |
+
|
| 1376 |
+
.public-gallery-section {
|
| 1377 |
+
padding: 40px;
|
| 1378 |
+
margin-top: 50px;
|
| 1379 |
+
}
|
| 1380 |
+
|
| 1381 |
+
.section-title h3 {
|
| 1382 |
+
font-size: 1.5rem;
|
| 1383 |
+
}
|
| 1384 |
+
|
| 1385 |
+
.history-container {
|
| 1386 |
+
padding: 15px 30px;
|
| 1387 |
+
padding-bottom: 30px;
|
| 1388 |
+
}
|
| 1389 |
+
|
| 1390 |
+
header {
|
| 1391 |
+
padding: 20px 30px;
|
| 1392 |
+
}
|
| 1393 |
+
|
| 1394 |
+
.control-bar {
|
| 1395 |
+
padding: 14px 30px;
|
| 1396 |
+
}
|
| 1397 |
+
|
| 1398 |
+
.preview-bar.visible {
|
| 1399 |
+
padding: 14px 30px;
|
| 1400 |
+
}
|
| 1401 |
+
}
|
| 1402 |
+
|
| 1403 |
+
/* --- Accessibility & Reduced Motion --- */
|
| 1404 |
+
@media (prefers-reduced-motion: reduce) {
|
| 1405 |
+
*,
|
| 1406 |
+
*::before,
|
| 1407 |
+
*::after {
|
| 1408 |
+
animation-duration: 0.01ms !important;
|
| 1409 |
+
animation-iteration-count: 1 !important;
|
| 1410 |
+
transition-duration: 0.01ms !important;
|
| 1411 |
+
}
|
| 1412 |
+
}
|
| 1413 |
+
|
| 1414 |
+
/* --- Focus Styles for Accessibility --- */
|
| 1415 |
+
button:focus-visible,
|
| 1416 |
+
input:focus-visible,
|
| 1417 |
+
textarea:focus-visible {
|
| 1418 |
+
outline: 2px solid var(--accent-color);
|
| 1419 |
+
outline-offset: 2px;
|
| 1420 |
+
}
|
| 1421 |
+
|
| 1422 |
+
/* --- Print Styles --- */
|
| 1423 |
+
@media print {
|
| 1424 |
+
.input-section,
|
| 1425 |
+
.item-actions,
|
| 1426 |
+
header,
|
| 1427 |
+
.modal {
|
| 1428 |
+
display: none !important;
|
| 1429 |
+
}
|
| 1430 |
+
|
| 1431 |
+
.history-container {
|
| 1432 |
+
overflow: visible;
|
| 1433 |
+
padding: 0;
|
| 1434 |
+
}
|
| 1435 |
+
|
| 1436 |
+
body {
|
| 1437 |
+
background: white;
|
| 1438 |
+
color: black;
|
| 1439 |
+
}
|
| 1440 |
+
}
|