How reeyanto/jam-waktu-sholat works
JWS is a browser-based prayer-time clock. On page load, the app initializes saved settings, retrieves city and prayer schedule data, renders the mosque/location and daily timings, and starts a live clock with prayer-time beeps. Configuration can be edited through a keyboard-opened modal and saved for a reinitialization. The README documents the API and Clean Architecture layers; relationships below are limited to calls visible in the supplied excerpts or that README.
Main entry points: app.js App entry · PrayerRepository.js Prayer repository · ModalController.js Configuration modal · ClockController.js Clock and alerts
Components 10
Application
- App entry
js/app.js
Domain
- Prayer repository
js/domain/PrayerRepository.js
Data sources
- Prayer API source
js/data/ApiDataSource.js - Local storage source
js/data/StorageDataSource.js
Presentation
- UI controller
js/presentation/UIController.js - Configuration modal
js/presentation/ModalController.js - Clock and alerts
js/presentation/ClockController.js
Other components
- Visitor
- myquran API
- Browser UI
Connections 17
- Visitor → Browser UI: uses
README.md - Browser UI → App entry: loads
js/app.js - App entry → Prayer repository: creates and calls
js/app.js - App entry → UI controller: renders through
js/app.js - App entry → Configuration modal: populates
js/app.js - App entry → Clock and alerts: starts
js/app.js - Prayer repository → Prayer API source: fetches through
js/domain/PrayerRepository.js - Prayer repository → Local storage source: reads and writes
js/domain/PrayerRepository.js - Prayer API source → myquran API: requests data
js/data/ApiDataSource.js - UI controller → Prayer repository: reads settings
js/presentation/UIController.js - Configuration modal → Prayer repository: loads and saves
js/presentation/ModalController.js - Clock and alerts → Prayer repository: reads iqamah
js/presentation/ClockController.js - UI controller → Browser UI: updates display
js/presentation/UIController.js - Configuration modal → Browser UI: handles dialog
js/presentation/ModalController.js - Clock and alerts → Browser UI: updates clock and audio
js/presentation/ClockController.js - Configuration modal → App entry: reinitializes on save
js/app.js - Clock and alerts → App entry: reinitializes at midnight
js/app.js