├── .babelrc ├── .eslintrc.json ├── public ├── favicon.ico └── popup-bg.jpg ├── postcss.config.js ├── lib ├── sortTitles.js ├── spliceData.js ├── dbConnect.js ├── categoryList.js ├── withAuth.js ├── successEffect.js └── querySearch.js ├── models ├── Item.js ├── order.js ├── Seller.js ├── BlogPost.js ├── Product.js └── User.js ├── components ├── Admin │ ├── Feed │ │ ├── DashBorard │ │ │ ├── Chart.js │ │ │ ├── AdminFeed.js │ │ │ ├── DashBorardTop.js │ │ │ └── SingleListItem.js │ │ ├── Product │ │ │ ├── EditeProduct.js │ │ │ ├── ProductFeed.js │ │ │ └── ProductTop.js │ │ ├── Customer │ │ │ ├── CusTomerFeed.js │ │ │ ├── CustomerTop.js │ │ │ ├── CustomerSingleList.js │ │ │ └── CustomerListItem.js │ │ ├── FeedCommunTopHeader.js │ │ └── Items │ │ │ ├── ItemsTop.js │ │ │ ├── ItemSingleList.js │ │ │ └── ItemsFeed.js │ ├── Header │ │ └── RightDropDown.js │ ├── AdminLayout.js │ └── SidedeBar │ │ ├── SidebarItem.js │ │ └── AdminSidebar.js ├── Home │ ├── MiddleAds.js │ ├── TopNewArrival │ │ └── TopNewArrival.js │ ├── Categories │ │ ├── Categories.js │ │ └── SingleCategories.js │ ├── Banner.js │ ├── Features.js │ ├── RecomendedProduct │ │ └── RecomendedProduct.js │ └── Modal │ │ └── Modal.js ├── commonComponents │ ├── MainFooter.js │ ├── MainHeader.js │ └── Breadcrumb.js ├── OrderDetails │ ├── OrderDetailsTop │ │ ├── OrderStepProgress.js │ │ └── OrderDetailsTop.js │ └── OrderDetailsBottom │ │ └── OrderDetailsBottom.js ├── AboutPage │ ├── ourHIstoy │ │ ├── historyPreview │ │ │ └── HistoryPreview.js │ │ └── OurHistory.js │ ├── ourVision │ │ ├── VIsitionSingleLi │ │ │ └── VisionSingleLi.js │ │ └── OurVision.js │ ├── AboutBanner │ │ └── AboutBanner.js │ ├── ourCompany │ │ └── OurCompany.js │ └── ourTeam │ │ ├── SingleTeam │ │ └── SingleTeam.js │ │ └── OurTeam.js ├── Layout.js ├── CartPage │ ├── CartTitleBar.js │ └── ProductNotAvailable.js ├── Copyright.js ├── ShopGridPage │ ├── ShopContent │ │ ├── ShopMain │ │ │ └── ShopMain.js │ │ ├── ShopList │ │ │ └── ShopList.js │ │ └── ShopContent.js │ └── ShopSidebar │ │ └── ShopCategory │ │ └── ShopCategory.js ├── CheckoutPage │ ├── SingleChekoutOrder │ │ └── SingleCheckoutOrder.js │ ├── CheckOrder │ │ └── CheckoutOrder.js │ └── CheckoutFrom │ │ └── CheckoutFrom.js ├── Account │ ├── AccuntSingleCard.js │ └── AccountInfoCard.js ├── ViewPage │ ├── RatingStar.js │ ├── ProductDetails.js │ └── ProductImage.js ├── MyProductPage │ └── NotfoundProduct.js ├── ForgetPage │ └── ForgetFrom.js ├── MyProductTitleBar.js ├── WishListPage │ └── WishListProductNotAvailable.js ├── FaqPage │ ├── OrderReturnFaqData │ │ └── OrderFaqData.js │ ├── PaymentFaqData │ │ └── PaymentFaqData.js │ └── ShoppingFaqData │ │ └── ShoppingFaqData.js ├── EditePaymentmethod │ └── EditePaymentFrom │ │ └── EditePaymentFrom.js ├── PaymentMethod │ └── SinglePaymentCard │ │ └── SinglePaymentCard.js ├── MyReviews │ └── SingleRevies │ │ └── SingleReviews.js ├── OrderReturn │ └── SingleReturnOrder │ │ └── SingleReturnOrder.js ├── ContactPage │ ├── ContactInfo │ │ └── ContactInfo.js │ └── ContactForm │ │ └── ContactForm.js ├── BlogPage │ └── BlogPost │ │ └── BlogPost.js └── ReturnOrderDetails │ └── ReturnOrderMain │ └── ReturnOrdermain.js ├── app └── store.js ├── next.config.js ├── pages ├── jobs.js ├── forget-password.js ├── api-status.js ├── developers.js ├── documentation.js ├── user │ ├── my-write-review.js │ ├── EditePayment-methods.js │ ├── return-order-details.js │ ├── order-complete.js │ ├── order-details.js │ ├── payment-methods.js │ ├── account.js │ ├── order-traking.js │ ├── order-cancel.js │ └── my-reviews.js ├── checkout.js ├── api │ ├── blog │ │ ├── index.js │ │ └── [slug].js │ ├── create-checkout-session.js │ ├── auth │ │ └── [...nextauth].js │ ├── order.js │ ├── hello │ │ ├── [id].js │ │ └── index.js │ ├── productitem.js │ ├── product │ │ ├── index.js │ │ └── [id].js │ ├── wishlist.js │ ├── user.js │ ├── userHistory.js │ └── webhook.js ├── _app.js ├── admin │ ├── users.js │ ├── index.js │ ├── product.js │ ├── customers.js │ └── items.js ├── blog │ ├── [slug].js │ ├── announcement.js │ └── mypost.js ├── login.js ├── contact.js ├── cart.js ├── 404.js ├── success.js ├── about.js ├── shop.js └── index.js ├── .gitignore ├── tailwind.config.js ├── firebase.js ├── README.md ├── package.json ├── styles ├── globals.css └── custom.css ├── slices ├── wishSlice.js └── appSlice.js └── permissions.json /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["next/babel"] 3 | } -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | // { 2 | // "extends": "next/core-web-vitals" 3 | // } 4 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devSahinur/toto-shop/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/popup-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/devSahinur/toto-shop/HEAD/public/popup-bg.jpg -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | } 7 | -------------------------------------------------------------------------------- /lib/sortTitles.js: -------------------------------------------------------------------------------- 1 | const sortTitles = ["Latest", "Price low to high", "Price high to low"] 2 | 3 | export default sortTitles 4 | -------------------------------------------------------------------------------- /models/Item.js: -------------------------------------------------------------------------------- 1 | import mongoose from "mongoose" 2 | 3 | const ItemSchema = new mongoose.Schema({ 4 | id: String, 5 | name: String, 6 | }) 7 | 8 | module.exports = mongoose.models.Item || mongoose.model("Item", ItemSchema) -------------------------------------------------------------------------------- /components/Admin/Feed/DashBorard/Chart.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | 3 | function Chart() { 4 | return ( 5 |
6 |
The Cart Will be comming in sha allah
7 |
8 | ); 9 | } 10 | 11 | export default Chart; 12 | -------------------------------------------------------------------------------- /components/Home/MiddleAds.js: -------------------------------------------------------------------------------- 1 | export const MiddleAds = () => { 2 | return ( 3 |
4 |
5 | 6 |
7 |
8 | ); 9 | }; 10 | -------------------------------------------------------------------------------- /components/commonComponents/MainFooter.js: -------------------------------------------------------------------------------- 1 | import Copyright from "../Copyright"; 2 | import Footer from "../Footer"; 3 | 4 | function MainFooter() { 5 | return ( 6 | <> 7 |