@akinon/projectzero 1.32.0-rc.2 → 1.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -8
- package/commands/create.ts +118 -49
- package/dist/commands/create.js +68 -32
- package/package.json +1 -1
- package/tsconfig.json +8 -9
- package/app-template/.editorconfig +0 -7
- package/app-template/.env.example +0 -9
- package/app-template/.eslintignore +0 -1
- package/app-template/.eslintrc.js +0 -31
- package/app-template/.gitattributes +0 -18
- package/app-template/.husky/pre-commit +0 -4
- package/app-template/.lintstagedrc.js +0 -12
- package/app-template/.prettierrc +0 -13
- package/app-template/.releaserc.json +0 -49
- package/app-template/.stylelintrc.json +0 -37
- package/app-template/.vscode/extensions.json +0 -11
- package/app-template/.vscode/launch.json +0 -29
- package/app-template/.yarnrc +0 -1
- package/app-template/CHANGELOG.md +0 -655
- package/app-template/LICENSE +0 -21
- package/app-template/Procfile +0 -1
- package/app-template/README.md +0 -29
- package/app-template/akinon.json +0 -28
- package/app-template/bitbucket-pipelines.yml +0 -54
- package/app-template/build.sh +0 -7
- package/app-template/docs/CHANGELOG.md +0 -85
- package/app-template/docs/advanced-usage.md +0 -43
- package/app-template/docs/basic-setup.md +0 -59
- package/app-template/docs/data-fetching/client/account.md +0 -1064
- package/app-template/docs/data-fetching/client/address.md +0 -805
- package/app-template/docs/data-fetching/client/basket.md +0 -107
- package/app-template/docs/data-fetching/client/checkout.md +0 -904
- package/app-template/docs/data-fetching/client/misc.md +0 -135
- package/app-template/docs/data-fetching/client/product.md +0 -284
- package/app-template/docs/data-fetching/client/user.md +0 -56
- package/app-template/docs/data-fetching/client/wishlist.md +0 -111
- package/app-template/docs/data-fetching/server/category.md +0 -324
- package/app-template/docs/data-fetching/server/flat-page.md +0 -42
- package/app-template/docs/data-fetching/server/list.md +0 -353
- package/app-template/docs/data-fetching/server/menu.md +0 -363
- package/app-template/docs/data-fetching/server/product.md +0 -131
- package/app-template/docs/data-fetching/server/seo.md +0 -44
- package/app-template/docs/data-fetching/server/special-page.md +0 -79
- package/app-template/docs/data-fetching/server/widget.md +0 -218
- package/app-template/docs/delete-account.md +0 -25
- package/app-template/docs/deployment.md +0 -46
- package/app-template/docs/dynamic-route.md +0 -33
- package/app-template/docs/icons.md +0 -52
- package/app-template/docs/localization.md +0 -204
- package/app-template/docs/logging.md +0 -48
- package/app-template/docs/plugins.md +0 -76
- package/app-template/docs/seo-management.md +0 -125
- package/app-template/docs/static-assets.md +0 -36
- package/app-template/docs/widgets.md +0 -127
- package/app-template/global.d.ts +0 -1
- package/app-template/jest.config.ts +0 -34
- package/app-template/next-env.d.ts +0 -6
- package/app-template/next.config.mjs +0 -34
- package/app-template/package.json +0 -97
- package/app-template/plugins.d.ts +0 -1
- package/app-template/postcss.config.js +0 -6
- package/app-template/public/404.png +0 -0
- package/app-template/public/500.png +0 -0
- package/app-template/public/apple-splash-1125-2436.jpg +0 -0
- package/app-template/public/apple-splash-1136-640.jpg +0 -0
- package/app-template/public/apple-splash-1170-2532.jpg +0 -0
- package/app-template/public/apple-splash-1242-2208.jpg +0 -0
- package/app-template/public/apple-splash-1242-2688.jpg +0 -0
- package/app-template/public/apple-splash-1284-2778.jpg +0 -0
- package/app-template/public/apple-splash-1334-750.jpg +0 -0
- package/app-template/public/apple-splash-1536-2048.jpg +0 -0
- package/app-template/public/apple-splash-1620-2160.jpg +0 -0
- package/app-template/public/apple-splash-1668-2224.jpg +0 -0
- package/app-template/public/apple-splash-1668-2388.jpg +0 -0
- package/app-template/public/apple-splash-1792-828.jpg +0 -0
- package/app-template/public/apple-splash-2048-1536.jpg +0 -0
- package/app-template/public/apple-splash-2048-2732.jpg +0 -0
- package/app-template/public/apple-splash-2160-1620.jpg +0 -0
- package/app-template/public/apple-splash-2208-1242.jpg +0 -0
- package/app-template/public/apple-splash-2224-1668.jpg +0 -0
- package/app-template/public/apple-splash-2388-1668.jpg +0 -0
- package/app-template/public/apple-splash-2436-1125.jpg +0 -0
- package/app-template/public/apple-splash-2532-1170.jpg +0 -0
- package/app-template/public/apple-splash-2688-1242.jpg +0 -0
- package/app-template/public/apple-splash-2732-2048.jpg +0 -0
- package/app-template/public/apple-splash-2778-1284.jpg +0 -0
- package/app-template/public/apple-splash-640-1136.jpg +0 -0
- package/app-template/public/apple-splash-750-1334.jpg +0 -0
- package/app-template/public/apple-splash-828-1792.jpg +0 -0
- package/app-template/public/apple-touch-icon-152x152.png +0 -0
- package/app-template/public/apple-touch-icon-167x167.png +0 -0
- package/app-template/public/apple-touch-icon-180x180.png +0 -0
- package/app-template/public/apple-touch-icon.png +0 -0
- package/app-template/public/apple.svg +0 -47
- package/app-template/public/cvv.jpg +0 -0
- package/app-template/public/facebook.svg +0 -3
- package/app-template/public/google.svg +0 -12
- package/app-template/public/icon-192x192.png +0 -0
- package/app-template/public/icon-256x256.png +0 -0
- package/app-template/public/icon-384x384.png +0 -0
- package/app-template/public/icon-512x512.png +0 -0
- package/app-template/public/icon-sprite.svg +0 -528
- package/app-template/public/locales/en/account.json +0 -487
- package/app-template/public/locales/en/auth.json +0 -100
- package/app-template/public/locales/en/basket.json +0 -50
- package/app-template/public/locales/en/category.json +0 -26
- package/app-template/public/locales/en/checkout.json +0 -152
- package/app-template/public/locales/en/common.json +0 -65
- package/app-template/public/locales/en/forgot_password.json +0 -41
- package/app-template/public/locales/en/form.json +0 -5
- package/app-template/public/locales/en/not_found.json +0 -5
- package/app-template/public/locales/en/product.json +0 -39
- package/app-template/public/locales/tr/account.json +0 -487
- package/app-template/public/locales/tr/auth.json +0 -100
- package/app-template/public/locales/tr/basket.json +0 -50
- package/app-template/public/locales/tr/category.json +0 -26
- package/app-template/public/locales/tr/checkout.json +0 -152
- package/app-template/public/locales/tr/common.json +0 -65
- package/app-template/public/locales/tr/forgot_password.json +0 -41
- package/app-template/public/locales/tr/form.json +0 -5
- package/app-template/public/locales/tr/not_found.json +0 -5
- package/app-template/public/locales/tr/product.json +0 -39
- package/app-template/public/logo.svg +0 -29
- package/app-template/public/manifest.json +0 -35
- package/app-template/public/mastercard.png +0 -0
- package/app-template/public/mastersecure.png +0 -0
- package/app-template/public/mfs-client.min.js +0 -3
- package/app-template/public/noimage.jpg +0 -0
- package/app-template/public/safari-pinned-tab.svg +0 -320
- package/app-template/public/ssl-secure.png +0 -0
- package/app-template/public/vbv.png +0 -0
- package/app-template/public/visa.png +0 -0
- package/app-template/public/zepto.min.js +0 -2
- package/app-template/sentry.client.config.ts +0 -16
- package/app-template/sentry.edge.config.ts +0 -3
- package/app-template/sentry.properties +0 -4
- package/app-template/sentry.server.config.ts +0 -3
- package/app-template/setupTests.ts +0 -4
- package/app-template/src/__tests__/index.test.tsx +0 -7
- package/app-template/src/__tests__/tsconfig.json +0 -7
- package/app-template/src/app/[commerce]/[locale]/[currency]/account/address/page.tsx +0 -74
- package/app-template/src/app/[commerce]/[locale]/[currency]/account/change-email/page.tsx +0 -174
- package/app-template/src/app/[commerce]/[locale]/[currency]/account/change-password/page.tsx +0 -206
- package/app-template/src/app/[commerce]/[locale]/[currency]/account/contact/page.tsx +0 -7
- package/app-template/src/app/[commerce]/[locale]/[currency]/account/coupons/page.tsx +0 -210
- package/app-template/src/app/[commerce]/[locale]/[currency]/account/email-verification/page.tsx +0 -5
- package/app-template/src/app/[commerce]/[locale]/[currency]/account/faq/page.tsx +0 -23
- package/app-template/src/app/[commerce]/[locale]/[currency]/account/favourite-products/page.tsx +0 -32
- package/app-template/src/app/[commerce]/[locale]/[currency]/account/layout.tsx +0 -28
- package/app-template/src/app/[commerce]/[locale]/[currency]/account/my-quotations/page.tsx +0 -7
- package/app-template/src/app/[commerce]/[locale]/[currency]/account/orders/[id]/cancellation/page.tsx +0 -255
- package/app-template/src/app/[commerce]/[locale]/[currency]/account/orders/[id]/layout.tsx +0 -5
- package/app-template/src/app/[commerce]/[locale]/[currency]/account/orders/[id]/page.tsx +0 -309
- package/app-template/src/app/[commerce]/[locale]/[currency]/account/orders/page.tsx +0 -137
- package/app-template/src/app/[commerce]/[locale]/[currency]/account/page.tsx +0 -226
- package/app-template/src/app/[commerce]/[locale]/[currency]/account/profile/page.tsx +0 -400
- package/app-template/src/app/[commerce]/[locale]/[currency]/address/stores/page.tsx +0 -271
- package/app-template/src/app/[commerce]/[locale]/[currency]/anonymous-tracking/page.tsx +0 -33
- package/app-template/src/app/[commerce]/[locale]/[currency]/auth/oauth-login/page.tsx +0 -3
- package/app-template/src/app/[commerce]/[locale]/[currency]/auth/page.tsx +0 -76
- package/app-template/src/app/[commerce]/[locale]/[currency]/basket/page.tsx +0 -77
- package/app-template/src/app/[commerce]/[locale]/[currency]/basket-b2b/page.tsx +0 -7
- package/app-template/src/app/[commerce]/[locale]/[currency]/category/[pk]/loading.tsx +0 -53
- package/app-template/src/app/[commerce]/[locale]/[currency]/category/[pk]/page.tsx +0 -16
- package/app-template/src/app/[commerce]/[locale]/[currency]/client-root.tsx +0 -9
- package/app-template/src/app/[commerce]/[locale]/[currency]/contact-us/page.tsx +0 -11
- package/app-template/src/app/[commerce]/[locale]/[currency]/error.tsx +0 -20
- package/app-template/src/app/[commerce]/[locale]/[currency]/flat-page/[pk]/loading.tsx +0 -5
- package/app-template/src/app/[commerce]/[locale]/[currency]/flat-page/[pk]/page.tsx +0 -18
- package/app-template/src/app/[commerce]/[locale]/[currency]/forms/[pk]/generate/page.tsx +0 -48
- package/app-template/src/app/[commerce]/[locale]/[currency]/group-product/[pk]/loading.tsx +0 -5
- package/app-template/src/app/[commerce]/[locale]/[currency]/group-product/[pk]/page.tsx +0 -72
- package/app-template/src/app/[commerce]/[locale]/[currency]/landing-page/[pk]/loading.tsx +0 -5
- package/app-template/src/app/[commerce]/[locale]/[currency]/landing-page/[pk]/page.tsx +0 -23
- package/app-template/src/app/[commerce]/[locale]/[currency]/layout.tsx +0 -78
- package/app-template/src/app/[commerce]/[locale]/[currency]/list/loading.tsx +0 -53
- package/app-template/src/app/[commerce]/[locale]/[currency]/list/page.tsx +0 -16
- package/app-template/src/app/[commerce]/[locale]/[currency]/orders/checkout/page.tsx +0 -140
- package/app-template/src/app/[commerce]/[locale]/[currency]/orders/completed/[token]/layout.tsx +0 -5
- package/app-template/src/app/[commerce]/[locale]/[currency]/orders/completed/[token]/page.tsx +0 -284
- package/app-template/src/app/[commerce]/[locale]/[currency]/page.tsx +0 -50
- package/app-template/src/app/[commerce]/[locale]/[currency]/product/[pk]/loading.tsx +0 -67
- package/app-template/src/app/[commerce]/[locale]/[currency]/product/[pk]/page.tsx +0 -81
- package/app-template/src/app/[commerce]/[locale]/[currency]/pz-not-found/page.tsx +0 -24
- package/app-template/src/app/[commerce]/[locale]/[currency]/special-page/[pk]/loading.tsx +0 -53
- package/app-template/src/app/[commerce]/[locale]/[currency]/special-page/[pk]/page.tsx +0 -25
- package/app-template/src/app/[commerce]/[locale]/[currency]/template.tsx +0 -75
- package/app-template/src/app/[commerce]/[locale]/[currency]/users/email-set-primary/[[...id]]/page.tsx +0 -43
- package/app-template/src/app/[commerce]/[locale]/[currency]/users/password/reset/page.tsx +0 -79
- package/app-template/src/app/[commerce]/[locale]/[currency]/users/registration/account-confirm-email/[[...id]]/page.tsx +0 -43
- package/app-template/src/app/[commerce]/[locale]/[currency]/users/reset/[[...id]]/page.tsx +0 -110
- package/app-template/src/app/[commerce]/[locale]/[currency]/xml-sitemap/[node]/route.ts +0 -25
- package/app-template/src/app/[commerce]/[locale]/[currency]/xml-sitemap/route.ts +0 -37
- package/app-template/src/app/api/cache/route.ts +0 -1
- package/app-template/src/app/api/client/[...slug]/route.ts +0 -1
- package/app-template/src/app/api/form/[...id]/route.ts +0 -7
- package/app-template/src/app/api/logout/route.ts +0 -1
- package/app-template/src/app/api/sentry/route.ts +0 -9
- package/app-template/src/app/api/web-vitals/route.ts +0 -1
- package/app-template/src/app/favicon.ico +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-Black.eot +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-Black.ttf +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-Black.woff +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-Black.woff2 +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-BlackItalic.eot +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-BlackItalic.ttf +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-BlackItalic.woff +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-BlackItalic.woff2 +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-Bold.eot +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-Bold.ttf +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-Bold.woff +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-Bold.woff2 +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-BoldItalic.eot +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-BoldItalic.ttf +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-BoldItalic.woff +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-BoldItalic.woff2 +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-ExtraBold.eot +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-ExtraBold.ttf +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-ExtraBold.woff +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-ExtraBold.woff2 +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-ExtraBoldItalic.eot +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-ExtraBoldItalic.ttf +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-ExtraBoldItalic.woff +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-ExtraBoldItalic.woff2 +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-ExtraLight.eot +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-ExtraLight.ttf +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-ExtraLight.woff +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-ExtraLight.woff2 +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-ExtraLightItalic.eot +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-ExtraLightItalic.ttf +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-ExtraLightItalic.woff +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-ExtraLightItalic.woff2 +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-Italic.eot +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-Italic.ttf +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-Italic.woff +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-Italic.woff2 +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-Light.eot +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-Light.ttf +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-Light.woff +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-Light.woff2 +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-LightItalic.eot +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-LightItalic.ttf +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-LightItalic.woff +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-LightItalic.woff2 +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-Medium.eot +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-Medium.ttf +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-Medium.woff +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-Medium.woff2 +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-MediumItalic.eot +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-MediumItalic.ttf +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-MediumItalic.woff +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-MediumItalic.woff2 +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-Regular.eot +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-Regular.ttf +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-Regular.woff +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-Regular.woff2 +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-SemiBold.eot +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-SemiBold.ttf +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-SemiBold.woff +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-SemiBold.woff2 +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-SemiBoldItalic.eot +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-SemiBoldItalic.ttf +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-SemiBoldItalic.woff +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-SemiBoldItalic.woff2 +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-Thin.eot +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-Thin.ttf +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-Thin.woff +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-Thin.woff2 +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-ThinItalic.eot +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-ThinItalic.ttf +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-ThinItalic.woff +0 -0
- package/app-template/src/assets/fonts/Jost/Jost-ThinItalic.woff2 +0 -0
- package/app-template/src/assets/fonts/Jost/index.scss +0 -269
- package/app-template/src/assets/fonts/index.scss +0 -1
- package/app-template/src/assets/fonts/pz-icon.css +0 -154
- package/app-template/src/assets/fonts/pz-icon.eot +0 -0
- package/app-template/src/assets/fonts/pz-icon.html +0 -456
- package/app-template/src/assets/fonts/pz-icon.scss +0 -300
- package/app-template/src/assets/fonts/pz-icon.svg +0 -144
- package/app-template/src/assets/fonts/pz-icon.ttf +0 -0
- package/app-template/src/assets/fonts/pz-icon.woff +0 -0
- package/app-template/src/assets/fonts/pz-icon.woff2 +0 -0
- package/app-template/src/assets/globals.scss +0 -65
- package/app-template/src/assets/icons/akinon.svg +0 -11
- package/app-template/src/assets/icons/arrow-up.svg +0 -11
- package/app-template/src/assets/icons/bell.svg +0 -1
- package/app-template/src/assets/icons/cart.svg +0 -13
- package/app-template/src/assets/icons/check.svg +0 -19
- package/app-template/src/assets/icons/chevron-down.svg +0 -8
- package/app-template/src/assets/icons/chevron-end.svg +0 -8
- package/app-template/src/assets/icons/chevron-start.svg +0 -8
- package/app-template/src/assets/icons/chevron-up.svg +0 -8
- package/app-template/src/assets/icons/close.svg +0 -12
- package/app-template/src/assets/icons/cvc.svg +0 -54
- package/app-template/src/assets/icons/default.svg +0 -6
- package/app-template/src/assets/icons/directions.svg +0 -14
- package/app-template/src/assets/icons/eye-off.svg +0 -10
- package/app-template/src/assets/icons/eye-on.svg +0 -17
- package/app-template/src/assets/icons/facebook-login.svg +0 -11
- package/app-template/src/assets/icons/facebook.svg +0 -9
- package/app-template/src/assets/icons/giftbox.svg +0 -22
- package/app-template/src/assets/icons/globe.svg +0 -12
- package/app-template/src/assets/icons/google-login.svg +0 -19
- package/app-template/src/assets/icons/google.svg +0 -9
- package/app-template/src/assets/icons/hamburger.svg +0 -5
- package/app-template/src/assets/icons/heart-full.svg +0 -20
- package/app-template/src/assets/icons/heart-stroke.svg +0 -22
- package/app-template/src/assets/icons/info.svg +0 -1
- package/app-template/src/assets/icons/instagram.svg +0 -14
- package/app-template/src/assets/icons/layout-2.svg +0 -7
- package/app-template/src/assets/icons/layout-3.svg +0 -4
- package/app-template/src/assets/icons/logo.svg +0 -24
- package/app-template/src/assets/icons/mail.svg +0 -1
- package/app-template/src/assets/icons/minus.svg +0 -4
- package/app-template/src/assets/icons/money.svg +0 -4
- package/app-template/src/assets/icons/mp-otp.svg +0 -1
- package/app-template/src/assets/icons/pin.svg +0 -16
- package/app-template/src/assets/icons/pinterest.svg +0 -12
- package/app-template/src/assets/icons/plus.svg +0 -5
- package/app-template/src/assets/icons/search.svg +0 -13
- package/app-template/src/assets/icons/share.svg +0 -10
- package/app-template/src/assets/icons/spinner.svg +0 -6
- package/app-template/src/assets/icons/store-pin.svg +0 -14
- package/app-template/src/assets/icons/track-order.svg +0 -1
- package/app-template/src/assets/icons/twitter.svg +0 -11
- package/app-template/src/assets/icons/user.svg +0 -14
- package/app-template/src/assets/icons/whatsapp.svg +0 -45
- package/app-template/src/components/__tests__/Modal.test.tsx +0 -103
- package/app-template/src/components/__tests__/accordion.test.tsx +0 -65
- package/app-template/src/components/__tests__/badge.test.tsx +0 -20
- package/app-template/src/components/__tests__/button.test.tsx +0 -59
- package/app-template/src/components/__tests__/checkbox.test.tsx +0 -57
- package/app-template/src/components/__tests__/file-input.test.tsx +0 -42
- package/app-template/src/components/__tests__/icon.test.tsx +0 -39
- package/app-template/src/components/__tests__/input.test.tsx +0 -69
- package/app-template/src/components/__tests__/language-select.test.tsx +0 -81
- package/app-template/src/components/__tests__/link.test.tsx +0 -65
- package/app-template/src/components/__tests__/price.test.tsx +0 -72
- package/app-template/src/components/__tests__/radio.test.tsx +0 -52
- package/app-template/src/components/__tests__/select.test.tsx +0 -115
- package/app-template/src/components/__tests__/tab.test.tsx +0 -101
- package/app-template/src/components/accordion.tsx +0 -64
- package/app-template/src/components/badge.tsx +0 -21
- package/app-template/src/components/button.tsx +0 -46
- package/app-template/src/components/canonical-url.tsx +0 -21
- package/app-template/src/components/carousel-core.tsx +0 -42
- package/app-template/src/components/checkbox.tsx +0 -29
- package/app-template/src/components/currency-select.tsx +0 -81
- package/app-template/src/components/custom-loader.tsx +0 -21
- package/app-template/src/components/dynamic-form.tsx +0 -17
- package/app-template/src/components/file-input.tsx +0 -8
- package/app-template/src/components/generate-form-fields.tsx +0 -349
- package/app-template/src/components/icon.tsx +0 -18
- package/app-template/src/components/index.ts +0 -41
- package/app-template/src/components/input.tsx +0 -122
- package/app-template/src/components/language-select.tsx +0 -33
- package/app-template/src/components/link.tsx +0 -53
- package/app-template/src/components/loader-spinner.tsx +0 -23
- package/app-template/src/components/modal.tsx +0 -66
- package/app-template/src/components/pagination.tsx +0 -267
- package/app-template/src/components/password-rules-feedback.tsx +0 -60
- package/app-template/src/components/price.tsx +0 -54
- package/app-template/src/components/pwa-tags.tsx +0 -233
- package/app-template/src/components/radio.tsx +0 -18
- package/app-template/src/components/react-portal.tsx +0 -47
- package/app-template/src/components/select.tsx +0 -70
- package/app-template/src/components/shimmer.tsx +0 -21
- package/app-template/src/components/skeleton-article.tsx +0 -15
- package/app-template/src/components/skeleton-product.tsx +0 -14
- package/app-template/src/components/skeleton-profile.tsx +0 -19
- package/app-template/src/components/skeleton-wrapper.tsx +0 -19
- package/app-template/src/components/skeleton.tsx +0 -37
- package/app-template/src/components/source.tsx +0 -12
- package/app-template/src/components/tab-panel.tsx +0 -10
- package/app-template/src/components/tab.tsx +0 -58
- package/app-template/src/components/tabs.tsx +0 -58
- package/app-template/src/components/types/index.ts +0 -89
- package/app-template/src/hooks/index.ts +0 -1
- package/app-template/src/hooks/use-add-product-to-basket.ts +0 -48
- package/app-template/src/hooks/use-contract.tsx +0 -58
- package/app-template/src/hooks/use-fav-button.tsx +0 -99
- package/app-template/src/instrumentation.ts +0 -1
- package/app-template/src/middleware.ts +0 -33
- package/app-template/src/pages/_error.js +0 -14
- package/app-template/src/pages/api/auth/[...nextauth].ts +0 -3
- package/app-template/src/plugins.js +0 -14
- package/app-template/src/redux/middlewares/category.ts +0 -42
- package/app-template/src/redux/reducers/category.ts +0 -67
- package/app-template/src/redux/store.ts +0 -47
- package/app-template/src/routes/index.ts +0 -46
- package/app-template/src/settings.js +0 -63
- package/app-template/src/theme.js +0 -1
- package/app-template/src/types/index.ts +0 -72
- package/app-template/src/types/next-auth.d.ts +0 -24
- package/app-template/src/types/widgets.ts +0 -115
- package/app-template/src/utils/convert-facet-search-params.ts +0 -15
- package/app-template/src/utils/generate-jsonld.ts +0 -23
- package/app-template/src/utils/gtm.ts +0 -247
- package/app-template/src/utils/index.ts +0 -60
- package/app-template/src/views/account/account-menu.tsx +0 -117
- package/app-template/src/views/account/address-card.tsx +0 -107
- package/app-template/src/views/account/address-form.tsx +0 -374
- package/app-template/src/views/account/back-button.tsx +0 -27
- package/app-template/src/views/account/contact-form.tsx +0 -283
- package/app-template/src/views/account/content-header.tsx +0 -52
- package/app-template/src/views/account/faq/faq-footer.tsx +0 -30
- package/app-template/src/views/account/faq/faq-search.tsx +0 -35
- package/app-template/src/views/account/faq/faq-tabs.tsx +0 -54
- package/app-template/src/views/account/faq/index.ts +0 -3
- package/app-template/src/views/account/favorite-item.tsx +0 -191
- package/app-template/src/views/account/favourite-products/favourite-products-list.tsx +0 -65
- package/app-template/src/views/account/index.ts +0 -4
- package/app-template/src/views/account/order.tsx +0 -89
- package/app-template/src/views/account/orders/order-cancellation-item.tsx +0 -99
- package/app-template/src/views/account/orders/order-detail-header.tsx +0 -39
- package/app-template/src/views/anonymous-tracking/index.tsx +0 -109
- package/app-template/src/views/anonymous-tracking/order-detail/index.tsx +0 -318
- package/app-template/src/views/basket/basket-item.tsx +0 -231
- package/app-template/src/views/basket/index.ts +0 -2
- package/app-template/src/views/basket/summary.tsx +0 -220
- package/app-template/src/views/breadcrumb.tsx +0 -35
- package/app-template/src/views/category/category-active-filters.tsx +0 -98
- package/app-template/src/views/category/category-banner.tsx +0 -34
- package/app-template/src/views/category/category-header.tsx +0 -143
- package/app-template/src/views/category/category-info.tsx +0 -123
- package/app-template/src/views/category/filters/index.tsx +0 -177
- package/app-template/src/views/category/filters/size-filter.tsx +0 -27
- package/app-template/src/views/category/layout.tsx +0 -38
- package/app-template/src/views/checkout/auth.tsx +0 -54
- package/app-template/src/views/checkout/index.tsx +0 -3
- package/app-template/src/views/checkout/layout/footer.tsx +0 -48
- package/app-template/src/views/checkout/layout/header.tsx +0 -38
- package/app-template/src/views/checkout/step-button.tsx +0 -69
- package/app-template/src/views/checkout/step-list.tsx +0 -51
- package/app-template/src/views/checkout/steps/payment/agreements.tsx +0 -42
- package/app-template/src/views/checkout/steps/payment/index.tsx +0 -31
- package/app-template/src/views/checkout/steps/payment/options/credit-card/index.tsx +0 -382
- package/app-template/src/views/checkout/steps/payment/options/credit-card/installments.tsx +0 -100
- package/app-template/src/views/checkout/steps/payment/options/credit-payment.tsx +0 -14
- package/app-template/src/views/checkout/steps/payment/options/funds-transfer.tsx +0 -174
- package/app-template/src/views/checkout/steps/payment/options/loyalty.tsx +0 -19
- package/app-template/src/views/checkout/steps/payment/options/pay-on-delivery.tsx +0 -15
- package/app-template/src/views/checkout/steps/payment/options/redirection.tsx +0 -94
- package/app-template/src/views/checkout/steps/payment/payment-header.tsx +0 -17
- package/app-template/src/views/checkout/steps/payment/payment-option-buttons.tsx +0 -73
- package/app-template/src/views/checkout/steps/shipping/address-box.tsx +0 -204
- package/app-template/src/views/checkout/steps/shipping/addresses.tsx +0 -189
- package/app-template/src/views/checkout/steps/shipping/index.tsx +0 -27
- package/app-template/src/views/checkout/steps/shipping/shipping-options.tsx +0 -72
- package/app-template/src/views/checkout/summary.tsx +0 -181
- package/app-template/src/views/coupon-item/index.tsx +0 -80
- package/app-template/src/views/find-in-store/index.tsx +0 -183
- package/app-template/src/views/footer.tsx +0 -21
- package/app-template/src/views/guest-login/index.tsx +0 -130
- package/app-template/src/views/header/action-menu.tsx +0 -117
- package/app-template/src/views/header/band.tsx +0 -32
- package/app-template/src/views/header/index.tsx +0 -66
- package/app-template/src/views/header/mini-basket.tsx +0 -267
- package/app-template/src/views/header/mobile-hamburger-button.tsx +0 -35
- package/app-template/src/views/header/mobile-menu.tsx +0 -144
- package/app-template/src/views/header/navbar.tsx +0 -186
- package/app-template/src/views/header/pwa-back-button.tsx +0 -60
- package/app-template/src/views/header/search/index.tsx +0 -82
- package/app-template/src/views/header/search/results.tsx +0 -123
- package/app-template/src/views/header/user-menu.tsx +0 -72
- package/app-template/src/views/index.tsx +0 -2
- package/app-template/src/views/installment-options/index.tsx +0 -127
- package/app-template/src/views/login/index.tsx +0 -233
- package/app-template/src/views/otp-login/index.tsx +0 -152
- package/app-template/src/views/page-loader-spinner/index.tsx +0 -9
- package/app-template/src/views/product/accordion-wrapper.tsx +0 -59
- package/app-template/src/views/product/combine-product-card.tsx +0 -82
- package/app-template/src/views/product/index.ts +0 -8
- package/app-template/src/views/product/layout.tsx +0 -40
- package/app-template/src/views/product/misc-buttons.tsx +0 -65
- package/app-template/src/views/product/price-wrapper.tsx +0 -41
- package/app-template/src/views/product/product-group-info.tsx +0 -63
- package/app-template/src/views/product/product-info.tsx +0 -273
- package/app-template/src/views/product/slider.tsx +0 -124
- package/app-template/src/views/product/variant.tsx +0 -104
- package/app-template/src/views/product-item/index.tsx +0 -96
- package/app-template/src/views/product-pointer-banner-item.tsx +0 -243
- package/app-template/src/views/register/index.tsx +0 -417
- package/app-template/src/views/root-modal.tsx +0 -21
- package/app-template/src/views/sales-contract-modal/index.tsx +0 -288
- package/app-template/src/views/share/index.tsx +0 -71
- package/app-template/src/views/widgets/home-hero-slider-content.tsx +0 -54
- package/app-template/src/views/widgets/recommendation-content.tsx +0 -86
- package/app-template/src/widgets/footer-copyright.tsx +0 -25
- package/app-template/src/widgets/footer-info.tsx +0 -78
- package/app-template/src/widgets/footer-menu.tsx +0 -258
- package/app-template/src/widgets/footer-social.tsx +0 -53
- package/app-template/src/widgets/footer-subscription/footer-subscription-form.tsx +0 -110
- package/app-template/src/widgets/footer-subscription/index.tsx +0 -30
- package/app-template/src/widgets/header-band-text.tsx +0 -21
- package/app-template/src/widgets/home-discovery.tsx +0 -191
- package/app-template/src/widgets/home-hero-slider.tsx +0 -36
- package/app-template/src/widgets/home-product-recommendation.tsx +0 -18
- package/app-template/src/widgets/home-single-banner.tsx +0 -87
- package/app-template/src/widgets/home-stories-eng.tsx +0 -112
- package/app-template/src/widgets/index.ts +0 -25
- package/app-template/src/widgets/product-pointer-banners.tsx +0 -35
- package/app-template/src/widgets/special-page-banner.tsx +0 -49
- package/app-template/src/widgets/special-page-carousel.tsx +0 -68
- package/app-template/src/widgets/widget-order.tsx +0 -1
- package/app-template/tailwind.config.js +0 -170
- package/app-template/tsconfig.json +0 -44
- package/app-template/tsconfig.test.json +0 -6
- package/app-template/yarn.lock +0 -11278
|
@@ -1,258 +0,0 @@
|
|
|
1
|
-
import 'server-only';
|
|
2
|
-
|
|
3
|
-
import { Link, Accordion } from '@theme/components';
|
|
4
|
-
import { getWidgetData } from '@akinon/next/data/server';
|
|
5
|
-
|
|
6
|
-
type SideItem = {
|
|
7
|
-
value: string;
|
|
8
|
-
data_type: 'dropdown';
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
type TargetBlank = {
|
|
12
|
-
value: string;
|
|
13
|
-
data_type: 'dropdown';
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
type FooterMenuItem = [
|
|
17
|
-
{
|
|
18
|
-
// TODO: Refactor this from commerce_proxy
|
|
19
|
-
kwargs: {
|
|
20
|
-
data_type: 'nested';
|
|
21
|
-
value: {
|
|
22
|
-
is_side_column_item?: SideItem;
|
|
23
|
-
is_target_blank: TargetBlank;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
value: {
|
|
27
|
-
is_side_column_item?: string;
|
|
28
|
-
is_target_blank: string;
|
|
29
|
-
name: string;
|
|
30
|
-
redirect_url: string;
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
];
|
|
34
|
-
|
|
35
|
-
type FooterMenuTitle = {
|
|
36
|
-
value: string;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
type FooterMenuType = {
|
|
40
|
-
first_column_title: FooterMenuTitle;
|
|
41
|
-
first_column_items: FooterMenuItem;
|
|
42
|
-
second_column_title: FooterMenuTitle;
|
|
43
|
-
second_column_items: FooterMenuItem;
|
|
44
|
-
third_column_title: FooterMenuTitle;
|
|
45
|
-
third_column_items: FooterMenuItem;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export default async function FooterMenu() {
|
|
49
|
-
const data = await getWidgetData<FooterMenuType>({ slug: 'footer-menu' });
|
|
50
|
-
|
|
51
|
-
return (
|
|
52
|
-
<div className="flex-1">
|
|
53
|
-
<div className="hidden justify-between text-xs md:flex md:px-6 md:py-4 md:border-r md:border-l">
|
|
54
|
-
<div>
|
|
55
|
-
<div className="mb-4 font-medium" data-testid="footer-categories">
|
|
56
|
-
{data?.attributes?.first_column_title?.value}
|
|
57
|
-
</div>
|
|
58
|
-
|
|
59
|
-
<div className="flex">
|
|
60
|
-
<ul className="mr-10 lg:mr-8 xl:mr-16">
|
|
61
|
-
{data?.attributes?.first_column_items
|
|
62
|
-
?.filter(
|
|
63
|
-
(category) => category?.value?.is_side_column_item === 'False'
|
|
64
|
-
)
|
|
65
|
-
.map((item, i) => (
|
|
66
|
-
<li className="mb-2" key={i}>
|
|
67
|
-
<Link
|
|
68
|
-
href={item?.value?.redirect_url}
|
|
69
|
-
target={
|
|
70
|
-
item?.value?.is_target_blank === 'true'
|
|
71
|
-
? '_blank'
|
|
72
|
-
: '_self'
|
|
73
|
-
}
|
|
74
|
-
data-testid={`footer-categories-${item?.value?.name
|
|
75
|
-
?.toLocaleLowerCase()
|
|
76
|
-
.split(' ')
|
|
77
|
-
.join('')}`}
|
|
78
|
-
>
|
|
79
|
-
{item?.value?.name}
|
|
80
|
-
</Link>
|
|
81
|
-
</li>
|
|
82
|
-
))}
|
|
83
|
-
</ul>
|
|
84
|
-
|
|
85
|
-
<ul className="lg:mr-8">
|
|
86
|
-
{data?.attributes?.first_column_items
|
|
87
|
-
?.filter(
|
|
88
|
-
(category) => category?.value?.is_side_column_item === 'True'
|
|
89
|
-
)
|
|
90
|
-
.map((item, i) => (
|
|
91
|
-
<li className="mb-2" key={i}>
|
|
92
|
-
<Link
|
|
93
|
-
href={item?.value?.redirect_url}
|
|
94
|
-
target={
|
|
95
|
-
item?.value?.is_target_blank === 'true'
|
|
96
|
-
? '_blank'
|
|
97
|
-
: '_self'
|
|
98
|
-
}
|
|
99
|
-
data-testid={`footer-categories-${item?.value?.name?.toLocaleLowerCase()}`}
|
|
100
|
-
>
|
|
101
|
-
{item?.value?.name}
|
|
102
|
-
</Link>
|
|
103
|
-
</li>
|
|
104
|
-
))}
|
|
105
|
-
</ul>
|
|
106
|
-
</div>
|
|
107
|
-
</div>
|
|
108
|
-
|
|
109
|
-
<div>
|
|
110
|
-
<div className="mb-4 font-medium" data-testid="footer-my-account">
|
|
111
|
-
{data?.attributes?.second_column_title?.value}
|
|
112
|
-
</div>
|
|
113
|
-
|
|
114
|
-
<div>
|
|
115
|
-
<ul className="mr-8">
|
|
116
|
-
{data?.attributes?.second_column_items?.map((item, i) => (
|
|
117
|
-
<li className="mb-2" key={i}>
|
|
118
|
-
<Link
|
|
119
|
-
href={item?.value?.redirect_url}
|
|
120
|
-
target={
|
|
121
|
-
item?.value?.is_target_blank === 'true'
|
|
122
|
-
? '_blank'
|
|
123
|
-
: '_self'
|
|
124
|
-
}
|
|
125
|
-
>
|
|
126
|
-
{item?.value?.name}
|
|
127
|
-
</Link>
|
|
128
|
-
</li>
|
|
129
|
-
))}
|
|
130
|
-
</ul>
|
|
131
|
-
</div>
|
|
132
|
-
</div>
|
|
133
|
-
|
|
134
|
-
<div>
|
|
135
|
-
<div className="mb-4 font-medium" data-testid="footer-customer-care">
|
|
136
|
-
{data?.attributes?.third_column_title?.value}
|
|
137
|
-
</div>
|
|
138
|
-
|
|
139
|
-
<div>
|
|
140
|
-
<ul className="lg:mr-8 xl:mr-16">
|
|
141
|
-
{data?.attributes?.third_column_items?.map((item, i) => (
|
|
142
|
-
<li className="mb-2" key={i}>
|
|
143
|
-
<Link
|
|
144
|
-
href={item?.value?.redirect_url}
|
|
145
|
-
target={
|
|
146
|
-
item?.value?.is_target_blank === 'true'
|
|
147
|
-
? '_blank'
|
|
148
|
-
: '_self'
|
|
149
|
-
}
|
|
150
|
-
>
|
|
151
|
-
{item?.value?.name}
|
|
152
|
-
</Link>
|
|
153
|
-
</li>
|
|
154
|
-
))}
|
|
155
|
-
</ul>
|
|
156
|
-
</div>
|
|
157
|
-
</div>
|
|
158
|
-
</div>
|
|
159
|
-
<div className="block md:hidden">
|
|
160
|
-
<Accordion
|
|
161
|
-
title={data?.attributes?.first_column_title?.value}
|
|
162
|
-
titleClassName="text-xs font-medium"
|
|
163
|
-
>
|
|
164
|
-
<div>
|
|
165
|
-
<ul className="text-xs px-4">
|
|
166
|
-
{data?.attributes?.first_column_items
|
|
167
|
-
?.filter(
|
|
168
|
-
(category) => category?.value?.is_side_column_item === 'False'
|
|
169
|
-
)
|
|
170
|
-
.map((item, i) => (
|
|
171
|
-
<li className="mb-2" key={i}>
|
|
172
|
-
<Link
|
|
173
|
-
href={item?.value?.redirect_url}
|
|
174
|
-
target={
|
|
175
|
-
item?.value?.is_target_blank === 'true'
|
|
176
|
-
? '_blank'
|
|
177
|
-
: '_self'
|
|
178
|
-
}
|
|
179
|
-
>
|
|
180
|
-
{item?.value?.name}
|
|
181
|
-
</Link>
|
|
182
|
-
</li>
|
|
183
|
-
))}
|
|
184
|
-
</ul>
|
|
185
|
-
|
|
186
|
-
<ul className="text-xs px-4">
|
|
187
|
-
{data?.attributes?.first_column_items
|
|
188
|
-
?.filter(
|
|
189
|
-
(category) => category?.value?.is_side_column_item === 'True'
|
|
190
|
-
)
|
|
191
|
-
.map((item, i) => (
|
|
192
|
-
<li className="mb-2" key={i}>
|
|
193
|
-
<Link
|
|
194
|
-
href={item?.value?.redirect_url}
|
|
195
|
-
target={
|
|
196
|
-
item?.value?.is_target_blank === 'true'
|
|
197
|
-
? '_blank'
|
|
198
|
-
: '_self'
|
|
199
|
-
}
|
|
200
|
-
>
|
|
201
|
-
{item?.value?.name}
|
|
202
|
-
</Link>
|
|
203
|
-
</li>
|
|
204
|
-
))}
|
|
205
|
-
</ul>
|
|
206
|
-
</div>
|
|
207
|
-
</Accordion>
|
|
208
|
-
|
|
209
|
-
<Accordion
|
|
210
|
-
title={data?.attributes?.second_column_title?.value}
|
|
211
|
-
titleClassName="text-xs font-medium"
|
|
212
|
-
>
|
|
213
|
-
<div>
|
|
214
|
-
<ul className="text-xs px-4">
|
|
215
|
-
{data?.attributes?.second_column_items?.map((item, i) => (
|
|
216
|
-
<li className="mb-2" key={i}>
|
|
217
|
-
<Link
|
|
218
|
-
href={item?.value?.redirect_url}
|
|
219
|
-
target={
|
|
220
|
-
item?.value?.is_target_blank === 'true'
|
|
221
|
-
? '_blank'
|
|
222
|
-
: '_self'
|
|
223
|
-
}
|
|
224
|
-
>
|
|
225
|
-
{item?.value?.name}
|
|
226
|
-
</Link>
|
|
227
|
-
</li>
|
|
228
|
-
))}
|
|
229
|
-
</ul>
|
|
230
|
-
</div>
|
|
231
|
-
</Accordion>
|
|
232
|
-
|
|
233
|
-
<Accordion
|
|
234
|
-
className="last:mb-0"
|
|
235
|
-
title={data?.attributes?.third_column_title?.value}
|
|
236
|
-
titleClassName="text-xs font-medium"
|
|
237
|
-
>
|
|
238
|
-
<div>
|
|
239
|
-
<ul className="text-xs px-4">
|
|
240
|
-
{data?.attributes?.third_column_items?.map((item, i) => (
|
|
241
|
-
<li className="mb-2" key={i}>
|
|
242
|
-
<Link
|
|
243
|
-
href={item.value.redirect_url}
|
|
244
|
-
target={
|
|
245
|
-
item.value.is_target_blank === 'true' ? '_blank' : '_self'
|
|
246
|
-
}
|
|
247
|
-
>
|
|
248
|
-
{item.value.name}
|
|
249
|
-
</Link>
|
|
250
|
-
</li>
|
|
251
|
-
))}
|
|
252
|
-
</ul>
|
|
253
|
-
</div>
|
|
254
|
-
</Accordion>
|
|
255
|
-
</div>
|
|
256
|
-
</div>
|
|
257
|
-
);
|
|
258
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import 'server-only';
|
|
2
|
-
|
|
3
|
-
import { Link, Icon } from '@theme/components';
|
|
4
|
-
import { getWidgetData } from '@akinon/next/data/server';
|
|
5
|
-
|
|
6
|
-
type TargetBlank = {
|
|
7
|
-
value: string;
|
|
8
|
-
data_type: 'dropdown';
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
type FooterSocialItem = [
|
|
12
|
-
{
|
|
13
|
-
// TODO: Refactor this from commerce_proxy
|
|
14
|
-
kwargs: {
|
|
15
|
-
data_type: 'nested';
|
|
16
|
-
value: {
|
|
17
|
-
is_target_blank: TargetBlank;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
value: {
|
|
21
|
-
icon_class?: string;
|
|
22
|
-
site_name: string;
|
|
23
|
-
redirect_url: string;
|
|
24
|
-
is_target_blank: string;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
];
|
|
28
|
-
|
|
29
|
-
type FooterSocialType = {
|
|
30
|
-
social_items: FooterSocialItem;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export default async function FooterSocial() {
|
|
34
|
-
const data = await getWidgetData<FooterSocialType>({ slug: 'footer-social' });
|
|
35
|
-
|
|
36
|
-
return (
|
|
37
|
-
<div className="flex flex-wrap items-center justify-around py-4 border-t border-gray md:justify-center">
|
|
38
|
-
{data?.attributes?.social_items?.map((item, i) => (
|
|
39
|
-
<Link
|
|
40
|
-
key={i}
|
|
41
|
-
href={item?.value?.redirect_url}
|
|
42
|
-
className="p-2 border rounded-full border-gray md:mr-1 md:last:mr-0"
|
|
43
|
-
target={item?.value?.is_target_blank === 'true' ? '_blank' : '_self'}
|
|
44
|
-
>
|
|
45
|
-
<Icon
|
|
46
|
-
size={18}
|
|
47
|
-
name={item?.value?.icon_class?.replace('pz-icon-', '')}
|
|
48
|
-
/>
|
|
49
|
-
</Link>
|
|
50
|
-
))}
|
|
51
|
-
</div>
|
|
52
|
-
);
|
|
53
|
-
}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import { useState } from 'react';
|
|
4
|
-
import { useForm, SubmitHandler } from 'react-hook-form';
|
|
5
|
-
import { yupResolver } from '@hookform/resolvers/yup';
|
|
6
|
-
import * as yup from 'yup';
|
|
7
|
-
import { FooterSubscriptionFormType } from '@theme/types';
|
|
8
|
-
import { useEmailSubscriptionMutation } from '@akinon/next/data/client/misc';
|
|
9
|
-
import { useGetWidgetQuery } from '@akinon/next/data/client/misc';
|
|
10
|
-
import { Input, Button, Checkbox, Modal } from '@theme/components';
|
|
11
|
-
import { useLocalization } from '@akinon/next/hooks';
|
|
12
|
-
|
|
13
|
-
const subscriptionFormSchema = (t: any) =>
|
|
14
|
-
yup.object().shape({
|
|
15
|
-
email: yup
|
|
16
|
-
.string()
|
|
17
|
-
.email(t('common.newsletter_signup.required_email'))
|
|
18
|
-
.required(t('common.newsletter_signup.required')),
|
|
19
|
-
subscribe_contract: yup
|
|
20
|
-
.boolean()
|
|
21
|
-
.oneOf([true], t('common.newsletter_signup.required'))
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
export default function FooterSubscriptionForm() {
|
|
25
|
-
const { t } = useLocalization();
|
|
26
|
-
const [isModalOpen, setIsModalOpen] = useState(false);
|
|
27
|
-
const [emailSubscription] = useEmailSubscriptionMutation();
|
|
28
|
-
const { data: privacyPolicy } = useGetWidgetQuery('privacy-policy');
|
|
29
|
-
|
|
30
|
-
const {
|
|
31
|
-
register,
|
|
32
|
-
handleSubmit,
|
|
33
|
-
formState: { errors }
|
|
34
|
-
} = useForm<FooterSubscriptionFormType>({
|
|
35
|
-
resolver: yupResolver(subscriptionFormSchema(t))
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
const onSubmit: SubmitHandler<FooterSubscriptionFormType> = (data) => {
|
|
39
|
-
emailSubscription(data)
|
|
40
|
-
.unwrap()
|
|
41
|
-
.then(() => setIsModalOpen(true));
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
return (
|
|
45
|
-
<div>
|
|
46
|
-
<div className="flex mb-5">
|
|
47
|
-
<Input
|
|
48
|
-
id="footer-subscription-email"
|
|
49
|
-
type="email"
|
|
50
|
-
placeholder={t('common.newsletter_signup.email_address')}
|
|
51
|
-
className="text-sm h-7 w-44"
|
|
52
|
-
{...register('email')}
|
|
53
|
-
error={errors.email}
|
|
54
|
-
data-testid="newsletter-input"
|
|
55
|
-
/>
|
|
56
|
-
|
|
57
|
-
<Button
|
|
58
|
-
type="submit"
|
|
59
|
-
appearance="outlined"
|
|
60
|
-
className="text-xs font-semibold h-7"
|
|
61
|
-
data-testid="newsletter-submit"
|
|
62
|
-
onClick={handleSubmit(onSubmit)}
|
|
63
|
-
>
|
|
64
|
-
{t('common.newsletter_signup.submit')}
|
|
65
|
-
</Button>
|
|
66
|
-
</div>
|
|
67
|
-
|
|
68
|
-
<Checkbox
|
|
69
|
-
{...register('subscribe_contract')}
|
|
70
|
-
error={errors.subscribe_contract}
|
|
71
|
-
data-testid="newsletter-agreement-checkbox"
|
|
72
|
-
>
|
|
73
|
-
{t('common.newsletter_signup.accept')}{' '}
|
|
74
|
-
<button
|
|
75
|
-
type="button"
|
|
76
|
-
className="underline"
|
|
77
|
-
onClick={() => {
|
|
78
|
-
setIsModalOpen(true);
|
|
79
|
-
}}
|
|
80
|
-
data-testid="newsletter-agreement"
|
|
81
|
-
>
|
|
82
|
-
{t('common.newsletter_signup.privacy_policy')}
|
|
83
|
-
</button>
|
|
84
|
-
<Modal
|
|
85
|
-
className="h-4/5 w-4/5 p-4 flex flex-col justify-between items-center md:p-12 lg:h-1/2 lg:w-1/2"
|
|
86
|
-
portalId="footer-subscription-privacy-policy-modal"
|
|
87
|
-
open={isModalOpen}
|
|
88
|
-
setOpen={setIsModalOpen}
|
|
89
|
-
showCloseButton={false}
|
|
90
|
-
>
|
|
91
|
-
<div
|
|
92
|
-
className="mb-3 overflow-hidden overflow-y-auto"
|
|
93
|
-
dangerouslySetInnerHTML={{
|
|
94
|
-
__html: privacyPolicy?.attributes?.privacy_policy?.value
|
|
95
|
-
}}
|
|
96
|
-
/>
|
|
97
|
-
|
|
98
|
-
<Button
|
|
99
|
-
onClick={() => setIsModalOpen(false)}
|
|
100
|
-
appearance="outlined"
|
|
101
|
-
className="font-medium px-10 py-2"
|
|
102
|
-
data-testid="newsletter-modal-close-button"
|
|
103
|
-
>
|
|
104
|
-
{t('common.newsletter_signup.close')}
|
|
105
|
-
</Button>
|
|
106
|
-
</Modal>
|
|
107
|
-
</Checkbox>
|
|
108
|
-
</div>
|
|
109
|
-
);
|
|
110
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import 'server-only';
|
|
2
|
-
|
|
3
|
-
import { getWidgetData } from '@akinon/next/data/server';
|
|
4
|
-
|
|
5
|
-
import FooterSubscriptionForm from './footer-subscription-form';
|
|
6
|
-
|
|
7
|
-
type FooterSubscriptionType = {
|
|
8
|
-
description: {
|
|
9
|
-
value: string;
|
|
10
|
-
};
|
|
11
|
-
title: {
|
|
12
|
-
value: string;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export default async function FooterSubscription() {
|
|
17
|
-
const data = await getWidgetData<FooterSubscriptionType>({
|
|
18
|
-
slug: 'footer-subscription'
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
return (
|
|
22
|
-
<div className="py-4 border-t md:border-t-0 lg:pl-7">
|
|
23
|
-
<h3 className="mb-1 text-xs font-medium">
|
|
24
|
-
{data?.attributes?.title?.value}
|
|
25
|
-
</h3>
|
|
26
|
-
<p className="mb-2 text-xs">{data?.attributes?.description?.value}</p>
|
|
27
|
-
<FooterSubscriptionForm />
|
|
28
|
-
</div>
|
|
29
|
-
);
|
|
30
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import 'server-only';
|
|
2
|
-
|
|
3
|
-
import { getWidgetData } from '@akinon/next/data/server';
|
|
4
|
-
|
|
5
|
-
type HeaderBandText = {
|
|
6
|
-
header_band_text?: {
|
|
7
|
-
value?: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export default async function HeaderBandText() {
|
|
12
|
-
const data = await getWidgetData<HeaderBandText>({
|
|
13
|
-
slug: 'header-band-text'
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
return (
|
|
17
|
-
<span className="text-xs text-black">
|
|
18
|
-
{data?.attributes?.header_band_text?.value}
|
|
19
|
-
</span>
|
|
20
|
-
);
|
|
21
|
-
}
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import 'server-only';
|
|
2
|
-
|
|
3
|
-
import { getWidgetData } from '@akinon/next/data/server';
|
|
4
|
-
import { ImageType } from '@akinon/next/types';
|
|
5
|
-
|
|
6
|
-
import { Link } from '@theme/components';
|
|
7
|
-
import { Image } from '@akinon/next/components/image';
|
|
8
|
-
|
|
9
|
-
type DiscoveryItem = {
|
|
10
|
-
// TODO: Refactor this from commerce_proxy
|
|
11
|
-
kwargs: {
|
|
12
|
-
data_type: 'nested';
|
|
13
|
-
value: {
|
|
14
|
-
mobile_image: ImageType;
|
|
15
|
-
image: ImageType;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
value: {
|
|
19
|
-
mobile_image?: string;
|
|
20
|
-
link_url: string;
|
|
21
|
-
link_name: string;
|
|
22
|
-
image: string;
|
|
23
|
-
text_desc: string;
|
|
24
|
-
alt: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
type HomeDiscoveryType = {
|
|
29
|
-
discovery_left: DiscoveryItem;
|
|
30
|
-
discovery_top_right: DiscoveryItem;
|
|
31
|
-
discovery_bottom_right: DiscoveryItem;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
export default async function HomeDiscovery() {
|
|
35
|
-
const data = await getWidgetData<HomeDiscoveryType>({
|
|
36
|
-
slug: 'home-discovery'
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
return (
|
|
40
|
-
<div className="container flex flex-col justify-center mx-auto md:flex-row my-8">
|
|
41
|
-
<div className="mb-8 lg:w-7/12 sm:mr-4 md:mb-0 lg:mr-8">
|
|
42
|
-
<div className="w-full h-full">
|
|
43
|
-
<div className="relative">
|
|
44
|
-
{data?.attributes?.discovery_left?.value && (
|
|
45
|
-
<Link href={data?.attributes?.discovery_left?.value?.link_url}>
|
|
46
|
-
<Image
|
|
47
|
-
src={
|
|
48
|
-
data?.attributes?.discovery_left?.kwargs?.value
|
|
49
|
-
?.mobile_image?.url
|
|
50
|
-
}
|
|
51
|
-
alt={data?.attributes?.discovery_left?.value?.alt}
|
|
52
|
-
aspectRatio={670 / 765}
|
|
53
|
-
sizes="670px"
|
|
54
|
-
className="block md:hidden"
|
|
55
|
-
fill
|
|
56
|
-
/>
|
|
57
|
-
<Image
|
|
58
|
-
src={
|
|
59
|
-
data?.attributes?.discovery_left?.kwargs?.value?.image?.url
|
|
60
|
-
}
|
|
61
|
-
alt={data?.attributes?.discovery_left?.value?.alt}
|
|
62
|
-
aspectRatio={670 / 765}
|
|
63
|
-
sizes="670px"
|
|
64
|
-
className="hidden md:block"
|
|
65
|
-
fill
|
|
66
|
-
/>
|
|
67
|
-
</Link>
|
|
68
|
-
)}
|
|
69
|
-
|
|
70
|
-
<div className="absolute flex justify-center w-full py-2 text-white capitalize bg-black bottom-16">
|
|
71
|
-
<span>Summer Sale</span>
|
|
72
|
-
|
|
73
|
-
<span className="px-4 mx-4 text-red-500 border-l border-r border-white">
|
|
74
|
-
70% Off
|
|
75
|
-
</span>
|
|
76
|
-
|
|
77
|
-
<span>3 Weeks Only</span>
|
|
78
|
-
</div>
|
|
79
|
-
</div>
|
|
80
|
-
|
|
81
|
-
<p className="block px-4 pt-2 text-sm md:inline md:mr-2 md:p-0">
|
|
82
|
-
{data?.attributes?.discovery_left?.value?.text_desc}
|
|
83
|
-
</p>
|
|
84
|
-
|
|
85
|
-
<Link
|
|
86
|
-
href={data?.attributes?.discovery_left?.value?.link_url}
|
|
87
|
-
className="block px-4 text-sm font-medium underline md:inline md:px-0"
|
|
88
|
-
>
|
|
89
|
-
{data?.attributes?.discovery_left?.value?.link_name}
|
|
90
|
-
</Link>
|
|
91
|
-
</div>
|
|
92
|
-
</div>
|
|
93
|
-
|
|
94
|
-
<div className="lg:w-5/12 md:flex md:flex-col md:justify-between">
|
|
95
|
-
<div className="mb-8 md:mb-0">
|
|
96
|
-
<div>
|
|
97
|
-
{data?.attributes?.discovery_top_right?.value && (
|
|
98
|
-
<Link
|
|
99
|
-
href={data?.attributes?.discovery_top_right?.value?.link_url}
|
|
100
|
-
>
|
|
101
|
-
<Image
|
|
102
|
-
src={
|
|
103
|
-
data?.attributes?.discovery_top_right?.kwargs?.value
|
|
104
|
-
?.mobile_image?.url
|
|
105
|
-
}
|
|
106
|
-
alt={data?.attributes?.discovery_top_right?.value?.alt}
|
|
107
|
-
aspectRatio={470 / 345}
|
|
108
|
-
sizes="470px"
|
|
109
|
-
className="block md:hidden"
|
|
110
|
-
fill
|
|
111
|
-
/>
|
|
112
|
-
|
|
113
|
-
<Image
|
|
114
|
-
src={
|
|
115
|
-
data?.attributes?.discovery_top_right?.kwargs?.value?.image
|
|
116
|
-
?.url
|
|
117
|
-
}
|
|
118
|
-
alt={data?.attributes?.discovery_top_right?.value?.alt}
|
|
119
|
-
aspectRatio={470 / 345}
|
|
120
|
-
sizes="100vw"
|
|
121
|
-
className="hidden md:block"
|
|
122
|
-
fill
|
|
123
|
-
/>
|
|
124
|
-
</Link>
|
|
125
|
-
)}
|
|
126
|
-
</div>
|
|
127
|
-
|
|
128
|
-
<p className="block px-4 pt-2 text-sm md:inline md:mr-2 md:p-0">
|
|
129
|
-
{data?.attributes?.discovery_top_right?.value?.text_desc}
|
|
130
|
-
</p>
|
|
131
|
-
|
|
132
|
-
{data?.attributes?.discovery_top_right?.value && (
|
|
133
|
-
<Link
|
|
134
|
-
href={data?.attributes?.discovery_top_right?.value?.link_url}
|
|
135
|
-
className="block px-4 text-sm font-medium underline md:inline md:px-0"
|
|
136
|
-
>
|
|
137
|
-
{data?.attributes?.discovery_top_right?.value?.link_name}
|
|
138
|
-
</Link>
|
|
139
|
-
)}
|
|
140
|
-
</div>
|
|
141
|
-
|
|
142
|
-
<div>
|
|
143
|
-
<div>
|
|
144
|
-
{data?.attributes?.discovery_bottom_right?.value && (
|
|
145
|
-
<Link
|
|
146
|
-
href={data?.attributes?.discovery_bottom_right?.value?.link_url}
|
|
147
|
-
>
|
|
148
|
-
<Image
|
|
149
|
-
src={
|
|
150
|
-
data?.attributes?.discovery_bottom_right?.kwargs?.value
|
|
151
|
-
?.mobile_image?.url
|
|
152
|
-
}
|
|
153
|
-
alt={data?.attributes?.discovery_bottom_right?.value?.alt}
|
|
154
|
-
aspectRatio={470 / 345}
|
|
155
|
-
sizes="470px"
|
|
156
|
-
className="block md:hidden"
|
|
157
|
-
fill
|
|
158
|
-
/>
|
|
159
|
-
|
|
160
|
-
<Image
|
|
161
|
-
src={
|
|
162
|
-
data?.attributes?.discovery_bottom_right?.kwargs?.value
|
|
163
|
-
?.image?.url
|
|
164
|
-
}
|
|
165
|
-
alt={data?.attributes?.discovery_bottom_right?.value?.alt}
|
|
166
|
-
aspectRatio={470 / 345}
|
|
167
|
-
sizes="100vw"
|
|
168
|
-
className="hidden md:block"
|
|
169
|
-
fill
|
|
170
|
-
/>
|
|
171
|
-
</Link>
|
|
172
|
-
)}
|
|
173
|
-
</div>
|
|
174
|
-
|
|
175
|
-
<p className="block px-4 pt-2 text-sm md:inline md:mr-2 md:p-0">
|
|
176
|
-
{data?.attributes?.discovery_bottom_right?.value?.text_desc}
|
|
177
|
-
</p>
|
|
178
|
-
|
|
179
|
-
{data?.attributes?.discovery_bottom_right?.value && (
|
|
180
|
-
<Link
|
|
181
|
-
href={data?.attributes?.discovery_bottom_right?.value?.link_url}
|
|
182
|
-
className="block px-4 text-sm font-medium underline md:px-0 md:inline"
|
|
183
|
-
>
|
|
184
|
-
{data?.attributes?.discovery_bottom_right?.value?.link_name}
|
|
185
|
-
</Link>
|
|
186
|
-
)}
|
|
187
|
-
</div>
|
|
188
|
-
</div>
|
|
189
|
-
</div>
|
|
190
|
-
);
|
|
191
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import 'server-only';
|
|
2
|
-
|
|
3
|
-
import { getWidgetData } from '@akinon/next/data/server';
|
|
4
|
-
import { ImageType } from '@akinon/next/types';
|
|
5
|
-
import HomeHeroSliderContent from '@theme/views/widgets/home-hero-slider-content';
|
|
6
|
-
|
|
7
|
-
type HeroSliderItem = [
|
|
8
|
-
{
|
|
9
|
-
// TODO: Refactor this from commerce_proxy
|
|
10
|
-
kwargs: {
|
|
11
|
-
data_type: 'nested';
|
|
12
|
-
value: {
|
|
13
|
-
mobile_image: ImageType;
|
|
14
|
-
image: ImageType;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
value: {
|
|
18
|
-
url: string;
|
|
19
|
-
mobile_image: string;
|
|
20
|
-
alt: string;
|
|
21
|
-
image: string;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
];
|
|
25
|
-
|
|
26
|
-
type HomeHeroSliderType = {
|
|
27
|
-
hero_slider: HeroSliderItem;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export default async function HomeHeroSlider() {
|
|
31
|
-
const data = await getWidgetData<HomeHeroSliderType>({
|
|
32
|
-
slug: 'home-hero-slider'
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
return <HomeHeroSliderContent data={data} />;
|
|
36
|
-
}
|