From f35670d6a8f60a08d75c347e6510571203750721 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com>
Date: Mon, 21 Apr 2025 14:36:24 -0500
Subject: [PATCH 1/2] Update Party3.astro
---
packages/website/src/components/Party3.astro | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/packages/website/src/components/Party3.astro b/packages/website/src/components/Party3.astro
index 415e5b90d..fbf1f5209 100644
--- a/packages/website/src/components/Party3.astro
+++ b/packages/website/src/components/Party3.astro
@@ -27,6 +27,13 @@ const PUBLIC_GOOGLE_TAG_MANAGER_ID = assertSecret(
gtag('config', PUBLIC_GOOGLE_TAG_MANAGER_ID);
+
+
{/* nitro ads */}
{
/*
From 6050145b16e8e4d0aed2b6ca50ad99a1d0cac420 Mon Sep 17 00:00:00 2001
From: tresabhi <43380238+tresabhi@users.noreply.github.com>
Date: Mon, 21 Apr 2025 16:39:06 -0500
Subject: [PATCH 2/2] fix: home page hot tanks
---
.../src/components/HomePageHotTanks.tsx | 27 -------------------
1 file changed, 27 deletions(-)
diff --git a/packages/website/src/components/HomePageHotTanks.tsx b/packages/website/src/components/HomePageHotTanks.tsx
index 246d5eb4d..9a326cf49 100644
--- a/packages/website/src/components/HomePageHotTanks.tsx
+++ b/packages/website/src/components/HomePageHotTanks.tsx
@@ -1,8 +1,6 @@
-import { assertSecret } from '@blitzkit/core';
import { literals } from '@blitzkit/i18n/src/literals';
import { EyeOpenIcon } from '@radix-ui/react-icons';
import { Box, Flex, Heading, Text } from '@radix-ui/themes';
-import { google } from 'googleapis';
import { awaitablePopularTanks } from '../core/awaitables/popularTanks';
import { awaitableTankDefinitions } from '../core/awaitables/tankDefinitions';
import {
@@ -18,31 +16,6 @@ const [tankDefinitions, popularTanks] = await Promise.all([
awaitablePopularTanks,
]);
-const auth = await google.auth.getClient({
- keyFile: import.meta.env.GOOGLE_APPLICATION_CREDENTIALS,
- scopes: ['https://www.googleapis.com/auth/analytics.readonly'],
-});
-const analytics = google.analyticsdata({ version: 'v1beta', auth });
-const report = await analytics.properties.runReport({
- property: `properties/${assertSecret(import.meta.env.PUBLIC_GOOGLE_ANALYTICS_PROPERTY_ID)}`,
- requestBody: {
- dateRanges: [{ startDate: '7daysAgo', endDate: 'today' }],
- dimensions: [{ name: 'pagePath' }],
- metrics: [{ name: 'screenPageViews' }],
- orderBys: [{ metric: { metricName: 'screenPageViews' }, desc: true }],
- dimensionFilter: {
- filter: {
- fieldName: 'pagePath',
- stringFilter: { matchType: 'BEGINS_WITH', value: '/tools/tankopedia/' },
- },
- },
- },
-});
-
-if (!report.data.rows) {
- throw new Error('No rows in report');
-}
-
export function HomePageHotTanks({ locale }: LocaleAcceptorProps) {
return (