How macalouboubaa-lab/model_cv works
SAMA CV is a browser-based gallery and editor for 14 HTML CV templates. The main workflow is to open the gallery or a template, edit text and photos, save the work in browser storage, and print an A4 PDF. A separate, preparation-stage account and payment branch supports Supabase identities and manual Wave-payment review; the README says it is inactive until configured and does not provide private PDF downloads. The sampled backend files show API ownership and Supabase calls, but not the frontend wiring, so those connections are omitted or marked unverified.
Main entry points: model1.html 14 CV templates · supabase-api.js Supabase API helpers · index.html Template gallery · payments.js Payment submission
Components 18
CV gallery and editing
- Template gallery
index.html - 14 CV templates
model1.html - Gallery assets
assets - Browser local storage
- Browser print dialog
Accounts and configuration
- Signup and login pages
signup.html - Legacy login handler
api/login.js - Public configuration API
api/config.js - Supabase Auth
Manual payments
- Payment page
payment.html - Wave checkout
- Payment submission
api/payments.js - Admin page
admin.html - Payment review API
api/admin/payments.js - Entitlement lookup
api/entitlements.js
Server and data
- Supabase API helpers
lib/supabase-api.js - Supabase data services
Other components
- CV user
Connections 22
- CV user → Template gallery: opens
README.md - CV user → 14 CV templates: opens or selects
README.md - Template gallery → 14 CV templates: links to
README.md - Template gallery → Gallery assets: uses
README.md - CV user → 14 CV templates: edits
README.md - 14 CV templates → Browser local storage: saves and loads
README.md - 14 CV templates → Browser print dialog: opens for PDF
README.md - CV user → Signup and login pages: opens
- Signup and login pages → Supabase Auth: authenticates with
- CV user → Legacy login handler: submits login
- Public configuration API → Supabase API helpers: uses
api/config.js - Payment page → Wave checkout: links to
README.md - Payment page → Payment submission: submits payment
- Payment submission → Supabase API helpers: calls
api/payments.js - Admin page → Payment review API: reviews payments
- Payment review API → Supabase API helpers: calls
api/admin/payments.js - Entitlement lookup → Supabase API helpers: calls
api/entitlements.js - Legacy login handler → Supabase data services: queries users
api/login.js - Supabase API helpers → Supabase data services: requests Auth and REST
lib/supabase-api.js - Payment submission → Supabase data services: writes payment
api/payments.js - Payment review API → Supabase data services: lists and reviews
api/admin/payments.js - Entitlement lookup → Supabase data services: reads entitlement
api/entitlements.js