Commit graph

7350 commits

Author SHA1 Message Date
Miodec d527b2359e Merge branch 'master' of https://github.com/Miodec/monkeytype 2022-06-20 12:35:13 +02:00
Zach Stence f2e8225f59
fix: hide account icon when using discord avatar (#3162)
* fix: hide account icon when using discord avatar

* fix: only use discord avatar if it loads successfully

* fix: set usingAvatar on successful avatar load only

* chore: use arrow function
2022-06-19 20:55:28 -04:00
smunky bc58cbf613
added psa request failed notification (#3155)
* added psa request failed notification

* fixed prettier issues
2022-06-19 19:19:08 -04:00
aria 709d141aa6
more english quotes (#3153)
* Added 5 quotes

* fixed lengths and added MORE quotes

* merged current with prior stream

* Fetching upstream (#1)

* extended: language 'code rust' (#3104)

Added all derives and some very common traits as well as `pub(crate)`.

* added one english quote (#3094)

* added one english quote

* added one english quote

* updated the quote id 6095

* Custom Filters [Backend] (#3105)

* Added `ResultFilters` to types
Added customFilters field to user
This field is an optional array of `ResultFilters`
It will store a user's custom filters

* Added Add and Remove functions for `ResultFilters` in user DAL

Also added unit tests

* Added Custom Filter configuration

Can now enable/disable the custom filters feature
Can also set a cap on the number of filters per user

* Add and Remove functions for `ResultFilters` in user controller

* Added one english quote (#3109)

* added one english quote

* added one english quote

* updated the quote id 6095

* Added english quote id 6096

* Custom Filters [Backend] (#3105) (#3110)

* Added `ResultFilters` to types
Added customFilters field to user
This field is an optional array of `ResultFilters`
It will store a user's custom filters

* Added Add and Remove functions for `ResultFilters` in user DAL

Also added unit tests

* Added Custom Filter configuration

Can now enable/disable the custom filters feature
Can also set a cap on the number of filters per user

* Add and Remove functions for `ResultFilters` in user controller

* Added Haskell programming language (#3108)

* added: code_haskell language;

* fixed: missing comma;

* Contributing typos fix (#3114)

* spacebar in presets and tags addition

* super mega spacebar remake

* style fix

* final name removal in ui

* replaceAll in ape removal

* using display above account chart

* create preset in command line addition

* testing removal

* one more testing removal

* create tag command line addition

* Update commandline-lists.ts

* moved add commands to the bottom
hiding if user is not signed in

* refactor

* hiding tags and presets when signed out

* fixed presets and tags display in alerts

* russian_25k and russian_50k addition

* russian 375k addition

* lil fix

* fixed windows auto-reload error

* Revert "fixed windows auto-reload error"

This reverts commit ea22621232.

* Revert "Revert "fixed windows auto-reload error""

This reverts commit 669cec4217.

* Revert "Revert "Revert "fixed windows auto-reload error"""

This reverts commit d90352633c.

* themes popup small fix

* using &&

* some typos fixed

Co-authored-by: Miodec <bartnikjack@gmail.com>
Co-authored-by: Vasiliy Novozhilov <vasya@192.168.1.3>

* Fix yesterday toggle button (#3107)

Co-authored-by: Cody Bloemhard <cblmhrd@live.nl>
Co-authored-by: Jitesh Kumar Sahoo <77315098+Jitesh117@users.noreply.github.com>
Co-authored-by: Malo Hamon <hamon.malo@gmail.com>
Co-authored-by: aNOOBis <69043738+aNOOBisTheGod@users.noreply.github.com>
Co-authored-by: Miodec <bartnikjack@gmail.com>
Co-authored-by: Vasiliy Novozhilov <vasya@192.168.1.3>
Co-authored-by: Bruce Berrios <58147810+Bruception@users.noreply.github.com>

* fixed ids and added more quotes

* i sincerely hope this is the LAST TIME I DO THIS

* more quotes!

* removed inappropriate quote

Co-authored-by: Cody Bloemhard <cblmhrd@live.nl>
Co-authored-by: Jitesh Kumar Sahoo <77315098+Jitesh117@users.noreply.github.com>
Co-authored-by: Malo Hamon <hamon.malo@gmail.com>
Co-authored-by: aNOOBis <69043738+aNOOBisTheGod@users.noreply.github.com>
Co-authored-by: Miodec <bartnikjack@gmail.com>
Co-authored-by: Vasiliy Novozhilov <vasya@192.168.1.3>
Co-authored-by: Bruce Berrios <58147810+Bruception@users.noreply.github.com>
2022-06-19 11:12:07 -04:00
Miodec 27d2dd3746 updated supporter name 2022-06-19 02:21:10 +02:00
Miodec 50581d317b Merge branch 'master' of https://github.com/Miodec/monkeytype 2022-06-18 15:26:15 +02:00
R0merol dd886223ba
Add 40 more Indonesian quotes, 171-210 (#3146)
* Added 20 more quotes (151-170)

* Fixed quote length (id: 155, 157)

* Add 40 more Indonesian quotes, 171-210

* Fixed "groups" formatting back to original

Co-authored-by: Evan <64989416+Ferotiq@users.noreply.github.com>
2022-06-18 09:21:13 -04:00
Miodec 58654fecb6 added contributor 2022-06-18 00:34:11 +02:00
devrusty 99af571948
Added code_visual_basic language (#3147)
* Create code_visual_basic.json

source: https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/keywords/

* listed code_visual_basic

* listed code_visual_basic in code group

* removed duplicate "each"
2022-06-17 18:09:32 -04:00
Miodec b5397d9d56 added supporters 2022-06-17 17:48:39 +02:00
Evan b57e1cd895
Fix prettier issues and update package.json to allow windows to use the prettier scripts (#3145) 2022-06-17 06:47:11 -05:00
kenny bb31d75c4b
removed swapEscAndTab, replaced quickTab with quickRestart (#3139) devkennyy
* Add leaderboard language selection (#3124) bruception

* Adds leaderboard language selection

* Update mesage

* fixed disabled select2 styling

* changed button positioning

* fixed media queries

* Add languages

Co-authored-by: Miodec <bartnikjack@gmail.com>

* remove references of swapEscToTab

* Custom Filters [FrontEnd] (#3106) nocommentcode

* Add Create and Delete functions for Filter Presets to `Users` ape endpoint
- deleteFilterPreset
- addFilterPreset

* Added name and _id fields to the `ResultFilter` interface in the front end

This matches the `ResultFilter` interface in the backend
Added the new fields for the default filter
Added checks in result-filter.ts to not update the ui based on these fields

* Added new-filter-preset-popup

This popup is displayed when creating a new filter preset
It allows the user to select a name.

* Added Filter Preset Buttons in account page html

- Added the Filter Preset button
- Added the filter preset region
- Added the new and delete buttons

* Added Filter Presets to DB Snapshot

* Implemented Custom Fileter Creation, Selection and Deletion flow

- Users can now create a custom filter based on the current settings
- Users will be prompted to select a name for the filter
- User can click on any custom filter and the current filter will be updated
- User can delete a custom filter while it is selected

* Implemented Filter Preset Creation, Selection and Deletion flow

- Users can now create a filter preset based on the current settings
- Users will be prompted to select a name for the filter
- User can click on any filter preset and the current filter will be updated
- User can delete a filter preset while it is selected

* adjusted styling

* removed margin

* removed icon

* added media query

* popup wording

* automatically replacing _ when displaying and creating preset

* using loader and notifications

* fixed bork

* fixed sometimes not being able to delete preset

* make preset popup look like tags popup

Co-authored-by: Miodec <bartnikjack@gmail.com>

* added pace caret: last closes #3113

* Add rate limits to forgot password (#3129) mehdidev

* Added New Quotes

* Add More Quotes

* Add rate limit to forgot password

* Use Prettier

* Change canCall to let so that lint doesn't flag me for the 69th time

* change forgotPassword() to async & remove console.log's

* If this doesn't fix everything idk what to do

* reduced nesting, using function to create error message

* updated notification

Co-authored-by: Miodec <bartnikjack@gmail.com>

* added: code_opencl language (#3132) codybloemhard

* added: code_opencl language;

* fixed: duplicate word in code_opencl;

* fixed: another duplicate in code_opencl;

* Include language in notification (#3134)

* Add 20 more Indonesian quotes, 151-170 (#3136) R0merol

* Added 20 more quotes (151-170)

* Fixed quote length (id: 155, 157)

* using completed events language instead of current config

* add hedge theme (#3137) devkennyy

* create hedge theme

* update _list.json

* fixed sub alt color issues

* update colors

* updated colors

Co-authored-by: Miodec <bartnikjack@gmail.com>

* replaced quickTab with quickRestart

* updated keytips and statements

* update keytips

* moved keytip update to ui module

* not opening command line if quick restart is esc

* calling update keytips when changing quick restart

* handling restarting with quick restart escape

* updated settings page to reflect new quick restart setting

* swapping legacy values

* removed line which caused circular dependencies

* reordered files to fix event not firing

* handling closing with escape before opening

* not doing anything if a modal is visible

Co-authored-by: Bruce Berrios <58147810+Bruception@users.noreply.github.com>
Co-authored-by: Miodec <bartnikjack@gmail.com>
Co-authored-by: Malo Hamon <hamon.malo@gmail.com>
Co-authored-by: Mehdi Hussain <mehdi@mehdi.us>
Co-authored-by: Cody Bloemhard <cblmhrd@live.nl>
Co-authored-by: R0merol <farisfrontiers@gmail.com>
2022-06-16 23:57:34 +02:00
Bruce Berrios 7b89328f47
Refactor add user (#3133) bruception 2022-06-16 19:42:13 +02:00
Miodec 44d4f81afd Merge branch 'master' of https://github.com/Miodec/monkeytype 2022-06-16 19:00:23 +02:00
Miodec 3fe1df4370 added function to escapeHTML 2022-06-16 19:00:16 +02:00
aria e6712e98e3
Added a bunch of quotes (#3103)
* Added 5 quotes

* fixed lengths and added MORE quotes

* merged current with prior stream

* Fetching upstream (#1)

* extended: language 'code rust' (#3104)

Added all derives and some very common traits as well as `pub(crate)`.

* added one english quote (#3094)

* added one english quote

* added one english quote

* updated the quote id 6095

* Custom Filters [Backend] (#3105)

* Added `ResultFilters` to types
Added customFilters field to user
This field is an optional array of `ResultFilters`
It will store a user's custom filters

* Added Add and Remove functions for `ResultFilters` in user DAL

Also added unit tests

* Added Custom Filter configuration

Can now enable/disable the custom filters feature
Can also set a cap on the number of filters per user

* Add and Remove functions for `ResultFilters` in user controller

* Added one english quote (#3109)

* added one english quote

* added one english quote

* updated the quote id 6095

* Added english quote id 6096

* Custom Filters [Backend] (#3105) (#3110)

* Added `ResultFilters` to types
Added customFilters field to user
This field is an optional array of `ResultFilters`
It will store a user's custom filters

* Added Add and Remove functions for `ResultFilters` in user DAL

Also added unit tests

* Added Custom Filter configuration

Can now enable/disable the custom filters feature
Can also set a cap on the number of filters per user

* Add and Remove functions for `ResultFilters` in user controller

* Added Haskell programming language (#3108)

* added: code_haskell language;

* fixed: missing comma;

* Contributing typos fix (#3114)

* spacebar in presets and tags addition

* super mega spacebar remake

* style fix

* final name removal in ui

* replaceAll in ape removal

* using display above account chart

* create preset in command line addition

* testing removal

* one more testing removal

* create tag command line addition

* Update commandline-lists.ts

* moved add commands to the bottom
hiding if user is not signed in

* refactor

* hiding tags and presets when signed out

* fixed presets and tags display in alerts

* russian_25k and russian_50k addition

* russian 375k addition

* lil fix

* fixed windows auto-reload error

* Revert "fixed windows auto-reload error"

This reverts commit ea22621232.

* Revert "Revert "fixed windows auto-reload error""

This reverts commit 669cec4217.

* Revert "Revert "Revert "fixed windows auto-reload error"""

This reverts commit d90352633c.

* themes popup small fix

* using &&

* some typos fixed

Co-authored-by: Miodec <bartnikjack@gmail.com>
Co-authored-by: Vasiliy Novozhilov <vasya@192.168.1.3>

* Fix yesterday toggle button (#3107)

Co-authored-by: Cody Bloemhard <cblmhrd@live.nl>
Co-authored-by: Jitesh Kumar Sahoo <77315098+Jitesh117@users.noreply.github.com>
Co-authored-by: Malo Hamon <hamon.malo@gmail.com>
Co-authored-by: aNOOBis <69043738+aNOOBisTheGod@users.noreply.github.com>
Co-authored-by: Miodec <bartnikjack@gmail.com>
Co-authored-by: Vasiliy Novozhilov <vasya@192.168.1.3>
Co-authored-by: Bruce Berrios <58147810+Bruception@users.noreply.github.com>

* fixed ids and added more quotes

* i sincerely hope this is the LAST TIME I DO THIS

Co-authored-by: Cody Bloemhard <cblmhrd@live.nl>
Co-authored-by: Jitesh Kumar Sahoo <77315098+Jitesh117@users.noreply.github.com>
Co-authored-by: Malo Hamon <hamon.malo@gmail.com>
Co-authored-by: aNOOBis <69043738+aNOOBisTheGod@users.noreply.github.com>
Co-authored-by: Miodec <bartnikjack@gmail.com>
Co-authored-by: Vasiliy Novozhilov <vasya@192.168.1.3>
Co-authored-by: Bruce Berrios <58147810+Bruception@users.noreply.github.com>
2022-06-16 12:41:00 -04:00
Gabriel Fleury 1cf8af1e8c
Added more portuguese quotes (#3140) 2022-06-16 12:39:31 -04:00
Miodec fe6b74ccf0 Merge branch 'master' of https://github.com/Miodec/monkeytype 2022-06-16 18:29:21 +02:00
Miodec 03d90949df storing list of auto assignable roles on the server 2022-06-16 18:29:15 +02:00
kenny cc0f991d47
add hedge theme (#3137) devkennyy
* create hedge theme

* update _list.json

* fixed sub alt color issues

* update colors

* updated colors

Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-06-16 11:37:31 +02:00
Miodec 44d996fe6c using completed events language instead of current config 2022-06-16 11:12:04 +02:00
R0merol 64047a0057
Add 20 more Indonesian quotes, 151-170 (#3136) R0merol
* Added 20 more quotes (151-170)

* Fixed quote length (id: 155, 157)
2022-06-16 11:10:05 +02:00
Bruce Berrios c8e3c2fbbc
Include language in notification (#3134) 2022-06-16 11:09:35 +02:00
Miodec ece2aa4273 Merge branch 'master' of https://github.com/Miodec/monkeytype 2022-06-15 19:35:11 +02:00
Miodec 3da4eb45c0 added pace caret: last closes #3113 2022-06-15 19:35:01 +02:00
Cody Bloemhard ec4e6cbc84
added: code_opencl language (#3132) codybloemhard
* added: code_opencl language;

* fixed: duplicate word in code_opencl;

* fixed: another duplicate in code_opencl;
2022-06-15 15:21:00 +02:00
Mehdi Hussain c3296929da
Add rate limits to forgot password (#3129) mehdidev
* Added New Quotes

* Add More Quotes

* Add rate limit to forgot password

* Use Prettier

* Change canCall to let so that lint doesn't flag me for the 69th time

* change forgotPassword() to async & remove console.log's

* If this doesn't fix everything idk what to do

* reduced nesting, using function to create error message

* updated notification

Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-06-15 15:19:03 +02:00
Malo Hamon f02649ae9f
Custom Filters [FrontEnd] (#3106) nocommentcode
* Add Create and Delete functions for Filter Presets to `Users` ape endpoint
- deleteFilterPreset
- addFilterPreset

* Added name and _id fields to the `ResultFilter` interface in the front end

This matches the `ResultFilter` interface in the backend
Added the new fields for the default filter
Added checks in result-filter.ts to not update the ui based on these fields

* Added new-filter-preset-popup

This popup is displayed when creating a new filter preset
It allows the user to select a name.

* Added Filter Preset Buttons in account page html

- Added the Filter Preset button
- Added the filter preset region
- Added the new and delete buttons

* Added Filter Presets to DB Snapshot

* Implemented Custom Fileter Creation, Selection and Deletion flow

- Users can now create a custom filter based on the current settings
- Users will be prompted to select a name for the filter
- User can click on any custom filter and the current filter will be updated
- User can delete a custom filter while it is selected

* Implemented Filter Preset Creation, Selection and Deletion flow

- Users can now create a filter preset based on the current settings
- Users will be prompted to select a name for the filter
- User can click on any filter preset and the current filter will be updated
- User can delete a filter preset while it is selected

* adjusted styling

* removed margin

* removed icon

* added media query

* popup wording

* automatically replacing _ when displaying and creating preset

* using loader and notifications

* fixed bork

* fixed sometimes not being able to delete preset

* make preset popup look like tags popup

Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-06-15 14:47:52 +02:00
Miodec 8e96570b7e Merge branch 'master' of https://github.com/Miodec/monkeytype 2022-06-15 01:46:25 +02:00
Miodec b9fe94db1b removed the punctuation check for custom mode
closes #3127
2022-06-15 01:46:19 +02:00
Bruce Berrios 0f7a25422a
Add leaderboard language selection (#3124) bruception
* Adds leaderboard language selection

* Update mesage

* fixed disabled select2 styling

* changed button positioning

* fixed media queries

* Add languages

Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-06-15 01:30:46 +02:00
Miodec 56c9c91fff z index on the configure api 2022-06-14 22:24:52 +02:00
Miodec ad207525cb removed the desaturation effect due to popular demand 2022-06-14 22:08:58 +02:00
SarkarKurdish 7ef0da92d5
New kurdish words (#3126) 2022-06-14 16:27:01 +02:00
Ayush 2780cc46d5
Added additional Nepali quotes (#3121) 2022-06-13 13:05:51 -04:00
kenny df82e6399d
wordle, wordle_1k languages. (#3111)
* Update _groups.json

Updated _groups.json to include wordle language.

* Update _list.json

Updated _list.json to include wordle and wordle_1k languages.

* Create wordle.json

Name: wordle
Words: 200 

Sourced from wordle source code.

* Add wordle_1k.json (@devkennyy)

Added wordle_1k. Words sourced from wordle source code.

* added wordle_1k contents

* replaced single quotes with double

* removed trailing comma
2022-06-13 10:36:04 -04:00
Ihor Kos d02d095f93
Made fixes to ukrainian_50k (#3120)
* Fixed mistake in a word (http://sum.in.ua/s/reghionaljnyj)

* Removed non-existent word (http://sum.in.ua/s/karochje)

* Removed vulgarism

* Removed complex word (consists of two words)

* Removed duplicate occured after fixing a mistake
2022-06-13 10:34:46 -04:00
kenny 20599bd971
add turkish quotes, 61-69 (#3112)
* added quotes 61-69

* added missing closing bracket

* removed misplaced bracket

* fixed quote lengths
2022-06-13 07:52:27 -04:00
Ihor Kos 9cca6b585b
Fixed mistake in ukrainian word (#3117) inununit 2022-06-13 12:26:23 +02:00
Bruce Berrios 141dc262e7
Rename customFilters -> resultFilterPresets (#3115)
* Rename customFilters -> resultFilterPresets

* Update messages
2022-06-12 19:34:52 -04:00
Bruce Berrios 37861447b9
Fix yesterday toggle button (#3107) 2022-06-12 18:19:37 +02:00
aNOOBis c69515e46b
Contributing typos fix (#3114)
* spacebar in presets and tags addition

* super mega spacebar remake

* style fix

* final name removal in ui

* replaceAll in ape removal

* using display above account chart

* create preset in command line addition

* testing removal

* one more testing removal

* create tag command line addition

* Update commandline-lists.ts

* moved add commands to the bottom
hiding if user is not signed in

* refactor

* hiding tags and presets when signed out

* fixed presets and tags display in alerts

* russian_25k and russian_50k addition

* russian 375k addition

* lil fix

* fixed windows auto-reload error

* Revert "fixed windows auto-reload error"

This reverts commit ea22621232.

* Revert "Revert "fixed windows auto-reload error""

This reverts commit 669cec4217.

* Revert "Revert "Revert "fixed windows auto-reload error"""

This reverts commit d90352633c.

* themes popup small fix

* using &&

* some typos fixed

Co-authored-by: Miodec <bartnikjack@gmail.com>
Co-authored-by: Vasiliy Novozhilov <vasya@192.168.1.3>
2022-06-12 11:56:40 -04:00
Cody Bloemhard 42d3d34bb8
Added Haskell programming language (#3108)
* added: code_haskell language;

* fixed: missing comma;
2022-06-12 10:21:52 -04:00
Malo Hamon b55419dfc0
Custom Filters [Backend] (#3105) (#3110)
* Added `ResultFilters` to types
Added customFilters field to user
This field is an optional array of `ResultFilters`
It will store a user's custom filters

* Added Add and Remove functions for `ResultFilters` in user DAL

Also added unit tests

* Added Custom Filter configuration

Can now enable/disable the custom filters feature
Can also set a cap on the number of filters per user

* Add and Remove functions for `ResultFilters` in user controller
2022-06-11 22:38:09 -04:00
Jitesh Kumar Sahoo 9e0017bd43
Added one english quote (#3109)
* added one english quote

* added one english quote

* updated the quote id 6095

* Added english quote id 6096
2022-06-11 22:11:41 -04:00
Malo Hamon ba843419a1
Custom Filters [Backend] (#3105)
* Added `ResultFilters` to types
Added customFilters field to user
This field is an optional array of `ResultFilters`
It will store a user's custom filters

* Added Add and Remove functions for `ResultFilters` in user DAL

Also added unit tests

* Added Custom Filter configuration

Can now enable/disable the custom filters feature
Can also set a cap on the number of filters per user

* Add and Remove functions for `ResultFilters` in user controller
2022-06-11 20:32:06 -04:00
Jitesh Kumar Sahoo 111bf387e3
added one english quote (#3094)
* added one english quote

* added one english quote

* updated the quote id 6095
2022-06-10 23:31:26 -04:00
Cody Bloemhard c5baa8af09
extended: language 'code rust' (#3104)
Added all derives and some very common traits as well as `pub(crate)`.
2022-06-10 18:33:51 -04:00
Dunxter c16dde6602
Fixed a spelling error in Spanish 1k (#3102)
"Barcelona" is spelled with a capital B (such is the case of "Madrid").
2022-06-10 09:56:00 -04:00
FEZfan 4866dcf2bf
Fix typos (#3098) 2022-06-09 21:17:43 -05:00