-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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/master' into feat/zaps
- Loading branch information
Showing
153 changed files
with
3,818 additions
and
1,803 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 |
---|---|---|
|
@@ -15,7 +15,6 @@ out/ | |
build | ||
dist | ||
robots.txt | ||
sitemap*.xml | ||
analyze/ | ||
|
||
# misc | ||
|
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,46 @@ | ||
import { getAcademyArticles } from '@sushiswap/graph-client/strapi' | ||
import type { MetadataRoute } from 'next' | ||
|
||
export const revalidate = 0 | ||
|
||
const products = ['bentobox', 'furo', 'onsen', 'sushixswap'] | ||
|
||
export default async function sitemap(): Promise<MetadataRoute.Sitemap> { | ||
try { | ||
const { articles } = await getAcademyArticles({ | ||
pagination: { pageSize: 10000 }, | ||
}) | ||
|
||
return [ | ||
{ | ||
url: 'https://www.sushi.com/academy', | ||
lastModified: new Date(), | ||
changeFrequency: 'yearly', | ||
}, | ||
{ | ||
url: 'https://www.sushi.com/academy/explore', | ||
lastModified: new Date(), | ||
changeFrequency: 'yearly', | ||
}, | ||
...products.map( | ||
(product) => | ||
({ | ||
url: `https://www.sushi.com/academy/products/${product}`, | ||
lastModified: new Date(), | ||
changeFrequency: 'yearly', | ||
}) as const, | ||
), | ||
...articles.map( | ||
(article) => | ||
({ | ||
url: `https://www.sushi.com/academy/${article.slug}`, | ||
lastModified: new Date(article.updatedAt), | ||
changeFrequency: 'weekly', | ||
}) as const, | ||
), | ||
] | ||
} catch { | ||
console.error('sitemap: Error fetching academy articles') | ||
return [] | ||
} | ||
} |
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,31 @@ | ||
import { getBlogArticles } from '@sushiswap/graph-client/strapi' | ||
import type { MetadataRoute } from 'next' | ||
|
||
export const revalidate = 0 | ||
|
||
export default async function sitemap(): Promise<MetadataRoute.Sitemap> { | ||
try { | ||
const { articles } = await getBlogArticles({ | ||
pagination: { pageSize: 10000 }, | ||
}) | ||
|
||
return [ | ||
{ | ||
url: 'https://www.sushi.com/blog', | ||
lastModified: new Date(), | ||
changeFrequency: 'yearly', | ||
}, | ||
...articles.map( | ||
(article) => | ||
({ | ||
url: `https://www.sushi.com/blog/${article.slug}`, | ||
lastModified: new Date(article.updatedAt), | ||
changeFrequency: 'weekly', | ||
}) as const, | ||
), | ||
] | ||
} catch { | ||
console.error('sitemap: Error fetching blog articles') | ||
return [] | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
apps/web/src/app/(networks)/(evm)/[chainId]/(positions)/migrate/layout.tsx
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,10 @@ | ||
import { Metadata } from 'next' | ||
|
||
export const metadata: Metadata = { | ||
title: 'My Rewards', | ||
description: 'Claim your rewards from SushiSwap.', | ||
} | ||
|
||
export default function Layout({ children }: { children: React.ReactNode }) { | ||
return <>{children}</> | ||
} |
6 changes: 6 additions & 0 deletions
6
apps/web/src/app/(networks)/(evm)/[chainId]/(positions)/migrate/page.tsx
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
11 changes: 11 additions & 0 deletions
11
apps/web/src/app/(networks)/(evm)/[chainId]/(positions)/pool/layout.tsx
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,11 @@ | ||
import { Metadata } from 'next' | ||
|
||
export const metadata: Metadata = { | ||
title: 'My Positions', | ||
description: | ||
'Manage your liquidity on SushiSwap: add or remove liquidity, track all your positions and claim fees.', | ||
} | ||
|
||
export default function Layout({ children }: { children: React.ReactNode }) { | ||
return <>{children}</> | ||
} |
10 changes: 10 additions & 0 deletions
10
apps/web/src/app/(networks)/(evm)/[chainId]/(positions)/rewards/layout.tsx
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,10 @@ | ||
import { Metadata } from 'next' | ||
|
||
export const metadata: Metadata = { | ||
title: 'My Rewards', | ||
description: 'Claim your rewards from SushiSwap.', | ||
} | ||
|
||
export default function Layout({ children }: { children: React.ReactNode }) { | ||
return <>{children}</> | ||
} |
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
5 changes: 0 additions & 5 deletions
5
apps/web/src/app/(networks)/(evm)/[chainId]/(trade)/cross-chain-swap/page.tsx
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
7 changes: 7 additions & 0 deletions
7
apps/web/src/app/(networks)/(evm)/[chainId]/(trade)/dca/layout.tsx
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
6 changes: 6 additions & 0 deletions
6
apps/web/src/app/(networks)/(evm)/[chainId]/(trade)/limit/layout.tsx
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
7 changes: 7 additions & 0 deletions
7
apps/web/src/app/(networks)/(evm)/[chainId]/(trade)/swap/layout.tsx
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
4 changes: 0 additions & 4 deletions
4
apps/web/src/app/(networks)/(evm)/[chainId]/(trade)/swap/page.tsx
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
7 changes: 7 additions & 0 deletions
7
apps/web/src/app/(networks)/(evm)/[chainId]/pool/incentivize/layout.tsx
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
3 changes: 2 additions & 1 deletion
3
apps/web/src/app/(networks)/(evm)/[chainId]/pool/v2/[address]/layout.tsx
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.