-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a13dd5
commit 565225d
Showing
14 changed files
with
661 additions
and
24 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
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,32 @@ | ||
import type { NextPage } from "next" | ||
|
||
import Head from "next/head" | ||
import useTranslation from "next-translate/useTranslation" | ||
|
||
import { useEffect, useRef } from "react" | ||
|
||
const DiscordError: NextPage = () => { | ||
const { t } = useTranslation("discordError") | ||
const { t: rootT } = useTranslation() | ||
|
||
const code = useRef("") | ||
|
||
useEffect(() => { | ||
code.current = | ||
new URLSearchParams(window.location.search).get("code") ?? "unknown" | ||
}, [code]) | ||
|
||
return ( | ||
<div className="flex flex-col gap-2"> | ||
<Head> | ||
<title>{t("title") + " | " + rootT("name")}</title> | ||
</Head> | ||
<div> | ||
<h1 className="text-2xl font-bold mb-2">{t("title")}</h1> | ||
<p>{t("description", { code: t(`error.${code.current}`) })}</p> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default DiscordError |
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,23 @@ | ||
{ | ||
"name": "tasks", | ||
"version": "1.0.0", | ||
"description": "", | ||
"scripts": { | ||
"registerRoleConnection": "ts-node ./src/registerRoleConnection.ts", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@tsconfig/node16": "16.1.0", | ||
"discord-api-types": "0.37.48", | ||
"ts-node": "10.9.1", | ||
"typescript": "5.1.6" | ||
}, | ||
"dependencies": { | ||
"@discordjs/rest": "1.7.1", | ||
"axios": "1.4.0", | ||
"dotenv": "16.3.1" | ||
} | ||
} |
Oops, something went wrong.