How bwnjawn/sistema-gestion-ltr works
Los Troncos de Repil is a reservation web app for restaurant service, cabins, and camping, with a separate owner administration area. Customers choose a service, move through its four-step reservation flow, and review a request; admins sign in to manage the catalog and reservations calendar. Pinia provides shared reservation and authentication state. The README describes offline-first use and Supabase synchronization, but sampled store code does not show a sync queue or cloud writes, so those capabilities and links are marked as documented but unverified.
Main entry points: index.ts Route dispatch · reservationStore.ts Reservation state · authStore.ts Admin auth state · cabana Cabin booking
Components 17
Customer booking
- Home and contact
src/views/client - Cabin booking
src/views/client/cabana - Camping booking
src/views/client/camping - Restaurant booking
src/views/client/restaurante
Owner administration
- Admin shell
src/layouts/AdminLayout.vue - Login and registration
src/views/admin/LoginView.vue - Admin dashboard
src/views/admin/AdminDashboardView.vue - Reservations calendar
src/views/admin/AdminCalendarView.vue - Catalog editor
src/views/admin/AdminCatalogEditView.vue
Shared application state
- Reservation state
src/stores/reservationStore.ts - Admin auth state
src/stores/authStore.ts
External services
- Browser storage
- Supabase client
src/lib/supabase.ts - Supabase backend
Other components
- Customers
- Owners
- Route dispatch
src/router/index.ts
Connections 21
- Customers → Route dispatch: open app
- Route dispatch → Home and contact: dispatches routes
src/router/index.ts - Route dispatch → Cabin booking: dispatches routes
src/router/index.ts - Route dispatch → Camping booking: dispatches routes
src/router/index.ts - Route dispatch → Restaurant booking: dispatches routes
src/router/index.ts - Cabin booking → Reservation state: updates state
src/views/client/cabana/CabanaStep2View.vue - Camping booking → Reservation state: updates state
src/views/client/camping/CampingStep4View.vue - Restaurant booking → Reservation state: updates state
src/views/client/restaurante/RestaurantStep2View.vue - Owners → Route dispatch: open admin
- Route dispatch → Admin shell: dispatches routes
src/router/index.ts - Route dispatch → Login and registration: dispatches routes
src/router/index.ts - Route dispatch → Admin dashboard: dispatches routes
src/router/index.ts - Route dispatch → Reservations calendar: dispatches routes
src/router/index.ts - Route dispatch → Catalog editor: dispatches routes
src/router/index.ts - Route dispatch → Admin auth state: checks session
src/router/index.ts - Login and registration → Admin auth state: authenticates
src/views/admin/LoginView.vue - Admin auth state → Browser storage: reads and writes
src/stores/authStore.ts - Reservations calendar → Reservation state: uses reservation data
- Catalog editor → Supabase backend: saves catalog
- Reservation state → Supabase backend: syncs reservations
- Supabase client → Supabase backend: connects to