Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#111 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript
Lĩnh vực
devtools, frontend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
JavaScript
Star
58
Fork
15
Merge trung bình
16 giờ 53 phút
Pull request đã merge (30 ngày)
14

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của TMHSDigital/Free-Game-Dev-Assets

Tất cả issue của TMHSDigital/Free-Game-Dev-Assets

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.