How baobestyasuo263-glitch/24ct2_nguyenquocbao_cnpm_ works
This is a React storefront and operations dashboard: shoppers browse products, manage a cart, check out, and review orders, while employees and administrators manage shop operations. src/App.jsx routes the customer, employee, and admin experiences. The sampled checkout and employee-management code shows direct requests to an external /api service; no backend implementation or persistent database is present in the tree. Other major admin and employee capabilities are represented from the file tree and App’s indexed references; their internal behavior was not sampled.
Main entry points: App.jsx Route dispatcher · Checkout.jsx Checkout · main.jsx React entry · Home.jsx Store home
Components 34
App runtime
- React entry
src/main.jsx - Route dispatcher
src/App.jsx
Customer storefront
- Store home
src/pages/customer/Home.jsx - Product catalog
src/pages/customer/Products.jsx - Product detail
src/pages/customer/ProductDetail.jsx - Shopping cart
src/pages/customer/Cart.jsx - Checkout
src/pages/customer/Checkout.jsx - Customer orders
src/pages/customer/Orders.jsx - Order invoice
src/pages/customer/Invoice.jsx - Customer account
src/pages/customer/Profile.jsx - Customer access
src/pages/customer/Login.jsx - Registration
src/pages/customer/Register.jsx - Sample products
src/data/products.js
Employee operations
- Employee access
src/pages/employee/Login.jsx - Employee dashboard
src/pages/employee/Dashboard.jsx - Product operations
src/pages/employee/Products.jsx - Inventory operations
src/pages/employee/Inventory.jsx - Order operations
src/pages/employee/Orders.jsx - Customer operations
src/pages/employee/Customers.jsx - Employee profile
src/pages/employee/Profile.jsx - Employee statistics
src/pages/employee/Statistics.jsx - Support desk
src/pages/employee/Support.jsx
Admin management
- Admin dashboard
src/pages/admin/Dashboard.jsx - Product management
src/pages/admin/Products.jsx - Customer management
src/pages/admin/Customers.jsx - Employee management
src/pages/admin/Employees.jsx - Inventory management
src/pages/admin/Inventory.jsx - Order management
src/pages/admin/Orders.jsx - Payment management
src/pages/admin/Payments.jsx - Promotions
src/pages/admin/Promotions.jsx - Categories
src/pages/admin/Categories.jsx - Reviews
src/pages/admin/Reviews.jsx
Other components
- Shopper or staff
- Shop API
Connections 37
- Shopper or staff → React entry: opens app
src/main.jsx - React entry → Route dispatcher: renders
src/main.jsx - Route dispatcher → Store home: routes to
src/App.jsx - Route dispatcher → Customer access: routes to
src/App.jsx - Route dispatcher → Registration: routes to
src/App.jsx - Route dispatcher → Product catalog: routes to
src/App.jsx - Route dispatcher → Product detail: routes to
src/App.jsx - Route dispatcher → Shopping cart: routes to
src/App.jsx - Route dispatcher → Checkout: routes to
src/App.jsx - Route dispatcher → Customer orders: routes to
src/App.jsx - Route dispatcher → Order invoice: routes to
src/App.jsx - Route dispatcher → Customer account: routes to
src/App.jsx - Route dispatcher → Employee access: routes to
src/App.jsx - Route dispatcher → Employee dashboard: routes to
src/App.jsx - Route dispatcher → Product operations: routes to
src/App.jsx - Route dispatcher → Order operations: routes to
src/App.jsx - Route dispatcher → Customer operations: routes to
src/App.jsx - Route dispatcher → Support desk: routes to
src/App.jsx - Route dispatcher → Admin dashboard: routes to
src/App.jsx - Route dispatcher → Product management: routes to
src/App.jsx - Route dispatcher → Employee management: routes to
src/App.jsx - Route dispatcher → Inventory management: routes to
src/App.jsx - Route dispatcher → Payment management: routes to
src/App.jsx - Route dispatcher → Inventory operations: routes to
src/App.jsx - Route dispatcher → Employee profile: routes to
src/App.jsx - Route dispatcher → Employee statistics: routes to
src/App.jsx - Route dispatcher → Customer management: routes to
src/App.jsx - Route dispatcher → Order management: routes to
src/App.jsx - Route dispatcher → Promotions: routes to
src/App.jsx - Route dispatcher → Categories: routes to
src/App.jsx - Route dispatcher → Reviews: routes to
src/App.jsx - Store home → Sample products: reads sample data
src/pages/customer/Home.jsx - Checkout → Shop API: submits order
src/pages/customer/Checkout.jsx - Checkout → Shop API: checks promotion
src/pages/customer/Checkout.jsx - Product operations → Shop API: creates product
src/pages/employee/Products.jsx - Employee management → Shop API: manages employees
src/pages/admin/Employees.jsx - Product management → Shop API: updates product
src/pages/admin/Products.jsx