How milindaranawaka/covid-19-sri-lanka-and-global-tracker works
This is a small static web app for tracking Sri Lankan and global COVID-19 statistics. On page load, the dashboard fetches current data from the Sri Lankan Health Promotion Bureau API, stores the returned figures in component state, and renders local and global case, death, recovery, active-case, and hospital counts. A separate service worker precaches the app shell and serves navigation requests offline. The excerpts show these runtime relationships; the shared vendor chunk is bundled third-party code and its specific role in the product is unclear.
Main entry points: main.237c169f.chunk.js COVID dashboard · service-worker.js Service worker · precache-manifest.de2921e9e883ddc148b050e54177956f.js Precache manifest · 2.43d0f5a1.chunk.js Shared vendor code
Components 6
Statistics dashboard
- COVID dashboard
static/js/main.237c169f.chunk.js
Offline support
- Service worker
service-worker.js - Precache manifest
precache-manifest.de2921e9e883ddc148b050e54177956f.js
Other components
- Web visitor
- Health statistics API
- Shared vendor code
static/js/2.43d0f5a1.chunk.js
Connections 5
- Web visitor → COVID dashboard: opens
static/js/main.237c169f.chunk.js - COVID dashboard → Health statistics API: fetches statistics
static/js/main.237c169f.chunk.js - COVID dashboard → Shared vendor code: uses bundled runtime
- Service worker → Precache manifest: loads manifest
service-worker.js - Service worker → COVID dashboard: precaches app