├── .all-contributorsrc ├── .editorconfig ├── .eslintignore ├── .eslintrc ├── .gitattributes ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md └── workflows │ ├── lint.yml │ └── nodejs.yml ├── .gitignore ├── .prettierignore ├── .prettierrc ├── .releaserc.json ├── .vscode └── settings.json ├── CHANGELOG.md ├── LICENSE ├── README.md ├── docs ├── assets │ ├── gourcefiletree.png │ ├── homePagePreview.png │ ├── responsiveness.png │ ├── statisticsPage.png │ ├── typingBox.png │ └── typingBoxAfterTest.png ├── en │ ├── about.md │ ├── assets-&-code-i-dont-own.md │ ├── main.md │ └── tutorials │ │ ├── installation.md │ │ └── touch-typing.md └── ro │ ├── assets-&-cod-pe-care-nu-il-detin.md │ ├── despre.md │ ├── main.md │ └── tutoriale │ ├── instalare.md │ └── touch-typing.md ├── package.json ├── packages ├── api │ ├── Procfile │ ├── db │ │ ├── knex.ts │ │ ├── migrations │ │ │ ├── 20200608182453_create_users_table.ts │ │ │ ├── 20200627153355_create-sessions.ts │ │ │ ├── 20200705082902_create_games_table.ts │ │ │ ├── 20200706102336_create_pbs_table.ts │ │ │ ├── 20200707125043_create_texts_table.ts │ │ │ ├── 20200711075708_add_achievements_to_users.ts │ │ │ ├── 20200711080224_create-achievements.ts │ │ │ ├── 20200711211052_create_country_column.ts │ │ │ ├── 20200712085743_add_emailkey.ts │ │ │ ├── 20200712133735_create_totaltests_column.ts │ │ │ ├── 20200713095514_create_forgot_passwords.ts │ │ │ ├── 20200713142149_increase_text_column_length.ts │ │ │ ├── 20200713153532_alter_texts_table.ts │ │ │ ├── 20200715083645_add_requirements_to_texts.ts │ │ │ ├── 20200716182227_add_difficulty_to_games.ts │ │ │ ├── 20200716182727_add_text_id_to_games.ts │ │ │ ├── 20200716185527_alter_games_table.ts │ │ │ ├── 20200716191304_add_textid_difficulty_to_pbs.ts │ │ │ └── 20200716191859_alter_pbs_table.ts │ │ └── seeds │ │ │ ├── achievements.ts │ │ │ ├── examples │ │ │ ├── achievements.ts │ │ │ └── users.ts │ │ │ └── users.ts │ ├── knexfile.ts │ ├── nodemon.json │ ├── package.json │ ├── register.js │ ├── src │ │ ├── common │ │ │ ├── error │ │ │ │ ├── classes │ │ │ │ │ ├── httpError.test.ts │ │ │ │ │ └── httpError.ts │ │ │ │ └── middleware │ │ │ │ │ └── errorHandler.ts │ │ │ └── type │ │ │ │ └── helpers │ │ │ │ └── ValueOf.ts │ │ ├── index.ts │ │ └── modules │ │ │ ├── Router.ts │ │ │ ├── achievements │ │ │ ├── actions │ │ │ │ ├── achievementMatches.ts │ │ │ │ ├── addAchievement.ts │ │ │ │ ├── compareRequirements.ts │ │ │ │ ├── deleteAchievement.ts │ │ │ │ ├── editAchievement.ts │ │ │ │ ├── findAchievementsByRequirement.ts │ │ │ │ ├── getAchievements.ts │ │ │ │ └── userHasAchievement.ts │ │ │ ├── router.test.ts │ │ │ ├── router.ts │ │ │ └── types │ │ │ │ ├── Achievement.ts │ │ │ │ └── Requirement.ts │ │ │ ├── apiRouter.ts │ │ │ ├── auth │ │ │ ├── middleware │ │ │ │ ├── requireAdmin.ts │ │ │ │ ├── requireAuthenticated.ts │ │ │ │ └── requireUnauthenticated.ts │ │ │ ├── router.test.ts │ │ │ ├── router.ts │ │ │ ├── schema │ │ │ │ └── loginBody.ts │ │ │ └── types │ │ │ │ └── LoginBody.ts │ │ │ ├── cors │ │ │ └── middleware │ │ │ │ └── allowCors.ts │ │ │ ├── email │ │ │ ├── actions │ │ │ │ ├── generateVerification.ts │ │ │ │ └── sendVerificationEmail.ts │ │ │ ├── router.test.ts │ │ │ └── router.ts │ │ │ ├── games │ │ │ ├── actions │ │ │ │ ├── checkPB.ts │ │ │ │ ├── createGame.ts │ │ │ │ ├── createMultiGame.ts │ │ │ │ ├── getAllGames.ts │ │ │ │ ├── getAllPbs.ts │ │ │ │ ├── getPB.ts │ │ │ │ ├── highestGameId.ts │ │ │ │ └── removeOldGame.ts │ │ │ ├── router.test.ts │ │ │ ├── router.ts │ │ │ ├── schema │ │ │ │ └── newGameBody.ts │ │ │ └── types │ │ │ │ ├── Game.ts │ │ │ │ └── PB.ts │ │ │ ├── schema │ │ │ └── middleware │ │ │ │ └── validateSchema.ts │ │ │ ├── session │ │ │ ├── actions │ │ │ │ ├── destroyCookie.ts │ │ │ │ ├── getCookie.ts │ │ │ │ └── setCookie.ts │ │ │ ├── helpers │ │ │ │ └── useSession.ts │ │ │ └── types │ │ │ │ └── Session.ts │ │ │ ├── texts │ │ │ ├── actions │ │ │ │ ├── addText.ts │ │ │ │ ├── deleteText.ts │ │ │ │ ├── editText.ts │ │ │ │ ├── getAllTexts.ts │ │ │ │ └── getRandomText.ts │ │ │ ├── router.test.ts │ │ │ ├── router.ts │ │ │ ├── schema │ │ │ │ └── addTextBody.ts │ │ │ └── types │ │ │ │ └── Text.ts │ │ │ ├── tutorials │ │ │ ├── actions │ │ │ │ ├── compareRequirements.ts │ │ │ │ ├── completeTutorial.ts │ │ │ │ ├── getAllTutorials.ts │ │ │ │ └── getTutorial.ts │ │ │ ├── router.test.ts │ │ │ ├── router.ts │ │ │ └── types │ │ │ │ ├── Requirement.ts │ │ │ │ └── Tutorial.ts │ │ │ ├── users │ │ │ ├── actions │ │ │ │ ├── changePassword.ts │ │ │ │ ├── createUser.ts │ │ │ │ ├── deleteUser.ts │ │ │ │ ├── editUser.ts │ │ │ │ ├── findUser.ts │ │ │ │ ├── forgotPassword.ts │ │ │ │ ├── getAllUsers.ts │ │ │ │ ├── getUserData.ts │ │ │ │ ├── updateCountry.ts │ │ │ │ ├── updateDescription.ts │ │ │ │ ├── updateUserRole.ts │ │ │ │ ├── userAchievements.ts │ │ │ │ ├── userCountry.ts │ │ │ │ ├── userGames.ts │ │ │ │ └── verifyUserEmail.ts │ │ │ ├── router.test.ts │ │ │ ├── router.ts │ │ │ ├── schema │ │ │ │ ├── registerBody.ts │ │ │ │ └── updateCountry.ts │ │ │ └── types │ │ │ │ ├── RegisterBody.ts │ │ │ │ └── User.ts │ │ │ └── websockets │ │ │ ├── actions │ │ │ ├── gameFinished.ts │ │ │ ├── joinQueue.ts │ │ │ ├── leaveQueue.ts │ │ │ ├── processClose.ts │ │ │ ├── processQueue.ts │ │ │ ├── pruneGames.ts │ │ │ ├── switchQueueLocation.ts │ │ │ └── updateProgress.ts │ │ │ ├── gamesData.ts │ │ │ ├── middleware │ │ │ └── categoryParser.ts │ │ │ ├── types │ │ │ ├── Category.ts │ │ │ └── HandlerResponse.ts │ │ │ └── websocket.ts │ └── tsconfig.json └── web │ ├── .babelrc.js │ ├── .eslintrc │ ├── Procfile │ ├── package.json │ ├── public │ └── index.html │ ├── src │ ├── components │ │ ├── common │ │ │ ├── footer │ │ │ │ ├── footer.tsx │ │ │ │ └── style.tsx │ │ │ ├── logo │ │ │ │ ├── logo.tsx │ │ │ │ └── logoStyle.tsx │ │ │ ├── navbar │ │ │ │ ├── navBar.tsx │ │ │ │ └── style.tsx │ │ │ └── typingBox │ │ │ │ ├── components │ │ │ │ ├── progressbar │ │ │ │ │ ├── progressBar.tsx │ │ │ │ │ └── style.tsx │ │ │ │ └── testChart.tsx │ │ │ │ ├── helpers │ │ │ │ ├── gettext.ts │ │ │ │ └── interfaces.ts │ │ │ │ ├── style.tsx │ │ │ │ └── typingBox.tsx │ │ ├── dashboard │ │ │ ├── dashboard.tsx │ │ │ ├── helpers │ │ │ │ └── interfaces.ts │ │ │ └── style.tsx │ │ ├── frontPage │ │ │ ├── components │ │ │ │ ├── pannel1 │ │ │ │ │ ├── pannel1.tsx │ │ │ │ │ └── style.tsx │ │ │ │ ├── pannel2 │ │ │ │ │ ├── pannel2.tsx │ │ │ │ │ └── style.tsx │ │ │ │ └── pannel3 │ │ │ │ │ ├── pannel3.tsx │ │ │ │ │ └── style.tsx │ │ │ ├── home.tsx │ │ │ └── style.tsx │ │ ├── loginPage │ │ │ ├── loginPage.tsx │ │ │ └── style.tsx │ │ ├── profilePage │ │ │ ├── components │ │ │ │ ├── changePassword │ │ │ │ │ ├── changePassword.tsx │ │ │ │ │ └── style.tsx │ │ │ │ └── gamesChart.tsx │ │ │ ├── helpers │ │ │ │ └── interfaces.ts │ │ │ ├── profilePage.tsx │ │ │ └── style.tsx │ │ ├── startTypingPage │ │ │ ├── components │ │ │ │ ├── latestsScores │ │ │ │ │ ├── latestScores.tsx │ │ │ │ │ └── style.tsx │ │ │ │ ├── navBar │ │ │ │ │ ├── navBar.tsx │ │ │ │ │ └── style.tsx │ │ │ │ └── tutorials │ │ │ │ │ ├── style.tsx │ │ │ │ │ └── tutorials.tsx │ │ │ ├── helpers │ │ │ │ └── websocket.ts │ │ │ ├── startTypingPage.tsx │ │ │ └── style.tsx │ │ └── statisticsPage │ │ │ ├── components │ │ │ └── previousScoresChart.tsx │ │ │ ├── helpers │ │ │ └── interfaces.ts │ │ │ ├── statisticsPage.tsx │ │ │ └── style.tsx │ ├── index.tsx │ ├── server.ts │ ├── style.tsx │ └── utils │ │ ├── constants.ts │ │ ├── getTheme.ts │ │ ├── randomText.ts │ │ └── websocket.ts │ ├── tsconfig.json │ └── webpack.config.js ├── pnpm-lock.yaml ├── pnpm-workspace.yaml └── tsconfig.json /.all-contributorsrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/.all-contributorsrc -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | webpack.config.js -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/.eslintrc -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/workflows/lint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/.github/workflows/lint.yml -------------------------------------------------------------------------------- /.github/workflows/nodejs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/.github/workflows/nodejs.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | *.md 2 | node_modules 3 | LICENSE -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/.prettierrc -------------------------------------------------------------------------------- /.releaserc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/.releaserc.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/README.md -------------------------------------------------------------------------------- /docs/assets/gourcefiletree.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/docs/assets/gourcefiletree.png -------------------------------------------------------------------------------- /docs/assets/homePagePreview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/docs/assets/homePagePreview.png -------------------------------------------------------------------------------- /docs/assets/responsiveness.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/docs/assets/responsiveness.png -------------------------------------------------------------------------------- /docs/assets/statisticsPage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/docs/assets/statisticsPage.png -------------------------------------------------------------------------------- /docs/assets/typingBox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/docs/assets/typingBox.png -------------------------------------------------------------------------------- /docs/assets/typingBoxAfterTest.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/docs/assets/typingBoxAfterTest.png -------------------------------------------------------------------------------- /docs/en/about.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/docs/en/about.md -------------------------------------------------------------------------------- /docs/en/assets-&-code-i-dont-own.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/docs/en/assets-&-code-i-dont-own.md -------------------------------------------------------------------------------- /docs/en/main.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/docs/en/main.md -------------------------------------------------------------------------------- /docs/en/tutorials/installation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/docs/en/tutorials/installation.md -------------------------------------------------------------------------------- /docs/en/tutorials/touch-typing.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/docs/en/tutorials/touch-typing.md -------------------------------------------------------------------------------- /docs/ro/assets-&-cod-pe-care-nu-il-detin.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/docs/ro/assets-&-cod-pe-care-nu-il-detin.md -------------------------------------------------------------------------------- /docs/ro/despre.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/docs/ro/despre.md -------------------------------------------------------------------------------- /docs/ro/main.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/docs/ro/main.md -------------------------------------------------------------------------------- /docs/ro/tutoriale/instalare.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/docs/ro/tutoriale/instalare.md -------------------------------------------------------------------------------- /docs/ro/tutoriale/touch-typing.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/docs/ro/tutoriale/touch-typing.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/package.json -------------------------------------------------------------------------------- /packages/api/Procfile: -------------------------------------------------------------------------------- 1 | web: npm run start -------------------------------------------------------------------------------- /packages/api/db/knex.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/db/knex.ts -------------------------------------------------------------------------------- /packages/api/db/migrations/20200608182453_create_users_table.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/db/migrations/20200608182453_create_users_table.ts -------------------------------------------------------------------------------- /packages/api/db/migrations/20200627153355_create-sessions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/db/migrations/20200627153355_create-sessions.ts -------------------------------------------------------------------------------- /packages/api/db/migrations/20200705082902_create_games_table.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/db/migrations/20200705082902_create_games_table.ts -------------------------------------------------------------------------------- /packages/api/db/migrations/20200706102336_create_pbs_table.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/db/migrations/20200706102336_create_pbs_table.ts -------------------------------------------------------------------------------- /packages/api/db/migrations/20200707125043_create_texts_table.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/db/migrations/20200707125043_create_texts_table.ts -------------------------------------------------------------------------------- /packages/api/db/migrations/20200711075708_add_achievements_to_users.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/db/migrations/20200711075708_add_achievements_to_users.ts -------------------------------------------------------------------------------- /packages/api/db/migrations/20200711080224_create-achievements.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/db/migrations/20200711080224_create-achievements.ts -------------------------------------------------------------------------------- /packages/api/db/migrations/20200711211052_create_country_column.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/db/migrations/20200711211052_create_country_column.ts -------------------------------------------------------------------------------- /packages/api/db/migrations/20200712085743_add_emailkey.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/db/migrations/20200712085743_add_emailkey.ts -------------------------------------------------------------------------------- /packages/api/db/migrations/20200712133735_create_totaltests_column.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/db/migrations/20200712133735_create_totaltests_column.ts -------------------------------------------------------------------------------- /packages/api/db/migrations/20200713095514_create_forgot_passwords.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/db/migrations/20200713095514_create_forgot_passwords.ts -------------------------------------------------------------------------------- /packages/api/db/migrations/20200713142149_increase_text_column_length.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/db/migrations/20200713142149_increase_text_column_length.ts -------------------------------------------------------------------------------- /packages/api/db/migrations/20200713153532_alter_texts_table.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/db/migrations/20200713153532_alter_texts_table.ts -------------------------------------------------------------------------------- /packages/api/db/migrations/20200715083645_add_requirements_to_texts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/db/migrations/20200715083645_add_requirements_to_texts.ts -------------------------------------------------------------------------------- /packages/api/db/migrations/20200716182227_add_difficulty_to_games.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/db/migrations/20200716182227_add_difficulty_to_games.ts -------------------------------------------------------------------------------- /packages/api/db/migrations/20200716182727_add_text_id_to_games.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/db/migrations/20200716182727_add_text_id_to_games.ts -------------------------------------------------------------------------------- /packages/api/db/migrations/20200716185527_alter_games_table.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/db/migrations/20200716185527_alter_games_table.ts -------------------------------------------------------------------------------- /packages/api/db/migrations/20200716191304_add_textid_difficulty_to_pbs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/db/migrations/20200716191304_add_textid_difficulty_to_pbs.ts -------------------------------------------------------------------------------- /packages/api/db/migrations/20200716191859_alter_pbs_table.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/db/migrations/20200716191859_alter_pbs_table.ts -------------------------------------------------------------------------------- /packages/api/db/seeds/achievements.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/db/seeds/achievements.ts -------------------------------------------------------------------------------- /packages/api/db/seeds/examples/achievements.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/db/seeds/examples/achievements.ts -------------------------------------------------------------------------------- /packages/api/db/seeds/examples/users.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/db/seeds/examples/users.ts -------------------------------------------------------------------------------- /packages/api/db/seeds/users.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/db/seeds/users.ts -------------------------------------------------------------------------------- /packages/api/knexfile.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/knexfile.ts -------------------------------------------------------------------------------- /packages/api/nodemon.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/nodemon.json -------------------------------------------------------------------------------- /packages/api/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/package.json -------------------------------------------------------------------------------- /packages/api/register.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/register.js -------------------------------------------------------------------------------- /packages/api/src/common/error/classes/httpError.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/common/error/classes/httpError.test.ts -------------------------------------------------------------------------------- /packages/api/src/common/error/classes/httpError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/common/error/classes/httpError.ts -------------------------------------------------------------------------------- /packages/api/src/common/error/middleware/errorHandler.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/common/error/middleware/errorHandler.ts -------------------------------------------------------------------------------- /packages/api/src/common/type/helpers/ValueOf.ts: -------------------------------------------------------------------------------- 1 | export type ValueOf = T[keyof T]; 2 | -------------------------------------------------------------------------------- /packages/api/src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/index.ts -------------------------------------------------------------------------------- /packages/api/src/modules/Router.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/Router.ts -------------------------------------------------------------------------------- /packages/api/src/modules/achievements/actions/achievementMatches.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/achievements/actions/achievementMatches.ts -------------------------------------------------------------------------------- /packages/api/src/modules/achievements/actions/addAchievement.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/achievements/actions/addAchievement.ts -------------------------------------------------------------------------------- /packages/api/src/modules/achievements/actions/compareRequirements.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/achievements/actions/compareRequirements.ts -------------------------------------------------------------------------------- /packages/api/src/modules/achievements/actions/deleteAchievement.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/achievements/actions/deleteAchievement.ts -------------------------------------------------------------------------------- /packages/api/src/modules/achievements/actions/editAchievement.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/achievements/actions/editAchievement.ts -------------------------------------------------------------------------------- /packages/api/src/modules/achievements/actions/findAchievementsByRequirement.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/achievements/actions/findAchievementsByRequirement.ts -------------------------------------------------------------------------------- /packages/api/src/modules/achievements/actions/getAchievements.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/achievements/actions/getAchievements.ts -------------------------------------------------------------------------------- /packages/api/src/modules/achievements/actions/userHasAchievement.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/achievements/actions/userHasAchievement.ts -------------------------------------------------------------------------------- /packages/api/src/modules/achievements/router.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/achievements/router.test.ts -------------------------------------------------------------------------------- /packages/api/src/modules/achievements/router.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/achievements/router.ts -------------------------------------------------------------------------------- /packages/api/src/modules/achievements/types/Achievement.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/achievements/types/Achievement.ts -------------------------------------------------------------------------------- /packages/api/src/modules/achievements/types/Requirement.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/achievements/types/Requirement.ts -------------------------------------------------------------------------------- /packages/api/src/modules/apiRouter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/apiRouter.ts -------------------------------------------------------------------------------- /packages/api/src/modules/auth/middleware/requireAdmin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/auth/middleware/requireAdmin.ts -------------------------------------------------------------------------------- /packages/api/src/modules/auth/middleware/requireAuthenticated.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/auth/middleware/requireAuthenticated.ts -------------------------------------------------------------------------------- /packages/api/src/modules/auth/middleware/requireUnauthenticated.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/auth/middleware/requireUnauthenticated.ts -------------------------------------------------------------------------------- /packages/api/src/modules/auth/router.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/auth/router.test.ts -------------------------------------------------------------------------------- /packages/api/src/modules/auth/router.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/auth/router.ts -------------------------------------------------------------------------------- /packages/api/src/modules/auth/schema/loginBody.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/auth/schema/loginBody.ts -------------------------------------------------------------------------------- /packages/api/src/modules/auth/types/LoginBody.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/auth/types/LoginBody.ts -------------------------------------------------------------------------------- /packages/api/src/modules/cors/middleware/allowCors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/cors/middleware/allowCors.ts -------------------------------------------------------------------------------- /packages/api/src/modules/email/actions/generateVerification.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/email/actions/generateVerification.ts -------------------------------------------------------------------------------- /packages/api/src/modules/email/actions/sendVerificationEmail.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/email/actions/sendVerificationEmail.ts -------------------------------------------------------------------------------- /packages/api/src/modules/email/router.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/email/router.test.ts -------------------------------------------------------------------------------- /packages/api/src/modules/email/router.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/email/router.ts -------------------------------------------------------------------------------- /packages/api/src/modules/games/actions/checkPB.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/games/actions/checkPB.ts -------------------------------------------------------------------------------- /packages/api/src/modules/games/actions/createGame.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/games/actions/createGame.ts -------------------------------------------------------------------------------- /packages/api/src/modules/games/actions/createMultiGame.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/games/actions/createMultiGame.ts -------------------------------------------------------------------------------- /packages/api/src/modules/games/actions/getAllGames.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/games/actions/getAllGames.ts -------------------------------------------------------------------------------- /packages/api/src/modules/games/actions/getAllPbs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/games/actions/getAllPbs.ts -------------------------------------------------------------------------------- /packages/api/src/modules/games/actions/getPB.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/games/actions/getPB.ts -------------------------------------------------------------------------------- /packages/api/src/modules/games/actions/highestGameId.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/games/actions/highestGameId.ts -------------------------------------------------------------------------------- /packages/api/src/modules/games/actions/removeOldGame.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/games/actions/removeOldGame.ts -------------------------------------------------------------------------------- /packages/api/src/modules/games/router.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/games/router.test.ts -------------------------------------------------------------------------------- /packages/api/src/modules/games/router.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/games/router.ts -------------------------------------------------------------------------------- /packages/api/src/modules/games/schema/newGameBody.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/games/schema/newGameBody.ts -------------------------------------------------------------------------------- /packages/api/src/modules/games/types/Game.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/games/types/Game.ts -------------------------------------------------------------------------------- /packages/api/src/modules/games/types/PB.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/games/types/PB.ts -------------------------------------------------------------------------------- /packages/api/src/modules/schema/middleware/validateSchema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/schema/middleware/validateSchema.ts -------------------------------------------------------------------------------- /packages/api/src/modules/session/actions/destroyCookie.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/session/actions/destroyCookie.ts -------------------------------------------------------------------------------- /packages/api/src/modules/session/actions/getCookie.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/session/actions/getCookie.ts -------------------------------------------------------------------------------- /packages/api/src/modules/session/actions/setCookie.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/session/actions/setCookie.ts -------------------------------------------------------------------------------- /packages/api/src/modules/session/helpers/useSession.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/session/helpers/useSession.ts -------------------------------------------------------------------------------- /packages/api/src/modules/session/types/Session.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/session/types/Session.ts -------------------------------------------------------------------------------- /packages/api/src/modules/texts/actions/addText.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/texts/actions/addText.ts -------------------------------------------------------------------------------- /packages/api/src/modules/texts/actions/deleteText.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/texts/actions/deleteText.ts -------------------------------------------------------------------------------- /packages/api/src/modules/texts/actions/editText.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/texts/actions/editText.ts -------------------------------------------------------------------------------- /packages/api/src/modules/texts/actions/getAllTexts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/texts/actions/getAllTexts.ts -------------------------------------------------------------------------------- /packages/api/src/modules/texts/actions/getRandomText.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/texts/actions/getRandomText.ts -------------------------------------------------------------------------------- /packages/api/src/modules/texts/router.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/texts/router.test.ts -------------------------------------------------------------------------------- /packages/api/src/modules/texts/router.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/texts/router.ts -------------------------------------------------------------------------------- /packages/api/src/modules/texts/schema/addTextBody.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/texts/schema/addTextBody.ts -------------------------------------------------------------------------------- /packages/api/src/modules/texts/types/Text.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/texts/types/Text.ts -------------------------------------------------------------------------------- /packages/api/src/modules/tutorials/actions/compareRequirements.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/tutorials/actions/compareRequirements.ts -------------------------------------------------------------------------------- /packages/api/src/modules/tutorials/actions/completeTutorial.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/tutorials/actions/completeTutorial.ts -------------------------------------------------------------------------------- /packages/api/src/modules/tutorials/actions/getAllTutorials.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/tutorials/actions/getAllTutorials.ts -------------------------------------------------------------------------------- /packages/api/src/modules/tutorials/actions/getTutorial.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/tutorials/actions/getTutorial.ts -------------------------------------------------------------------------------- /packages/api/src/modules/tutorials/router.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/tutorials/router.test.ts -------------------------------------------------------------------------------- /packages/api/src/modules/tutorials/router.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/tutorials/router.ts -------------------------------------------------------------------------------- /packages/api/src/modules/tutorials/types/Requirement.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/tutorials/types/Requirement.ts -------------------------------------------------------------------------------- /packages/api/src/modules/tutorials/types/Tutorial.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/tutorials/types/Tutorial.ts -------------------------------------------------------------------------------- /packages/api/src/modules/users/actions/changePassword.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/users/actions/changePassword.ts -------------------------------------------------------------------------------- /packages/api/src/modules/users/actions/createUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/users/actions/createUser.ts -------------------------------------------------------------------------------- /packages/api/src/modules/users/actions/deleteUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/users/actions/deleteUser.ts -------------------------------------------------------------------------------- /packages/api/src/modules/users/actions/editUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/users/actions/editUser.ts -------------------------------------------------------------------------------- /packages/api/src/modules/users/actions/findUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/users/actions/findUser.ts -------------------------------------------------------------------------------- /packages/api/src/modules/users/actions/forgotPassword.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/users/actions/forgotPassword.ts -------------------------------------------------------------------------------- /packages/api/src/modules/users/actions/getAllUsers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/users/actions/getAllUsers.ts -------------------------------------------------------------------------------- /packages/api/src/modules/users/actions/getUserData.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/users/actions/getUserData.ts -------------------------------------------------------------------------------- /packages/api/src/modules/users/actions/updateCountry.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/users/actions/updateCountry.ts -------------------------------------------------------------------------------- /packages/api/src/modules/users/actions/updateDescription.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/users/actions/updateDescription.ts -------------------------------------------------------------------------------- /packages/api/src/modules/users/actions/updateUserRole.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/users/actions/updateUserRole.ts -------------------------------------------------------------------------------- /packages/api/src/modules/users/actions/userAchievements.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/users/actions/userAchievements.ts -------------------------------------------------------------------------------- /packages/api/src/modules/users/actions/userCountry.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/users/actions/userCountry.ts -------------------------------------------------------------------------------- /packages/api/src/modules/users/actions/userGames.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/users/actions/userGames.ts -------------------------------------------------------------------------------- /packages/api/src/modules/users/actions/verifyUserEmail.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/users/actions/verifyUserEmail.ts -------------------------------------------------------------------------------- /packages/api/src/modules/users/router.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/users/router.test.ts -------------------------------------------------------------------------------- /packages/api/src/modules/users/router.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/users/router.ts -------------------------------------------------------------------------------- /packages/api/src/modules/users/schema/registerBody.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/users/schema/registerBody.ts -------------------------------------------------------------------------------- /packages/api/src/modules/users/schema/updateCountry.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/users/schema/updateCountry.ts -------------------------------------------------------------------------------- /packages/api/src/modules/users/types/RegisterBody.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/users/types/RegisterBody.ts -------------------------------------------------------------------------------- /packages/api/src/modules/users/types/User.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/users/types/User.ts -------------------------------------------------------------------------------- /packages/api/src/modules/websockets/actions/gameFinished.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/websockets/actions/gameFinished.ts -------------------------------------------------------------------------------- /packages/api/src/modules/websockets/actions/joinQueue.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/websockets/actions/joinQueue.ts -------------------------------------------------------------------------------- /packages/api/src/modules/websockets/actions/leaveQueue.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/websockets/actions/leaveQueue.ts -------------------------------------------------------------------------------- /packages/api/src/modules/websockets/actions/processClose.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/websockets/actions/processClose.ts -------------------------------------------------------------------------------- /packages/api/src/modules/websockets/actions/processQueue.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/websockets/actions/processQueue.ts -------------------------------------------------------------------------------- /packages/api/src/modules/websockets/actions/pruneGames.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/websockets/actions/pruneGames.ts -------------------------------------------------------------------------------- /packages/api/src/modules/websockets/actions/switchQueueLocation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/websockets/actions/switchQueueLocation.ts -------------------------------------------------------------------------------- /packages/api/src/modules/websockets/actions/updateProgress.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/websockets/actions/updateProgress.ts -------------------------------------------------------------------------------- /packages/api/src/modules/websockets/gamesData.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/websockets/gamesData.ts -------------------------------------------------------------------------------- /packages/api/src/modules/websockets/middleware/categoryParser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/websockets/middleware/categoryParser.ts -------------------------------------------------------------------------------- /packages/api/src/modules/websockets/types/Category.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/websockets/types/Category.ts -------------------------------------------------------------------------------- /packages/api/src/modules/websockets/types/HandlerResponse.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/websockets/types/HandlerResponse.ts -------------------------------------------------------------------------------- /packages/api/src/modules/websockets/websocket.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/src/modules/websockets/websocket.ts -------------------------------------------------------------------------------- /packages/api/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/api/tsconfig.json -------------------------------------------------------------------------------- /packages/web/.babelrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/.babelrc.js -------------------------------------------------------------------------------- /packages/web/.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/.eslintrc -------------------------------------------------------------------------------- /packages/web/Procfile: -------------------------------------------------------------------------------- 1 | web: npm run start -------------------------------------------------------------------------------- /packages/web/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/package.json -------------------------------------------------------------------------------- /packages/web/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/public/index.html -------------------------------------------------------------------------------- /packages/web/src/components/common/footer/footer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/common/footer/footer.tsx -------------------------------------------------------------------------------- /packages/web/src/components/common/footer/style.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/common/footer/style.tsx -------------------------------------------------------------------------------- /packages/web/src/components/common/logo/logo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/common/logo/logo.tsx -------------------------------------------------------------------------------- /packages/web/src/components/common/logo/logoStyle.tsx: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /packages/web/src/components/common/navbar/navBar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/common/navbar/navBar.tsx -------------------------------------------------------------------------------- /packages/web/src/components/common/navbar/style.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/common/navbar/style.tsx -------------------------------------------------------------------------------- /packages/web/src/components/common/typingBox/components/progressbar/progressBar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/common/typingBox/components/progressbar/progressBar.tsx -------------------------------------------------------------------------------- /packages/web/src/components/common/typingBox/components/progressbar/style.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/common/typingBox/components/progressbar/style.tsx -------------------------------------------------------------------------------- /packages/web/src/components/common/typingBox/components/testChart.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/common/typingBox/components/testChart.tsx -------------------------------------------------------------------------------- /packages/web/src/components/common/typingBox/helpers/gettext.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/common/typingBox/helpers/gettext.ts -------------------------------------------------------------------------------- /packages/web/src/components/common/typingBox/helpers/interfaces.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/common/typingBox/helpers/interfaces.ts -------------------------------------------------------------------------------- /packages/web/src/components/common/typingBox/style.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/common/typingBox/style.tsx -------------------------------------------------------------------------------- /packages/web/src/components/common/typingBox/typingBox.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/common/typingBox/typingBox.tsx -------------------------------------------------------------------------------- /packages/web/src/components/dashboard/dashboard.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/dashboard/dashboard.tsx -------------------------------------------------------------------------------- /packages/web/src/components/dashboard/helpers/interfaces.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/dashboard/helpers/interfaces.ts -------------------------------------------------------------------------------- /packages/web/src/components/dashboard/style.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/dashboard/style.tsx -------------------------------------------------------------------------------- /packages/web/src/components/frontPage/components/pannel1/pannel1.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/frontPage/components/pannel1/pannel1.tsx -------------------------------------------------------------------------------- /packages/web/src/components/frontPage/components/pannel1/style.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/frontPage/components/pannel1/style.tsx -------------------------------------------------------------------------------- /packages/web/src/components/frontPage/components/pannel2/pannel2.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/frontPage/components/pannel2/pannel2.tsx -------------------------------------------------------------------------------- /packages/web/src/components/frontPage/components/pannel2/style.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/frontPage/components/pannel2/style.tsx -------------------------------------------------------------------------------- /packages/web/src/components/frontPage/components/pannel3/pannel3.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/frontPage/components/pannel3/pannel3.tsx -------------------------------------------------------------------------------- /packages/web/src/components/frontPage/components/pannel3/style.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/frontPage/components/pannel3/style.tsx -------------------------------------------------------------------------------- /packages/web/src/components/frontPage/home.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/frontPage/home.tsx -------------------------------------------------------------------------------- /packages/web/src/components/frontPage/style.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/frontPage/style.tsx -------------------------------------------------------------------------------- /packages/web/src/components/loginPage/loginPage.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/loginPage/loginPage.tsx -------------------------------------------------------------------------------- /packages/web/src/components/loginPage/style.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/loginPage/style.tsx -------------------------------------------------------------------------------- /packages/web/src/components/profilePage/components/changePassword/changePassword.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/profilePage/components/changePassword/changePassword.tsx -------------------------------------------------------------------------------- /packages/web/src/components/profilePage/components/changePassword/style.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/profilePage/components/changePassword/style.tsx -------------------------------------------------------------------------------- /packages/web/src/components/profilePage/components/gamesChart.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/profilePage/components/gamesChart.tsx -------------------------------------------------------------------------------- /packages/web/src/components/profilePage/helpers/interfaces.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/profilePage/helpers/interfaces.ts -------------------------------------------------------------------------------- /packages/web/src/components/profilePage/profilePage.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/profilePage/profilePage.tsx -------------------------------------------------------------------------------- /packages/web/src/components/profilePage/style.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/profilePage/style.tsx -------------------------------------------------------------------------------- /packages/web/src/components/startTypingPage/components/latestsScores/latestScores.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/startTypingPage/components/latestsScores/latestScores.tsx -------------------------------------------------------------------------------- /packages/web/src/components/startTypingPage/components/latestsScores/style.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/startTypingPage/components/latestsScores/style.tsx -------------------------------------------------------------------------------- /packages/web/src/components/startTypingPage/components/navBar/navBar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/startTypingPage/components/navBar/navBar.tsx -------------------------------------------------------------------------------- /packages/web/src/components/startTypingPage/components/navBar/style.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/startTypingPage/components/navBar/style.tsx -------------------------------------------------------------------------------- /packages/web/src/components/startTypingPage/components/tutorials/style.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/startTypingPage/components/tutorials/style.tsx -------------------------------------------------------------------------------- /packages/web/src/components/startTypingPage/components/tutorials/tutorials.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/startTypingPage/components/tutorials/tutorials.tsx -------------------------------------------------------------------------------- /packages/web/src/components/startTypingPage/helpers/websocket.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/startTypingPage/helpers/websocket.ts -------------------------------------------------------------------------------- /packages/web/src/components/startTypingPage/startTypingPage.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/startTypingPage/startTypingPage.tsx -------------------------------------------------------------------------------- /packages/web/src/components/startTypingPage/style.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/startTypingPage/style.tsx -------------------------------------------------------------------------------- /packages/web/src/components/statisticsPage/components/previousScoresChart.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/statisticsPage/components/previousScoresChart.tsx -------------------------------------------------------------------------------- /packages/web/src/components/statisticsPage/helpers/interfaces.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/statisticsPage/helpers/interfaces.ts -------------------------------------------------------------------------------- /packages/web/src/components/statisticsPage/statisticsPage.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/statisticsPage/statisticsPage.tsx -------------------------------------------------------------------------------- /packages/web/src/components/statisticsPage/style.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/components/statisticsPage/style.tsx -------------------------------------------------------------------------------- /packages/web/src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/index.tsx -------------------------------------------------------------------------------- /packages/web/src/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/server.ts -------------------------------------------------------------------------------- /packages/web/src/style.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/style.tsx -------------------------------------------------------------------------------- /packages/web/src/utils/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/utils/constants.ts -------------------------------------------------------------------------------- /packages/web/src/utils/getTheme.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/utils/getTheme.ts -------------------------------------------------------------------------------- /packages/web/src/utils/randomText.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/utils/randomText.ts -------------------------------------------------------------------------------- /packages/web/src/utils/websocket.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/src/utils/websocket.ts -------------------------------------------------------------------------------- /packages/web/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/tsconfig.json -------------------------------------------------------------------------------- /packages/web/webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/packages/web/webpack.config.js -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /pnpm-workspace.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/pnpm-workspace.yaml -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vycdev/king-typer/HEAD/tsconfig.json --------------------------------------------------------------------------------