Skip to content

Commit

Permalink
fix: remove masa analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
JackHamer09 committed May 22, 2024
1 parent caed8c8 commit 8e4cf00
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 44 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ jobs:
echo "SCREENING_API_URL=${{ secrets.SCREENING_API_URL }}" >> .env
echo "DATAPLANE_URL=${{ secrets.DATAPLANE_URL }}" >> .env
echo "RUDDER_KEY=${{ secrets.RUDDER_KEY }}" >> .env
echo "MASA_KEY=${{ secrets.MASA_KEY }}" >> .env
echo "MASA_APP_ID=${{ secrets.MASA_APP_ID }}" >> .env
- name: Build
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ jobs:
echo "SCREENING_API_URL=${{ secrets.SCREENING_API_URL }}" >> .env
echo "DATAPLANE_URL=${{ secrets.DATAPLANE_URL }}" >> .env
echo "RUDDER_KEY=${{ secrets.RUDDER_KEY }}" >> .env
echo "MASA_KEY=${{ secrets.MASA_KEY }}" >> .env
echo "MASA_APP_ID=${{ secrets.MASA_APP_ID }}" >> .env
- name: Build
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ jobs:
echo "SCREENING_API_URL=${{ secrets.SCREENING_API_URL }}" >> .env
echo "DATAPLANE_URL=${{ secrets.DATAPLANE_URL }}" >> .env
echo "RUDDER_KEY=${{ secrets.RUDDER_KEY }}" >> .env
echo "MASA_KEY=${{ secrets.MASA_KEY }}" >> .env
echo "MASA_APP_ID=${{ secrets.MASA_APP_ID }}" >> .env
- name: Build
run: |
Expand Down
12 changes: 0 additions & 12 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,11 @@ export default defineNuxtConfig({
},
],
script: [
{
src: "https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",
},
{
hid: "Rudder-JS",
src: "https://cdn.rudderlabs.com/v1.1/rudder-analytics.min.js",
defer: true,
},
{
hid: "MASA-JS",
src: "https://cdn.jsdelivr.net/npm/@masa-finance/analytics-sdk@latest/dist/browser/masa-analytics.min.js",
defer: true,
},
],
},
},
Expand Down Expand Up @@ -89,10 +81,6 @@ export default defineNuxtConfig({
key: process.env.RUDDER_KEY,
dataplaneUrl: process.env.DATAPLANE_URL,
},
masa: {
clientId: process.env.MASA_KEY,
appId: process.env.MASA_APP_ID,
},
},
},
},
Expand Down
26 changes: 0 additions & 26 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,38 +124,12 @@ export declare namespace Api {

declare global {
interface Window {
turnstile?: {
render: (
element: string | HTMLElement,
options: {
sitekey: string;
theme: "light" | "dark" | "auto";
language: string;
appearance: "always" | "execute" | "interaction-only";
callback: (response: string) => void;
"expired-callback": (response: string) => void;
"error-callback": (response: string) => void;
}
) => string | undefined;
reset: (widgetId: string) => void;
};
rudderanalytics?: {
load: (key: string, url: string) => void;
ready: (callback: () => void) => void;
page: () => void;
track: (eventName: string, params?: unknown) => void;
initialized: boolean;
};
MA?: {
MasaAnalytics: {
new ({ clientId });
};
};
masaAnalytics?: {
trackCustomEvent: ({ eventName, additionalEventData }) => void;
firePageViewEvent: ({ page, additionalEventData }) => void;
fireConnectWalletEvent: ({ user_address, wallet_type, additionalEventData }) => void;
initialized: boolean;
};
}
}

0 comments on commit 8e4cf00

Please sign in to comment.