tanstack_start_ts 1.0.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/.wrangler/deploy/config.json +1 -0
- package/bunfig.toml +6 -0
- package/components.json +22 -0
- package/config.json +0 -0
- package/dist/client/.assetsignore +2 -0
- package/dist/client/assets/ProductCard-DbIkJAE-.js +1 -0
- package/dist/client/assets/about-AskxOruL.js +1 -0
- package/dist/client/assets/admin-BZVcAQM3.js +1 -0
- package/dist/client/assets/admin.functions--RdVcuBx.js +1 -0
- package/dist/client/assets/admin.login-QgrF_9Fp.js +1 -0
- package/dist/client/assets/affiliate-disclosure-BIAsA-HO.js +1 -0
- package/dist/client/assets/categories-D0N418mK.js +1 -0
- package/dist/client/assets/category._slug-aCaQm14E.js +1 -0
- package/dist/client/assets/contact-PhvO-V15.js +1 -0
- package/dist/client/assets/faq-BsiHWPM8.js +1 -0
- package/dist/client/assets/hero-bg-BP2eVUIX.jpg +0 -0
- package/dist/client/assets/index-BU9rnkF3.js +1 -0
- package/dist/client/assets/index-BpJWZkva.js +1 -0
- package/dist/client/assets/index-vRX-zAyq.js +1 -0
- package/dist/client/assets/login-DteE0ZGp.js +1 -0
- package/dist/client/assets/logo-pSNfLJQk.png +0 -0
- package/dist/client/assets/privacy-B_Pu7040.js +1 -0
- package/dist/client/assets/product-links-BkZ41Gv3.js +1 -0
- package/dist/client/assets/product._id-BVUysCW-.js +1 -0
- package/dist/client/assets/products.functions-cGzRziKO.js +1 -0
- package/dist/client/assets/profile-CveRcKq2.js +1 -0
- package/dist/client/assets/reset-password-ySEjItX_.js +1 -0
- package/dist/client/assets/saved-CHtdQDJF.js +1 -0
- package/dist/client/assets/search-CXWfET1y.js +1 -0
- package/dist/client/assets/signup-CEx90iuV.js +1 -0
- package/dist/client/assets/styles-DrNJG0BO.css +1 -0
- package/dist/client/assets/terms-VqJ9kX9b.js +1 -0
- package/dist/client/assets/update-password-C-d0ix5e.js +1 -0
- package/dist/client/assets/vendor-aria-hidden-DvXkyWUv.js +1 -0
- package/dist/client/assets/vendor-class-variance-authority-5VPnzWs2.js +1 -0
- package/dist/client/assets/vendor-clsx-B-dksMZM.js +1 -0
- package/dist/client/assets/vendor-cookie-es-CS0aJGDi.js +1 -0
- package/dist/client/assets/vendor-detect-node-es-l0sNRNKZ.js +1 -0
- package/dist/client/assets/vendor-floating-ui-core-BlUy28sp.js +1 -0
- package/dist/client/assets/vendor-floating-ui-dom-BxK0hn2R.js +1 -0
- package/dist/client/assets/vendor-floating-ui-react-dom-Bas3975S.js +1 -0
- package/dist/client/assets/vendor-floating-ui-utils-BfYUAVcw.js +1 -0
- package/dist/client/assets/vendor-framer-motion-BMdL-cuX.js +9 -0
- package/dist/client/assets/vendor-get-nonce-C-Z93AgS.js +1 -0
- package/dist/client/assets/vendor-iceberg-js-tWD4K6Lg.js +1 -0
- package/dist/client/assets/vendor-lovable.dev-cloud-auth-js-VuzqtJVg.js +1 -0
- package/dist/client/assets/vendor-lucide-react-b5K2fehp.js +1 -0
- package/dist/client/assets/vendor-motion-dom-BETJamZt.js +1 -0
- package/dist/client/assets/vendor-motion-utils-BuWewJbj.js +1 -0
- package/dist/client/assets/vendor-radix-ui-primitive-Dc_FVRD7.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-accordion-C22Rgxe9.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-arrow-DMHj2mKI.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-avatar-CVPBkFXg.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-collapsible-BvM-4sKX.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-collection-D9KtqmHm.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-compose-refs-Cvq0AS8Z.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-context-CAqqn5Nx.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-dialog-DZ01vOLq.js +5 -0
- package/dist/client/assets/vendor-radix-ui-react-direction-DxZwNuei.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-dismissable-layer-Dqgrs55Y.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-dropdown-menu-0uzvrqkn.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-focus-guards-DgWoZ-fP.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-focus-scope-BLIu5QaL.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-id-bpga_rLa.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-menu-D0qf2r6_.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-popper-BafIylxU.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-portal-BnAsfNCS.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-presence-C-f3UKQ2.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-primitive-zTHwXNoz.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-roving-focus-jyJB8K2E.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-slot-6LXHJrHl.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-use-callback-ref-E91aPc6s.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-use-controllable-state-Ca3eMtxa.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-use-effect-event-CPeX4A3c.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-use-escape-keydown-7n3YsXFo.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-use-is-hydrated-C1PY1qNv.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-use-layout-effect-B3AcGWPy.js +1 -0
- package/dist/client/assets/vendor-radix-ui-react-use-size-CXS04sct.js +1 -0
- package/dist/client/assets/vendor-react-dom-BnNs-kzm.js +9 -0
- package/dist/client/assets/vendor-react-gJPiVnX5.js +1 -0
- package/dist/client/assets/vendor-react-remove-scroll-DHKl-IMP.js +4 -0
- package/dist/client/assets/vendor-react-remove-scroll-bar-CSjdInc2.js +38 -0
- package/dist/client/assets/vendor-react-style-singleton-BqHpkgXn.js +1 -0
- package/dist/client/assets/vendor-scheduler-7OC5HNn7.js +1 -0
- package/dist/client/assets/vendor-seroval-B_Fur-nl.js +3 -0
- package/dist/client/assets/vendor-seroval-plugins-CBHnPkZJ.js +1 -0
- package/dist/client/assets/vendor-sonner-71-LdGG1.js +1 -0
- package/dist/client/assets/vendor-supabase-auth-js-DWrN-bIx.js +18 -0
- package/dist/client/assets/vendor-supabase-functions-js-uY_V-TxC.js +1 -0
- package/dist/client/assets/vendor-supabase-phoenix-BzEf37Ve.js +2 -0
- package/dist/client/assets/vendor-supabase-postgrest-js-C4rBWbCx.js +4 -0
- package/dist/client/assets/vendor-supabase-realtime-js-D6BlOYKE.js +23 -0
- package/dist/client/assets/vendor-supabase-storage-js-BG98L3Zz.js +1 -0
- package/dist/client/assets/vendor-supabase-supabase-js-DCCzdwBJ.js +1 -0
- package/dist/client/assets/vendor-tailwind-merge-Ct12j0u0.js +1 -0
- package/dist/client/assets/vendor-tanstack-history-C617CaxG.js +1 -0
- package/dist/client/assets/vendor-tanstack-query-core-7wuJJ5ZL.js +1 -0
- package/dist/client/assets/vendor-tanstack-react-query-HImzo8sX.js +1 -0
- package/dist/client/assets/vendor-tanstack-react-router-sIZLK-LU.js +1 -0
- package/dist/client/assets/vendor-tanstack-react-start-client-GiYCfWmf.js +1 -0
- package/dist/client/assets/vendor-tanstack-react-store-EvTi3ahh.js +1 -0
- package/dist/client/assets/vendor-tanstack-router-core-Cr7bYUZv.js +1 -0
- package/dist/client/assets/vendor-tanstack-start-client-core-C-00BBOu.js +2 -0
- package/dist/client/assets/vendor-tanstack-start-fn-stubs-l0sNRNKZ.js +1 -0
- package/dist/client/assets/vendor-tanstack-store-BC7mA7pq.js +1 -0
- package/dist/client/assets/vendor-tslib-Du-meQkk.js +1 -0
- package/dist/client/assets/vendor-use-callback-ref-C_fIAtot.js +1 -0
- package/dist/client/assets/vendor-use-sidecar-Bh0DDN6h.js +1 -0
- package/dist/client/assets/vendor-use-sync-external-store-ZvKHXaIn.js +1 -0
- package/dist/client/assets/vendor-vercel-analytics-DwPM5BWs.js +1 -0
- package/dist/client/assets/vendor-zod-By9teAtI.js +1 -0
- package/dist/client/robots.txt +2 -0
- package/dist/server/.dev.vars +5 -0
- package/dist/server/.vite/manifest.json +2528 -0
- package/dist/server/assets/ProductCard-CUPXy5Eo.js +149 -0
- package/dist/server/assets/_tanstack-start-manifest_v-do7vTWFD.js +4 -0
- package/dist/server/assets/about-TfKQw0Ga.js +28 -0
- package/dist/server/assets/admin-DspfJOJk.js +578 -0
- package/dist/server/assets/admin.functions-B78ppWLR.js +645 -0
- package/dist/server/assets/admin.functions-BWlKBoTL.js +93 -0
- package/dist/server/assets/admin.login-CV7QfeA6.js +139 -0
- package/dist/server/assets/affiliate-disclosure-B1wI1cDb.js +86 -0
- package/dist/server/assets/auth-middleware-Cn49MidW.js +62 -0
- package/dist/server/assets/categories-Z7jnAYZP.js +108 -0
- package/dist/server/assets/category._slug-D0XY3FGK.js +112 -0
- package/dist/server/assets/contact-IzyONsXs.js +104 -0
- package/dist/server/assets/faq-aRhB_CR3.js +133 -0
- package/dist/server/assets/hero-bg-BP2eVUIX.jpg +0 -0
- package/dist/server/assets/index-BTPHbXw9.js +221 -0
- package/dist/server/assets/index-ByJkHkrU.js +30 -0
- package/dist/server/assets/login-Dvy5Dm0f.js +175 -0
- package/dist/server/assets/logo-pSNfLJQk.png +0 -0
- package/dist/server/assets/privacy-B6Wiez1P.js +93 -0
- package/dist/server/assets/product-links-CGYEPP56.js +16 -0
- package/dist/server/assets/product._id-BpRa-1z0.js +231 -0
- package/dist/server/assets/products.functions-DSlmibYN.js +209 -0
- package/dist/server/assets/products.functions-DlHkRiqi.js +24 -0
- package/dist/server/assets/profile-B0NWzVAZ.js +314 -0
- package/dist/server/assets/reset-password-CY-rmqMr.js +115 -0
- package/dist/server/assets/saved-7FA6Dbom.js +126 -0
- package/dist/server/assets/search-Yw5c_fZa.js +329 -0
- package/dist/server/assets/signup-UPzgZo4i.js +143 -0
- package/dist/server/assets/styles-DrNJG0BO.css +1 -0
- package/dist/server/assets/terms-CMnX95bP.js +89 -0
- package/dist/server/assets/update-password-Cr94ea8n.js +131 -0
- package/dist/server/assets/vendor-aria-hidden-DPa16MWu.js +122 -0
- package/dist/server/assets/vendor-class-variance-authority-0YxJPB9Y.js +44 -0
- package/dist/server/assets/vendor-cloudflare-unenv-preset-ya0VEFBz.js +250 -0
- package/dist/server/assets/vendor-clsx-DgYk2OaC.js +16 -0
- package/dist/server/assets/vendor-cookie-es-DAoofYiI.js +44 -0
- package/dist/server/assets/vendor-detect-node-es-l0sNRNKZ.js +1 -0
- package/dist/server/assets/vendor-floating-ui-core-3tkK0THV.js +726 -0
- package/dist/server/assets/vendor-floating-ui-dom-C-cPtgJv.js +626 -0
- package/dist/server/assets/vendor-floating-ui-react-dom-CRG6gBpH.js +319 -0
- package/dist/server/assets/vendor-floating-ui-utils-DmXANH-E.js +320 -0
- package/dist/server/assets/vendor-framer-motion-X4zAkX3J.js +1979 -0
- package/dist/server/assets/vendor-get-nonce-DiSj3EHl.js +9 -0
- package/dist/server/assets/vendor-h3-v2-CCobnLY5.js +287 -0
- package/dist/server/assets/vendor-iceberg-js-bHCkXyJn.js +534 -0
- package/dist/server/assets/vendor-isbot-CZ7WjwVs.js +21 -0
- package/dist/server/assets/vendor-lovable.dev-cloud-auth-js-BE03njZw.js +180 -0
- package/dist/server/assets/vendor-lucide-react-Ddew6HYb.js +458 -0
- package/dist/server/assets/vendor-motion-dom-D2MTwGIG.js +5983 -0
- package/dist/server/assets/vendor-motion-utils-LJlIFN6m.js +161 -0
- package/dist/server/assets/vendor-radix-ui-primitive-B-mNdDrH.js +11 -0
- package/dist/server/assets/vendor-radix-ui-react-accordion-1Izf6x00.js +308 -0
- package/dist/server/assets/vendor-radix-ui-react-arrow-B882lnFK.js +23 -0
- package/dist/server/assets/vendor-radix-ui-react-avatar-BVgZt2Ab.js +209 -0
- package/dist/server/assets/vendor-radix-ui-react-collapsible-DCBbMZiS.js +147 -0
- package/dist/server/assets/vendor-radix-ui-react-collection-BZ2srfgU.js +150 -0
- package/dist/server/assets/vendor-radix-ui-react-compose-refs-D3qsKVk1.js +39 -0
- package/dist/server/assets/vendor-radix-ui-react-context-BVoNDLue.js +78 -0
- package/dist/server/assets/vendor-radix-ui-react-dialog-DlxMaNYK.js +406 -0
- package/dist/server/assets/vendor-radix-ui-react-direction-Dt_WDL1t.js +9 -0
- package/dist/server/assets/vendor-radix-ui-react-dismissable-layer-CjsuPohV.js +210 -0
- package/dist/server/assets/vendor-radix-ui-react-dropdown-menu-DVxKumY8.js +263 -0
- package/dist/server/assets/vendor-radix-ui-react-focus-guards-D_6NoePE.js +29 -0
- package/dist/server/assets/vendor-radix-ui-react-focus-scope-DEIhTJJH.js +206 -0
- package/dist/server/assets/vendor-radix-ui-react-id-DFFpgh6m.js +14 -0
- package/dist/server/assets/vendor-radix-ui-react-menu-CiTMLwjT.js +893 -0
- package/dist/server/assets/vendor-radix-ui-react-popper-23Ye2Vyc.js +286 -0
- package/dist/server/assets/vendor-radix-ui-react-portal-CZCH5uPk.js +16 -0
- package/dist/server/assets/vendor-radix-ui-react-presence-CaAULlDU.js +128 -0
- package/dist/server/assets/vendor-radix-ui-react-primitive-BeOk3UYa.js +124 -0
- package/dist/server/assets/vendor-radix-ui-react-roving-focus-DES9GR8l.js +224 -0
- package/dist/server/assets/vendor-radix-ui-react-slot-DUhZbzoH.js +103 -0
- package/dist/server/assets/vendor-radix-ui-react-use-callback-ref-BynBgohw.js +11 -0
- package/dist/server/assets/vendor-radix-ui-react-use-controllable-state-C9KpT6DG.js +69 -0
- package/dist/server/assets/vendor-radix-ui-react-use-effect-event-gpNY2xjS.js +1 -0
- package/dist/server/assets/vendor-radix-ui-react-use-escape-keydown-CcYRQ2pp.js +17 -0
- package/dist/server/assets/vendor-radix-ui-react-use-is-hydrated-D_LcBPXY.js +15 -0
- package/dist/server/assets/vendor-radix-ui-react-use-layout-effect-1LNLXAjr.js +6 -0
- package/dist/server/assets/vendor-radix-ui-react-use-size-D6fiKJQo.js +39 -0
- package/dist/server/assets/vendor-react-DvBrY0qp.js +511 -0
- package/dist/server/assets/vendor-react-dom-yvMLPM0j.js +10484 -0
- package/dist/server/assets/vendor-react-remove-scroll-BNtiEvVN.js +328 -0
- package/dist/server/assets/vendor-react-remove-scroll-bar-hLqRASRk.js +82 -0
- package/dist/server/assets/vendor-react-style-singleton-BXjcXskB.js +69 -0
- package/dist/server/assets/vendor-rou3-3NaGPdI8.js +8 -0
- package/dist/server/assets/vendor-seroval-dJyC-Zhz.js +1775 -0
- package/dist/server/assets/vendor-seroval-plugins-Pq_U2meB.js +58 -0
- package/dist/server/assets/vendor-sonner-CqbjhsRh.js +1086 -0
- package/dist/server/assets/vendor-srvx-BA-baEX9.js +6 -0
- package/dist/server/assets/vendor-supabase-auth-js-D4xjVprw.js +7602 -0
- package/dist/server/assets/vendor-supabase-functions-js-sWy4UYn1.js +322 -0
- package/dist/server/assets/vendor-supabase-phoenix-Bw3Uh2Nn.js +1777 -0
- package/dist/server/assets/vendor-supabase-postgrest-js-AO-BXa7I.js +4938 -0
- package/dist/server/assets/vendor-supabase-realtime-js-BtdNgJbm.js +2111 -0
- package/dist/server/assets/vendor-supabase-storage-js-Dk_MrPYO.js +2679 -0
- package/dist/server/assets/vendor-supabase-supabase-js-D1EEtG3j.js +697 -0
- package/dist/server/assets/vendor-tailwind-merge-BHb_obmC.js +3255 -0
- package/dist/server/assets/vendor-tanstack-history-C4pKJmkt.js +204 -0
- package/dist/server/assets/vendor-tanstack-query-core-PwwTR5ld.js +2552 -0
- package/dist/server/assets/vendor-tanstack-react-query-hhHzXAK1.js +190 -0
- package/dist/server/assets/vendor-tanstack-react-router-XzqpA65A.js +1120 -0
- package/dist/server/assets/vendor-tanstack-react-start-RvWUpvat.js +37 -0
- package/dist/server/assets/vendor-tanstack-react-start-client-gpNY2xjS.js +1 -0
- package/dist/server/assets/vendor-tanstack-react-start-server-uj_Y9pEN.js +15 -0
- package/dist/server/assets/vendor-tanstack-react-store-gpNY2xjS.js +1 -0
- package/dist/server/assets/vendor-tanstack-router-core-6wywV3KN.js +4252 -0
- package/dist/server/assets/vendor-tanstack-start-client-core-DoOKV2pA.js +1741 -0
- package/dist/server/assets/vendor-tanstack-start-fn-stubs-l0sNRNKZ.js +1 -0
- package/dist/server/assets/vendor-tanstack-start-server-core-CsAstXv7.js +1421 -0
- package/dist/server/assets/vendor-tanstack-start-storage-context-DgH9hIJT.js +17 -0
- package/dist/server/assets/vendor-tanstack-store-l0sNRNKZ.js +1 -0
- package/dist/server/assets/vendor-tslib-_8ICaZ64.js +67 -0
- package/dist/server/assets/vendor-unenv-DUvF4YIF.js +544 -0
- package/dist/server/assets/vendor-use-callback-ref-DMFDRvmi.js +66 -0
- package/dist/server/assets/vendor-use-sidecar-DG1tHua4.js +106 -0
- package/dist/server/assets/vendor-use-sync-external-store-rZ8vi0It.js +64 -0
- package/dist/server/assets/vendor-vercel-analytics-oP8BDp0L.js +168 -0
- package/dist/server/assets/vendor-zod-BRyQdbC-.js +3580 -0
- package/dist/server/index.js +158 -0
- package/dist/server/wrangler.json +1 -0
- package/enable-powershell.ps1 +7 -0
- package/eslint.config.js +41 -0
- package/lint.bat +4 -0
- package/package.json +95 -0
- package/public/robots.txt +2 -0
- package/run-npm-build.cjs +20 -0
- package/run-npm-build.js +20 -0
- package/src/assets/hero-bg.jpg +0 -0
- package/src/assets/logo.png +0 -0
- package/src/components/scrollsy/Footer.tsx +68 -0
- package/src/components/scrollsy/LiveTicker.tsx +31 -0
- package/src/components/scrollsy/Logo.tsx +28 -0
- package/src/components/scrollsy/Nav.tsx +255 -0
- package/src/components/scrollsy/ProductCard.tsx +190 -0
- package/src/components/scrollsy/ProductFilters.tsx +226 -0
- package/src/components/scrollsy/SupportWidget.tsx +197 -0
- package/src/components/ui/accordion.tsx +51 -0
- package/src/components/ui/alert-dialog.tsx +115 -0
- package/src/components/ui/alert.tsx +49 -0
- package/src/components/ui/aspect-ratio.tsx +5 -0
- package/src/components/ui/avatar.tsx +47 -0
- package/src/components/ui/badge.tsx +32 -0
- package/src/components/ui/breadcrumb.tsx +101 -0
- package/src/components/ui/button.tsx +49 -0
- package/src/components/ui/calendar.tsx +177 -0
- package/src/components/ui/card.tsx +55 -0
- package/src/components/ui/carousel.tsx +240 -0
- package/src/components/ui/chart.tsx +331 -0
- package/src/components/ui/checkbox.tsx +26 -0
- package/src/components/ui/collapsible.tsx +11 -0
- package/src/components/ui/command.tsx +143 -0
- package/src/components/ui/context-menu.tsx +187 -0
- package/src/components/ui/dialog.tsx +104 -0
- package/src/components/ui/drawer.tsx +98 -0
- package/src/components/ui/dropdown-menu.tsx +188 -0
- package/src/components/ui/form.tsx +171 -0
- package/src/components/ui/hover-card.tsx +27 -0
- package/src/components/ui/input-otp.tsx +69 -0
- package/src/components/ui/input.tsx +22 -0
- package/src/components/ui/label.tsx +21 -0
- package/src/components/ui/menubar.tsx +229 -0
- package/src/components/ui/navigation-menu.tsx +120 -0
- package/src/components/ui/pagination.tsx +98 -0
- package/src/components/ui/popover.tsx +31 -0
- package/src/components/ui/progress.tsx +25 -0
- package/src/components/ui/radio-group.tsx +36 -0
- package/src/components/ui/resizable.tsx +37 -0
- package/src/components/ui/scroll-area.tsx +44 -0
- package/src/components/ui/select.tsx +152 -0
- package/src/components/ui/separator.tsx +24 -0
- package/src/components/ui/sheet.tsx +122 -0
- package/src/components/ui/sidebar.tsx +744 -0
- package/src/components/ui/skeleton.tsx +7 -0
- package/src/components/ui/slider.tsx +23 -0
- package/src/components/ui/sonner.tsx +23 -0
- package/src/components/ui/switch.tsx +27 -0
- package/src/components/ui/table.tsx +94 -0
- package/src/components/ui/tabs.tsx +53 -0
- package/src/components/ui/textarea.tsx +21 -0
- package/src/components/ui/toggle-group.tsx +57 -0
- package/src/components/ui/toggle.tsx +42 -0
- package/src/components/ui/tooltip.tsx +32 -0
- package/src/hooks/use-auth.ts +26 -0
- package/src/hooks/use-mobile.tsx +19 -0
- package/src/integrations/lovable/index.ts +41 -0
- package/src/lib/admin.functions.ts +564 -0
- package/src/lib/error-capture.ts +27 -0
- package/src/lib/error-page.ts +30 -0
- package/src/lib/product-links.ts +39 -0
- package/src/lib/products.functions.ts +101 -0
- package/src/lib/utils.ts +6 -0
- package/src/routeTree.gen.ts +480 -0
- package/src/router.tsx +16 -0
- package/src/routes/__root.tsx +177 -0
- package/src/routes/about.tsx +66 -0
- package/src/routes/admin.login.tsx +95 -0
- package/src/routes/admin.tsx +811 -0
- package/src/routes/affiliate-disclosure.tsx +35 -0
- package/src/routes/categories.tsx +57 -0
- package/src/routes/category.$slug.tsx +51 -0
- package/src/routes/contact.tsx +69 -0
- package/src/routes/faq.tsx +63 -0
- package/src/routes/index.tsx +269 -0
- package/src/routes/login.tsx +160 -0
- package/src/routes/privacy.tsx +39 -0
- package/src/routes/product.$id.tsx +212 -0
- package/src/routes/profile.tsx +393 -0
- package/src/routes/reset-password.tsx +71 -0
- package/src/routes/saved.tsx +83 -0
- package/src/routes/search.tsx +136 -0
- package/src/routes/signup.tsx +108 -0
- package/src/routes/sitemap[.]xml.ts +34 -0
- package/src/routes/terms.tsx +40 -0
- package/src/routes/update-password.tsx +91 -0
- package/src/server.ts +80 -0
- package/src/start.ts +24 -0
- package/src/styles.css +333 -0
- package/terminal-test-output.txt +1 -0
- package/tsconfig.json +27 -0
- package/vercel.json +26 -0
- package/vite.config.ts +38 -0
- package/wrangler.jsonc +7 -0
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
import { a as __awaiter } from "./vendor-tslib-_8ICaZ64.js";
|
|
2
|
+
const resolveFetch = (customFetch) => {
|
|
3
|
+
if (customFetch) {
|
|
4
|
+
return (...args) => customFetch(...args);
|
|
5
|
+
}
|
|
6
|
+
return (...args) => fetch(...args);
|
|
7
|
+
};
|
|
8
|
+
class FunctionsError extends Error {
|
|
9
|
+
constructor(message, name = "FunctionsError", context) {
|
|
10
|
+
super(message);
|
|
11
|
+
this.name = name;
|
|
12
|
+
this.context = context;
|
|
13
|
+
}
|
|
14
|
+
toJSON() {
|
|
15
|
+
return {
|
|
16
|
+
name: this.name,
|
|
17
|
+
message: this.message,
|
|
18
|
+
context: this.context
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
class FunctionsFetchError extends FunctionsError {
|
|
23
|
+
constructor(context) {
|
|
24
|
+
super("Failed to send a request to the Edge Function", "FunctionsFetchError", context);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
class FunctionsRelayError extends FunctionsError {
|
|
28
|
+
constructor(context) {
|
|
29
|
+
super("Relay Error invoking the Edge Function", "FunctionsRelayError", context);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
class FunctionsHttpError extends FunctionsError {
|
|
33
|
+
constructor(context) {
|
|
34
|
+
super("Edge Function returned a non-2xx status code", "FunctionsHttpError", context);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
var FunctionRegion;
|
|
38
|
+
(function(FunctionRegion2) {
|
|
39
|
+
FunctionRegion2["Any"] = "any";
|
|
40
|
+
FunctionRegion2["ApNortheast1"] = "ap-northeast-1";
|
|
41
|
+
FunctionRegion2["ApNortheast2"] = "ap-northeast-2";
|
|
42
|
+
FunctionRegion2["ApSouth1"] = "ap-south-1";
|
|
43
|
+
FunctionRegion2["ApSoutheast1"] = "ap-southeast-1";
|
|
44
|
+
FunctionRegion2["ApSoutheast2"] = "ap-southeast-2";
|
|
45
|
+
FunctionRegion2["CaCentral1"] = "ca-central-1";
|
|
46
|
+
FunctionRegion2["EuCentral1"] = "eu-central-1";
|
|
47
|
+
FunctionRegion2["EuWest1"] = "eu-west-1";
|
|
48
|
+
FunctionRegion2["EuWest2"] = "eu-west-2";
|
|
49
|
+
FunctionRegion2["EuWest3"] = "eu-west-3";
|
|
50
|
+
FunctionRegion2["SaEast1"] = "sa-east-1";
|
|
51
|
+
FunctionRegion2["UsEast1"] = "us-east-1";
|
|
52
|
+
FunctionRegion2["UsWest1"] = "us-west-1";
|
|
53
|
+
FunctionRegion2["UsWest2"] = "us-west-2";
|
|
54
|
+
})(FunctionRegion || (FunctionRegion = {}));
|
|
55
|
+
class FunctionsClient {
|
|
56
|
+
/**
|
|
57
|
+
* Creates a new Functions client bound to an Edge Functions URL.
|
|
58
|
+
*
|
|
59
|
+
* @example Using supabase-js (recommended)
|
|
60
|
+
* ```ts
|
|
61
|
+
* import { createClient } from '@supabase/supabase-js'
|
|
62
|
+
*
|
|
63
|
+
* const supabase = createClient('https://xyzcompany.supabase.co', 'your-publishable-key')
|
|
64
|
+
* const { data, error } = await supabase.functions.invoke('hello-world')
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* @category Edge Functions
|
|
68
|
+
*
|
|
69
|
+
* @example Standalone import for bundle-sensitive environments
|
|
70
|
+
* ```ts
|
|
71
|
+
* import { FunctionsClient, FunctionRegion } from '@supabase/functions-js'
|
|
72
|
+
*
|
|
73
|
+
* const functions = new FunctionsClient('https://xyzcompany.supabase.co/functions/v1', {
|
|
74
|
+
* headers: { apikey: 'your-publishable-key' },
|
|
75
|
+
* region: FunctionRegion.UsEast1,
|
|
76
|
+
* })
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
constructor(url, { headers = {}, customFetch, region = FunctionRegion.Any } = {}) {
|
|
80
|
+
this.url = url;
|
|
81
|
+
this.headers = headers;
|
|
82
|
+
this.region = region;
|
|
83
|
+
this.fetch = resolveFetch(customFetch);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Updates the authorization header
|
|
87
|
+
* @param token - the new jwt token sent in the authorisation header
|
|
88
|
+
*
|
|
89
|
+
* @category Edge Functions
|
|
90
|
+
*
|
|
91
|
+
* @example Setting the authorization header
|
|
92
|
+
* ```ts
|
|
93
|
+
* functions.setAuth(session.access_token)
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
setAuth(token) {
|
|
97
|
+
this.headers.Authorization = `Bearer ${token}`;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Invokes a function
|
|
101
|
+
* @param functionName - The name of the Function to invoke.
|
|
102
|
+
* @param options - Options for invoking the Function.
|
|
103
|
+
* @example
|
|
104
|
+
* ```ts
|
|
105
|
+
* const { data, error } = await functions.invoke('hello-world', {
|
|
106
|
+
* body: { name: 'Ada' },
|
|
107
|
+
* })
|
|
108
|
+
* ```
|
|
109
|
+
*
|
|
110
|
+
* @category Edge Functions
|
|
111
|
+
*
|
|
112
|
+
* @remarks
|
|
113
|
+
* - Requires an Authorization header.
|
|
114
|
+
* - Invoke params generally match the [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) spec.
|
|
115
|
+
* - When you pass in a body to your function, we automatically attach the Content-Type header for `Blob`, `ArrayBuffer`, `File`, `FormData` and `String`. If it doesn't match any of these types we assume the payload is `json`, serialize it and attach the `Content-Type` header as `application/json`. You can override this behavior by passing in a `Content-Type` header of your own.
|
|
116
|
+
* - Responses are automatically parsed as `json`, `blob` and `form-data` depending on the `Content-Type` header sent by your function. Responses are parsed as `text` by default.
|
|
117
|
+
*
|
|
118
|
+
* @example Basic invocation
|
|
119
|
+
* ```js
|
|
120
|
+
* const { data, error } = await supabase.functions.invoke('hello', {
|
|
121
|
+
* body: { foo: 'bar' }
|
|
122
|
+
* })
|
|
123
|
+
* ```
|
|
124
|
+
*
|
|
125
|
+
* @exampleDescription Error handling
|
|
126
|
+
* A `FunctionsHttpError` error is returned if your function throws an error, `FunctionsRelayError` if the Supabase Relay has an error processing your function and `FunctionsFetchError` if there is a network error in calling your function.
|
|
127
|
+
*
|
|
128
|
+
* @example Error handling
|
|
129
|
+
* ```js
|
|
130
|
+
* import { FunctionsHttpError, FunctionsRelayError, FunctionsFetchError } from "@supabase/supabase-js";
|
|
131
|
+
*
|
|
132
|
+
* const { data, error } = await supabase.functions.invoke('hello', {
|
|
133
|
+
* headers: {
|
|
134
|
+
* "my-custom-header": 'my-custom-header-value'
|
|
135
|
+
* },
|
|
136
|
+
* body: { foo: 'bar' }
|
|
137
|
+
* })
|
|
138
|
+
*
|
|
139
|
+
* if (error instanceof FunctionsHttpError) {
|
|
140
|
+
* const errorMessage = await error.context.json()
|
|
141
|
+
* console.log('Function returned an error', errorMessage)
|
|
142
|
+
* } else if (error instanceof FunctionsRelayError) {
|
|
143
|
+
* console.log('Relay error:', error.message)
|
|
144
|
+
* } else if (error instanceof FunctionsFetchError) {
|
|
145
|
+
* console.log('Fetch error:', error.message)
|
|
146
|
+
* }
|
|
147
|
+
* ```
|
|
148
|
+
*
|
|
149
|
+
* @exampleDescription Passing custom headers
|
|
150
|
+
* You can pass custom headers to your function. Note: supabase-js automatically passes the `Authorization` header with the signed in user's JWT.
|
|
151
|
+
*
|
|
152
|
+
* @example Passing custom headers
|
|
153
|
+
* ```js
|
|
154
|
+
* const { data, error } = await supabase.functions.invoke('hello', {
|
|
155
|
+
* headers: {
|
|
156
|
+
* "my-custom-header": 'my-custom-header-value'
|
|
157
|
+
* },
|
|
158
|
+
* body: { foo: 'bar' }
|
|
159
|
+
* })
|
|
160
|
+
* ```
|
|
161
|
+
*
|
|
162
|
+
* @exampleDescription Calling with DELETE HTTP verb
|
|
163
|
+
* You can also set the HTTP verb to `DELETE` when calling your Edge Function.
|
|
164
|
+
*
|
|
165
|
+
* @example Calling with DELETE HTTP verb
|
|
166
|
+
* ```js
|
|
167
|
+
* const { data, error } = await supabase.functions.invoke('hello', {
|
|
168
|
+
* headers: {
|
|
169
|
+
* "my-custom-header": 'my-custom-header-value'
|
|
170
|
+
* },
|
|
171
|
+
* body: { foo: 'bar' },
|
|
172
|
+
* method: 'DELETE'
|
|
173
|
+
* })
|
|
174
|
+
* ```
|
|
175
|
+
*
|
|
176
|
+
* @exampleDescription Invoking a Function in the UsEast1 region
|
|
177
|
+
* Here are the available regions:
|
|
178
|
+
* - `FunctionRegion.Any`
|
|
179
|
+
* - `FunctionRegion.ApNortheast1`
|
|
180
|
+
* - `FunctionRegion.ApNortheast2`
|
|
181
|
+
* - `FunctionRegion.ApSouth1`
|
|
182
|
+
* - `FunctionRegion.ApSoutheast1`
|
|
183
|
+
* - `FunctionRegion.ApSoutheast2`
|
|
184
|
+
* - `FunctionRegion.CaCentral1`
|
|
185
|
+
* - `FunctionRegion.EuCentral1`
|
|
186
|
+
* - `FunctionRegion.EuWest1`
|
|
187
|
+
* - `FunctionRegion.EuWest2`
|
|
188
|
+
* - `FunctionRegion.EuWest3`
|
|
189
|
+
* - `FunctionRegion.SaEast1`
|
|
190
|
+
* - `FunctionRegion.UsEast1`
|
|
191
|
+
* - `FunctionRegion.UsWest1`
|
|
192
|
+
* - `FunctionRegion.UsWest2`
|
|
193
|
+
*
|
|
194
|
+
* @example Invoking a Function in the UsEast1 region
|
|
195
|
+
* ```js
|
|
196
|
+
* import { createClient, FunctionRegion } from '@supabase/supabase-js'
|
|
197
|
+
*
|
|
198
|
+
* const { data, error } = await supabase.functions.invoke('hello', {
|
|
199
|
+
* body: { foo: 'bar' },
|
|
200
|
+
* region: FunctionRegion.UsEast1
|
|
201
|
+
* })
|
|
202
|
+
* ```
|
|
203
|
+
*
|
|
204
|
+
* @exampleDescription Calling with GET HTTP verb
|
|
205
|
+
* You can also set the HTTP verb to `GET` when calling your Edge Function.
|
|
206
|
+
*
|
|
207
|
+
* @example Calling with GET HTTP verb
|
|
208
|
+
* ```js
|
|
209
|
+
* const { data, error } = await supabase.functions.invoke('hello', {
|
|
210
|
+
* headers: {
|
|
211
|
+
* "my-custom-header": 'my-custom-header-value'
|
|
212
|
+
* },
|
|
213
|
+
* method: 'GET'
|
|
214
|
+
* })
|
|
215
|
+
* ```
|
|
216
|
+
*
|
|
217
|
+
* @example Standalone client invoke
|
|
218
|
+
* ```ts
|
|
219
|
+
* const { data, error } = await functions.invoke('hello-world', {
|
|
220
|
+
* body: { name: 'Ada' },
|
|
221
|
+
* })
|
|
222
|
+
* ```
|
|
223
|
+
*/
|
|
224
|
+
invoke(functionName_1) {
|
|
225
|
+
return __awaiter(this, arguments, void 0, function* (functionName, options = {}) {
|
|
226
|
+
var _a;
|
|
227
|
+
let timeoutId;
|
|
228
|
+
let timeoutController;
|
|
229
|
+
try {
|
|
230
|
+
const { headers, method, body: functionArgs, signal, timeout } = options;
|
|
231
|
+
let _headers = {};
|
|
232
|
+
let { region } = options;
|
|
233
|
+
if (!region) {
|
|
234
|
+
region = this.region;
|
|
235
|
+
}
|
|
236
|
+
const url = new URL(`${this.url}/${functionName}`);
|
|
237
|
+
if (region && region !== "any") {
|
|
238
|
+
_headers["x-region"] = region;
|
|
239
|
+
url.searchParams.set("forceFunctionRegion", region);
|
|
240
|
+
}
|
|
241
|
+
let body;
|
|
242
|
+
if (functionArgs && (headers && !Object.prototype.hasOwnProperty.call(headers, "Content-Type") || !headers)) {
|
|
243
|
+
if (typeof Blob !== "undefined" && functionArgs instanceof Blob || functionArgs instanceof ArrayBuffer) {
|
|
244
|
+
_headers["Content-Type"] = "application/octet-stream";
|
|
245
|
+
body = functionArgs;
|
|
246
|
+
} else if (typeof functionArgs === "string") {
|
|
247
|
+
_headers["Content-Type"] = "text/plain";
|
|
248
|
+
body = functionArgs;
|
|
249
|
+
} else if (typeof FormData !== "undefined" && functionArgs instanceof FormData) {
|
|
250
|
+
body = functionArgs;
|
|
251
|
+
} else {
|
|
252
|
+
_headers["Content-Type"] = "application/json";
|
|
253
|
+
body = JSON.stringify(functionArgs);
|
|
254
|
+
}
|
|
255
|
+
} else {
|
|
256
|
+
if (functionArgs && typeof functionArgs !== "string" && !(typeof Blob !== "undefined" && functionArgs instanceof Blob) && !(functionArgs instanceof ArrayBuffer) && !(typeof FormData !== "undefined" && functionArgs instanceof FormData)) {
|
|
257
|
+
body = JSON.stringify(functionArgs);
|
|
258
|
+
} else {
|
|
259
|
+
body = functionArgs;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
let effectiveSignal = signal;
|
|
263
|
+
if (timeout) {
|
|
264
|
+
timeoutController = new AbortController();
|
|
265
|
+
timeoutId = setTimeout(() => timeoutController.abort(), timeout);
|
|
266
|
+
if (signal) {
|
|
267
|
+
effectiveSignal = timeoutController.signal;
|
|
268
|
+
signal.addEventListener("abort", () => timeoutController.abort());
|
|
269
|
+
} else {
|
|
270
|
+
effectiveSignal = timeoutController.signal;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
const response = yield this.fetch(url.toString(), {
|
|
274
|
+
method: method || "POST",
|
|
275
|
+
// headers priority is (high to low):
|
|
276
|
+
// 1. invoke-level headers
|
|
277
|
+
// 2. client-level headers
|
|
278
|
+
// 3. default Content-Type header
|
|
279
|
+
headers: Object.assign(Object.assign(Object.assign({}, _headers), this.headers), headers),
|
|
280
|
+
body,
|
|
281
|
+
signal: effectiveSignal
|
|
282
|
+
}).catch((fetchError) => {
|
|
283
|
+
throw new FunctionsFetchError(fetchError);
|
|
284
|
+
});
|
|
285
|
+
const isRelayError = response.headers.get("x-relay-error");
|
|
286
|
+
if (isRelayError && isRelayError === "true") {
|
|
287
|
+
throw new FunctionsRelayError(response);
|
|
288
|
+
}
|
|
289
|
+
if (!response.ok) {
|
|
290
|
+
throw new FunctionsHttpError(response);
|
|
291
|
+
}
|
|
292
|
+
let responseType = ((_a = response.headers.get("Content-Type")) !== null && _a !== void 0 ? _a : "text/plain").split(";")[0].trim();
|
|
293
|
+
let data;
|
|
294
|
+
if (responseType === "application/json") {
|
|
295
|
+
data = yield response.json();
|
|
296
|
+
} else if (responseType === "application/octet-stream" || responseType === "application/pdf") {
|
|
297
|
+
data = yield response.blob();
|
|
298
|
+
} else if (responseType === "text/event-stream") {
|
|
299
|
+
data = response;
|
|
300
|
+
} else if (responseType === "multipart/form-data") {
|
|
301
|
+
data = yield response.formData();
|
|
302
|
+
} else {
|
|
303
|
+
data = yield response.text();
|
|
304
|
+
}
|
|
305
|
+
return { data, error: null, response };
|
|
306
|
+
} catch (error) {
|
|
307
|
+
return {
|
|
308
|
+
data: null,
|
|
309
|
+
error,
|
|
310
|
+
response: error instanceof FunctionsHttpError || error instanceof FunctionsRelayError ? error.context : void 0
|
|
311
|
+
};
|
|
312
|
+
} finally {
|
|
313
|
+
if (timeoutId) {
|
|
314
|
+
clearTimeout(timeoutId);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
export {
|
|
321
|
+
FunctionsClient as F
|
|
322
|
+
};
|