How cuongvu0207/datn works
This is a browser-based retail management frontend: staff sign in, use routed workspaces for sales, inventory and imports, customers, invoices, finance, pricing, and demand forecasting, with results presented in tables, charts, or payment notifications. React pages own feature workflows and call shared API services; layout, theme, formatting, and pagination support those workflows. Forecasting also has a Python service in the tree, but its invocation and relationship to the forecast page are not shown, so that link is omitted. Edges reflect imports and calls visible in excerpts or the source index; unsampled feature internals are not inferred.
Main entry points: App.jsx Routes and access · api.js HTTP API config · MainLayout.jsx Main workspace · SalesPage.jsx Sales checkout
Components 28
Application shell
- React entry
FE/src/main.jsx - Routes and access
FE/src/App.jsx - Main workspace
FE/src/layouts/MainLayout.jsx - Sign in
FE/src/pages/LoginPage.jsx
Sales and invoices
- Sales checkout
FE/src/pages/SalesPage.jsx - Customer and cart panel
FE/src/components/sale/CustomerPanel.jsx - Invoice printing
FE/src/components/sale/printInvoice.js - Invoice history
FE/src/pages/InvoiceListPage.jsx - Invoice table
FE/src/components/invoice/InvoiceTable.jsx - Payment notification
FE/src/pages/PaymentNotification.jsx
Products and imports
- Product catalog
FE/src/pages/ProductListPage.jsx - Product editing
FE/src/components/common/AddProductCard.jsx - Price management
FE/src/pages/SetPricePage.jsx - Import records
FE/src/pages/ImportPage.jsx - Import processing
FE/src/pages/ImportDetailPage.jsx - Import list
FE/src/components/import/ImportTableList.jsx
Store operations
- Customer management
FE/src/pages/CustomerPage.jsx - Staff management
FE/src/pages/StaffPage.jsx - Finance reports
FE/src/pages/FinancePage.jsx - Dashboard
FE/src/pages/HomePage.jsx - Demand forecasts
FE/src/pages/DemandForecastPage.jsx - Forecast service
FE/ProphetService.py
Shared services
- Theme state
FE/src/context/ThemeContext.jsx - HTTP API config
FE/src/services/api.js - Format utilities
FE/src/utils/formatters.js - Table pagination
FE/src/components/common/TablePagination.jsx
Other components
- Store staff
- Retail API
Connections 40
- Store staff → React entry: opens
FE/src/main.jsx - React entry → Routes and access: renders
FE/src/main.jsx - Routes and access → Theme state: provides
FE/src/App.jsx - Routes and access → Sign in: routes to
FE/src/App.jsx - Routes and access → Sales checkout: routes to
FE/src/App.jsx - Routes and access → Invoice history: routes to
FE/src/App.jsx - Routes and access → Product catalog: routes to
FE/src/App.jsx - Routes and access → Price management: routes to
FE/src/App.jsx - Routes and access → Import records: routes to
FE/src/App.jsx - Routes and access → Import processing: routes to
FE/src/App.jsx - Routes and access → Customer management: routes to
FE/src/App.jsx - Routes and access → Staff management: routes to
FE/src/App.jsx - Routes and access → Finance reports: routes to
FE/src/App.jsx - Routes and access → Dashboard: routes to
FE/src/App.jsx - Routes and access → Demand forecasts: routes to
FE/src/App.jsx - Routes and access → Payment notification: routes to
FE/src/App.jsx - Sales checkout → Main workspace: renders within
FE/src/pages/SalesPage.jsx - Dashboard → Main workspace: renders within
FE/src/pages/HomePage.jsx - Finance reports → Main workspace: renders within
FE/src/pages/FinancePage.jsx - Customer management → Main workspace: renders within
FE/src/pages/CustomerPage.jsx - Import processing → Main workspace: renders within
FE/src/pages/ImportDetailPage.jsx - Sales checkout → Customer and cart panel: renders
FE/src/pages/SalesPage.jsx - Customer and cart panel → Invoice printing: calls
FE/src/components/sale/CustomerPanel.jsx - Invoice history → Invoice table: renders
FE/src/pages/InvoiceListPage.jsx - Import records → Import list: renders
FE/src/pages/ImportPage.jsx - Import processing → Product editing: uses
FE/src/pages/ImportDetailPage.jsx - Invoice history → HTTP API config: uses
FE/src/pages/InvoiceListPage.jsx - Sales checkout → HTTP API config: uses
FE/src/pages/SalesPage.jsx - Customer management → HTTP API config: uses
FE/src/pages/CustomerPage.jsx - Finance reports → HTTP API config: uses
FE/src/pages/FinancePage.jsx - Dashboard → HTTP API config: uses
FE/src/pages/HomePage.jsx - Import records → HTTP API config: uses
FE/src/pages/ImportPage.jsx - Import processing → HTTP API config: uses
FE/src/pages/ImportDetailPage.jsx - HTTP API config → Retail API: configures API
FE/src/services/api.js - Invoice table → Format utilities: formats values
FE/src/components/invoice/InvoiceTable.jsx - Import list → Format utilities: formats values
FE/src/components/import/ImportTableList.jsx - Dashboard → Format utilities: formats values
FE/src/pages/HomePage.jsx - Finance reports → Format utilities: formats values
FE/src/pages/FinancePage.jsx - Invoice table → Table pagination: renders
FE/src/components/invoice/InvoiceTable.jsx - Demand forecasts → Forecast service