fix: affiche la console C64 (@layer themes) et cache-busting complet des modules JS

This commit is contained in:
lrdlg committed 2026-11-27 10:41:48 +01:00
1 parent 579ad8b15d
commit fa22f766ea
6 files changed
+26 -15

No files matched your search

+15 -5
View File
@@ -12,13 +12,14 @@
demande (clavier ou clic)
========================================================================== */
/* Le terminal C64 est masqué sur tous les autres thèmes */
.c64-terminal {
display: none;
}
@layer themes {
/* Le terminal C64 est masqué sur tous les autres thèmes (dans @layer themes
pour ne pas écraser la règle [data-theme="c64-basic"] ci-dessous) */
.c64-terminal {
display: none;
}
[data-theme="c64-basic"] {
color-scheme: dark;
@@ -76,8 +77,17 @@
[data-theme="c64-basic"] main > .container {
background-color: var(--c64-screen);
background-image: repeating-linear-gradient(
0deg,
rgb(0 0 0 / 10%) 0px,
rgb(0 0 0 / 10%) 1px,
transparent 1px,
transparent 3px
);
border: 4px solid var(--c64-ink-muted);
box-shadow: 0 0 0 12px var(--c64-border), inset 0 0 48px rgb(0 0 0 / 28%);
padding: var(--space-xl) clamp(1rem, 3.5vw, 2.25rem) var(--space-2xl);
min-block-size: calc(100svh - 9rem);
position: relative;
}
+4 -4
View File
@@ -22,10 +22,10 @@
* complet, garantissant l'indexation et la lecture par les moteurs et IA.
*/
import { initThemeManager } from "./modules/theme-manager.js";
import { initThemeSwitcher } from "./modules/theme-switcher.js";
import { initC64Terminal } from "./modules/c64-terminal.js";
import { initMotion } from "./modules/motion.js";
import { initThemeManager } from "./modules/theme-manager.js?v=20261127b";
import { initThemeSwitcher } from "./modules/theme-switcher.js?v=20261127b";
import { initC64Terminal } from "./modules/c64-terminal.js?v=20261127b";
import { initMotion } from "./modules/motion.js?v=20261127b";
import { initNavigation } from "./modules/navigation.js";
import { initScrollSpy } from "./modules/scroll-spy.js";
import { initBackToTop } from "./modules/back-to-top.js";
+2 -1
View File
@@ -10,7 +10,7 @@
* - en cliquant sur un lien de la barre de navigation
*/
import { getActiveThemeId, onThemeChange } from "./theme-manager.js";
import { getActiveThemeId, onThemeChange } from "./theme-manager.js?v=20261127b";
const C64_THEME_ID = "c64-basic";
@@ -267,6 +267,7 @@ export function initC64Terminal({ status } = {}) {
if (themeId === C64_THEME_ID) {
hideAllSections();
setLog([]);
requestAnimationFrame(() => input?.focus({ preventScroll: true }));
}
};
+1 -1
View File
@@ -20,7 +20,7 @@ import {
getThemeById,
isValidThemeId,
getRandomThemeId,
} from "../themes.js";
} from "../themes.js?v=20261127b";
/** URL de polices déjà injectées dans le <head>. */
const loadedFontUrls = new Set();
+2 -2
View File
@@ -11,13 +11,13 @@
* inerte n'apparaît dans la page.
*/
import { THEMES, getThemeById } from "../themes.js";
import { THEMES, getThemeById } from "../themes.js?v=20261127b";
import {
applyTheme,
getActiveThemeId,
onThemeChange,
pickSurpriseTheme,
} from "./theme-manager.js";
} from "./theme-manager.js?v=20261127b";
/**
* Crée la structure DOM du dock flottant et de la modale <dialog>.
+2 -2
View File
@@ -156,7 +156,7 @@
<link rel="stylesheet" href="/assets/css/themes/obsidian-dark.css?v=20261126">
<link rel="stylesheet" href="/assets/css/themes/liquid-glass.css?v=20261126">
<link rel="stylesheet" href="/assets/css/themes/editorial-type.css?v=20261126">
<link rel="stylesheet" href="/assets/css/themes/c64-basic.css?v=20261127">
<link rel="stylesheet" href="/assets/css/themes/c64-basic.css?v=20261127b">
<link rel="stylesheet" href="/assets/css/utilities.css?v=20261126">
<link rel="stylesheet" href="/assets/css/theme-switcher.css?v=20261126">
<!-- Chargée uniquement à l'impression : ne pénalise pas le rendu écran -->
@@ -198,7 +198,7 @@
l'analyse du HTML, l'exécution a lieu après. Aucun blocage du rendu,
donc pas besoin de l'écrire en fin de <body>.
========================================================================== -->
<script type="module" src="/assets/js/main.js?v=20261127"></script>
<script type="module" src="/assets/js/main.js?v=20261127b"></script>
<!-- ==========================================================================
DONNÉES STRUCTURÉES — schema.org en JSON-LD