How rachdaubuirerach-commits/chamcong works
TimeTracker is a browser-based attendance and salary tracker. Users configure work settings, record or review attendance, and see calendar, hours, and pay summaries; optional workflows compare HR spreadsheets via OCR and export attendance as images. Lunar-calendar and Vietnamese-holiday logic enrich dates, while local storage persists app data. The main controller is a large single script; its detailed internal call structure is only partly evidenced in the excerpts, so the graph avoids inferring those calls. The README is empty, and some UI, export, and offline relationships are not shown in sampled source.
Main entry points: script.js Tracker UI and logic · ocr-compare.js OCR and comparison · sw.js Offline service worker · holiday-resolver.js Holiday resolver
Components 17
Attendance and pay
- Tracker UI and logic
script.js - Work settings
script.js - Attendance, absence, notes
script.js - Hours and salary views
script.js
Calendar rules
- Lunar date engine
lunar-engine.js - Vietnamese holiday data
holiday-data.js - Holiday resolver
holiday-resolver.js
Import and export
- OCR and comparison
ocr-compare.js - Tesseract OCR runtime
tesseract - Vietnamese and Chinese models
tesseract/lang-data/chi_sim.traineddata.gz - Attendance PNG export
image-export.js - html2canvas
Browser runtime
- Browser local storage
- Interaction effects
effects.js - Offline service worker
sw.js - Browser cache
Other components
- User
Connections 22
- User → Tracker UI and logic: uses
- Tracker UI and logic → Work settings: manages
script.js - Tracker UI and logic → Attendance, absence, notes: records
script.js - Tracker UI and logic → Hours and salary views: presents
script.js - Work settings → Browser local storage: reads and writes
script.js - Attendance, absence, notes → Browser local storage: reads and writes
script.js - Tracker UI and logic → Holiday resolver: looks up holidays
script.js - Holiday resolver → Vietnamese holiday data: reads
holiday-resolver.js - Holiday resolver → Lunar date engine: converts dates
holiday-resolver.js - Tracker UI and logic → Lunar date engine: uses lunar dates
- User → OCR and comparison: submits HR image
- OCR and comparison → Tesseract OCR runtime: creates worker
ocr-compare.js - OCR and comparison → Vietnamese and Chinese models: loads languages
ocr-compare.js - OCR and comparison → Attendance, absence, notes: compares logs
- OCR and comparison → html2canvas: renders report
ocr-compare.js - User → Attendance PNG export: requests PNG
- Attendance PNG export → html2canvas: renders image
image-export.js - User → Interaction effects: interacts
- Offline service worker → Browser cache: stores responses
sw.js - Offline service worker → Tracker UI and logic: caches app assets
sw.js - Offline service worker → Tesseract OCR runtime: caches OCR assets
sw.js - Offline service worker → Vietnamese and Chinese models: caches models
sw.js