Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

feature: theme toggle (system / light / dark), PWA manifest and offline cache for the catalog

未關閉
#111 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
48/100
Issue 類型
功能
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
javascript
領域
devtools, frontend

研究方向

Start with index.html and the files under site/public/, then read how the build emits the generatedAt stamp and how shortlist persistence handles localStorage. Implement the theme toggle, manifest, and versioned service worker described in the issue. Done when the toggle persists, Lighthouse reports the site installable, and search works offline after one visit.

由索引模型根據 Issue 內容生成。

描述

feature priority: low

Why it matters
Dark mode follows the OS only; a reading-heavy reference site is expected to offer a toggle. A web manifest and a small service worker that caches data.js, styles.css, app.js and the home page make search and the shortlist work offline (game jams on venue Wi-Fi), allow "Add to home screen" and give the installed app the right colour.

Evidence

  • No manifest.webmanifest or service worker in site/public/; no theme toggle in index.html.
  • data.js and the home page are static per build, so cache invalidation can key on the generatedAt stamp the build already emits.

Suggested approach
Three-state toggle persisted in localStorage (wrapped in try/catch, as the shortlist already does), applied via data-theme on <html> before first paint. Manifest with the existing favicon as a maskable icon. Service worker with a versioned cache name derived from generatedAt, network-first for HTML and cache-first for assets.

Done when
The toggle works and persists, Lighthouse reports the site installable, and the home page search works with the network off after one visit.

主要語言
JavaScript
星號
58
分支
15
平均合併
16 小時 53 分鐘
30 天內合併 PR
14

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

TMHSDigital/Free-Game-Dev-Assets 的其他 Issue

查看 TMHSDigital/Free-Game-Dev-Assets 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。