Skip to content

Commit

Permalink
feat(bridge&migrator&faucet): change site id (#146)
Browse files Browse the repository at this point in the history
* feat(bridge&migrator&faucet): change site id

* fix(faucet): remove unnecessary head
  • Loading branch information
abbylow authored Aug 2, 2023
1 parent 34ba73c commit 7f0b934
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion apps/bridge/src/app/head.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import {
ABSOLUTE_PATH,
APP_NAME,
L1_CHAIN_ID,
L2_CHAIN_ID,
META,
OG_TITLE,
TWITTER_DESC,
Expand All @@ -9,6 +11,8 @@ import {
import { Cookies } from "@mantle/ui";

export default function Head() {
const isTestnet = L1_CHAIN_ID === 5 || L2_CHAIN_ID === 5001;

return (
<>
<title>{APP_NAME}</title>
Expand All @@ -27,7 +31,7 @@ export default function Head() {
<meta name="twitter:description" content={`${TWITTER_DESC}`} />
<meta name="twitter:image" content={`${ABSOLUTE_PATH}/twitter.png`} />
<meta name="google" content="nositelinkssearchbox" />
<Cookies />
<Cookies siteId={isTestnet ? "176" : "174"} />
</>
);
}
2 changes: 1 addition & 1 deletion apps/converter/src/app/head.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function Head() {
<meta name="twitter:description" content={`${TWITTER_DESC}`} />
<meta name="twitter:image" content={`${ABSOLUTE_PATH}/twitter.png`} />
<meta name="google" content="nositelinkssearchbox" />
<Cookies />
<Cookies siteId="181" />
</>
);
}
2 changes: 1 addition & 1 deletion apps/faucet/src/app/head.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function Head() {
<meta name="twitter:description" content={`${TWITTER_DESC}`} />
<meta name="twitter:image:src" content={`${ABSOLUTE_PATH}/twitter.png`} />
<meta name="google" content="nositelinkssearchbox" />
<Cookies />
<Cookies siteId="178" />
</>
);
}
4 changes: 2 additions & 2 deletions packages/ui/src/scripts/Cookies.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import Script from 'next/script'

export const Cookies = () => {
export const Cookies = ({ siteId }: { siteId: string }) => {
return (
<Script strategy="afterInteractive" id="cookie3-script">
{`
var cookie3Options = {"siteId":5,"additionalTracking":true,"cookielessEnabled":true}
var cookie3Options = {"siteId":${siteId},"additionalTracking":true,"cookielessEnabled":true}
window._paq = window._paq || [];
(function () {
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
Expand Down

4 comments on commit 7f0b934

@vercel
Copy link

@vercel vercel bot commented on 7f0b934 Aug 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 7f0b934 Aug 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

mantle-bridge – ./apps/bridge

mantle-bridge.vercel.app
bridge.mantle.xyz
mantle-bridge-mantle-xyz.vercel.app
mantle-bridge-git-main-mantle-xyz.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 7f0b934 Aug 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ethcc – ./apps/events

ethcc-mantle.vercel.app
ethcc-mantle-xyz.vercel.app
ethcc-git-main-mantle-xyz.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 7f0b934 Aug 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.