-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into collection/linter-warnings
- Loading branch information
Showing
33 changed files
with
220 additions
and
137 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 |
---|---|---|
|
@@ -42,3 +42,4 @@ out/ | |
# Cache | ||
.prettiercache | ||
.eslintcache | ||
.vercel |
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 |
---|---|---|
|
@@ -13,6 +13,7 @@ pids | |
|
||
# Env | ||
.env | ||
.env*.local | ||
|
||
# Dist | ||
dist/ | ||
|
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,28 @@ | ||
import { get } from '@vercel/edge-config'; | ||
import { NextResponse } from 'next/server'; | ||
import type { ServerRuntime } from 'next/types'; | ||
|
||
export const runtime: ServerRuntime = 'edge'; | ||
|
||
export async function GET() { | ||
const url = await get<string>('DISCORD_WEBHOOK_URL'); | ||
const imageUrl = await get<string>('IT_IS_WEDNESDAY_MY_DUDES'); | ||
if (url && imageUrl) { | ||
await fetch(url, { | ||
method: 'POST', | ||
headers: { 'Content-Type': 'application/json' }, | ||
body: JSON.stringify({ | ||
username: 'It is wednesday, my dudes', | ||
embeds: [ | ||
{ | ||
image: { | ||
url: imageUrl, | ||
}, | ||
}, | ||
], | ||
}), | ||
}); | ||
} | ||
|
||
return NextResponse.json({ message: 'It is wednesday, my dudes' }); | ||
} |
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,74 @@ | ||
import Image from 'next/image'; | ||
import vercelLogo from '~/assets/powered-by-vercel.svg'; | ||
|
||
export default function Footer() { | ||
return ( | ||
<footer className="dark:bg-dark-800 h-76 lg:pl-84 bg-light-600 xl:pr-84 fixed bottom-0 left-0 right-0 md:h-52 md:pl-4 md:pr-16"> | ||
<div className="mx-auto flex max-w-6xl flex-col place-items-center gap-12 pt-12 lg:place-content-center"> | ||
<div className="flex w-full flex-col place-content-between place-items-center gap-12 md:flex-row md:gap-0"> | ||
<a | ||
className="focus:ring-width-2 focus:ring-blurple rounded outline-0 focus:ring" | ||
href="https://vercel.com/?utm_source=discordjs&utm_campaign=oss" | ||
rel="noopener noreferrer" | ||
target="_blank" | ||
title="Vercel" | ||
> | ||
<Image alt="Vercel" src={vercelLogo} /> | ||
</a> | ||
<div className="flex flex-row gap-6 md:gap-12"> | ||
<div className="flex flex-col gap-2"> | ||
<div className="text-lg font-semibold">Community</div> | ||
<div className="flex flex-col gap-1"> | ||
<a | ||
className="focus:ring-width-2 focus:ring-blurple rounded outline-0 focus:ring" | ||
href="https://discord.gg/djs" | ||
rel="noopener noreferrer" | ||
target="_blank" | ||
> | ||
Discord | ||
</a> | ||
<a | ||
className="focus:ring-width-2 focus:ring-blurple rounded outline-0 focus:ring" | ||
href="https://github.com/discordjs/discord.js/discussions" | ||
rel="noopener noreferrer" | ||
target="_blank" | ||
> | ||
GitHub discussions | ||
</a> | ||
</div> | ||
</div> | ||
<div className="flex flex-col gap-2"> | ||
<div className="text-lg font-semibold">Project</div> | ||
<div className="flex flex-col gap-1"> | ||
<a | ||
className="focus:ring-width-2 focus:ring-blurple rounded outline-0 focus:ring" | ||
href="https://github.com/discordjs/discord.js" | ||
rel="noopener noreferrer" | ||
target="_blank" | ||
> | ||
discord.js | ||
</a> | ||
<a | ||
className="focus:ring-width-2 focus:ring-blurple rounded outline-0 focus:ring" | ||
href="https://discordjs.guide" | ||
rel="noopener noreferrer" | ||
target="_blank" | ||
> | ||
discord.js guide | ||
</a> | ||
<a | ||
className="focus:ring-width-2 focus:ring-blurple rounded outline-0 focus:ring" | ||
href="https://discord-api-types.dev" | ||
rel="noopener noreferrer" | ||
target="_blank" | ||
> | ||
discord-api-types | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</footer> | ||
); | ||
} |
Oops, something went wrong.