-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop'
- Loading branch information
Showing
20 changed files
with
135 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
User-agent: * | ||
Sitemap: https://beta.near.org/sitemap.xml | ||
Sitemap: https://near.org/sitemap.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { useCallback, useEffect } from 'react'; | ||
|
||
import { recordClick, recordTouchStart } from '@/utils/analytics'; | ||
|
||
export function useClickTracking() { | ||
const onClickEvent = useCallback((event: PointerEvent) => { | ||
switch (event.pointerType) { | ||
case 'touch': | ||
recordTouchStart(event); | ||
break; | ||
default: | ||
recordClick(event); | ||
break; | ||
} | ||
}, []); | ||
|
||
useEffect(() => { | ||
window.addEventListener('pointerdown', onClickEvent); | ||
|
||
return () => { | ||
window.removeEventListener('pointerdown', onClickEvent); | ||
}; | ||
}, [onClickEvent]); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ import { useEffect } from 'react'; | |
|
||
import { Toaster } from '@/components/lib/Toast'; | ||
import { useBosLoaderInitializer } from '@/hooks/useBosLoaderInitializer'; | ||
import { useClickTracking } from '@/hooks/useClickTracking'; | ||
import { useHashUrlBackwardsCompatibility } from '@/hooks/useHashUrlBackwardsCompatibility'; | ||
import { usePageAnalytics } from '@/hooks/usePageAnalytics'; | ||
import { useAuthStore } from '@/stores/auth'; | ||
|
@@ -33,6 +34,7 @@ export default function App({ Component, pageProps }: AppPropsWithLayout) { | |
useBosLoaderInitializer(); | ||
useHashUrlBackwardsCompatibility(); | ||
usePageAnalytics(); | ||
useClickTracking(); | ||
const getLayout = Component.getLayout ?? ((page) => page); | ||
const router = useRouter(); | ||
const authStore = useAuthStore(); | ||
|
@@ -77,6 +79,11 @@ export default function App({ Component, pageProps }: AppPropsWithLayout) { | |
<Head> | ||
<meta name="google-site-verification" content="CDEVFlJTyVZ2vM7ePugKgWsl_7Rd-MrfDv42u0vZ0B0" /> | ||
<link rel="icon" href="favicon.ico" /> | ||
<link | ||
rel="canonical" | ||
href={`${process.env.NEXT_PUBLIC_HOSTNAME}/near/widget/NearOrg.HomePage`} | ||
key="canonical" | ||
/> | ||
</Head> | ||
|
||
<Script id="phosphor-icons" src="https://unpkg.com/@phosphor-icons/[email protected]" async /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
f4b4f3d
There was a problem hiding this comment.
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:
near-discovery – ./
near-discovery-near-developer-console.vercel.app
near-discovery-git-main-near-developer-console.vercel.app
near.org
f4b4f3d
There was a problem hiding this comment.
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:
near-discovery-testnet – ./
near-discovery-testnet.vercel.app
near-discovery-testnet-git-main-near-developer-console.vercel.app
near-discovery-testnet-near-developer-console.vercel.app
test.near.org