From 0426b8e95325fa1f4695d6d3aa18076e1b095bf5 Mon Sep 17 00:00:00 2001 From: Bkk1234 Date: Sun, 22 Nov 2026 22:34:54 +0700 Subject: [PATCH] chore(repo): add .gitignore for secrets/data + bump sw.js VERSION to v2.1.1 Ignore credential and private-key files, the real content data directory (data/ holds phone numbers, emails, addresses), backups/logs that can carry that data, plus build/dependency artifacts for future source work. No tracked file matches a new rule; published export files stay tracked. Bump sw.js VERSION to v2.1.1 so the cache-first /assets/ rule refreshes. --- .gitignore | 79 ++++++++++++++++++++++++++++++++++++++++++++ sw.js | 2 +- x/node_modules_probe | 0 3 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 x/node_modules_probe diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0381a83 --- /dev/null +++ b/.gitignore @@ -0,0 +1,79 @@ +# .gitignore — repo นี้ publish static export ที่ราก repo +# เป้าหมาย: กันข้อมูลอ่อนไหว (credential/ข้อมูลจริง) หลุดขึ้น Git และกัน artifact ที่ไม่ควรอยู่ใน repo +# ใช้กับ git บน Windows (core.autocrlf=true) — ไฟล์นี้ควรเป็น LF เสมอ + +# ── ข้อมูลอ่อนไหว / credential ───────────────────────────── +.env +.env.* +!.env.example +.envrc +*.pem +*.key +*.p12 +*.pfx +*.jks +*.keystore +*.kdbx +secrets/ +.secrets/ +*credential* +*cookie*.txt +_cookiejar.txt +.npmrc.local +.npmrc +id_rsa* +id_ed25519* +*.token + +# ── ข้อมูลจริงของโปรเจกต์ (content.json มีเบอร์/อีเมล/ที่อยู่จริง) ── +data/ +data.local/ +data/uploads/ +uploads/ + +# ── ไฟล์สำรอง/ชั่วคราวที่มักมีข้อมูลจริงติดมา ──────────────── +*.bak +*.bak-* +*.orig +*.rej +*.tmp +*.temp +*.swp +*.log +*.pid +npm-debug.log* +pnpm-debug.log* + +# ── build / dependency (กรณีกลับมาแก้ source ในโฟลเดอร์นี้) ── +node_modules/ +.pnpm-store/ +.output/ +build/ +build.old/ +dist/ +static-export/ +.vite/ +.cache/ +.turbo/ +coverage/ +*.tsbuildinfo + +# ── Python (สคริปต์ช่วยงาน) ───────────────────────────────── +__pycache__/ +*.py[cod] +.venv/ +venv/ + +# ── เครื่องมือแก้ไข / OS ─────────────────────────────────── +.vscode/ +.idea/ +.claude/settings.local.json +.DS_Store +Thumbs.db +desktop.ini + +# ── ไฟล์เฉพาะเครื่องนี้ (hardcode path / ไว้ทดสอบ) ────────── +dev.cmd +*.local.* +probe-* +browser_harness_probe* diff --git a/sw.js b/sw.js index 42c072a..c14d4f7 100644 --- a/sw.js +++ b/sw.js @@ -18,7 +18,7 @@ * | โดเมนอื่น (รูป hotlink) | ไม่จัดการ | * | /app/* · /node_modules/* · /@* | ไม่จัดการ (โมดูลของ dev server) | */ -const VERSION = "v2.0.6"; +const VERSION = "v2.1.1"; const PAGES_CACHE = `alterflixhub-pages-${VERSION}`; const ASSETS_CACHE = `alterflixhub-assets-${VERSION}`; diff --git a/x/node_modules_probe b/x/node_modules_probe new file mode 100644 index 0000000..e69de29