diff --git a/.env b/.env new file mode 100644 index 00000000..b99dca87 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +DECO_SITE_NAME=starting \ No newline at end of file diff --git a/.github/workflows/deco-deploy.yaml b/.github/workflows/deco-deploy.yaml new file mode 100644 index 00000000..1c4b23cb --- /dev/null +++ b/.github/workflows/deco-deploy.yaml @@ -0,0 +1,54 @@ +name: Deploy + +concurrency: + group: environment-${{ github.head_ref || github.ref }} + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + set_vars: + runs-on: ubuntu-latest + outputs: + site_matrix: ${{ steps.set_vars.outputs.site_matrix }} + steps: + - name: Set site matrix + id: set_vars + shell: bash + run: | + if [ -z ${{ vars.SITES }} ]; then + echo "site_matrix={site: [\"${{ github.event.repository.name }}\"] }" >> $GITHUB_OUTPUT + else + echo "site_matrix={site: ${{ vars.SITES }} }" >> $GITHUB_OUTPUT + fi + deploy: + needs: set_vars + strategy: + matrix: ${{ fromJson(needs.set_vars.outputs.site_matrix) }} + name: Deploy + runs-on: ubuntu-latest + + permissions: + id-token: write # Needed for auth with Deno Deploy + contents: read # Needed to clone the repository + + steps: + - name: Clone repository + uses: actions/checkout@v3 + + - name: Deco Deploy + id: decoDeployStep + continue-on-error: true + uses: deco-cx/deploy@v0 + with: + site: ${{ matrix.site }} + + - name: Retry Deco Deploy + id: decoDeployRetryStep + if: steps.decoDeployStep.outcome == 'failure' + uses: deco-cx/deploy@v0 + with: + site: ${{ matrix.site }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 930bb5be..cf9b2f61 100644 --- a/.gitignore +++ b/.gitignore @@ -51,9 +51,6 @@ typings/ # Output of 'npm pack' *.tgz -# dotenv environment variable files -.env* - .cache/ # Mac files diff --git a/.vscode/settings.json b/.vscode/settings.json index 4b01156e..3fd29cb7 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,6 @@ { "deno.enable": true, - "deno.importMap": "./import_map.json", + "deno.importMap": "./deno.json", "deno.codeLens.test": true, "editor.quickSuggestions": { "strings": true diff --git a/apps/site.ts b/apps/site.ts new file mode 100644 index 00000000..ddbfd42c --- /dev/null +++ b/apps/site.ts @@ -0,0 +1,23 @@ +import { App, AppContext as AC } from "$live/mod.ts"; +import std, { Props } from "apps/compat/std/mod.ts"; + +import manifest, { Manifest } from "../manifest.gen.ts"; + +type StdApp = ReturnType; +export default function Site( + state: Props, +): App { + return { + state, + manifest, + dependencies: [ + std(state), + ], + }; +} + +export type SiteApp = ReturnType; +export type AppContext = AC; +export { onBeforeResolveProps } from "apps/compat/$live/mod.ts"; diff --git a/components/decohelp/pages/interfaces.ts b/components/decohelp/pages/interfaces.ts index 9d35bff3..da02bce4 100644 --- a/components/decohelp/pages/interfaces.ts +++ b/components/decohelp/pages/interfaces.ts @@ -1,7 +1,7 @@ import type { HTML } from "deco-sites/std/components/HTMLRenderer.tsx"; import { Image as LiveImage } from "deco-sites/std/components/types.ts"; import Image from "deco-sites/std/components/Image.tsx"; -import { Section } from "$live/blocks/section.ts"; +import { Section } from "deco/blocks/section.ts"; export interface Props { Title?: string; diff --git a/components/decohelp/pages/ui/Content/Content.tsx b/components/decohelp/pages/ui/Content/Content.tsx index 81d1790b..f16d307d 100644 --- a/components/decohelp/pages/ui/Content/Content.tsx +++ b/components/decohelp/pages/ui/Content/Content.tsx @@ -10,7 +10,7 @@ import { ContentType, Props, } from "deco-sites/starting/components/decohelp/pages/interfaces.ts"; -import { useLivePageContext } from "$live/pages/LivePage.tsx"; +import { useLivePageContext } from "deco/pages/LivePage.tsx"; function renderContentItem(item: ContentType, idx: number) { const { renderSection } = useLivePageContext(); diff --git a/components/ranking/RankingList.tsx b/components/ranking/RankingList.tsx index d33f2e8f..9ac005d1 100644 --- a/components/ranking/RankingList.tsx +++ b/components/ranking/RankingList.tsx @@ -1,4 +1,4 @@ -import { LoaderReturnType } from "$live/types.ts"; +import { LoaderReturnType } from "deco/types.ts"; import type { Site } from "deco-sites/starting/routes/api/ranking.ts"; import { SiteList } from "./list/SiteList.tsx"; diff --git a/components/ui/Markdown.tsx b/components/ui/Markdown.tsx index 10820221..ef47327e 100644 --- a/components/ui/Markdown.tsx +++ b/components/ui/Markdown.tsx @@ -1,6 +1,6 @@ import { marky } from "https://deno.land/x/marky@v1.1.6/mod.ts"; import defaultParsers from "https://deno.land/x/marky@v1.1.6/parsers.ts"; -import { LoaderReturnType } from "$live/types.ts"; +import { LoaderReturnType } from "deco/types.ts"; import { PostBody } from "../utils/Blog.ts"; export type Props = { diff --git a/deno.json b/deno.json index 5589d2ef..e6c6c01a 100644 --- a/deno.json +++ b/deno.json @@ -1,20 +1,59 @@ { + "imports": { + "deco-sites/starting/": "./", + "deco-sites/std/": "https://denopkg.com/deco-sites/std@1.22.4/", + "$live/": "https://denopkg.com/deco-cx/deco@1.44.1/", + "$store/": "./", + "deco/": "https://denopkg.com/deco-cx/deco@1.44.1/", + "apps/": "https://denopkg.com/deco-cx/apps@0.17.2/", + "$fresh/": "https://denopkg.com/denoland/fresh@7ad4610e3a42aba42638cbc1041b96ee58a9b29e/", + "preact": "https://esm.sh/preact@10.15.1", + "preact/": "https://esm.sh/preact@10.15.1/", + "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.1", + "@preact/signals": "https://esm.sh/*@preact/signals@1.1.3", + "@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.2.3", + "std/": "https://deno.land/std@0.190.0/", + "partytown/": "https://denopkg.com/deco-cx/partytown@0.4.8/", + "daisyui": "npm:daisyui@3.9.2", + "deno-dom": "https://deno.land/x/deno_dom@v0.1.38/deno-dom-wasm.ts", + "typography": "npm:@tailwindcss/typography@0.5.9", + "https://deno.land/x/gfm@0.1.23/mod.ts": "./overrides/gfm.mod.ts" + }, "tasks": { - "start": "deno run -A --watch=sections/,functions/,docs/ dev.ts", + "start": "deno task bundle && deno run -A --unstable --watch=tailwind.css,sections/,functions/,loaders/,actions/,workflows/,accounts/,.env dev.ts", "gen": "deno run -A dev.ts --gen-only", - "component": "deno eval 'import \"$live/scripts/component.ts\"'", - "check": "deno fmt && deno lint && deno check dev.ts main.ts" + "play": "USE_LOCAL_STORAGE_ONLY=true deno task start", + "component": "deno eval 'import \"deco/scripts/component.ts\"'", + "release": "deno eval 'import \"deco/scripts/release.ts\"'", + "update": "deno run -Ar https://deco.cx/update", + "check": "deno fmt && deno lint && deno check dev.ts main.ts", + "install": "deno eval 'import \"deco/scripts/apps/install.ts\"'", + "uninstall": "deno eval 'import \"deco/scripts/apps/uninstall.ts\"'", + "bundle": "deno eval 'import \"deco/scripts/apps/bundle.ts\"' deco-sites/starting", + "cache_clean": "rm deno.lock; deno cache -r main.ts", + "build": "deno run -A dev.ts build", + "preview": "deno run -A main.ts" }, "githooks": { "pre-commit": "check" }, "exclude": [ + "node_modules", "static/", - "docs/**/*.md" + "README.md", + "_fresh" ], - "importMap": "./import_map.json", + "lint": { + "rules": { + "tags": [ + "fresh", + "recommended" + ] + } + }, + "nodeModulesDir": true, "compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" } -} +} \ No newline at end of file diff --git a/dev.ts b/dev.ts index 21416236..3c695c17 100755 --- a/dev.ts +++ b/dev.ts @@ -1,12 +1,12 @@ -#!/usr/bin/env -S deno run -A --watch=static/ -import dev from "$live/dev.ts"; -import liveManifest from "$live/live.gen.ts"; -import liveStdManifest from "deco-sites/std/live.gen.ts"; +#!/usr/bin/env -S deno run -A --watch +import "https://deno.land/x/dotenv@v3.2.2/load.ts"; -await dev(import.meta.url, "./main.ts", { - injectRoutes: false, - imports: { - "$live": liveManifest, - "deco-sites/std": liveStdManifest, - }, -}); +import dev from "$fresh/dev.ts"; +import config from "./fresh.config.ts"; + +// Generate manifest and boot server +await dev(import.meta.url, "./main.ts", config); + +if (Deno.args.includes("build")) { + Deno.exit(0); +} \ No newline at end of file diff --git a/fresh.config.ts b/fresh.config.ts new file mode 100644 index 00000000..1d385496 --- /dev/null +++ b/fresh.config.ts @@ -0,0 +1,13 @@ +import { defineConfig } from "$fresh/server.ts"; +import plugins from "https://denopkg.com/deco-sites/std@1.22.0/plugins/mod.ts"; +import partytownPlugin from "partytown/mod.ts"; +import decoManifest from "./manifest.gen.ts"; + +export default defineConfig({ + plugins: [ + ...plugins({ + manifest: decoManifest, + }), + partytownPlugin(), + ], +}); \ No newline at end of file diff --git a/fresh.gen.ts b/fresh.gen.ts new file mode 100644 index 00000000..e23522e7 --- /dev/null +++ b/fresh.gen.ts @@ -0,0 +1,74 @@ +// DO NOT EDIT. This file is generated by Fresh. +// This file SHOULD be checked into source version control. +// This file is automatically updated during development when running `dev.ts`. + +import * as $0 from "./routes/_app.tsx"; +import * as $1 from "./routes/admin/[...catchall].tsx"; +import * as $2 from "./routes/api/calc.tsx"; +import * as $3 from "./routes/api/case.tsx"; +import * as $4 from "./routes/api/leads.tsx"; +import * as $5 from "./routes/api/ranking.ts"; +import * as $6 from "./routes/api/webinar.tsx"; +import * as $7 from "./routes/gfm.css.ts"; +import * as $8 from "./routes/hackathon4.ts"; +import * as $9 from "./routes/index.tsx"; +import * as $10 from "./routes/proxy/image/index.tsx"; +import * as $$0 from "./islands/CampHeader.tsx"; +import * as $$1 from "./islands/CampMentor.tsx"; +import * as $$2 from "./islands/Case.tsx"; +import * as $$3 from "./islands/ChangeDevice.tsx"; +import * as $$4 from "./islands/ChangeTheme.tsx"; +import * as $$5 from "./islands/Cms.tsx"; +import * as $$6 from "./islands/ContactUs.tsx"; +import * as $$7 from "./islands/FaviconImage.tsx"; +import * as $$8 from "./islands/ForwardBackButtons/ForwardBackButtons.tsx"; +import * as $$9 from "./islands/Header.tsx"; +import * as $$10 from "./islands/HelpFaq.tsx"; +import * as $$11 from "./islands/ImpactCalculator.tsx"; +import * as $$12 from "./islands/LiveProjects.tsx"; +import * as $$13 from "./islands/OnThisPage.tsx"; +import * as $$14 from "./islands/PopularDocuments.tsx"; +import * as $$15 from "./islands/RankingAnalyze.tsx"; +import * as $$16 from "./islands/RankingHeader.tsx"; +import * as $$17 from "./islands/Sidebar.tsx"; +import * as $$18 from "./islands/SliderJS.tsx"; + +const manifest = { + routes: { + "./routes/_app.tsx": $0, + "./routes/admin/[...catchall].tsx": $1, + "./routes/api/calc.tsx": $2, + "./routes/api/case.tsx": $3, + "./routes/api/leads.tsx": $4, + "./routes/api/ranking.ts": $5, + "./routes/api/webinar.tsx": $6, + "./routes/gfm.css.ts": $7, + "./routes/hackathon4.ts": $8, + "./routes/index.tsx": $9, + "./routes/proxy/image/index.tsx": $10, + }, + islands: { + "./islands/CampHeader.tsx": $$0, + "./islands/CampMentor.tsx": $$1, + "./islands/Case.tsx": $$2, + "./islands/ChangeDevice.tsx": $$3, + "./islands/ChangeTheme.tsx": $$4, + "./islands/Cms.tsx": $$5, + "./islands/ContactUs.tsx": $$6, + "./islands/FaviconImage.tsx": $$7, + "./islands/ForwardBackButtons/ForwardBackButtons.tsx": $$8, + "./islands/Header.tsx": $$9, + "./islands/HelpFaq.tsx": $$10, + "./islands/ImpactCalculator.tsx": $$11, + "./islands/LiveProjects.tsx": $$12, + "./islands/OnThisPage.tsx": $$13, + "./islands/PopularDocuments.tsx": $$14, + "./islands/RankingAnalyze.tsx": $$15, + "./islands/RankingHeader.tsx": $$16, + "./islands/Sidebar.tsx": $$17, + "./islands/SliderJS.tsx": $$18, + }, + baseUrl: import.meta.url, +}; + +export default manifest; diff --git a/functions/LoadGitHubRaw.ts b/functions/LoadGitHubRaw.ts index d642abe8..17d3dd73 100644 --- a/functions/LoadGitHubRaw.ts +++ b/functions/LoadGitHubRaw.ts @@ -1,4 +1,4 @@ -import type { LoaderFunction } from "$live/types.ts"; +import type { LoaderFunction } from "deco/types.ts"; export interface Props { /** @description Complete user/repo format */ diff --git a/functions/LoadGitHubRawPost.ts b/functions/LoadGitHubRawPost.ts index c00e29af..b825b31d 100644 --- a/functions/LoadGitHubRawPost.ts +++ b/functions/LoadGitHubRawPost.ts @@ -1,4 +1,4 @@ -import type { LoaderFunction } from "$live/types.ts"; +import type { LoaderFunction } from "deco/types.ts"; import { PostBody } from "../components/utils/Blog.ts"; export interface Props { diff --git a/functions/LoadGitHubRawPostList.ts b/functions/LoadGitHubRawPostList.ts index 778345d5..c39682d8 100644 --- a/functions/LoadGitHubRawPostList.ts +++ b/functions/LoadGitHubRawPostList.ts @@ -1,4 +1,4 @@ -import type { LoaderFunction } from "$live/types.ts"; +import type { LoaderFunction } from "deco/types.ts"; import { PostList } from "../components/utils/Blog.ts"; export interface Props { diff --git a/functions/LoadPageProps.ts b/functions/LoadPageProps.ts index 00ffb041..3162835c 100644 --- a/functions/LoadPageProps.ts +++ b/functions/LoadPageProps.ts @@ -1,4 +1,4 @@ -import type { LoaderFunction } from "$live/types.ts"; +import type { LoaderFunction } from "deco/types.ts"; import { PathObj, PropNull } from "../sections/BlogPostHeader.tsx"; /** diff --git a/functions/psiRankingList.ts b/functions/psiRankingList.ts index 1e6c58c4..ee57a28c 100644 --- a/functions/psiRankingList.ts +++ b/functions/psiRankingList.ts @@ -1,4 +1,4 @@ -import type { LoaderFunction } from "$live/types.ts"; +import type { LoaderFunction } from "deco/types.ts"; import type { Site } from "deco-sites/starting/routes/api/ranking.ts"; import { ranking } from "../routes/api/ranking.ts"; diff --git a/import_map.json b/import_map.json deleted file mode 100644 index 676c5437..00000000 --- a/import_map.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "imports": { - "https://deno.land/x/gfm@0.1.23/mod.ts": "./overrides/gfm.mod.ts", - "deco-sites/starting/": "./", - "deco-sites/std/": "https://denopkg.com/deco-sites/std@1.22.4/", - "$live/": "https://denopkg.com/deco-cx/deco@1.35.5/", - "deco/": "https://denopkg.com/deco-cx/deco@1.35.5/", - "$fresh/": "https://denopkg.com/deco-cx/fresh@1.3.3/", - "preact": "https://esm.sh/preact@10.15.1", - "preact/": "https://esm.sh/preact@10.15.1/", - "preact-render-to-string": "https://esm.sh/*preact-render-to-string@6.2.0", - "@preact/signals": "https://esm.sh/*@preact/signals@1.1.3", - "@preact/signals-core": "https://esm.sh/@preact/signals-core@1.3.0", - "std/": "https://deno.land/std@0.190.0/", - "partytown/": "https://denopkg.com/deco-cx/partytown@0.4.0/", - "deno-dom": "https://deno.land/x/deno_dom@v0.1.38/deno-dom-wasm.ts", - "typography": "npm:@tailwindcss/typography@0.5.9" - } -} diff --git a/live.gen.ts b/live.gen.ts deleted file mode 100644 index 3211c9d4..00000000 --- a/live.gen.ts +++ /dev/null @@ -1,553 +0,0 @@ -// DO NOT EDIT. This file is generated by deco. -// This file SHOULD be checked into source version control. -// This file is automatically updated during development when running `dev.ts`. - -import * as $0 from "./functions/LoadGitHubRaw.ts"; -import * as $1 from "./functions/LoadGitHubRawPost.ts"; -import * as $2 from "./functions/LoadGitHubRawPostList.ts"; -import * as $3 from "./functions/LoadPageProps.ts"; -import * as $4 from "./functions/psiRankingList.ts"; -import * as $$$0 from "./loaders/blogPostDetailsLoader.ts"; -import * as $$$1 from "./loaders/blogPostLoader.ts"; -import * as $$$2 from "./loaders/blogPostMarkdownLoader.ts"; -import * as $$$3 from "./loaders/denoLoader.ts"; -import * as $$$4 from "./loaders/denoTopicsLoader.ts"; -import * as $$$5 from "./loaders/featuredPosts.ts"; -import * as $$$$0 from "./routes/admin/[...catchall].tsx"; -import * as $$$$1 from "./routes/api/calc.tsx"; -import * as $$$$2 from "./routes/api/case.tsx"; -import * as $$$$3 from "./routes/api/leads.tsx"; -import * as $$$$4 from "./routes/api/ranking.ts"; -import * as $$$$5 from "./routes/api/webinar.tsx"; -import * as $$$$6 from "./routes/gfm.css.ts"; -import * as $$$$7 from "./routes/hackathon4.ts"; -import * as $$$$8 from "./routes/index.tsx"; -import * as $$$$9 from "./routes/proxy/image/index.tsx"; -import * as $$$$10 from "./routes/_app.tsx"; -import * as $$$$11 from "./routes/_middleware.ts"; -import * as $$$$$0 from "./islands/CampHeader.tsx"; -import * as $$$$$1 from "./islands/CampMentor.tsx"; -import * as $$$$$2 from "./islands/Case.tsx"; -import * as $$$$$3 from "./islands/ChangeDevice.tsx"; -import * as $$$$$4 from "./islands/ChangeTheme.tsx"; -import * as $$$$$5 from "./islands/Cms.tsx"; -import * as $$$$$6 from "./islands/ContactUs.tsx"; -import * as $$$$$7 from "./islands/FaviconImage.tsx"; -import * as $$$$$8 from "./islands/ForwardBackButtons/ForwardBackButtons.tsx"; -import * as $$$$$9 from "./islands/Header.tsx"; -import * as $$$$$10 from "./islands/HelpFaq.tsx"; -import * as $$$$$11 from "./islands/ImpactCalculator.tsx"; -import * as $$$$$12 from "./islands/LiveProjects.tsx"; -import * as $$$$$13 from "./islands/OnThisPage.tsx"; -import * as $$$$$14 from "./islands/PopularDocuments.tsx"; -import * as $$$$$15 from "./islands/RankingAnalyze.tsx"; -import * as $$$$$16 from "./islands/RankingHeader.tsx"; -import * as $$$$$17 from "./islands/Sidebar.tsx"; -import * as $$$$$18 from "./islands/SliderJS.tsx"; -import * as $$$$$$$$0 from "./sections/About.tsx"; -import * as $$$$$$$$1 from "./sections/Benefits.tsx"; -import * as $$$$$$$$2 from "./sections/BlogHeader.tsx"; -import * as $$$$$$$$3 from "./sections/BlogPostHeader.tsx"; -import * as $$$$$$$$4 from "./sections/BlogPostList.tsx"; -import * as $$$$$$$$5 from "./sections/BlogPostSEO.tsx"; -import * as $$$$$$$$6 from "./sections/CampComments.tsx"; -import * as $$$$$$$$7 from "./sections/CampHero.tsx"; -import * as $$$$$$$$8 from "./sections/CampMentor.tsx"; -import * as $$$$$$$$9 from "./sections/CampRegistration.tsx"; -import * as $$$$$$$$10 from "./sections/CampSteps.tsx"; -import * as $$$$$$$$11 from "./sections/Carousel.tsx"; -import * as $$$$$$$$12 from "./sections/Case/ArticleBannerCTA.tsx"; -import * as $$$$$$$$13 from "./sections/Case/ArticleDivider.tsx"; -import * as $$$$$$$$14 from "./sections/Case/ArticleHeader.tsx"; -import * as $$$$$$$$15 from "./sections/Case/ArticleNumbers.tsx"; -import * as $$$$$$$$16 from "./sections/Case/ArticleParagraph.tsx"; -import * as $$$$$$$$17 from "./sections/Case/ArticleQuote.tsx"; -import * as $$$$$$$$18 from "./sections/Case/ArticleVideo.tsx"; -import * as $$$$$$$$19 from "./sections/Case/ArticleYoutubeVideo.tsx"; -import * as $$$$$$$$20 from "./sections/Case/Case.tsx"; -import * as $$$$$$$$21 from "./sections/Cms.tsx"; -import * as $$$$$$$$22 from "./sections/Community.tsx"; -import * as $$$$$$$$23 from "./sections/ContactUs.tsx"; -import * as $$$$$$$$24 from "./sections/Content.tsx"; -import * as $$$$$$$$25 from "./sections/CustomizableContent.tsx"; -import * as $$$$$$$$26 from "./sections/Delight.tsx"; -import * as $$$$$$$$27 from "./sections/DepoimentsCarrossel.tsx"; -import * as $$$$$$$$28 from "./sections/Differentials.tsx"; -import * as $$$$$$$$29 from "./sections/Divider.tsx"; -import * as $$$$$$$$30 from "./sections/Faq.tsx"; -import * as $$$$$$$$31 from "./sections/Features.tsx"; -import * as $$$$$$$$32 from "./sections/Footer.tsx"; -import * as $$$$$$$$33 from "./sections/FooterBigLogo.tsx"; -import * as $$$$$$$$34 from "./sections/General/Spacer.tsx"; -import * as $$$$$$$$35 from "./sections/Head.tsx"; -import * as $$$$$$$$36 from "./sections/Header.tsx"; -import * as $$$$$$$$37 from "./sections/HelpBlogPosts.tsx"; -import * as $$$$$$$$38 from "./sections/HelpFaq.tsx"; -import * as $$$$$$$$39 from "./sections/HeroPost.tsx"; -import * as $$$$$$$$40 from "./sections/Home/Brands.tsx"; -import * as $$$$$$$$41 from "./sections/HowCanWeHelp.tsx"; -import * as $$$$$$$$42 from "./sections/Hub/Advantage.tsx"; -import * as $$$$$$$$43 from "./sections/Hub/Agencies.tsx"; -import * as $$$$$$$$44 from "./sections/Hub/Creator.tsx"; -import * as $$$$$$$$45 from "./sections/Hub/Heading.tsx"; -import * as $$$$$$$$46 from "./sections/Hub/Integrations.tsx"; -import * as $$$$$$$$47 from "./sections/Hub/SectionSubtitle.tsx"; -import * as $$$$$$$$48 from "./sections/Hub/SectionTitle.tsx"; -import * as $$$$$$$$49 from "./sections/Hub/TemplateIframe.tsx"; -import * as $$$$$$$$50 from "./sections/Hub/TemplatePreview.tsx"; -import * as $$$$$$$$51 from "./sections/Hub/TemplatesGrid.tsx"; -import * as $$$$$$$$52 from "./sections/ImpactCalculator.tsx"; -import * as $$$$$$$$53 from "./sections/Integration.tsx"; -import * as $$$$$$$$54 from "./sections/JoinOurCommunity.tsx"; -import * as $$$$$$$$55 from "./sections/Links.tsx"; -import * as $$$$$$$$56 from "./sections/Live Projects/Hero.tsx"; -import * as $$$$$$$$57 from "./sections/Live Projects/ProjectsGrid.tsx"; -import * as $$$$$$$$58 from "./sections/MainBanner.tsx"; -import * as $$$$$$$$59 from "./sections/Markdown.tsx"; -import * as $$$$$$$$60 from "./sections/MarkdownContent.tsx"; -import * as $$$$$$$$61 from "./sections/OnThisPage.tsx"; -import * as $$$$$$$$62 from "./sections/Page.tsx"; -import * as $$$$$$$$63 from "./sections/Partner.tsx"; -import * as $$$$$$$$64 from "./sections/PopularDocuments.tsx"; -import * as $$$$$$$$65 from "./sections/PopularTopics.tsx"; -import * as $$$$$$$$66 from "./sections/Pricing.tsx"; -import * as $$$$$$$$67 from "./sections/PricingValue.tsx"; -import * as $$$$$$$$68 from "./sections/QuillText.tsx"; -import * as $$$$$$$$69 from "./sections/RankingAnalyze.tsx"; -import * as $$$$$$$$70 from "./sections/RankingHeader.tsx"; -import * as $$$$$$$$71 from "./sections/RankingList.tsx"; -import * as $$$$$$$$72 from "./sections/SectionList.tsx"; -import * as $$$$$$$$73 from "./sections/Sidebar.tsx"; -import * as $$$$$$$$74 from "./sections/StripePricing.tsx"; -import * as $$$$$$$$75 from "./sections/Thanks.tsx"; -import * as $$$$$$$$76 from "./sections/TripletBanner.tsx"; -import * as $$$$$$$$77 from "./sections/Webinar/Content.tsx"; -import * as $$$$$$$$78 from "./sections/Webinar/Hero.tsx"; -import * as $$$$$$$$$0 from "./matchers/MatchPath.ts"; -import * as i1$0 from "$live/loaders/secret.ts"; -import * as i1$1 from "$live/loaders/state.ts"; -import * as i1$2 from "$live/loaders/workflows/events.ts"; -import * as i1$3 from "$live/loaders/workflows/get.ts"; -import * as i1$$0 from "$live/handlers/devPage.ts"; -import * as i1$$1 from "$live/handlers/fresh.ts"; -import * as i1$$2 from "$live/handlers/proxy.ts"; -import * as i1$$3 from "$live/handlers/redirect.ts"; -import * as i1$$4 from "$live/handlers/router.ts"; -import * as i1$$5 from "$live/handlers/routesSelection.ts"; -import * as i1$$6 from "$live/handlers/workflowRunner.ts"; -import * as i1$$$0 from "$live/pages/LivePage.tsx"; -import * as i1$$$$0 from "$live/sections/Conditional_Beta.tsx"; -import * as i1$$$$1 from "$live/sections/EmptySection.tsx"; -import * as i1$$$$2 from "$live/sections/PageInclude.tsx"; -import * as i1$$$$3 from "$live/sections/Slot.tsx"; -import * as i1$$$$4 from "$live/sections/UseSlot.tsx"; -import * as i1$$$$$0 from "$live/matchers/MatchAlways.ts"; -import * as i1$$$$$1 from "$live/matchers/MatchCron.ts"; -import * as i1$$$$$2 from "$live/matchers/MatchDate.ts"; -import * as i1$$$$$3 from "$live/matchers/MatchDevice.ts"; -import * as i1$$$$$4 from "$live/matchers/MatchEnvironment.ts"; -import * as i1$$$$$5 from "$live/matchers/MatchHost.ts"; -import * as i1$$$$$6 from "$live/matchers/MatchLocation.ts"; -import * as i1$$$$$7 from "$live/matchers/MatchMulti.ts"; -import * as i1$$$$$8 from "$live/matchers/MatchRandom.ts"; -import * as i1$$$$$9 from "$live/matchers/MatchSite.ts"; -import * as i1$$$$$10 from "$live/matchers/MatchUserAgent.ts"; -import * as i1$$$$$$0 from "$live/flags/audience.ts"; -import * as i1$$$$$$1 from "$live/flags/everyone.ts"; -import * as i1$$$$$$2 from "$live/flags/flag.ts"; -import * as i1$$$$$$3 from "$live/flags/multivariate.ts"; -import * as i1$$$$$$$0 from "$live/actions/secrets/encrypt.ts"; -import * as i1$$$$$$$1 from "$live/actions/workflows/cancel.ts"; -import * as i1$$$$$$$2 from "$live/actions/workflows/signal.ts"; -import * as i1$$$$$$$3 from "$live/actions/workflows/start.ts"; -import * as i2$0 from "deco-sites/std/functions/butterCMSAds.ts"; -import * as i2$1 from "deco-sites/std/functions/butterCMSBrands.ts"; -import * as i2$2 from "deco-sites/std/functions/butterCMSCategories.ts"; -import * as i2$3 from "deco-sites/std/functions/butterCMSFeaturedPosts.ts"; -import * as i2$4 from "deco-sites/std/functions/butterCMSPage.ts"; -import * as i2$5 from "deco-sites/std/functions/butterCMSPlaces.ts"; -import * as i2$6 from "deco-sites/std/functions/butterCMSPostDetail.ts"; -import * as i2$7 from "deco-sites/std/functions/butterCMSPosts.ts"; -import * as i2$8 from "deco-sites/std/functions/butterCMSRelatedPosts.ts"; -import * as i2$9 from "deco-sites/std/functions/occProductDetailsPage.ts"; -import * as i2$10 from "deco-sites/std/functions/requestToParam.ts"; -import * as i2$11 from "deco-sites/std/functions/shopifyProductDetailsPage.ts"; -import * as i2$12 from "deco-sites/std/functions/shopifyProductList.ts"; -import * as i2$13 from "deco-sites/std/functions/shopifyProductListingPage.ts"; -import * as i2$14 from "deco-sites/std/functions/vndaProductList.ts"; -import * as i2$15 from "deco-sites/std/functions/vndaProductListingPage.ts"; -import * as i2$16 from "deco-sites/std/functions/vtexLegacyProductDetailsPage.ts"; -import * as i2$17 from "deco-sites/std/functions/vtexLegacyProductList.ts"; -import * as i2$18 from "deco-sites/std/functions/vtexLegacyProductListingPage.ts"; -import * as i2$19 from "deco-sites/std/functions/vtexLegacyRelatedProductsLoader.ts"; -import * as i2$20 from "deco-sites/std/functions/vtexNavbar.ts"; -import * as i2$21 from "deco-sites/std/functions/vtexProductDetailsPage.ts"; -import * as i2$22 from "deco-sites/std/functions/vtexProductList.ts"; -import * as i2$23 from "deco-sites/std/functions/vtexProductListingPage.ts"; -import * as i2$24 from "deco-sites/std/functions/vtexSuggestions.ts"; -import * as i2$25 from "deco-sites/std/functions/vtexWishlist.ts"; -import * as i2$$0 from "deco-sites/std/accounts/butterCMS.ts"; -import * as i2$$1 from "deco-sites/std/accounts/linxImpulse.ts"; -import * as i2$$2 from "deco-sites/std/accounts/nuvemShop.ts"; -import * as i2$$3 from "deco-sites/std/accounts/occ.ts"; -import * as i2$$4 from "deco-sites/std/accounts/shopify.ts"; -import * as i2$$5 from "deco-sites/std/accounts/vnda.ts"; -import * as i2$$6 from "deco-sites/std/accounts/vtex.ts"; -import * as i2$$7 from "deco-sites/std/accounts/yourViews.ts"; -import * as i2$$$0 from "deco-sites/std/loaders/linxImpulse/autocompletes/popular.ts"; -import * as i2$$$1 from "deco-sites/std/loaders/linxImpulse/autocompletes/suggestions.ts"; -import * as i2$$$2 from "deco-sites/std/loaders/linxImpulse/pages/recommendations.ts"; -import * as i2$$$3 from "deco-sites/std/loaders/linxImpulse/products/similarItems.ts"; -import * as i2$$$4 from "deco-sites/std/loaders/linxImpulse/search.ts"; -import * as i2$$$5 from "deco-sites/std/loaders/nuvemShop/nuvemShopProductDetailsPage.ts"; -import * as i2$$$6 from "deco-sites/std/loaders/nuvemShop/nuvemShopProductList.ts"; -import * as i2$$$7 from "deco-sites/std/loaders/nuvemShop/nuvemShopProductListingPage.ts"; -import * as i2$$$8 from "deco-sites/std/loaders/vnda/cart.ts"; -import * as i2$$$9 from "deco-sites/std/loaders/vnda/productDetailsPage.ts"; -import * as i2$$$10 from "deco-sites/std/loaders/vnda/productList.ts"; -import * as i2$$$11 from "deco-sites/std/loaders/vnda/productListingPage.ts"; -import * as i2$$$12 from "deco-sites/std/loaders/vnda/proxy.ts"; -import * as i2$$$13 from "deco-sites/std/loaders/vtex/cart.ts"; -import * as i2$$$14 from "deco-sites/std/loaders/vtex/intelligentSearch/productDetailsPage.ts"; -import * as i2$$$15 from "deco-sites/std/loaders/vtex/intelligentSearch/productList.ts"; -import * as i2$$$16 from "deco-sites/std/loaders/vtex/intelligentSearch/productListingPage.ts"; -import * as i2$$$17 from "deco-sites/std/loaders/vtex/intelligentSearch/suggestions.ts"; -import * as i2$$$18 from "deco-sites/std/loaders/vtex/legacy/productDetailsPage.ts"; -import * as i2$$$19 from "deco-sites/std/loaders/vtex/legacy/productList.ts"; -import * as i2$$$20 from "deco-sites/std/loaders/vtex/legacy/productListingPage.ts"; -import * as i2$$$21 from "deco-sites/std/loaders/vtex/legacy/relatedProductsLoader.ts"; -import * as i2$$$22 from "deco-sites/std/loaders/vtex/legacy/suggestions.ts"; -import * as i2$$$23 from "deco-sites/std/loaders/vtex/navbar.ts"; -import * as i2$$$24 from "deco-sites/std/loaders/vtex/proxy.ts"; -import * as i2$$$25 from "deco-sites/std/loaders/vtex/user.ts"; -import * as i2$$$26 from "deco-sites/std/loaders/vtex/wishlist.ts"; -import * as i2$$$27 from "deco-sites/std/loaders/x/font.ts"; -import * as i2$$$28 from "deco-sites/std/loaders/x/image.ts"; -import * as i2$$$29 from "deco-sites/std/loaders/x/redirects.ts"; -import * as i2$$$30 from "deco-sites/std/loaders/x/redirectsFromCsv.ts"; -import * as i2$$$$0 from "deco-sites/std/handlers/sitemap.ts"; -import * as i2$$$$1 from "deco-sites/std/handlers/vtex/sitemap.ts"; -import * as i2$$$$$0 from "deco-sites/std/sections/Analytics.tsx"; -import * as i2$$$$$1 from "deco-sites/std/sections/configButterCMS.global.tsx"; -import * as i2$$$$$2 from "deco-sites/std/sections/configLinxImpulse.global.tsx"; -import * as i2$$$$$3 from "deco-sites/std/sections/configNuvemShop.tsx"; -import * as i2$$$$$4 from "deco-sites/std/sections/configOCC.global.tsx"; -import * as i2$$$$$5 from "deco-sites/std/sections/configShopify.global.tsx"; -import * as i2$$$$$6 from "deco-sites/std/sections/configVTEX.global.tsx"; -import * as i2$$$$$7 from "deco-sites/std/sections/configYourViews.global.tsx"; -import * as i2$$$$$8 from "deco-sites/std/sections/SEO.tsx"; -import * as i2$$$$$9 from "deco-sites/std/sections/SEOPDP.tsx"; -import * as i2$$$$$10 from "deco-sites/std/sections/SEOPLP.tsx"; -import * as i2$$$$$11 from "deco-sites/std/sections/VTEXPortalDataLayerCompatibility.tsx"; -import * as i2$$$$$$0 from "deco-sites/std/actions/vnda/cart/addItem.ts"; -import * as i2$$$$$$1 from "deco-sites/std/actions/vnda/cart/setShippingAddress.ts"; -import * as i2$$$$$$2 from "deco-sites/std/actions/vnda/cart/updateCoupon.ts"; -import * as i2$$$$$$3 from "deco-sites/std/actions/vnda/cart/updateItem.ts"; -import * as i2$$$$$$4 from "deco-sites/std/actions/vtex/analytics/sendEvent.ts"; -import * as i2$$$$$$5 from "deco-sites/std/actions/vtex/cart/addItems.ts"; -import * as i2$$$$$$6 from "deco-sites/std/actions/vtex/cart/getInstallment.ts"; -import * as i2$$$$$$7 from "deco-sites/std/actions/vtex/cart/removeItemAttachment.ts"; -import * as i2$$$$$$8 from "deco-sites/std/actions/vtex/cart/removeItems.ts"; -import * as i2$$$$$$9 from "deco-sites/std/actions/vtex/cart/simulation.ts"; -import * as i2$$$$$$10 from "deco-sites/std/actions/vtex/cart/updateAttachment.ts"; -import * as i2$$$$$$11 from "deco-sites/std/actions/vtex/cart/updateCoupons.ts"; -import * as i2$$$$$$12 from "deco-sites/std/actions/vtex/cart/updateItemAttachment.ts"; -import * as i2$$$$$$13 from "deco-sites/std/actions/vtex/cart/updateItemPrice.ts"; -import * as i2$$$$$$14 from "deco-sites/std/actions/vtex/cart/updateItems.ts"; -import * as i2$$$$$$15 from "deco-sites/std/actions/vtex/cart/updateProfile.ts"; -import * as i2$$$$$$16 from "deco-sites/std/actions/vtex/cart/updateUser.ts"; -import * as i2$$$$$$17 from "deco-sites/std/actions/vtex/newsletter/subscribe.ts"; -import * as i2$$$$$$18 from "deco-sites/std/actions/vtex/notifyme.ts"; -import * as i2$$$$$$19 from "deco-sites/std/actions/vtex/wishlist/addItem.ts"; -import * as i2$$$$$$20 from "deco-sites/std/actions/vtex/wishlist/removeItem.ts"; - -const manifest = { - "functions": { - "deco-sites/starting/functions/LoadGitHubRaw.ts": $0, - "deco-sites/starting/functions/LoadGitHubRawPost.ts": $1, - "deco-sites/starting/functions/LoadGitHubRawPostList.ts": $2, - "deco-sites/starting/functions/LoadPageProps.ts": $3, - "deco-sites/starting/functions/psiRankingList.ts": $4, - "deco-sites/std/functions/butterCMSAds.ts": i2$0, - "deco-sites/std/functions/butterCMSBrands.ts": i2$1, - "deco-sites/std/functions/butterCMSCategories.ts": i2$2, - "deco-sites/std/functions/butterCMSFeaturedPosts.ts": i2$3, - "deco-sites/std/functions/butterCMSPage.ts": i2$4, - "deco-sites/std/functions/butterCMSPlaces.ts": i2$5, - "deco-sites/std/functions/butterCMSPostDetail.ts": i2$6, - "deco-sites/std/functions/butterCMSPosts.ts": i2$7, - "deco-sites/std/functions/butterCMSRelatedPosts.ts": i2$8, - "deco-sites/std/functions/occProductDetailsPage.ts": i2$9, - "deco-sites/std/functions/requestToParam.ts": i2$10, - "deco-sites/std/functions/shopifyProductDetailsPage.ts": i2$11, - "deco-sites/std/functions/shopifyProductList.ts": i2$12, - "deco-sites/std/functions/shopifyProductListingPage.ts": i2$13, - "deco-sites/std/functions/vndaProductList.ts": i2$14, - "deco-sites/std/functions/vndaProductListingPage.ts": i2$15, - "deco-sites/std/functions/vtexLegacyProductDetailsPage.ts": i2$16, - "deco-sites/std/functions/vtexLegacyProductList.ts": i2$17, - "deco-sites/std/functions/vtexLegacyProductListingPage.ts": i2$18, - "deco-sites/std/functions/vtexLegacyRelatedProductsLoader.ts": i2$19, - "deco-sites/std/functions/vtexNavbar.ts": i2$20, - "deco-sites/std/functions/vtexProductDetailsPage.ts": i2$21, - "deco-sites/std/functions/vtexProductList.ts": i2$22, - "deco-sites/std/functions/vtexProductListingPage.ts": i2$23, - "deco-sites/std/functions/vtexSuggestions.ts": i2$24, - "deco-sites/std/functions/vtexWishlist.ts": i2$25, - }, - "loaders": { - "$live/loaders/secret.ts": i1$0, - "$live/loaders/state.ts": i1$1, - "$live/loaders/workflows/events.ts": i1$2, - "$live/loaders/workflows/get.ts": i1$3, - "deco-sites/starting/loaders/blogPostDetailsLoader.ts": $$$0, - "deco-sites/starting/loaders/blogPostLoader.ts": $$$1, - "deco-sites/starting/loaders/blogPostMarkdownLoader.ts": $$$2, - "deco-sites/starting/loaders/denoLoader.ts": $$$3, - "deco-sites/starting/loaders/denoTopicsLoader.ts": $$$4, - "deco-sites/starting/loaders/featuredPosts.ts": $$$5, - "deco-sites/std/loaders/linxImpulse/autocompletes/popular.ts": i2$$$0, - "deco-sites/std/loaders/linxImpulse/autocompletes/suggestions.ts": i2$$$1, - "deco-sites/std/loaders/linxImpulse/pages/recommendations.ts": i2$$$2, - "deco-sites/std/loaders/linxImpulse/products/similarItems.ts": i2$$$3, - "deco-sites/std/loaders/linxImpulse/search.ts": i2$$$4, - "deco-sites/std/loaders/nuvemShop/nuvemShopProductDetailsPage.ts": i2$$$5, - "deco-sites/std/loaders/nuvemShop/nuvemShopProductList.ts": i2$$$6, - "deco-sites/std/loaders/nuvemShop/nuvemShopProductListingPage.ts": i2$$$7, - "deco-sites/std/loaders/vnda/cart.ts": i2$$$8, - "deco-sites/std/loaders/vnda/productDetailsPage.ts": i2$$$9, - "deco-sites/std/loaders/vnda/productList.ts": i2$$$10, - "deco-sites/std/loaders/vnda/productListingPage.ts": i2$$$11, - "deco-sites/std/loaders/vnda/proxy.ts": i2$$$12, - "deco-sites/std/loaders/vtex/cart.ts": i2$$$13, - "deco-sites/std/loaders/vtex/intelligentSearch/productDetailsPage.ts": - i2$$$14, - "deco-sites/std/loaders/vtex/intelligentSearch/productList.ts": i2$$$15, - "deco-sites/std/loaders/vtex/intelligentSearch/productListingPage.ts": - i2$$$16, - "deco-sites/std/loaders/vtex/intelligentSearch/suggestions.ts": i2$$$17, - "deco-sites/std/loaders/vtex/legacy/productDetailsPage.ts": i2$$$18, - "deco-sites/std/loaders/vtex/legacy/productList.ts": i2$$$19, - "deco-sites/std/loaders/vtex/legacy/productListingPage.ts": i2$$$20, - "deco-sites/std/loaders/vtex/legacy/relatedProductsLoader.ts": i2$$$21, - "deco-sites/std/loaders/vtex/legacy/suggestions.ts": i2$$$22, - "deco-sites/std/loaders/vtex/navbar.ts": i2$$$23, - "deco-sites/std/loaders/vtex/proxy.ts": i2$$$24, - "deco-sites/std/loaders/vtex/user.ts": i2$$$25, - "deco-sites/std/loaders/vtex/wishlist.ts": i2$$$26, - "deco-sites/std/loaders/x/font.ts": i2$$$27, - "deco-sites/std/loaders/x/image.ts": i2$$$28, - "deco-sites/std/loaders/x/redirects.ts": i2$$$29, - "deco-sites/std/loaders/x/redirectsFromCsv.ts": i2$$$30, - }, - "routes": { - "./routes/_app.tsx": $$$$10, - "./routes/_middleware.ts": $$$$11, - "./routes/admin/[...catchall].tsx": $$$$0, - "./routes/api/calc.tsx": $$$$1, - "./routes/api/case.tsx": $$$$2, - "./routes/api/leads.tsx": $$$$3, - "./routes/api/ranking.ts": $$$$4, - "./routes/api/webinar.tsx": $$$$5, - "./routes/gfm.css.ts": $$$$6, - "./routes/hackathon4.ts": $$$$7, - "./routes/index.tsx": $$$$8, - "./routes/proxy/image/index.tsx": $$$$9, - }, - "islands": { - "./islands/CampHeader.tsx": $$$$$0, - "./islands/CampMentor.tsx": $$$$$1, - "./islands/Case.tsx": $$$$$2, - "./islands/ChangeDevice.tsx": $$$$$3, - "./islands/ChangeTheme.tsx": $$$$$4, - "./islands/Cms.tsx": $$$$$5, - "./islands/ContactUs.tsx": $$$$$6, - "./islands/FaviconImage.tsx": $$$$$7, - "./islands/ForwardBackButtons/ForwardBackButtons.tsx": $$$$$8, - "./islands/Header.tsx": $$$$$9, - "./islands/HelpFaq.tsx": $$$$$10, - "./islands/ImpactCalculator.tsx": $$$$$11, - "./islands/LiveProjects.tsx": $$$$$12, - "./islands/OnThisPage.tsx": $$$$$13, - "./islands/PopularDocuments.tsx": $$$$$14, - "./islands/RankingAnalyze.tsx": $$$$$15, - "./islands/RankingHeader.tsx": $$$$$16, - "./islands/Sidebar.tsx": $$$$$17, - "./islands/SliderJS.tsx": $$$$$18, - }, - "sections": { - "$live/sections/Conditional_Beta.tsx": i1$$$$0, - "$live/sections/EmptySection.tsx": i1$$$$1, - "$live/sections/PageInclude.tsx": i1$$$$2, - "$live/sections/Slot.tsx": i1$$$$3, - "$live/sections/UseSlot.tsx": i1$$$$4, - "deco-sites/starting/sections/About.tsx": $$$$$$$$0, - "deco-sites/starting/sections/Benefits.tsx": $$$$$$$$1, - "deco-sites/starting/sections/BlogHeader.tsx": $$$$$$$$2, - "deco-sites/starting/sections/BlogPostHeader.tsx": $$$$$$$$3, - "deco-sites/starting/sections/BlogPostList.tsx": $$$$$$$$4, - "deco-sites/starting/sections/BlogPostSEO.tsx": $$$$$$$$5, - "deco-sites/starting/sections/CampComments.tsx": $$$$$$$$6, - "deco-sites/starting/sections/CampHero.tsx": $$$$$$$$7, - "deco-sites/starting/sections/CampMentor.tsx": $$$$$$$$8, - "deco-sites/starting/sections/CampRegistration.tsx": $$$$$$$$9, - "deco-sites/starting/sections/CampSteps.tsx": $$$$$$$$10, - "deco-sites/starting/sections/Carousel.tsx": $$$$$$$$11, - "deco-sites/starting/sections/Case/ArticleBannerCTA.tsx": $$$$$$$$12, - "deco-sites/starting/sections/Case/ArticleDivider.tsx": $$$$$$$$13, - "deco-sites/starting/sections/Case/ArticleHeader.tsx": $$$$$$$$14, - "deco-sites/starting/sections/Case/ArticleNumbers.tsx": $$$$$$$$15, - "deco-sites/starting/sections/Case/ArticleParagraph.tsx": $$$$$$$$16, - "deco-sites/starting/sections/Case/ArticleQuote.tsx": $$$$$$$$17, - "deco-sites/starting/sections/Case/ArticleVideo.tsx": $$$$$$$$18, - "deco-sites/starting/sections/Case/ArticleYoutubeVideo.tsx": $$$$$$$$19, - "deco-sites/starting/sections/Case/Case.tsx": $$$$$$$$20, - "deco-sites/starting/sections/Cms.tsx": $$$$$$$$21, - "deco-sites/starting/sections/Community.tsx": $$$$$$$$22, - "deco-sites/starting/sections/ContactUs.tsx": $$$$$$$$23, - "deco-sites/starting/sections/Content.tsx": $$$$$$$$24, - "deco-sites/starting/sections/CustomizableContent.tsx": $$$$$$$$25, - "deco-sites/starting/sections/Delight.tsx": $$$$$$$$26, - "deco-sites/starting/sections/DepoimentsCarrossel.tsx": $$$$$$$$27, - "deco-sites/starting/sections/Differentials.tsx": $$$$$$$$28, - "deco-sites/starting/sections/Divider.tsx": $$$$$$$$29, - "deco-sites/starting/sections/Faq.tsx": $$$$$$$$30, - "deco-sites/starting/sections/Features.tsx": $$$$$$$$31, - "deco-sites/starting/sections/Footer.tsx": $$$$$$$$32, - "deco-sites/starting/sections/FooterBigLogo.tsx": $$$$$$$$33, - "deco-sites/starting/sections/General/Spacer.tsx": $$$$$$$$34, - "deco-sites/starting/sections/Head.tsx": $$$$$$$$35, - "deco-sites/starting/sections/Header.tsx": $$$$$$$$36, - "deco-sites/starting/sections/HelpBlogPosts.tsx": $$$$$$$$37, - "deco-sites/starting/sections/HelpFaq.tsx": $$$$$$$$38, - "deco-sites/starting/sections/HeroPost.tsx": $$$$$$$$39, - "deco-sites/starting/sections/Home/Brands.tsx": $$$$$$$$40, - "deco-sites/starting/sections/HowCanWeHelp.tsx": $$$$$$$$41, - "deco-sites/starting/sections/Hub/Advantage.tsx": $$$$$$$$42, - "deco-sites/starting/sections/Hub/Agencies.tsx": $$$$$$$$43, - "deco-sites/starting/sections/Hub/Creator.tsx": $$$$$$$$44, - "deco-sites/starting/sections/Hub/Heading.tsx": $$$$$$$$45, - "deco-sites/starting/sections/Hub/Integrations.tsx": $$$$$$$$46, - "deco-sites/starting/sections/Hub/SectionSubtitle.tsx": $$$$$$$$47, - "deco-sites/starting/sections/Hub/SectionTitle.tsx": $$$$$$$$48, - "deco-sites/starting/sections/Hub/TemplateIframe.tsx": $$$$$$$$49, - "deco-sites/starting/sections/Hub/TemplatePreview.tsx": $$$$$$$$50, - "deco-sites/starting/sections/Hub/TemplatesGrid.tsx": $$$$$$$$51, - "deco-sites/starting/sections/ImpactCalculator.tsx": $$$$$$$$52, - "deco-sites/starting/sections/Integration.tsx": $$$$$$$$53, - "deco-sites/starting/sections/JoinOurCommunity.tsx": $$$$$$$$54, - "deco-sites/starting/sections/Links.tsx": $$$$$$$$55, - "deco-sites/starting/sections/Live Projects/Hero.tsx": $$$$$$$$56, - "deco-sites/starting/sections/Live Projects/ProjectsGrid.tsx": $$$$$$$$57, - "deco-sites/starting/sections/MainBanner.tsx": $$$$$$$$58, - "deco-sites/starting/sections/Markdown.tsx": $$$$$$$$59, - "deco-sites/starting/sections/MarkdownContent.tsx": $$$$$$$$60, - "deco-sites/starting/sections/OnThisPage.tsx": $$$$$$$$61, - "deco-sites/starting/sections/Page.tsx": $$$$$$$$62, - "deco-sites/starting/sections/Partner.tsx": $$$$$$$$63, - "deco-sites/starting/sections/PopularDocuments.tsx": $$$$$$$$64, - "deco-sites/starting/sections/PopularTopics.tsx": $$$$$$$$65, - "deco-sites/starting/sections/Pricing.tsx": $$$$$$$$66, - "deco-sites/starting/sections/PricingValue.tsx": $$$$$$$$67, - "deco-sites/starting/sections/QuillText.tsx": $$$$$$$$68, - "deco-sites/starting/sections/RankingAnalyze.tsx": $$$$$$$$69, - "deco-sites/starting/sections/RankingHeader.tsx": $$$$$$$$70, - "deco-sites/starting/sections/RankingList.tsx": $$$$$$$$71, - "deco-sites/starting/sections/SectionList.tsx": $$$$$$$$72, - "deco-sites/starting/sections/Sidebar.tsx": $$$$$$$$73, - "deco-sites/starting/sections/StripePricing.tsx": $$$$$$$$74, - "deco-sites/starting/sections/Thanks.tsx": $$$$$$$$75, - "deco-sites/starting/sections/TripletBanner.tsx": $$$$$$$$76, - "deco-sites/starting/sections/Webinar/Content.tsx": $$$$$$$$77, - "deco-sites/starting/sections/Webinar/Hero.tsx": $$$$$$$$78, - "deco-sites/std/sections/Analytics.tsx": i2$$$$$0, - "deco-sites/std/sections/configButterCMS.global.tsx": i2$$$$$1, - "deco-sites/std/sections/configLinxImpulse.global.tsx": i2$$$$$2, - "deco-sites/std/sections/configNuvemShop.tsx": i2$$$$$3, - "deco-sites/std/sections/configOCC.global.tsx": i2$$$$$4, - "deco-sites/std/sections/configShopify.global.tsx": i2$$$$$5, - "deco-sites/std/sections/configVTEX.global.tsx": i2$$$$$6, - "deco-sites/std/sections/configYourViews.global.tsx": i2$$$$$7, - "deco-sites/std/sections/SEO.tsx": i2$$$$$8, - "deco-sites/std/sections/SEOPDP.tsx": i2$$$$$9, - "deco-sites/std/sections/SEOPLP.tsx": i2$$$$$10, - "deco-sites/std/sections/VTEXPortalDataLayerCompatibility.tsx": i2$$$$$11, - }, - "matchers": { - "$live/matchers/MatchAlways.ts": i1$$$$$0, - "$live/matchers/MatchCron.ts": i1$$$$$1, - "$live/matchers/MatchDate.ts": i1$$$$$2, - "$live/matchers/MatchDevice.ts": i1$$$$$3, - "$live/matchers/MatchEnvironment.ts": i1$$$$$4, - "$live/matchers/MatchHost.ts": i1$$$$$5, - "$live/matchers/MatchLocation.ts": i1$$$$$6, - "$live/matchers/MatchMulti.ts": i1$$$$$7, - "$live/matchers/MatchRandom.ts": i1$$$$$8, - "$live/matchers/MatchSite.ts": i1$$$$$9, - "$live/matchers/MatchUserAgent.ts": i1$$$$$10, - "deco-sites/starting/matchers/MatchPath.ts": $$$$$$$$$0, - }, - "name": "deco-sites/starting", - "handlers": { - "$live/handlers/devPage.ts": i1$$0, - "$live/handlers/fresh.ts": i1$$1, - "$live/handlers/proxy.ts": i1$$2, - "$live/handlers/redirect.ts": i1$$3, - "$live/handlers/router.ts": i1$$4, - "$live/handlers/routesSelection.ts": i1$$5, - "$live/handlers/workflowRunner.ts": i1$$6, - "deco-sites/std/handlers/sitemap.ts": i2$$$$0, - "deco-sites/std/handlers/vtex/sitemap.ts": i2$$$$1, - }, - "pages": { - "$live/pages/LivePage.tsx": i1$$$0, - }, - "flags": { - "$live/flags/audience.ts": i1$$$$$$0, - "$live/flags/everyone.ts": i1$$$$$$1, - "$live/flags/flag.ts": i1$$$$$$2, - "$live/flags/multivariate.ts": i1$$$$$$3, - }, - "actions": { - "$live/actions/secrets/encrypt.ts": i1$$$$$$$0, - "$live/actions/workflows/cancel.ts": i1$$$$$$$1, - "$live/actions/workflows/signal.ts": i1$$$$$$$2, - "$live/actions/workflows/start.ts": i1$$$$$$$3, - "deco-sites/std/actions/vnda/cart/addItem.ts": i2$$$$$$0, - "deco-sites/std/actions/vnda/cart/setShippingAddress.ts": i2$$$$$$1, - "deco-sites/std/actions/vnda/cart/updateCoupon.ts": i2$$$$$$2, - "deco-sites/std/actions/vnda/cart/updateItem.ts": i2$$$$$$3, - "deco-sites/std/actions/vtex/analytics/sendEvent.ts": i2$$$$$$4, - "deco-sites/std/actions/vtex/cart/addItems.ts": i2$$$$$$5, - "deco-sites/std/actions/vtex/cart/getInstallment.ts": i2$$$$$$6, - "deco-sites/std/actions/vtex/cart/removeItemAttachment.ts": i2$$$$$$7, - "deco-sites/std/actions/vtex/cart/removeItems.ts": i2$$$$$$8, - "deco-sites/std/actions/vtex/cart/simulation.ts": i2$$$$$$9, - "deco-sites/std/actions/vtex/cart/updateAttachment.ts": i2$$$$$$10, - "deco-sites/std/actions/vtex/cart/updateCoupons.ts": i2$$$$$$11, - "deco-sites/std/actions/vtex/cart/updateItemAttachment.ts": i2$$$$$$12, - "deco-sites/std/actions/vtex/cart/updateItemPrice.ts": i2$$$$$$13, - "deco-sites/std/actions/vtex/cart/updateItems.ts": i2$$$$$$14, - "deco-sites/std/actions/vtex/cart/updateProfile.ts": i2$$$$$$15, - "deco-sites/std/actions/vtex/cart/updateUser.ts": i2$$$$$$16, - "deco-sites/std/actions/vtex/newsletter/subscribe.ts": i2$$$$$$17, - "deco-sites/std/actions/vtex/notifyme.ts": i2$$$$$$18, - "deco-sites/std/actions/vtex/wishlist/addItem.ts": i2$$$$$$19, - "deco-sites/std/actions/vtex/wishlist/removeItem.ts": i2$$$$$$20, - }, - "accounts": { - "deco-sites/std/accounts/butterCMS.ts": i2$$0, - "deco-sites/std/accounts/linxImpulse.ts": i2$$1, - "deco-sites/std/accounts/nuvemShop.ts": i2$$2, - "deco-sites/std/accounts/occ.ts": i2$$3, - "deco-sites/std/accounts/shopify.ts": i2$$4, - "deco-sites/std/accounts/vnda.ts": i2$$5, - "deco-sites/std/accounts/vtex.ts": i2$$6, - "deco-sites/std/accounts/yourViews.ts": i2$$7, - }, - "baseUrl": import.meta.url, -}; - -export type Manifest = typeof manifest; - -export default manifest; diff --git a/main.ts b/main.ts index 9850b17c..bcb4fe5e 100644 --- a/main.ts +++ b/main.ts @@ -4,15 +4,7 @@ /// import { start } from "$fresh/server.ts"; -import { $live } from "$live/mod.ts"; -import manifest from "deco-sites/starting/live.gen.ts"; -import decoPlugins from "deco-sites/std/plugins/mod.ts"; -import partytownPlugin from "partytown/mod.ts"; -import site from "./site.json" assert { type: "json" }; +import config from "./fresh.config.ts"; +import manifest from "./fresh.gen.ts"; -await start($live(manifest, site), { - plugins: [ - ...decoPlugins(), - partytownPlugin(), - ], -}); +await start(manifest, config); \ No newline at end of file diff --git a/manifest.gen.ts b/manifest.gen.ts new file mode 100644 index 00000000..e70923d0 --- /dev/null +++ b/manifest.gen.ts @@ -0,0 +1,207 @@ +// DO NOT EDIT. This file is generated by deco. +// This file SHOULD be checked into source version control. +// This file is automatically updated during development when running `dev.ts`. + +import * as $0 from "./functions/LoadGitHubRaw.ts"; +import * as $1 from "./functions/LoadGitHubRawPost.ts"; +import * as $2 from "./functions/LoadGitHubRawPostList.ts"; +import * as $3 from "./functions/LoadPageProps.ts"; +import * as $4 from "./functions/psiRankingList.ts"; +import * as $$$0 from "./loaders/blogPostDetailsLoader.ts"; +import * as $$$1 from "./loaders/blogPostLoader.ts"; +import * as $$$2 from "./loaders/blogPostMarkdownLoader.ts"; +import * as $$$3 from "./loaders/denoLoader.ts"; +import * as $$$4 from "./loaders/denoTopicsLoader.ts"; +import * as $$$5 from "./loaders/featuredPosts.ts"; +import * as $$$$$$0 from "./sections/About.tsx"; +import * as $$$$$$1 from "./sections/Benefits.tsx"; +import * as $$$$$$2 from "./sections/BlogHeader.tsx"; +import * as $$$$$$3 from "./sections/BlogPostHeader.tsx"; +import * as $$$$$$4 from "./sections/BlogPostList.tsx"; +import * as $$$$$$5 from "./sections/BlogPostSEO.tsx"; +import * as $$$$$$6 from "./sections/CampComments.tsx"; +import * as $$$$$$7 from "./sections/CampHero.tsx"; +import * as $$$$$$8 from "./sections/CampMentor.tsx"; +import * as $$$$$$9 from "./sections/CampRegistration.tsx"; +import * as $$$$$$10 from "./sections/CampSteps.tsx"; +import * as $$$$$$11 from "./sections/Carousel.tsx"; +import * as $$$$$$12 from "./sections/Case/ArticleBannerCTA.tsx"; +import * as $$$$$$13 from "./sections/Case/ArticleDivider.tsx"; +import * as $$$$$$14 from "./sections/Case/ArticleHeader.tsx"; +import * as $$$$$$15 from "./sections/Case/ArticleNumbers.tsx"; +import * as $$$$$$16 from "./sections/Case/ArticleParagraph.tsx"; +import * as $$$$$$17 from "./sections/Case/ArticleQuote.tsx"; +import * as $$$$$$18 from "./sections/Case/ArticleVideo.tsx"; +import * as $$$$$$19 from "./sections/Case/ArticleYoutubeVideo.tsx"; +import * as $$$$$$20 from "./sections/Case/Case.tsx"; +import * as $$$$$$21 from "./sections/Cms.tsx"; +import * as $$$$$$22 from "./sections/Community.tsx"; +import * as $$$$$$23 from "./sections/ContactUs.tsx"; +import * as $$$$$$24 from "./sections/Content.tsx"; +import * as $$$$$$25 from "./sections/CustomizableContent.tsx"; +import * as $$$$$$26 from "./sections/Delight.tsx"; +import * as $$$$$$27 from "./sections/DepoimentsCarrossel.tsx"; +import * as $$$$$$28 from "./sections/Differentials.tsx"; +import * as $$$$$$29 from "./sections/Divider.tsx"; +import * as $$$$$$30 from "./sections/Faq.tsx"; +import * as $$$$$$31 from "./sections/Features.tsx"; +import * as $$$$$$32 from "./sections/Footer.tsx"; +import * as $$$$$$33 from "./sections/FooterBigLogo.tsx"; +import * as $$$$$$34 from "./sections/General/Spacer.tsx"; +import * as $$$$$$35 from "./sections/Head.tsx"; +import * as $$$$$$36 from "./sections/Header.tsx"; +import * as $$$$$$37 from "./sections/HelpBlogPosts.tsx"; +import * as $$$$$$38 from "./sections/HelpFaq.tsx"; +import * as $$$$$$39 from "./sections/HeroPost.tsx"; +import * as $$$$$$40 from "./sections/Home/Brands.tsx"; +import * as $$$$$$41 from "./sections/HowCanWeHelp.tsx"; +import * as $$$$$$42 from "./sections/Hub/Advantage.tsx"; +import * as $$$$$$43 from "./sections/Hub/Agencies.tsx"; +import * as $$$$$$44 from "./sections/Hub/Creator.tsx"; +import * as $$$$$$45 from "./sections/Hub/Heading.tsx"; +import * as $$$$$$46 from "./sections/Hub/Integrations.tsx"; +import * as $$$$$$47 from "./sections/Hub/SectionSubtitle.tsx"; +import * as $$$$$$48 from "./sections/Hub/SectionTitle.tsx"; +import * as $$$$$$49 from "./sections/Hub/TemplateIframe.tsx"; +import * as $$$$$$50 from "./sections/Hub/TemplatePreview.tsx"; +import * as $$$$$$51 from "./sections/Hub/TemplatesGrid.tsx"; +import * as $$$$$$52 from "./sections/ImpactCalculator.tsx"; +import * as $$$$$$53 from "./sections/Integration.tsx"; +import * as $$$$$$54 from "./sections/JoinOurCommunity.tsx"; +import * as $$$$$$55 from "./sections/Links.tsx"; +import * as $$$$$$56 from "./sections/Live Projects/Hero.tsx"; +import * as $$$$$$57 from "./sections/Live Projects/ProjectsGrid.tsx"; +import * as $$$$$$58 from "./sections/MainBanner.tsx"; +import * as $$$$$$59 from "./sections/Markdown.tsx"; +import * as $$$$$$60 from "./sections/MarkdownContent.tsx"; +import * as $$$$$$61 from "./sections/OnThisPage.tsx"; +import * as $$$$$$62 from "./sections/Page.tsx"; +import * as $$$$$$63 from "./sections/Partner.tsx"; +import * as $$$$$$64 from "./sections/PopularDocuments.tsx"; +import * as $$$$$$65 from "./sections/PopularTopics.tsx"; +import * as $$$$$$66 from "./sections/Pricing.tsx"; +import * as $$$$$$67 from "./sections/PricingValue.tsx"; +import * as $$$$$$68 from "./sections/QuillText.tsx"; +import * as $$$$$$69 from "./sections/RankingAnalyze.tsx"; +import * as $$$$$$70 from "./sections/RankingHeader.tsx"; +import * as $$$$$$71 from "./sections/RankingList.tsx"; +import * as $$$$$$72 from "./sections/SectionList.tsx"; +import * as $$$$$$73 from "./sections/Sidebar.tsx"; +import * as $$$$$$74 from "./sections/StripePricing.tsx"; +import * as $$$$$$75 from "./sections/Thanks.tsx"; +import * as $$$$$$76 from "./sections/TripletBanner.tsx"; +import * as $$$$$$77 from "./sections/Webinar/Content.tsx"; +import * as $$$$$$78 from "./sections/Webinar/Hero.tsx"; +import * as $$$$$$$0 from "./matchers/MatchPath.ts"; +import * as $$$$$$$$$$$0 from "./apps/site.ts"; + +const manifest = { + "functions": { + "deco-sites/starting/functions/LoadGitHubRaw.ts": $0, + "deco-sites/starting/functions/LoadGitHubRawPost.ts": $1, + "deco-sites/starting/functions/LoadGitHubRawPostList.ts": $2, + "deco-sites/starting/functions/LoadPageProps.ts": $3, + "deco-sites/starting/functions/psiRankingList.ts": $4, + }, + "loaders": { + "deco-sites/starting/loaders/blogPostDetailsLoader.ts": $$$0, + "deco-sites/starting/loaders/blogPostLoader.ts": $$$1, + "deco-sites/starting/loaders/blogPostMarkdownLoader.ts": $$$2, + "deco-sites/starting/loaders/denoLoader.ts": $$$3, + "deco-sites/starting/loaders/denoTopicsLoader.ts": $$$4, + "deco-sites/starting/loaders/featuredPosts.ts": $$$5, + }, + "sections": { + "deco-sites/starting/sections/About.tsx": $$$$$$0, + "deco-sites/starting/sections/Benefits.tsx": $$$$$$1, + "deco-sites/starting/sections/BlogHeader.tsx": $$$$$$2, + "deco-sites/starting/sections/BlogPostHeader.tsx": $$$$$$3, + "deco-sites/starting/sections/BlogPostList.tsx": $$$$$$4, + "deco-sites/starting/sections/BlogPostSEO.tsx": $$$$$$5, + "deco-sites/starting/sections/CampComments.tsx": $$$$$$6, + "deco-sites/starting/sections/CampHero.tsx": $$$$$$7, + "deco-sites/starting/sections/CampMentor.tsx": $$$$$$8, + "deco-sites/starting/sections/CampRegistration.tsx": $$$$$$9, + "deco-sites/starting/sections/CampSteps.tsx": $$$$$$10, + "deco-sites/starting/sections/Carousel.tsx": $$$$$$11, + "deco-sites/starting/sections/Case/ArticleBannerCTA.tsx": $$$$$$12, + "deco-sites/starting/sections/Case/ArticleDivider.tsx": $$$$$$13, + "deco-sites/starting/sections/Case/ArticleHeader.tsx": $$$$$$14, + "deco-sites/starting/sections/Case/ArticleNumbers.tsx": $$$$$$15, + "deco-sites/starting/sections/Case/ArticleParagraph.tsx": $$$$$$16, + "deco-sites/starting/sections/Case/ArticleQuote.tsx": $$$$$$17, + "deco-sites/starting/sections/Case/ArticleVideo.tsx": $$$$$$18, + "deco-sites/starting/sections/Case/ArticleYoutubeVideo.tsx": $$$$$$19, + "deco-sites/starting/sections/Case/Case.tsx": $$$$$$20, + "deco-sites/starting/sections/Cms.tsx": $$$$$$21, + "deco-sites/starting/sections/Community.tsx": $$$$$$22, + "deco-sites/starting/sections/ContactUs.tsx": $$$$$$23, + "deco-sites/starting/sections/Content.tsx": $$$$$$24, + "deco-sites/starting/sections/CustomizableContent.tsx": $$$$$$25, + "deco-sites/starting/sections/Delight.tsx": $$$$$$26, + "deco-sites/starting/sections/DepoimentsCarrossel.tsx": $$$$$$27, + "deco-sites/starting/sections/Differentials.tsx": $$$$$$28, + "deco-sites/starting/sections/Divider.tsx": $$$$$$29, + "deco-sites/starting/sections/Faq.tsx": $$$$$$30, + "deco-sites/starting/sections/Features.tsx": $$$$$$31, + "deco-sites/starting/sections/Footer.tsx": $$$$$$32, + "deco-sites/starting/sections/FooterBigLogo.tsx": $$$$$$33, + "deco-sites/starting/sections/General/Spacer.tsx": $$$$$$34, + "deco-sites/starting/sections/Head.tsx": $$$$$$35, + "deco-sites/starting/sections/Header.tsx": $$$$$$36, + "deco-sites/starting/sections/HelpBlogPosts.tsx": $$$$$$37, + "deco-sites/starting/sections/HelpFaq.tsx": $$$$$$38, + "deco-sites/starting/sections/HeroPost.tsx": $$$$$$39, + "deco-sites/starting/sections/Home/Brands.tsx": $$$$$$40, + "deco-sites/starting/sections/HowCanWeHelp.tsx": $$$$$$41, + "deco-sites/starting/sections/Hub/Advantage.tsx": $$$$$$42, + "deco-sites/starting/sections/Hub/Agencies.tsx": $$$$$$43, + "deco-sites/starting/sections/Hub/Creator.tsx": $$$$$$44, + "deco-sites/starting/sections/Hub/Heading.tsx": $$$$$$45, + "deco-sites/starting/sections/Hub/Integrations.tsx": $$$$$$46, + "deco-sites/starting/sections/Hub/SectionSubtitle.tsx": $$$$$$47, + "deco-sites/starting/sections/Hub/SectionTitle.tsx": $$$$$$48, + "deco-sites/starting/sections/Hub/TemplateIframe.tsx": $$$$$$49, + "deco-sites/starting/sections/Hub/TemplatePreview.tsx": $$$$$$50, + "deco-sites/starting/sections/Hub/TemplatesGrid.tsx": $$$$$$51, + "deco-sites/starting/sections/ImpactCalculator.tsx": $$$$$$52, + "deco-sites/starting/sections/Integration.tsx": $$$$$$53, + "deco-sites/starting/sections/JoinOurCommunity.tsx": $$$$$$54, + "deco-sites/starting/sections/Links.tsx": $$$$$$55, + "deco-sites/starting/sections/Live Projects/Hero.tsx": $$$$$$56, + "deco-sites/starting/sections/Live Projects/ProjectsGrid.tsx": $$$$$$57, + "deco-sites/starting/sections/MainBanner.tsx": $$$$$$58, + "deco-sites/starting/sections/Markdown.tsx": $$$$$$59, + "deco-sites/starting/sections/MarkdownContent.tsx": $$$$$$60, + "deco-sites/starting/sections/OnThisPage.tsx": $$$$$$61, + "deco-sites/starting/sections/Page.tsx": $$$$$$62, + "deco-sites/starting/sections/Partner.tsx": $$$$$$63, + "deco-sites/starting/sections/PopularDocuments.tsx": $$$$$$64, + "deco-sites/starting/sections/PopularTopics.tsx": $$$$$$65, + "deco-sites/starting/sections/Pricing.tsx": $$$$$$66, + "deco-sites/starting/sections/PricingValue.tsx": $$$$$$67, + "deco-sites/starting/sections/QuillText.tsx": $$$$$$68, + "deco-sites/starting/sections/RankingAnalyze.tsx": $$$$$$69, + "deco-sites/starting/sections/RankingHeader.tsx": $$$$$$70, + "deco-sites/starting/sections/RankingList.tsx": $$$$$$71, + "deco-sites/starting/sections/SectionList.tsx": $$$$$$72, + "deco-sites/starting/sections/Sidebar.tsx": $$$$$$73, + "deco-sites/starting/sections/StripePricing.tsx": $$$$$$74, + "deco-sites/starting/sections/Thanks.tsx": $$$$$$75, + "deco-sites/starting/sections/TripletBanner.tsx": $$$$$$76, + "deco-sites/starting/sections/Webinar/Content.tsx": $$$$$$77, + "deco-sites/starting/sections/Webinar/Hero.tsx": $$$$$$78, + }, + "matchers": { + "deco-sites/starting/matchers/MatchPath.ts": $$$$$$$0, + }, + "apps": { + "deco-sites/starting/apps/site.ts": $$$$$$$$$$$0, + }, + "name": "deco-sites/starting", + "baseUrl": import.meta.url, +}; + +export type Manifest = typeof manifest; + +export default manifest; diff --git a/routes/_middleware.ts b/routes/_middleware.ts deleted file mode 100644 index ff45346f..00000000 --- a/routes/_middleware.ts +++ /dev/null @@ -1,57 +0,0 @@ -import { MiddlewareHandlerContext } from "$fresh/server.ts"; -import { handler as liveHandler } from "$live/routes/_middleware.ts"; - -interface State { - data: string; -} - -async function _handler(req: Request, ctx: MiddlewareHandlerContext) { - const pathname = new URL(req.url).pathname; - - const redirectTo = (url: string) => - new Response(`Redirecting to ${url}`, { - status: 302, - headers: { - Location: url, - }, - }); - - switch (pathname) { - case "/angel": - return redirectTo("https://forms.gle/i9iK6orcN1YEX69E6"); - case "/deck": - return redirectTo("https://www.deco.cx/deck.pdf"); - case "/discord": - return redirectTo("https://discord.gg/9fkbcvR833"); - case "/expert-signup": - return redirectTo("https://airtable.com/shrpWZHqr4bmuI5OD"); - case "/brand": - return redirectTo( - "https://drive.google.com/drive/folders/1fMIVfALCEa3Er2iX0kNF-87IQSWtpSyy?usp=share_link", - ); - case "/onboarding": - return redirectTo("https://deco.cx/onboarding"); - case "/ifood": - return redirectTo("https://airtable.com/shrquWd6sEWZQVdC4"); - case "/demo-pt": - return redirectTo("https://www.youtube.com/watch?v=I8rsKVVjOVQ"); - case "/deck-video-pt": - return redirectTo("https://www.youtube.com/watch?v=fz-wueU_D6o"); - case "/politica-privacidade": - return redirectTo( - "https://drive.google.com/file/d/15WCSop0_jNfrGn73EqFOr94twJIIrxea/view?usp=sharing", - ); - case "/termos-de-uso": - return redirectTo( - "https://drive.google.com/file/d/1tihCV4Y5zRPXGdpP6prmIvNevUBpWKcu/view?usp=sharing", - ); - case "/analize": - return redirectTo("https://deco.cx/en/analize"); - default: { - const resp = await ctx.next(); - return resp; - } - } -} - -export const handler = [_handler, liveHandler]; diff --git a/routes/api/calc.tsx b/routes/api/calc.tsx index b08af931..8346a4dd 100644 --- a/routes/api/calc.tsx +++ b/routes/api/calc.tsx @@ -1,6 +1,6 @@ import type { Handlers } from "$fresh/server.ts"; -import type { LiveState } from "$live/types.ts"; +import type { LiveState } from "deco/types.ts"; const ZAPIER_WEBHOOK = Deno.env.get("ZAPIER_WEBHOOK2"); diff --git a/routes/api/case.tsx b/routes/api/case.tsx index 3170f002..b0102568 100644 --- a/routes/api/case.tsx +++ b/routes/api/case.tsx @@ -1,7 +1,7 @@ import type { Handlers } from "$fresh/server.ts"; -import getSupabaseClient from "$live/supabase.ts"; +import getSupabaseClient from "deco/supabase.ts"; -import type { LiveState } from "$live/types.ts"; +import type { LiveState } from "deco/types.ts"; const ZAPIER_WEBHOOK = Deno.env.get("ZAPIER_WEBHOOK_CASE"); diff --git a/routes/api/leads.tsx b/routes/api/leads.tsx index 9f495bf2..37840994 100644 --- a/routes/api/leads.tsx +++ b/routes/api/leads.tsx @@ -1,7 +1,7 @@ import type { Handlers } from "$fresh/server.ts"; -import getSupabaseClient from "$live/supabase.ts"; +import getSupabaseClient from "deco/supabase.ts"; -import type { LiveState } from "$live/types.ts"; +import type { LiveState } from "deco/types.ts"; const ZAPIER_WEBHOOK = Deno.env.get("ZAPIER_WEBHOOK"); diff --git a/routes/api/webinar.tsx b/routes/api/webinar.tsx index 8b0bb1c6..01afbd17 100644 --- a/routes/api/webinar.tsx +++ b/routes/api/webinar.tsx @@ -1,6 +1,6 @@ import type { Handlers } from "$fresh/server.ts"; -import getSupabaseClient from "$live/supabase.ts"; -import type { LiveState } from "$live/types.ts"; +import getSupabaseClient from "deco/supabase.ts"; +import type { LiveState } from "deco/types.ts"; const ZAPIER_WEBHOOK = Deno.env.get("ZAPIER_WEBHOOK_WEBINAR"); diff --git a/runtime.ts b/runtime.ts new file mode 100644 index 00000000..77fdf371 --- /dev/null +++ b/runtime.ts @@ -0,0 +1,4 @@ +import { forApp } from "deco/clients/withManifest.ts"; +import type { SiteApp } from "./apps/site.ts"; + +export const Runtime = forApp(); diff --git a/sections/BlogPostHeader.tsx b/sections/BlogPostHeader.tsx index cd1e9b87..7c48c82c 100644 --- a/sections/BlogPostHeader.tsx +++ b/sections/BlogPostHeader.tsx @@ -1,4 +1,4 @@ -import { LoaderReturnType } from "$live/types.ts"; +import { LoaderReturnType } from "deco/types.ts"; import { getBlogPath, PostList, diff --git a/sections/BlogPostList.tsx b/sections/BlogPostList.tsx index 5a7375d2..32dfa8b7 100644 --- a/sections/BlogPostList.tsx +++ b/sections/BlogPostList.tsx @@ -1,4 +1,4 @@ -import { LoaderReturnType } from "$live/types.ts"; +import { LoaderReturnType } from "deco/types.ts"; import { getBlogPath, PostList, diff --git a/sections/MarkdownContent.tsx b/sections/MarkdownContent.tsx index ca84f7bb..73e22dce 100644 --- a/sections/MarkdownContent.tsx +++ b/sections/MarkdownContent.tsx @@ -1,5 +1,5 @@ import { Head } from "$fresh/runtime.ts"; -import { LoaderReturnType } from "$live/types.ts"; +import { LoaderReturnType } from "deco/types.ts"; import { MDFileContent } from "deco-sites/starting/components/ui/Types.tsx"; import { diff --git a/sections/Page.tsx b/sections/Page.tsx index 3f03738b..99273967 100644 --- a/sections/Page.tsx +++ b/sections/Page.tsx @@ -1,5 +1,5 @@ -import { Section } from "$live/blocks/section.ts"; -import { useLivePageContext } from "$live/pages/LivePage.tsx"; +import { Section } from "deco/blocks/section.ts"; +import { useLivePageContext } from "deco/pages/LivePage.tsx"; export interface SectionProps { SectionSidebar: Section; diff --git a/sections/SectionList.tsx b/sections/SectionList.tsx index 3576194a..33fe7712 100644 --- a/sections/SectionList.tsx +++ b/sections/SectionList.tsx @@ -1,6 +1,6 @@ -import { Section } from "$live/blocks/section.ts"; -import { notUndefined } from "$live/engine/core/utils.ts"; -import { useLivePageContext } from "$live/pages/LivePage.tsx"; +import { Section } from "deco/blocks/section.ts"; +import { notUndefined } from "deco/engine/core/utils.ts"; +import { useLivePageContext } from "deco/pages/LivePage.tsx"; export interface Props { sections: Section[]; diff --git a/site.json b/site.json deleted file mode 100644 index 5bf618e2..00000000 --- a/site.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "siteId": 530, - "namespace": "deco-sites/starting" -} diff --git a/static/sw.js b/static/sw.js new file mode 100644 index 00000000..060d7379 --- /dev/null +++ b/static/sw.js @@ -0,0 +1,7 @@ +importScripts( + "https://storage.googleapis.com/workbox-cdn/releases/6.4.1/workbox-sw.js", +); + +workbox.setConfig({ debug: false }); +workbox.routing.setDefaultHandler(new workbox.strategies.NetworkOnly()); +workbox.recipes.offlineFallback({ pageFallback: "/offline" });