How orangethewell/site-de-empregos works
This is a Leptos web application for Araxá job listings, with account registration and login, email confirmation, profiles, and role-gated administration. The principal workflow routes visitors to job listings and details; authenticated users can manage profiles, while authorized editors manage jobs and user roles. Server functions provide the pages’ data and mutations, backed by SeaORM entities and services for email and payment links. The README describes a generic Leptos starter template, so product capabilities here are taken from the source tree and excerpts. Relationships involving unsampled pages are limited to documented routes and module references.
Main entry points: mod.rs Server functions · app.rs Router and app shell · navbar.rs Navigation · homepage.rs Homepage
Components 24
Web interface
- Router and app shell
src/app.rs - Navigation
src/components/navbar.rs - Homepage
src/pages/homepage.rs
Accounts and access
- Login
src/pages/handlers/login.rs - Registration
src/pages/handlers/register.rs - Email confirmation
src/pages/handlers/mail_confirm.rs - User profile
src/pages/profile.rs - User administration
src/pages/editors/users.rs
Job listings
- Job listings
src/pages/jobspage.rs - Job details
src/pages/jobinfo.rs - Job editor
src/pages/editors/jobs.rs
Server services
- Server functions
src/functions/mod.rs - Payment link helper
src/functions/embed.rs - Email service
Persistence
- SQL database
- Job records
entities/src/job.rs - User records
entities/src/user.rs - Confirmation requests
entities/src/confirmation_request.rs - Memberships
entities/src/membership.rs - Roles
entities/src/role.rs - Permissions
entities/src/permission.rs - User-role links
entities/src/user_roles.rs - Role permissions
entities/src/role_permissions.rs
Other components
- Visitor
Connections 36
- Visitor → Router and app shell: opens
src/app.rs - Router and app shell → Navigation: renders
src/app.rs - Router and app shell → Homepage: routes to
src/app.rs - Router and app shell → Job listings: routes to
src/app.rs - Router and app shell → Job details: routes to
src/app.rs - Router and app shell → Job editor: routes to
src/app.rs - Router and app shell → Login: routes to
src/app.rs - Router and app shell → Registration: routes to
src/app.rs - Router and app shell → User profile: routes to
src/app.rs - Router and app shell → Email confirmation: routes to
src/app.rs - Job listings → Server functions: calls
src/pages/jobspage.rs - Job details → Server functions: calls
src/pages/jobinfo.rs - Job editor → Server functions: calls
src/pages/editors/jobs.rs - User profile → Server functions: calls
src/pages/profile.rs - Homepage → Server functions: uses
src/pages/homepage.rs - Email confirmation → Server functions: calls
src/pages/handlers/mail_confirm.rs - Navigation → Server functions: checks login
src/components/navbar.rs - Server functions → SQL database: reads and writes
src/functions/mod.rs - Server functions → Payment link helper: generates payment link
src/functions/mod.rs - Server functions → Email service: sends email
src/functions/mod.rs - Job records → SQL database: models records
- User records → SQL database: models records
- Confirmation requests → SQL database: models records
- Memberships → SQL database: models records
- Roles → SQL database: models records
- Permissions → SQL database: models records
- User-role links → SQL database: models links
- Role permissions → SQL database: models links
- Server functions → Job records: uses
- Server functions → User records: uses
- Server functions → Confirmation requests: uses
- Server functions → Memberships: uses
- Server functions → Roles: uses
- Server functions → Permissions: uses
- Server functions → User-role links: uses
- Server functions → Role permissions: uses