Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(discord): add slash-discord route #233

Merged
merged 1 commit into from
Aug 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ I'll get back as soon as I can. Thanks :)
> Editor's note: This was original posted [here][everything-doomsday] by
> Jacobisboss and permission granted to reformat and post on the Wiki. If anyone
> else has any Doomsday submissions they would like hosted, please drop us a
> message on the [Doomsday Discord](https://discord.gg/vajvFXt).
> message on the [Doomsday Discord](/discord).
>
> Thank you Jacob and his co-authors for the great article and thank-you for
> reading.
Expand Down
4 changes: 1 addition & 3 deletions markdown/chapters/appendices/decklists.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ alternatives, it can still allow for quick wins with an actual long game plan.

Pilots like to experiment on a daily basis and keeping lists here simply is not
feasible. Worry not, for newer lists can always be found in our [Discord
server][discord] in the `#decklists-archive` channel.

[discord]: https://discord.gg/vajvFXt
server](/discord) in the `#decklists-archive` channel.

## Historical Decklists

Expand Down
2 changes: 1 addition & 1 deletion markdown/chapters/appendices/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,4 +363,4 @@ If you have any questions beyond what is listed here feel free to ask in the
[Discord][discord] or email <[email protected]>.

[data:matchups]: https://docs.google.com/spreadsheets/d/14hIVFCCxK6v6PHzj_7opfigFWVGV73kv59OdeN-J95I/edit#gid=890222427
[discord]: https://discord.gg/vajvFXt
[discord]: /discord
2 changes: 1 addition & 1 deletion markdown/chapters/entombsday/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,5 @@ Doomsday in the [Doomsday Discord server][discord:doomsday]
[primer:acclimation]: https://docs.google.com/document/d/1OVDfdg3ytFoK4jvBVchSDP_upLL8yS4BZSDL32vIkDQ
[primer:mtgthesource]: https://www.mtgthesource.com/forums/showthread.php?24104-Deck-TinFins-3-Return-of-the-Onion-Burst
[primer:walked]: https://docs.google.com/document/d/1fJ7TimhdHG-2dwfwkie6jgDcZSl1eFD73QxBd_KQ86c
[discord:doomsday]: https://discord.gg/vajvFXt
[discord:doomsday]: /discord
[discord:sealab]: https://discord.gg/m6z2eqp
2 changes: 1 addition & 1 deletion markdown/chapters/meandeck/deck-construction.md
Original file line number Diff line number Diff line change
Expand Up @@ -679,4 +679,4 @@ Now you have considered how to build your main deck, next chapter will explore
the principles behind sideboard card choices and the ideas to follow for
facing off against different archetypes.

[discord]: https://discord.gg/vajvFXt
[discord]: /discord
2 changes: 1 addition & 1 deletion markdown/partials/article-footer.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ For more content, please check out our [resources][resources] page which
includes a list of community streamers. If you would like to submit content to
the Wiki, feel free to reach to us in the [Doomsday Discord][discord].

[discord]: https://discord.gg/vajvFXt
[discord]: /discord
[resources]: /appendices/resources
2 changes: 1 addition & 1 deletion markdown/partials/welcome.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ initial queries you might have. Peruse the Wiki, read some of the articles and
come visit us in the [Discord][discord].

[faq]: /appendices/faq
[discord]: https://discord.gg/vajvFXt
[discord]: /discord
7 changes: 7 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,11 @@ module.exports = {
remotePatterns: [{ hostname: 'cards.scryfall.io', protocol: 'https' }],
},
reactStrictMode: true,
redirects: async () => [
{
destination: 'https://discord.gg/vajvFXt',
permanent: false,
source: '/discord',
},
],
};
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,18 @@
"dependencies": {
"@emotion/react": "11.11.1",
"@emotion/styled": "11.11.0",
"@fontsource/libre-baskerville": "5.0.5",
"@fontsource/libre-baskerville": "5.0.8",
"@mdi/js": "7.2.96",
"@mdi/react": "1.6.1",
"@mui/material": "5.14.2",
"@mui/system": "5.14.1",
"@mui/utils": "5.14.1",
"@vercel/analytics": "1.0.1",
"@mui/material": "5.14.5",
"@mui/system": "5.14.5",
"@mui/utils": "5.14.5",
"@vercel/analytics": "1.0.2",
"async-sema": "3.1.1",
"gray-matter": "4.0.3",
"mana-font": "1.15.8",
"memfs": "4.2.0",
"next": "13.4.12",
"memfs": "4.2.1",
"next": "13.4.16",
"plaiceholder": "3.0.0",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand All @@ -49,8 +49,8 @@
"remark-parse": "10.0.2",
"remark-slug": "7.0.1",
"remark-toc": "8.0.1",
"sharp": "0.32.4",
"simple-icons": "9.7.0",
"sharp": "0.32.5",
"simple-icons": "9.10.0",
"unified": "10.1.2",
"unist-util-select": "5.0.0",
"unist-util-visit": "5.0.0"
Expand All @@ -59,21 +59,21 @@
"@testing-library/jest-dom": "5.17.0",
"@testing-library/react": "14.0.0",
"@types/mdast": "4.0.0",
"@types/node": "20.4.5",
"@types/node": "20.5.0",
"@types/react": "18.2.17",
"@types/react-dom": "18.2.7",
"@types/react-syntax-highlighter": "15.5.7",
"@types/unist": "3.0.0",
"@typescript-eslint/eslint-plugin": "6.2.0",
"@typescript-eslint/parser": "6.2.0",
"@typescript-eslint/eslint-plugin": "6.4.0",
"@typescript-eslint/parser": "6.4.0",
"concurrently": "8.2.0",
"eslint": "8.46.0",
"eslint": "8.47.0",
"eslint-config-airbnb": "19.0.4",
"eslint-config-prettier": "8.9.0",
"eslint-import-resolver-typescript": "3.5.5",
"eslint-import-resolver-typescript": "3.6.0",
"eslint-plugin-import": "2.28.0",
"eslint-plugin-jsx-a11y": "6.7.1",
"eslint-plugin-react": "7.33.0",
"eslint-plugin-react": "7.33.2",
"eslint-plugin-react-hooks": "4.6.0",
"husky": "8.0.3",
"jest": "29.6.2",
Expand Down
15 changes: 8 additions & 7 deletions src/components/Sidebar/SidebarHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import type { Theme } from '@mui/material/styles';
import type { SxProps } from '@mui/system';
import { ThemeContext } from '@/theme/ThemeContext';

const DISCORD_URL = 'https://discord.gg/vajvFXt';

interface Props {
onClose: () => void;
sx?: SxProps<Theme>;
Expand Down Expand Up @@ -49,11 +47,14 @@ export const SidebarHeader: FunctionComponent<Props> = ({ onClose, sx }) => {
}}
>
<Tooltip arrow title="Join our Discord server">
<a href={DISCORD_URL} rel="noopener noreferrer" target="_blank">
<IconButton size="large">
<Icon path={siDiscord.path} size={0.7} />
</IconButton>
</a>
<IconButton
component={NextLink}
href="/discord"
size="large"
target="_blank"
>
<Icon path={siDiscord.path} size={0.7} />
</IconButton>
</Tooltip>
<Tooltip arrow title={`Switch to ${isDark ? 'light' : 'dark'} theme`}>
<IconButton onClick={onThemeToggle} size="large">
Expand Down
Loading