Commit graph

8458 commits

Author SHA1 Message Date
Aaron 3d4b28f864
Fix wrong Dutch word (#3825) UnrealApex
* Renamed command line setting timer-progress bar

* Fix wrong Dutch word

Co-authored-by: Aaron <79121360+hazyboba@users.noreply.github.com>
2023-01-04 13:58:02 +01:00
Miodec 15a8dba11a fixed level balloon not working on public profiles 2023-01-04 13:53:35 +01:00
Miodec 7c34fa2591 upgraded swagger stats 2022-12-28 15:42:12 +01:00
Snyk bot 6813c707a0
fix: backend/package.json & backend/package-lock.json to reduce vulnerabilities (#3860)
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-JSONWEBTOKEN-3180020
- https://snyk.io/vuln/SNYK-JS-JSONWEBTOKEN-3180022
- https://snyk.io/vuln/SNYK-JS-JSONWEBTOKEN-3180024
- https://snyk.io/vuln/SNYK-JS-JSONWEBTOKEN-3180026
2022-12-28 15:37:37 +01:00
Jack 3b198c5959
Update README.md 2022-12-27 21:22:35 +01:00
Miodec 1f72e846cc removed quotes 2022-12-18 22:01:20 +01:00
Miodec fef8f267d5 removed word 2022-12-17 09:21:16 +01:00
Miodec 948f667b2a fixed incorrect validation message being shown 2022-12-11 22:39:55 +01:00
github-actions[bot] 574ff0538c
Prettier fix (#3819)
Co-authored-by: monkeytypegeorge <monkeytypegeorge@gmail.com>
2022-12-11 01:19:47 +01:00
Miodec 70e5c86e41 fixed pb crown not showing difference
closes #3817
2022-12-11 01:09:37 +01:00
Miodec bf93ea753a removing errorId when not a server error 2022-12-11 01:00:33 +01:00
Miodec f697ec00fe logging errorid 2022-12-10 23:40:02 +01:00
Miodec 91ea52bec6 fetcing user data first 2022-12-10 23:38:53 +01:00
Miodec 5005b9aad6 if the user is not found: check if it exists in auth, if it does, recreate it in db 2022-12-10 23:38:41 +01:00
Miodec 10f984cf5e duplicate 2022-12-08 19:56:09 +01:00
Miodec b6bf2581c9 Merge remote-tracking branch 'origin/master' 2022-12-08 15:01:49 +01:00
verbxtim 48db9cec2f Add code_assembly (#3796) verbxtim
* Update _groups.json

Added assembly

* Update _list.json

Added assembly

* Create code_assembly.json

Original 8086/8088 instruction set

* Resolve conflicts for code_assembly

* Resolve conflicts for code_assembly

Co-authored-by: Miodec <jack@monkeytype.com>
2022-12-08 15:01:33 +01:00
verbxtim 8b2ad5bd62
Add code_assembly (#3796) cerbxtim
* Update _groups.json

Added assembly

* Update _list.json

Added assembly

* Create code_assembly.json

Original 8086/8088 instruction set

* Resolve conflicts for code_assembly

* Resolve conflicts for code_assembly

Co-authored-by: Miodec <jack@monkeytype.com>
2022-12-08 15:01:11 +01:00
JJ b8ad75b0b4
Add Nim language (code) (#3810) j-james 2022-12-08 14:50:13 +01:00
Bruce Berrios bdd6ce0ffa
Housekeeping (#3816)
* housekeeping

* bad commit

* fix bad
2022-12-08 14:46:17 +01:00
Miodec b1ddd57e11 only caching monkeytype.com requests 2022-12-08 14:03:03 +01:00
bvoo 4e9ab796ad
Add timestamp filter for results (#3815)
* Add timestamp filter for results

* moved validation, changed mongo filter to gte.

* conditionally include time in mongo query, strict schema.

* changed min to monkeytype birth date

* added result options, check for nil.

* update description

* timestamp constant

* rename timestamp to onOrAfterTimestamp, make opts optional

* declaration and description modifications

* one last time

* move result ops

* one last one for real
2022-12-07 22:11:22 -05:00
Bruce Berrios 89fa7dc25d
Add failed PR comment job (#3808) Bruception
* Add failed PR comment job

* test

* .

* test

* Download workflow artifact

* .

* test

* .

* test

* nice

* Fix typo
2022-12-07 23:02:13 +01:00
Miodec cb8237a0c0 longer bio 2022-12-07 17:54:15 +01:00
Miodec b458a6dd9d false positives 2022-12-07 17:54:09 +01:00
Miodec d391febb34 added supporter 2022-12-07 15:53:13 +01:00
Snyk bot 829a68b3e7
fix: backend/package.json & backend/package-lock.json to reduce vulnerabilities (#3814)
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-GOT-2932019
- https://snyk.io/vuln/SNYK-JS-QS-3153490
2022-12-07 15:52:48 +01:00
Bruce Berrios 4a56a31b07
Checkout monkey CI (#3807) 2022-12-05 19:07:06 +01:00
[Error_27] 3f6bf924ac
Add GDScript programming language (#3792) ErrorInCode27
* Initial GDScript addition

* Add parentheses and a couple extra types/symbols

* Reorganization to make it understandable

Co-authored-by: [Error_27] <43973418+Error-In-Code@users.noreply.github.com>
2022-12-05 18:52:47 +01:00
Bruce Berrios 46d7a78ffe
Add Monkey CI (#3799)
* Split PR checks

* Split Jobs

* Test

* Fix path check

* Use checkout

* Undo

* oh boy

* .

* .

* .

* .

* test

* .

* .

* .

* .

* .

* .

* .

* yay

* Remove jsonschema from global dep

* monkey ci

* .

* oops

* test

* .

* .

* .

* .

* .

* .

* .

* ayy

* add permissions
2022-12-05 18:52:15 +01:00
github-actions[bot] abe61873a4
Prettier fix (#3801)
Co-authored-by: monkeytypegeorge <monkeytypegeorge@gmail.com>
2022-12-04 04:23:05 +01:00
coliss86 2de528b9fb
transform œ character which is not on many keyboard (#3797)
* transform a character which is not on a keyboard

* update length
2022-12-04 01:39:36 +01:00
Miodec 9376760fc5 updated caching strategy 2022-12-02 19:50:48 +01:00
Miodec 5d040ae8a0 also clearing cache after uninstalling the service worker 2022-12-01 20:19:03 +01:00
Miodec 41e49d452c added arabic 101 2022-12-01 19:18:54 +01:00
Miodec d19df5a724 added parlor to british english 2022-12-01 13:33:21 +01:00
Miodec 6c032be2ab removed short quotes 2022-12-01 01:39:31 +01:00
Miodec 5a9d635339 removed quotes 2022-12-01 01:38:57 +01:00
Miodec 997273f1ab removed quote 2022-12-01 01:38:28 +01:00
Miodec 8485f6d16c fixed tts not working 2022-12-01 00:11:20 +01:00
Miodec 56c1083433 quote lengths 2022-11-30 20:58:13 +01:00
George The Bot 32e8813850
Added more quotes (#3788)
* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json

* Added quote to english.json
2022-11-30 20:57:45 +01:00
Scribe of the Ziggurat daf74a1faf
Add code_zig for Zig programming language, for great justice (#3782) zigster
* Add code_zig for Zig programming language, for great justice

* fix dupes
2022-11-30 19:40:21 +01:00
Bruce Berrios c1dfc53e58
Refactor queues (#3783) Bruception 2022-11-30 19:39:16 +01:00
egorguslyan 618c9ec931
Ip (#3784) egorguslyan
* Finishing logic

* Numbers + layoutfluid

* One interface

* Filter results

* tts error on undefined

Extencions like NoScript can partly block scripts on the page.
If speech synthesis is not loaded, notification shows up
without freezing the page

* Improved randomcase

* Prevent dublicates in command line

* Change filter logic

* Prettier

* Convert numbers

* num

* Quote and zen modes

* withWords

* Misc

* Expand funboxes list for pb saving

* Move list to backend

* Move to constants

* Async withWords, checkFunbox tweak

* Prettier

* Forbid nonexistent funboxes

* Disable speech if language is ignored

TtS's init() uses setLanguage()

* canGetPb

* Less circular imports

* Ligatures typo

* Simon says blocks word highlight

* blockWordHighlight backend

* Changed imports

* usesLayout

* JSON schema

* IP funbox

* Split

* Display notification instead of reseting

* canGetPB

* One getWordHtml

* Dividing properties

* No sync

* blockedModes

* forcedConfig

* Infinitness parameter, list sync

* applyConfig, memory

Remove extra applyConfig somewhere;
Memory in quotes and custom modes

* I lost this code after merging

* Remove arrowKeys

* isFunboxCompatible

* Fix logic

* sync canGetPb

* remove FunboxObjectType

* baloons

* moved cangetpb function to pb utils

* updated the pb check to be easier to understand

* Refactor isFunboxCompatible

* Check modes conflicts

* Strict highlightMode type

* Only one allowed or blocked highlight mode

* More checks

* Undefined only, not false

* Prettier

* Highlight modes

* added intersect helper function

* reworked forced config
 - storing allowed modes as an array, not string
 - first value will be used if config is outside of the allowed values
 - instead of checking if highlight mode is allowed, checking if the whole config is available
- removed the "Finite" forced config and replaced it with "noInfiniteDuration" property
- config event listener now checks every config change, not just highlight mode. this will ensure any future forced configs will work straight out of the box

* ManualRestart in commandline

* fixed funbox commands not correctly showing which funbox is active

* Upd list

* Merge

* canGetPB for ip

* Reduce list

* split funbox into smaller files
moved funbox files into its own folder

* missing none command

* added function to convert camel case to space separated words

* changed config validation to be blocking the change rather than reacting to the change

* reduced code duplication

* allowing sub color flash

* moved keymap key higlighting and flashing into an observable event

* moved tts into a observable event

* passing funbox into config validation funcitons

* replaced getActive with get

* only keeping functions structure in the list, moved the actual function bodies to funbox.ts
done to remove a circular dependency
still need to finish the rest of the funboxes

* removed empty function definitions (typing issues)

* removed unnecessary type

* unnecessary check

* moved mode checking to config validation

* longer notification

* checking funboxes before changing mode

* moved more functions

* fixed incorrect type

* checking funboxes when setting punctuation and numbers

* Rest of funboxes

* fixed funbox commands showing tags text and icon

* checking if funbox can be set with the current config

* better error message

* validating with setting time and words
importing from a new file

* added a function to capitalise the first letter of a string

* using function from a new file
new parameters

* moved test length check to a function in a different file

* moved some funbox validation into its own file

* only  showing notifications if the setWordCount returned true

* moved funbox validation to its own file

* setting manual restart when trying to set funbox to nonoe

* moving this validation to before activating the funbox

* returning forcedConfigs along side if current value is allowed
moved infinite check to checkFunboxForcedConfigs

* removed function, replaced by funox validation

* removing duplicates

* throwing if no intersection

* wrong type

* always allowing setting funbox
sometimes it might be possible to update the config

* checking forced configs first, and updating config if possible
only setting funbox to none when couldnt update config

* basic difficulty levels

* xp funbox bonus

* Delete old file

* Difficulty level

* removed console logs

* renamed import, renamed type

* lowercase b for consistency across the codebase

* renamed variable for readability

* renamed for clarity

* converted metadata to object

* changed from beforesubgroup on the command to before list on the subgroup

* using code suggested by bruce

* renamed type

* removed console log

* merch banner fix

* important animation

* updating the icon of "none" funbox command

* removed unnecessary import

* lowercase b

* updated description

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Miodec <jack@monkeytype.com>
2022-11-30 19:25:57 +01:00
Miodec 351f1995bf hopefully added a solution to fix the page not loading 2022-11-30 18:49:04 +01:00
Miodec 62fd725287 removed console log 2022-11-30 18:35:38 +01:00
egorguslyan 588d14a2b3
Multiple funboxes (#3578) egorguslyan
* input-controller

* result

* Finishing logic

* Numbers + layoutfluid

* One interface

* Filter results

* tts error on undefined

Extencions like NoScript can partly block scripts on the page.
If speech synthesis is not loaded, notification shows up
without freezing the page

* Improved randomcase

* Prevent dublicates in command line

* Change filter logic

* Prettier

* Convert numbers

* num

* Quote and zen modes

* withWords

* Misc

* Expand funboxes list for pb saving

* Move list to backend

* Move to constants

* Async withWords, checkFunbox tweak

* Prettier

* Forbid nonexistent funboxes

* Disable speech if language is ignored

TtS's init() uses setLanguage()

* canGetPb

* Less circular imports

* Ligatures typo

* Simon says blocks word highlight

* blockWordHighlight backend

* Changed imports

* usesLayout

* JSON schema

* Display notification instead of reseting

* canGetPB

* One getWordHtml

* Dividing properties

* No sync

* blockedModes

* forcedConfig

* Infinitness parameter, list sync

* applyConfig, memory

Remove extra applyConfig somewhere;
Memory in quotes and custom modes

* I lost this code after merging

* Remove arrowKeys

* isFunboxCompatible

* Fix logic

* sync canGetPb

* remove FunboxObjectType

* baloons

* moved cangetpb function to pb utils

* updated the pb check to be easier to understand

* Refactor isFunboxCompatible

* Check modes conflicts

* Strict highlightMode type

* Only one allowed or blocked highlight mode

* More checks

* Undefined only, not false

* Prettier

* Highlight modes

* added intersect helper function

* reworked forced config
 - storing allowed modes as an array, not string
 - first value will be used if config is outside of the allowed values
 - instead of checking if highlight mode is allowed, checking if the whole config is available
- removed the "Finite" forced config and replaced it with "noInfiniteDuration" property
- config event listener now checks every config change, not just highlight mode. this will ensure any future forced configs will work straight out of the box

* ManualRestart in commandline

* fixed funbox commands not correctly showing which funbox is active

* Upd list

* Reduce list

* split funbox into smaller files
moved funbox files into its own folder

* missing none command

* added function to convert camel case to space separated words

* changed config validation to be blocking the change rather than reacting to the change

* reduced code duplication

* allowing sub color flash

* moved keymap key higlighting and flashing into an observable event

* moved tts into a observable event

* passing funbox into config validation funcitons

* replaced getActive with get

* only keeping functions structure in the list, moved the actual function bodies to funbox.ts
done to remove a circular dependency
still need to finish the rest of the funboxes

* removed empty function definitions (typing issues)

* removed unnecessary type

* unnecessary check

* moved mode checking to config validation

* longer notification

* checking funboxes before changing mode

* moved more functions

* fixed incorrect type

* checking funboxes when setting punctuation and numbers

* Rest of funboxes

* fixed funbox commands showing tags text and icon

* checking if funbox can be set with the current config

* better error message

* validating with setting time and words
importing from a new file

* added a function to capitalise the first letter of a string

* using function from a new file
new parameters

* moved test length check to a function in a different file

* moved some funbox validation into its own file

* only  showing notifications if the setWordCount returned true

* moved funbox validation to its own file

* setting manual restart when trying to set funbox to nonoe

* moving this validation to before activating the funbox

* returning forcedConfigs along side if current value is allowed
moved infinite check to checkFunboxForcedConfigs

* removed function, replaced by funox validation

* removing duplicates

* throwing if no intersection

* wrong type

* always allowing setting funbox
sometimes it might be possible to update the config

* checking forced configs first, and updating config if possible
only setting funbox to none when couldnt update config

* basic difficulty levels

* xp funbox bonus

* removed console logs

* renamed import, renamed type

* lowercase b for consistency across the codebase

* renamed variable for readability

* renamed for clarity

* converted metadata to object

* changed from beforesubgroup on the command to before list on the subgroup

* using code suggested by bruce

* renamed type

* removed console log

* merch banner fix

* important animation

* updating the icon of "none" funbox command

* removed unnecessary import

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Miodec <jack@monkeytype.com>
2022-11-30 16:57:48 +01:00
Miodec d45b487192 fixed broken click handler 2022-11-30 15:33:17 +01:00
Bruce Berrios 83cfd272a2
Fix weekly leaderboard timestamp logic (#3780) 2022-11-29 11:33:58 +01:00