How adhi7dawg/kas-kegiatan works
This is a browser-based event cashbook for recording and reviewing income and expenses by activity. The main flow initializes the app and checks the treasurer’s session, loads activities and their transactions, then filters and summarizes the selected activity for display. Treasurers can manage activities and transactions, including expense item details and receipt evidence; users can view charts and export filtered reports. Source excerpts show these responsibilities and several Supabase interactions; unsampled setup details and some receipt-storage operations are not mapped.
Main entry points: app.js App coordinator · transactions.js Transaction records · supabase.js Supabase client · utils.js Formatting and totals
Components 15
Application
- App coordinator
js/app.js - Formatting and totals
js/utils.js
Cashbook Domain
- Treasurer access
js/auth.js - Activity management
js/events.js - Transaction records
js/transactions.js - Income entry
js/transactions.js - Expense entry
js/transactions.js - Receipt evidence
js/transactions.js - Audit history
js/transactions.js
Views and Reports
- Cashflow chart
js/charts.js - PDF and Excel
js/reports.js
Platform and Data
- Supabase configuration
js/config.js - Supabase client
js/supabase.js - Supabase service
Other components
- Cashbook user
Connections 19
- Cashbook user → App coordinator: uses
js/app.js - App coordinator → Supabase configuration: checks setup
js/app.js - App coordinator → Treasurer access: checks session
js/app.js - App coordinator → Activity management: loads activities
js/app.js - App coordinator → Transaction records: loads transactions
js/app.js - App coordinator → Cashflow chart: renders chart
js/app.js - App coordinator → PDF and Excel: exports report
js/app.js - App coordinator → Formatting and totals: summarizes data
js/app.js - Treasurer access → Supabase client: uses client
js/auth.js - Activity management → Supabase client: reads and updates
js/events.js - Transaction records → Income entry: handles
js/transactions.js - Transaction records → Expense entry: handles
js/transactions.js - Transaction records → Audit history: fetches and renders
js/transactions.js - Transaction records → Receipt evidence: manages evidence
js/transactions.js - Transaction records → Supabase client: queries records
js/transactions.js - Cashflow chart → Formatting and totals: formats values
js/charts.js - PDF and Excel → Formatting and totals: formats and totals
js/reports.js - Supabase client → Supabase configuration: reads credentials
js/supabase.js - Supabase client → Supabase service: connects to
js/supabase.js