diff --git a/.eslintrc.js b/.eslintrc.js index 6dabd63..88bb4b1 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -58,6 +58,7 @@ module.exports = { __SERVER__: true, __DEV__: true, __LOCAL__: false, + __REGISTER_DISCORD_COMMANDS__: false, __TEST__: false, }, } diff --git a/jest/config.js b/jest/config.js index f907412..23e308f 100644 --- a/jest/config.js +++ b/jest/config.js @@ -22,6 +22,7 @@ module.exports = { __CLIENT__: true, __SERVER__: false, __LOCAL__: false, + __REGISTER_DISCORD_COMMANDS__: false, __TEST__: true, }, maxConcurrency: 50, diff --git a/package.json b/package.json index 5b6c268..82a34bb 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,7 @@ "ser": "yarn dev:build && node ./public/server", "dev:build": "cross-env NODE_ENV=development webpack --config ./webpack/server.config.ts", "local-start": "cross-env LOCAL=true yarn build && node ./public/server", + "discord-register": "cross-env REGISTER_DISCORD_COMMANDS=true yarn build && node ./public/server", "start": "node ./public/server", "build": "run-s build:*", "build:server": "cross-env NODE_ENV=production webpack --config ./webpack/server.config.ts", @@ -94,6 +95,7 @@ "core-js": "^3.15.2", "cross-env": "^7.0.3", "detect-node": "^2.1.0", + "discord.js": "^14.7.1", "express": "^4.17.1", "fs": "^0.0.1-security", "google-auth-library": "^7.10.1", diff --git a/public/favicon.ico b/public/favicon.ico old mode 100644 new mode 100755 index c2c86b8..3f747cb Binary files a/public/favicon.ico and b/public/favicon.ico differ diff --git a/src/components/Asks/index.tsx b/src/components/Asks/index.tsx index e343c08..f1f7f39 100644 --- a/src/components/Asks/index.tsx +++ b/src/components/Asks/index.tsx @@ -10,7 +10,7 @@ import { AskDayWishes, fetchFor as fetchForDayWishes } from "./AskDayWishes" // import { AskHosting, fetchFor as fetchForHosting } from "./AskHosting" // import { AskMeals, fetchFor as fetchForMeals } from "./AskMeals" // import { AskPersonalInfo, fetchFor as fetchForPersonalInfo } from "./AskPersonalInfo" -// import { AskTeamWishes, fetchFor as fetchForTeamWishes } from "./AskTeamWishes" +import { AskTeamWishes, fetchFor as fetchForTeamWishes } from "./AskTeamWishes" // import { // AskParticipationDetails, // fetchFor as fetchForParticipationDetails, @@ -27,7 +27,7 @@ const Asks = (): JSX.Element | null => { AskDiscord(asks, 5) AskDayWishes(asks, 10) - // AskTeamWishes(asks, 11) + AskTeamWishes(asks, 11) // AskParticipationDetails(asks, 12) // AskPersonalInfo(asks, 15) // AskHosting(asks, 20) @@ -72,7 +72,7 @@ export const fetchFor = [ ...fetchForDayWishes, // ...fetchForHosting, // ...fetchForMeals, - // ...fetchForTeamWishes, + ...fetchForTeamWishes, // ...fetchForParticipationDetails, // ...fetchForPersonalInfo, ] diff --git a/src/components/LoginForm/index.tsx b/src/components/LoginForm/index.tsx index 8b53bbf..36f8597 100644 --- a/src/components/LoginForm/index.tsx +++ b/src/components/LoginForm/index.tsx @@ -29,7 +29,7 @@ const LoginForm = (): JSX.Element => { return (