How gghosttttt/cafe-spring-front works
cafe-front is a Vue-based café administration frontend. An administrator enters through login, then uses the routed dashboard, product/category management, and order workflows; views delegate data operations to Pinia stores, which use a shared Axios client to communicate with the backend. The README describes only a starter template, so product capabilities are inferred from the routed views and source index. Unsampled view and component relationships are included only where the source index names them; other uncertain connections are omitted.
Main entry points: index.js Route table · productStore.js Product state · Product.jsx Product management · authStore.js Authentication state
Components 23
App shell
- Route table
src/index.js - App shell
src/App.jsx - Sidebar
src/components/global/Sidebar.jsx - Header
src/components/global/Header.jsx
Admin workflows
- Login
src/views/Login.jsx - Dashboard
src/views/Dashboard.jsx - Dashboard widgets
src/components/dashboard - Product management
src/views/Product.jsx - Product editor
src/views/ProductDetail.jsx - Product card
src/components/product/ProductCard.jsx - Category list
src/components/product/CategoryList.jsx - Category modal
src/components/product/CategoryModal.jsx - Order workflow
src/views/Order.jsx - Order history
src/views/OrderDetail.jsx - Global button
src/components/global/BtnGlobal.jsx
Client state
- Authentication state
src/stores/authStore.js - Product state
src/stores/productStore.js - Category state
src/stores/categoryStore.js - Order state
src/stores/orderStore.js
API and feedback
- HTTP client
src/services/api.js - Notifications
src/stores/notyfStore.js
Other components
- Administrator
- Café API
Connections 44
- Administrator → Route table: opens pages
src/index.js - Route table → Login: routes to
src/index.js - Route table → Dashboard: routes to
src/index.js - Route table → Product management: routes to
src/index.js - Route table → Product editor: routes to
src/index.js - Route table → Order workflow: routes to
src/index.js - Route table → Order history: routes to
src/index.js - App shell → Route table: renders routes
src/App.jsx - App shell → Sidebar: renders
src/App.jsx - App shell → Header: renders
src/App.jsx - Sidebar → Authentication state: uses
src/components/global/Sidebar.jsx - Login → Authentication state: authenticates
src/views/Login.jsx - Login → Notifications: reports status
src/views/Login.jsx - Login → Global button: renders
src/views/Login.jsx - Dashboard → Dashboard widgets: renders
src/views/Dashboard.jsx - Product management → Product card: renders
src/views/Product.jsx - Product management → Category list: renders
src/views/Product.jsx - Product management → Category modal: renders
src/views/Product.jsx - Product management → Product state: uses
src/views/Product.jsx - Product management → Category state: uses
src/views/Product.jsx - Product card → Product state: uses
src/components/product/ProductCard.jsx - Category list → Category state: uses
src/components/product/CategoryList.jsx - Category list → Category modal: renders
src/components/product/CategoryList.jsx - Category modal → Global button: renders
src/components/product/CategoryModal.jsx - Product editor → Product state: edits
src/views/ProductDetail.jsx - Product editor → Category state: loads categories
src/views/ProductDetail.jsx - Product editor → Authentication state: loads token
src/views/ProductDetail.jsx - Product editor → Global button: renders
src/views/ProductDetail.jsx - Order workflow → Product state: uses
src/views/Order.jsx - Order workflow → Authentication state: uses
src/views/Order.jsx - Order workflow → Order state: manages orders
src/views/Order.jsx - Order workflow → Global button: renders
src/views/Order.jsx - Order history → Product state: uses
src/views/OrderDetail.jsx - Order history → Authentication state: loads token
src/views/OrderDetail.jsx - Order history → Order state: loads history
src/views/OrderDetail.jsx - Order history → Global button: renders
src/views/OrderDetail.jsx - Authentication state → HTTP client: calls
src/stores/authStore.js - Product state → HTTP client: calls
src/stores/productStore.js - Category state → HTTP client: calls
src/stores/categoryStore.js - Order state → HTTP client: calls
src/stores/orderStore.js - Category state → Notifications: reports results
src/stores/categoryStore.js - Product state → Notifications: reports results
src/stores/productStore.js - Order state → Notifications: reports results
src/stores/orderStore.js - HTTP client → Café API: sends requests
src/services/api.js