How somdaven66/skincarevueproject works
SkincareVueProject is a client-side skincare storefront with customer browsing, product details, cart and wishlist, checkout/order tracking, plus administration for products, orders, users, and settings. The main flow routes visitors into storefront pages, lets them select catalog items and maintain cart state, then records orders for customer and admin views. Product and collection data are local TypeScript data; cart and order state use Pinia with browser storage. The excerpts support the app shell, routing, product-detail, checkout, and several store relationships; other routes and admin capabilities are included based on the documented route map and source index, with uncertain links omitted.
Main entry points: index.ts Page routing · AdminLayout.vue Admin layout · Products.ts Product catalog · ProductDetail.vue Product details
Components 27
Storefront experience
- App shell
src/App.vue - Page routing
src/components/router/index.ts - Home page
src/components/view/Home.vue - Account pages
src/components/view/Login.vue - Customer profile
src/components/view/Profile.vue - Customer navigation
src/components/layout/Afterlognav.vue
Catalog and merchandising
- Product browsing
src/view/ProductCart.vue - Product details
src/view/ProductDetail.vue - Collections
src/components/view/Collection.vue - Promotions
src/components/SummerDis.vue
Shopping and orders
- Cart store
src/store/Card.ts - Wishlist store
src/store/wishlist.ts - Cart page
src/components/view/Addtocard.vue - Checkout
src/components/view/Checkout.vue - Order store
src/store/orders.ts - Order history
src/components/view/Myorders.vue
Administration
- Admin layout
src/components/layout/AdminLayout.vue - Product management
src/components/admin/AdminProduct.vue - Product editing
src/components/admin/AdminEditproduct.vue - Order management
src/components/admin/Adminorder.vue - Admin dashboard
src/components/admin/AdminDashboard.vue - User management
src/components/admin/AdminUser.vue - Admin settings
src/components/admin/AdminSettings.vue
Client state and data
- Product catalog
src/data/Products.ts - Collection data
src/data/Collections.ts - Product types
src/types/produce.ts
Other components
- Shopper
Connections 36
- Shopper → App shell: opens
- App shell → Page routing: mounts routes
src/main.ts - App shell → Customer navigation: shows
src/App.vue - Page routing → Home page: routes to
src/components/router/index.ts - Page routing → Product browsing: routes to
src/components/router/index.ts - Page routing → Product details: routes to
src/components/router/index.ts - Page routing → Collections: routes to
src/components/router/index.ts - Page routing → Account pages: routes to
src/components/router/index.ts - Page routing → Customer profile: routes to
src/components/router/index.ts - Page routing → Cart page: routes to
src/components/router/index.ts - Page routing → Checkout: routes to
src/components/router/index.ts - Page routing → Order history: routes to
src/components/router/index.ts - Home page → Promotions: renders
src/components/view/Home.vue - Product details → Product catalog: reads products
src/view/ProductDetail.vue - Product details → Cart store: adds item
src/view/ProductDetail.vue - Product details → Wishlist store: toggles item
src/view/ProductDetail.vue - Product browsing → Product catalog: reads products
src/view/ProductCart.vue - Product catalog → Product types: typed by
src/data/Products.ts - Collections → Collection data: reads collections
- Customer navigation → Cart store: loads cart
src/components/layout/Afterlognav.vue - Customer navigation → Wishlist store: loads wishlist
src/components/layout/Afterlognav.vue - Cart page → Cart store: uses cart
- Checkout → Cart store: reads cart
src/components/view/Checkout.vue - Checkout → Order store: creates order
src/components/view/Checkout.vue - Order history → Order store: reads orders
src/components/view/Myorders.vue - Page routing → Admin layout: routes admin
src/components/router/index.ts - Admin layout → Product management: shows section
- Admin layout → Order management: shows section
- Admin layout → Admin dashboard: shows section
- Admin layout → User management: shows section
- Admin layout → Admin settings: shows section
- Product management → Product catalog: manages products
src/components/admin/AdminProduct.vue - Product management → Product editing: opens editor
- Order management → Order store: uses orders
src/components/admin/Adminorder.vue - Admin dashboard → Order store: reads orders
src/components/admin/AdminDashboard.vue - Admin dashboard → Product catalog: reads products
src/components/admin/AdminDashboard.vue