How adt109119/jijun works
Project type and purpose
• This is a purely front-end, offline-first Progressive Web App (PWA) for personal expense tracking (“輕鬆記帳 2.0”).
• It uses native HTML/CSS/JS (no framework), Tailwind CSS, Chart.js, Font Awesome, IndexedDB for storage, and a Service Worker for caching and updates.
File structure
• src/
– index.html → entry point
– css/main.css → Tailwind-generated styling
– js/ → modular features: main.js (controller/initializer), dataService.js (storage abstraction), budgetManager.js, categoryManager.js, recordsList.js, statistics.js, datePickerModal.js, changelog.js, quickSelectManager.js, utils.js
• public/
– manifest.json → PWA metadata
– serviceWorker.js → caching & update logic
• index.html, manifest.json, sitemap.txt, public/.well-known → deployment artifacts
• vite.config.js, package.json, ESLint & Prettier configs → build & dev environment
README for additional insights
• Architecture is client-only, structured in “modules” that map to feature areas (UI views, data storage, utilities).
• Emphasizes offline support, smart caching, automatic IndexedDB migration, data export/import, and PWA update flow.
– Blue for UI/presentation
– Green for data/storage
– Orange for PWA/caching
– Purple for external libraries