How mr-pairot/e_jvbp_doc_demo works
This is a Thai electronic document-management dashboard. Users authenticate or enter guest mode, load document records, then search and filter RFA, RFI, and incoming letters with tables and charts. The source excerpts show the authentication and data-loading responsibilities, local IndexedDB caching, UI rendering, notification behavior, and splash animation. Google Sheets and LINE are documented or referenced as integrations; unsampled connections are omitted rather than inferred.
Main entry points: data-service.js Bootstrap & loading · ui-render.js Search, filters & charts · auth.js Authentication · config.js Document records
Components 14
Access & Identity
- Authentication
js/auth.js
Document Data
- Bootstrap & loading
js/data-service.js - IndexedDB cache
js/data-service.js - Document records
js/config.js
Dashboard
- App state & config
js/config.js - Search, filters & charts
js/ui-render.js - Session management UI
js/ui-render.js
User Experience
- User notifications
js/user-notify.js - Notification settings
data/notify.json - Splash animation
js/magic-rings-bg.js - About popup
js/about-popup.js
Other components
- Visitor
- LINE LIFF
- Google Sheets
Connections 14
- Visitor → Authentication: signs in
js/auth.js - Authentication → LINE LIFF: checks identity
js/auth.js - Authentication → Bootstrap & loading: loads app
js/auth.js - Bootstrap & loading → IndexedDB cache: reads and writes
js/data-service.js - Bootstrap & loading → Google Sheets: fetches sheets
js/data-service.js - Bootstrap & loading → Document records: parses records
js/data-service.js - App state & config → Document records: defines records
js/config.js - Search, filters & charts → App state & config: uses state
js/ui-render.js - Search, filters & charts → Document records: filters and displays
js/ui-render.js - Search, filters & charts → Bootstrap & loading: loads sessions
js/ui-render.js - User notifications → Notification settings: fetches settings
js/user-notify.js - Visitor → User notifications: interacts
- Visitor → About popup: opens popup
js/about-popup.js - Bootstrap & loading → Splash animation: starts and stops
js/magic-rings-bg.js