From 96208363d945bfcae528534bb1769218dd100377 Mon Sep 17 00:00:00 2001 From: posimai Date: Mon, 20 Apr 2026 22:42:55 +0900 Subject: [PATCH] =?UTF-8?q?fix(posimai-sc):=20=E3=82=BB=E3=82=AD=E3=83=A5?= =?UTF-8?q?=E3=83=AA=E3=83=86=E3=82=A3=E3=83=BB=E5=93=81=E8=B3=AA=E7=9B=A3?= =?UTF-8?q?=E6=9F=BB=E5=AF=BE=E5=BF=9C=EF=BC=88CSP/DOMPurify/reactivity=20?= =?UTF-8?q?=E4=BB=96=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - [H1] CSP meta タグ追加(script/style/connect/frame-ancestors 等) - [H2] posimai_api_key を sessionStorage に移行(localStorage フォールバック付き) - [H3] DOMPurify を USE_PROFILES から明示 ALLOWED_TAGS/ALLOWED_ATTR ホワイトリストに変更 - [M1] progress/scores の直接変更を spread 再代入に統一(Alpine reactivity 保証) - [M2] .catch(()=>{}) を console.warn 付きに変更(サイレント消滅を防止) - [M3] syncHeader を this.syncToken 一本化(localStorage 二重読み解消) - [M5] SW の cache.put() 失敗を捕捉してログ出力 - [M6/M7] sidebar-item に aria-label/aria-pressed 追加、main に tabindex=-1 + focus() - [LOW] glossary x-for キーをコンテンツベースに変更、SW コメント補足 - SW v7 → v8 Co-Authored-By: Claude Sonnet 4.6 --- posimai-sc/index.html | 19 +++++++++++++++++-- posimai-sc/js/app.js | 26 ++++++++++++++------------ posimai-sc/sw.js | 9 +++++++-- 3 files changed, 38 insertions(+), 16 deletions(-) diff --git a/posimai-sc/index.html b/posimai-sc/index.html index 78737ad3..a40479e2 100644 --- a/posimai-sc/index.html +++ b/posimai-sc/index.html @@ -2,6 +2,19 @@ +