Commit graph

9396 commits

Author SHA1 Message Date
Miodec 1d7acdfc20 updating name font size less often 2023-05-17 14:42:02 +02:00
Miodec 2749360d3e improved account page performance by not updating the account chart 5 times 2023-05-17 14:09:41 +02:00
Miodec 014e20cf82 setting cached user banned property,
not checking again if user is already banned
2023-05-17 13:34:46 +02:00
Miodec 445f61c8a8 better comment 2023-05-17 13:34:46 +02:00
Miodec 82bfc5956e updated log 2023-05-17 13:34:46 +02:00
Paras Arya a08be965f3
added english quote (#4292) ParasArya289
* added english quote

* updated a english quote with id:6912

* updated quote with "knowledge" lower cased
2023-05-17 13:16:01 +02:00
jørg c83f023127
Norwegian nynorsk edited (#4296)
* Update norwegian_nynorsk_10k.json

* Update norwegian_nynorsk_5k.json

* Update norwegian_nynorsk_1k.json

* Update norwegian_nynorsk_5k.json

* Update norwegian_nynorsk.json

* Update norwegian_nynorsk_10k.json
2023-05-17 12:56:32 +02:00
Matteo Macaluso 0d844d7dc9
added six italian quotes (#4294) magicteo
* added six italian quotes

* fixed typo
2023-05-17 12:55:39 +02:00
Miodec 16b2b11caf better log 2023-05-17 12:05:48 +02:00
Miodec ecf5ea9d65 quote report 2023-05-17 11:28:53 +02:00
Filipe Lima 36d67fd258
Added portuguese quote (#4293) 2023-05-16 23:34:14 +02:00
ba1man 103fe19605
Add simplified chinese language support (#4289) ba1man
* add Simplified Chinese words

* add Simplified Chinese words

* remove chinese_simplified_5k.json

* remove duplicates

* update _group.json
2023-05-15 19:40:45 +02:00
Miodec fc809fbf19 allowing word selection 2023-05-15 17:46:08 +02:00
Orlovchikk 4e86865783
added 8 russian quotes (#4278) Orlovchikk
* Update russian.json

* added russian quotes

* removed 1037, 1039, 1040, 1043
2023-05-15 14:17:56 +02:00
Serdar Bilici b46340c0a5
Language turkish 5k edit (#4277) s3rdarb
* Update turkish.json

* Update turkish.json

* Update turkish_1k.json

* Update turkish_1k.json

* Update chinese_traditional.json

* Update turkish.json

* Update turkish_1k.json

* Update turkish_1k.json

* Update turkish.json

* Update turkish.json

* Update turkish.json

* Update turkish_1k.json

* Update turkish_1k.json

* Update turkish_1k.json

* Update turkish_1k.json

* Update turkish_1k.json

* Update turkish_1k.json

* Update turkish_1k.json

* Update turkish_1k.json

* Update turkish_1k.json

* Update turkish_1k.json

* Update turkish.json

* Update _groups.json

* Update _list.json

* Create turkish_5k.json

turkish 5k language

* comma correction

* Update turkish_5k.json

* Update turkish_5k.json

* update quotes

* Update turkish.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Turkish 5k minor edit

edited some words effecting the flow of typing

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* prettier

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* removed duplicate

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-05-15 14:17:26 +02:00
Miodec a308b10a21 checking if funbox is compatible with config when changing funbox setting
closes #4276
2023-05-15 14:16:59 +02:00
Miodec c180d99fcf removed console log 2023-05-15 14:00:53 +02:00
Miodec 52c481c3a2 not removing ... if command is of type input
removing icon if command is of type input
closes #4286
2023-05-15 14:00:34 +02:00
Miodec 9681d4ee26 showing top row on the keymap if test has numbers and keymap is in mode next
closes #4273
2023-05-15 13:51:42 +02:00
Miodec 503a5a75ea fixed search for quotes command not working
closes #4267
2023-05-15 13:38:45 +02:00
Miodec f0ec3d36ff not allowing users to report themselves
closes #4269
2023-05-15 13:36:58 +02:00
Miodec 6c9eb9ec3a deleting inbox on user reset
closes #4281
2023-05-15 13:36:57 +02:00
kenn 993dc14e39
Backgrounds in Theme URLs (#4279) KennLDN
* Added Optional Background Data sharing to Theme Share URL, and updated URL Handling to support new JSON format

* Fixed Clipboard Fail Popup

* Do it Properly this time

* Prettier

* err

* err

* removed one margin, updated the other

* updated button text

* updated type

* unnecessary await

* more descriptive variable names

* using shorter param names (urls are limited in length)

* level 1 instead of 0

* better notifications when copying failed

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-05-15 13:25:34 +02:00
net-tech- d2632ec62b
fix: disable autocomplete in safari for the typing test (#4287) net-tech 2023-05-15 13:10:54 +02:00
jørg baa0313f00
New norwegian languages (#4285) joweli
* Update _groups.json

changed "norwegian" to "norwegian_bokmål"

added languages "norwegian_bokmål_150k", "norwegian_bokmål_600k", "norwegian_nynorsk_1k", "norwegian_nynorsk_5k", "norwegian_nynorsk_10k", "norwegian_nynorsk_100k", "norwegian_nynorsk_400k"

* Update _list.json

changed "norwegian" to "norwegian_bokmål"

added languages "norwegian_bokmål_150k", "norwegian_bokmål_600k", "norwegian_nynorsk_1k", "norwegian_nynorsk_5k", "norwegian_nynorsk_10k", "norwegian_nynorsk_100k", "norwegian_nynorsk_400k"

* Update _groups.json

* Update and rename norwegian.json to norwegian_bokmål.json

changed "norwegian" to "norwegian_bokmål"
changed bcp47 "no-NO" to "nb-NO"

* Update and rename norwegian_10k.json to norwegian_bokmål_10k.json

changed "norwegian" to "norwegian_bokmål"
changed bcp47 "no-NO" to "nb-NO"

* Update and rename norwegian_1k.json to norwegian_bokmål_1k.json

changed "norwegian" to "norwegian_bokmål"
changed bcp47 "no-NO" to "nb-NO"

* Update and rename norwegian_5k.json to norwegian_bokmål_5k.json

changed "norwegian" to "norwegian_bokmål"
changed bcp47 "no-NO" to "nb-NO"

* Delete norwegian_nynorsk.json

Replacing

* Added new norwegian languages

updated language "norwegian_nynorsk"
added languages "norwegian_bokmål_150k", "norwegian_bokmål_600k", "norwegian_nynorsk_1k", "norwegian_nynorsk_5k", "norwegian_nynorsk_10k", "norwegian_nynorsk_100k", "norwegian_nynorsk_400k"

source bokmål_150k, bokmål_600k: Norsk ordbank – bokmål 2005, Språkbanken Nasjonalbiblioteket https://www.nb.no/sprakbanken/ressurskatalog/oai-nb-no-sbr-5/ (13/05/2023), Licensed from Creative_Commons-BY (CC-BY 4.0) - modified
source nynorsk_100k, nynorsk_400k Norsk ordbank – bokmål 2005, Språkbanken Nasjonalbiblioteket https://www.nb.no/sprakbanken/ressurskatalog/oai-nb-no-sbr-5/ (13/05/2023), Licensed from Creative_Commons-BY (CC-BY 4.0) - modified

* Delete norwegian_bokmål_600k.json

* Delete norwegian_nynorsk_400k.json

* Delete norwegian_nynorsk_100k.json

* Delete norwegian_bokmål_150k.json

* Added new norwegian languages

* Added new norwegian languages

* Update norwegian_nynorsk_10k.json

* Update norwegian_nynorsk.json

* Update norwegian_nynorsk_1k.json

* Update norwegian_nynorsk_5k.json

* Update norwegian_nynorsk.json

* Update norwegian_nynorsk_1k.json

* Update _groups.json

å -> a

* Update _list.json

å -> a

* Update and rename norwegian_bokmål.json to norwegian_bokmal.json

* Update and rename norwegian_bokmål_10k.json to norwegian_bokmal_10k.json

* Update and rename norwegian_bokmål_1k.json to norwegian_bokmal_1k.json

* Update norwegian_bokmal_1k.json

* Update norwegian_bokmal.json

* Update norwegian_bokmal.json

* Update norwegian_bokmal_10k.json

* Update and rename norwegian_bokmål_5k.json to norwegian_bokmal_5k.json

* Add files via upload

* Delete norwegian_bokmål_600k.json

* Delete norwegian_bokmål_150k.json
2023-05-15 12:11:29 +02:00
Octahedron 16cb56afd0
Added pace caret style -> off, background size, and background filter settings to the command line. (#4274) je-farr
* Added missing 'pace caret style -> off' setting to command line.

* Updated number array config validation to check for NaN values.

* Added background size settings to command line.

* Added background filter settings to command line.

* Changed tempArr to const.

* Changed displays to lowercase for consistency.

* renamed constants

* capital letter

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-05-15 12:08:08 +02:00
Albert 67daa1d409
Custom mode pipe delimiter: section count mode (#4105) albertying, miodec
* Add section input

* Restore code

* Cleaner approach

* Correct current index

* Remove import

* Call punctuation, numbers, funboxes on all words in section

* Plus n adds n words instead of n sections

* Undo

* Fix normal test

* Replace word with section when delimiter is checked

* Restore

* Set progress to current section / section total

* Fix memory funbox

* Fix randomcase

* Fix text generation when random is not enabled

* no word limit if in random section mode

* instead of using a for loop, using a while loop and stopping dynamically

* handling getting next section
tracking section history to avoid repeating sections

* test

* Revert "test"

This reverts commit 50d20fff3d.

* allowing infinite

* fixed words not being added after the first word generation

* not checking section index if infinite word

* throwing if word contains a space (should never happen)

* removed/reverted old approach to this feature

* using input history everytime for now until a better solution is found

* removed unused import

* exporting section index and current section

* code used by the previous approach, most likely will be deleted

* revered a change this pr makes (idk why this was deleted)

* missing comment

* removed comment

* added section progress tracking
word generator now returns a list of section indexes, which is stored in test words module
this array is then used to determine which section the current word belongs to inside timer progress

* better errors

* replacing multiple spaces with one
replacing starting and trailing spaces before splitting

* fixed pipe delmiter non random custom text not working

* extracted logic into constants to make the if statement easier to understand and expand in the future

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-05-15 11:45:38 +02:00
Miodec 1c483760fa quote lengths 2023-05-15 11:13:29 +02:00
Miodec 9ba260046a quote reports and low rated quotes 2023-05-15 11:08:06 +02:00
Miodec 16c956c62c missing commas 2023-05-11 13:48:46 +02:00
Miodec 570bc36f66 updated arabic 102 2023-05-11 12:42:43 +02:00
AntoninMayet 0b4f532eab
Added french quotes (#4264) AntoninMayet
* Added french quotes

Hoping I didn't mess anything up.

* Update french.json

Add comment with English translation

* Update french.json

* Update french.json

Corrected some typos
2023-05-10 18:03:41 +02:00
Miodec 85b41dab0d quote lengths 2023-05-10 14:03:08 +02:00
Miodec 64be9e751a quote reports 2023-05-10 14:00:53 +02:00
WhosChester 1ef32215c6
Added English Quotes (#4261) WhosChester
* Added English Quotes

* Removed and fixed some quotes

* Fixed quote ID 6908 length

* Length fields corrected

* missing full sotp

* incorrect length

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-05-10 12:55:44 +02:00
Miodec 219ec63794 turns out date.now uses miliseconds instead of seconds... who knew? 2023-05-09 16:06:47 +02:00
kStor2poche 4463768b6b
Fixed a mistype that slipped by when first proofreading in quotes/french.json (#4265) kStor2poche 2023-05-09 12:56:11 +02:00
verdant23 5d98eabbc2
Update _list.json - Added noctum keymap layout (#4263) verdant23
* Update _list.json

* Update _list.json

* Update _list.json

* Update _list.json

* Update _list.json

* Update _list.json
2023-05-09 12:54:26 +02:00
Miodec 911f786b6b added some debug logs 2023-05-08 13:45:24 +02:00
Miodec 200803a72c fixed a bug where words added live during the test didnt follow the punctuation rules 2023-05-08 13:41:45 +02:00
Miodec 09bb4c051c added arabic 102 2023-05-08 12:01:54 +02:00
Miodec 0e88bd87c3 replaced .at with a function that is supported in older browsers 2023-05-05 19:30:46 +02:00
Miodec 198493ca95 logging update
overwriting native log, warn, debug, error
added color coded tags to logs
automatically enabling debug logs on localhost
added fucntion to enable debug logs
2023-05-05 14:49:46 +02:00
Serdar Bilici 7cb1d2a677
Language turkish 5k edit (#4259)
* Update turkish.json

* Update turkish.json

* Update turkish_1k.json

* Update turkish_1k.json

* Update chinese_traditional.json

* Update turkish.json

* Update turkish_1k.json

* Update turkish_1k.json

* Update turkish.json

* Update turkish.json

* Update turkish.json

* Update turkish_1k.json

* Update turkish_1k.json

* Update turkish_1k.json

* Update turkish_1k.json

* Update turkish_1k.json

* Update turkish_1k.json

* Update turkish_1k.json

* Update turkish_1k.json

* Update turkish_1k.json

* Update turkish_1k.json

* Update turkish.json

* Update _groups.json

* Update _list.json

* Create turkish_5k.json

turkish 5k language

* comma correction

* Update turkish_5k.json

* Update turkish_5k.json

* update quotes

* Update turkish.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Turkish 5k minor edit

edited some words effecting the flow of typing

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* prettier

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

* Update turkish_5k.json

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-05-05 13:45:22 +02:00
Jack b7d7cac99f
Word generation rewrite (#4258)
* fixed not being able to start an infinite custom test

* moved words bound function to a different file

* moved wordset class to the wordset file

* moved more code to test words

* moved to to new words generator

* removed unnecessary function

* unnecessary function

* reordered functions

* pushing to ret instead

* reordered lines

* moved code to a function, merged two functions into one

* refactor

* reorder

* removed comment

* setting config to array instead

* moved code

* added a check to protect against infinite init loop

* small refactor

* moved wordset definition

* moved text has tab check to the end

* moved ß replacement to getNextWord

* tracking current quote

* removed comment

* fixed type

* delaying words height and input position update

* moved tab testing code outside the word generato

* removed console log

* removed unnecessary word count variable

* moved funbox section to its own function

* fixed custom text not working correctly

* passing in previous words instead of always getting it from testwords

* missing type definition

* get next word now always returns one word, keeps track of the current section (mutli word "word")

* fixed incorrect limit for custom mode

* tracking section index

* - not updating language when group is other
 - activating funbox after language has been loaded
 - combined 2 language checks into 1
 - awaiting init calls

* greater or equal

* removed comment

* extracted quote generation to its own function

* prettier
2023-05-05 13:25:40 +02:00
Miodec fc461e975a added enter to the list of tracked keys 2023-05-04 19:27:45 +02:00
Miodec 9ca996aa24 setting config to array instead 2023-05-04 14:40:13 +02:00
Miodec 1ebd90c7d0 refactor to look cleaner 2023-05-04 14:39:55 +02:00
Miodec 935b779efd fixed not being able to start an infinite custom test 2023-05-04 14:39:16 +02:00
Mark (Krittipoom) 1e3a453f80
Add Thai quotes (#4253) Krittipoom
* Add Thai quotes to thai.json

Add Thai quotes from Detective conan to thai.json

* Update thai.json

* Update thai.json

* fix length field

fix length field

* remove id4 in thai.json

remove id4 in thai.json
2023-05-04 12:06:35 +02:00