Merge pull request #2314 from kodaxx/console-mode

Console Mode
This commit is contained in:
Georges-Antoine Assi
2025-08-30 13:20:08 -05:00
committed by GitHub
106 changed files with 7201 additions and 154 deletions

View File

@@ -33,7 +33,6 @@
"ms-python.python",
"ms-python.pylint",
"ms-python.black-formatter",
"bradlc.vscode-tailwindcss",
"vue.volar",
"ms-vscode.vscode-typescript-next"
],

View File

@@ -99,7 +99,7 @@ start_bin_gunicorn() {
opentelemetry-instrument \
--service_name "${OTEL_SERVICE_NAME_PREFIX-}api" \
gunicorn \
--bind=0.0.0.0:5000 \
--bind=0.0.0.0:"${DEV_PORT:-5000}" \
--bind=unix:/tmp/gunicorn.sock \
--pid=/tmp/gunicorn.pid \
--forwarded-allow-ips="*" \

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1440" height="560" preserveAspectRatio="none" viewBox="0 0 1440 560"><style>@keyframes leftMove{0%,to{transform:translate(50px,10px)}50%{transform:translate(-50px,-10px)}}@keyframes rightMove{0%,to{transform:translate(35px,-10px)}50%{transform:translate(-105px,10px)}}</style><g fill="none" mask="url(#a)"><path id="center" fill="#553e98" d="M0 0h1440v560H0z"/><path fill="#371f69" d="M0 580c120 10 180-130 270-190s220-70 290-150c80-90 140-210 120-320S520-250 420-310C340 30 250 0 160-20S-10-50-90-20s-150 70-200 140-60 150-85 230c-30 100-130 200-90 290s190 70 270 130c45-340 85-200 195-190" style="animation:leftMove 15s ease-in-out infinite"/><path fill="#ff9b85" d="M1440 1060c100 30 230 40 310-40s30-210 70-310c35-90 130-150 140-240 10-100-10-220-90-290s-200-40-300-60c-90-20-180-60-270-30s-150 110-220 170c-70 70-190 120-200 220s110 160 170 240c50 70 90 130 150 180 70 60 140 140 230 160" style="animation:rightMove 15s ease-in-out infinite;animation-delay:-3s"/></g><defs><mask id="a"><path fill="#fff" d="M0 0h1440v560H0z"/></mask></defs></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 20 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 8.8 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 48 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 42 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 9.6 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 25 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 18 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 19 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 17 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 14 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 24 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 12 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 23 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 21 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 24 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 22 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 24 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 53 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 53 KiB

View File

@@ -0,0 +1,174 @@
/* Default Console Theme */
:root {
/* ================================ */
/* THEME FOUNDATION COLORS */
/* ================================ */
--console-accent-primary: #553f99;
--console-accent-secondary: #e1a38e;
--console-accent-tertiary: #bda5cf;
--console-accent-fallback: #f8b400;
--console-text-primary: #ffffff;
--console-text-secondary: #cccccc;
--console-text-muted: #aaaaaa;
--console-text-dimmed: #888888;
/* ================================ */
/* GLOBAL MODALS */
/* ================================ */
--console-modal-bg: #0f0f0f;
--console-modal-header-bg: #131313;
--console-modal-text: var(--console-text-primary);
--console-modal-text-secondary: var(--console-text-secondary);
--console-modal-border: #333333;
--console-modal-border-secondary: #222222;
--console-modal-shadow: rgba(0, 0, 0, 0.5);
/* Modal Tiles */
--console-modal-tile-bg: #1a1a1a;
--console-modal-tile-border: rgba(255, 255, 255, 0.1);
--console-modal-tile-selected-bg: #2a2a2a;
--console-modal-tile-selected-border: var(--console-accent-secondary);
/* Modal Buttons and Controls */
--console-modal-button-bg: rgba(255, 255, 255, 0.1);
--console-modal-button-border: rgba(255, 255, 255, 0.2);
--console-modal-button-text: var(--console-text-primary);
--console-modal-button-indicator: var(--console-accent-secondary);
/* Modal Navigation Hints */
--console-nav-hint-modal-text: var(--console-modal-text-secondary);
--console-nav-hint-modal-accent: rgba(255, 255, 255, 0.2);
--console-nav-hint-modal-keycap: var(--console-text-primary);
/* ================================ */
/* GLOBAL NAVIGATION */
/* ================================ */
--console-nav-back-button-bg: rgba(255, 255, 255, 0.1);
--console-nav-back-button-text: var(--console-text-primary);
--console-nav-back-button-border: rgba(255, 255, 255, 0.2);
--console-nav-back-button-hover-bg: rgba(255, 255, 255, 0.2);
/* Standalone Navigation Hints */
--console-nav-hint-bg: rgba(0, 0, 0, 0.7);
--console-nav-hint-border: rgba(255, 255, 255, 0.2);
--console-nav-hint-text: var(--console-text-muted);
--console-nav-hint-accent: rgba(255, 255, 255, 0.2);
--console-nav-hint-keycap: var(--console-text-primary);
/* ================================ */
/* GLOBAL TEXT */
/* ================================ */
--console-loading-text: var(--console-text-muted);
--console-error-text: #f87171; /* red-400 equivalent */
/* ================================ */
/* GLOBAL UI */
/* ================================ */
/* System Cards */
--console-system-card-bg-fallback: linear-gradient(
135deg,
#2b3242 0%,
#1b2233 100%
);
--console-system-accent-fallback: var(--console-accent-fallback);
--console-system-card-text: var(--console-text-primary);
/* Game Cards */
--console-game-card-bg: linear-gradient(180deg, #1f2430 0%, #2b3242 100%);
--console-game-card-text: var(--console-text-primary);
--console-game-card-focus-border: var(--console-accent-secondary);
--console-game-card-star: var(--console-accent-secondary);
/* Collections Cards */
--console-collection-card-bg: linear-gradient(
180deg,
#1f2430 0%,
#2b3242 100%
);
--console-collection-card-text: var(--console-text-primary);
--console-collection-card-text-secondary: var(--console-accent-secondary);
--console-collection-card-focus-border: var(--console-accent-secondary);
/* ================================ */
/* HOME VIEW */
/* ================================ */
/* Title and Branding */
--console-home-title-text: var(--console-text-primary);
/* Category Headers */
--console-home-category-text: var(--console-text-primary);
/* Carousel Navigation */
--console-home-carousel-button-bg: rgba(0, 0, 0, 0.7);
--console-home-carousel-button-text: #ffffff;
--console-home-carousel-button-border: rgba(255, 255, 255, 0.2);
/* Control Buttons */
--console-home-control-button-bg: rgba(255, 255, 255, 0.1);
--console-home-control-button-text: var(--console-text-primary);
--console-home-control-button-border: rgba(255, 255, 255, 0.2);
--console-home-control-button-focus-border: var(--console-accent-secondary);
/* ================================ */
/* GAME VIEW */
/* ================================ */
/* Text Elements */
--console-game-title-text: var(--console-text-primary);
--console-game-description-text: #dddddd;
--console-game-metadata-text: var(--console-text-secondary);
--console-game-section-header: #d1d5db;
/* Action Buttons */
--console-game-play-button-bg: var(--console-accent-primary);
--console-game-play-button-text: #ffffff;
--console-game-play-button-focus-border: var(--console-accent-secondary);
--console-game-details-button-bg: var(--console-accent-tertiary);
--console-game-details-button-text: #ffffff;
--console-game-details-button-focus-border: var(--console-accent-secondary);
/* Platform Badge */
--console-game-platform-badge-bg: var(--console-accent-primary);
--console-game-platform-badge-text: #ffffff;
/* Screenshot Panel */
--console-game-screenshot-panel-bg: rgba(0, 0, 0, 0.4);
--console-game-screenshot-panel-border: rgba(255, 255, 255, 0.1);
/* Screenshot Thumbnails */
--console-game-screenshot-thumbnail-focus-border: var(
--console-accent-secondary
);
/* State Cards */
--console-game-state-card-border: rgba(255, 255, 255, 0.1);
--console-game-state-card-focus-border: var(--console-accent-secondary);
/* ================================ */
/* GAMESLIST VIEW */
/* ================================ */
/* Alphabet Navigation */
--console-gameslist-scrollbar-bg: rgba(0, 0, 0, 0.3);
--console-gameslist-alphabet-bg: rgba(255, 255, 255, 0.05);
--console-gameslist-alphabet-border: rgba(0, 0, 0, 0.1);
--console-gameslist-alphabet-text: var(--console-text-muted);
--console-gameslist-alphabet-active-text: #ffffff;
--console-gameslist-alphabet-active-bg: var(--console-accent-secondary);
/* ================================ */
/* PLAY VIEW */
/* ================================ */
/* Control Hints */
--console-play-hint-bg: rgba(0, 0, 0, 0.6);
--console-play-hint-border: rgba(255, 255, 255, 0.1);
--console-play-hint-text: rgba(255, 255, 255, 0.8);
/* Save State Dialog */
--console-play-save-status-text: var(--console-accent-secondary);
--console-play-save-separator-border: rgba(255, 255, 255, 0.1);
}
.console-root::before {
background: rgba(0, 0, 0, 0.15);
}

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="1440" height="560" preserveAspectRatio="none" viewBox="0 0 1440 560"><style>@keyframes leftMove{0%,to{transform:translate(50px,10px)}50%{transform:translate(-50px,-10px)}}@keyframes rightMove{0%,to{transform:translate(35px,-10px)}50%{transform:translate(-105px,10px)}}</style><g fill="none" mask="url(#a)"><path id="center" fill="#4169e1" d="M0 0h1440v560H0z"/><path fill="#1e90ff" d="M0 580c120 10 180-130 270-190s220-70 290-150c80-90 140-210 120-320S520-250 420-310C340 30 250 0 160-20S-10-50-90-20s-150 70-200 140-60 150-85 230c-30 100-130 200-90 290s190 70 270 130c45-340 85-200 195-190" style="animation:leftMove 15s ease-in-out infinite"/><path fill="#b44cff" d="M1440 1060c100 30 230 40 310-40s30-210 70-310c35-90 130-150 140-240 10-100-10-220-90-290s-200-40-300-60c-90-20-180-60-270-30s-150 110-220 170c-70 70-190 120-200 220s110 160 170 240c50 70 90 130 150 180 70 60 140 140 230 160" style="animation:rightMove 15s ease-in-out infinite;animation-delay:-3s"/></g><defs><mask id="a"><path fill="#fff" d="M0 0h1440v560H0z"/></mask></defs></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 7.5 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 560 320"><path d="M.95.03h559.24v320H.95z" style="fill:#6f63b4"/><path d="M151.607 83.115v.511q32.888.643 48.564 13.768 15.678 13.125 15.679 31.724c0 13.849-5.94 25.283-17.845 34.275-11.88 9.018-27.712 13.527-47.444 13.527-17.054 0-30.234-3.598-39.565-10.763-9.329-7.166-13.994-15.325-13.994-24.506 0-6.091 2.09-11.03 6.272-14.762 4.18-3.729 9.202-5.58 15.04-5.58 5.48 0 10.197 1.636 14.098 4.883 3.924 3.276 5.862 7.596 5.862 12.938 0 7.139-4.538 13.124-13.639 17.955-1.783.94-2.702 2.012-2.702 3.195 0 2.199 2.549 4.133 7.675 5.797 5.098 1.664 10.298 2.469 15.651 2.469 17.514 0 26.283-13.554 26.283-40.66 0-26.84-10.527-40.26-31.559-40.26l-17.464.749c-3.517 0-5.302-1.368-5.302-4.103 0-3.143 1.86-4.728 5.559-4.728l12.72.511c12.975 0 21.669-3.032 26.079-9.125 4.436-6.066 6.627-14.709 6.627-25.928 0-11.541-1.657-20.048-4.996-25.469-3.34-5.45-9.076-8.16-17.182-8.16-4.41 0-8.565.78-12.44 2.36-3.875 1.559-5.837 3.088-5.837 4.619q0 2.132 3.824 4.429c6.677 4.481 10.043 9.338 10.043 14.573 0 5.153-1.86 9.233-5.608 12.293-3.748 3.033-7.955 4.562-12.646 4.562-5.403 0-10.222-1.745-14.453-5.207-4.233-3.489-6.374-7.783-6.374-12.962 0-8.803 4.717-16.428 14.149-22.842 9.432-6.443 21.515-9.662 36.303-9.662 16.34 0 30.107 3.65 41.323 10.923 11.242 7.274 16.849 16.587 16.849 27.994 0 22.437-19.858 35.992-59.55 40.662m104.622 82.316V11.103h-22.993V2.759h92.129c26.641 0 47.747 7.944 63.275 23.859 15.524 15.889 23.299 35.965 23.299 60.201 0 12.561-2.37 24.398-7.112 35.428-4.742 11.058-12.033 21.124-21.873 30.168q-14.762 13.568-30.285 17.473c-10.35 2.603-23.046 3.891-38.137 3.891h-81.296v-8.348zm44.333-154.328v154.328h14.351c21.95 0 35.207-6.064 39.769-18.169 4.564-12.132 6.834-32.85 6.834-62.187 0-22.946-1.405-39.454-4.207-49.466-2.778-10.036-7.037-16.641-12.722-19.778-5.684-3.144-12.924-4.728-21.669-4.728zm137.1 76.523c0-25.581 8.003-46.514 24.065-62.807C477.761 8.556 497.009.423 519.441.423q31.243 0 55.906 22.947C591.793 38.668 600 60.434 600 88.644c0 26.438-7.75 47.639-23.3 63.584q-23.326 23.915-56.976 23.915c-24.245 0-44-8.483-59.219-25.392-15.222-16.909-22.843-37.951-22.843-63.125m111.913.723q0-39.294-1.529-51.772c-1.045-8.35-3.698-15.06-7.979-20.16-4.284-5.097-11.345-7.648-21.159-7.648-8.286 0-14.887 2.065-19.809 6.173-4.919 4.133-7.978 10.736-9.203 19.836-1.198 9.097-1.809 26.865-1.809 53.303 0 26.168.507 43.506 1.554 51.96 1.019 8.455 3.775 15.193 8.235 20.211 4.462 5.018 11.472 7.515 21.032 7.515 7.926 0 14.403-2.012 19.397-6.038 4.999-4.054 8.136-10.602 9.384-19.7 1.274-9.1 1.886-27.001 1.886-53.68M0 182.261c0-2.907 13.429-5.264 30.001-5.264 16.571 0 30.001 2.357 30.001 5.264s-13.429 5.264-30.001 5.264S0 185.169 0 182.261m4.499-49.627c0-14.123 11.414-25.566 25.502-25.566s25.5 11.443 25.5 25.566-11.414 25.566-25.5 25.566c-14.088 0-25.502-11.444-25.502-25.566M6.25 65.965c-2.502 1.668-3.78 8.686-4.354 13.179a30.5 30.5 0 0 0 0 7.725c.574 4.493 1.852 11.511 4.354 13.18 2.499 1.671 12.222 2.897 18.426 3.528 3.541.36 7.109.36 10.649 0 6.205-.631 15.928-1.857 18.426-3.528 2.502-1.669 3.781-8.687 4.355-13.18.327-2.565.328-5.16 0-7.725-.574-4.493-1.853-11.511-4.355-13.179-2.498-1.673-12.221-2.899-18.426-3.53-3.54-.36-7.108-.36-10.649 0-6.204.631-15.927 1.857-18.426 3.53M30.001.423l29.872 29.948-29.872 29.942L.129 30.371z" style="fill:#fff;fill-rule:nonzero" transform="translate(30 81.667)scale(.83333)"/></svg>

After

Width:  |  Height:  |  Size: 3.4 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 8.4 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 7.4 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 560 320"><path d="M.95.03h559.24v320H.95z" style="fill:#ff6a6a"/><path d="M129.219 17.909c-2.809 9.444-5.463 18.886-8.272 28.329h16.466zM122.352 3.94c2.887-3.746 8.974-4.37 12.486-1.249 1.483 1.249 2.498 2.966 3.044 4.761l19.9 68.364h-11.706c-1.873-6.243-3.668-12.564-5.463-18.886h-22.632a1726 1726 0 0 0-5.463 18.886H100.89c6.321-21.773 12.565-43.469 18.886-65.165.624-2.341.937-4.838 2.576-6.711m81.319 42.298h16.388c-2.731-9.443-5.462-18.963-8.194-28.407-2.732 9.522-5.463 18.964-8.194 28.407m.936-41.83c2.029-2.966 6.009-4.37 9.444-3.512 3.199.703 5.618 3.434 6.399 6.556 6.633 22.788 13.267 45.498 19.901 68.286h-11.707a1720 1720 0 0 0-5.463-18.886h-22.632c-1.795 6.322-3.668 12.564-5.463 18.886h-11.628l18.964-65.555c.703-1.873.936-4.058 2.185-5.775M148.964.818h42.377V12.29h-15.609v63.526h-11.16V12.29h-15.608zm103.873.469c1.093-.391 2.185-.469 3.356-.469h13.345c7.492.156 14.672 4.761 17.95 11.55 2.263 4.371 2.497 9.521 1.95 14.282-.39 5.073-2.497 10.067-6.399 13.423-2.029 1.795-4.604 2.966-6.79 4.526-1.17.937-1.248 2.732-.624 3.981 5.931 9.13 12.096 18.105 18.106 27.158h-13.267c-5.776-8.662-11.473-17.403-17.248-26.144-1.716-2.497-2.185-5.775-1.17-8.584.78-2.185 2.653-3.747 4.761-4.605 4.058-1.561 7.96-3.98 10.223-7.726 1.717-2.887 1.639-6.4.858-9.521-.858-4.058-4.838-7.258-9.052-7.102h-8.663c-1.327 0-2.498 1.093-2.498 2.419V75.66h-11.237V9.793c0-3.746 2.731-7.336 6.399-8.506m46.747-.469h11.863v74.998h-11.863zM33.429.708h5.679v13.393c.036 3.715-.072 7.429-.25 11.179-.25 5.357-.607 10.75-1.464 16.072-.608 3.643-1.893 7.178-3.465 10.536-2.571 5.393-6.571 9.964-11.107 13.821-4.036 3.572-8.893 6.143-13.965 7.929-2.857 1-5.821 1.75-8.857 2.178V64.602c3.643-.536 7.107-1.821 10.357-3.536 3.858-2.036 7.286-4.75 10.215-8 3-3.321 5.393-7.179 7.214-11.25 2.143-4.714 3.286-9.786 4.072-14.857.964-6.465 1.393-13 1.535-19.536.036-2.286.036-4.5.036-6.715m8 0c3.5-.036 6.965 0 10.465 0v75.037H41.429c-.035-7.964 0-15.964-.035-23.929.035-17.036.035-34.072.035-51.108m12.786 0h5.643c-.071 7.643.214 15.251 1.108 22.858.749 5.893 1.785 11.821 4.142 17.285 2.215 5.322 5.429 10.251 9.607 14.215 4 3.786 8.822 6.715 14.072 8.393a32 32 0 0 0 4.5 1.072v11.214c-3-.393-5.928-1.179-8.786-2.143-3.392-1.178-6.678-2.714-9.714-4.678-2.214-1.429-4.214-3.108-6.143-4.893-3.179-2.929-6-6.25-8.143-10.036-1.679-2.929-2.893-6.108-3.857-9.322-.857-3.25-1.25-6.607-1.572-9.964-.643-7.215-.893-14.465-.857-21.715z" style="fill:#fff;fill-rule:nonzero" transform="translate(30 127.917)scale(.83333)"/><path d="M375.221 75.784h-39.462c-1.579 0-3.157-.947-4.736-3.157s-2.21-4.42-2.21-6.63c0-3.473 2.526-7.892 7.577-13.575 5.051-5.367 10.102-11.05 15.469-16.416 5.051-5.367 7.893-9.787 7.893-12.944 0-1.579-.632-3.157-2.21-4.736-1.263-1.578-3.157-2.21-5.367-2.21s-4.104.632-5.683 2.21c-1.578 1.579-2.21 3.473-2.21 5.999h-15.153c0-6.314 2.21-11.681 6.945-16.417 4.736-4.42 10.103-6.945 16.417-6.945s11.681 2.21 16.1 6.945q6.63 6.63 6.63 16.101c0 6.314-3.157 12.944-9.155 18.942-5.998 6.314-11.681 12.312-17.364 17.995l26.519.316zm59.983-24.625c0 7.261-2.525 13.26-7.892 18.311s-11.681 7.261-18.942 7.261c-6.946 0-12.628-2.841-17.048-8.208s-6.946-11.681-6.946-18.627c0-2.841 1.579-7.892 5.052-15.469s6.945-15.154 10.733-22.415S405.844.963 405.844.963h17.364l-12.944 27.15q10.891 0 17.995 6.63c4.42 4.104 6.945 9.786 6.945 16.416m-15.469.632c0-2.842-.947-5.367-2.841-7.262s-4.42-3.157-6.946-3.157-5.051.948-6.945 3.157-2.842 4.42-2.842 6.946c0 3.157.948 5.367 2.526 7.261 1.894 1.578 4.104 2.526 7.261 2.526s5.367-.948 7.261-2.842c1.579-1.894 2.526-4.104 2.526-6.629m60.614 24.308c-10.418 0-19.889-3.472-27.466-10.102-7.892-6.63-11.68-15.469-11.68-26.519 0-10.734 3.788-20.205 11.365-27.466C460.145 4.435 469.3.647 479.402.647q15.154 0 26.519 11.365c7.577 7.577 11.365 16.417 11.365 26.203q0 14.68-10.418 26.519-9.944 11.365-26.519 11.365m21.468-37.884q0-8.523-6.63-15.153t-15.153-6.63c-6.63 0-11.997 2.21-16.417 6.945q-6.629 7.104-6.629 16.101c0 6.314 2.21 11.681 6.945 15.785 4.42 4.104 10.102 5.999 16.416 5.999 5.999 0 11.05-2.21 15.47-6.314 3.788-4.42 5.998-9.787 5.998-16.733m61.246 37.884c-10.418 0-19.889-3.472-27.466-10.102-7.892-6.63-11.681-15.469-11.681-26.519 0-10.734 3.789-20.205 11.365-27.466C542.858 4.435 552.014.647 562.116.647q15.153 0 26.519 11.365C596.212 19.589 600 28.429 600 38.215q0 14.68-10.418 26.519-9.945 11.365-26.519 11.365m21.468-37.884q0-8.523-6.63-15.153t-15.154-6.63c-6.629 0-11.996 2.21-16.416 6.945q-6.63 7.104-6.63 16.101c0 6.314 2.21 11.681 6.946 15.785 4.419 4.104 10.102 5.999 16.416 5.999 5.998 0 11.05-2.21 15.469-6.314 3.789-4.42 5.999-9.787 5.999-16.733" style="fill:#fff" transform="translate(30 127.917)scale(.83333)"/></svg>

After

Width:  |  Height:  |  Size: 4.7 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 560 320"><path d="M.95.03h559.24v320H.95z" style="fill:#4fa3c7"/><path d="M132.495 18.254c-2.881 9.683-5.602 19.364-8.482 29.047h16.884zM125.453 3.93c2.961-3.841 9.202-4.481 12.803-1.28 1.521 1.28 2.561 3.041 3.121 4.881l20.405 70.098h-12.003c-1.92-6.402-3.76-12.883-5.601-19.365h-23.206a1763 1763 0 0 0-5.602 19.365h-11.923c6.482-22.326 12.884-44.572 19.365-66.817.641-2.401.961-4.961 2.641-6.882m83.381 43.371h16.804c-2.801-9.683-5.601-19.444-8.402-29.127-2.801 9.763-5.601 19.444-8.402 29.127m.96-42.891c2.081-3.041 6.162-4.481 9.683-3.6 3.28.72 5.761 3.52 6.561 6.721 6.802 23.366 13.604 46.652 20.406 70.017H234.44a1776 1776 0 0 0-5.601-19.365h-23.206c-1.84 6.483-3.761 12.884-5.601 19.365h-11.923l19.445-67.216c.72-1.921.96-4.161 2.24-5.922M152.74.73h43.451v11.762h-16.004v65.137h-11.443V12.492H152.74zm106.506.48c1.121-.4 2.241-.48 3.442-.48h13.683c7.682.159 15.043 4.881 18.405 11.842 2.32 4.481 2.56 9.763 2 14.644-.4 5.202-2.561 10.323-6.562 13.763-2.08 1.841-4.721 3.041-6.962 4.641-1.2.961-1.28 2.801-.64 4.082 6.082 9.362 12.403 18.564 18.565 27.846h-13.603c-5.922-8.881-11.764-17.843-17.685-26.806-1.76-2.561-2.24-5.922-1.201-8.802.801-2.24 2.721-3.842 4.882-4.722 4.162-1.6 8.162-4.081 10.483-7.921 1.76-2.961 1.68-6.562.88-9.763-.88-4.161-4.961-7.442-9.282-7.282h-8.883c-1.36 0-2.561 1.121-2.561 2.481v62.735h-11.522V9.932c0-3.841 2.801-7.522 6.561-8.722m47.932-.48h12.164v76.899h-12.164zM34.277.617h5.822v13.732c.037 3.809-.073 7.617-.256 11.462-.257 5.493-.623 11.023-1.501 16.479-.623 3.736-1.942 7.361-3.553 10.804-2.636 5.529-6.738 10.217-11.389 14.172-4.138 3.661-9.118 6.298-14.318 8.129C6.152 76.42 3.113 77.19 0 77.629V66.13c3.735-.549 7.287-1.867 10.62-3.625 3.955-2.087 7.47-4.871 10.473-8.203 3.076-3.406 5.53-7.361 7.398-11.536 2.197-4.833 3.369-10.033 4.174-15.233.989-6.629 1.428-13.33 1.575-20.032.037-2.343.037-4.614.037-6.884m8.203 0c3.588-.037 7.141 0 10.729 0v76.939H42.48c-.037-8.166 0-16.369-.037-24.536.037-17.468.037-34.935.037-52.403m13.11 0h5.786c-.074 7.837.219 15.637 1.135 23.437.769 6.042 1.831 12.121 4.248 17.724 2.27 5.456 5.566 10.51 9.851 14.575 4.101 3.881 9.045 6.884 14.428 8.605q2.252.715 4.614 1.099v11.499c-3.076-.403-6.079-1.209-9.009-2.197-3.478-1.209-6.847-2.784-9.96-4.798-2.271-1.464-4.321-3.186-6.299-5.017-3.259-3.002-6.152-6.408-8.349-10.29-1.721-3.003-2.966-6.262-3.955-9.558-.879-3.332-1.282-6.775-1.612-10.217-.659-7.397-.915-14.831-.878-22.265zm309.69 9.982-4.626 15.264 5.219-.299c14.371 0 23.824 12.307 23.824 25.987 0 15.658-12.206 26.386-27.468 26.386-9.16 0-18.319-4.823-22.646-12.996l6.896-6.498c2.264 6.301 9.845 11.027 16.439 11.027 10.039 0 17.919-8.269 17.919-18.216 0-9.551-8.165-17.622-17.714-17.622-5.218 0-10.636 2.461-13.881 6.599h-1.776l11.421-38.107h29.727v8.467H365.28zm73.339 57.294v8.471h-47.944l32.494-39.875c3.051-3.736 6.594-8.366 6.594-13.29 0-7.777-6.894-14.174-14.571-14.174-7.584 0-13.783 6.106-14.279 13.586h-9.252C393.133 9.418 401.7.554 415.192.554c12.603 0 23.427 9.352 23.427 22.25 0 5.511-2.071 11.023-5.507 15.264l-24.417 29.825zM479.175.558c-21.259 0-38.551 17.432-38.551 38.86 0 21.259 17.292 38.551 38.551 38.551 21.877 0 39.013-16.997 39.013-38.705 0-21.709-17.136-38.706-39.013-38.706m29.901 38.86c0 16.77-13.338 29.905-30.372 29.905-15.972 0-28.963-13.416-28.963-29.905 0-16.661 12.989-30.218 28.963-30.218 17.312 0 30.372 12.992 30.372 30.218M560.987.558c-21.259 0-38.552 17.432-38.552 38.86 0 21.259 17.293 38.551 38.552 38.551 21.875 0 39.013-17.001 39.013-38.705S582.862.558 560.987.558m29.898 38.86c0 16.77-13.338 29.905-30.371 29.905-15.972 0-28.968-13.416-28.968-29.905 0-16.661 12.996-30.218 28.968-30.218 17.318 0 30.371 12.992 30.371 30.218" style="fill:#fff;fill-rule:nonzero" transform="translate(30 127.5)scale(.83333)"/></svg>

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 560 320"><path d="M.95.03h559.24v320H.95z" style="fill:#ff3030"/><path d="M131.985 17.955c-2.87 9.646-5.58 19.29-8.45 28.935h16.819zM124.97 3.687c2.949-3.826 9.167-4.464 12.754-1.276 1.515 1.276 2.551 3.029 3.109 4.863l20.326 69.828h-11.956c-1.914-6.378-3.747-12.834-5.58-19.291h-23.117a1765 1765 0 0 0-5.58 19.291h-11.877c6.457-22.24 12.834-44.4 19.29-66.56.638-2.392.957-4.942 2.631-6.855m83.06 43.203h16.739c-2.79-9.645-5.579-19.369-8.369-29.014-2.791 9.725-5.58 19.369-8.37 29.014m.956-42.725c2.073-3.029 6.138-4.464 9.646-3.587 3.268.718 5.738 3.507 6.536 6.696 6.775 23.276 13.551 46.472 20.327 69.747h-11.958a1755 1755 0 0 0-5.579-19.29h-23.117c-1.833 6.457-3.746 12.834-5.579 19.29h-11.877l19.37-66.957c.717-1.914.956-4.145 2.231-5.899M152.152.498h43.284v11.718h-15.943v64.886h-11.399V12.216h-15.942zm106.096.479c1.116-.399 2.232-.479 3.428-.479h13.631c7.652.159 14.985 4.863 18.334 11.797 2.311 4.464 2.55 9.725 1.992 14.588-.399 5.181-2.551 10.283-6.536 13.71-2.073 1.834-4.703 3.03-6.935 4.623-1.196.957-1.275 2.791-.638 4.066 6.058 9.326 12.355 18.493 18.493 27.739h-13.551c-5.899-8.847-11.718-17.775-17.616-26.703-1.754-2.551-2.232-5.899-1.196-8.768.797-2.232 2.71-3.827 4.863-4.704 4.145-1.593 8.13-4.065 10.442-7.891 1.754-2.949 1.674-6.536.877-9.724-.877-4.145-4.942-7.414-9.247-7.254h-8.848c-1.355 0-2.551 1.116-2.551 2.471v62.494h-11.478V9.665c0-3.826 2.79-7.492 6.536-8.688m47.747-.479h12.117v76.603h-12.117zM34.145.386h5.8v13.68c.036 3.794-.073 7.587-.256 11.418-.255 5.471-.62 10.98-1.495 16.415-.62 3.721-1.934 7.333-3.539 10.762-2.626 5.508-6.712 10.177-11.345 14.117-4.122 3.648-9.083 6.274-14.263 8.098A47.5 47.5 0 0 1 0 77.102V65.647c3.721-.547 7.259-1.86 10.579-3.611 3.94-2.079 7.442-4.852 10.433-8.172 3.064-3.392 5.508-7.332 7.369-11.491 2.189-4.815 3.356-9.995 4.159-15.175.984-6.603 1.422-13.278 1.568-19.954.037-2.334.037-4.596.037-6.858m8.171 0c3.575-.037 7.113 0 10.688 0v76.643H42.316c-.037-8.135 0-16.306-.037-24.441.037-17.401.037-34.801.037-52.202m13.06 0h5.763c-.073 7.807.219 15.577 1.131 23.347.766 6.019 1.824 12.074 4.231 17.655 2.262 5.436 5.545 10.47 9.814 14.519 4.085 3.867 9.01 6.858 14.372 8.573a32.4 32.4 0 0 0 4.597 1.094v11.455c-3.065-.402-6.056-1.204-8.974-2.189-3.466-1.204-6.822-2.773-9.922-4.779-2.262-1.459-4.305-3.174-6.275-4.997-3.246-2.991-6.128-6.384-8.317-10.251-1.715-2.991-2.955-6.238-3.94-9.521-.875-3.32-1.276-6.749-1.605-10.178-.657-7.368-.912-14.774-.875-22.179zm398.542 36.269c5.588-3.293 9.073-8.868 9.073-15.057 0-14.616-15.437-21.272-29.781-21.272-14.346 0-29.782 6.656-29.782 21.272 0 6.191 3.485 11.764 9.072 15.057-7.948 3.681-12.394 9.949-12.394 17.759 0 14.721 16.65 22.423 33.1 22.423 16.449 0 33.1-7.702 33.1-22.423.006-7.81-4.442-14.081-12.388-17.759m-20.707-9.265c-3.659 0-6.635-2.36-6.635-5.263s2.976-5.264 6.635-5.264c3.656 0 6.635 2.36 6.635 5.264-.002 2.903-2.977 5.263-6.635 5.263m0 18.755c4.073 0 7.384 2.716 7.384 6.062 0 3.242-3.313 5.884-7.384 5.884-4.074 0-7.385-2.637-7.385-5.884 0-3.346 3.312-6.062 7.385-6.062" style="fill:#fff;fill-rule:nonzero" transform="translate(30 127.5)scale(.83333)"/><path d="M524.133 12.776C518.023 4.631 509.047.324 498.179.324s-19.845 4.305-25.955 12.452c-5.136 6.853-7.965 16.063-7.965 25.938 0 19.107 10.488 38.388 33.924 38.388s33.926-19.282 33.926-38.388c-.007-9.876-2.837-19.086-7.976-25.938m-25.954 41.593c-8.17 0-9.064-10.62-9.064-15.745 0-5.077.898-15.569 9.064-15.569 8.169 0 9.062 10.492 9.062 15.569.002 5.125-.893 15.745-9.062 15.745m93.845-41.593C585.917 4.631 576.939.324 566.072.324c-10.869 0-19.845 4.305-25.954 12.452-5.136 6.853-7.967 16.063-7.967 25.938 0 19.107 10.489 38.388 33.925 38.388C589.509 77.102 600 57.82 600 38.714c-.005-9.876-2.836-19.086-7.976-25.938m-25.952 41.593c-8.172 0-9.065-10.62-9.065-15.745 0-5.077.898-15.569 9.065-15.569s9.061 10.492 9.061 15.569c.004 5.125-.893 15.745-9.061 15.745M342.438 1.395v23.296h31.899l-23.798 52.064h26.944l31.997-75.36z" style="fill:#fff;fill-rule:nonzero" transform="translate(30 127.5)scale(.83333)"/></svg>

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 560 320"><path d="M.95.03h559.24v320H.95z" style="fill:#8b7ad6"/><g transform="translate(30 81.25)scale(.83333)"><clipPath id="a"><path d="M0 0h600v189H0z"/></clipPath><g clip-path="url(#a)"><path d="M53.601 82.56a41.9 41.9 0 0 1-11.7 1.658C18.775 84.218 0 65.443 0 42.317S18.775.415 41.901.415c4.061 0 7.988.579 11.7 1.658v22.07a21.5 21.5 0 0 0-11.7-3.441c-11.929 0-21.615 9.685-21.615 21.615s9.686 21.615 21.615 21.615c4.311 0 8.328-1.265 11.7-3.442zm19.544-38.769H53.601v16.713h36.256zm0-2.949L89.857 24.13H53.601v16.712zm62.413-2.671h12.495c-1.039-11.715-4.429-14.573-21.86-14.573-19.793 0-24.222 3.118-24.222 17.691 0 14.585 4.169 17.975 22.651 17.975 19.522 0 23.431-2.61 23.431-14.845h-12.495c0 3.389-1.299 4.948-10.936 4.948-8.337 0-10.156-2.078-10.156-8.857 0-6.507 1.819-6.507 11.727-6.507 7.287 0 8.586.791 9.365 4.168m156.633-14.573h-11.715v34.355h12.494V40.25c0-5.196 3.118-7.027 9.366-7.027 6.519 0 8.337 2.09 8.337 8.858v15.872h12.755V39.73c0-4.936 3.649-6.507 9.637-6.507 5.728 0 8.586 1.831 8.586 6.507v18.223h12.506V37.652c0-10.145-6.247-14.845-17.703-14.845-9.896 0-13.286 3.389-14.845 7.558-2.61-4.429-6.247-7.558-16.144-7.558-9.117 0-11.455 3.129-13.274 8.857zm-77.964 0h-11.716v34.355h12.495V40.25c0-5.196 2.61-7.027 9.637-7.027 6.507 0 8.338 2.35 8.338 8.858v15.872h12.754V39.73c0-4.936 3.898-6.507 9.885-6.507 5.728 0 8.338 1.571 8.338 6.507v18.223h12.495V37.652c0-10.145-6.248-14.845-17.703-14.845-9.897 0-13.534 3.649-14.845 7.558-2.598-4.429-6.248-7.558-16.144-7.558-9.365 0-11.975 3.129-13.534 8.857zm310.555 0h-11.975v34.355h12.495V39.99c0-4.677 2.869-7.027 8.078-7.027s6.507 1.559 6.767 5.988h11.715c0-11.715-1.559-16.144-14.054-16.144-7.546 0-10.156 1.571-13.026 7.298zM199.245 40.25c0-14.054-3.909-16.912-23.95-16.912-21.612 0-24.222 3.378-24.222 17.951 0 14.845 3.649 17.975 24.222 17.975 21.872 0 23.95-3.649 23.95-19.014m-35.158.791c0-7.038 1.571-7.818 10.417-7.818 10.156 0 11.987.26 11.987 7.818 0 7.027-1.311 8.326-10.936 8.326-10.157 0-11.468-1.039-11.468-8.326m242.023-.791c0-14.054-4.157-16.912-24.21-16.912-21.612 0-24.21 3.638-24.21 18.211 0 14.585 3.637 17.715 24.21 17.715 21.872 0 24.21-3.649 24.21-19.014m-35.665.791c0-7.038 1.57-7.818 10.676-7.818 10.156 0 11.975.26 11.975 7.818 0 7.027-1.299 8.326-10.936 8.326-10.416 0-11.715-1.039-11.715-8.326m139.07-.791c0-14.054-3.897-16.912-23.938-16.912-21.352 0-23.951 3.378-23.951 17.951 0 14.845 3.638 17.975 23.951 17.975 21.86 0 23.938-3.649 23.938-19.014m-35.394.791c0-7.038 1.559-7.818 10.676-7.818 10.145 0 11.975.26 11.975 7.818 0 7.027-1.31 8.326-10.935 8.326-10.417 0-11.716-1.039-11.716-8.326m-29.06-32.028v20.041c-2.858-3.897-5.468-5.976-15.885-5.976-16.663 0-19.781 4.429-19.781 17.963 0 13.794 4.417 17.691 20.561 17.691 10.156 0 13.274-2.598 15.624-7.026v6.247h12.495V9.013zm-9.118 23.95c7.027 0 9.377 1.04 9.377 6.508 0 8.337-.519 9.117-10.416 9.117-9.885 0-12.495-.26-12.495-7.299 0-8.066 3.13-8.326 13.534-8.326m145.043 18.223c-11.975 0-13.794-1.039-13.794-7.027H600c-.52-16.652-.52-20.561-22.651-20.561-18.754 0-22.923 3.378-22.923 18.223 0 13.794 5.48 17.171 20.573 17.443 16.923 0 25.001-.791 25.001-11.975h-12.235c-.531 2.598-1.571 3.897-6.779 3.897m-14.054-14.314c.52-3.649 1.559-4.948 9.885-4.948 9.129 0 10.417.52 10.948 4.948z" style="fill:#fff"/><path d="M430.212 158.304c-9.606 0-12.319-2.147-12.319-9.154 0-6.893 2.6-8.928 12.771-8.928h21.924c10.171 0 12.77 2.035 12.77 8.928 0 7.007-2.712 9.154-12.318 9.154zm-36.051-11.075c0 21.246 11.155 28.705 30.706 28.705h32.839c19.438 0 30.706-2.599 30.706-22.715v-7.12c0-14.805-4.294-22.828-28.478-22.828H436.54c-9.832 0-14.578 2.147-18.647 6.215v-9.719c0-6.441 3.617-9.832 12.206-9.832h22.037c8.815 0 12.431 1.922 12.431 7.459h21.698v-6.442c0-10.397-7.765-18.646-31.61-18.646h-23.233c-26.784 0-37.261 7.232-37.261 32.095zm106.389 11.414h63.625v16.387h23.733v-16.387H600v-18.308h-12.092V93.21h-28.931l-58.427 35.485zm63.625-45.769v27.461h-43.961v-.226z" style="fill:#fff;fill-rule:nonzero"/><path d="M101.971 80.076h261.382v12.001H101.971zm0 24.018h261.382v12.001H101.971zm0 24.017h261.382v12.017H101.971zm0 24.034h261.382v12.001H101.971zm0 24.017h261.382v12.002H101.971z" style="fill:#fff"/></g></g></svg>

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 560 320"><path d="M.95.03h559.24v320H.95z" style="fill:#34c686"/><path d="M26.399 91.631h32.8l31.999 56 37.601-56h27.2l-51.2 86.402H77.906zm430.4 0H539.2c14.789 0 27.966 11.483 28 27.202v59.199h-29.6v-51.198c0-8.546-5.082-10.278-11.202-10.401H486.4v61.599h-29.601zm-161.599 0v24.801h-70.4c-8.048 0-7.597 7.999 0 7.999h46.399c36.151 0 36.141 53.6 0 53.6H198.4v-24h69.599c8.331 0 7.766-8 0-8H224.8c-37.148 0-37.017-54.4 0-54.4z" style="fill:#fff" transform="translate(30 85.417)scale(.83333)"/><path d="M303.201 91.631h29.6v86.4h-29.6zm-142.402 0h29.6v86.4h-29.6zm207.202 0h55.201c17.524 0 28.799 11.934 28.799 26.399v31.997c0 22.691-19.605 28.002-28.799 28.002h-55.201c-20.736 0-29.6-16.686-29.6-28.002V118.03c0-18.426 16.489-26.399 29.6-26.399m11.201 24.096c-7.866.046-11.201 4.985-11.201 11.104v16c0 6.647 5.714 11.199 11.201 11.199h32.8c3.891 0 10.402-2.633 10.402-11.199v-16c0-5.384-3.274-11.339-10.402-11.3zM91.2.43H26.4C7.755.43.042 17.579 0 26.829v32c0 20.752 17.072 28.12 26.4 28h64.8V62.831H40.799c-3.528 0-12-2.614-12-10.401V35.631c0-8.002 6.025-11.2 12-11.2H91.2zM480.802.429H416c-18.643 0-26.356 17.149-26.398 26.399v31.999c0 20.753 17.073 28.121 26.398 28.001h64.802V62.829H431.2c-3.531 0-11.999-2.613-11.999-10.401V35.629c0-8.002 6.024-11.2 11.999-11.2h49.602zM290.401.43H384v21.601h-64.8v8.001H384v21.601h-64.8c0 7.94 5.835 11.199 11.999 11.199H384v23.199h-68c-15.237 0-25.711-12.647-25.675-26.398zm-75.202 0H244v51.2c0 7.355 5.543 11.276 12 11.2h31.201v23.199H242.4c-12.72 0-27.2-5.717-27.2-26.399zm-89.6 0h55.2c17.521 0 28.802 11.934 28.802 26.399v32c0 22.691-19.606 28-28.802 28h-55.2c-20.734 0-28.8-16.684-28.8-28v-32c0-18.424 15.689-26.399 28.8-26.399m11.2 24.096c-7.865.047-11.2 4.985-11.2 11.104v16.001c0 6.647 5.715 11.2 11.2 11.2h32.8c3.889 0 10.4-2.635 10.4-11.2v-16c0-5.381-3.279-11.339-10.4-11.297zM516 .43h55.203C588.723.43 600 12.364 600 26.829v32c0 22.691-19.605 28-28.797 28H516c-20.733 0-29.6-16.684-29.6-28v-32C486.401 8.405 502.89.43 516 .43m11.201 24.096C519.335 24.572 516 29.511 516 35.629V51.63c0 6.647 5.714 11.2 11.201 11.2h32.801c3.89 0 10.401-2.635 10.401-11.2V35.631c0-5.381-3.278-11.339-10.401-11.297z" style="fill:#fff" transform="translate(30 85.417)scale(.83333)"/></svg>

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 560 320"><path d="M.95.03h559.24v320H.95z" style="fill:#3fa7d6"/><path d="M165.389 22.719C175.384 9.838 191.312 2.793 207.184.746c6.408-.017 12.824.274 19.232-.129 14.985 1.45 29.889 7.77 40.046 19.119 8.633 9.44 13.373 21.926 14.703 34.541-11.398.161-22.804.507-34.202.435-1.443-8.319-6.86-15.791-14.3-19.773-7.899-4.256-17.62-5.602-26.181-2.612-4.626 1.588-9.092 4.135-12.107 8.069-4.022 5.102-3.466 12.889.532 17.838 4.119 5.006 10.439 7.4 16.436 9.335 14.316 4.28 29.3 6.101 43.35 11.325 9.729 3.571 19.241 9.068 25.182 17.806 6.795 10.027 8.23 22.82 6.593 34.588-1.692 12.349-8.302 23.868-17.991 31.679-13.01 10.656-30.163 15.25-46.784 15.081-16.065-.225-32.493-4.409-45.551-14.058-8.802-6.464-15.646-15.678-18.741-26.189-1.661-5.126-2.112-10.527-2.378-15.879 11.204-.145 22.409.161 33.621-.008 3.216 9.342 10.173 17.459 19.41 21.223 9.31 3.886 20.216 4.393 29.607.46 4.506-1.886 8.826-4.74 11.438-8.964 2.902-4.651 3.257-10.97.25-15.661-2.886-4.555-7.907-7.11-12.76-9.053-9.221-3.522-18.967-5.32-28.503-7.738-12.397-3.095-25.084-6.634-35.596-14.179-7.456-5.263-13.09-13.098-15.363-21.965-3.797-14.67-1.242-31.283 8.262-43.318M0 3.47c16.347-.113 32.694-.016 49.041-.056 8.754 32.774 17.057 65.67 25.891 98.412 6.674-32.758 12.704-65.662 19.305-98.437 18.5.081 37.007-.008 55.506.041.024 57.738-.032 115.477.032 173.216-11.156.04-22.303.096-33.451-.033-.686-32.057-1.209-64.122-2.193-96.163-6.489 32.089-13.3 64.122-19.845 96.204-11.849.04-23.699.048-35.548 0-7.988-30.502-15.807-61.044-23.924-91.513-.274 2.789-.258 5.594-.234 8.391.033 27.713-.024 55.417.024 83.13-8.568.04-17.137.008-25.705.024-2.966-.008-5.957.169-8.899-.339zm408.228 13.991c14.768-11.397 33.871-15.992 52.306-15.275 8.52.428 16.96 1.999 25.166 4.305.298.177.886.524 1.184.693-10.027 7.061-18.644 16.395-24.045 27.463-10.18-1.153-20.724 1.41-29.042 7.456-10.406 7.303-17.959 18.959-19.354 31.703-1.612 12.872-3.111 25.761-4.707 38.634-.468 3.563-.621 7.279-2.233 10.56-2.249 4.74-5.643 8.842-9.213 12.647-3.241 3.386-8.166 3.934-12.599 3.982-10.318-22.763-12.422-48.912-7.021-73.231 4.151-18.903 13.929-37.112 29.558-48.937" style="fill:#fff;fill-rule:nonzero" transform="translate(30 83.75)scale(.83333)"/><path d="M485.877 14.39c15.218-9.874 34.185-12.01 51.895-10.18 15.67 1.571 31.694 7.262 42.528 19.144 8.923 9.511 13.106 22.497 14.025 35.314-11.277.209-22.562.112-33.838.048-1.226-6.771-4.676-13.236-10.189-17.459-7.988-6.191-18.677-7.908-28.519-6.651-7.4 1.081-15.162 3.442-20.393 9.085-3.128 3.49-5.135 8.786-3.104 13.3 1.975 5.554 3.894 11.132 5.82 16.702 2.966 8.891 1.588 18.434.645 27.551-12.397-3.329-25.214-8.738-33.081-19.37-7.577-10.325-8.544-24.012-6.457-36.281 2.136-12.703 9.802-24.287 20.668-31.203M312.234 8.708a19408 19408 0 0 1 62.067-1.572c10.245-.033 20.474 1.499 30.228 4.675.048 1.419-.226 2.797-1.492 3.627-8.488 7.432-14.847 16.871-20.603 26.471-11.922-.056-23.843.218-35.773.226.242 33.903.056 67.823.29 101.734 7.231.58 14.477 1.104 21.716 1.507 7.004-.024 14.009-.121 21.014-.242 6.747-.225 12.155-5.094 16.153-10.091 5.345-6.965 9.464-15.211 10.157-24.07.903-10.817 1.918-21.626 2.894-32.436.403-4.594 1.314-9.181 3.111-13.445 3.926-9.641 11.962-17.282 21.401-21.482 13.429 22.707 15.404 50.791 9.205 76.069-4.497 18.024-15.105 34.838-30.783 45.115-15.308 10.262-34.194 13.945-52.395 13.156-19.063-.798-38.143-1.322-57.19-2.33z" style="fill:#fff;fill-rule:nonzero" transform="translate(30 83.75)scale(.83333)"/><path d="M511.389 43.312c7.448-3.506 15.904-3.442 23.916-2.507 8.254 15.001 13.123 31.92 13.228 49.082.403 19.111-4.788 38.078-13.696 54.909-8.979 1.064-18.378-.709-26.052-5.57-3.24-2.031-6.029-5.707-4.989-9.729 2.104-8.399 4.965-16.605 7.262-24.956 1.21-4.796.702-9.77.637-14.654-.153-5.756-1.281-11.447-2.926-16.952-2.007-6.916-4.989-13.703-5.288-20.99.178-4.353 4.321-7.037 7.908-8.633" style="fill:#fff;fill-rule:nonzero" transform="translate(30 83.75)scale(.83333)"/><path d="M553.2 80.705c12.349 3.362 25.157 7.465 34.741 16.339 7.932 7.239 11.672 18.016 12.059 28.551v6.03c-.548 9.955-4.103 19.829-10.68 27.398-8.746 10.221-21.45 16.218-34.371 19.225-17.202 3.901-35.378 3.031-52.346-1.645-13.687-3.869-27.229-11.526-34.379-24.27-4.877-8.778-9.141-19.04-6.513-29.212 11.027-.129 22.062.08 33.097.161 1.225 7.561 4.353 15.283 10.648 20.015 7.835 5.932 18.113 6.835 27.616 6.932 8.641-.186 17.879-1.08 25.198-6.118 6.36-4.208 8.859-13.349 5.272-20.128-2.588-4.739-7.392-7.625-11.979-10.14.299-11.059 1.121-22.094 1.637-33.138m-105.982 66.824c4.337-.678 8.867-.017 13.276.072 5.723 13.058 16.71 22.876 28.502 30.445-8.665 2.942-17.79 4.353-26.93 4.546h-.508c-13.22-.137-26.302-3.046-38.603-7.786l-.064-.637c4.522-4.425 9.205-8.697 13.8-13.058 4.425-3.757 6.932-9.125 10.527-13.582" style="fill:#fff;fill-rule:nonzero" transform="translate(30 83.75)scale(.83333)"/></svg>

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 560 320"><path d="M.95.03h559.24v320H.95z" style="fill:#cc2936"/><g transform="translate(30 89.167)scale(.83333)"><clipPath id="a"><path d="M0 0h600v170H0z"/></clipPath><g clip-path="url(#a)"><path d="M105.902 29.7h26.02v57.548h-26.02zm170.705.106v-8.561h-14.1V9.609h-26.041l.021 11.646-14.163.011v8.54h14.153l-.021 57.442h26.072l-.021-57.442zM64.276 61.059 26.968.711H.011L0 87.248h26.799V26.899l37.498 60.349h26.705V.711H64.255zM404.36 27.047c-8.614.242-15.775 3.927-20.766 8.677-.021-1.422 0-6.045 0-6.045l-25.82.011-.011 57.547h25.831s-.021-35.35-.021-37.803c0-5.012 5.265-10.593 12.352-10.593 7.097 0 11.888 5.581 11.888 10.593v37.803h25.863s-.011-27.262 0-31.316c.147-22.788-19.597-29.159-29.316-28.874m-211.499 0c-8.604.242-15.775 3.927-20.755 8.677-.022-1.422 0-6.045 0-6.045l-25.863.011.021 57.547h25.842s-.022-35.35-.022-37.803c0-5.012 5.266-10.593 12.352-10.593s11.889 5.581 11.889 10.593v37.803h25.862s-.031-27.262 0-31.316c.137-22.788-19.607-29.159-29.326-28.874m369.104-1.285c-21.008 0-38.035 14.479-38.035 32.317 0 17.849 17.027 32.317 38.035 32.317S600 75.928 600 58.079c0-17.838-17.027-32.317-38.035-32.317M572.4 70.199c0 9.172-5.423 12.953-10.635 12.953-5.223 0-10.667-3.781-10.667-12.953 0-3.485.01-12.415.01-12.415s.011-8.508.011-12.004c0-9.119 5.454-12.879 10.635-12.879 5.202 0 10.636 3.76 10.636 12.879 0 3.496 0 9.94.031 12.257 0 .137-.021 8.698-.021 12.162m-82.63-37.656c-4.149-2.337-8.551-4.591-14.721-5.128-18.755-1.653-33.097 14.932-33.097 30.127 0 20.029 15.469 27.442 17.807 28.537 8.761 4.075 19.997 4.086 29.958-2.169 0 .537.011 3.327.011 3.327h25.725V.711H489.77zm.189 25.631s.011 6.518.011 10.214c0 8.888-6.16 11.215-10.214 11.215-4.128 0-10.194-2.327-10.194-11.215 0-3.054.011-10.235.011-10.235s-.011-7.308-.011-10.257c0-8.908 6.066-11.172 10.204-11.172 4.044 0 10.193 2.264 10.193 11.172zm-140.072.537c0-17.838-17.238-32.623-38.404-32.623-21.155 0-38.319 14.458-38.319 32.307 0 17.838 17.164 32.307 38.319 32.307 17.575 0 32.391-10.014 36.919-23.609l-25.936.021s.021.253.021 3.486c0 10.53-6.918 12.867-10.772 12.867-3.833 0-10.878-2.337-10.878-12.867 0-3.149.021-11.878.021-11.878s49.029.021 49.029-.011m-47.323-20.239c2.032-3.549 5.771-5.244 9.151-5.255 3.391.011 7.129 1.706 9.151 5.255 1.663 2.875 1.737 6.244 1.705 11.278h-21.723c-.042-5.034.063-8.403 1.716-11.278M105.839.679h26.083V18.37h-26.083z" style="fill:#fff"/><path d="M0 107.966h31.856v11.102H11.162v13.466h20.694v11.461H11.162v23.936H0zm68.083 59.965H57.231v-9.337h-21.02l-6.228 9.337h-12.78l42.043-59.965h8.837zm-10.852-20.667v-17.496l-12.839 17.496zm15.107-39.298h12.587l17.748 40.308 17.874-40.308h12.715v59.965h-11.206v-30.233l-13.844 30.233h-11.33L83.54 137.698v30.233H72.338zm269.814 0h12.589l17.746 40.308 17.876-40.308h12.715v59.965h-11.205v-30.233l-13.847 30.233h-11.327l-13.345-30.233v30.233h-11.202z" style="fill:#fff;fill-rule:nonzero"/><path d="M136.794 107.966h11.596v59.965h-11.596z" style="fill:#fff"/><path d="M151.583 107.966h11.593v49.031h15.11v10.934h-26.703zm13.82 0h12.883l12.18 24.568 11.829-24.568h12.766l-19.209 38.141v21.824h-11.24v-21.824zm112.678 16.537c-5.091-9.701-15.261-16.32-26.98-16.32-16.817 0-30.452 13.632-30.452 30.452s13.632 30.45 30.452 30.45c11.8 0 22.033-6.712 27.089-16.527l-13.798.114a19.03 19.03 0 0 1-12.94 5.053c-10.546 0-19.09-8.547-19.09-19.093s8.544-19.089 19.09-19.089c4.922 0 9.41 1.862 12.793 4.922z" style="fill:#fff;fill-rule:nonzero"/><path d="M308.213 169.245c-16.904 0-30.607-13.706-30.607-30.61s13.706-30.61 30.607-30.61c16.91 0 30.613 13.706 30.613 30.61.002 16.907-13.703 30.61-30.613 30.61m19.489-30.61c0-10.695-8.675-19.367-19.369-19.367-10.695 0-19.367 8.672-19.367 19.367s8.669 19.367 19.367 19.367c10.694 0 19.369-8.672 19.369-19.367m99.255-30.661c10.146.814 18.129 9.31 18.129 19.668 0 10.355-7.98 18.851-18.129 19.665l-8.767-.041v20.665h-11.243v-59.965h11.243zm-8.764 11.533v16.266l8.767-.008a8.265 8.265 0 0 0 6.736-8.123 8.266 8.266 0 0 0-6.736-8.126zm150.421 49.203h-11.129v-60.229l15.462-.021 8.764.005c10.146.815 18.129 9.31 18.129 19.668 0 8.46-5.33 15.68-12.813 18.482L600 168.707h-12.177l-18.183-31.066h-1.026zm13.103-32.453a8.269 8.269 0 0 0 0-16.25h-13.101v16.261zm-121.978 6.358.008 8.767c.72 3.837 4.081 6.737 8.124 6.737a8.27 8.27 0 0 0 8.126-6.737l.008-8.767.03-34.131h11.512v34.131l-.011 8.767c-.815 10.149-9.307 18.126-19.665 18.126-10.356 0-18.848-7.977-19.666-18.126l.041-8.767-.019-34.131h11.555zm39.306 26.095h11.363v-48.877h10.187v-11.352h-31.389v11.352h9.839zm55.515 0h-31.215v-60.229h31.215v11.026h-20.026v14.301h20.026v11.246h-20.026v12.53h20.026z" style="fill:#fff;fill-rule:nonzero"/></g></g></svg>

After

Width:  |  Height:  |  Size: 4.6 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 7.2 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 560 320"><path d="M.95.03h559.24v320H.95z" style="fill:#8fbc8f"/><g transform="translate(30 100.833)scale(.83333)"><clipPath id="a"><path d="M0 0h600v142H0z"/></clipPath><g clip-path="url(#a)"><path d="M517.119 38.06h25.431l12.562 28.891 18.837-28.891H600l-36.732 57.146-5.964 44.586h-23.545l6.906-50.872zM329.987 139.792l3.14-22.617H297.34l2.198-17.573h31.078l3.144-22.607h-30.768l2.199-16.33h35.785l3.456-22.605h-59.339l-14.129 101.732zm-211.3-50.246 7.849-21.033 2.514 21.033zm-8.476 20.095h21.349l3.771 30.141h38.617l17.896-55.259 8.794 55.259h20.408l22.605-58.398 3.769 58.398h22.605l-6.281-101.726h-27.002l-21.034 53.687-8.166-53.687h-24.174l-27.628 83.516-10.362-83.516h-30.142L81.64 122.511l4.397-32.966H45.221l-2.828 20.095h17.899l-1.258 6.907c-3.14 1.881-10.36 2.196-13.186 2.196-2.825 0-23.86-1.882-22.919-24.489.941-22.605 31.082-43.641 66.874-32.024l3.457-21.665C69.396 32.404 6.724 36.972.322 93c-3.767 32.965 26.375 48.664 46.467 48.353 11.618.629 24.806-3.769 29.514-6.281l-1.568 4.71h23.862z" style="fill:#fff;fill-rule:nonzero"/><path d="M491.684 37.119c-16.328-.628-39.876 8.791-47.724 46.783-7.849 37.988 13.185 53.373 32.651 55.885 19.47 2.511 46.784-9.733 51.807-46.153 5.025-36.422-12.876-55.572-36.734-56.515m-2.512 21.665c6.592 0 20.72 4.396 17.266 30.767-3.455 26.373-19.78 29.513-25.746 28.884-5.968-.629-18.21-4.707-14.756-28.884 3.452-24.174 16.324-31.082 23.236-30.767" style="fill:#fff;fill-rule:nonzero"/><path d="M392.466 76.995h13.188c9.734 0 11.617-6.28 11.929-8.789.314-2.514-2.51-7.538-7.533-7.538h-15.385zm-5.65 40.187h17.898c9.73 0 11.928-7.534 12.239-10.047.316-2.512-2.509-7.532-7.532-7.532h-20.092zm-26.372 22.607 14.129-101.726h43.326c10.364 0 25.433 11.932 23.55 27.944s-6.908 16.954-10.362 19.466c5.339 4.706 10.676 12.243 8.479 26.371-2.199 14.132-13.816 27.944-34.224 27.944z" style="fill:#fff;fill-rule:nonzero"/><path d="M39.113 9.517h8.161v18.048h-8.161zm53.537.033V6.866h-4.422v-3.65h-8.167l.006 3.653-4.442.003V9.55h4.439l-.007 18.016h8.177L88.228 9.55zm-66.592 9.802L14.357.426H5.903l-.004 27.14h8.405V8.639l11.761 18.927h8.375V.426h-8.389zM132.716 8.685a9.84 9.84 0 0 0-6.513 2.721c-.006-.445 0-1.895 0-1.895l-8.097.003-.004 18.048h8.101l-.006-11.856c0-1.572 1.651-3.322 3.874-3.322 2.226 0 3.728 1.75 3.728 3.322v11.856h8.111s-.003-8.55 0-9.821c.046-7.147-6.146-9.145-9.194-9.056m-66.331 0a9.83 9.83 0 0 0-6.509 2.721c-.007-.445 0-1.895 0-1.895l-8.111.003.006 18.048h8.105l-.007-11.856c0-1.572 1.651-3.322 3.874-3.322s3.729 1.75 3.729 3.322v11.856h8.11s-.009-8.55 0-9.821c.043-7.147-6.149-9.145-9.197-9.056m115.76-.403c-6.589 0-11.929 4.541-11.929 10.136 0 5.598 5.34 10.135 11.929 10.135 6.588 0 11.929-4.537 11.929-10.135 0-5.595-5.341-10.136-11.929-10.136m3.273 13.937c0 2.876-1.701 4.062-3.336 4.062-1.638 0-3.345-1.186-3.345-4.062l.003-3.894.003-3.765c0-2.86 1.711-4.039 3.336-4.039 1.631 0 3.335 1.179 3.335 4.039 0 1.097 0 3.118.01 3.845 0 .042-.006 2.727-.006 3.814m-25.915-11.81c-1.301-.733-2.682-1.44-4.617-1.608-5.882-.519-10.38 4.683-10.38 9.448 0 6.282 4.851 8.607 5.585 8.95 2.747 1.278 6.271 1.282 9.395-.68l.004 1.043h8.068V.426h-8.055zm.059 8.038s.004 2.045.004 3.204c0 2.787-1.932 3.517-3.204 3.517-1.295 0-3.197-.73-3.197-3.517 0-.958.004-3.21.004-3.21s-.004-2.292-.004-3.217c0-2.794 1.902-3.504 3.2-3.504 1.269 0 3.197.71 3.197 3.504zm-43.93.169c0-5.595-5.406-10.231-12.044-10.231-6.635 0-12.018 4.534-12.018 10.132 0 5.594 5.383 10.132 12.018 10.132 5.512 0 10.158-3.141 11.578-7.404l-8.134.006s.007.08.007 1.093c0 3.303-2.17 4.036-3.378 4.036-1.203 0-3.412-.733-3.412-4.036 0-.987.007-3.725.007-3.725s15.376.007 15.376-.003m-14.841-6.348c.637-1.112 1.809-1.644 2.87-1.648 1.063.004 2.235.536 2.869 1.648.522.902.545 1.959.535 3.537h-6.813c-.013-1.578.02-2.635.539-3.537M39.093.416h8.18v5.548h-8.18z" style="fill:#fff"/></g></g></svg>

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 560 320"><path d="M.95.03h559.24v320H.95z" style="fill:#9370db"/><g transform="translate(30 -8.833)scale(.83333)"><clipPath id="a"><path d="M0 0h600v302H0z"/></clipPath><g clip-path="url(#a)"><path d="m0 301.984 57.51-97.759 156.825-.129 14.838 25.604 13.405-25.316 108.27.045 26.878 21.064v-21.064h203.783v97.379H393.444l-27.33-21.25v21.261l-152.343-.011v.023l-10.354-16.767c-8.352 9.379-23.32 16.755-47.852 16.755 0 0-78.988-.027-122.091.165zm272.367-81.527h-19.784l-.541.975-22.672 41.175-24.041-41.209-.547-.941H183.52l1.743 2.87 4.089 6.745c-6.554-6.237-16.603-9.615-29.67-9.615h-42.777v53.525l-31.683-52.55-.553-.919H68.308l-.552.931-36.043 60.727-1.692 2.854h14.167v.022h31.497v-14.262H57.153l18.555-33.449 26.196 46.73.541.959h21.109l-.034-.062h32.428c27.956 0 42.139-10.919 42.139-32.462 0-3.739-.485-7.191-1.415-10.332l25.378 41.886.553.908h12.356l.542-.948 35.219-60.722zm59.848 0v53.576l-31.729-52.629-.558-.919h-16.361l-.547.925-36.043 60.727-1.692 2.859h19.22l.045-.067h26.445v-14.263h-18.538l18.521-33.369 26.19 46.729.541.97h21.115l-.017-.033h10.671v-38.897l48.32 38.485.513.412h12.7v-64.506h-17.065v38.366l-48.495-37.966-.513-.4zm163.78.017v64.489h69.649v-15.041h-50.982V258.62h29.292v-14.234h-29.292v-9.317h50.266v-14.595zm-23.839 0h-37.819c-13.27 0-17.742 4.105-17.742 16.27v31.96c0 12.136 4.472 16.247 17.742 16.247h37.819c13.287 0 17.776-4.111 17.776-16.247v-9.058l-1.883-.011-14.883-.034h-1.906v9.932h-36.038v-34.052h36.038v8.961l1.894.011 14.878.051 1.9.006v-7.766c0-12.317-4.32-16.27-17.776-16.27m-319.377 49.448h-17.212v-34.831h24.256c13.117 0 19.231 5.307 19.231 16.688 0 13.552-6.633 18.143-26.275 18.143" style="fill:#fff;fill-rule:nonzero"/><path d="M546.306 219.007h-52.279l1.196-7.557c-.519.344-1.032.716-1.563 1.038-12.046 7.54-25.885 10.01-38.941 7.004-10.011-2.312-18.667-7.653-25.441-15.012-8.78 8.668-20.624 14.347-31.892 14.347l-256.715.18-4.112-23.421-10.551 23.421H83.209c-13.496 2.29-27.076.305-39.145-5.882-16.739-8.555-27.77-24.07-29.507-41.479-2.904-28.977 8.2-52.11 32.084-66.886 22.953-14.206 47.322-16.992 72.452-8.279l4.625 1.613 1.76-3.993h47.959l3.626 21.774 7.078-21.774 219.799-.113c13.969 0 22.609 6.108 30.815 15.876 2.994-2.837 6.226-5.381 9.683-7.546 8.657-5.409 18.238-8.161 27.781-8.2L600 94.101l-46.874 79.68zM479.465 110.93c-20.956-4.839-42.708 11.86-48.574 37.311-5.882 25.441 6.356 49.984 27.313 54.829s42.709-11.855 48.58-37.301c5.871-25.44-6.362-50.001-27.319-54.839m-234.219-.796-21.43 50.424-9.249-50.424h-18.701L171.7 184.532l-12.396-74.398h-23.326l-35.32 80.156 5.267-33.51h-35.09l-2.684 17.246h14.663l-1.681 9.243c-8.409 3.35-22.699 2.092-28.79-8.832-3.858-6.919-7.439-22.378 8.82-36.567 13.236-11.561 36.145-13.654 49.381-7.563 0 0 1.68-9.672 2.944-18.701-25.424-8.837-45.179-1.472-58.41 6.728-18.024 11.156-26.698 28.153-24.38 51.265 2.673 26.822 37.402 43.712 66.818 26.692.271-.158.474-.276.671-.395l-2.769 6.277h19.75l12.402-27.527h21.853l4.834 27.527h32.151l16.383-51.484 10.518 51.484h12.61l24.589-56.943 2.51 56.943h18.915l-3.987-92.039zm285.788 30.048-11.764-30.048h-21.651l22.271 48.541-6.852 43.498h18.915l5.809-38.451 34.041-53.588h-22.068zm-257.629 61.991h52.742l3.163-19.75h-33.008l2.622-16.394h28.695l3.158-19.75h-29.005l2.521-16.395h32.992l3.152-19.75h-52.324zm131.065-91.52c-10.219-.169-35.457 0-35.457 0h.209l-14.595 91.328h42.539c17.523 0 43.138-25.818 19.818-46.899 23.98-24.825.209-44.215-12.514-44.429m82.395 54.377c-5.104 15.318-17.353 24.099-27.358 19.621-9.999-4.478-13.975-20.512-8.866-35.823 5.099-15.317 17.342-24.093 27.347-19.615 10.005 4.467 13.981 20.512 8.877 35.817m-93.455 19.243h-16.682l2.927-18.363h15.848c15.012 0 14.595 18.363-2.093 18.363M135.133 156.78l7.985-17.855 3.463 17.855zm260.573-9.633h-13.141l2.922-17.105h12.305c13.349 0 10.637 17.105-2.086 17.105" style="fill:#fff;fill-rule:nonzero"/><path d="M127.364 187.416h17.764v25.383h-17.764zm92.338 20.631h17.764v25.383h-17.764zm148.589 0h17.764v25.383h-17.764z" style="fill:#fff"/></g></g></svg>

After

Width:  |  Height:  |  Size: 4.0 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 7.0 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 560 320"><path d="M.95.03h559.24v320H.95z" style="fill:#1e90ff"/><path d="M402.422 89.544h61.112v24.321l-21.822 14.758h-67.456l22.347-14.97h39.49v-9.143h-61.112V80.706l22.559-15.274h67.348l-22.247 14.962h-40.219zm69.638-24.112h27.437v63.191H472.06zm65.474 24.112h61.112v24.321l-21.83 14.758h-67.448l22.347-14.97h39.495v-9.143h-61.113V80.706l22.551-15.274H600l-22.246 14.962h-40.22z" style="fill:#fff" transform="translate(30 106.25)scale(.83333)"/><path d="M315.538 113.653v-9.143h26.288l22.346-14.966h-48.634v-9.15h39.591l22.247-14.962h-65.374l-23.904 14.657v48.534h66.519l22.446-14.97zm-192.067 0v-9.143h26.295l22.342-14.966h-48.637v-9.15h39.595l22.242-14.962h-65.374l-23.9 14.657v48.534h66.515L185 113.653zm129.497-6.023L218.88 86.425v42.198h-27.441V65.432h27.853l33.676 18.498V65.432h27.441v63.191h-27.441zM27.437 80.394v33.259h34.088v-9.143H33.672l22.242-14.966h33.052v24.946l-20.997 14.133H0V80.818l22.759-15.386h74.416L75.037 80.394z" style="fill:#fff" transform="translate(30 106.25)scale(.83333)"/><path d="m219.249 49.726 21.342-.022c8.732 0 15.808-7.054 15.808-15.747 0-8.709-7.076-15.765-15.808-15.765l-5.543.03a.796.796 0 0 1-.791-.799c0-.44.355-.799.791-.799l21.304.004.009-6.683h-21.317c-4.121 0-7.475 3.348-7.475 7.461 0 4.118 3.353 7.453 7.475 7.453l5.569.073c5.003 0 9.051 4.035 9.051 9.013 0 4.981-4.048 9.025-9.051 9.025h-21.356z" style="fill:#fff;fill-rule:nonzero" transform="translate(30 106.25)scale(.83333)"/><path d="M219.257 41.401h21.356c4.134 0 7.478-3.335 7.478-7.457 0-4.117-3.344-7.448-7.478-7.448l-5.569-.061c-4.994 0-9.047-4.039-9.047-9.029 0-4.977 4.053-9.017 9.047-9.017l21.317-.004-.009-6.709h-21.304c-8.722 0-15.808 7.046-15.808 15.747s7.086 15.752 15.808 15.752l5.513.009c.419 0 .773.341.773.773a.773.773 0 0 1-.773.765l-21.312.017zm53.689 1.611c-3.703 0-6.736-2.951-6.736-6.718v-21.32c0-3.625 3.033-6.606 6.736-6.606l22.781.004V1.676h-22.781c-7.413 0-13.419 5.983-13.419 13.371v21.247c0 7.389 6.006 13.381 13.419 13.381l22.686.009-.005-6.68z" style="fill:#fff;fill-rule:nonzero" transform="translate(30 106.25)scale(.83333)"/><path d="M267.844 15.047a5.1 5.1 0 0 1 5.102-5.115h22.781v6.705H276.1c-1.572 0-1.594 1.56-1.594 1.56h16.374v6.675h-23.044zm5.102 26.341c-2.821 0-5.111-2.277-5.111-5.094v-9.833h23.045v6.689h-16.375c.022 1.572 1.594 1.58 1.594 1.58h19.532l-.004 6.649zm38.745 1.607c-3.69 0-6.705-3.007-6.705-6.701V15.046a6.677 6.677 0 0 1 6.687-6.679h22.065V1.676h-22.116c-7.41 0-13.415 5.983-13.415 13.371v21.247c0 7.389 6.057 13.381 13.466 13.381l22.065.009V18.197h-18.962v6.675h12.261v18.123z" style="fill:#fff;fill-rule:nonzero" transform="translate(30 106.25)scale(.83333)"/><path d="M306.558 36.294c0 2.831 2.29 5.133 5.115 5.133h13.782V26.453h-10.663v6.697h3.958l.012 1.572h-3.939c-.86 0-1.564-.713-1.564-1.572l-.035-14.958s-.005-1.555 1.581-1.594h18.94l-.008-6.671-22.065.005c-2.806 0-5.115 2.309-5.115 5.115zm47.914-26.462a2.19 2.19 0 0 1 2.061-1.461c.925 0 1.754.588 2.06 1.461l10.711 31.642H353.62l.017-7.443h5.241l-2.36-7.012-7.686 22.659h-7.906z" style="fill:#fff;fill-rule:nonzero" transform="translate(30 106.25)scale(.83333)"/><path d="M371.462 42.995h-17.816v6.683h27.114L366.658 7.957c-1.235-4.069-5.309-7.063-10.131-7.063-4.83 0-8.891 2.98-10.136 7.046L332.16 49.679h7.099l13.817-40.572a3.725 3.725 0 0 1 3.439-2.29 3.75 3.75 0 0 1 3.443 2.281z" style="fill:#fff;fill-rule:nonzero" transform="translate(30 106.25)scale(.83333)"/></svg>

After

Width:  |  Height:  |  Size: 3.5 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 21 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 560 320"><path d="M.95.03h559.24v320H.95z" style="fill:#ffa733"/><path d="M105.173 14.283c-2.287 7.687-4.447 15.372-6.734 23.058h13.403zm-5.59-11.369c2.35-3.049 7.304-3.557 10.163-1.017 1.207 1.017 2.033 2.414 2.477 3.875q8.1 27.82 16.197 55.643h-9.527c-1.525-5.082-2.986-10.227-4.447-15.372h-18.42a1382 1382 0 0 0-4.447 15.372h-9.464C87.26 43.693 92.342 26.034 97.487 8.376c.508-1.906.762-3.938 2.096-5.462m66.186 34.427h13.339c-2.223-7.686-4.446-15.435-6.669-23.121-2.224 7.75-4.447 15.435-6.67 23.121m.762-34.046c1.652-2.414 4.891-3.557 7.686-2.858 2.604.571 4.573 2.794 5.209 5.335 5.399 18.547 10.798 37.031 16.197 55.579h-9.528a1417 1417 0 0 0-4.446-15.372h-18.42c-1.461 5.146-2.986 10.227-4.447 15.372h-9.464l15.435-53.356c.572-1.525.762-3.303 1.778-4.7M121.243.373h34.491V9.71H143.03v51.705h-9.083V9.71h-12.704zm84.543.381c.889-.317 1.779-.381 2.732-.381h10.861c6.098.127 11.942 3.875 14.61 9.4 1.841 3.558 2.032 7.75 1.587 11.624-.317 4.129-2.033 8.195-5.208 10.926-1.652 1.461-3.748 2.414-5.527 3.684-.952.762-1.015 2.223-.508 3.239 4.828 7.432 9.846 14.737 14.737 22.105h-10.798c-4.701-7.051-9.338-14.165-14.038-21.279-1.397-2.033-1.778-4.701-.953-6.987.635-1.778 2.16-3.049 3.875-3.748 3.303-1.27 6.479-3.239 8.321-6.288 1.397-2.35 1.334-5.209.698-7.749-.698-3.303-3.938-5.907-7.367-5.78h-7.051c-1.08 0-2.033.889-2.033 1.968v49.799h-9.146V7.677c0-3.048 2.223-5.97 5.208-6.923m38.047-.381h9.655v61.042h-9.655zM27.208.284h4.622v10.9c.029 3.023-.058 6.046-.203 9.098-.204 4.361-.494 8.75-1.192 13.081-.494 2.965-1.541 5.843-2.82 8.576-2.093 4.389-5.348 8.11-9.04 11.249-3.285 2.907-7.238 5-11.366 6.453A38 38 0 0 1 0 61.415v-9.128c2.965-.436 5.785-1.482 8.43-2.878 3.139-1.657 5.93-3.866 8.314-6.511 2.441-2.703 4.389-5.843 5.871-9.157 1.744-3.837 2.675-7.964 3.314-12.092.785-5.262 1.134-10.581 1.25-15.901.029-1.86.029-3.662.029-5.464m6.512 0c2.848-.03 5.668 0 8.517 0v61.072H33.72c-.03-6.482 0-12.993-.03-19.475.03-13.866.03-27.732.03-41.597m10.406 0h4.593c-.058 6.22.174 12.412.901 18.603.611 4.797 1.453 9.622 3.372 14.069 1.802 4.332 4.418 8.343 7.82 11.57 3.255 3.081 7.179 5.465 11.453 6.831q1.787.566 3.662.872v9.127c-2.442-.319-4.825-.959-7.151-1.744-2.761-.959-5.435-2.209-7.906-3.808-1.803-1.162-3.43-2.529-5-3.982-2.587-2.384-4.884-5.087-6.628-8.168-1.366-2.384-2.354-4.971-3.139-7.587-.698-2.646-1.017-5.378-1.279-8.11-.524-5.872-.727-11.773-.698-17.674z" style="fill:#fff;fill-rule:nonzero" transform="translate(30 93.75)scale(.83333)"/><path d="M4.604 79.732h44.219v53.22H4.604zm-.196 59.48h111.918v16.631H4.408zm71.416-59.48h51.459l35.806 29.349-27.98 18.979zm65.351 52.632 81.786-52.828h38.545l-79.438 51.654v24.654h-40.893zM272.659 79.34l113.288 77.091h24.457V79.145h-22.109v53.219l-79.83-53.024zm-5.674 7.827 43.828 27.784v40.893h-44.024zm155.159-8.218 80.417 39.915 14.479-6.457 24.066 11.348h34.436l-87.069-45.002zm101.744 12.914 21.718 8.609L600 80.319h-56.742z" style="fill:#fff" transform="translate(30 93.75)scale(.83333)"/><path d="m596.211 158.192-80.416-39.915-14.479 6.457-24.067-11.349h-34.436l87.069 45.002zm-102.184-11.789-21.278-10.125-54.394 20.153h56.742z" style="fill:#fff" transform="translate(30 93.75)scale(.83333)"/></svg>

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 560 320"><path d="M.95.03h559.24v320H.95z" style="fill:gold"/><g transform="translate(30 115.417)scale(.83333)"><clipPath id="a"><path d="M0 0h600v107H0z"/></clipPath><g clip-path="url(#a)"><path d="M164.774 78.472h22.535V28.399h-15.246v28.713h-.132l-10.053-28.713h-22.533v50.073h15.238V49.569h.137zm85.013 0h22.533V28.399h-15.236v28.713h-.138l-10.054-28.713h-22.531v50.073h15.245V49.569h.132zm146.387 0h22.537V28.399h-15.242v28.713h-.136L393.28 28.399h-22.534v50.073h15.241V49.569h.133zm-199.66-50.073h18.796v50.073h-18.796zm93.202 13.602h-11.944V28.399h42.72v13.602h-11.985v36.471h-18.791zm36.326-13.616h37.17V41.63h-18.673v5.236h17.193v12.838h-17.193v5.618h19.269v13.134h-37.766zm100.758.014h22.267c18.992 0 25.037 10.749 25.037 25.59 0 15.12-9.327 24.484-23.913 24.484H426.8zm18.399 38.696h1.832c3.022 0 5.048-.927 6.232-2.938 1.248-2.082 1.387-5.874 1.387-10.723 0-4.854-.142-8.638-1.387-10.723-1.184-2.014-3.21-2.941-6.232-2.941h-1.832zm58.367-40.009c16.362 0 24.503 10.745 24.503 26.349 0 15.608-8.143 26.356-24.503 26.356-16.364 0-24.505-10.748-24.505-26.356 0-15.604 8.138-26.349 24.505-26.349m0 40.015c2.886 0 5.061-1.419 5.061-13.667 0-11.973-2.044-13.664-5.061-13.664-3.02 0-5.061 1.691-5.061 13.664 0 12.249 2.17 13.667 5.061 13.667" style="fill:#fff;fill-rule:nonzero"/><path d="M164.774 78.472h22.535V28.399h-15.246v28.713h-.132l-10.053-28.713h-22.533v50.073h15.238V49.569h.137zm85.013 0h22.533V28.399h-15.236v28.713h-.138l-10.054-28.713h-22.531v50.073h15.245V49.569h.132zm146.387 0h22.537V28.399h-15.242v28.713h-.136L393.28 28.399h-22.534v50.073h15.241V49.569h.133zm-199.66-50.073h18.796v50.073h-18.796zm93.202 13.602h-11.944V28.399h42.72v13.602h-11.985v36.471h-18.791zm36.326-13.616h37.17V41.63h-18.673v5.236h17.193v12.838h-17.193v5.618h19.269v13.134h-37.766zm235.643-6.644c-1-.088-1.972-.046-3.329.015-7.929.366-11.135 3.745-12.222 7.562h.192c1.974-1.725 4.414-2.531 7.683-2.531 6.289 0 12.033 4.573 12.033 13.152 0 8.209-6.31 14.603-14.78 14.603-11.157 0-16.011-8.521-16.011-17.658 0-7.422 2.634-13.708 6.956-17.763 4.113-3.811 9.418-5.736 15.91-5.884 1.719-.099 2.74 0 3.568.075zm-10.564 24.727c2.571 0 4.13-2.626 4.13-5.981-.021-2.831-1.317-5.917-4.765-5.917a4.67 4.67 0 0 0-4.367 2.947c-.241.494-.331 1.198-.331 2.393.22 3.199 1.763 6.559 5.269 6.559zm34.58 7.399v-8.986h-16.704v-7.18l13.412-23.899h13.346v22.847H600v8.232h-4.245v8.986zm0-17.218v-6.885c0-2.545.153-5.188.283-7.975h-.219c-1.241 2.704-2.322 5.279-3.734 8.072l-3.282 6.669-.035.121zM0 21.534v62.855L13.598 90.1V57.036l.005-.095.015-.093.024-.089.041-.103.053-.096.064-.089.074-.08.084-.071.093-.06.084-.041.088-.033.102-.025.104-.014h.111l.11.013.107.027.102.039.096.052.09.063.082.074.073.085.053.078.027.051 14.43 28.014.006.011 8.034 15.599 14.749 6.24V41.788l-14.502-5.555V68.78a.89.89 0 0 1-.881.891h-.018a.89.89 0 0 1-.779-.473L13.857 26.879zm106.777 0L93.18 26.778v40.486a.89.89 0 0 1-.869.891h-.018a.89.89 0 0 1-.734-.38L69.342 36.02l-15.061 5.768v64.705l14.502-6.135V61.926l.006-.106.018-.103.031-.099.041-.095.051-.088.066-.088.078-.08.085-.069.09-.055.096-.045.1-.033.105-.022.112-.008.112.005.115.021.078.023.097.041.086.048.058.04.068.056.047.047.025.028.033.04 22.197 28.969 14.199-5.964zM15.379 90.072l12.314-5.453-12.314-23.907zm74.283-.595-14.798-5.685-4.3-6.027V64.553zM36.215 35.145v30.056L15.746 26.637l13.682-5.277zm55.183-8.367L77.169 21.29l-7.877 8.877a1 1 0 0 1-.085.112l-2.342 2.628 1.701.653 1.426.546a.9.9 0 0 1 .429.347l20.977 29.983zm-50.211 7.553 12.203-4.677 13.793 5.284-13.793 5.283-13.792-5.283zm-10.313-14.07 6.672 13.554 2.704-1.036 11.861-21.167L38.636 6.37zm34.211 11.963 2.566-2.892V6.579L54.01 11.868 42.851 31.783l10.22-3.915.098-.031.099-.019.101-.008.102.003.1.015.099.026.038.014zM27.389 20.236l-12.901 4.976-12.901-4.976 12.901-4.963zm52.001-.001 12.899 4.977 12.901-4.976-12.901-4.963zM40.705 5.263 53.389.379l12.685 4.9-12.684 4.919z" style="fill:#fff;fill-rule:nonzero"/></g></g></svg>

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 560 320"><path d="M.95.03h559.24v320H.95z" style="fill:#2f80ed"/><g transform="translate(30 123.75)scale(.83333)"><clipPath id="a"><path d="M0 0h600v87H0z"/></clipPath><g clip-path="url(#a)"><path d="M380.155 45.933h-32.496c-4.701 0-8.531 3.861-8.531 8.549v23.189c0 4.675 3.83 8.526 8.531 8.526h32.496c4.706 0 8.54-3.851 8.54-8.526V54.482c0-4.688-3.834-8.549-8.54-8.549m1.383 31.676a1.67 1.67 0 0 1-1.673 1.666h-31.911a1.67 1.67 0 0 1-1.677-1.666V54.527c0-.918.751-1.665 1.677-1.665h31.911c.921 0 1.673.747 1.673 1.665zM7.457 11.25v29.834H0V.816h6.37L36.565 30.14V.816h7.354v40.268h-5.824zm74.74 0v29.834H74.74V.816h6.361l30.195 29.324V.816h7.363v40.268h-5.82zm154.897 0v29.834h-7.453V.816h6.361l30.19 29.324V.816h7.362v40.268h-5.81zM55.594.816h7.453v40.268h-7.453zm71.515 0h43.686v6.929h-17.974v33.339h-7.743V7.745h-17.969zm52.136 0h39.334v6.929h-31.953v9.036h24.719v6.92h-24.719v10.448h31.953v6.935h-39.334zm147.989 5.887c-2.912-3.845-7.229-5.887-12.445-5.887h-29.872v40.268h29.872c5.216 0 9.533-2.039 12.445-5.878 2.729-3.578 4.178-8.503 4.178-14.261 0-5.741-1.449-10.677-4.178-14.242m-12.23 27.446H292.11V7.745h22.894c7.162 0 9.707 7.119 9.707 13.2 0 6.089-2.545 13.204-9.707 13.204M380.155.816h-32.496c-4.701 0-8.531 3.856-8.531 8.544v23.194c0 4.688 3.83 8.53 8.531 8.53h32.496c4.706 0 8.54-3.842 8.54-8.53V9.36c0-4.688-3.834-8.544-8.54-8.544m1.383 31.68c0 .903-.752 1.653-1.673 1.653h-31.911c-.926 0-1.677-.75-1.677-1.653V9.409c0-.911.751-1.66 1.677-1.66h31.911c.921 0 1.673.749 1.673 1.66zm133.948 36.712c7.73 3.051 24.048 5.529 36.788 5.529 13.944 0 19.719-4.791 19.719-10.794 0-5.386-5.364-8.558-20.761-14.201-20.582-7.602-35.683-13.592-35.683-27.114 0-13.993 18.17-22.237 45.869-22.237 14.869 0 19.977.944 29.421 2.67l.071 13.293c-9.278-1.767-17.499-4.798-30.27-4.798-13.684 0-19.513 4.339-19.513 8.821 0 6.505 8.978 9.605 24.737 15.223C587.797 43.455 600 49.507 600 62.744c0 13.621-15.281 23.453-49.748 23.453-14.153 0-23.914-.93-34.766-2.674zm-29.332 10.803c-8.114 3.673-23.462 6.003-36.877 6.003h-51.269V.579h51.269c13.415 0 28.763 2.362 36.891 6.029 19.745 8.914 26.187 23.177 26.187 36.7 0 13.52-6.384 27.767-26.201 36.703m-44.03-67.873H425.72v62.087h16.404c25.18 0 41.065-10.77 41.065-30.917s-15.885-31.17-41.065-31.17" style="fill:#fff;fill-rule:nonzero"/></g></g></svg>

After

Width:  |  Height:  |  Size: 2.4 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 6.5 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 560 320"><path d="M.95.03h559.24v320H.95z" style="fill:#2e6dff"/><path d="M41.664 124.016h-5.747L5.894 80.843v43.173H0V72.002h7.22l28.585 41.258V72.002h5.859zm34.627 0H47.263l-.112-52.014h29.028v5.879H52.99v16.462h21.672v5.835H52.99v18.963h23.235zm29.726-53.495c-15.079 0-27.488 12.409-27.488 27.488 0 15.08 12.409 27.488 27.488 27.488 15.08 0 27.488-12.408 27.488-27.488s-12.408-27.488-27.488-27.488m.073 6.048c11.802 0 21.513 9.712 21.513 21.514s-9.712 21.514-21.514 21.513-21.513-9.711-21.513-21.513 9.711-21.513 21.513-21.514m147.276-6.048c-15.08 0-27.488 12.409-27.488 27.488 0 15.08 12.408 27.488 27.488 27.488s27.488-12.408 27.488-27.488-12.409-27.488-27.488-27.488m.073 6.048c11.802 0 21.514 9.712 21.514 21.514s-9.712 21.514-21.514 21.513-21.513-9.711-21.513-21.513c-.001-11.802 9.711-21.513 21.513-21.514m-89.133-6.327a27.5 27.5 0 0 0-8.811 1.588c-13.26 4.708-20.909 18.71-17.753 32.457s16.151 22.978 30.128 21.381 24.567-14.665 24.567-26.688h-6.52c0 9.087-8.065 18.984-18.788 20.21-10.722 1.225-20.601-5.783-23.029-16.363s3.404-21.238 13.58-24.852c9.099-3.231 19.004.106 24.383 7.825h7.541c-4.627-9.47-14.043-15.234-24.043-15.548a28 28 0 0 0-1.255-.01" style="fill:#fff;fill-rule:nonzero" transform="translate(30 83.25)scale(.83333)"/><path d="M192.437 98.98h-36.402v5.887h31.882zm32.38 25.036H195.79l-.112-52.014h29.027v5.879h-23.188v16.462h21.671v5.835h-21.671v18.963h23.234zM374.19 70.521c-15.079 0-27.488 12.409-27.488 27.488 0 15.08 12.409 27.488 27.488 27.488s27.488-12.408 27.488-27.488-12.409-27.488-27.488-27.488m.073 6.048c11.803 0 21.514 9.712 21.514 21.514s-9.712 21.514-21.514 21.513-21.513-9.711-21.513-21.513 9.711-21.513 21.513-21.514m60.572-6.328v.001a27.5 27.5 0 0 0-8.81 1.588c-13.261 4.709-20.909 18.71-17.754 32.457 3.156 13.747 16.152 22.978 30.129 21.381 9.732-1.112 17.817-7.787 21.833-15.797h-7.455c-3.364 4.832-8.776 8.594-15.119 9.319-10.722 1.225-20.601-5.783-23.03-16.363-2.428-10.579 3.405-21.238 13.581-24.852 9.099-3.231 19.004.106 24.382 7.825h7.542c-4.627-9.47-14.043-15.234-24.043-15.548a31 31 0 0 0-1.256-.011m113.558 53.775h-29.028l-.112-52.014h29.028v5.879h-23.189v16.462h21.672v5.835h-21.672v18.963h23.235zm-81.484-52.014h5.929v52.014h-5.929zm35.252 52.014h7.81L483.006 96.02l-4.863 3.684z" style="fill:#fff;fill-rule:nonzero" transform="translate(30 83.25)scale(.83333)"/><path d="M502.014 72.002h7.662l-39.931 41.405 1.62-10.756zm55.55 0H600v5.879h-42.436z" style="fill:#fff;fill-rule:nonzero" transform="translate(30 83.25)scale(.83333)"/><path d="M575.688 72.002h6.006v52.014h-6.006zm-277.129 1.779 7.445-21.46 19.768.06.169 9.621-13.047-.105-2.665 9.876 13.396 9.691c6.602-2.712 11.315-8.612 12.284-15.379s-1.961-13.318-7.636-17.076c-5.676-3.758-13.16-4.005-19.555-.831l-21.514 10.676 32.422 65.335-8.447 4.192-36.811-74.178 30.621-15.196c10.031-4.977 21.968-3.771 30.495 3.083s12.059 18.08 9.022 28.679S332.033 89.234 322 92.394zM323.261.989l-3.439 25.526 6.46 1.251 9.065-25.006zm25.318 8.022L335.868 31.1l5.626 3.751 16.045-19.484zm16.983 15.316L347.12 40.79l4.272 6.355 20.317-12.711z" style="fill:#fff;fill-rule:nonzero" transform="translate(30 83.25)scale(.83333)"/></svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 560 320"><path d="M.95.03h559.24v320H.95z" style="fill:#b667d0"/><path d="M41.664 123.343h-5.747L5.894 80.17v43.173H0V71.33h7.22l28.585 41.257V71.33h5.859zm34.627 0H47.263l-.112-52.013h29.028v5.879H52.99v16.462h21.672v5.834H52.99v18.963h23.235zm29.726-53.494c-15.079 0-27.488 12.408-27.488 27.487 0 15.08 12.409 27.488 27.488 27.488 15.08 0 27.488-12.408 27.488-27.488s-12.408-27.487-27.488-27.487m.073 6.047c11.802 0 21.513 9.712 21.513 21.514v.001c0 11.802-9.712 21.513-21.514 21.513-11.802-.001-21.513-9.712-21.513-21.513 0-11.803 9.711-21.514 21.513-21.515m147.276-6.047c-15.08 0-27.488 12.408-27.488 27.487 0 15.08 12.408 27.488 27.488 27.488s27.488-12.408 27.488-27.488-12.409-27.487-27.488-27.487m.073 6.047c11.802 0 21.514 9.712 21.514 21.514v.001c0 11.802-9.712 21.513-21.514 21.513-11.802-.001-21.513-9.712-21.513-21.513-.001-11.803 9.711-21.514 21.513-21.515m-89.133-6.327c-2.937.043-5.91.558-8.811 1.588-13.26 4.709-20.909 18.71-17.753 32.457s16.151 22.978 30.128 21.381 24.567-14.665 24.567-26.688h-6.52c0 9.087-8.065 18.985-18.788 20.21-10.722 1.225-20.601-5.783-23.029-16.362-2.429-10.58 3.404-21.239 13.58-24.852 9.099-3.232 19.004.105 24.383 7.824h7.541c-4.627-9.47-14.043-15.234-24.043-15.547a26 26 0 0 0-1.255-.011" style="fill:#fff;fill-rule:nonzero" transform="translate(30 78.333)scale(.83333)"/><path d="M192.437 98.307h-36.402v5.887h31.882zm32.38 25.036H195.79l-.112-52.013h29.027v5.879h-23.188v16.462h21.671v5.834h-21.671v18.963h23.234zM374.19 69.849c-15.079 0-27.488 12.408-27.488 27.487 0 15.08 12.409 27.488 27.488 27.488s27.488-12.408 27.488-27.488-12.409-27.487-27.488-27.487m.073 6.047c11.803 0 21.514 9.712 21.514 21.514v.001c0 11.802-9.712 21.513-21.514 21.513-11.802-.001-21.513-9.712-21.513-21.513 0-11.803 9.711-21.514 21.513-21.515m60.572-6.328v.001a27.5 27.5 0 0 0-8.81 1.588c-13.261 4.709-20.909 18.71-17.754 32.457 3.156 13.748 16.152 22.978 30.129 21.381 9.732-1.112 17.817-7.787 21.833-15.797h-7.455c-3.364 4.832-8.776 8.594-15.119 9.319-10.722 1.225-20.601-5.783-23.03-16.362-2.428-10.58 3.405-21.239 13.581-24.852 9.099-3.232 19.004.105 24.382 7.824h7.542c-4.627-9.47-14.043-15.234-24.043-15.547a29 29 0 0 0-1.256-.012m113.558 53.775h-29.028l-.112-52.013h29.028v5.879h-23.189v16.462h21.672v5.834h-21.672v18.963h23.235zM466.909 71.33h5.929v52.014h-5.929zm35.252 52.013h7.81l-26.965-27.996-4.863 3.684z" style="fill:#fff;fill-rule:nonzero" transform="translate(30 78.333)scale(.83333)"/><path d="M502.014 71.33h7.662l-39.931 41.404 1.62-10.756zm55.55 0H600v5.879h-42.436z" style="fill:#fff;fill-rule:nonzero" transform="translate(30 78.333)scale(.83333)"/><path d="M575.688 71.33h6.006v52.014h-6.006zm-277.129 1.778 7.445-21.46 19.768.06.169 9.621-13.047-.105-2.665 9.876 13.396 9.691c6.602-2.712 11.315-8.612 12.284-15.379s-1.961-13.318-7.636-17.076c-5.676-3.758-13.16-4.005-19.555-.831l-21.514 10.677 32.422 65.334-8.447 4.192-36.811-74.178 30.621-15.196c10.031-4.977 21.968-3.771 30.495 3.083s12.059 18.08 9.022 28.679S332.033 88.561 322 91.721zM323.261.316l-3.439 25.527 6.46 1.25 9.065-25.006zm25.318 8.023-12.711 22.088 5.626 3.751 16.045-19.484zm16.983 15.316L347.12 40.117l4.272 6.355 20.317-12.711zM211.525 137.709v.001a16.4 16.4 0 0 0-5.272.949c-7.935 2.818-12.511 11.196-10.623 19.422s9.664 13.749 18.027 12.793c5.824-.665 10.661-4.659 13.065-9.452h-4.461c-2.013 2.891-5.251 5.142-9.047 5.576-6.415.733-12.327-3.46-13.78-9.791-1.453-6.33 2.037-12.708 8.126-14.87a12.61 12.61 0 0 1 14.59 4.682h4.512a16.6 16.6 0 0 0-15.137-9.309zm53.14.517c-9.023 0-16.448 7.425-16.448 16.448s7.425 16.447 16.448 16.447 16.447-7.424 16.447-16.447-7.424-16.448-16.447-16.448m.043 3.619c7.062 0 12.873 5.811 12.873 12.873-.001 7.062-5.812 12.873-12.874 12.873-7.061-.001-12.872-5.811-12.872-12.873s5.811-12.873 12.872-12.873" style="fill:#fff;fill-rule:nonzero" transform="translate(30 78.333)scale(.83333)"/><path d="M304.88 138.798h3.46v31.123h-3.46z" style="fill:#fff" transform="translate(30 78.333)scale(.83333)"/><path d="M304.88 167.004h17.329v2.917H304.88z" style="fill:#fff" transform="translate(30 78.333)scale(.83333)"/><path d="M356.125 138.226c-9.023 0-16.447 7.425-16.447 16.448s7.424 16.447 16.447 16.447 16.448-7.424 16.448-16.447-7.425-16.448-16.448-16.448m.044 3.619c7.062 0 12.873 5.811 12.873 12.873s-5.811 12.873-12.873 12.873c-7.062-.001-12.872-5.811-12.873-12.873s5.811-12.873 12.873-12.873m39.093-3.047h3.46v31.123h-3.46z" style="fill:#fff;fill-rule:nonzero" transform="translate(30 78.333)scale(.83333)"/><path d="M407.402 159.453a10.47 10.47 0 0 0-2.42-20.655h-9.72l1.935 3.482h7.738a6.948 6.948 0 1 1 0 13.897h-7.674l-.129 3.745h5.841l7.347 9.999h4.476z" style="fill:#fff;fill-rule:nonzero" transform="translate(30 78.333)scale(.83333)"/></svg>

After

Width:  |  Height:  |  Size: 4.8 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.0 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 24 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 560 320"><path d="M.95.03h559.24v320H.95z" style="fill:#4169e1"/><g transform="translate(30 111.25)scale(.83333)"><clipPath id="a"><path d="M0 0h600v117H0z"/></clipPath><g clip-path="url(#a)"><path d="m281.647 43.051 18.338 48.061-10.528 25.784h8.32l30.317-73.845h-9.289l-13.206 35.992-12.287-35.992zm53.995 48.851v-6.068s10.599.415 12.808.415c4.891 0 7.333-1.042 9.172-3.014 1.086-1.183 2.066-6.421 2.066-8.288 0-1.859-.358-5.881-1.085-7.529-.752-1.614-2.46-3.121-5.021-3.339-1.826-.157-4.649-.526-7.95-.678-4.629-.219-7.688-2.634-9.162-4.37-1.46-1.738-3.417-4.355-3.417-12.361 0-8.017 2.073-12.51 4.152-14.595 2.079-2.096 5.12-3.014 7.458-3.429 2.688-.459 7.081-.487 7.081-.487l14.029.409v6.068s-10.23-.409-12.431-.409c-4.892 0-6.36 1.048-8.192 3.015-1.082 1.17-1.927 4.409-1.927 6.264 0 1.864.217 5.63.952 7.26.728 1.615 2.443 3.127 5.009 3.357 1.821.14 4.65.51 7.945.66 4.649.219 7.703 2.628 9.16 4.372 1.475 1.741 3.434 5.412 3.434 13.411 0 8.018-2.09 13.745-4.158 15.835-2.083 2.083-5.12 3.015-7.456 3.418-2.695.463-7.087.498-7.087.498zM218.301 28.076h10.022v64.208h-10.022zm172.03 6.15h-10.018v47.138s.24 4.302.488 5.815c.245 1.513 2.448 5.105 8.19 5.105l10.382-.202v-6.046s-2.812.202-4.509.202c-1.721 0-3.805-.112-4.158-3.02-.376-2.902-.376-6.37-.376-6.37V49.091h11.319v-6.04H390.33v-8.824zm96.728 8.828h10.018v49.23h-10.018zM467.1 34.226h-10.023v47.138s.236 4.302.478 5.815c.251 1.513 2.436 5.105 8.202 5.105l10.38-.202v-6.046s-2.818.202-4.52.202-3.793-.112-4.158-3.02c-.358-2.902-.358-6.37-.358-6.37V49.091h11.289v-6.04h-11.289zm-298.227-6.151v64.207h10.024V34.229h9.278s6.741 0 9.049 3.014c1.961 2.561 2.319 7.206 2.319 10.343 0 3.357-.212 8.544-1.339 10.443-1.709 2.902-4.516 3.484-7.082 3.484h-6.125v5.699h8.808s7.946.331 11.364-3.143c4.19-4.258 5.254-9.984 5.254-17.649 0-6.965-2.527-13.991-7.692-16.377-4.275-1.967-11.984-1.967-11.984-1.967zm401.97 21.89 9.827-.414c2.571 0 5.598.694 7.066 2.555 1.367 1.753 2.229 3.843 2.229 7.21v32.912H600V58.487c0-6.381-1.967-10.091-4.914-12.421-4.202-3.334-11.731-3.015-11.731-3.015l-22.451.403v48.774h9.939zm-304.485 9.351c0-3.367-.857-5.457-2.237-7.21-1.468-1.861-4.481-2.557-7.06-2.557l-13.218.416v-6.511l15.908-.403s7.529-.32 11.738 3.015c2.936 2.332 4.885 6.04 4.885 12.421v33.27l-19.206.414s-8.695.031-13.077-1.741c-4.269-1.738-6.599-6.505-6.599-13.123 0-6.387 1.955-10.097 4.891-12.427 4.207-3.339 11.731-3.009 11.731-3.009h6.136v5.671h-3.441c-2.577 0-5.226.476-6.701 2.336-1.372 1.736-2.107 3.245-2.107 6.612 0 4.42.857 6.391 2.936 7.894 1.839 1.339 5.127 1.629 8.798 1.629l6.623-.403zm168.996 0c0-3.367-.839-5.457-2.218-7.21-1.485-1.861-4.499-2.557-7.059-2.557l-13.212.416v-6.511l15.895-.403s7.525-.32 11.728 3.015c2.936 2.332 4.897 6.04 4.897 12.421v33.27l-19.208.414s-8.706.031-13.077-1.741c-4.275-1.738-6.611-6.505-6.611-13.123 0-6.387 1.972-10.097 4.891-12.427 4.203-3.339 11.743-3.009 11.743-3.009h6.13v5.671h-3.445c-2.561 0-5.227.476-6.684 2.336-1.379 1.736-2.118 3.245-2.118 6.612 0 4.42.863 6.391 2.936 7.894 1.832 1.339 5.138 1.629 8.807 1.629l6.606-.403zm93.39-16.685c6.818 0 12.108 1.524 14.948 3.821 2.869 2.304 6.391 7.161 6.391 21.218s-3.522 18.909-6.391 21.219c-2.841 2.296-8.13 3.832-14.948 3.832-6.837 0-12.103-1.536-14.966-3.832-2.862-2.31-6.37-7.161-6.37-21.219 0-14.057 3.508-18.916 6.37-21.218 2.863-2.297 8.129-3.821 14.966-3.821m-6.869 9.44c-1.38 1.699-3.06 5.267-3.06 15.599 0 10.327 1.68 13.9 3.058 15.592 1.374 1.682 3.905 2.819 7.184 2.819 3.283 0 5.804-1.138 7.195-2.818 1.372-1.693 3.052-5.268 3.052-15.592 0-10.333-1.68-13.902-3.052-15.599-1.391-1.685-3.912-2.813-7.195-2.813-3.277 0-5.81 1.126-7.184 2.813zm-34.816-23.998h10.018v8.938h-10.018z" style="fill:#fff"/><path d="M52.331.259v100.819l22.828 7.232V23.775c0-3.984 1.776-6.629 4.625-5.719 3.724 1.033 4.448 4.703 4.448 8.642v33.761c14.209 6.878 25.396-.004 25.396-18.15 0-18.542-6.558-26.802-25.858-33.444C76.159 6.331 62.051 2.054 52.332.259" style="fill:#fff;fill-rule:nonzero"/><path d="m79.501 93.571 36.663-13.05c4.148-1.537 4.782-3.625 1.425-4.723-3.409-1.118-9.495-.798-13.686.707l-24.402 8.608V71.378l1.397-.461s7.064-2.502 16.998-3.58c9.915-1.087 22.076.142 31.633 3.744 10.766 3.42 11.972 8.409 9.249 11.881-2.764 3.436-9.464 5.921-9.464 5.921l-49.813 17.894zm-68.996-1.389C-.534 89.108-2.375 82.61 2.662 78.856c4.644-3.427 12.555-6.008 12.555-6.008l32.7-11.659v13.27l-23.51 8.427c-4.164 1.49-4.789 3.586-1.434 4.682 3.414 1.141 9.473.835 13.64-.703l11.304-4.076v11.847c-.728.122-1.539.245-2.278.371-11.271 1.871-23.278 1.103-35.134-2.824z" style="fill:#fff"/></g></g></svg>

After

Width:  |  Height:  |  Size: 4.6 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 7.1 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2" viewBox="0 0 560 320"><path d="M.95.03h559.24v320H.95z" style="fill:#ff7b54"/><path d="M0 59.32h29.719v8.746h-8.698V186.77H10.508V68.066H0zm56.641 118.762h11.601V94.916h10.146v83.166c0 5.382-4.892 9.195-9.906 9.195H56.641c-5.299 0-10.027-4.313-10.027-9.304V94.916h10.027zm218.182-62.853h15.496v72.131h-21.836c-4.669 0-10.42-3.574-10.42-8.996V69.329c0-4.581 4.799-9.459 10.191-9.459h11.915c5.286 0 10.081 4.834 10.081 9.352v25.831h-10.444V69.582h-11.867v108.862h12.142v-54.388h-5.258zm149.84 27.863v43.72h-9.783v-83.735c0-3.783 3.759-7.904 8.516-7.904h16.129v8.071h-14.862v30.937h12.235v8.952zm34.703-47.895h10.269v33.35l5.799 5.83 5.676-5.668V95.197h10.145v31.731c0 3.874-10.023 14.082-10.023 14.082s10.146 10.201 10.146 14.336v31.65h-9.543v-32.951l-6.162-6.23-6.161 6.149v33.033h-10.146v-31.575c0-3.882 10.747-14.493 10.747-14.493s-10.747-10.094-10.747-14.161zm-337.005 48.101c3.442 0 8.02-4.115 8.02-9.622V103.58c0-4.331-4.939-8.363-10.557-8.363h-20.84v91.963h9.606v-43.206h3.624l10.691 43.043h9.423zm-1.901-8.993h-11.508v-30.178h11.508zm214.458 8.753c3.444 0 8.024-4.122 8.024-9.626v-30.096c0-4.329-4.943-8.366-10.557-8.366h-20.839v91.97h9.598v-43.212h3.628l10.693 43.041h9.421zm-2.04-9.096h-11.501v-30.177h11.501zm-151.149 11.505c-.044-4.122-4.346-6.729-4.346-6.729s4.346-2.813 4.346-6.724v-28.075c0-5.299-4.665-8.746-9.42-8.746h-21.928v91.804h21.928c4.44 0 9.42-2.773 9.42-8.743 0 0 .049-28.672 0-32.787m-9.875 32.534h-11.505v-34.217h11.505zm0-43.717h-11.505v-30.177h11.505zm51.87-39.769h-11.416c-5.754 0-9.944 4.919-9.944 8.66v74.557c0 4.82 5.368 9.189 9.899 9.189h12.412c4.848 0 9.695-5.005 9.695-8.996v-75.003c0-3.361-4.577-8.407-10.646-8.407m.362 82.93h-11.115v-73.848h11.115zm160.822-82.273H372.23c-5.711 0-9.064 4.707-9.064 8.408v83.232h9.605v-43.72h12.138v43.72h9.605v-82.73c-.001-5.49-3.8-8.91-9.606-8.91m-.274 38.841h-11.501v-29.591h11.501z" style="fill:#fff;fill-rule:nonzero" transform="translate(30 81.25)scale(.83333)"/><path d="M549.173 143.927h29.733v11.09h-29.733z" style="fill:#fff" transform="translate(30 81.25)scale(.83333)"/><path d="M552.844 93.899c-26.043 0-47.15 21.11-47.15 47.152s21.106 47.156 47.15 47.156c26.041 0 47.156-21.112 47.156-47.156-.001-26.041-21.115-47.152-47.156-47.152m-16.048 66.527h-14.952v-5.238h4.82v-27.671h-4.731v-5.411h10.139V155.1h4.724zm47.265-28.267h-4.805v-4.813h-30.343v11.514h32.403l2.745 2.753v15.213l-3.436 3.436h-33.169l-3.438-3.436v-31.369l3.184-3.181h33.943l2.916 2.92zM49.547 2.438h36.851l-2.444 14.003s-1.085-7.591-5.62-10.562c-1.126-.527-4.011-.491-11.24-.491l-2.83 16.696c5.764 1.356 12.156-7.427 12.156-7.427l-3.676 19.415s-2.255-8.791-9.318-8.5l-3.133 17.271c10.287 0 10.087-.073 12.572-1.591 2.399-1.466 7.999-8.68 8.21-9.69l-2.284 14.47H41.539c.276-1.927 3.905-2.134 5.529-3.239l3.048-16.798c-.246-1.502-3.192-.208-3.79-1.497.506-1.381 3.468-.476 4.328-1.472l3.092-17.043c-.552-1.288-4.199-1.92-4.199-3.545m69.519-1.311c1.622 3.346 2.926 7.021 4.113 10.817-2.254.874-5.378 2.294-5.378 2.294l-5.931-8.24c-6.178-.484-14.527 8.718-15.159 14.467-.74 6.802 3.492 13.521 10.122 14.095 6.907.6 15.184-5.244 15.184-5.244l-7.592 16.716c-15.658 5.572-27.245-4.656-27.838-16.716-.909-18.411 15.752-28.557 32.479-28.189" style="fill:#fff;fill-rule:nonzero" transform="translate(30 81.25)scale(.83333)"/><path d="M33.438 25.281 38.793.32 48.98 6.579l-8.143 4.803-7.383 35.986L9.643 20.571 6.382 37.164l5.793 4.778L0 47.368l5.915-28.024c.645-4.234-2.283-5.693-4.861-6.567L11.484.759z" style="fill:#fff;fill-rule:nonzero" transform="translate(30 81.25)scale(.83333)"/></svg>

After

Width:  |  Height:  |  Size: 3.6 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 53 KiB

View File

@@ -0,0 +1,174 @@
/* Neon Console Theme */
:root {
/* ================================ */
/* THEME FOUNDATION COLORS */
/* ================================ */
--console-accent-primary: #0d6efd;
--console-accent-secondary: #ffd601;
--console-accent-tertiary: #6f42c1;
--console-accent-fallback: #f8b400;
--console-text-primary: #212529;
--console-text-secondary: #ffffff;
--console-text-muted: #868e96;
--console-text-dimmed: #adb5bd;
/* ================================ */
/* GLOBAL MODALS */
/* ================================ */
--console-modal-bg: #ffffff;
--console-modal-header-bg: #f8f9fa;
--console-modal-text: var(--console-text-primary);
--console-modal-text-secondary: #6b7280;
--console-modal-border: #dee2e6;
--console-modal-border-secondary: #e9ecef;
--console-modal-shadow: rgba(0, 0, 0, 0.25);
/* Modal Tiles */
--console-modal-tile-bg: #f1f3f4;
--console-modal-tile-border: rgba(0, 0, 0, 0.1);
--console-modal-tile-selected-bg: #e8f0fe;
--console-modal-tile-selected-border: var(--console-accent-secondary);
/* Modal Buttons and Controls */
--console-modal-button-bg: #f8f9fa;
--console-modal-button-border: rgba(0, 0, 0, 0.25);
--console-modal-button-text: #000000;
--console-modal-button-indicator: var(--console-accent-tertiary);
/* Modal Navigation Hints */
--console-nav-hint-modal-text: var(--console-text-primary);
--console-nav-hint-modal-accent: rgba(0, 0, 0, 0.15);
--console-nav-hint-modal-keycap: rgba(0, 0, 0, 0.7);
/* ================================ */
/* GLOBAL NAVIGATION */
/* ================================ */
--console-nav-back-button-bg: rgba(255, 255, 255, 0.5);
--console-nav-back-button-text: var(--console-text-secondary);
--console-nav-back-button-border: rgba(0, 0, 0, 0.2);
--console-nav-back-button-hover-bg: rgba(0, 0, 0, 0.2);
/* Standalone Navigation Hints */
--console-nav-hint-bg: rgba(255, 255, 255, 0.5);
--console-nav-hint-border: rgba(0, 0, 0, 0.2);
--console-nav-hint-text: var(--console-text-primary);
--console-nav-hint-accent: rgba(0, 0, 0, 0.15);
--console-nav-hint-keycap: rgba(0, 0, 0, 0.7);
/* ================================ */
/* GLOBAL TEXT */
/* ================================ */
--console-loading-text: var(--console-text-muted);
--console-error-text: #ff6b6b; /* neon red variant */
/* ================================ */
/* GLOBAL UI */
/* ================================ */
/* System Cards */
--console-system-card-bg-fallback: linear-gradient(
135deg,
#e2e6ea 0%,
#d6dae0 100%
);
--console-system-accent-fallback: var(--console-accent-tertiary);
--console-system-card-text: var(--console-text-secondary);
/* Game Cards */
--console-game-card-bg: linear-gradient(180deg, #212121 0%, #303030 100%);
--console-game-card-text: var(--console-text-secondary);
--console-game-card-focus-border: var(--console-accent-secondary);
--console-game-card-star: var(--console-accent-secondary);
/* Collections Cards */
--console-collection-card-bg: linear-gradient(
180deg,
#212121 0%,
#303030 100%
);
--console-collection-card-text: var(--console-text-secondary);
--console-collection-card-text-secondary: var(--console-accent-secondary);
--console-collection-card-focus-border: var(--console-accent-secondary);
/* ================================ */
/* HOME VIEW */
/* ================================ */
/* Title and Branding */
--console-home-title-text: var(--console-text-secondary);
/* Category Headers */
--console-home-category-text: var(--console-text-secondary);
/* Carousel Navigation */
--console-home-carousel-button-bg: rgba(0, 0, 0, 0.2);
--console-home-carousel-button-text: #ffffff;
--console-home-carousel-button-border: rgba(255, 255, 255, 0.2);
/* Control Buttons */
--console-home-control-button-bg: rgba(0, 0, 0, 0.1);
--console-home-control-button-text: var(--console-text-secondary);
--console-home-control-button-border: rgba(0, 0, 0, 0.2);
--console-home-control-button-focus-border: var(--console-accent-secondary);
/* ================================ */
/* GAME VIEW */
/* ================================ */
/* Text Elements */
--console-game-title-text: var(--console-text-secondary);
--console-game-description-text: var(--console-text-secondary);
--console-game-metadata-text: var(--console-text-secondary);
--console-game-section-header: var(--console-text-secondary);
/* Action Buttons */
--console-game-play-button-bg: var(--console-accent-primary);
--console-game-play-button-text: #ffffff;
--console-game-play-button-focus-border: var(--console-accent-secondary);
--console-game-details-button-bg: var(--console-accent-tertiary);
--console-game-details-button-text: #ffffff;
--console-game-details-button-focus-border: var(--console-accent-secondary);
/* Platform Badge */
--console-game-platform-badge-bg: var(--console-accent-primary);
--console-game-platform-badge-text: #ffffff;
/* Screenshot Panel */
--console-game-screenshot-panel-bg: rgba(0, 0, 0, 0.4);
--console-game-screenshot-panel-border: rgba(0, 0, 0, 0.1);
/* Screenshot Thumbnails */
--console-game-screenshot-thumbnail-focus-border: var(
--console-accent-secondary
);
/* State Cards */
--console-game-state-card-border: rgba(0, 0, 0, 0.1);
--console-game-state-card-focus-border: var(--console-accent-secondary);
/* ================================ */
/* GAMESLIST VIEW */
/* ================================ */
/* Alphabet Navigation */
--console-gameslist-scrollbar-bg: rgba(0, 0, 0, 0.3);
--console-gameslist-alphabet-bg: rgba(0, 0, 0, 0.05);
--console-gameslist-alphabet-border: rgba(0, 0, 0, 0.1);
--console-gameslist-alphabet-text: var(--console-text-secondary);
--console-gameslist-alphabet-active-text: var(--console-text-secondary);
--console-gameslist-alphabet-active-bg: rgba(248, 180, 0, 1);
/* ================================ */
/* PLAY VIEW */
/* ================================ */
/* Control Hints */
--console-play-hint-bg: rgba(0, 0, 0, 0.6);
--console-play-hint-border: rgba(0, 0, 0, 0.1);
--console-play-hint-text: rgba(255, 255, 255, 0.8);
/* Save State Dialog */
--console-play-save-status-text: var(--console-accent-secondary);
--console-play-save-separator-border: rgba(0, 0, 0, 0.1);
}
.console-root::before {
background: rgba(0, 0, 0, 0.15);
}

View File

@@ -10,6 +10,7 @@
"license": "AGPL-3.0-only",
"dependencies": {
"@mdi/font": "7.4.47",
"@vueuse/core": "^13.7.0",
"axios": "^1.8.4",
"cronstrue": "^2.57.0",
"date-fns": "^4.1.0",
@@ -31,6 +32,7 @@
},
"devDependencies": {
"@eslint/js": "^9.21.0",
"@tailwindcss/vite": "^4.1.12",
"@types/eslint__js": "^9.14.0",
"@types/js-cookie": "^3.0.6",
"@types/lodash": "^4.17.16",
@@ -43,6 +45,7 @@
"eslint-plugin-vue": "^9.26.0",
"globals": "^16.0.0",
"openapi-typescript-codegen": "^0.29.0",
"tailwindcss": "^4.0.0",
"typescript": "^5.7.3",
"typescript-eslint": "^8.28.0",
"vite": "^6.3.5",
@@ -2587,6 +2590,19 @@
"url": "https://github.com/sponsors/kazupon"
}
},
"node_modules/@isaacs/fs-minipass": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz",
"integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==",
"dev": true,
"license": "ISC",
"dependencies": {
"minipass": "^7.0.4"
},
"engines": {
"node": ">=18.0.0"
}
},
"node_modules/@jridgewell/gen-mapping": {
"version": "0.3.8",
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz",
@@ -2601,6 +2617,17 @@
"node": ">=6.0.0"
}
},
"node_modules/@jridgewell/remapping": {
"version": "2.3.5",
"resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",
"integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"@jridgewell/gen-mapping": "^0.3.5",
"@jridgewell/trace-mapping": "^0.3.24"
}
},
"node_modules/@jridgewell/resolve-uri": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
@@ -3243,6 +3270,293 @@
"sourcemap-codec": "^1.4.8"
}
},
"node_modules/@tailwindcss/node": {
"version": "4.1.12",
"resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.1.12.tgz",
"integrity": "sha512-3hm9brwvQkZFe++SBt+oLjo4OLDtkvlE8q2WalaD/7QWaeM7KEJbAiY/LJZUaCs7Xa8aUu4xy3uoyX4q54UVdQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"@jridgewell/remapping": "^2.3.4",
"enhanced-resolve": "^5.18.3",
"jiti": "^2.5.1",
"lightningcss": "1.30.1",
"magic-string": "^0.30.17",
"source-map-js": "^1.2.1",
"tailwindcss": "4.1.12"
}
},
"node_modules/@tailwindcss/node/node_modules/jiti": {
"version": "2.5.1",
"resolved": "https://registry.npmjs.org/jiti/-/jiti-2.5.1.tgz",
"integrity": "sha512-twQoecYPiVA5K/h6SxtORw/Bs3ar+mLUtoPSc7iMXzQzK8d7eJ/R09wmTwAjiamETn1cXYPGfNnu7DMoHgu12w==",
"dev": true,
"license": "MIT",
"bin": {
"jiti": "lib/jiti-cli.mjs"
}
},
"node_modules/@tailwindcss/oxide": {
"version": "4.1.12",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.1.12.tgz",
"integrity": "sha512-gM5EoKHW/ukmlEtphNwaGx45fGoEmP10v51t9unv55voWh6WrOL19hfuIdo2FjxIaZzw776/BUQg7Pck++cIVw==",
"dev": true,
"hasInstallScript": true,
"license": "MIT",
"dependencies": {
"detect-libc": "^2.0.4",
"tar": "^7.4.3"
},
"engines": {
"node": ">= 10"
},
"optionalDependencies": {
"@tailwindcss/oxide-android-arm64": "4.1.12",
"@tailwindcss/oxide-darwin-arm64": "4.1.12",
"@tailwindcss/oxide-darwin-x64": "4.1.12",
"@tailwindcss/oxide-freebsd-x64": "4.1.12",
"@tailwindcss/oxide-linux-arm-gnueabihf": "4.1.12",
"@tailwindcss/oxide-linux-arm64-gnu": "4.1.12",
"@tailwindcss/oxide-linux-arm64-musl": "4.1.12",
"@tailwindcss/oxide-linux-x64-gnu": "4.1.12",
"@tailwindcss/oxide-linux-x64-musl": "4.1.12",
"@tailwindcss/oxide-wasm32-wasi": "4.1.12",
"@tailwindcss/oxide-win32-arm64-msvc": "4.1.12",
"@tailwindcss/oxide-win32-x64-msvc": "4.1.12"
}
},
"node_modules/@tailwindcss/oxide-android-arm64": {
"version": "4.1.12",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.1.12.tgz",
"integrity": "sha512-oNY5pq+1gc4T6QVTsZKwZaGpBb2N1H1fsc1GD4o7yinFySqIuRZ2E4NvGasWc6PhYJwGK2+5YT1f9Tp80zUQZQ==",
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"android"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@tailwindcss/oxide-darwin-arm64": {
"version": "4.1.12",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.1.12.tgz",
"integrity": "sha512-cq1qmq2HEtDV9HvZlTtrj671mCdGB93bVY6J29mwCyaMYCP/JaUBXxrQQQm7Qn33AXXASPUb2HFZlWiiHWFytw==",
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@tailwindcss/oxide-darwin-x64": {
"version": "4.1.12",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.1.12.tgz",
"integrity": "sha512-6UCsIeFUcBfpangqlXay9Ffty9XhFH1QuUFn0WV83W8lGdX8cD5/+2ONLluALJD5+yJ7k8mVtwy3zMZmzEfbLg==",
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@tailwindcss/oxide-freebsd-x64": {
"version": "4.1.12",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.1.12.tgz",
"integrity": "sha512-JOH/f7j6+nYXIrHobRYCtoArJdMJh5zy5lr0FV0Qu47MID/vqJAY3r/OElPzx1C/wdT1uS7cPq+xdYYelny1ww==",
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"freebsd"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": {
"version": "4.1.12",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.1.12.tgz",
"integrity": "sha512-v4Ghvi9AU1SYgGr3/j38PD8PEe6bRfTnNSUE3YCMIRrrNigCFtHZ2TCm8142X8fcSqHBZBceDx+JlFJEfNg5zQ==",
"cpu": [
"arm"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@tailwindcss/oxide-linux-arm64-gnu": {
"version": "4.1.12",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.1.12.tgz",
"integrity": "sha512-YP5s1LmetL9UsvVAKusHSyPlzSRqYyRB0f+Kl/xcYQSPLEw/BvGfxzbH+ihUciePDjiXwHh+p+qbSP3SlJw+6g==",
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@tailwindcss/oxide-linux-arm64-musl": {
"version": "4.1.12",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.1.12.tgz",
"integrity": "sha512-V8pAM3s8gsrXcCv6kCHSuwyb/gPsd863iT+v1PGXC4fSL/OJqsKhfK//v8P+w9ThKIoqNbEnsZqNy+WDnwQqCA==",
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@tailwindcss/oxide-linux-x64-gnu": {
"version": "4.1.12",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.1.12.tgz",
"integrity": "sha512-xYfqYLjvm2UQ3TZggTGrwxjYaLB62b1Wiysw/YE3Yqbh86sOMoTn0feF98PonP7LtjsWOWcXEbGqDL7zv0uW8Q==",
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@tailwindcss/oxide-linux-x64-musl": {
"version": "4.1.12",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.1.12.tgz",
"integrity": "sha512-ha0pHPamN+fWZY7GCzz5rKunlv9L5R8kdh+YNvP5awe3LtuXb5nRi/H27GeL2U+TdhDOptU7T6Is7mdwh5Ar3A==",
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@tailwindcss/oxide-wasm32-wasi": {
"version": "4.1.12",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.1.12.tgz",
"integrity": "sha512-4tSyu3dW+ktzdEpuk6g49KdEangu3eCYoqPhWNsZgUhyegEda3M9rG0/j1GV/JjVVsj+lG7jWAyrTlLzd/WEBg==",
"bundleDependencies": [
"@napi-rs/wasm-runtime",
"@emnapi/core",
"@emnapi/runtime",
"@tybys/wasm-util",
"@emnapi/wasi-threads",
"tslib"
],
"cpu": [
"wasm32"
],
"dev": true,
"license": "MIT",
"optional": true,
"dependencies": {
"@emnapi/core": "^1.4.5",
"@emnapi/runtime": "^1.4.5",
"@emnapi/wasi-threads": "^1.0.4",
"@napi-rs/wasm-runtime": "^0.2.12",
"@tybys/wasm-util": "^0.10.0",
"tslib": "^2.8.0"
},
"engines": {
"node": ">=14.0.0"
}
},
"node_modules/@tailwindcss/oxide-win32-arm64-msvc": {
"version": "4.1.12",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.1.12.tgz",
"integrity": "sha512-iGLyD/cVP724+FGtMWslhcFyg4xyYyM+5F4hGvKA7eifPkXHRAUDFaimu53fpNg9X8dfP75pXx/zFt/jlNF+lg==",
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"win32"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@tailwindcss/oxide-win32-x64-msvc": {
"version": "4.1.12",
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.1.12.tgz",
"integrity": "sha512-NKIh5rzw6CpEodv/++r0hGLlfgT/gFN+5WNdZtvh6wpU2BpGNgdjvj6H2oFc8nCM839QM1YOhjpgbAONUb4IxA==",
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
"win32"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@tailwindcss/vite": {
"version": "4.1.12",
"resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.1.12.tgz",
"integrity": "sha512-4pt0AMFDx7gzIrAOIYgYP0KCBuKWqyW8ayrdiLEjoJTT4pKTjrzG/e4uzWtTLDziC+66R9wbUqZBccJalSE5vQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"@tailwindcss/node": "4.1.12",
"@tailwindcss/oxide": "4.1.12",
"tailwindcss": "4.1.12"
},
"peerDependencies": {
"vite": "^5.2.0 || ^6 || ^7"
}
},
"node_modules/@types/eslint__js": {
"version": "9.14.0",
"resolved": "https://registry.npmjs.org/@types/eslint__js/-/eslint__js-9.14.0.tgz",
@@ -3337,6 +3651,11 @@
"integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==",
"dev": true
},
"node_modules/@types/web-bluetooth": {
"version": "0.0.21",
"resolved": "https://registry.npmjs.org/@types/web-bluetooth/-/web-bluetooth-0.0.21.tgz",
"integrity": "sha512-oIQLCGWtcFZy2JW77j9k8nHzAOpqMHLQejDA48XXMWH6tjCQHz5RCFz1bzsmROyL6PUm+LLnUiI4BCn221inxA=="
},
"node_modules/@typescript-eslint/eslint-plugin": {
"version": "8.28.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.28.0.tgz",
@@ -3818,6 +4137,41 @@
"vuetify": "^3.0.0"
}
},
"node_modules/@vueuse/core": {
"version": "13.7.0",
"resolved": "https://registry.npmjs.org/@vueuse/core/-/core-13.7.0.tgz",
"integrity": "sha512-myagn09+c6BmS6yHc1gTwwsdZilAovHslMjyykmZH3JNyzI5HoWhv114IIdytXiPipdHJ2gDUx0PB93jRduJYg==",
"dependencies": {
"@types/web-bluetooth": "^0.0.21",
"@vueuse/metadata": "13.7.0",
"@vueuse/shared": "13.7.0"
},
"funding": {
"url": "https://github.com/sponsors/antfu"
},
"peerDependencies": {
"vue": "^3.5.0"
}
},
"node_modules/@vueuse/metadata": {
"version": "13.7.0",
"resolved": "https://registry.npmjs.org/@vueuse/metadata/-/metadata-13.7.0.tgz",
"integrity": "sha512-8okFhS/1ite8EwUdZZfvTYowNTfXmVCOrBFlA31O0HD8HKXhY+WtTRyF0LwbpJfoFPc+s9anNJIXMVrvP7UTZg==",
"funding": {
"url": "https://github.com/sponsors/antfu"
}
},
"node_modules/@vueuse/shared": {
"version": "13.7.0",
"resolved": "https://registry.npmjs.org/@vueuse/shared/-/shared-13.7.0.tgz",
"integrity": "sha512-Wi2LpJi4UA9kM0OZ0FCZslACp92HlVNw1KPaDY6RAzvQ+J1s7seOtcOpmkfbD5aBSmMn9NvOakc8ZxMxmDXTIg==",
"funding": {
"url": "https://github.com/sponsors/antfu"
},
"peerDependencies": {
"vue": "^3.5.0"
}
},
"node_modules/acorn": {
"version": "8.15.0",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",
@@ -4181,9 +4535,9 @@
}
},
"node_modules/caniuse-lite": {
"version": "1.0.30001697",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001697.tgz",
"integrity": "sha512-GwNPlWJin8E+d7Gxq96jxM6w0w+VFeyyXRsjU58emtkYqnbwHqXm5uT2uCmO0RQE9htWknOP4xtBlLmM/gWxvQ==",
"version": "1.0.30001735",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001735.tgz",
"integrity": "sha512-EV/laoX7Wq2J9TQlyIXRxTJqIw4sxfXS4OYgudGxBYRuTv0q7AM6yMEpU/Vo1I94thg9U6EZ2NfZx9GJq83u7w==",
"dev": true,
"funding": [
{
@@ -4198,7 +4552,8 @@
"type": "github",
"url": "https://github.com/sponsors/ai"
}
]
],
"license": "CC-BY-4.0"
},
"node_modules/chalk": {
"version": "4.1.2",
@@ -4216,6 +4571,16 @@
"url": "https://github.com/chalk/chalk?sponsor=1"
}
},
"node_modules/chownr": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz",
"integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==",
"dev": true,
"license": "BlueOak-1.0.0",
"engines": {
"node": ">=18"
}
},
"node_modules/cliui": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz",
@@ -4534,6 +4899,16 @@
"node": ">=0.4.0"
}
},
"node_modules/detect-libc": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.4.tgz",
"integrity": "sha512-3UDv+G9CsCKO1WKMGw9fwq/SWJYbI0c5Y7LU1AXYoDdbhE2AHQ6N6Nb34sG8Fj7T5APy8qXDCKuuIHd1BR0tVA==",
"devOptional": true,
"license": "Apache-2.0",
"engines": {
"node": ">=8"
}
},
"node_modules/dijkstrajs": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/dijkstrajs/-/dijkstrajs-1.0.3.tgz",
@@ -4614,6 +4989,20 @@
"node": ">=10.0.0"
}
},
"node_modules/enhanced-resolve": {
"version": "5.18.3",
"resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.3.tgz",
"integrity": "sha512-d4lC8xfavMeBjzGr2vECC3fsGXziXZQyJxD868h2M/mBI3PwAuODxAkLkq5HYuvrPYcUtiLzsTo8U3PgX3Ocww==",
"dev": true,
"license": "MIT",
"dependencies": {
"graceful-fs": "^4.2.4",
"tapable": "^2.2.0"
},
"engines": {
"node": ">=10.13.0"
}
},
"node_modules/entities": {
"version": "4.5.0",
"resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
@@ -6138,6 +6527,17 @@
"node": ">=10"
}
},
"node_modules/jiti": {
"version": "1.21.7",
"resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.7.tgz",
"integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==",
"license": "MIT",
"optional": true,
"peer": true,
"bin": {
"jiti": "bin/jiti.js"
}
},
"node_modules/js-cookie": {
"version": "3.0.5",
"resolved": "https://registry.npmjs.org/js-cookie/-/js-cookie-3.0.5.tgz",
@@ -6267,6 +6667,235 @@
"node": ">= 0.8.0"
}
},
"node_modules/lightningcss": {
"version": "1.30.1",
"resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.30.1.tgz",
"integrity": "sha512-xi6IyHML+c9+Q3W0S4fCQJOym42pyurFiJUHEcEyHS0CeKzia4yZDEsLlqOFykxOdHpNy0NmvVO31vcSqAxJCg==",
"devOptional": true,
"license": "MPL-2.0",
"dependencies": {
"detect-libc": "^2.0.3"
},
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
},
"optionalDependencies": {
"lightningcss-darwin-arm64": "1.30.1",
"lightningcss-darwin-x64": "1.30.1",
"lightningcss-freebsd-x64": "1.30.1",
"lightningcss-linux-arm-gnueabihf": "1.30.1",
"lightningcss-linux-arm64-gnu": "1.30.1",
"lightningcss-linux-arm64-musl": "1.30.1",
"lightningcss-linux-x64-gnu": "1.30.1",
"lightningcss-linux-x64-musl": "1.30.1",
"lightningcss-win32-arm64-msvc": "1.30.1",
"lightningcss-win32-x64-msvc": "1.30.1"
}
},
"node_modules/lightningcss-darwin-arm64": {
"version": "1.30.1",
"resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.30.1.tgz",
"integrity": "sha512-c8JK7hyE65X1MHMN+Viq9n11RRC7hgin3HhYKhrMyaXflk5GVplZ60IxyoVtzILeKr+xAJwg6zK6sjTBJ0FKYQ==",
"cpu": [
"arm64"
],
"license": "MPL-2.0",
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/lightningcss-darwin-x64": {
"version": "1.30.1",
"resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.30.1.tgz",
"integrity": "sha512-k1EvjakfumAQoTfcXUcHQZhSpLlkAuEkdMBsI/ivWw9hL+7FtilQc0Cy3hrx0AAQrVtQAbMI7YjCgYgvn37PzA==",
"cpu": [
"x64"
],
"license": "MPL-2.0",
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/lightningcss-freebsd-x64": {
"version": "1.30.1",
"resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.30.1.tgz",
"integrity": "sha512-kmW6UGCGg2PcyUE59K5r0kWfKPAVy4SltVeut+umLCFoJ53RdCUWxcRDzO1eTaxf/7Q2H7LTquFHPL5R+Gjyig==",
"cpu": [
"x64"
],
"license": "MPL-2.0",
"optional": true,
"os": [
"freebsd"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/lightningcss-linux-arm-gnueabihf": {
"version": "1.30.1",
"resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.30.1.tgz",
"integrity": "sha512-MjxUShl1v8pit+6D/zSPq9S9dQ2NPFSQwGvxBCYaBYLPlCWuPh9/t1MRS8iUaR8i+a6w7aps+B4N0S1TYP/R+Q==",
"cpu": [
"arm"
],
"license": "MPL-2.0",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/lightningcss-linux-arm64-gnu": {
"version": "1.30.1",
"resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.30.1.tgz",
"integrity": "sha512-gB72maP8rmrKsnKYy8XUuXi/4OctJiuQjcuqWNlJQ6jZiWqtPvqFziskH3hnajfvKB27ynbVCucKSm2rkQp4Bw==",
"cpu": [
"arm64"
],
"license": "MPL-2.0",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/lightningcss-linux-arm64-musl": {
"version": "1.30.1",
"resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.30.1.tgz",
"integrity": "sha512-jmUQVx4331m6LIX+0wUhBbmMX7TCfjF5FoOH6SD1CttzuYlGNVpA7QnrmLxrsub43ClTINfGSYyHe2HWeLl5CQ==",
"cpu": [
"arm64"
],
"license": "MPL-2.0",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/lightningcss-linux-x64-gnu": {
"version": "1.30.1",
"resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.30.1.tgz",
"integrity": "sha512-piWx3z4wN8J8z3+O5kO74+yr6ze/dKmPnI7vLqfSqI8bccaTGY5xiSGVIJBDd5K5BHlvVLpUB3S2YCfelyJ1bw==",
"cpu": [
"x64"
],
"license": "MPL-2.0",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/lightningcss-linux-x64-musl": {
"version": "1.30.1",
"resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.30.1.tgz",
"integrity": "sha512-rRomAK7eIkL+tHY0YPxbc5Dra2gXlI63HL+v1Pdi1a3sC+tJTcFrHX+E86sulgAXeI7rSzDYhPSeHHjqFhqfeQ==",
"cpu": [
"x64"
],
"license": "MPL-2.0",
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/lightningcss-win32-arm64-msvc": {
"version": "1.30.1",
"resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.30.1.tgz",
"integrity": "sha512-mSL4rqPi4iXq5YVqzSsJgMVFENoa4nGTT/GjO2c0Yl9OuQfPsIfncvLrEW6RbbB24WtZ3xP/2CCmI3tNkNV4oA==",
"cpu": [
"arm64"
],
"license": "MPL-2.0",
"optional": true,
"os": [
"win32"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/lightningcss-win32-x64-msvc": {
"version": "1.30.1",
"resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.30.1.tgz",
"integrity": "sha512-PVqXh48wh4T53F/1CCu8PIPCxLzWyCnn/9T5W1Jpmdy5h9Cwd+0YQS6/LwhHXSafuc61/xg9Lv5OrCby6a++jg==",
"cpu": [
"x64"
],
"license": "MPL-2.0",
"optional": true,
"os": [
"win32"
],
"engines": {
"node": ">= 12.0.0"
},
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/parcel"
}
},
"node_modules/linkify-it": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.0.tgz",
@@ -6489,11 +7118,50 @@
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/minipass": {
"version": "7.1.2",
"resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz",
"integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==",
"dev": true,
"license": "ISC",
"engines": {
"node": ">=16 || 14 >=14.17"
}
},
"node_modules/minizlib": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.0.2.tgz",
"integrity": "sha512-oG62iEk+CYt5Xj2YqI5Xi9xWUeZhDI8jjQmC5oThVH5JGCTgIjr7ciJDzC7MBzYd//WvR1OTmP5Q38Q8ShQtVA==",
"dev": true,
"license": "MIT",
"dependencies": {
"minipass": "^7.1.2"
},
"engines": {
"node": ">= 18"
}
},
"node_modules/mitt": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz",
"integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw=="
},
"node_modules/mkdirp": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz",
"integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==",
"dev": true,
"license": "MIT",
"bin": {
"mkdirp": "dist/cjs/src/bin.js"
},
"engines": {
"node": ">=10"
},
"funding": {
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/ms": {
"version": "2.1.3",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
@@ -7736,6 +8404,51 @@
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/tailwindcss": {
"version": "4.1.12",
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.12.tgz",
"integrity": "sha512-DzFtxOi+7NsFf7DBtI3BJsynR+0Yp6etH+nRPTbpWnS2pZBaSksv/JGctNwSWzbFjp0vxSqknaUylseZqMDGrA==",
"dev": true,
"license": "MIT"
},
"node_modules/tapable": {
"version": "2.2.2",
"resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.2.tgz",
"integrity": "sha512-Re10+NauLTMCudc7T5WLFLAwDhQ0JWdrMK+9B2M8zR5hRExKmsRDCBA7/aV/pNJFltmBFO5BAMlQFi/vq3nKOg==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=6"
}
},
"node_modules/tar": {
"version": "7.4.3",
"resolved": "https://registry.npmjs.org/tar/-/tar-7.4.3.tgz",
"integrity": "sha512-5S7Va8hKfV7W5U6g3aYxXmlPoZVAwUMy9AOKyF2fVuZa2UD3qZjg578OrLRt8PcNN1PleVaL/5/yYATNL0ICUw==",
"dev": true,
"license": "ISC",
"dependencies": {
"@isaacs/fs-minipass": "^4.0.0",
"chownr": "^3.0.0",
"minipass": "^7.1.2",
"minizlib": "^3.0.1",
"mkdirp": "^3.0.1",
"yallist": "^5.0.0"
},
"engines": {
"node": ">=18"
}
},
"node_modules/tar/node_modules/yallist": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz",
"integrity": "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==",
"dev": true,
"license": "BlueOak-1.0.0",
"engines": {
"node": ">=18"
}
},
"node_modules/temp-dir": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz",
@@ -9070,6 +9783,20 @@
"integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",
"dev": true
},
"node_modules/yaml": {
"version": "2.8.1",
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.1.tgz",
"integrity": "sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw==",
"license": "ISC",
"optional": true,
"peer": true,
"bin": {
"yaml": "bin.mjs"
},
"engines": {
"node": ">= 14.6"
}
},
"node_modules/yargs": {
"version": "15.4.1",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz",

View File

@@ -28,6 +28,7 @@
},
"dependencies": {
"@mdi/font": "7.4.47",
"@vueuse/core": "^13.7.0",
"axios": "^1.8.4",
"cronstrue": "^2.57.0",
"date-fns": "^4.1.0",
@@ -49,6 +50,7 @@
},
"devDependencies": {
"@eslint/js": "^9.21.0",
"@tailwindcss/vite": "^4.1.12",
"@types/eslint__js": "^9.14.0",
"@types/js-cookie": "^3.0.6",
"@types/lodash": "^4.17.16",
@@ -61,6 +63,7 @@
"eslint-plugin-vue": "^9.26.0",
"globals": "^16.0.0",
"openapi-typescript-codegen": "^0.29.0",
"tailwindcss": "^4.0.0",
"typescript": "^5.7.3",
"typescript-eslint": "^8.28.0",
"vite": "^6.3.5",

View File

@@ -1,11 +1,15 @@
<script setup lang="ts">
import languageStore from "@/stores/language";
import consoleStore from "@/stores/console";
import { storeToRefs } from "pinia";
import { ref } from "vue";
import { useI18n } from "vue-i18n";
import { useIdle } from "@vueuse/core";
const { locale } = useI18n();
const storeLanguage = languageStore();
const storeConsole = consoleStore();
const { consoleMode } = storeToRefs(storeConsole);
const { defaultLanguage, languages } = storeToRefs(storeLanguage);
const selectedLanguage = ref(
languages.value.find(
@@ -14,10 +18,14 @@ const selectedLanguage = ref(
);
locale.value = selectedLanguage.value.value;
storeLanguage.setLanguage(selectedLanguage.value);
const { idle: mouseIdle } = useIdle(100, {
events: ["mousemove", "mousedown", "wheel", "touchstart"],
});
</script>
<template>
<v-app>
<v-app id="application" :class="{ 'mouse-hidden': consoleMode && mouseIdle }">
<v-main id="main" class="no-transition">
<router-view v-slot="{ Component }">
<component :is="Component" />
@@ -40,6 +48,11 @@ storeLanguage.setLanguage(selectedLanguage.value);
transition: none;
}
#application.mouse-hidden,
#application.mouse-hidden * {
cursor: none !important;
}
.fade-enter-active,
.fade-leave-active {
transition: opacity 0.35s ease;

View File

@@ -13,6 +13,7 @@ import { inject, ref, watch } from "vue";
import { useDisplay } from "vuetify";
import { useI18n } from "vue-i18n";
import { useRouter } from "vue-router";
import { ROUTES } from "@/plugins/router";
const { t } = useI18n();
const { mdAndUp } = useDisplay();
@@ -66,7 +67,7 @@ async function removeRomsFromCollection() {
emitter?.emit("showLoadingDialog", { loading: false, scrim: false });
romsStore.resetSelection();
if (selectedCollection.value?.rom_ids.length == 0) {
router.push({ name: "home" });
router.push({ name: ROUTES.HOME });
}
closeDialog();
});

View File

@@ -1,18 +1,17 @@
<script setup lang="ts">
import collectionApi from "@/services/api/collection";
import storeAuth from "@/stores/auth";
import storeCollections, { type Collection } from "@/stores/collections";
import storeCollections from "@/stores/collections";
import storeRoms from "@/stores/roms";
import storeHeartbeat from "@/stores/heartbeat";
import type { SimpleRom } from "@/stores/roms";
import storeRoms from "@/stores/roms";
import storeScanning from "@/stores/scanning";
import socket from "@/services/socket";
import type { Events } from "@/types/emitter";
import type { Emitter } from "mitt";
import { storeToRefs } from "pinia";
import { inject } from "vue";
import { useI18n } from "vue-i18n";
import romApi from "@/services/api/rom";
import { useFavoriteToggle } from "@/composables/useFavoriteToggle";
const { t } = useI18n();
const props = defineProps<{ rom: SimpleRom }>();
@@ -20,73 +19,12 @@ const emitter = inject<Emitter<Events>>("emitter");
const heartbeat = storeHeartbeat();
const auth = storeAuth();
const collectionsStore = storeCollections();
const { toggleFavorite } = useFavoriteToggle(emitter);
const romsStore = storeRoms();
const { favoriteCollection } = storeToRefs(collectionsStore);
const scanningStore = storeScanning();
async function switchFromFavourites() {
if (!favoriteCollection.value) {
await collectionApi
.createCollection({
collection: { name: "Favourites" },
})
.then(({ data }) => {
collectionsStore.addCollection(data);
favoriteCollection.value = data;
emitter?.emit("snackbarShow", {
msg: `Collection ${data.name} created successfully!`,
icon: "mdi-check-bold",
color: "green",
timeout: 2000,
});
})
.catch((error) => {
console.log(error);
emitter?.emit("snackbarShow", {
msg: error.response.data.detail,
icon: "mdi-close-circle",
color: "red",
});
return;
});
}
if (!collectionsStore.isFavorite(props.rom)) {
favoriteCollection.value?.rom_ids.push(props.rom.id);
} else {
if (favoriteCollection.value) {
favoriteCollection.value.rom_ids =
favoriteCollection.value.rom_ids.filter((id) => id !== props.rom.id);
if (romsStore.currentCollection?.name.toLowerCase() == "favourites") {
romsStore.remove([props.rom]);
}
}
}
await collectionApi
.updateCollection({ collection: favoriteCollection.value as Collection })
.then(({ data }) => {
emitter?.emit("snackbarShow", {
msg: `${props.rom.name} ${
collectionsStore.isFavorite(props.rom) ? "added to" : "removed from"
} ${favoriteCollection.value?.name} successfully!`,
icon: "mdi-check-bold",
color: "green",
timeout: 2000,
});
favoriteCollection.value = data;
collectionsStore.updateCollection(data);
})
.catch((error) => {
console.log(error);
emitter?.emit("snackbarShow", {
msg: error.response.data.detail,
icon: "mdi-close-circle",
color: "red",
});
return;
})
.finally(() => {
emitter?.emit("showLoadingDialog", { loading: false, scrim: false });
});
await toggleFavorite(props.rom);
}
async function resetLastPlayed() {

View File

@@ -1,97 +1,34 @@
<script setup lang="ts">
import collectionApi from "@/services/api/collection";
import storeCollections, { type Collection } from "@/stores/collections";
import storeRoms from "@/stores/roms";
import storeCollections from "@/stores/collections";
import { type SimpleRom } from "@/stores/roms";
import storeAuth from "@/stores/auth";
import type { Events } from "@/types/emitter";
import type { Emitter } from "mitt";
import { storeToRefs } from "pinia";
import { inject } from "vue";
import { useFavoriteToggle } from "@/composables/useFavoriteToggle";
const props = defineProps<{ rom: SimpleRom }>();
const romsStore = storeRoms();
const collectionsStore = storeCollections();
const { favoriteCollection } = storeToRefs(collectionsStore);
const auth = storeAuth();
const emitter = inject<Emitter<Events>>("emitter");
const { toggleFavorite } = useFavoriteToggle(emitter);
async function switchFromFavourites() {
if (!favoriteCollection.value) {
await collectionApi
.createCollection({
collection: { name: "Favourites" },
})
.then(({ data }) => {
collectionsStore.addCollection(data);
favoriteCollection.value = data;
emitter?.emit("snackbarShow", {
msg: `Collection ${data.name} created successfully!`,
icon: "mdi-check-bold",
color: "green",
timeout: 2000,
});
})
.catch((error) => {
console.log(error);
emitter?.emit("snackbarShow", {
msg: error.response.data.detail,
icon: "mdi-close-circle",
color: "red",
});
return;
});
}
if (!collectionsStore.isFavorite(props.rom)) {
favoriteCollection.value?.rom_ids.push(props.rom.id);
} else {
if (favoriteCollection.value) {
favoriteCollection.value.rom_ids =
favoriteCollection.value.rom_ids.filter((id) => id !== props.rom.id);
if (romsStore.currentCollection?.name.toLowerCase() == "favourites") {
romsStore.remove([props.rom]);
}
}
}
await collectionApi
.updateCollection({ collection: favoriteCollection.value as Collection })
.then(({ data }) => {
emitter?.emit("snackbarShow", {
msg: `${props.rom.name} ${
collectionsStore.isFavorite(props.rom) ? "added to" : "removed from"
} ${favoriteCollection.value?.name} successfully!`,
icon: "mdi-check-bold",
color: "green",
timeout: 2000,
});
favoriteCollection.value = data;
collectionsStore.updateCollection(data);
})
.catch((error) => {
console.log(error);
emitter?.emit("snackbarShow", {
msg: error.response.data.detail,
icon: "mdi-close-circle",
color: "red",
});
return;
})
.finally(() => {
emitter?.emit("showLoadingDialog", { loading: false, scrim: false });
});
await toggleFavorite(props.rom);
}
</script>
<template>
<v-btn
v-if="auth.scopes.includes('roms.user.write')"
@click.stop="switchFromFavourites"
class="translucent text-shadow"
rouded="0"
size="small"
variant="text"
><v-icon color="primary">{{
collectionsStore.isFavorite(rom) ? "mdi-star" : "mdi-star-outline"
}}</v-icon></v-btn
@click.stop="switchFromFavourites"
>
<v-icon color="primary">
{{ collectionsStore.isFavorite(rom) ? "mdi-star" : "mdi-star-outline" }}
</v-icon>
</v-btn>
</template>

View File

@@ -0,0 +1,61 @@
<script setup lang="ts">
import { ROUTES } from "@/plugins/router";
import { useRoute, useRouter } from "vue-router";
withDefaults(
defineProps<{
block?: boolean;
height?: string;
rounded?: boolean;
withTag?: boolean;
}>(),
{
block: false,
height: "",
rounded: false,
withTag: false,
},
);
const router = useRouter();
const route = useRoute();
function enterConsoleMode() {
// Navigate first so route guards run promptly
router.push({ name: ROUTES.CONSOLE_HOME });
if (!document.fullscreenElement) {
// Attempt fullscreen after a small delay to allow navigation transition
setTimeout(() => {
document.documentElement.requestFullscreen?.().catch(() => {});
}, 50);
}
}
</script>
<template>
<v-btn
icon
:block="block"
variant="flat"
color="background"
:height="height"
:class="{ rounded: rounded }"
class="py-4 bg-background d-flex align-center justify-center"
@click="enterConsoleMode"
>
<div class="d-flex flex-column align-center">
<v-icon :color="route.path.startsWith('/console') ? 'primary' : ''">
mdi-television-play
</v-icon>
<v-expand-transition>
<span
v-if="withTag"
class="text-caption text-center"
:class="{ 'text-primary': route.path.startsWith('/console') }"
>
Play
</span>
</v-expand-transition>
</div>
</v-btn>
</template>

View File

@@ -10,6 +10,7 @@ import PlatformsDrawer from "@/components/common/Navigation/PlatformsDrawer.vue"
import CollectionsDrawer from "@/components/common/Navigation/CollectionsDrawer.vue";
import UploadRomDialog from "@/components/common/Game/Dialog/UploadRom.vue";
import SettingsDrawer from "@/components/common/Navigation/SettingsDrawer.vue";
import ConsoleModeBtn from "@/components/common/Navigation/ConsoleModeBtn.vue";
import storeNavigation from "@/stores/navigation";
import { storeToRefs } from "pinia";
import { useDisplay } from "vuetify";
@@ -56,6 +57,7 @@ function collapse() {
<platforms-btn withTag />
<collections-btn withTag />
<scan-btn withTag />
<console-mode-btn withTag />
</v-bottom-navigation>
</template>
@@ -121,6 +123,7 @@ function collapse() {
block
tabindex="7"
/>
<console-mode-btn :withTag="!mainBarCollapsed" rounded class="mt-2" block />
<template #append>
<upload-btn

View File

@@ -93,7 +93,7 @@ onMounted(() => {
<v-card-text
id="r-dialog-content"
class="pa-1 d-flex flex-column"
class="pa-0 d-flex flex-column"
:class="{ scroll: scrollContent }"
>
<v-row

View File

@@ -0,0 +1,93 @@
import { storeToRefs } from "pinia";
import collectionApi from "@/services/api/collection";
import storeCollections, { type Collection } from "@/stores/collections";
import storeRoms, { type SimpleRom } from "@/stores/roms";
import type { Events } from "@/types/emitter";
import type { Emitter } from "mitt";
export function useFavoriteToggle(emitter?: Emitter<Events>) {
const collectionsStore = storeCollections();
const romsStore = storeRoms();
const { favoriteCollection } = storeToRefs(collectionsStore);
async function ensureFavoriteCollection() {
if (favoriteCollection.value) return favoriteCollection.value;
// Attempt to refetch collections if not already present
if (!collectionsStore.allCollections.length) {
await collectionsStore.fetchCollections();
}
if (favoriteCollection.value) return favoriteCollection.value;
// Create if still missing
const { data } = await collectionApi.createCollection({
collection: { name: "Favourites", rom_ids: [] },
});
collectionsStore.addCollection(data);
collectionsStore.setFavoriteCollection(data);
emitter?.emit("snackbarShow", {
msg: `Collection ${data.name} created successfully!`,
icon: "mdi-check-bold",
color: "green",
timeout: 2000,
});
return data;
}
function isFavorite(rom: SimpleRom) {
return collectionsStore.isFavorite(rom);
}
async function toggleFavorite(rom: SimpleRom) {
const fav = await ensureFavoriteCollection();
if (!fav.rom_ids) (fav as Collection).rom_ids = [] as unknown as number[]; // ensure array exists
const currentlyFav = fav.rom_ids.includes(rom.id);
if (currentlyFav) {
fav.rom_ids = fav.rom_ids.filter((id) => id !== rom.id);
if (romsStore.currentCollection?.id === fav.id) {
romsStore.remove([rom]);
}
} else {
fav.rom_ids.push(rom.id);
}
try {
const { data } = await collectionApi.updateCollection({
collection: fav as Collection,
});
collectionsStore.updateCollection(data);
collectionsStore.setFavoriteCollection(data);
emitter?.emit("snackbarShow", {
msg: `${rom.name} ${currentlyFav ? "removed from" : "added to"} ${data.name} successfully!`,
icon: "mdi-check-bold",
color: "green",
timeout: 2000,
});
} catch (error: unknown) {
// Rollback
if (currentlyFav) {
fav.rom_ids.push(rom.id);
} else {
fav.rom_ids = fav.rom_ids.filter((id) => id !== rom.id);
}
const detail = (error as { response?: { data?: { detail?: string } } })
?.response?.data?.detail;
emitter?.emit("snackbarShow", {
msg: detail || "Failed to update favourites",
icon: "mdi-close-circle",
color: "red",
});
throw error;
} finally {
emitter?.emit("showLoadingDialog", { loading: false, scrim: false });
}
}
return {
favoriteCollection,
ensureFavoriteCollection,
toggleFavorite,
isFavorite,
};
}
export default useFavoriteToggle;

View File

@@ -0,0 +1,96 @@
<script setup lang="ts">
import { onMounted, onUnmounted, provide } from "vue";
import { type RouteLocationNormalized } from "vue-router";
import { InputBus, InputBusSymbol } from "@/console/input/bus";
import { attachKeyboard } from "@/console/input/keyboard";
import { attachGamepad } from "@/console/input/gamepad";
import { initializeSfx } from "@/console/utils/sfx";
import { useConsoleTheme } from "@/stores/consoleTheme";
import { ROUTES } from "@/plugins/router";
import { useRouter } from "vue-router";
import { useIdle } from "@vueuse/core";
const router = useRouter();
const bus = new InputBus();
const themeStore = useConsoleTheme();
provide(InputBusSymbol, bus);
// Define route hierarchy for transition direction logic
const routeHierarchy = {
[ROUTES.CONSOLE_HOME]: 0,
[ROUTES.CONSOLE_PLATFORM]: 1,
[ROUTES.CONSOLE_COLLECTION]: 1,
[ROUTES.CONSOLE_ROM]: 2,
[ROUTES.CONSOLE_PLAY]: 3,
};
function getTransitionName(route: RouteLocationNormalized): string {
const currentName = route.name as string;
const currentLevel =
routeHierarchy[currentName as keyof typeof routeHierarchy] ?? 1;
const previousRoute = router.options.history.state.back;
const previousLevel = previousRoute
? (routeHierarchy[previousRoute as keyof typeof routeHierarchy] ?? 1)
: 0;
if (
currentName === ROUTES.CONSOLE_PLAY ||
previousRoute === ROUTES.CONSOLE_PLAY
) {
return currentLevel > previousLevel ? "slide-up" : "slide-down";
}
if (currentLevel > previousLevel) return "slide-left";
return currentLevel < previousLevel ? "slide-right" : "fade";
}
const { idle: mouseIdle } = useIdle(100, {
events: ["mousemove", "mousedown", "wheel", "touchstart"],
});
let detachKeyboard: (() => void) | null = null;
let detachGamepad: (() => void) | null = null;
onMounted(() => {
themeStore.initializeTheme();
initializeSfx();
// Establish a root input scope so child views can subscribe safely
bus.pushScope();
detachKeyboard = attachKeyboard(bus);
detachGamepad = attachGamepad(bus);
});
onUnmounted(() => {
detachKeyboard?.();
detachGamepad?.();
});
</script>
<template>
<div
class="min-h-screen console-root relative"
:style="{ color: 'var(--console-text-primary)' }"
>
<!-- Shield overlay to neutralize mouse input while hidden; movement wakes it -->
<div
v-if="!mouseIdle"
class="fixed inset-0 z-50 cursor-none"
aria-hidden="true"
@mousedown.prevent
@mouseup.prevent
@click.prevent
@pointerdown.prevent
@pointerup.prevent
@wheel.prevent
@contextmenu.prevent
@dragstart.prevent
/>
<router-view v-slot="{ Component, route }">
<transition :name="getTransitionName(route)" mode="out-in" appear>
<component :is="Component" :key="route.path" />
</transition>
</router-view>
</div>
</template>

View File

@@ -0,0 +1,34 @@
<script setup lang="ts">
import { useRouter } from "vue-router";
const props = defineProps<{
text?: string;
onBack?: () => void;
}>();
const router = useRouter();
function goBack() {
props.onBack?.() ?? router.back();
}
</script>
<template>
<div
class="absolute top-4 left-4 z-30 inline-flex items-center pointer-events-none"
>
<button
class="w-10 h-10 bg-black/60 border border-white/20 rounded-full flex items-center justify-center text-white hover:bg-white/10 hover:border-white/40 transition-all backdrop-blur pointer-events-auto"
:aria-label="text ? `Back to ${text}` : 'Back'"
@click="goBack"
>
<span aria-hidden="true" class="text-lg leading-none">←</span>
</button>
<span
v-if="text"
class="ml-3 text-white/90 text-3xl font-bold drop-shadow select-none"
>
{{ text }}
</span>
</div>
</template>

View File

@@ -0,0 +1,171 @@
<script setup lang="ts">
import { computed, onMounted, ref, watchEffect } from "vue";
import type { CollectionSchema } from "@/__generated__/models/CollectionSchema";
import { getFavoriteCoverImage } from "@/utils/covers";
import { collectionElementRegistry } from "@/console/composables/useElementRegistry";
const props = defineProps<{
collection: CollectionSchema;
index: number;
selected?: boolean;
loaded?: boolean;
}>();
const emit = defineEmits(["click", "mouseenter", "focus", "loaded"]);
const el = ref<HTMLElement>();
const isFavorite = computed(() => props.collection.is_favorite);
const coverSrc = computed(
() =>
props.collection.path_cover_large ||
props.collection.path_cover_small ||
props.collection.url_cover ||
"",
);
// Composite favourite logic (two diagonally split images)
const firstCover = ref("");
const secondCover = ref("");
const compositeReady = ref(false);
watchEffect(() => {
if (!isFavorite.value) {
compositeReady.value = false;
return;
}
const large = props.collection.path_covers_large || [];
const small = props.collection.path_covers_small || [];
// Choose source list preferring large
const source = large.length ? large : small;
if (source.length >= 2) {
const shuffled = [...source].sort(() => Math.random() - 0.5);
firstCover.value = shuffled[0];
secondCover.value = shuffled[1];
} else if (source.length === 1) {
firstCover.value = source[0];
secondCover.value = getFavoriteCoverImage(props.collection.name);
} else {
const gen = getFavoriteCoverImage(props.collection.name);
firstCover.value = gen;
secondCover.value = gen;
}
compositeReady.value = true;
});
onMounted(() => {
if (!el.value) return;
collectionElementRegistry.registerElement(props.index, el.value);
});
</script>
<template>
<div class="flex flex-col items-center w-[250px] shrink-0">
<button
ref="el"
class="relative block bg-[var(--console-collection-card-bg)] border-2 border-white/10 rounded-md p-0 cursor-pointer overflow-hidden shadow-[0_4px_20px_rgba(0,0,0,0.3),_inset_0_1px_0_rgba(255,255,255,0.1)] transition-all duration-200 w-full"
:class="{
'-translate-y-[2px] scale-[1.03] shadow-[0_8px_28px_rgba(0,0,0,0.35),_0_0_0_2px_var(--console-collection-card-focus-border),_0_0_16px_var(--console-collection-card-focus-border)]':
selected,
}"
@click="emit('click')"
@focus="emit('focus')"
>
<div
class="w-full h-[350px] relative overflow-hidden rounded"
:style="{ backgroundColor: 'var(--console-collection-card-bg)' }"
>
<!-- Favourite composite cover -->
<template v-if="isFavorite && compositeReady">
<div class="absolute inset-0">
<img
class="absolute inset-0 w-full h-full object-cover [clip-path:polygon(0_0,100%_0,0_100%,0_100%)]"
:src="firstCover"
:alt="collection.name + ' cover 1'"
loading="lazy"
/>
<img
class="absolute inset-0 w-full h-full object-cover [clip-path:polygon(0_100%,100%_0,100%_100%)]"
:src="secondCover"
:alt="collection.name + ' cover 2'"
loading="lazy"
/>
</div>
</template>
<!-- Standard single cover -->
<img
v-else-if="coverSrc"
class="w-full h-full object-cover"
:src="coverSrc"
:alt="collection.name"
@load="emit('loaded')"
@error="emit('loaded')"
/>
<!-- Fallback (no cover) -->
<div
v-else
class="w-full h-full flex items-center justify-center"
:style="{ background: 'var(--console-collection-card-bg-fallback)' }"
>
<div class="flex flex-col items-center justify-center select-none">
<div class="text-3xl mb-2">🗂️</div>
<div
class="font-semibold text-center px-3 line-clamp-2"
:style="{ color: 'var(--console-card-text)' }"
>
{{ collection.name }}
</div>
</div>
</div>
<!-- Selected highlight radial glow -->
<div
class="absolute inset-0 opacity-0 pointer-events-none"
:style="{
background:
'radial-gradient(circle at center, var(--console-collection-card-focus-border) 0%, transparent 70%)',
}"
:class="{ 'opacity-10': selected }"
/>
<div
v-if="!loaded"
class="absolute inset-0 bg-gradient-to-r from-white/10 via-white/20 to-white/10 bg-[length:200%_100%] animate-[shimmer_1.2s_linear_infinite]"
/>
<div
class="absolute bottom-0 left-0 right-0 p-2 bg-gradient-to-b from-transparent to-black/75 text-sm leading-tight z-10"
:style="{ color: 'var(--console-collection-card-text)' }"
>
<div
class="text-xs opacity-90"
:style="{ color: 'var(--console-collection-card-text)' }"
>
{{ collection.rom_count || 0 }} games
</div>
</div>
</div>
</button>
<div
class="mt-2 w-full text-center text-sm font-medium px-1 line-clamp-2 select-none"
:class="selected ? 'drop-shadow' : ''"
:style="{
color: selected
? 'var(--console-collection-card-text-secondary)'
: 'var(--console-collection-card-text)',
}"
>
{{ collection.name }}
</div>
</div>
</template>
<style scoped>
@keyframes shimmer {
0% {
background-position: 200% 0;
}
100% {
background-position: -200% 0;
}
}
button:focus {
outline: none;
}
</style>

View File

@@ -0,0 +1,140 @@
<script setup lang="ts">
import { computed, onMounted, ref } from "vue";
import storeCollections from "@/stores/collections";
import {
recentElementRegistry,
gamesListElementRegistry,
} from "@/console/composables/useElementRegistry";
import type { SimpleRomSchema } from "@/__generated__/models/SimpleRomSchema";
const props = defineProps<{
rom: SimpleRomSchema;
index: number;
selected?: boolean;
loaded?: boolean;
isRecent?: boolean;
registry?: "recent" | "gamesList";
}>();
const coverSrc = computed(
() =>
props.rom.path_cover_large ||
props.rom.path_cover_small ||
props.rom.url_cover ||
"",
);
const emit = defineEmits(["click", "mouseenter", "focus", "loaded"]);
const el = ref<HTMLElement>();
// Check if this game is in the favorites collection
const collectionsStore = storeCollections();
const isFavorited = computed(() => {
return collectionsStore.isFavorite(props.rom);
});
onMounted(() => {
if (!el.value) return;
if (props.registry === "gamesList") {
gamesListElementRegistry.registerElement(props.index, el.value);
} else {
recentElementRegistry.registerElement(props.index, el.value);
}
});
</script>
<template>
<button
ref="el"
class="relative block border-2 border-white/10 rounded-md p-0 cursor-pointer overflow-hidden shadow-[0_4px_20px_rgba(0,0,0,0.3),_inset_0_1px_0_rgba(255,255,255,0.1)] transition-all duration-200"
:class="{
'-translate-y-[2px] scale-[1.03] shadow-[0_8px_28px_rgba(0,0,0,0.35),_0_0_0_2px_var(--console-game-card-focus-border),_0_0_16px_var(--console-game-card-focus-border)]':
selected,
'w-[250px] shrink-0': isRecent,
}"
@click="emit('click')"
@focus="emit('focus')"
>
<div
class="w-full h-[350px] relative overflow-hidden rounded"
:style="{ background: 'var(--console-game-card-bg)' }"
>
<img
v-if="coverSrc"
class="w-full h-full object-cover"
:src="coverSrc"
:alt="rom.name || 'Game'"
@load="emit('loaded')"
@error="emit('loaded')"
/>
<div
v-else
class="w-full h-full"
:style="{ background: 'var(--console-game-card-bg)' }"
/>
<!-- Selected highlight radial glow -->
<div
class="absolute inset-0 opacity-0 pointer-events-none"
:style="{
background:
'radial-gradient(circle at center, var(--console-game-card-focus-border) 0%, transparent 70%)',
}"
:class="{ 'opacity-10': selected }"
/>
<div
v-if="!loaded"
class="absolute inset-0 bg-gradient-to-r from-white/10 via-white/20 to-white/10 bg-[length:200%_100%] animate-[shimmer_1.2s_linear_infinite]"
/>
<!-- Favorite star icon -->
<div v-if="isFavorited" class="absolute top-2 right-2 z-20">
<div class="bg-black/50 backdrop-blur-sm rounded-full">
<v-icon size="27" style="color: var(--console-game-card-star)">
mdi-star
</v-icon>
</div>
</div>
<div
v-if="!coverSrc"
class="absolute bottom-0 left-0 right-0 p-2 bg-gradient-to-b from-transparent to-black/75 text-[var(--console-game-card-text)] text-sm leading-tight z-10"
>
<div class="font-medium truncate">
{{ rom.name || "Untitled Game" }}
</div>
<div
v-if="
rom.metadatum.first_release_date || rom.metadatum.companies?.length
"
class="text-[var(--console-game-card-text)] text-xs opacity-90"
>
{{
rom.metadatum.first_release_date
? new Date(rom.metadatum.first_release_date * 1000).getFullYear()
: ""
}}
<template
v-if="
rom.metadatum.first_release_date &&
rom.metadatum.companies?.length
"
>
•
</template>
{{ rom.metadatum.companies?.[0] || "" }}
</div>
</div>
</div>
</button>
</template>
<style scoped>
@keyframes shimmer {
0% {
background-position: 200% 0;
}
100% {
background-position: -200% 0;
}
}
</style>

View File

@@ -0,0 +1,41 @@
<script setup lang="ts">
import NavigationText from "./NavigationText.vue";
withDefaults(
defineProps<{
showNavigation?: boolean;
showSelect?: boolean;
showBack?: boolean;
showToggleFavorite?: boolean;
showMenu?: boolean;
showDelete?: boolean;
}>(),
{
showNavigation: true,
showSelect: true,
showBack: true,
showToggleFavorite: false,
showMenu: false,
showDelete: false,
},
);
</script>
<template>
<div
:style="{
backgroundColor: 'var(--console-nav-hint-bg)',
borderColor: 'var(--console-nav-hint-border)',
}"
class="fixed bottom-4 right-20 px-8 py-3 rounded-lg backdrop-blur border z-[100] pointer-events-none select-none"
>
<navigation-text
:show-navigation="showNavigation"
:show-select="showSelect"
:show-back="showBack"
:show-toggle-favorite="showToggleFavorite"
:show-menu="showMenu"
:show-delete="showDelete"
/>
</div>
</template>

View File

@@ -0,0 +1,152 @@
<script setup lang="ts">
import { computed, onMounted, onUnmounted, ref } from "vue";
import ArrowKeysIcon from "./icons/ArrowKeysIcon.vue";
import DPadIcon from "./icons/DPadIcon.vue";
import FaceButtons from "./icons/FaceButtons.vue";
interface Props {
showNavigation?: boolean;
showSelect?: boolean;
showBack?: boolean;
showToggleFavorite?: boolean;
showMenu?: boolean;
showDelete?: boolean;
isModal?: boolean;
}
const props = withDefaults(defineProps<Props>(), {
showNavigation: true,
showSelect: true,
showBack: true,
showToggleFavorite: false,
showMenu: false,
showDelete: false,
isModal: false,
});
const hasController = ref(false);
let rafId = 0;
// Computed property to select the appropriate text color based on modal context
const textColor = computed(() =>
props.isModal
? "var(--console-nav-hint-modal-text)"
: "var(--console-nav-hint-text)",
);
// Computed property for keycap accent color
const keycapAccentColor = computed(() =>
props.isModal
? "var(--console-nav-hint-modal-accent)"
: "var(--console-nav-hint-accent)",
);
// Computed property for keycap accent color
const keycapColor = computed(() =>
props.isModal
? "var(--console-nav-hint-modal-keycap)"
: "var(--console-nav-hint-keycap)",
);
// Computed styles for keycaps
const keycapStyles = computed(() => ({
backgroundColor: keycapAccentColor.value,
borderColor: keycapAccentColor.value,
color: keycapColor.value,
}));
function poll() {
const pads = navigator.getGamepads?.() || [];
hasController.value = pads.some((p) => p && p.connected);
rafId = requestAnimationFrame(poll);
}
onMounted(() => {
window.addEventListener("gamepadconnected", poll);
window.addEventListener("gamepaddisconnected", poll);
poll();
});
onUnmounted(() => {
cancelAnimationFrame(rafId);
window.removeEventListener("gamepadconnected", poll);
window.removeEventListener("gamepaddisconnected", poll);
});
</script>
<template>
<div
class="flex items-center gap-6 text-[12px]"
:style="{ color: textColor }"
>
<!-- Controller Mode -->
<template v-if="hasController">
<div v-if="showNavigation" class="flex items-center gap-2">
<d-pad-icon class="w-8 h-8 opacity-80" :modal="isModal" />
<span class="font-medium tracking-wide">Navigation</span>
</div>
<div v-if="showSelect" class="flex items-center gap-2">
<face-buttons highlight="south" :modal="isModal" />
<span class="font-medium tracking-wide">Select</span>
</div>
<div v-if="showBack" class="flex items-center gap-2">
<face-buttons highlight="east" :modal="isModal" />
<span class="font-medium tracking-wide">Back</span>
</div>
<div v-if="showToggleFavorite" class="flex items-center gap-2">
<face-buttons highlight="north" :modal="isModal" />
<span class="font-medium tracking-wide">Favorite</span>
</div>
<div v-if="showMenu" class="flex items-center gap-2">
<face-buttons highlight="west" :modal="isModal" />
<span class="font-medium tracking-wide">Menu</span>
</div>
<div v-if="showDelete" class="flex items-center gap-2">
<face-buttons highlight="west" :modal="isModal" />
<span class="font-medium tracking-wide">Delete</span>
</div>
</template>
<!-- Keyboard Mode -->
<template v-else>
<div v-if="showNavigation" class="flex items-center gap-2">
<arrow-keys-icon :modal="isModal" />
<span class="font-medium tracking-wide">Navigation</span>
</div>
<div v-if="showSelect" class="flex items-center gap-2">
<span class="keycap" :style="keycapStyles">Enter</span>
<span class="font-medium tracking-wide">Select</span>
</div>
<div v-if="showBack" class="flex items-center gap-2">
<span class="keycap" :style="keycapStyles">Bkspc</span>
<span class="font-medium tracking-wide">Back</span>
</div>
<div v-if="showToggleFavorite" class="flex items-center gap-2">
<span class="keycap" :style="keycapStyles">F</span>
<span class="font-medium tracking-wide">Favorite</span>
</div>
<div v-if="showMenu" class="flex items-center gap-2">
<span class="keycap" :style="keycapStyles">X</span>
<span class="font-medium tracking-wide">Menu</span>
</div>
<div v-if="showDelete" class="flex items-center gap-2">
<span class="keycap" :style="keycapStyles">X</span>
<span class="font-medium tracking-wide">Delete</span>
</div>
</template>
</div>
</template>
<style scoped>
.keycap {
padding: 0.25rem 0.5rem;
border-radius: 0.25rem;
font-size: 10px;
font-family:
ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo,
monospace;
font-weight: 700;
letter-spacing: 0.05em;
border: 1px solid;
opacity: 0.9;
}
</style>

View File

@@ -0,0 +1,184 @@
<script setup lang="ts">
import { computed, onMounted } from "vue";
import NavigationText from "./NavigationText.vue";
const props = defineProps<{ urls: string[]; startIndex?: number }>();
const emit = defineEmits(["update:modelValue", "close"]);
const isOpen = computed({
get: () => true,
set: () => close(),
});
const iconColor = computed(() => {
const computedStyle = getComputedStyle(document.documentElement);
return (
computedStyle.getPropertyValue("--console-modal-header-bg").trim() ||
"#000000"
);
});
function closeDialog() {
emit("update:modelValue", false);
emit("close");
}
onMounted(() => {
(document.activeElement as HTMLElement)?.blur();
});
</script>
<template>
<v-dialog
:model-value="isOpen"
:width="1000"
scroll-strategy="block"
no-click-animation
persistent
z-index="1000"
scrim="black"
class="lightbox-dialog"
>
<template #default>
<div class="lightbox-header">
<h2 class="text-h6" :style="{ color: 'var(--console-modal-text)' }">
Screenshots
</h2>
<v-btn
icon="mdi-close"
aria-label="Close"
size="small"
:color="iconColor"
@click="closeDialog"
/>
</div>
<v-carousel
v-model="props.startIndex"
hide-delimiter-background
delimiter-icon="mdi-square"
show-arrows="hover"
hide-delimiters
class="dialog-carousel"
>
<template #prev="{ props }">
<v-btn
v-if="urls.length > 1"
icon="mdi-triangle"
size="x-small"
class="lightbox-nav-prev"
:color="iconColor"
@click="props.onClick"
/>
</template>
<v-carousel-item
v-for="screenshot in urls"
:key="screenshot"
:src="screenshot"
contain
>
<template #placeholder>
<div class="d-flex justify-center align-center">
<v-progress-circular indeterminate />
</div>
</template>
</v-carousel-item>
<template #next="{ props }">
<v-btn
v-if="urls.length > 1"
icon="mdi-triangle"
size="x-small"
class="lightbox-nav-next"
:color="iconColor"
@click="props.onClick"
/>
</template>
</v-carousel>
<div class="lightbox-footer pa-4">
<div class="d-flex justify-space-between align-center">
<navigation-text
:show-navigation="true"
:show-select="false"
:show-back="true"
:show-toggle-favorite="false"
:show-menu="false"
:is-modal="true"
/>
<div
:style="{
backgroundColor: 'var(--console-modal-header-bg)',
color: 'var(--console-modal-text)',
}"
class="px-2 py-1 rounded-lg text-xs"
>
{{ props.startIndex ? props.startIndex + 1 : 1 }} /
{{ urls.length }}
</div>
</div>
</div>
</template>
</v-dialog>
</template>
<style>
.lightbox-dialog {
backdrop-filter: blur(10px);
}
.lightbox-dialog .v-overlay__content {
max-height: 80vh;
border: 1px solid var(--console-modal-border);
background-color: var(--console-modal-bg);
border-radius: 16px;
animation: slideUp 0.3s ease;
}
.lightbox-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.25rem 1.5rem;
background-color: var(--console-modal-header-bg);
border-bottom: 1px solid var(--console-modal-border-secondary);
border-top-left-radius: 16px;
border-top-right-radius: 16px;
}
.dialog-carousel {
max-width: 1000px;
}
.lightbox-footer {
border-top: 1px solid var(--console-modal-border-secondary);
background-color: var(--console-modal-header-bg);
border-bottom-left-radius: 16px;
border-bottom-right-radius: 16px;
}
.lightbox-nav-prev {
transform: rotate(-90deg);
}
.lightbox-nav-prev i,
.lightbox-nav-next i {
font-size: 12px;
}
.lightbox-nav-next {
transform: rotate(90deg);
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
</style>

View File

@@ -0,0 +1,287 @@
<script setup lang="ts">
import { ref, computed, onMounted, onUnmounted } from "vue";
import { useConsoleTheme } from "@/stores/consoleTheme";
import { useInputScope } from "@/console/composables/useInputScope";
import { getSfxEnabled, setSfxEnabled } from "@/console/utils/sfx";
import type { InputAction } from "@/console/input/actions";
import NavigationText from "@/console/components/NavigationText.vue";
const props = defineProps<{
modelValue: boolean;
}>();
const emit = defineEmits<{
"update:modelValue": [value: boolean];
}>();
const themeStore = useConsoleTheme();
const { subscribe } = useInputScope();
const selectedOption = ref(0);
const options = [
{ label: "Theme", type: "theme" as const },
{ label: "Sound Effects", type: "sfx" as const },
];
const themeOptions = [
{ value: "default", label: "Default" },
{ value: "neon", label: "Soft Neon" },
];
const sfxEnabled = ref(getSfxEnabled());
const selectedTheme = computed({
get: () => themeStore.themeName,
set: (value: string) => themeStore.setTheme(value),
});
const iconColor = computed(() => {
const computedStyle = getComputedStyle(document.documentElement);
return (
computedStyle.getPropertyValue("--console-modal-header-bg").trim() ||
"#000000"
);
});
function closeModal() {
emit("update:modelValue", false);
}
function handleAction(action: InputAction): boolean {
if (!props.modelValue) return false;
switch (action) {
case "back":
closeModal();
return true;
case "moveUp":
selectedOption.value =
(selectedOption.value - 1 + options.length) % options.length;
return true;
case "moveDown":
selectedOption.value = (selectedOption.value + 1) % options.length;
return true;
case "moveLeft":
case "moveRight": {
const currentOption = options[selectedOption.value];
if (currentOption.type === "theme") {
const currentIndex = themeOptions.findIndex(
(t) => t.value === selectedTheme.value,
);
const nextIndex =
action === "moveLeft"
? (currentIndex - 1 + themeOptions.length) % themeOptions.length
: (currentIndex + 1) % themeOptions.length;
selectedTheme.value = themeOptions[nextIndex].value;
return true;
} else if (currentOption.type === "sfx") {
sfxEnabled.value = !sfxEnabled.value;
setSfxEnabled(sfxEnabled.value);
return true;
}
return false;
}
default:
return false;
}
}
let off: (() => void) | null = null;
onMounted(() => {
off = subscribe(handleAction);
});
onUnmounted(() => {
off?.();
});
function getCurrentThemeLabel(): string {
const theme = themeOptions.find((t) => t.value === selectedTheme.value);
return theme?.label || "Default";
}
</script>
<template>
<v-dialog
:model-value="modelValue"
:width="600"
scroll-strategy="block"
no-click-animation
persistent
z-index="1000"
scrim="black"
class="lightbox-dialog"
>
<template #default>
<div class="lightbox-header">
<h2 class="text-h6" :style="{ color: 'var(--console-modal-text)' }">
Console Settings
</h2>
<v-btn
icon="mdi-close"
aria-label="Close"
size="small"
:color="iconColor"
@click="closeModal"
/>
</div>
<div class="pa-6">
<div class="settings-list">
<div
v-for="(option, index) in options"
:key="option.type"
class="settings-item"
:class="{ 'settings-item-selected': selectedOption === index }"
>
<div class="settings-label">
{{ option.label }}
</div>
<div class="settings-value">
<template v-if="option.type === 'theme'">
<div class="theme-selector">
<span class="theme-indicator">‹</span>
<span class="theme-name">{{ getCurrentThemeLabel() }}</span>
<span class="theme-indicator">›</span>
</div>
</template>
<template v-else-if="option.type === 'sfx'">
<div class="sfx-toggle">
<span class="sfx-indicator">‹</span>
<span class="sfx-status">{{
sfxEnabled ? "Enabled" : "Disabled"
}}</span>
<span class="sfx-indicator">›</span>
</div>
</template>
</div>
</div>
</div>
</div>
<div class="lightbox-footer pa-4">
<NavigationText
:show-navigation="true"
:show-select="false"
:show-back="true"
:show-toggle-favorite="false"
:show-menu="false"
:is-modal="true"
/>
</div>
</template>
</v-dialog>
</template>
<style scoped>
.lightbox-dialog {
backdrop-filter: blur(10px);
cursor: none;
}
.lightbox-dialog :deep(.v-overlay__content) {
max-height: 80vh;
border: 1px solid var(--console-modal-border);
background-color: var(--console-modal-bg);
border-radius: 16px;
animation: slideUp 0.3s ease;
cursor: none;
}
.lightbox-dialog :deep(*) {
cursor: none !important;
}
.lightbox-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.25rem 1.5rem;
background-color: var(--console-modal-header-bg);
border-bottom: 1px solid var(--console-modal-border-secondary);
border-top-left-radius: 16px;
border-top-right-radius: 16px;
}
.lightbox-footer {
border-top: 1px solid var(--console-modal-border-secondary);
background-color: var(--console-modal-header-bg);
border-bottom-left-radius: 16px;
border-bottom-right-radius: 16px;
}
.settings-list {
display: flex;
flex-direction: column;
gap: 1rem;
}
.settings-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 1.5rem;
border: 2px solid transparent;
border-radius: 12px;
background-color: var(--console-modal-tile-bg);
transition: all 0.2s ease;
}
.settings-item-selected {
border-color: var(--console-modal-tile-selected-border);
background-color: var(--console-modal-tile-selected-bg);
box-shadow:
0 0 0 2px var(--console-modal-tile-selected-border),
0 0 16px var(--console-modal-tile-selected-border);
}
.settings-label {
font-size: 1.1rem;
font-weight: 500;
color: var(--console-modal-text);
}
.settings-value {
display: flex;
align-items: center;
gap: 0.5rem;
}
.theme-selector,
.sfx-toggle {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.5rem 1rem;
background-color: var(--console-modal-button-bg);
border-radius: 8px;
border: 1px solid var(--console-modal-button-border);
}
.theme-indicator,
.sfx-indicator {
color: var(--console-modal-button-indicator);
font-size: 1.2rem;
font-weight: bold;
}
.theme-name,
.sfx-status {
font-weight: 500;
color: var(--console-modal-button-text);
min-width: 80px;
text-align: center;
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
</style>

View File

@@ -0,0 +1,118 @@
<script setup lang="ts">
import { computed, onMounted, ref } from "vue";
import { getPlatformTheme } from "@/console/constants/platforms";
import { systemElementRegistry } from "@/console/composables/useElementRegistry";
import { useThemeAssets } from "@/console/composables/useThemeAssets";
import type { Platform } from "@/stores/platforms";
const props = defineProps<{
platform: Platform;
index: number;
selected?: boolean;
}>();
const emit = defineEmits(["click", "mouseenter", "focus"]);
const el = ref<HTMLElement>();
const { getSystemImagePath } = useThemeAssets();
onMounted(() => {
if (el.value) {
systemElementRegistry.registerElement(props.index, el.value);
}
});
const theme = computed(() => {
const platformTheme = getPlatformTheme(props.platform.slug);
if (platformTheme) {
return {
name: platformTheme.label,
shortName: platformTheme.shortName || platformTheme.label,
image: getSystemImagePath(props.platform.slug).value,
background: platformTheme.background,
accent: platformTheme.accent,
};
}
return {
name: props.platform.name,
shortName: props.platform.name,
image: undefined,
background: "var(--console-system-card-bg-fallback)",
accent: "var(--console-system-accent-fallback)",
};
});
</script>
<template>
<button
ref="el"
class="relative w-[280px] h-[160px] rounded-xl border-2 border-white/10 cursor-pointer overflow-hidden shrink-0 shadow-[0_4px_20px_rgba(0,0,0,0.3),_inset_0_1px_0_rgba(255,255,255,0.1)] transition-all"
:class="{
'-translate-y-[2px] scale-[1.03] shadow-[0_8px_28px_rgba(0,0,0,0.35),_0_0_0_2px_var(--system-accent),_0_0_16px_var(--system-accent)]':
selected,
}"
:style="{
'--system-bg': theme.background,
'--system-accent': theme.accent,
}"
@click="emit('click')"
@focus="emit('focus')"
>
<div
class="absolute inset-0"
:style="{ background: 'var(--system-bg)', opacity: 0.9 }"
/>
<div class="absolute inset-0 flex items-center justify-center">
<v-img
v-if="theme.image"
:src="theme.image"
:alt="theme.name"
class="w-full h-full object-cover"
>
<template #error>
<div
class="absolute inset-0 flex flex-col items-center justify-center"
>
<div class="text-2xl mb-2">🎮</div>
<div
class="font-bold text-center"
:style="{ color: 'var(--console-system-card-text)' }"
>
{{ theme.shortName }}
</div>
</div>
</template>
</v-img>
<div
v-else
class="absolute inset-0 flex flex-col items-center justify-center"
:style="{ background: 'var(--system-bg)' }"
>
<div class="text-2xl mb-2">🎮</div>
<div
class="font-bold text-center"
:style="{ color: 'var(--console-system-card-text)' }"
>
{{ theme.shortName }}
</div>
</div>
</div>
<div
class="absolute inset-0 opacity-0 pointer-events-none"
:style="{
background:
'radial-gradient(circle at center, var(--system-accent) 0%, transparent 70%)',
}"
:class="{ 'opacity-10': selected }"
/>
<div
class="absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/30 to-transparent px-4 py-2 z-10"
>
<div
class="text-sm text-center font-medium"
:style="{ color: 'var(--console-system-card-text)' }"
>
{{ platform.rom_count || 0 }} games
</div>
</div>
</button>
</template>

View File

@@ -0,0 +1,139 @@
<template>
<svg
viewBox="0 0 40 28"
class="w-10 h-7"
:style="{
color: modal
? 'var(--console-nav-hint-modal-accent)'
: 'var(--console-nav-hint-accent)',
}"
fill="none"
stroke="currentColor"
>
<!-- Top arrow -->
<g>
<rect
x="14"
y="1"
width="12"
height="12"
rx="2"
:style="{
fill: modal
? 'var(--console-nav-hint-modal-accent)'
: 'var(--console-nav-hint-accent)',
stroke: modal
? 'var(--console-nav-hint-modal-accent)'
: 'var(--console-nav-hint-accent)',
}"
stroke-width="0.5"
/>
<path
d="M 0 -3 L -2 -1 L -1 -1 L -1 3 L 1 3 L 1 -1 L 2 -1 Z"
:style="{
fill: modal
? 'var(--console-nav-hint-modal-keycap)'
: 'var(--console-nav-hint-keycap)',
}"
transform="translate(20, 7)"
/>
</g>
<!-- Left arrow -->
<g>
<rect
x="1"
y="14"
width="12"
height="12"
rx="2"
:style="{
fill: modal
? 'var(--console-nav-hint-modal-accent)'
: 'var(--console-nav-hint-accent)',
stroke: modal
? 'var(--console-nav-hint-modal-accent)'
: 'var(--console-nav-hint-accent)',
}"
stroke-width="0.5"
/>
<path
d="M -3 0 L -1 -2 L -1 -1 L 3 -1 L 3 1 L -1 1 L -1 2 Z"
:style="{
fill: modal
? 'var(--console-nav-hint-modal-keycap)'
: 'var(--console-nav-hint-keycap)',
}"
transform="translate(7, 20)"
/>
</g>
<!-- Down arrow -->
<g>
<rect
x="14"
y="14"
width="12"
height="12"
rx="2"
:style="{
fill: modal
? 'var(--console-nav-hint-modal-accent)'
: 'var(--console-nav-hint-accent)',
stroke: modal
? 'var(--console-nav-hint-modal-accent)'
: 'var(--console-nav-hint-accent)',
}"
stroke-width="0.5"
/>
<path
d="M 0 3 L -2 1 L -1 1 L -1 -3 L 1 -3 L 1 1 L 2 1 Z"
:style="{
fill: modal
? 'var(--console-nav-hint-modal-keycap)'
: 'var(--console-nav-hint-keycap)',
}"
transform="translate(20, 20)"
/>
</g>
<!-- Right arrow -->
<g>
<rect
x="27"
y="14"
width="12"
height="12"
rx="2"
:style="{
fill: modal
? 'var(--console-nav-hint-modal-accent)'
: 'var(--console-nav-hint-accent)',
stroke: modal
? 'var(--console-nav-hint-modal-accent)'
: 'var(--console-nav-hint-accent)',
}"
stroke-width="0.5"
/>
<path
d="M 3 0 L 1 -2 L 1 -1 L -3 -1 L -3 1 L 1 1 L 1 2 Z"
:style="{
fill: modal
? 'var(--console-nav-hint-modal-keycap)'
: 'var(--console-nav-hint-keycap)',
}"
transform="translate(33, 20)"
/>
</g>
</svg>
</template>
<script setup lang="ts">
interface Props {
modal?: boolean;
}
withDefaults(defineProps<Props>(), {
modal: false,
});
</script>

View File

@@ -0,0 +1,87 @@
<template>
<svg
viewBox="0 0 40 40"
fill="none"
:style="{ color: 'var(--console-button-text-muted)' }"
>
<!-- Top arrow -->
<rect
x="16"
y="4"
width="8"
height="12"
rx="2"
:style="{
fill: modal
? 'var(--console-nav-hint-modal-keycap)'
: 'var(--console-nav-hint-keycap)',
}"
/>
<!-- Bottom arrow -->
<rect
x="16"
y="24"
width="8"
height="12"
rx="2"
:style="{
fill: modal
? 'var(--console-nav-hint-modal-keycap)'
: 'var(--console-nav-hint-keycap)',
}"
/>
<!-- Left arrow -->
<rect
x="4"
y="16"
width="12"
height="8"
rx="2"
:style="{
fill: modal
? 'var(--console-nav-hint-modal-keycap)'
: 'var(--console-nav-hint-keycap)',
}"
/>
<!-- Right arrow -->
<rect
x="24"
y="16"
width="12"
height="8"
rx="2"
:style="{
fill: modal
? 'var(--console-nav-hint-modal-keycap)'
: 'var(--console-nav-hint-keycap)',
}"
/>
<!-- Center button -->
<rect
x="16"
y="16"
width="8"
height="8"
rx="2"
:style="{
fill: modal
? 'var(--console-nav-hint-modal-accent)'
: 'var(--console-nav-hint-accent)',
}"
/>
</svg>
</template>
<script setup lang="ts">
interface Props {
modal?: boolean;
}
withDefaults(defineProps<Props>(), {
modal: false,
});
</script>

View File

@@ -0,0 +1,87 @@
<template>
<svg
viewBox="0 0 24 24"
class="w-8 h-8 translate-y-[1px]"
:style="{ color: 'var(--console-button-text-muted)' }"
>
<!-- North button (Y/Triangle) -->
<circle
cx="12"
cy="4"
r="4"
:style="{
fill:
highlight === 'north'
? modal
? 'var(--console-nav-hint-modal-keycap)'
: 'var(--console-nav-hint-keycap)'
: modal
? 'var(--console-nav-hint-modal-accent)'
: 'var(--console-nav-hint-accent)',
}"
/>
<!-- South button (A/Cross) -->
<circle
cx="12"
cy="20"
r="4"
:style="{
fill:
highlight === 'south'
? modal
? 'var(--console-nav-hint-modal-keycap)'
: 'var(--console-nav-hint-keycap)'
: modal
? 'var(--console-nav-hint-modal-accent)'
: 'var(--console-nav-hint-accent)',
}"
/>
<!-- West button (X/Square) -->
<circle
cx="4"
cy="12"
r="4"
:style="{
fill:
highlight === 'west'
? modal
? 'var(--console-nav-hint-modal-keycap)'
: 'var(--console-nav-hint-keycap)'
: modal
? 'var(--console-nav-hint-modal-accent)'
: 'var(--console-nav-hint-accent)',
}"
/>
<!-- East button (B/Circle) -->
<circle
cx="20"
cy="12"
r="4"
:style="{
fill:
highlight === 'east'
? modal
? 'var(--console-nav-hint-modal-keycap)'
: 'var(--console-nav-hint-keycap)'
: modal
? 'var(--console-nav-hint-modal-accent)'
: 'var(--console-nav-hint-accent)',
}"
/>
</svg>
</template>
<script setup lang="ts">
interface Props {
highlight?: "north" | "south" | "west" | "east";
modal?: boolean;
}
withDefaults(defineProps<Props>(), {
highlight: "south",
modal: false,
});
</script>

View File

@@ -0,0 +1,30 @@
import { ref } from "vue";
export function useElementRegistry() {
const elements = ref<HTMLElement[]>([]);
const registerElement = (index: number, element: HTMLElement) => {
elements.value[index] = element;
};
const getElement = (index: number): HTMLElement | undefined => {
return elements.value[index];
};
const clearElements = () => {
elements.value = [];
};
return {
elements,
registerElement,
getElement,
clearElements,
};
}
// Create a shared registry instance for each section
export const systemElementRegistry = useElementRegistry();
export const recentElementRegistry = useElementRegistry();
export const collectionElementRegistry = useElementRegistry();
export const gamesListElementRegistry = useElementRegistry();

View File

@@ -0,0 +1,35 @@
import { inject, onMounted, onUnmounted } from "vue";
import { InputBus, InputBusSymbol } from "@/console/input/bus";
import type { InputListener } from "@/console/input/actions";
export function useInputScope() {
const bus = inject<InputBus>(InputBusSymbol);
if (!bus) {
throw new Error(
"useInputScope must be used within a component that provides InputBus",
);
}
let unsubscribe: (() => void) | null = null;
onMounted(() => {
unsubscribe = bus.pushScope();
});
onUnmounted(() => {
if (unsubscribe) {
unsubscribe();
unsubscribe = null;
}
});
const subscribe = (listener: InputListener) => {
return bus.subscribe(listener);
};
return {
bus,
subscribe,
};
}

View File

@@ -0,0 +1,45 @@
import { watch, type Ref } from "vue";
interface RovingOptions {
scroll?: boolean; // default true
block?: ScrollLogicalPosition; // vertical alignment
inline?: ScrollLogicalPosition; // horizontal alignment
behavior?: ScrollBehavior; // smooth vs auto
focus?: boolean; // default true
}
export function useRovingDom(
index: Ref<number>,
getEl: (i: number) => HTMLElement | undefined,
opts: RovingOptions = {},
) {
const {
scroll = true,
block = "center",
inline = "nearest",
behavior = "smooth",
focus = true,
} = opts;
watch(
index,
(newIdx, oldIdx) => {
if (oldIdx != null) {
const prev = getEl(oldIdx);
if (prev) prev.setAttribute("tabindex", "-1");
}
const el = getEl(newIdx);
if (!el) return;
el.setAttribute("tabindex", "0");
if (focus) {
el.focus({ preventScroll: true });
}
if (scroll) {
setTimeout(() => {
el.scrollIntoView({ block, inline, behavior });
}, 0);
}
},
{ immediate: true },
);
}

View File

@@ -0,0 +1,29 @@
import type { Ref } from "vue";
export function useSpatialNav(
selectedIndex: Ref<number>,
getCols: () => number,
getCount: () => number,
) {
const moveLeft = () => {
selectedIndex.value = Math.max(0, selectedIndex.value - 1);
};
const moveRight = () => {
const cols = getCols();
const last = getCount() - 1;
const atRight = (selectedIndex.value + 1) % cols === 0;
if (!atRight) selectedIndex.value = Math.min(last, selectedIndex.value + 1);
};
const moveUp = () => {
const cols = getCols();
const ni = selectedIndex.value - cols;
if (ni >= 0) selectedIndex.value = ni;
};
const moveDown = () => {
const cols = getCols();
const ni = selectedIndex.value + cols;
if (ni < getCount()) selectedIndex.value = ni;
};
return { moveLeft, moveRight, moveUp, moveDown };
}

View File

@@ -0,0 +1,73 @@
import { computed, type ComputedRef } from "vue";
import { useConsoleTheme } from "@/stores/consoleTheme";
import {
resolveAsset,
type AssetType,
type SupportedFormat,
} from "@/console/utils/assetResolver";
// provides reactive asset paths for theme-aware components
// this is the single source of truth for all asset path resolution
export function useThemeAssets() {
const themeStore = useConsoleTheme();
function getAssetPath(
assetType: AssetType,
filename: string,
preferredFormat: SupportedFormat = "svg",
): ComputedRef<string> {
return computed(() =>
resolveAsset(assetType, filename, preferredFormat, themeStore.themeName),
);
}
function getSystemImagePath(
platformSlug: string,
preferredFormat: SupportedFormat = "svg",
): ComputedRef<string> {
return computed(() =>
resolveAsset(
"systems",
platformSlug,
preferredFormat,
themeStore.themeName,
),
);
}
function getBezelImagePath(
platformSlug: string,
preferredFormat: SupportedFormat = "png",
): ComputedRef<string> {
return computed(() =>
resolveAsset(
"bezels",
platformSlug,
preferredFormat,
themeStore.themeName,
),
);
}
function getBackgroundImagePath(
backgroundName: string = "background",
preferredFormat: SupportedFormat = "svg",
): ComputedRef<string> {
return computed(() =>
resolveAsset(
"backgrounds",
backgroundName,
preferredFormat,
themeStore.themeName,
),
);
}
return {
getAssetPath,
getSystemImagePath,
getBezelImagePath,
getBackgroundImagePath,
themeName: computed(() => themeStore.themeName),
};
}

View File

@@ -0,0 +1,233 @@
export type SupportedPlatform = {
label: string;
shortName: string;
background: string;
accent: string;
};
const _SUPPORTED_PLATFORMS: Record<string, SupportedPlatform> = {
"3do": {
label: "3DO",
shortName: "3DO",
background: "linear-gradient(135deg,#4e4376,#2b5876)",
accent: "#6f63b4",
},
amiga: {
label: "Amiga",
shortName: "Amiga",
background: "linear-gradient(135deg,#0093e9,#80d0c7)",
accent: "#33b1ff",
},
arcade: {
label: "Arcade / MAME",
shortName: "Arcade",
background: "linear-gradient(135deg,#d73266,#8b1538)",
accent: "#d73266",
},
mame: {
label: "Arcade / MAME",
shortName: "Arcade",
background: "linear-gradient(135deg,#d73266,#8b1538)",
accent: "#d73266",
},
atari2600: {
label: "Atari 2600",
shortName: "2600",
background: "linear-gradient(135deg,#c04848,#480048)",
accent: "#ff6a6a",
},
atari5200: {
label: "Atari 5200",
shortName: "5200",
background: "linear-gradient(135deg,#3a6073,#16222a)",
accent: "#4fa3c7",
},
atari7800: {
label: "Atari 7800",
shortName: "7800",
background: "linear-gradient(135deg,#870000,#190a05)",
accent: "#ff3030",
},
jaguar: {
label: "Atari Jaguar",
shortName: "Jaguar",
background: "linear-gradient(135deg,#000000,#434343)",
accent: "#ff0015",
},
lynx: {
label: "Atari Lynx",
shortName: "Lynx",
background: "linear-gradient(135deg,#485563,#29323c)",
accent: "#ffa733",
},
c64: {
label: "Commodore 64",
shortName: "C64",
background: "linear-gradient(135deg,#614385,#516395)",
accent: "#8b7ad6",
},
colecovision: {
label: "ColecoVision",
shortName: "Coleco",
background: "linear-gradient(135deg,#134e5e,#71b280)",
accent: "#34c686",
},
doom: {
label: "DOOM",
shortName: "DOOM",
background: "linear-gradient(135deg,#636363,#0f0f0f)",
accent: "#ff9800",
},
"neo-geo-pocket": {
label: "Neo Geo Pocket",
shortName: "NGP",
background: "linear-gradient(135deg,#1e3c72,#2a5298)",
accent: "#2e6dff",
},
"neo-geo-pocket-color": {
label: "Neo Geo Pocket Color",
shortName: "NGPC",
background: "linear-gradient(135deg,#42275a,#734b6d)",
accent: "#b667d0",
},
dos: {
label: "MS-DOS",
shortName: "DOS",
background: "linear-gradient(135deg,#203a43,#2c5364)",
accent: "#3fa7d6",
},
n64: {
label: "Nintendo 64",
shortName: "N64",
background: "linear-gradient(135deg,#ffd700,#ff8c00)",
accent: "#ffd700",
},
nes: {
label: "Nintendo Entertainment System (NES)",
shortName: "NES",
background: "linear-gradient(135deg,#cc2936,#8b1538)",
accent: "#cc2936",
},
famicom: {
label: "Nintendo Family Computer (Famicom)",
shortName: "Famicom",
background: "linear-gradient(135deg,#cc2936,#8b1538)",
accent: "#cc2936",
},
nds: {
label: "Nintendo DS",
shortName: "NDS",
background: "linear-gradient(135deg,#56ccf2,#2f80ed)",
accent: "#2f80ed",
},
gb: {
label: "Game Boy",
shortName: "GB",
background: "linear-gradient(135deg,#8fbc8f,#556b2f)",
accent: "#8fbc8f",
},
gbc: {
label: "Game Boy Color",
shortName: "GBC",
background: "linear-gradient(135deg,#20b2aa,#008b8b)",
accent: "#20b2aa",
},
gba: {
label: "Game Boy Advance",
shortName: "GBA",
background: "linear-gradient(135deg,#9370db,#4b0082)",
accent: "#9370db",
},
"pc-fx": {
label: "PC-FX",
shortName: "PC-FX",
background: "linear-gradient(135deg,#41295a,#2f0743)",
accent: "#b44cff",
},
psx: {
label: "PlayStation (PS)",
shortName: "PS1",
background: "linear-gradient(135deg,#4169e1,#191970)",
accent: "#4169e1",
},
sega32: {
label: "Sega 32X",
shortName: "32X",
background: "linear-gradient(135deg,#f7971e,#ffd200)",
accent: "#ffbf00",
},
segacd: {
label: "Sega CD",
shortName: "Sega CD",
background: "linear-gradient(135deg,#2980b9,#2c3e50)",
accent: "#4fa3ff",
},
gamegear: {
label: "Sega Game Gear",
shortName: "GG",
background: "linear-gradient(135deg,#141e30,#243b55)",
accent: "#4f7fbf",
},
sms: {
label: "Sega Master System",
shortName: "SMS",
background: "linear-gradient(135deg,#ff6347,#dc143c)",
accent: "#ff6347",
},
genesis: {
label: "Sega Genesis / Megadrive",
shortName: "Genesis",
background: "linear-gradient(135deg,#1e90ff,#0f4c75)",
accent: "#1e90ff",
},
saturn: {
label: "Sega Saturn",
shortName: "Saturn",
background: "linear-gradient(135deg,#141e30,#243b55)",
accent: "#4f7fbf",
},
snes: {
label: "Super Nintendo Entertainment System (SNES)",
shortName: "SNES",
background: "linear-gradient(135deg,#e22828,#f81414)",
accent: "#e22828",
},
sfam: {
label: "Super Famicom",
shortName: "SFC",
background: "linear-gradient(135deg,#e22828,#f81414)",
accent: "#e22828",
},
tg16: {
label: "TurboGrafx-16 / PC Engine",
shortName: "TG-16",
background: "linear-gradient(135deg,#ff9966,#ff5e62)",
accent: "#ff7b54",
},
virtualboy: {
label: "Virtual Boy",
shortName: "VBoy",
background: "linear-gradient(135deg,#8e0e00,#1f1c18)",
accent: "#ff2a2a",
},
wonderswan: {
label: "WonderSwan",
shortName: "WS",
background: "linear-gradient(135deg,#457fca,#5691c8)",
accent: "#4f8edb",
},
"wonderswan-color": {
label: "WonderSwan Color",
shortName: "WSC",
background: "linear-gradient(135deg,#396afc,#2948ff)",
accent: "#456dff",
},
};
export function isSupportedPlatform(slug: string): boolean {
return Object.keys(_SUPPORTED_PLATFORMS).includes(slug);
}
export function getPlatformTheme(slug: string): SupportedPlatform | undefined {
return _SUPPORTED_PLATFORMS[slug];
}

View File

@@ -0,0 +1,195 @@
@import "tailwindcss";
:root {
--motion-fast: 150ms;
--motion-med: 220ms;
--motion-slow: 360ms;
--elev-1: 0 6px 24px rgba(0, 0, 0, 0.35);
--elev-2: 0 10px 32px rgba(0, 0, 0, 0.45);
}
html,
body,
#app {
height: 100%;
background: #38286a;
}
* {
box-sizing: border-box;
}
@keyframes shimmer {
0% {
background-position: 200% 0;
}
100% {
background-position: -200% 0;
}
}
/* Hide scrollbars (cross-browser) */
.no-scrollbar {
-ms-overflow-style: none !important; /* IE and Edge */
scrollbar-width: none !important; /* Firefox */
scrollbar-color: transparent transparent !important; /* Firefox ensure transparent */
}
.no-scrollbar::-webkit-scrollbar {
width: 0 !important; /* Chrome, Safari */
height: 0 !important;
display: none !important;
background: transparent !important;
-webkit-appearance: none !important;
}
.no-scrollbar::-webkit-scrollbar:horizontal {
height: 0 !important;
display: none !important;
}
.no-scrollbar::-webkit-scrollbar-thumb {
background: transparent !important;
border: none !important;
}
.no-scrollbar::-webkit-scrollbar-track {
background: transparent !important;
}
.no-scrollbar::-webkit-scrollbar-corner {
background: transparent !important;
}
.no-scrollbar::-webkit-scrollbar-button {
width: 0 !important;
height: 0 !important;
display: none !important;
}
/* Console Page Transitions */
/* Slide Left (Going Forward/Deeper) */
.slide-left-enter-active,
.slide-left-leave-active {
transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
position: relative;
width: 100%;
height: 100%;
min-height: 100vh;
overflow: hidden;
}
.slide-left-enter-from {
opacity: 0;
transform: translateX(60px);
}
.slide-left-leave-to {
opacity: 0;
transform: translateX(-60px);
}
/* Slide Right (Going Back) */
.slide-right-enter-active,
.slide-right-leave-active {
transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
position: relative;
width: 100%;
height: 100%;
min-height: 100vh;
overflow: hidden;
}
.slide-right-enter-from {
opacity: 0;
transform: translateX(-60px);
}
.slide-right-leave-to {
opacity: 0;
transform: translateX(60px);
}
/* Slide Up (Entering Play Mode) */
.slide-up-enter-active,
.slide-up-leave-active {
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
position: relative;
width: 100%;
height: 100%;
min-height: 100vh;
overflow: hidden;
}
.slide-up-enter-from {
opacity: 0;
transform: translateY(30px);
}
.slide-up-leave-to {
opacity: 0;
transform: translateY(-30px);
}
/* Slide Down (Exiting Play Mode) */
.slide-down-enter-active,
.slide-down-leave-active {
transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
position: relative;
width: 100%;
height: 100%;
min-height: 100vh;
overflow: hidden;
}
.slide-down-enter-from {
opacity: 0;
transform: translateY(-30px);
}
.slide-down-leave-to {
opacity: 0;
transform: translateY(30px);
}
/* Fade (Same Level or First Load) */
.fade-enter-active,
.fade-leave-active {
transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
position: relative;
width: 100%;
height: 100%;
min-height: 100vh;
overflow: hidden;
}
.fade-enter-from,
.fade-leave-to {
opacity: 0;
}
/* Ensure smooth transitions */
.slide-left-enter-active > *,
.slide-right-enter-active > *,
.slide-up-enter-active > *,
.slide-down-enter-active > *,
.fade-enter-active > * {
transition: inherit;
}
.console-root {
background:
var(
--theme-background,
url("/assets/console/default/backgrounds/background.svg")
)
center/cover fixed,
#38286a !important;
min-height: 100vh;
width: 100%;
}
.console-root::before {
content: "";
position: fixed;
inset: 0;
pointer-events: none;
z-index: 0;
}
.console-root > * {
position: relative;
z-index: 1;
}
.play-root {
position: fixed !important;
inset: 0 !important;
z-index: 70 !important;
transform: none !important;
}

View File

@@ -0,0 +1,14 @@
export type InputAction =
| "moveUp"
| "moveDown"
| "moveLeft"
| "moveRight"
| "confirm"
| "back"
| "menu"
| "delete"
| "tabNext"
| "tabPrev"
| "toggleFavorite";
export type InputListener = (action: InputAction) => boolean | void;

View File

@@ -0,0 +1,57 @@
import type { InputAction, InputListener } from "./actions";
import { sfxForAction, playSfx } from "../utils/sfx";
export class InputBus {
private scopes: Array<Set<InputListener>> = [];
private globalShortcuts: Set<InputListener> = new Set();
pushScope(): () => void {
const set = new Set<InputListener>();
this.scopes.push(set);
return () => this.popScope(set);
}
private popScope(scope: Set<InputListener>) {
const idx = this.scopes.lastIndexOf(scope);
if (idx >= 0) this.scopes.splice(idx, 1);
}
subscribe(listener: InputListener): () => void {
const top = this.scopes[this.scopes.length - 1];
if (!top) throw new Error("No active input scope. Call pushScope() first.");
top.add(listener);
return () => top.delete(listener);
}
subscribeGlobal(listener: InputListener): () => void {
this.globalShortcuts.add(listener);
return () => this.globalShortcuts.delete(listener);
}
dispatch(action: InputAction): boolean {
for (let i = this.scopes.length - 1; i >= 0; i--) {
const scope = this.scopes[i];
for (const listener of scope) {
const handled = listener(action);
if (handled) {
const kind = sfxForAction(action);
if (kind) playSfx(kind);
return true;
}
}
}
for (const listener of this.globalShortcuts) {
const handled = listener(action);
if (handled) {
const kind = sfxForAction(action);
if (kind) playSfx(kind);
return true;
}
}
return false;
}
}
export const InputBusSymbol = Symbol("InputBus");

View File

@@ -0,0 +1,62 @@
export interface InputConfig {
rtl: boolean;
repeat: { initialDelayMs: number; repeatEveryMs: number };
deadzone: number;
keyMap: Record<string, import("./actions").InputAction | undefined>;
gamepad: {
axesThreshold: number;
axisToAction: {
x: {
neg: import("./actions").InputAction;
pos: import("./actions").InputAction;
};
y: {
neg: import("./actions").InputAction;
pos: import("./actions").InputAction;
};
};
buttons: Record<number, import("./actions").InputAction | undefined>;
};
}
import type { InputAction } from "./actions";
export const defaultInputConfig: InputConfig = {
rtl: false,
repeat: { initialDelayMs: 350, repeatEveryMs: 120 },
deadzone: 0.2,
keyMap: {
ArrowUp: "moveUp",
ArrowDown: "moveDown",
ArrowLeft: "moveLeft",
ArrowRight: "moveRight",
Enter: "confirm",
" ": "confirm",
Backspace: "back",
f: "toggleFavorite",
F: "toggleFavorite",
x: "delete",
X: "delete",
Tab: undefined,
},
gamepad: {
axesThreshold: 0.5,
axisToAction: {
x: { neg: "moveLeft" as InputAction, pos: "moveRight" as InputAction },
y: { neg: "moveUp" as InputAction, pos: "moveDown" as InputAction },
},
buttons: {
0: "confirm",
1: "back",
2: "delete",
3: "toggleFavorite",
8: "back",
9: "menu",
// Standard mapping D-pad (12: Up, 13: Down, 14: Left, 15: Right)
12: "moveUp",
13: "moveDown",
14: "moveLeft",
15: "moveRight",
},
},
};

View File

@@ -0,0 +1,95 @@
import { InputBus } from "./bus";
import { defaultInputConfig } from "./config";
import type { InputAction } from "./actions";
interface ButtonState {
pressed: boolean;
nextRepeatAt: number;
}
export function attachGamepad(bus: InputBus) {
const states: Record<
string,
{
buttons: Record<number, ButtonState>;
axesRepeatAt: Record<"x" | "y", number>;
}
> = {};
const now = () => performance.now();
const onConnect = () => {};
const onDisconnect = () => {};
window.addEventListener("gamepadconnected", onConnect);
window.addEventListener("gamepaddisconnected", onDisconnect);
let rafId = 0;
const loop = () => {
const pads = navigator.getGamepads?.() || [];
const t = now();
for (const pad of pads) {
if (!pad) continue;
const key = `${pad.index}:${pad.id}`;
const st = (states[key] ||= {
buttons: {},
axesRepeatAt: { x: 0, y: 0 },
});
const x = pad.axes[0] || 0;
const y = pad.axes[1] || 0;
const thr = defaultInputConfig.gamepad.axesThreshold;
const delay = defaultInputConfig.repeat.initialDelayMs;
const rep = defaultInputConfig.repeat.repeatEveryMs;
const fireAxis = (axis: "x" | "y", v: number) => {
if (Math.abs(v) < thr) {
st.axesRepeatAt[axis] = 0;
return;
}
const dirAction: InputAction =
v < 0
? axis === "x"
? defaultInputConfig.gamepad.axisToAction.x.neg
: defaultInputConfig.gamepad.axisToAction.y.neg
: axis === "x"
? defaultInputConfig.gamepad.axisToAction.x.pos
: defaultInputConfig.gamepad.axisToAction.y.pos;
if (st.axesRepeatAt[axis] === 0) {
bus.dispatch(dirAction);
st.axesRepeatAt[axis] = t + delay;
} else if (t >= st.axesRepeatAt[axis]) {
bus.dispatch(dirAction);
st.axesRepeatAt[axis] = t + rep;
}
};
fireAxis("x", x);
fireAxis("y", y);
for (let i = 0; i < pad.buttons.length; i++) {
const b = pad.buttons[i];
const action = defaultInputConfig.gamepad.buttons[i];
if (!action) continue;
const prev = (st.buttons[i] ||= { pressed: false, nextRepeatAt: 0 });
if (b.pressed) {
if (!prev.pressed) {
bus.dispatch(action);
prev.pressed = true;
prev.nextRepeatAt = t + delay;
} else if (t >= prev.nextRepeatAt) {
bus.dispatch(action);
prev.nextRepeatAt = t + rep;
}
} else {
prev.pressed = false;
prev.nextRepeatAt = 0;
}
}
}
rafId = requestAnimationFrame(loop);
};
rafId = requestAnimationFrame(loop);
return () => {
cancelAnimationFrame(rafId);
window.removeEventListener("gamepadconnected", onConnect);
window.removeEventListener("gamepaddisconnected", onDisconnect);
};
}

View File

@@ -0,0 +1,22 @@
import { InputBus } from "./bus";
import { defaultInputConfig } from "./config";
export function attachKeyboard(bus: InputBus) {
const onKey = (e: KeyboardEvent) => {
const target = e.target as HTMLElement | null;
if (
target &&
(target.tagName === "INPUT" ||
target.tagName === "TEXTAREA" ||
target.isContentEditable)
) {
return;
}
const action = defaultInputConfig.keyMap[e.key];
if (!action) return;
const handled = bus.dispatch(action);
if (handled) e.preventDefault();
};
window.addEventListener("keydown", onKey);
return () => window.removeEventListener("keydown", onKey);
}

View File

@@ -0,0 +1,34 @@
import { useConsoleTheme } from "@/stores/consoleTheme";
// supported image formats
export type SupportedFormat = "svg" | "png" | "jpg" | "jpeg" | "webp";
export type AssetType = "systems" | "bezels" | "backgrounds";
// cache to avoid redundant checks
const assetCache = new Map<string, string>();
export function resolveAsset(
assetType: AssetType,
filename: string,
preferredFormat: SupportedFormat = "svg",
themeName?: string,
): string {
const themeStore = useConsoleTheme();
const currentTheme = themeName || themeStore.themeName;
const baseFilename = filename.replace(/\.(svg|png|jpg|jpeg|webp)$/i, "");
// check cache first
const cacheKey = `${currentTheme}:${assetType}:${baseFilename}`;
if (assetCache.has(cacheKey)) {
return assetCache.get(cacheKey)!;
}
const assetPath = `/assets/console/${currentTheme}/${assetType}/${baseFilename}.${preferredFormat}`;
assetCache.set(cacheKey, assetPath);
return assetPath;
}
export function clearAssetCache(): void {
assetCache.clear();
}

View File

@@ -0,0 +1,263 @@
let sfxEnabled = true;
export function setSfxEnabled(enabled: boolean): void {
sfxEnabled = enabled;
localStorage.setItem("console-sfx-enabled", enabled ? "true" : "false");
}
export function getSfxEnabled(): boolean {
return sfxEnabled;
}
export function initializeSfx(): void {
const saved = localStorage.getItem("console-sfx-enabled");
if (saved !== null) {
sfxEnabled = saved === "true";
}
}
let ctx: AudioContext | null = null;
function ensureCtx() {
if (ctx) return ctx;
if (typeof window === "undefined") return null;
if (!window.AudioContext) return null;
ctx = new window.AudioContext();
return ctx;
}
export type SfxType =
| "move"
| "confirm"
| "back"
| "error"
| "delete"
| "favorite";
interface ClickOpts {
toneHz?: number; // fundamental pitch component
noise?: number; // 0..1 noise mix
duration?: number; // seconds
gain?: number; // peak gain
lowpass?: number; // low-pass cutoff
pitchDecay?: number; // seconds until pitch falls
startFreq?: number; // optional sweep start frequency
}
function playClick(opts: ClickOpts = {}) {
const audio = ensureCtx();
if (!audio) return;
const now = audio.currentTime;
const {
toneHz = 420,
noise = 0.35,
duration = 0.11,
gain = 0.18,
lowpass = 3200,
pitchDecay = 0.04,
startFreq,
} = opts;
const master = audio.createGain();
master.gain.setValueAtTime(gain, now);
master.gain.exponentialRampToValueAtTime(0.0008, now + duration);
// Tone (short sine/square blend for soft attack)
const osc = audio.createOscillator();
osc.type = "sine";
const baseFreq = startFreq ?? toneHz;
osc.frequency.setValueAtTime(baseFreq, now);
if (startFreq) {
// gentle sweep toward toneHz
osc.frequency.exponentialRampToValueAtTime(toneHz, now + pitchDecay);
} else {
// tiny downward drift for organic feel
osc.frequency.exponentialRampToValueAtTime(
Math.max(40, toneHz * 0.9),
now + pitchDecay,
);
}
// Light saturation via waveshaper
const shaper = audio.createWaveShaper();
const curve = new Float32Array(128);
for (let i = 0; i < curve.length; i++) {
const x = (i / (curve.length - 1)) * 2 - 1;
curve[i] = Math.tanh(x * 1.5);
}
shaper.curve = curve;
const toneGain = audio.createGain();
toneGain.gain.setValueAtTime(1, now);
toneGain.gain.exponentialRampToValueAtTime(0.001, now + duration * 0.9);
osc.connect(shaper).connect(toneGain).connect(master);
// Noise burst
if (noise > 0) {
const noiseBuf = audio.createBuffer(
1,
Math.max(1, audio.sampleRate * duration),
audio.sampleRate,
);
const data = noiseBuf.getChannelData(0);
for (let i = 0; i < data.length; i++)
data[i] = (Math.random() * 2 - 1) * (1 - i / data.length);
const noiseSrc = audio.createBufferSource();
noiseSrc.buffer = noiseBuf;
const nGain = audio.createGain();
nGain.gain.setValueAtTime(noise, now);
nGain.gain.exponentialRampToValueAtTime(0.0001, now + duration);
noiseSrc.connect(nGain).connect(master);
noiseSrc.start(now);
noiseSrc.stop(now + duration);
}
// Filtering for softness
const lp = audio.createBiquadFilter();
lp.type = "lowpass";
lp.frequency.setValueAtTime(lowpass, now);
lp.frequency.exponentialRampToValueAtTime(
lowpass * 0.6,
now + duration * 0.6,
);
master.connect(lp).connect(audio.destination);
osc.start(now);
osc.stop(now + duration);
}
export function playSfx(kind: SfxType) {
if (!sfxEnabled) return;
// Lazy resume (required on some browsers until user gesture)
ensureCtx()
?.resume()
.catch(() => {});
switch (kind) {
case "move":
playClick({
toneHz: 860,
noise: 0.1,
duration: 0.02,
gain: 0.085,
lowpass: 2800,
pitchDecay: 0.035,
});
break;
case "confirm":
playClick({
toneHz: 680,
startFreq: 760,
noise: 0.12,
duration: 0.12,
gain: 0.1,
lowpass: 3000,
});
setTimeout(
() =>
playClick({
toneHz: 880,
noise: 0.08,
duration: 0.07,
gain: 0.11,
lowpass: 3100,
}),
55,
);
break;
case "back":
playClick({
toneHz: 300,
noise: 0.2,
duration: 0.085,
gain: 0.12,
lowpass: 1700,
});
break;
case "error":
playClick({
toneHz: 180,
noise: 0.4,
duration: 0.18,
gain: 0.22,
lowpass: 1500,
});
setTimeout(
() =>
playClick({
toneHz: 140,
noise: 0.25,
duration: 0.14,
gain: 0.16,
lowpass: 1300,
}),
70,
);
break;
case "delete":
playClick({
toneHz: 260,
noise: 0.35,
duration: 0.11,
gain: 0.2,
lowpass: 1600,
});
setTimeout(
() =>
playClick({
toneHz: 180,
noise: 0.3,
duration: 0.09,
gain: 0.16,
lowpass: 1400,
}),
55,
);
break;
case "favorite":
playClick({
toneHz: 600,
startFreq: 540,
noise: 0.18,
duration: 0.09,
gain: 0.17,
lowpass: 3000,
});
setTimeout(
() =>
playClick({
toneHz: 950,
startFreq: 900,
noise: 0.1,
duration: 0.07,
gain: 0.13,
lowpass: 3400,
}),
50,
);
break;
}
}
// map input actions to sfx categories
import type { InputAction } from "../input/actions";
export function sfxForAction(action: InputAction): SfxType | undefined {
switch (action) {
case "moveLeft":
case "moveRight":
case "moveUp":
case "moveDown":
return "move";
case "confirm":
return "confirm";
case "back":
return "back";
case "delete":
return "delete";
case "toggleFavorite":
return "favorite";
default:
return undefined;
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,406 @@
<script setup lang="ts">
import { computed, onMounted, onUnmounted, ref, nextTick } from "vue";
import { useRoute, useRouter } from "vue-router";
import romApi from "@/services/api/rom";
import collectionApi from "@/services/api/collection";
import GameCard from "@/console/components/GameCard.vue";
import NavigationHint from "@/console/components/NavigationHint.vue";
import BackButton from "@/console/components/BackButton.vue";
import type { SimpleRomSchema } from "@/__generated__/models/SimpleRomSchema";
import type { CollectionSchema } from "@/__generated__/models/CollectionSchema";
import { useInputScope } from "@/console/composables/useInputScope";
import type { InputAction } from "@/console/input/actions";
import { useSpatialNav } from "@/console/composables/useSpatialNav";
import { useRovingDom } from "@/console/composables/useRovingDom";
import { gamesListElementRegistry } from "@/console/composables/useElementRegistry";
import consoleStore from "@/stores/console";
import useFavoriteToggle from "@/composables/useFavoriteToggle";
import { ROUTES } from "@/plugins/router";
const route = useRoute();
const router = useRouter();
const storeConsole = consoleStore();
const { toggleFavorite: toggleFavoriteComposable } = useFavoriteToggle();
const isCollectionRoute = route.name === ROUTES.CONSOLE_COLLECTION;
const platformId = isCollectionRoute ? null : Number(route.params.id);
const collectionId = isCollectionRoute ? Number(route.params.id) : null;
const roms = ref<SimpleRomSchema[]>([]);
const collection = ref<CollectionSchema | null>(null);
const loading = ref(true);
const error = ref("");
const selectedIndex = ref(0);
const loadedMap = ref<Record<number, boolean>>({});
const inAlphabet = ref(false);
const alphaIndex = ref(0);
const gridRef = ref<HTMLDivElement>();
// Initialize selection from store
if (platformId != null) {
selectedIndex.value = storeConsole.getPlatformGameIndex(platformId);
} else if (collectionId != null) {
selectedIndex.value = storeConsole.getCollectionGameIndex(collectionId);
}
// Generate alphabet letters dynamically based on available games
const letters = computed(() => {
const letterSet = new Set<string>();
roms.value.forEach(({ name }) => {
if (!name) return;
const normalized = normalizeTitle(name);
const firstChar = normalized.charAt(0).toUpperCase();
if (/[A-Z]/.test(firstChar)) {
letterSet.add(firstChar);
} else if (/[0-9]/.test(firstChar)) {
letterSet.add("#");
}
});
const result = Array.from(letterSet).sort();
// Move # to the beginning if it exists
const hashIndex = result.indexOf("#");
if (hashIndex > -1) {
result.splice(hashIndex, 1);
result.unshift("#");
}
return result;
});
function persistIndex() {
if (platformId != null) {
storeConsole.setPlatformGameIndex(platformId, selectedIndex.value);
} else if (collectionId != null) {
storeConsole.setCollectionGameIndex(collectionId, selectedIndex.value);
}
}
function navigateBack() {
persistIndex();
router.push({ name: ROUTES.CONSOLE_HOME });
}
const headerTitle = computed(() => {
if (isCollectionRoute) {
return collection.value?.name || "Collection";
}
return (
current.value?.platform_name ||
current.value?.platform_slug?.toUpperCase() ||
"Platform"
);
});
const current = computed(
() => roms.value[selectedIndex.value] || roms.value[0],
);
function getCols(): number {
if (!gridRef.value) return 4;
try {
const style = window.getComputedStyle(gridRef.value);
return Math.max(1, style.gridTemplateColumns.split(" ").length);
} catch {
return 4;
}
}
// Selected element access
const cardElementAt = (i: number) => gamesListElementRegistry.getElement(i);
useRovingDom(selectedIndex, (i) => cardElementAt(i), {
block: "center",
inline: "nearest",
});
const { subscribe } = useInputScope();
const {
moveLeft,
moveRight,
moveUp,
moveDown: moveDownBasic,
} = useSpatialNav(selectedIndex, getCols, () => roms.value.length);
function handleAction(action: InputAction): boolean {
if (!roms.value.length) return false;
if (inAlphabet.value) {
if (action === "moveLeft") {
inAlphabet.value = false;
return true;
}
if (action === "moveUp") {
alphaIndex.value = Math.max(0, alphaIndex.value - 1);
return true;
}
if (action === "moveDown") {
alphaIndex.value = Math.min(
Array.from(letters.value).length - 1,
alphaIndex.value + 1,
);
return true;
}
if (action === "confirm") {
const L = Array.from(letters.value)[alphaIndex.value];
const idx = roms.value.findIndex((r) => {
const normalized = normalizeTitle(r.name || "");
if (L === "#") {
return /^[0-9]/.test(normalized);
}
return normalized.startsWith(L);
});
if (idx >= 0) {
selectedIndex.value = idx;
// Stay in alphabet mode, just highlight the game
nextTick(() => {
cardElementAt(selectedIndex.value)?.scrollIntoView({
block: "center",
inline: "nearest",
behavior: "smooth" as ScrollBehavior,
});
});
}
return true;
}
if (action === "back") {
inAlphabet.value = false;
return true;
}
return true;
}
switch (action) {
case "moveRight": {
const before = selectedIndex.value;
moveRight();
if (selectedIndex.value === before) {
inAlphabet.value = true;
alphaIndex.value = 0;
}
return true;
}
case "moveLeft":
moveLeft();
return true;
case "moveUp":
moveUp();
return true;
case "moveDown": {
const before = selectedIndex.value;
moveDownBasic();
if (selectedIndex.value === before) {
const cols = getCols();
const count = roms.value.length;
const totalRows = Math.ceil(count / cols);
const currentRow = Math.floor(before / cols);
if (totalRows > currentRow + 1) {
selectedIndex.value = count - 1;
}
}
return true;
}
case "back":
navigateBack();
return true;
case "confirm": {
selectAndOpen(selectedIndex.value, roms.value[selectedIndex.value]);
return true;
}
case "toggleFavorite": {
const rom = roms.value[selectedIndex.value];
if (rom) toggleFavoriteComposable(rom);
return true;
}
default:
return false;
}
}
function mouseSelect(i: number) {
selectedIndex.value = i;
}
function selectAndOpen(i: number, rom: SimpleRomSchema) {
selectedIndex.value = i;
// Don't navigate if we're in alphabet mode
if (inAlphabet.value) return;
persistIndex();
const query: Record<string, number> = {};
if (platformId != null) query.id = platformId;
if (isCollectionRoute) query.collection = collectionId!;
router.push({
name: ROUTES.CONSOLE_ROM,
params: { rom: rom.id },
query: Object.keys(query).length ? query : undefined,
});
}
function jumpToLetter(L: string) {
const idx = roms.value.findIndex((r) => {
const normalized = normalizeTitle(r.name || "");
if (L === "#") {
return /^[0-9]/.test(normalized);
}
return normalized.startsWith(L);
});
if (idx >= 0) {
selectedIndex.value = idx;
inAlphabet.value = false;
}
}
function normalizeTitle(name: string) {
return name.toUpperCase().replace(/^(THE|A|AN)\s+/, "");
}
let off: (() => void) | null = null;
onMounted(async () => {
try {
if (platformId != null) {
const { data } = await romApi.getRoms({
platformId: platformId,
limit: 500,
orderBy: "name",
orderDir: "asc",
});
roms.value = data.items ?? [];
} else if (collectionId != null) {
const { data } = await romApi.getRoms({
collectionId: collectionId,
limit: 500,
orderBy: "name",
orderDir: "asc",
});
roms.value = data.items ?? [];
const { data: col } = await collectionApi.getCollection(collectionId);
collection.value = col ?? null;
}
for (const r of roms.value) {
if (!r.url_cover && !r.path_cover_large && !r.path_cover_small) {
loadedMap.value[r.id] = true;
}
}
} catch (err: unknown) {
error.value = err instanceof Error ? err.message : "Failed to load roms";
} finally {
loading.value = false;
}
if (selectedIndex.value >= roms.value.length) selectedIndex.value = 0;
await nextTick();
cardElementAt(selectedIndex.value)?.scrollIntoView({
block: "center",
inline: "nearest",
behavior: "instant" as ScrollBehavior,
});
off = subscribe(handleAction);
});
onUnmounted(() => {
off?.();
off = null;
persistIndex();
});
function markLoaded(id: number) {
loadedMap.value[id] = true;
}
</script>
<template>
<div
class="relative min-h-screen overflow-y-auto overflow-x-hidden max-w-[100vw] flex"
@wheel.prevent
>
<BackButton :text="headerTitle" :on-back="navigateBack" />
<div
class="relative flex-1 min-w-0 pr-[40px]"
:style="{ width: 'calc(100vw - 40px)' }"
>
<div
v-if="loading"
class="text-center mt-8"
:style="{ color: 'var(--console-loading-text)' }"
>
Loading games…
</div>
<div
v-else-if="error"
class="text-center mt-8"
:style="{ color: 'var(--console-error-text)' }"
>
{{ error }}
</div>
<div v-else>
<div v-if="roms.length === 0" class="text-center text-fgDim p-4">
No games found.
</div>
<div
ref="gridRef"
class="grid grid-cols-[repeat(auto-fill,minmax(250px,250px))] justify-center my-12 gap-5 px-13 md:px-16 lg:px-20 xl:px-28 py-8 relative z-10 w-full box-border overflow-x-hidden"
@wheel.prevent
>
<game-card
v-for="(rom, i) in roms"
:key="rom.id"
:rom="rom"
:index="i"
:selected="!inAlphabet && i === selectedIndex"
:loaded="!!loadedMap[rom.id]"
registry="gamesList"
@click="selectAndOpen(i, rom)"
@focus="mouseSelect(i)"
@loaded="markLoaded(rom.id)"
/>
</div>
</div>
</div>
<div
class="w-[40px] backdrop-blur fixed top-0 right-0 h-screen overflow-hidden z-30 flex-shrink-0"
:style="{
backgroundColor: 'var(--console-gameslist-scrollbar-bg)',
}"
>
<div class="flex flex-col h-screen pa-2 items-center justify-evenly">
<button
v-for="(L, i) in letters"
:key="L"
class="rounded w-7 h-7 text-[0.7rem] font-semibold flex items-center justify-center shrink-0 transition-all border"
:style="{
backgroundColor:
inAlphabet && i === alphaIndex
? 'var(--console-gameslist-alphabet-active-bg)'
: 'var(--console-gameslist-alphabet-bg)',
borderColor: 'var(--console-gameslist-alphabet-border)',
color:
inAlphabet && i === alphaIndex
? 'var(--console-gameslist-alphabet-active-text)'
: 'var(--console-gameslist-alphabet-text)',
boxShadow:
inAlphabet && i === alphaIndex
? '0 0 0 2px var(--console-gameslist-alphabet-active-bg)'
: 'none',
}"
@click="jumpToLetter(L)"
>
{{ L }}
</button>
</div>
</div>
<NavigationHint :show-toggle-favorite="true" />
</div>
</template>
<style scoped>
button:focus {
outline: none;
}
</style>

View File

@@ -0,0 +1,720 @@
<script setup lang="ts">
import { storeToRefs } from "pinia";
import { onMounted, onUnmounted, ref, nextTick, watch } from "vue";
import { useRouter } from "vue-router";
import platformApi from "@/services/api/platform";
import romApi from "@/services/api/rom";
import collectionApi from "@/services/api/collection";
import storeCollections from "@/stores/collections";
import useFavoriteToggle from "@/composables/useFavoriteToggle";
import SystemCard from "@/console/components/SystemCard.vue";
import GameCard from "@/console/components/GameCard.vue";
import CollectionCard from "@/console/components/CollectionCard.vue";
import NavigationHint from "@/console/components/NavigationHint.vue";
import SettingsModal from "@/console/components/SettingsModal.vue";
import RIsotipo from "@/components/common/RIsotipo.vue";
import type { PlatformSchema } from "@/__generated__/models/PlatformSchema";
import { isSupportedPlatform } from "@/console/constants/platforms";
import type { SimpleRomSchema } from "@/__generated__/models/SimpleRomSchema";
import type { CollectionSchema } from "@/__generated__/models/CollectionSchema";
import { useInputScope } from "@/console/composables/useInputScope";
import type { InputAction } from "@/console/input/actions";
import { useSpatialNav } from "@/console/composables/useSpatialNav";
import { useRovingDom } from "@/console/composables/useRovingDom";
import {
systemElementRegistry,
recentElementRegistry,
collectionElementRegistry,
} from "@/console/composables/useElementRegistry";
import consoleStore from "@/stores/console";
import { ROUTES } from "@/plugins/router";
const router = useRouter();
const collectionsStore = storeCollections();
const storeConsole = consoleStore();
const { navigationMode } = storeToRefs(storeConsole);
const { toggleFavorite: toggleFavoriteComposable } = useFavoriteToggle();
const { subscribe } = useInputScope();
const platforms = ref<PlatformSchema[]>([]);
const recent = ref<SimpleRomSchema[]>([]);
const collections = ref<CollectionSchema[]>([]);
const loading = ref(true);
const error = ref("");
const showSettings = ref(false);
// Navigation indices
const selectedIndex = ref(storeConsole.platformIndex);
const recentIndex = ref(storeConsole.recentIndex);
const collectionsIndex = ref(storeConsole.collectionsIndex);
const controlIndex = ref(storeConsole.controlIndex);
const scrollContainerRef = ref<HTMLDivElement>();
const systemsRef = ref<HTMLDivElement>();
const recentRef = ref<HTMLDivElement>();
const collectionsRef = ref<HTMLDivElement>();
const platformsSectionRef = ref<HTMLElement>();
const recentSectionRef = ref<HTMLElement>();
const collectionsSectionRef = ref<HTMLElement>();
const systemElementAt = (i: number) => systemElementRegistry.getElement(i);
const recentElementAt = (i: number) => recentElementRegistry.getElement(i);
const collectionElementAt = (i: number) =>
collectionElementRegistry.getElement(i);
// Spatial navigation
const { moveLeft: moveSystemLeft, moveRight: moveSystemRight } = useSpatialNav(
selectedIndex,
() => platforms.value.length || 1,
() => platforms.value.length,
);
const { moveLeft: moveRecentLeft, moveRight: moveRecentRight } = useSpatialNav(
recentIndex,
() => recent.value.length || 1,
() => recent.value.length,
);
const { moveLeft: moveCollectionLeft, moveRight: moveCollectionRight } =
useSpatialNav(
collectionsIndex,
() => collections.value.length || 1,
() => collections.value.length,
);
useRovingDom(selectedIndex, systemElementAt, {
inline: "center",
block: "nearest",
behavior: "smooth",
scroll: false, // handle scrolling manually
});
useRovingDom(recentIndex, recentElementAt, {
inline: "center",
block: "nearest",
behavior: "smooth",
scroll: false, // same as above
});
useRovingDom(collectionsIndex, collectionElementAt, {
inline: "center",
block: "nearest",
behavior: "smooth",
scroll: false, // same as above
});
// carousel scrolling that respects vertical scroll state
watch(selectedIndex, (newIdx) => {
if (!isVerticalScrolling) {
const el = systemElementAt(newIdx);
if (el && systemsRef.value) {
centerInCarousel(systemsRef.value, el, "smooth");
}
}
});
watch(recentIndex, (newIdx) => {
if (!isVerticalScrolling) {
const el = recentElementAt(newIdx);
if (el && recentRef.value) {
centerInCarousel(recentRef.value, el, "smooth");
}
}
});
watch(collectionsIndex, (newIdx) => {
if (!isVerticalScrolling) {
const el = collectionElementAt(newIdx);
if (el && collectionsRef.value) {
centerInCarousel(collectionsRef.value, el, "smooth");
}
}
});
// Navigation functions
const navigationFunctions = {
systems: {
prev: () => {
const before = selectedIndex.value;
moveSystemLeft();
if (selectedIndex.value === before) {
selectedIndex.value = Math.max(0, platforms.value.length - 1);
}
},
next: () => {
const before = selectedIndex.value;
moveSystemRight();
if (selectedIndex.value === before) {
selectedIndex.value = 0;
}
},
confirm: () => {
if (!platforms.value[selectedIndex.value]) return false;
router.push({
name: ROUTES.CONSOLE_PLATFORM,
params: { id: platforms.value[selectedIndex.value].id },
});
return true;
},
},
recent: {
prev: () => {
const before = recentIndex.value;
moveRecentLeft();
if (recentIndex.value === before) {
recentIndex.value = Math.max(0, recent.value.length - 1);
}
},
next: () => {
const before = recentIndex.value;
moveRecentRight();
if (recentIndex.value === before) {
recentIndex.value = 0;
}
},
confirm: () => {
if (!recent.value[recentIndex.value]) return false;
router.push({
name: ROUTES.CONSOLE_ROM,
params: { rom: recent.value[recentIndex.value].id },
query: { id: recent.value[recentIndex.value].platform_id },
});
return true;
},
},
collections: {
prev: () => {
const before = collectionsIndex.value;
moveCollectionLeft();
if (collectionsIndex.value === before) {
collectionsIndex.value = Math.max(0, collections.value.length - 1);
}
},
next: () => {
const before = collectionsIndex.value;
moveCollectionRight();
if (collectionsIndex.value === before) {
collectionsIndex.value = 0;
}
},
confirm: () => {
if (!collections.value[collectionsIndex.value]) return false;
router.push({
name: ROUTES.CONSOLE_COLLECTION,
params: { id: collections.value[collectionsIndex.value].id },
});
return true;
},
},
controls: {
prev: () => {
controlIndex.value = (controlIndex.value - 1 + 3) % 3;
},
next: () => {
controlIndex.value = (controlIndex.value + 1) % 3;
},
confirm: () => {
if (controlIndex.value === 0) {
exitConsoleMode();
} else if (controlIndex.value === 1) {
toggleFullscreen();
} else if (controlIndex.value === 2) {
showSettings.value = true;
}
return true;
},
},
};
let verticalScrollPromise: Promise<void> | null = null;
let isVerticalScrolling = false;
function scrollToCurrentRow() {
isVerticalScrolling = true;
// promise resolves when the scroll animation finishes
verticalScrollPromise = new Promise((resolve) => {
const behavior: ScrollBehavior = "smooth";
switch (navigationMode.value) {
case "systems":
scrollContainerRef.value?.scrollTo({ top: 0, behavior });
break;
case "recent":
recentSectionRef.value?.scrollIntoView({ behavior, block: "start" });
break;
case "collections":
collectionsSectionRef.value?.scrollIntoView({
behavior,
block: "start",
});
break;
}
// resolve after animation
setTimeout(() => {
isVerticalScrolling = false;
verticalScrollPromise = null;
resolve();
}, 400); // match smooth scroll duration
});
}
function centerInCarousel(
container: HTMLElement | undefined | null,
el: HTMLElement | undefined | null,
behavior: ScrollBehavior = "auto",
) {
if (!container || !el) return;
if (container.scrollWidth <= container.clientWidth) return;
const target = el.offsetLeft - (container.clientWidth - el.clientWidth) / 2;
const targetLeft = Math.max(
0,
Math.min(target, container.scrollWidth - container.clientWidth),
);
if (behavior === "smooth") {
container.scrollTo({ left: targetLeft, behavior: "smooth" });
} else {
container.scrollLeft = targetLeft;
}
}
function exitConsoleMode() {
if (document.fullscreenElement) {
document.exitFullscreen?.();
}
router.push({ name: "home" });
}
function toggleFullscreen() {
document.fullscreenElement
? document.exitFullscreen?.()
: document.documentElement.requestFullscreen?.();
}
// Navigation handlers
function goPlatform(platformId: number) {
router.push({ name: ROUTES.CONSOLE_PLATFORM, params: { id: platformId } });
}
function goGame(game: SimpleRomSchema) {
router.push({
name: ROUTES.CONSOLE_ROM,
params: { rom: game.id },
query: { id: game.platform_id },
});
}
function goCollection(collectionId: number) {
router.push({
name: ROUTES.CONSOLE_COLLECTION,
params: { id: collectionId },
});
}
// Input handling
function handleAction(action: InputAction): boolean {
// settings modal handling
if (showSettings.value) {
if (action === "back") {
showSettings.value = false;
return true;
}
// the modal handles the other actions
return false;
}
const currentMode = navigationMode.value;
switch (action) {
case "moveLeft":
if (currentMode in navigationFunctions) {
navigationFunctions[currentMode].prev();
return true;
}
return false;
case "moveRight":
if (currentMode in navigationFunctions) {
navigationFunctions[currentMode].next();
return true;
}
return false;
case "moveUp":
if (currentMode === "systems") {
navigationMode.value = "controls";
return true;
}
if (currentMode === "recent") {
navigationMode.value = "systems";
scrollToCurrentRow();
return true;
}
if (currentMode === "collections") {
navigationMode.value = recent.value.length > 0 ? "recent" : "systems";
scrollToCurrentRow();
return true;
}
return false;
case "moveDown":
if (currentMode === "systems") {
navigationMode.value =
recent.value.length > 0
? "recent"
: collections.value.length > 0
? "collections"
: "controls";
scrollToCurrentRow();
return true;
}
if (currentMode === "recent") {
navigationMode.value =
collections.value.length > 0 ? "collections" : "controls";
scrollToCurrentRow();
return true;
}
if (currentMode === "controls") {
navigationMode.value = "systems";
return true;
}
return false;
case "confirm":
if (currentMode in navigationFunctions) {
return navigationFunctions[currentMode].confirm() ?? false;
}
return false;
case "back":
return true;
case "toggleFavorite":
if (currentMode === "recent" && recent.value[recentIndex.value]) {
toggleFavoriteComposable(recent.value[recentIndex.value]);
return true;
}
return false;
default:
return false;
}
}
onMounted(async () => {
try {
const [{ data: plats }, { data: recents }, { data: cols }] =
await Promise.all([
platformApi.getPlatforms(),
romApi.getRecentPlayedRoms(),
collectionApi.getCollections(),
]);
platforms.value = plats.filter(
(p) => p.rom_count > 0 && isSupportedPlatform(p.slug),
);
recent.value = recents.items ?? [];
collections.value = cols ?? [];
collectionsStore.setCollections(cols ?? []);
collectionsStore.setFavoriteCollection(
cols?.find(
(collection) => collection.name.toLowerCase() === "favourites",
),
);
} catch (err: unknown) {
error.value = err instanceof Error ? err.message : "Failed to load";
} finally {
loading.value = false;
}
// Restore indices within bounds
if (selectedIndex.value >= platforms.value.length) selectedIndex.value = 0;
if (recentIndex.value >= recent.value.length) recentIndex.value = 0;
if (collectionsIndex.value >= collections.value.length)
collectionsIndex.value = 0;
await nextTick();
scrollToCurrentRow();
// Center carousels
centerInCarousel(systemsRef.value, systemElementAt(selectedIndex.value));
centerInCarousel(recentRef.value, recentElementAt(recentIndex.value));
centerInCarousel(
collectionsRef.value,
collectionElementAt(collectionsIndex.value),
);
off = subscribe(handleAction);
});
let off: (() => void) | null = null;
onUnmounted(() => {
storeConsole.setHomeState({
platformIndex: selectedIndex.value,
recentIndex: recentIndex.value,
collectionsIndex: collectionsIndex.value,
controlIndex: controlIndex.value,
navigationMode: navigationMode.value,
});
off?.();
off = null;
});
</script>
<template>
<div
ref="scrollContainerRef"
class="relative h-screen overflow-y-auto overflow-x-hidden"
@wheel.prevent
>
<div class="relative h-full flex flex-col">
<div class="mt-8 ml-8 flex items-center gap-3 select-none pb-3">
<RIsotipo :size="40" :avatar="false" />
<div
class="font-bold text-[28px] drop-shadow-xl"
:style="{ color: 'var(--console-home-title-text)' }"
>
Console
</div>
</div>
<div
v-if="loading"
class="text-center mt-16"
:style="{ color: 'var(--console-loading-text)' }"
>
Loading platforms…
</div>
<div
v-else-if="error"
class="text-center mt-16"
:style="{ color: 'var(--console-error-text)' }"
>
{{ error }}
</div>
<div v-else>
<section ref="platformsSectionRef" class="pb-2">
<h2
class="text-xl font-bold text-fg0 mb-3 drop-shadow pl-8 pr-8"
:style="{ color: 'var(--console-home-category-text)' }"
>
Platforms
</h2>
<div class="relative h-[220px]">
<button
class="absolute top-1/2 -translate-y-1/2 left-2 w-10 h-10 rounded-full flex items-center justify-center cursor-pointer transition-all backdrop-blur z-20"
:style="{
backgroundColor: 'var(--console-home-carousel-button-bg)',
border: `1px solid var(--console-home-carousel-button-border)`,
color: 'var(--console-home-carousel-button-text)',
}"
@click="navigationFunctions.systems.prev"
>
◀
</button>
<button
class="absolute top-1/2 -translate-y-1/2 right-2 w-10 h-10 rounded-full flex items-center justify-center cursor-pointer transition-all backdrop-blur z-20"
:style="{
backgroundColor: 'var(--console-home-carousel-button-bg)',
border: `1px solid var(--console-home-carousel-button-border)`,
color: 'var(--console-home-carousel-button-text)',
}"
@click="navigationFunctions.systems.next"
>
▶
</button>
<div
ref="systemsRef"
class="w-full h-full overflow-x-auto overflow-y-hidden no-scrollbar [scrollbar-width:none] [-ms-overflow-style:none]"
@wheel.prevent
>
<div class="flex items-center gap-6 h-full px-12 min-w-max">
<SystemCard
v-for="(p, i) in platforms"
:key="p.id"
:platform="p"
:index="i"
:selected="
navigationMode === 'systems' && i === selectedIndex
"
@click="goPlatform(p.id)"
@focus="selectedIndex = i"
/>
</div>
</div>
</div>
</section>
<section v-if="recent.length > 0" ref="recentSectionRef" class="pb-8">
<h2
class="text-xl font-bold text-fg0 mb-3 drop-shadow pl-8 pr-8"
:style="{ color: 'var(--console-home-category-text)' }"
>
Recently Played
</h2>
<div class="relative h-[400px]">
<button
class="absolute top-1/2 -translate-y-1/2 left-2 w-10 h-10 rounded-full flex items-center justify-center cursor-pointer transition-all backdrop-blur z-20"
:style="{
backgroundColor: 'var(--console-home-carousel-button-bg)',
border: `1px solid var(--console-home-carousel-button-border)`,
color: 'var(--console-home-carousel-button-text)',
}"
@click="navigationFunctions.recent.prev"
>
◀
</button>
<button
class="absolute top-1/2 -translate-y-1/2 right-2 w-10 h-10 rounded-full flex items-center justify-center cursor-pointer transition-all backdrop-blur z-20"
:style="{
backgroundColor: 'var(--console-home-carousel-button-bg)',
border: `1px solid var(--console-home-carousel-button-border)`,
color: 'var(--console-home-carousel-button-text)',
}"
@click="navigationFunctions.recent.next"
>
▶
</button>
<div
ref="recentRef"
class="w-full h-full overflow-x-auto overflow-y-hidden no-scrollbar [scrollbar-width:none] [-ms-overflow-style:none]"
@wheel.prevent
>
<div class="flex items-center gap-4 h-full px-12 min-w-max">
<GameCard
v-for="(g, i) in recent"
:key="`${g.platform_id}-${g.id}`"
:rom="g"
:index="i"
:is-recent="true"
:selected="navigationMode === 'recent' && i === recentIndex"
:loaded="true"
@click="goGame(g)"
@focus="recentIndex = i"
/>
</div>
</div>
</div>
</section>
<section
v-if="collections.length > 0"
ref="collectionsSectionRef"
class="pb-8"
>
<h2
class="text-xl font-bold text-fg0 mb-3 drop-shadow pl-8 pr-8"
:style="{ color: 'var(--console-home-category-text)' }"
>
Collections
</h2>
<div class="relative h-[400px]">
<button
:style="{
backgroundColor: 'var(--console-home-carousel-button-bg)',
borderColor: 'var(--console-home-carousel-button-border)',
color: 'var(--console-home-carousel-button-text)',
}"
class="absolute top-1/2 -translate-y-1/2 left-2 w-10 h-10 rounded-full flex items-center justify-center cursor-pointer transition-all backdrop-blur z-20 border"
@click="navigationFunctions.collections.prev"
>
◀
</button>
<button
:style="{
backgroundColor: 'var(--console-home-carousel-button-bg)',
borderColor: 'var(--console-home-carousel-button-border)',
color: 'var(--console-home-carousel-button-text)',
}"
class="absolute top-1/2 -translate-y-1/2 right-2 w-10 h-10 rounded-full flex items-center justify-center cursor-pointer transition-all backdrop-blur z-20 border"
@click="navigationFunctions.collections.next"
>
▶
</button>
<div
ref="collectionsRef"
class="w-full h-full overflow-x-auto overflow-y-hidden no-scrollbar [scrollbar-width:none] [-ms-overflow-style:none]"
@wheel.prevent
>
<div class="flex items-center gap-4 h-full px-12 min-w-max">
<CollectionCard
v-for="(c, i) in collections"
:key="`collection-${c.id}`"
:collection="c"
:index="i"
:selected="
navigationMode === 'collections' && i === collectionsIndex
"
:loaded="true"
@click="goCollection(c.id)"
@focus="collectionsIndex = i"
/>
</div>
</div>
</div>
</section>
</div>
<div class="fixed top-4 right-4 z-20 flex gap-2">
<button
class="w-12 h-12 rounded-md cursor-pointer flex items-center justify-center text-xl transition-all backdrop-blur hover:-translate-y-0.5 hover:shadow-lg"
:style="{
backgroundColor: 'var(--console-home-control-button-bg)',
border: `1px solid var(--console-home-control-button-border)`,
color: 'var(--console-home-control-button-text)',
}"
:class="{
'border-[var(--console-home-control-button-focus-border)] bg-[var(--console-home-control-button-focus-border)]/15 shadow-[0_0_0_2px_var(--console-home-control-button-focus-border),_0_0_18px_-4px_var(--console-home-control-button-focus-border)] -translate-y-0.5':
navigationMode === 'controls' && controlIndex === 0,
}"
title="Exit Console Mode (F1)"
@click="exitConsoleMode"
>
⏻
</button>
<button
class="w-12 h-12 rounded-md cursor-pointer flex items-center justify-center text-xl transition-all backdrop-blur hover:-translate-y-0.5 hover:shadow-lg"
:style="{
backgroundColor: 'var(--console-home-control-button-bg)',
border: `1px solid var(--console-home-control-button-border)`,
color: 'var(--console-home-control-button-text)',
}"
:class="{
'border-[var(--console-home-control-button-focus-border)] bg-[var(--console-home-control-button-focus-border)]/15 shadow-[0_0_0_2px_var(--console-home-control-button-focus-border),_0_0_18px_-4px_var(--console-home-control-button-focus-border)] -translate-y-0.5':
navigationMode === 'controls' && controlIndex === 1,
}"
title="Fullscreen (F11)"
@click="toggleFullscreen"
>
⛶
</button>
<button
class="w-12 h-12 rounded-md cursor-pointer flex items-center justify-center text-xl transition-all backdrop-blur hover:-translate-y-0.5 hover:shadow-lg"
:style="{
backgroundColor: 'var(--console-home-control-button-bg)',
border: `1px solid var(--console-home-control-button-border)`,
color: 'var(--console-home-control-button-text)',
}"
:class="{
'border-[var(--console-home-control-button-focus-border)] bg-[var(--console-home-control-button-focus-border)]/15 shadow-[0_0_0_2px_var(--console-home-control-button-focus-border),_0_0_18px_-4px_var(--console-home-control-button-focus-border)] -translate-y-0.5':
navigationMode === 'controls' && controlIndex === 2,
}"
title="Settings"
@click="showSettings = true"
>
⚙
</button>
</div>
<NavigationHint
:show-back="false"
:show-toggle-favorite="navigationMode === 'recent'"
/>
</div>
<SettingsModal v-model="showSettings" />
</div>
</template>
<style scoped>
button:focus {
outline: none;
}
</style>

View File

@@ -0,0 +1,819 @@
<script setup lang="ts">
import { onMounted, onBeforeUnmount, ref, watch, nextTick } from "vue";
import { useRoute, useRouter } from "vue-router";
import romApi from "@/services/api/rom";
import type { DetailedRomSchema } from "@/__generated__/models/DetailedRomSchema";
import {
getSupportedEJSCores,
getControlSchemeForPlatform,
areThreadsRequiredForEJSCore,
getDownloadPath,
} from "@/utils";
import firmwareApi from "@/services/api/firmware";
import { useInputScope } from "@/console/composables/useInputScope";
import NavigationText from "@/console/components/NavigationText.vue";
import { useThemeAssets } from "@/console/composables/useThemeAssets";
import api from "@/services/api";
import { ROUTES } from "@/plugins/router";
const route = useRoute();
const router = useRouter();
const { getBezelImagePath } = useThemeAssets();
const romId = Number(route.params.rom);
const initialSaveId = route.query.save ? Number(route.query.save) : null;
const initialStateId = route.query.state ? Number(route.query.state) : null;
const romRef = ref<DetailedRomSchema | null>(null);
const showHint = ref(true);
const bezelSrc = ref<string>("");
const showExitPrompt = ref(false);
const savingState = ref(false);
const saveError = ref("");
const focusedExitIndex = ref(0);
const loaderError = ref("");
const loaderStatus = ref<
"idle" | "loading-local" | "loading-cdn" | "loaded" | "failed"
>("idle");
let pausedByPrompt = false;
const exitOptions = [
{ id: "save", label: "Save & Exit", desc: "Save current state, then quit" },
{
id: "nosave",
label: "Exit Without Saving",
desc: "Leave immediately, progress since last save state is lost",
},
{ id: "cancel", label: "Cancel", desc: "Return to the game" },
];
const { subscribe } = useInputScope();
let exitScopeOff: (() => void) | null = null;
let requestedAnimationFrame: number | null = null;
let lastPressedKeys: Record<number, number> = { 8: 0, 9: 0 };
const INVALID_CHARS_REGEX = /[#<$+%>!`&*'|{}/\\?"=@:^\r\n]/gi;
function immediateExit() {
router
.push({ name: ROUTES.CONSOLE_ROM, params: { rom: romId } })
.catch((error) => {
console.error("Error navigating to console rom", error);
});
}
function showPrompt() {
if (showExitPrompt.value) return; // Prompt already open
showExitPrompt.value = true;
saveError.value = "";
focusedExitIndex.value = 0;
window.EJS_emulator.pause();
pausedByPrompt = true;
nextTick(() => {
exitScopeOff?.();
exitScopeOff = subscribe(handleExitAction);
});
}
function handleExitAction(action: string) {
if (!showExitPrompt.value) return false;
if (action === "moveUp") {
moveExitFocus(-1);
return true;
}
if (action === "moveDown") {
moveExitFocus(1);
return true;
}
if (action === "confirm") {
activateExitOption(exitOptions[focusedExitIndex.value].id);
return true;
}
if (action === "back") {
cancelExit();
return true;
}
return false;
}
async function saveAndExit() {
if (savingState.value) return;
savingState.value = true;
try {
// CRITICAL: The game must be RUNNING for screenshot to work!
// We paused it in showPrompt(), so we need to resume it first
console.info(
"Resuming game before screenshot (emujs expects running game)",
);
if (window.EJS_emulator.paused) {
window.EJS_emulator.play();
// Wait a moment for the game to fully resume
await new Promise((resolve) => setTimeout(resolve, 100));
}
const screenshotFile = await window.EJS_emulator.gameManager.screenshot();
const stateFile = window.EJS_emulator.gameManager.getState();
// Upload using original saveState utility
await uploadState(stateFile, screenshotFile);
// Clean exit
immediateExit();
} catch (error) {
saveError.value = `Save failed: ${error}`;
} finally {
savingState.value = false;
}
}
async function uploadState(stateFile: Uint8Array, screenshotFile: Uint8Array) {
if (!romRef.value) return;
const filename = `${romRef.value.fs_name_no_ext.trim()} [${new Date()
.toISOString()
.replace(/[:.]/g, "-")
.replace("T", " ")
.replace("Z", "")}]`;
try {
const stateApi = await import("@/services/api/state");
const uploadedStates = await stateApi.default.uploadStates({
rom: romRef.value,
emulator: window.EJS_core,
statesToUpload: [
{
stateFile: new File([stateFile], `${filename}.state`, {
type: "application/octet-stream",
}),
screenshotFile: new File([screenshotFile], `${filename}.png`, {
type: "application/octet-stream",
}),
},
],
});
const uploadedState = uploadedStates[0];
if (uploadedState.status == "fulfilled") {
if (romRef.value) romRef.value.user_states.unshift(uploadedState.value);
return uploadedState.value;
} else {
throw new Error("State upload was rejected");
}
} catch (error) {
console.error("stateApi upload failed:", error);
throw error;
}
}
function cancelExit() {
showExitPrompt.value = false;
if (pausedByPrompt) {
window.EJS_emulator.play();
pausedByPrompt = false;
}
// Reset combo detection timestamps so start+select works again right away
lastPressedKeys[8] = 0;
lastPressedKeys[9] = 0;
exitScopeOff?.();
exitScopeOff = null;
}
function activateExitOption(id: string) {
// Block other actions while saving
if (savingState.value && id !== "save") return;
if (id === "save") {
saveAndExit();
} else if (id === "nosave") {
immediateExit();
} else {
cancelExit();
}
}
function moveExitFocus(delta: number) {
const total = exitOptions.length;
focusedExitIndex.value = (focusedExitIndex.value + delta + total) % total;
}
function attachKeyboardExit() {
const onKey = (e: KeyboardEvent) => {
if (e.key === "Backspace") {
e.preventDefault();
showPrompt();
}
};
window.addEventListener("keydown", onKey);
return () => window.removeEventListener("keydown", onKey);
}
function attachGamepadExit(options?: { windowMs?: number }) {
const EXIT_WINDOW_MS = options?.windowMs ?? 200;
const BTN = { A: 0, B: 1, SELECT: 8, START: 9, UP: 12, DOWN: 13 } as const;
// Per-pad state so we don't combine the input from other pads
interface PadState {
prev: boolean[];
lastEdge: Record<number, number>;
}
const padState: Record<number, PadState> = {};
let running = true;
const loop = () => {
const pads = navigator.getGamepads?.() || [];
const now = performance.now();
for (const pad of pads) {
if (!pad) continue;
const st = (padState[pad.index] ??= {
prev: new Array(pad.buttons.length).fill(false),
lastEdge: {},
});
const pressed = (i: number) => !!pad.buttons[i]?.pressed;
const edge = (i: number) => pressed(i) && !st.prev[i];
// Exit combo detection (start + select)
if (!showExitPrompt.value) {
let combo = false;
// If either Start or Select edges, stamp its edge time
if (edge(BTN.SELECT)) {
st.lastEdge[BTN.SELECT] = now;
const tOther = st.lastEdge[BTN.START] ?? -Infinity;
if (now - tOther <= EXIT_WINDOW_MS) combo = true;
}
if (edge(BTN.START)) {
st.lastEdge[BTN.START] = now;
const tOther = st.lastEdge[BTN.SELECT] ?? -Infinity;
if (now - tOther <= EXIT_WINDOW_MS) combo = true;
}
if (combo) {
showPrompt();
}
} else {
if (edge(BTN.A))
activateExitOption(exitOptions[focusedExitIndex.value].id);
if (edge(BTN.B)) cancelExit();
}
for (let i = 0; i < pad.buttons.length; i++) {
st.prev[i] = !!pad.buttons[i]?.pressed;
}
}
if (running) {
requestedAnimationFrame = requestAnimationFrame(loop);
}
};
requestedAnimationFrame = requestAnimationFrame(loop);
return () => {
running = false;
if (requestedAnimationFrame != null) {
cancelAnimationFrame(requestedAnimationFrame);
requestedAnimationFrame = null;
}
};
}
watch(showExitPrompt, (v) => {
if (!v) {
exitScopeOff?.();
exitScopeOff = null;
}
});
async function boot() {
// Fetch rom details
const { data: rom } = await romApi.getRom({ romId });
romRef.value = rom;
const selectedInitialSave = initialSaveId
? rom.user_saves?.find((s) => s.id === initialSaveId)
: null;
const selectedInitialState = initialStateId
? rom.user_states?.find((s) => s.id === initialStateId)
: null;
document.title = `${rom.name} | Play`;
bezelSrc.value = getBezelImagePath(rom.platform_slug).value;
// Configure EmulatorJS globals
const supported = getSupportedEJSCores(rom.platform_slug);
const storedCore = localStorage.getItem(`player:${rom.platform_slug}:core`);
const core =
storedCore && supported.includes(storedCore) ? storedCore : supported[0];
window.EJS_core = core;
window.EJS_controlScheme = getControlSchemeForPlatform(rom.platform_slug);
window.EJS_threads = areThreadsRequiredForEJSCore(core);
window.EJS_gameID = rom.id;
if (initialSaveId) {
// Persist chosen save ID for later logic
localStorage.setItem(
`player:${rom.id}:initial_save_id`,
String(initialSaveId),
);
}
if (initialStateId) {
localStorage.setItem(
`player:${rom.id}:initial_state_id`,
String(initialStateId),
);
}
// Disc selection persistence
const storedDisc = localStorage.getItem(`player:${rom.id}:disc`);
const discId = storedDisc ? parseInt(storedDisc) : null;
window.EJS_gameUrl = getDownloadPath({
rom: rom,
fileIDs: discId ? [discId] : [],
});
// BIOS selection persistence
try {
const { data: firmware } = await firmwareApi.getFirmware({
platformId: rom.platform_id,
});
const storedBiosID = localStorage.getItem(
`player:${rom.platform_slug}:bios_id`,
);
const bios = storedBiosID
? firmware.find((f) => f.id === parseInt(storedBiosID))
: null;
window.EJS_biosUrl = bios
? `/api/firmware/${bios.id}/content/${bios.file_name}`
: "";
} catch {
window.EJS_biosUrl = "";
}
window.EJS_player = "#game";
window.EJS_Buttons = {
playPause: false,
restart: false,
mute: false,
settings: false,
fullscreen: false,
saveState: false,
loadState: false,
screenRecord: false,
gamepad: false,
cheat: false,
volume: false,
saveSavFiles: false,
loadSavFiles: false,
quickSave: false,
quickLoad: false,
screenshot: false,
cacheManager: false,
exitEmulation: false,
};
window.EJS_color = "#A453FF";
window.EJS_alignStartButton = "center";
window.EJS_startOnLoaded = true;
// window.EJS_fullscreenOnLoaded = true;
window.EJS_backgroundImage = `${window.location.origin}/assets/emulatorjs/powered_by_emulatorjs.png`;
window.EJS_backgroundColor = "#000000"; // Match original which uses theme colors, but #000000 should work fine
window.EJS_defaultOptions = {
"save-state-location": "browser",
rewindEnabled: "enabled",
};
// Set a valid game name (affects per-game settings keys)
window.EJS_gameName = rom.fs_name_no_tags
.replace(INVALID_CHARS_REGEX, "")
.trim();
// Set up EmulatorJS callbacks
window.EJS_onSaveState = async function ({
state: stateFile,
screenshot: screenshotFile,
}: {
state: Uint8Array;
screenshot: Uint8Array;
}) {
try {
const formData = new FormData();
formData.append("stateFile", new Blob([stateFile]), "state.save");
formData.append(
"screenshotFile",
new Blob([screenshotFile], { type: "image/png" }),
"screenshot.png",
);
await api.post("/states", formData, {
headers: { "Content-Type": "multipart/form-data" },
params: {
rom_id: rom.id,
emulator: "emulatorjs",
},
});
} catch (err) {
console.error("EJS_onSaveState callback failed:", err);
}
};
window.EJS_onSaveSave = async function ({
save: saveFile,
screenshot: screenshotFile,
}: {
save: Uint8Array;
screenshot: Uint8Array;
}) {
console.info(
"EJS_onSaveSave callback triggered",
"saveFile:",
saveFile?.length,
"screenshotFile:",
screenshotFile?.length,
);
try {
// If I decide to handle save files later, I will implement it here
console.info("Save file callback executed");
} catch (err) {
console.error("EJS_onSaveSave callback failed:", err);
}
};
window.EJS_onLoadState = async function () {
console.info("[ConsolePlay] EJS_onLoadState callback triggered");
// State loading UI would go here if needed
};
window.EJS_onLoadSave = async function () {
console.info("[ConsolePlay] EJS_onLoadSave callback triggered");
// Save loading UI would go here if needed
};
// Ensure a controller is auto-assigned to Player 1 when available
window.EJS_onGameStart = () => {
if (!window.EJS_emulator) return;
const waitForGameManager = async () => {
const deadline = Date.now() + 5000; // 5s timeout
while (Date.now() < deadline) {
if (
window.EJS_emulator.gameManager?.FS &&
window.EJS_emulator.gameManager.getSaveFilePath
) {
return true;
}
await new Promise((r) => setTimeout(r, 100));
}
return false;
};
const assignFirstPad = () => {
if (!window.EJS_emulator.gamepad) return;
if (!Array.isArray(window.EJS_emulator.gamepadSelection))
window.EJS_emulator.gamepadSelection = ["", "", "", ""];
if (
!window.EJS_emulator.gamepad.gamepads ||
window.EJS_emulator.gamepad.gamepads.length === 0
)
return;
if (!window.EJS_emulator.gamepadSelection[0]) {
const gp = window.EJS_emulator.gamepad.gamepads[0];
if (gp) {
window.EJS_emulator.gamepadSelection[0] = `${gp.id}_${gp.index}`;
window.EJS_emulator.updateGamepadLabels?.();
}
}
};
// Assign immediately if a pad exists
assignFirstPad();
// Also assign on future connections
window.EJS_emulator.gamepad?.on?.("connected", assignFirstPad);
(async () => {
const ready = await waitForGameManager();
if (!ready) {
console.warn("Game manager not ready for save/state injection");
return;
}
const gameManager = window.EJS_emulator.gameManager;
// Load SAVE (battery / SRAM) if provided
if (selectedInitialSave?.download_path) {
try {
const resp = await fetch(selectedInitialSave.download_path);
if (!resp.ok) throw new Error("Failed to fetch save");
const buf = new Uint8Array(await resp.arrayBuffer());
try {
const FS = gameManager.FS;
const path = gameManager.getSaveFilePath();
// Ensure dirs
const segs = path.split("/");
let accum = "";
for (let i = 0; i < segs.length - 1; i++) {
if (!segs[i]) continue;
accum += "/" + segs[i];
if (!FS.analyzePath(accum).exists) FS.mkdir(accum);
}
if (FS.analyzePath(path).exists) FS.unlink(path);
FS.writeFile(path, buf);
gameManager.loadSaveFiles?.();
console.info("[ConsolePlay] Loaded server save into path", path);
} catch (err) {
console.warn("[ConsolePlay] Failed writing save file", err);
}
} catch (err) {
console.warn("[ConsolePlay] Save download failed", err);
}
}
// Load STATE if provided (fast-forward once core running)
if (selectedInitialState?.download_path) {
try {
const resp = await fetch(selectedInitialState.download_path);
if (!resp.ok) throw new Error("Failed to fetch state");
const buf = new Uint8Array(await resp.arrayBuffer());
// Some cores need a couple frames; delay slightly
setTimeout(() => {
try {
gameManager.loadState?.(buf);
console.info("[ConsolePlay] Applied server state");
} catch (err) {
console.warn("[ConsolePlay] Applying state failed", err);
}
}, 500);
} catch (err) {
console.warn("[ConsolePlay] State download failed", err);
}
}
})();
};
// Allow route transition animation to settle
await new Promise((r) => setTimeout(r, 50));
const EMULATORJS_VERSION = "4.2.3";
const LOCAL_PATH = "/assets/emulatorjs/data/";
const CDN_PATH = `https://cdn.emulatorjs.org/${EMULATORJS_VERSION}/data/`;
function loadScript(src: string): Promise<void> {
return new Promise((resolve, reject) => {
const s = document.createElement("script");
s.src = src;
s.async = true;
s.onload = () => resolve();
s.onerror = () => reject(new Error("Failed loading " + src));
document.body.appendChild(s);
});
}
async function attemptLoad(path: string, label: "local" | "cdn") {
loaderStatus.value = label === "local" ? "loading-local" : "loading-cdn";
window.EJS_pathtodata = path;
await loadScript(`${path}loader.js`);
}
try {
try {
await attemptLoad(LOCAL_PATH, "local");
} catch (e) {
console.warn("[Play] Local loader failed, trying CDN", e);
await attemptLoad(CDN_PATH, "cdn");
}
// Wait for emulator bootstrap
const startDeadline = Date.now() + 8000; // 8s
while (!window.EJS_emulator && Date.now() < startDeadline) {
await new Promise((r) => setTimeout(r, 100));
}
if (!window.EJS_emulator) {
throw new Error("Emulator did not initialize (EJS_emulator missing)");
}
loaderStatus.value = "loaded";
} catch (err) {
loaderStatus.value = "failed";
loaderError.value = (err as Error).message || "Failed to load emulator";
console.error("[Play] Emulator load failure:", err);
}
// Hide the hint after a short delay
setTimeout(() => {
showHint.value = false;
}, 3500);
}
let detachKey: (() => void) | null = null;
let detachPad: (() => void) | null = null;
let booted = false;
onMounted(async () => {
// Guard against duplicate mounts
if (booted) return;
booted = true;
await boot();
detachKey = attachKeyboardExit();
detachPad = attachGamepadExit();
});
onBeforeUnmount(() => {
window.EJS_emulator?.callEvent?.("exit");
detachKey?.();
detachPad?.();
});
</script>
<template>
<div
class="play-root fixed inset-0 bg-black text-white z-[70] overflow-hidden"
>
<div id="game" class="w-full h-full" />
<div
v-if="bezelSrc !== ''"
class="pointer-events-none fixed inset-0 flex items-center justify-center z-20 overflow-hidden"
aria-hidden="true"
>
<img
:src="bezelSrc"
alt="bezel"
class="select-none"
draggable="false"
style="height: 100vh; max-height: 100vh; width: auto; object-fit: cover"
@error="bezelSrc = ''"
/>
</div>
<div
v-if="loaderStatus !== 'loaded'"
class="absolute inset-0 flex items-center justify-center pointer-events-none"
>
<div
:style="{
backgroundColor: 'var(--console-play-hint-bg)',
borderColor: 'var(--console-play-hint-border)',
color: 'var(--console-play-hint-text)',
}"
class="text-center text-sm px-4 py-3 rounded border backdrop-blur"
>
<template
v-if="loaderStatus === 'idle' || loaderStatus === 'loading-local'"
>
Loading emulator…
</template>
<template v-else-if="loaderStatus === 'loading-cdn'">
Loading emulator (CDN)…
</template>
<template v-else-if="loaderStatus === 'failed'">
<div class="text-red-300 font-medium">Failed to load emulator</div>
<div class="mt-1 text-[11px] max-w-xs leading-snug break-words">
{{ loaderError }}
</div>
</template>
</div>
</div>
<div
v-if="showHint"
:style="{
backgroundColor: 'var(--console-play-hint-bg)',
borderColor: 'var(--console-play-hint-border)',
color: 'var(--console-play-hint-text)',
}"
class="absolute top-3 left-1/2 -translate-x-1/2 backdrop-blur px-3 py-1 rounded text-xs border"
>
Press Start + Select (or Backspace) to exit
</div>
<!-- Exit Prompt Modal -->
<div
v-if="showExitPrompt"
class="absolute inset-0 z-50 flex items-center justify-center"
>
<div class="absolute inset-0 bg-black/70 backdrop-blur-sm" />
<div
:style="{
backgroundColor: 'var(--console-modal-bg)',
borderColor: 'var(--console-modal-border)',
boxShadow: 'var(--console-modal-shadow)',
}"
class="relative w-full max-w-[560px] mx-auto rounded-2xl pa-10 md:p-9 flex flex-col gap-6 focus:outline-none border"
>
<div class="flex items-center justify-between">
<h2
:style="{ color: 'var(--console-modal-text)' }"
class="text-xl font-bold tracking-wide drop-shadow"
>
Exit Game
</h2>
<button
:disabled="savingState"
:style="{ color: 'var(--console-modal-text-secondary)' }"
class="opacity-50 hover:opacity-100 transition-opacity text-lg"
@click="cancelExit()"
>
✕
</button>
</div>
<div class="flex flex-col gap-3">
<div
v-for="(opt, i) in exitOptions"
:key="opt.id"
class="group relative rounded-lg px-4 py-3 border transition-all cursor-pointer select-none"
:class="[
savingState && opt.id !== 'save'
? 'opacity-40 cursor-not-allowed'
: '',
focusedExitIndex === i
? 'shadow-[0_0_0_2px_var(--console-modal-tile-selected-border),_0_0_18px_-4px_var(--console-modal-tile-selected-border)]'
: '',
]"
:style="
focusedExitIndex === i
? {
borderColor: 'var(--console-modal-tile-selected-border)',
backgroundColor: 'var(--console-modal-tile-selected-bg)',
}
: {
borderColor: 'var(--console-modal-tile-selected-border)',
backgroundColor: 'var(--console-modal-tile-bg)',
}
"
role="button"
:aria-selected="focusedExitIndex === i"
@click="activateExitOption(opt.id)"
>
<div class="flex items-center gap-3">
<div class="flex-1">
<div
:style="{
color:
focusedExitIndex === i
? 'var(--console-modal-text)'
: 'var(--console-modal-text-secondary)',
}"
class="font-semibold text-sm tracking-wide"
>
{{ opt.label }}
<span
v-if="opt.id === 'save' && savingState"
:style="{ color: 'var(--console-play-save-status-text)' }"
class="ml-2 text-[10px] font-medium tracking-wide animate-pulse"
>
SAVING…
</span>
</div>
<div
v-if="opt.desc"
:style="{ color: 'var(--console-modal-text-secondary)' }"
class="text-xs mt-0.5 opacity-50"
>
{{ opt.desc }}
</div>
</div>
<div
v-if="focusedExitIndex === i"
:style="{ color: 'var(--console-play-save-status-text)' }"
class="text-xs font-medium tracking-wider"
>
{{ savingState && opt.id === "save" ? "SAVING" : "" }}
</div>
</div>
</div>
</div>
<p v-if="saveError" class="text-xs text-red-400 font-medium">
{{ saveError }}
</p>
<!-- Navigation Hints -->
<div
:style="{
borderTopColor: 'var(--console-play-save-separator-border)',
}"
class="mt-4 pt-3 border-t"
>
<NavigationText
:show-navigation="true"
:show-select="true"
:show-back="true"
:show-toggle-favorite="false"
:show-menu="false"
:is-modal="true"
/>
</div>
</div>
</div>
</div>
</template>
<style scoped>
#game {
width: 100%;
height: 100%;
}
/* Hide the EmulatorJS in-UI exit button */
#game .ejs_menu_bar .ejs_menu_button:nth-child(-1) {
display: none;
}
</style>

View File

@@ -9,6 +9,7 @@ import storeHeartbeat from "@/stores/heartbeat";
import "@/styles/common.css";
import "@/styles/fonts.css";
import "@/styles/scrollbar.css";
import "@/console/index.css";
import { createApp } from "vue";
async function initializeData() {

View File

@@ -34,6 +34,11 @@ export const ROUTES = {
ADMINISTRATION: "administration",
SERVER_STATS: "server-stats",
NOT_FOUND: "404",
CONSOLE_HOME: "console-home",
CONSOLE_PLATFORM: "console-platform",
CONSOLE_COLLECTION: "console-collection",
CONSOLE_ROM: "console-rom",
CONSOLE_PLAY: "console-play",
} as const;
const routes = [
@@ -224,6 +229,38 @@ const routes = [
},
],
},
// Console mode (separate UI namespace under /console)
{
path: "/console",
component: () => import("@/console/Layout.vue"),
children: [
{
path: "",
name: ROUTES.CONSOLE_HOME,
component: () => import("@/console/views/Home.vue"),
},
{
path: "platform/:id",
name: ROUTES.CONSOLE_PLATFORM,
component: () => import("@/console/views/GamesList.vue"),
},
{
path: "collection/:id",
name: ROUTES.CONSOLE_COLLECTION,
component: () => import("@/console/views/GamesList.vue"),
},
{
path: "rom/:rom",
name: ROUTES.CONSOLE_ROM,
component: () => import("@/console/views/Game.vue"),
},
{
path: "rom/:rom/play",
name: ROUTES.CONSOLE_PLAY,
component: () => import("@/console/views/Play.vue"),
},
],
},
];
interface RoutePermissions {

View File

@@ -18,11 +18,10 @@ async function createCollection({
collection: Partial<UpdatedCollection>;
}): Promise<{ data: Collection }> {
const formData = new FormData();
formData.append("name", collection.name || "");
formData.append("description", collection.description || "");
formData.append("url_cover", collection.url_cover || "");
formData.append("rom_ids", JSON.stringify(collection.rom_ids));
formData.append("rom_ids", JSON.stringify(collection.rom_ids || []));
if (collection.artwork) formData.append("artwork", collection.artwork);
return api.post(`/collections`, formData, {
@@ -98,8 +97,9 @@ async function updateCollection({
formData.append("name", collection.name || "");
formData.append("description", collection.description || "");
formData.append("url_cover", collection.url_cover || "");
formData.append("rom_ids", JSON.stringify(collection.rom_ids));
formData.append("rom_ids", JSON.stringify(collection.rom_ids || []));
if (collection.artwork) formData.append("artwork", collection.artwork);
return api.put(`/collections/${collection.id}`, formData, {
headers: {
"Content-Type": "multipart/form-data",

Some files were not shown because too many files have changed in this diff Show More