How farman-usta/campus-app works
School Gateway is a browser-based school workflow for visitor passes, appointments and student leave, with role-specific security, administration and headquarters screens; Capacitor packages it for Android. Users submit requests, staff act on them, and headquarters reviews monthly records and summaries. The implementation is largely concentrated in src/app.js, with sample records in src/data.js. The excerpts show the app’s entry imports, role gate and security actions; other feature boundaries are described by the README, so their internal call relationships are not expanded here.
Main entry points: main.js App entry point · app.js Request intake · index.html HTML app shell · styles.css Themes and layout
Components 15
Web app runtime
- HTML app shell
index.html - App entry point
src/main.js - Themes and layout
src/styles.css
School workflows
- Request intake
src/app.js - Sample records
src/data.js - Role password gate
src/app.js - Gate decisions
src/app.js - Pass and directions
src/app.js
Administration and reporting
- Administration screens
src/app.js - HQ monthly register
src/app.js - Request summaries
src/app.js
Other components
- Parents and visitors
- Security staff
- Administrators
- Headquarters staff
Connections 13
- HTML app shell → App entry point: loads
README.md - App entry point → Themes and layout: imports
src/main.js - App entry point → Request intake: imports
src/main.js - Request intake → Sample records: imports records
src/app.js - Parents and visitors → Request intake: submits requests
README.md - Security staff → Role password gate: unlocks role
README.md - Administrators → Role password gate: unlocks role
README.md - Headquarters staff → Role password gate: unlocks role
README.md - Security staff → Gate decisions: reviews requests
src/app.js - Gate decisions → Pass and directions: shows pass
src/app.js - Administrators → Administration screens: uses screens
README.md - Headquarters staff → HQ monthly register: reviews register
README.md - HQ monthly register → Request summaries: views summaries
README.md