How banhluudanhphuoc/projectptsport_fe works
PT Sports is a React storefront with a separate administration interface. Shoppers browse the catalog, view products, manage a cart, and proceed to checkout; account, wishlist, and news pages provide related experiences. Administrators have routes for catalog, customer, order, discount, news, and dashboard work. The sampled files show route dispatch, storefront API calls, and layout dependencies; many admin page implementations were not sampled, so their internal relationships are not inferred.
Main entry points: router.js Route Dispatch · masterLayout/index.js Store Layout · productDetail/index.js Product Detail · blogsPage/index.js News Pages
Components 26
Application Shell
- Route Dispatch
src/router.js - Route Keys
src/utils/router.js - Translations
src/i18n.js
Storefront
- Store Layout
src/pages/users/theme/masterLayout/index.js - Home & Browse
src/pages/users/homePage/index.js - Category Listing
src/pages/users/categoryPage/index.js - Product Detail
src/pages/users/productDetail/index.js - Shopping Cart
src/pages/users/cartPage/index.js - Checkout
src/pages/users/checkoutPage/index.js - Order Confirmation
src/pages/users/confirmation/index.js - Customer Accounts
src/pages/users/profileCustomer/index.js - Wishlist
src/pages/users/wishList/index.js - News Pages
src/pages/users/blogsPage/index.js
Administration
- Admin Layout
src/pages/admin/theme/masterLayoutAdmin/index.js - Catalog Management
src/pages/admin/products - Order Management
src/pages/admin/orders - Customer Management
src/pages/admin/customers - Content & Promotions
src/pages/admin/news - Sales Dashboard
src/pages/admin/dashBoard/index.js - Order Analytics
src/components/admin/OrderAmountComparisonTable.js
Shared UI
- Page Banner
src/pages/users/theme/banner/index.js - UI Behaviors
src/style/js/main.js - Sticky Scrolling
src/style/js/jquery.sticky.js
Other components
- Shopper
- Administrator
- Backend API
Connections 17
- Shopper → Route Dispatch: opens pages
src/router.js - Administrator → Route Dispatch: opens admin
src/router.js - Route Dispatch → Store Layout: renders storefront
src/router.js - Route Dispatch → Product Detail: routes to
src/router.js - Route Dispatch → Category Listing: routes to
src/router.js - Route Dispatch → News Pages: routes to
src/router.js - Route Dispatch → Admin Layout: renders admin
src/router.js - Route Dispatch → Catalog Management: routes to edit
src/router.js - Route Dispatch → Order Management: routes to details
src/router.js - Route Dispatch → Customer Management: routes to edit
src/router.js - Route Dispatch → Content & Promotions: routes to edit
src/router.js - Home & Browse → Backend API: updates cart
src/pages/users/homePage/index.js - Checkout → Backend API: loads cart
src/pages/users/checkoutPage/index.js - Product Detail → Page Banner: renders
src/pages/users/productDetail/index.js - News Pages → Page Banner: renders
- Store Layout → UI Behaviors: loads behavior
src/pages/users/theme/masterLayout/index.js - Store Layout → Sticky Scrolling: loads plugin
src/pages/users/theme/masterLayout/index.js