How jakhon0402/bim-project works
This is a React administration dashboard for tracking income, outgoing transactions, inventory, categories, and employees, with login and statistics. Users enter through the routed application, work in domain pages backed by Redux slices, and those slices call an HTTP API; shared tables and modals support record management. The source index and excerpts establish the main routes and several state/API connections, but many page and slice implementations were not sampled, so their internal relationships are shown only where imports or excerpts support them.
Main entry points: App.jsx Routed dashboard · ProTable.jsx Data table · Api.js API client · store.js Redux store
Components 24
Application shell
- Routed dashboard
src/App.jsx
Business records
- Statistics
src/pages/StatisticsPage.jsx - Income records
src/pages/IncomesPage/IncomesPage.jsx - Outgoing records
src/pages/OutcomesPage/OutgoingsPage.jsx - Inventory
src/pages/InventoryPage/InventoryPage.jsx - Categories
src/pages/Categories/CategoriesPage.jsx
People and access
- Employee directory
src/pages/EmployeesPage/EmployeesPage.jsx - Employee detail
src/pages/EmployeesPage/EmployeePage.jsx - Login
src/pages/Login/LoginPage.jsx
State and services
- Period aggregation
src/utils/statistics.js - Income state
src/pages/IncomesPage/incomesSlice.js - Outgoing state
src/pages/OutcomesPage/outcomesSlice.js - Inventory state
src/pages/InventoryPage/inventorySlice.js - Category state
src/pages/Categories/categoriesSlice.js - Employee state
src/pages/EmployeesPage/employeesSlice.js - Authentication state
src/pages/Login/authSlice.js - Redux store
src/store/store.js - API client
src/config/Api.js
Shared interface
- Data table
src/components/ProTable.jsx - Create form
src/components/Modals/CreateModal.jsx - Edit form
src/components/Modals/EditModal.jsx - Delete confirmation
src/components/Modals/DeleteModal.jsx
Other components
- Dashboard user
- Application API
Connections 41
- Dashboard user → Routed dashboard: uses
- Routed dashboard → Income records: routes to
src/App.jsx - Routed dashboard → Outgoing records: routes to
src/App.jsx - Routed dashboard → Statistics: routes to
src/App.jsx - Routed dashboard → Categories: routes to
src/App.jsx - Routed dashboard → Employee directory: routes to
src/App.jsx - Routed dashboard → Employee detail: routes to
src/App.jsx - Routed dashboard → Inventory: routes to
src/App.jsx - Routed dashboard → Authentication state: dispatches
src/App.jsx - Income records → Income state: uses
src/pages/IncomesPage/IncomesPage.jsx - Outgoing records → Outgoing state: uses
src/pages/OutcomesPage/OutgoingsPage.jsx - Inventory → Inventory state: uses
src/pages/InventoryPage/InventoryPage.jsx - Categories → Category state: uses
src/pages/Categories/CategoriesPage.jsx - Employee directory → Employee state: uses
src/pages/EmployeesPage/EmployeesPage.jsx - Employee detail → Employee state: uses
src/pages/EmployeesPage/EmployeePage.jsx - Login → Authentication state: uses
src/pages/Login/LoginPage.jsx - Income state → API client: calls
src/pages/IncomesPage/incomesSlice.js - Outgoing state → API client: calls
src/pages/OutcomesPage/outcomesSlice.js - Inventory state → API client: calls
src/pages/InventoryPage/inventorySlice.js - Category state → API client: calls
src/pages/Categories/categoriesSlice.js - Employee state → API client: calls
src/pages/EmployeesPage/employeesSlice.js - Authentication state → API client: calls
src/pages/Login/authSlice.js - API client → Application API: sends requests
- Redux store → Authentication state: registers reducer
src/store/store.js - Redux store → Category state: registers reducer
src/store/store.js - Redux store → Income state: registers reducer
src/store/store.js - Redux store → Outgoing state: registers reducer
src/store/store.js - Redux store → Employee state: registers reducer
src/store/store.js - Redux store → Inventory state: registers reducer
src/store/store.js - Statistics → Income state: reads
src/pages/StatisticsPage.jsx - Statistics → Outgoing state: reads
src/pages/StatisticsPage.jsx - Statistics → Period aggregation: calculates with
src/pages/StatisticsPage.jsx - Income records → Data table: renders
src/pages/IncomesPage/IncomesPage.jsx - Outgoing records → Data table: renders
src/pages/OutcomesPage/OutgoingsPage.jsx - Inventory → Data table: renders
src/pages/InventoryPage/InventoryPage.jsx - Categories → Data table: renders
src/pages/Categories/CategoriesPage.jsx - Employee directory → Data table: renders
src/pages/EmployeesPage/EmployeesPage.jsx - Data table → Create form: opens
src/components/ProTable.jsx - Data table → Edit form: renders
src/components/ProTable.jsx - Data table → Delete confirmation: uses
src/components/ProTable.jsx - Create form → API client: uploads file
src/components/Modals/CreateModal.jsx