diff --git a/.llms-snapshots/llms-full.txt b/.llms-snapshots/llms-full.txt index 976d4c4a..b7686c1c 100644 --- a/.llms-snapshots/llms-full.txt +++ b/.llms-snapshots/llms-full.txt @@ -10410,7 +10410,7 @@ For most applications, we recommend using the default subnets and staying on the | Subnet ID | Type | Canisters (Running/Stopped) | Nodes (Up/Total) | | --- | --- | --- | --- | -| 6pbhf-qzpdk-kuqbr-pklfa-5ehhf-jfjps-zsj6q-57nrl-kzhpd-mu7hc-vae | Juno's Subnet | 36372/588 | 13/13 | +| 6pbhf-qzpdk-kuqbr-pklfa-5ehhf-jfjps-zsj6q-57nrl-kzhpd-mu7hc-vae | Juno's Subnet | 36376/590 | 13/13 | | pzp6e-ekpqk-3c5x7-2h6so-njoeq-mt45d-h3h6c-q3mxf-vpeq5-fk5o7-yae | Fiduciary | 3918/53 | 34/34 | | bkfrj-6k62g-dycql-7h53p-atvkj-zg4to-gaogh-netha-ptybj-ntsgw-rqe | European | 25262/725 | 13/13 | | re2t4-faa75-v3vhk-kdmdr-uyrkl-aik2l-ixd6u-p3fyr-zlfkc-6c5af-zae | Confidential | 41/96 | 7/7 | diff --git a/package-lock.json b/package-lock.json index db412601..ec8253bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,6 @@ "@docusaurus/core": "^3.10.2", "@docusaurus/preset-classic": "^3.10.2", "@docusaurus/remark-plugin-npm2yarn": "^3.10.2", - "@junobuild/analytics": "^0.2.15", "@mdx-js/react": "^3.1.1", "clsx": "^2.1.1", "prism-react-renderer": "^2.4.1", @@ -6383,18 +6382,6 @@ "tslib": "2" } }, - "node_modules/@junobuild/analytics": { - "version": "0.2.15", - "resolved": "https://registry.npmjs.org/@junobuild/analytics/-/analytics-0.2.15.tgz", - "integrity": "sha512-mrMU2OnrBqucACCYYEibiUSKwQx6I6aAQm+2Sycx5wyoDrPDABrTG/JbD36989Olv+l1wj81/r6aQ/79CRe9Gg==", - "license": "MIT", - "dependencies": { - "isbot": "^5.1.37", - "nanoid": "^5.1.7", - "ua-parser-js": "1.0.41", - "web-vitals": "^5.2.0" - } - }, "node_modules/@junobuild/config": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/@junobuild/config/-/config-3.0.1.tgz", @@ -12618,15 +12605,6 @@ "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==" }, - "node_modules/isbot": { - "version": "5.1.37", - "resolved": "https://registry.npmjs.org/isbot/-/isbot-5.1.37.tgz", - "integrity": "sha512-5bcicX81xf6NlTEV8rWdg7Pk01LFizDetuYGHx6d/f6y3lR2/oo8IfxjzJqn1UdDEyCcwT9e7NRloj8DwCYujQ==", - "license": "Unlicense", - "engines": { - "node": ">=18" - } - }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", @@ -15408,24 +15386,6 @@ "multicast-dns": "cli.js" } }, - "node_modules/nanoid": { - "version": "5.1.7", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-5.1.7.tgz", - "integrity": "sha512-ua3NDgISf6jdwezAheMOk4mbE1LXjm1DfMUDMuJf4AqxLFK3ccGpgWizwa5YV7Yz9EpXwEaWoRXSb/BnV0t5dQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "license": "MIT", - "bin": { - "nanoid": "bin/nanoid.js" - }, - "engines": { - "node": "^18 || >=20" - } - }, "node_modules/negotiator": { "version": "0.6.4", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.4.tgz", @@ -20465,32 +20425,6 @@ "@typescript/typescript-win32-x64": "7.0.2" } }, - "node_modules/ua-parser-js": { - "version": "1.0.41", - "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-1.0.41.tgz", - "integrity": "sha512-LbBDqdIC5s8iROCUjMbW1f5dJQTEFB1+KO9ogbvlb3nm9n4YHa5p4KTvFPWvh2Hs8gZMBuiB1/8+pdfe/tDPug==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/ua-parser-js" - }, - { - "type": "paypal", - "url": "https://paypal.me/faisalman" - }, - { - "type": "github", - "url": "https://github.com/sponsors/faisalman" - } - ], - "license": "MIT", - "bin": { - "ua-parser-js": "script/cli.js" - }, - "engines": { - "node": "*" - } - }, "node_modules/undici": { "version": "8.10.0", "resolved": "https://registry.npmjs.org/undici/-/undici-8.10.0.tgz", @@ -21042,12 +20976,6 @@ "url": "https://github.com/sponsors/wooorm" } }, - "node_modules/web-vitals": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-5.2.0.tgz", - "integrity": "sha512-i2z98bEmaCqSDiHEDu+gHl/dmR4Q+TxFmG3/13KkMO+o8UxQzCqWaDRCiLgEa41nlO4VpXSI0ASa1xWmO9sBlA==", - "license": "Apache-2.0" - }, "node_modules/webidl-conversions": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-8.0.1.tgz", @@ -24789,17 +24717,6 @@ "@jsonjoy.com/codegen": "^1.0.0" } }, - "@junobuild/analytics": { - "version": "0.2.15", - "resolved": "https://registry.npmjs.org/@junobuild/analytics/-/analytics-0.2.15.tgz", - "integrity": "sha512-mrMU2OnrBqucACCYYEibiUSKwQx6I6aAQm+2Sycx5wyoDrPDABrTG/JbD36989Olv+l1wj81/r6aQ/79CRe9Gg==", - "requires": { - "isbot": "^5.1.37", - "nanoid": "^5.1.7", - "ua-parser-js": "1.0.41", - "web-vitals": "^5.2.0" - } - }, "@junobuild/config": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/@junobuild/config/-/config-3.0.1.tgz", @@ -28697,11 +28614,6 @@ "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==" }, - "isbot": { - "version": "5.1.37", - "resolved": "https://registry.npmjs.org/isbot/-/isbot-5.1.37.tgz", - "integrity": "sha512-5bcicX81xf6NlTEV8rWdg7Pk01LFizDetuYGHx6d/f6y3lR2/oo8IfxjzJqn1UdDEyCcwT9e7NRloj8DwCYujQ==" - }, "isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", @@ -30297,11 +30209,6 @@ "thunky": "^1.0.2" } }, - "nanoid": { - "version": "5.1.7", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-5.1.7.tgz", - "integrity": "sha512-ua3NDgISf6jdwezAheMOk4mbE1LXjm1DfMUDMuJf4AqxLFK3ccGpgWizwa5YV7Yz9EpXwEaWoRXSb/BnV0t5dQ==" - }, "negotiator": { "version": "0.6.4", "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.4.tgz", @@ -33224,11 +33131,6 @@ "@typescript/typescript-win32-x64": "7.0.2" } }, - "ua-parser-js": { - "version": "1.0.41", - "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-1.0.41.tgz", - "integrity": "sha512-LbBDqdIC5s8iROCUjMbW1f5dJQTEFB1+KO9ogbvlb3nm9n4YHa5p4KTvFPWvh2Hs8gZMBuiB1/8+pdfe/tDPug==" - }, "undici": { "version": "8.10.0", "resolved": "https://registry.npmjs.org/undici/-/undici-8.10.0.tgz", @@ -33577,11 +33479,6 @@ "resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-2.0.1.tgz", "integrity": "sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==" }, - "web-vitals": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-5.2.0.tgz", - "integrity": "sha512-i2z98bEmaCqSDiHEDu+gHl/dmR4Q+TxFmG3/13KkMO+o8UxQzCqWaDRCiLgEa41nlO4VpXSI0ASa1xWmO9sBlA==" - }, "webidl-conversions": { "version": "8.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-8.0.1.tgz", diff --git a/package.json b/package.json index f4a27279..01edcf78 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,6 @@ "@docusaurus/core": "^3.10.2", "@docusaurus/preset-classic": "^3.10.2", "@docusaurus/remark-plugin-npm2yarn": "^3.10.2", - "@junobuild/analytics": "^0.2.15", "@mdx-js/react": "^3.1.1", "clsx": "^2.1.1", "prism-react-renderer": "^2.4.1", diff --git a/src/components/AskAi/index.tsx b/src/components/AskAi/index.tsx index 3355b57b..6913c30c 100644 --- a/src/components/AskAi/index.tsx +++ b/src/components/AskAi/index.tsx @@ -1,6 +1,5 @@ import { useLocation } from "@docusaurus/router"; import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; -import { trackEvent } from "@site/src/providers/analytics.providers"; import IconClaude from "@site/static/icons/claude.svg"; import IconMarkdown from "@site/static/icons/markdown.svg"; import IconOpenAI from "@site/static/icons/openai.svg"; @@ -16,15 +15,6 @@ const AskAiLink = ({ icon, text, link, description, pathname, eventName }) => { className="dropdown__link" target="_blank" rel="noopener noreferrer" - onClick={() => - trackEvent({ - name: eventName, - metadata: { - pathname - }, - siteConfig - }) - } > {icon} diff --git a/src/components/BashSnippet/index.tsx b/src/components/BashSnippet/index.tsx index caa0eb7f..b8acd5d1 100644 --- a/src/components/BashSnippet/index.tsx +++ b/src/components/BashSnippet/index.tsx @@ -1,5 +1,4 @@ import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; -import { trackEvent } from "@site/src/providers/analytics.providers"; import CodeBlock from "@theme/CodeBlock"; import { useRef } from "react"; import styles from "./styles.module.scss"; @@ -14,25 +13,8 @@ export default function BashSnippet({ const { siteConfig } = useDocusaurusContext(); const container = useRef(null); - const onClick = async ({ target }: MouseEvent) => { - const btn = container.current?.querySelector('button[title="Copy"]'); - - if (!btn?.contains(target)) { - return; - } - - await trackEvent({ - name: analyticsEventName, - siteConfig - }); - }; - return ( -
onClick($event as unknown as MouseEvent)} - > +

Start Building - - trackEvent({ - name: "documentation", - siteConfig - }) - } - > + Documentation diff --git a/src/components/Start/index.tsx b/src/components/Start/index.tsx index 6804f3bc..73632f33 100644 --- a/src/components/Start/index.tsx +++ b/src/components/Start/index.tsx @@ -1,8 +1,5 @@ import Link from "@docusaurus/Link"; -import { useLocation } from "@docusaurus/router"; -import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; import { ReactNode } from "react"; -import { trackEvent } from "../../providers/analytics.providers"; type StartProps = { position: string; @@ -15,27 +12,11 @@ export default function Start({ className = "", children }: StartProps): JSX.Element { - const { siteConfig } = useDocusaurusContext(); - - const location = useLocation(); - const queryParams = new URLSearchParams(location.search); - const utmSource = queryParams.get("utm_source"); - return ( - trackEvent({ - name: "start_building", - metadata: { - position, - ...(utmSource && utmSource !== "" ? { utm_source: utmSource } : {}) - }, - siteConfig - }) - } > {children} diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 3e5581d7..77cf86cc 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,5 +1,3 @@ -import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; -import { initOrbiter } from "@junobuild/analytics"; import AI from "@site/src/components/Ai"; import Build from "@site/src/components/Build"; import Features from "@site/src/components/Features"; @@ -8,29 +6,11 @@ import Hero from "@site/src/components/Hero"; import Outro from "@site/src/components/Outro"; import Screenshot from "@site/src/components/Screenshot"; import Layout from "@theme/Layout"; -import { useEffect } from "react"; - import Launch from "@site/src/components/Launch"; import Testimonials from "@site/src/components/Testimonials"; import styles from "./index.module.scss"; export default function Home(): JSX.Element { - const { siteConfig } = useDocusaurusContext(); - const { - customFields: { dev } - } = siteConfig; - - useEffect(() => { - if (dev) { - return; - } - - initOrbiter({ - satelliteId: "ucnx3-aqaaa-aaaal-ab3ea-cai", - orbiterId: "3iier-sqaaa-aaaal-aczaa-cai" - }); - }, []); - return ( diff --git a/src/providers/analytics.providers.ts b/src/providers/analytics.providers.ts deleted file mode 100644 index 64f0fe42..00000000 --- a/src/providers/analytics.providers.ts +++ /dev/null @@ -1,27 +0,0 @@ -import type { DocusaurusConfig } from "@docusaurus/types"; -import { trackEventAsync as trackEventOrbiter } from "@junobuild/analytics"; - -export const trackEvent = async ({ - name, - metadata, - siteConfig -}: { - name: string; - metadata?: Record; - siteConfig: DocusaurusConfig; -}): Promise => { - const { - customFields: { dev } - } = siteConfig; - - if (dev) { - return false; - } - - await trackEventOrbiter({ - name, - metadata - }); - - return true; -};