From a2c8ca6b61907915c856125de9a30d701df41798 Mon Sep 17 00:00:00 2001 From: Jieren Chen Date: Fri, 20 Sep 2024 10:34:32 -0400 Subject: [PATCH] clean out all the stuff we don't use --- .env.example | 14 +-- app/[page]/layout.tsx | 12 --- app/[page]/opengraph-image.tsx | 11 -- app/[page]/page.tsx | 45 -------- app/search/[collection]/opengraph-image.tsx | 11 -- app/search/[collection]/page.tsx | 48 --------- app/search/children-wrapper.tsx | 10 -- app/search/layout.tsx | 24 ----- app/search/loading.tsx | 18 ---- app/search/page.tsx | 39 ------- components/cart/add-to-cart.tsx | 2 +- components/cart/cart-context.tsx | 3 +- components/cart/delete-item-button.tsx | 2 +- components/cart/edit-item-quantity-button.tsx | 2 +- components/cart/open-cart.tsx | 2 +- components/layout/footer-menu.tsx | 2 +- components/layout/navbar/currency.tsx | 2 +- components/layout/navbar/index.tsx | 35 +----- components/layout/navbar/mobile-menu.tsx | 100 ------------------ components/layout/navbar/search.tsx | 40 ------- components/layout/product-grid-items.tsx | 2 +- components/product/gallery.tsx | 2 +- components/product/product-description.tsx | 2 +- components/product/variant-selector.tsx | 2 +- components/wrapper.tsx | 2 +- lib/fourthwall/index.ts | 2 +- 26 files changed, 23 insertions(+), 411 deletions(-) delete mode 100644 app/[page]/layout.tsx delete mode 100644 app/[page]/opengraph-image.tsx delete mode 100644 app/[page]/page.tsx delete mode 100644 app/search/[collection]/opengraph-image.tsx delete mode 100644 app/search/[collection]/page.tsx delete mode 100644 app/search/children-wrapper.tsx delete mode 100644 app/search/layout.tsx delete mode 100644 app/search/loading.tsx delete mode 100644 app/search/page.tsx delete mode 100644 components/layout/navbar/mobile-menu.tsx delete mode 100644 components/layout/navbar/search.tsx diff --git a/.env.example b/.env.example index 9ff0463db..292128a6a 100644 --- a/.env.example +++ b/.env.example @@ -1,7 +1,7 @@ -COMPANY_NAME="Vercel Inc." -TWITTER_CREATOR="@vercel" -TWITTER_SITE="https://nextjs.org/commerce" -SITE_NAME="Next.js Commerce" -SHOPIFY_REVALIDATION_SECRET="" -SHOPIFY_STOREFRONT_ACCESS_TOKEN="" -SHOPIFY_STORE_DOMAIN="[your-shopify-store-subdomain].myshopify.com" +# API specifics +NEXT_PUBLIC_FW_API_URL="https://api.staging.fourthwall.com" + +# Site specifics +NEXT_PUBLIC_FW_COLLECTION="launch" +NEXT_PUBLIC_FW_PUBLIC_TOKEN="" +NEXT_PUBLIC_FW_CHECKOUT="https://jieren-shop.staging.fourthwall.com" diff --git a/app/[page]/layout.tsx b/app/[page]/layout.tsx deleted file mode 100644 index 50614b5b1..000000000 --- a/app/[page]/layout.tsx +++ /dev/null @@ -1,12 +0,0 @@ -import Footer from 'components/layout/footer'; - -export default function Layout({ children }: { children: React.ReactNode }) { - return ( - <> -
-
{children}
-
-