How thanh-desige/nextjs-app works
Alubok is an aluminum-and-glass ERP with an integrated browser CAD design and takeoff module. The main documented flow is designing a door in CAD, generating material quantities, and producing a quote; sales, purchasing, accounting, and platform administration are distinct product areas. The sampled source confirms the CAD engine/store and quantity aggregation behavior, but not all UI or ERP wiring, so uncertain connections are omitted. Several README-listed modules are absent from the supplied tree.
Main entry points: PlatformAdminPage.tsx Platform Admin · BookThietKeBocTachPage.tsx CAD Editor · BookThietKeBocTachModule.tsx CAD Module · useCadEngine.ts CAD Controls
Components 18
CAD Design
- CAD Module
src/TrangChuAlubok/book/BookThietKeBocTachModule.tsx - CAD Editor
src/TrangChuAlubok/book/BookThietKeBocTach/src/BookThietKeBocTachPage.tsx - CAD Controls
src/TrangChuAlubok/book/BookThietKeBocTach/src/hooks/useCadEngine.ts - Engine Store
src/TrangChuAlubok/book/BookThietKeBocTach/src/store/engineStore.ts - CAD Engine
src/TrangChuAlubok/book/BookThietKeBocTach/src/core/engine/CadEngine.ts - Hinged Door Engine
src/TrangChuAlubok/book/BookThietKeBocTach/src/door-engines/hingedDoor/hingedDoor.engine.ts - Quantity Engine
src/TrangChuAlubok/book/BookThietKeBocTach/src/analysis/QuantityEngine.ts - Project Service
src/TrangChuAlubok/book/BookThietKeBocTach/src/domain/projects/ProjectService.ts - Remote Storage
src/TrangChuAlubok/book/BookThietKeBocTach/src/adapters/persistence/RemoteStorageAdapter.ts
ERP Workflows
- Alubok Home
src/TrangChuAlubok/TrangChuAlubok.tsx - Sales Quotes & Orders
src/TrangChuAlubok/book/BookBanHang/src/ui/BookBanHangPage.tsx - Purchasing
src/TrangChuAlubok/book/BookMuaHang/src/ui/BookMuaHangPage.tsx - Accounting
src/TrangChuAlubok/book/BookKeToan/src/ui/BookKeToanPage.tsx
Platform Admin
- Platform Admin
src/PlatformAdmin/PlatformAdminPage.tsx - Tenant Management
src/PlatformAdmin/tenants/TenantsPage.tsx - Storage Governance
src/PlatformAdmin/storage/StoragePage.tsx
Other components
- Designer / User
- Platform Operator
Connections 18
- Designer / User → Alubok Home: opens
- Alubok Home → CAD Module: selects design
- CAD Module → CAD Editor: renders
- Designer / User → CAD Editor: designs
- CAD Editor → CAD Controls: controls
- CAD Controls → Engine Store: reads / updates
- Engine Store → CAD Engine: initializes / delegates
- CAD Engine → Hinged Door Engine: generates door
- Hinged Door Engine → Quantity Engine: supplies quantities
- Designer / User → Sales Quotes & Orders: manages sales
- Designer / User → Purchasing: manages purchasing
- Designer / User → Accounting: manages accounts
- Designer / User → Project Service: manages projects
- Project Service → Remote Storage: persists remotely
- Quantity Engine → Sales Quotes & Orders: supports quotation
- Platform Operator → Platform Admin: administers platform
- Platform Admin → Tenant Management: manages tenants
- Platform Admin → Storage Governance: reviews storage