From a7a3aa2776d1fc698971d5724819d259bca568e1 Mon Sep 17 00:00:00 2001 From: Aya <90342033+Aya-X@users.noreply.github.com> Date: Wed, 27 Sep 2023 14:20:34 +0800 Subject: [PATCH] chore: Add the rest of code --- index.html | 24 +- package-lock.json | 105 ++++ package.json | 20 +- peteats.txt | 48 ++ src/App.jsx | 1 + src/components/AreaItem.jsx | 15 +- src/components/AreaList.jsx | 4 +- src/components/CategoryList.jsx | 4 +- src/components/CustomAsyncSelect.jsx | 96 ++- src/components/LayoutFooter.jsx | 145 ++++- src/components/LayoutNavbar.jsx | 194 ++++-- src/components/MenuItem.jsx | 16 +- src/components/MenuModalContent.jsx | 138 +++-- src/components/SectionShopInfo.jsx | 17 +- src/components/ShopList.jsx | 18 +- src/draft/CustomOptionDialog.jsx | 158 +++++ src/draft/CustomSelect.jsx | 50 ++ src/draft/DevDrawer.jsx | 12 +- src/draft/DevHome.jsx | 195 ++++-- src/draft/DevLogin.jsx | 223 +++++-- src/draft/DevMe.jsx | 142 ++++- src/draft/DevPage.jsx | 29 +- src/draft/DevReset.jsx | 66 +- src/draft/DevRoutesConfig.jsx | 295 +++++++++ src/draft/DevSetting.jsx | 94 +-- src/draft/DevShopList.jsx | 15 +- src/draft/DevSignup.jsx | 74 ++- src/draft/Draft10.jsx | 6 +- src/draft/Draft2.jsx | 4 +- src/draft/Draft3.jsx | 78 ++- src/draft/Draft4.jsx | 337 +++++++++- src/draft/Draft5.jsx | 548 +++++++++++++++-- src/draft/Draft6.jsx | 104 +++- src/draft/Draft7.jsx | 119 +++- src/draft/Draft8.jsx | 272 ++++++-- src/draft/Draft9.jsx | 206 ++++++- src/draft/DraftAreaList.jsx | 4 +- src/draft/DraftCategoryList.jsx | 4 +- src/draft/DraftHomeArea.jsx | 4 +- src/draft/DraftNavbar.jsx | 86 +++ src/draft/DraftShopList-2.jsx | 9 +- src/draft/DraftShopList.jsx | 16 +- src/draft/DraftSubShopCart.jsx | 550 +++++++++++++++++ src/draft/mock copy.json | 52 ++ src/draft/mock.json | 25 + src/hooks/useAuth.js | 3 + src/hooks/useCounter.js | 2 +- src/images/bg-home-claw.ico | Bin 0 -> 112176 bytes src/images/favicon.ico | Bin 0 -> 4286 bytes src/images/favicon.svg | Bin 1524 -> 112176 bytes src/images/figma-edited.png | Bin 0 -> 50092 bytes src/images/icon-figma.png | Bin 0 -> 23551 bytes src/images/icon-github.svg | 3 + src/images/img-user.svg | 8 + src/images/logo-type.svg | 12 + src/images/rocketcamp.png | Bin 0 -> 5854 bytes .../rocketcamp_edited-removebg-preview.png | Bin 0 -> 11452 bytes src/images/style=Figma.svg | 6 + src/images/vite.svg | 15 + src/index.css | 6 +- src/pages/HomeArea.jsx | 17 +- src/pages/HomeCategory.jsx | 16 +- src/pages/HomeHero.jsx | 43 +- src/pages/HomeIntro.jsx | 28 +- src/pages/HomeShops.jsx | 18 +- src/pages/LayoutMain.jsx | 67 +- src/pages/PageHome.jsx | 68 +- src/pages/PageShops.jsx | 15 +- src/pages/RouteNeedAuth.jsx | 19 + src/pages/RoutesConfig.jsx | 143 ++--- src/pages/SubCartLayout.jsx | 7 + src/pages/SubShopCart.jsx | 582 +++++++++++++++++- src/pages/SubShopLayout.jsx | 34 +- src/pages/SubShopMenu.jsx | 77 ++- src/utils/AxiosInterceptors.jsx | 74 ++- src/utils/ImageErrorHandler.jsx | 21 + src/utils/helpers.js | 119 +++- src/utils/http.js | 13 +- tailwind.config.js | 29 +- vite.config.js | 4 +- 80 files changed, 5215 insertions(+), 856 deletions(-) create mode 100644 peteats.txt create mode 100644 src/draft/CustomOptionDialog.jsx create mode 100644 src/draft/CustomSelect.jsx create mode 100644 src/draft/DevRoutesConfig.jsx create mode 100644 src/draft/DraftNavbar.jsx create mode 100644 src/draft/DraftSubShopCart.jsx create mode 100644 src/draft/mock copy.json create mode 100644 src/draft/mock.json create mode 100644 src/hooks/useAuth.js create mode 100644 src/images/bg-home-claw.ico create mode 100644 src/images/favicon.ico create mode 100644 src/images/figma-edited.png create mode 100644 src/images/icon-figma.png create mode 100644 src/images/icon-github.svg create mode 100644 src/images/img-user.svg create mode 100644 src/images/logo-type.svg create mode 100644 src/images/rocketcamp.png create mode 100644 src/images/rocketcamp_edited-removebg-preview.png create mode 100644 src/images/style=Figma.svg create mode 100644 src/images/vite.svg create mode 100644 src/pages/RouteNeedAuth.jsx create mode 100644 src/pages/SubCartLayout.jsx create mode 100644 src/utils/ImageErrorHandler.jsx diff --git a/index.html b/index.html index 78629bf..9826ee6 100644 --- a/index.html +++ b/index.html @@ -1,19 +1,17 @@ +
+ + - - - + - +