From 4ef92e0f72abea5a4389d9dbf7d66a25f2bd4205 Mon Sep 17 00:00:00 2001 From: Hamza Date: Tue, 20 Oct 2026 09:31:57 +0000 Subject: [PATCH] feat(pwa): PersonaDLE s'installe comme une application, polices sans Google MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le service worker existait, le manifeste non : impossible d'ajouter le jeu à l'écran d'accueil avec une vraie icône. manifest.webmanifest (standalone, raccourcis vers trois modes et le profil) + icônes 192/512/maskable/iOS, liés depuis les 15 pages du jeu ; type MIME ajouté au .htaccess. Les huit familles Google sont auto-hébergées : scripts/fetch_google_fonts.js télécharge les woff2 (latin + latin-ext, 592 Ko) dans font/google/ et génère css/fonts.css. Plus de connexion tierce bloquante ni de changement de police au chargement ; la CSP n'autorise plus Google. Les pages Nouveautés 2.0-2.2 ne sont touchées que sur ce lien, sinon elles perdaient leurs polices. --- .htaccess | 8 +- CONTRIBUTING.md | 2 +- .../PersonaDLE 2.0/PersonaDLE_Update.html | 4 +- .../PersonaDLE 2.1/PersonaDLE_Update.html | 4 +- .../PersonaDLE 2.2/PersonaDLE_Update.html | 5 +- .../PersonaDLE 2.3/DEV_CHANGELOG.md | 46 +++ .../PersonaDLE 2.3/PersonaDLE_Update.html | 32 +- README.md | 8 +- ROADMAP.md | 4 +- TODO.md | 2 +- admin/index.html | 7 +- allOutAttackMode/allOutAttack.html | 4 + classiqueMode/classiqueMode.html | 4 + css/fonts.css | 364 ++++++++++++++++++ emojiMode/emojiMode.html | 4 + font/README.md | 10 + .../google/abril_fatface_normal_latin_1.woff2 | Bin 0 -> 13156 bytes .../abril_fatface_normal_latin_ext_0.woff2 | Bin 0 -> 7716 bytes font/google/cinzel_normal_latin_3.woff2 | Bin 0 -> 25904 bytes font/google/cinzel_normal_latin_ext_2.woff2 | Bin 0 -> 14540 bytes font/google/inter_normal_latin_5.woff2 | Bin 0 -> 48256 bytes font/google/inter_normal_latin_ext_4.woff2 | Bin 0 -> 85068 bytes .../jetbrains_mono_normal_latin_7.woff2 | Bin 0 -> 31432 bytes .../jetbrains_mono_normal_latin_ext_6.woff2 | Bin 0 -> 11624 bytes font/google/montserrat_normal_latin_9.woff2 | Bin 0 -> 37956 bytes .../montserrat_normal_latin_ext_8.woff2 | Bin 0 -> 70688 bytes font/google/oswald_normal_latin_11.woff2 | Bin 0 -> 21472 bytes font/google/oswald_normal_latin_ext_10.woff2 | Bin 0 -> 19104 bytes .../playfair_display_italic_latin_13.woff2 | Bin 0 -> 38804 bytes ...playfair_display_italic_latin_ext_12.woff2 | Bin 0 -> 23380 bytes .../playfair_display_normal_latin_15.woff2 | Bin 0 -> 23224 bytes ...playfair_display_normal_latin_ext_14.woff2 | Bin 0 -> 12904 bytes .../special_elite_normal_latin_17.woff2 | Bin 0 -> 53296 bytes .../special_elite_normal_latin_ext_16.woff2 | Bin 0 -> 25196 bytes img/app_icons/apple_touch_icon_180.png | Bin 0 -> 11279 bytes img/app_icons/icon_192.png | Bin 0 -> 13308 bytes img/app_icons/icon_512.png | Bin 0 -> 47128 bytes img/app_icons/icon_maskable_512.png | Bin 0 -> 39326 bytes index.html | 11 +- manifest.webmanifest | 54 +++ musicsMode/musics.html | 4 + pages/404.html | 11 +- pages/faq.html | 12 +- pages/privacy.html | 11 +- pages/reset-password.html | 4 + personaeMode/personae.html | 4 + profile/compendium/compendium.html | 11 +- profile/friends/friends.html | 11 +- profile/leaderboard/leaderboard.html | 11 +- profile/profile.html | 11 +- scripts/fetch_google_fonts.js | 87 +++++ silhouetteMode/silhouette.html | 4 + tests/README.md | 8 +- tests/pwa_fonts.test.js | 84 ++++ 54 files changed, 764 insertions(+), 82 deletions(-) create mode 100644 css/fonts.css create mode 100644 font/google/abril_fatface_normal_latin_1.woff2 create mode 100644 font/google/abril_fatface_normal_latin_ext_0.woff2 create mode 100644 font/google/cinzel_normal_latin_3.woff2 create mode 100644 font/google/cinzel_normal_latin_ext_2.woff2 create mode 100644 font/google/inter_normal_latin_5.woff2 create mode 100644 font/google/inter_normal_latin_ext_4.woff2 create mode 100644 font/google/jetbrains_mono_normal_latin_7.woff2 create mode 100644 font/google/jetbrains_mono_normal_latin_ext_6.woff2 create mode 100644 font/google/montserrat_normal_latin_9.woff2 create mode 100644 font/google/montserrat_normal_latin_ext_8.woff2 create mode 100644 font/google/oswald_normal_latin_11.woff2 create mode 100644 font/google/oswald_normal_latin_ext_10.woff2 create mode 100644 font/google/playfair_display_italic_latin_13.woff2 create mode 100644 font/google/playfair_display_italic_latin_ext_12.woff2 create mode 100644 font/google/playfair_display_normal_latin_15.woff2 create mode 100644 font/google/playfair_display_normal_latin_ext_14.woff2 create mode 100644 font/google/special_elite_normal_latin_17.woff2 create mode 100644 font/google/special_elite_normal_latin_ext_16.woff2 create mode 100644 img/app_icons/apple_touch_icon_180.png create mode 100644 img/app_icons/icon_192.png create mode 100644 img/app_icons/icon_512.png create mode 100644 img/app_icons/icon_maskable_512.png create mode 100644 manifest.webmanifest create mode 100644 scripts/fetch_google_fonts.js create mode 100644 tests/pwa_fonts.test.js diff --git a/.htaccess b/.htaccess index d94de81a..270ab8a3 100644 --- a/.htaccess +++ b/.htaccess @@ -19,12 +19,18 @@ ErrorDocument 404 /pages/404.html # 'unsafe-inline' reste nécessaire : le site est en vanilla JS sans build step, avec des # - - - +