From 7653652b537e7d0728a3abe14613807e5afe4e21 Mon Sep 17 00:00:00 2001 From: Henrique Pinheiro Date: Mon, 30 Oct 2023 21:30:03 -0300 Subject: [PATCH] =?UTF-8?q?tracking(matomo):=20Adiciona=20tracking=20de=20?= =?UTF-8?q?visita=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix #37 Tracking de visitação --- web/astro.config.mjs | 8 ++++---- web/package.json | 1 + web/src/layouts/base.astro | 19 +++++++++++++++++++ web/yarn.lock | 18 ++++++++++++++++++ 4 files changed, 42 insertions(+), 4 deletions(-) diff --git a/web/astro.config.mjs b/web/astro.config.mjs index 2583513..1576bf2 100644 --- a/web/astro.config.mjs +++ b/web/astro.config.mjs @@ -1,11 +1,11 @@ -import { defineConfig } from 'astro/config' -import tailwind from '@astrojs/tailwind' - import deno from '@astrojs/deno' +import partytown from '@astrojs/partytown' +import tailwind from '@astrojs/tailwind' +import { defineConfig } from 'astro/config' // https://astro.build/config export default defineConfig({ output: 'server', - integrations: [tailwind()], + integrations: [tailwind(), partytown()], adapter: deno() }) diff --git a/web/package.json b/web/package.json index 8ce50a0..50c9b72 100644 --- a/web/package.json +++ b/web/package.json @@ -11,6 +11,7 @@ }, "dependencies": { "@astrojs/deno": "^5.0.1", + "@astrojs/partytown": "^2.0.1", "@astrojs/tailwind": "^5.0.2", "astro": "^3.3.3", "mongodb": "^6.2.0", diff --git a/web/src/layouts/base.astro b/web/src/layouts/base.astro index 380b411..05994a9 100644 --- a/web/src/layouts/base.astro +++ b/web/src/layouts/base.astro @@ -14,6 +14,25 @@ const { title, metaDescription } = Astro.props /> {title} + + + diff --git a/web/yarn.lock b/web/yarn.lock index c7bfb52..3f88a4a 100644 --- a/web/yarn.lock +++ b/web/yarn.lock @@ -52,6 +52,14 @@ unist-util-visit "^4.1.2" vfile "^5.3.7" +"@astrojs/partytown@^2.0.1": + version "2.0.1" + resolved "https://registry.yarnpkg.com/@astrojs/partytown/-/partytown-2.0.1.tgz#7589207d09da3830fe0e51ac4521c203d9cb024a" + integrity sha512-WQC5lR2XINGxvQ35KDu806AVKNsD4Qc6I/am+4JpW6CZb0ccqVt7TSCosTMmYSiuNTInsnV34RAeile88kTtbw== + dependencies: + "@builder.io/partytown" "^0.8.0" + mrmime "^1.0.1" + "@astrojs/prism@^3.0.0": version "3.0.0" resolved "https://registry.yarnpkg.com/@astrojs/prism/-/prism-3.0.0.tgz#c9443e4cbf435acf0b5adc2c627d9789991514e7" @@ -314,6 +322,11 @@ "@babel/helper-validator-identifier" "^7.22.19" to-fast-properties "^2.0.0" +"@builder.io/partytown@^0.8.0": + version "0.8.1" + resolved "https://registry.yarnpkg.com/@builder.io/partytown/-/partytown-0.8.1.tgz#d50f2508b2e9b554ac890e8130c60b27cfb5958a" + integrity sha512-p4xhEtQCPe8YFJ8e7KT9RptnT+f4lvtbmXymbp1t0bLp+USkNMTxrRMNc3Dlr2w2fpxyX7uA0CyAeU3ju84O4A== + "@esbuild/android-arm64@0.18.20": version "0.18.20" resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.18.20.tgz#984b4f9c8d0377443cc2dfcef266d02244593622" @@ -2598,6 +2611,11 @@ mri@^1.1.0: resolved "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz" integrity sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA== +mrmime@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/mrmime/-/mrmime-1.0.1.tgz#5f90c825fad4bdd41dc914eff5d1a8cfdaf24f27" + integrity sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw== + ms@2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz"