Commit graph

3565 commits

Author SHA1 Message Date
Christian Fehmer 668f2612a4
fix: PB pace caret is always zero (#5143)
* fix: PB pace caret is always zero

* cleanup
2024-02-26 20:57:09 +01:00
penguin-teal 76267baf1e
impr(languages): replace 2 fake code_vim commands with real ones (#5137) 2024-02-26 18:56:44 +01:00
Miodec f4f1346aa8 fix(result tag popup): active tags not higlighted 2024-02-26 18:23:04 +01:00
Miodec 39ad6f65c3 impr(modes notice): not showing decimal places 2024-02-26 17:19:17 +01:00
Christian Fehmer 69dff92ede
impr: floor accuracy intead of rounding when not showing decimal places (fehmer) (#5120)
* impr: floor accuracy intead of rounding when not showing decimal places

* add method to format accuracy

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-02-26 17:16:46 +01:00
Nipul Mallikarachchi 532c16f089
impr(quotes): add 4 english quotes (NipulM) (#5110)
* impr(quotes): add 3 english quotes

* impr(quotes): add 4 english quotes

* updated per feedback

* fixed length

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-02-26 17:10:35 +01:00
Christian Fehmer 0dcf6c0d15
fix: fix wrong usage of DB.getLocalPB (#5132) 2024-02-26 14:13:14 +01:00
mizaagi becb66dab6
feat(theme): add anti hero theme (mizaagi) (#5018)
* Create anti_hero.css

* Update _list.json

* updated colors

* Update anti_hero.css

fix color scheme

* Update _list.json

fix color scheme

* Update anti_hero.css

hopefully the final change to this theme.

* Update _list.json

hopefully the final change to this theme.

* update text color

* Update anti_hero.css

New error color fix

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-02-26 13:53:37 +01:00
Denis Alex db34b13b48
impr(quotes): add Dutch quotes (devdenisalex) (#5125)
* Update spanish.json

* Update spanish.json

* Update dutch.json

* Update dutch.json

* Update dutch.json
2024-02-26 13:40:06 +01:00
Ashin Berish 5ff0c3fdec
fix: ctrl+backspace replay bug (ashinberish) 2024-02-26 13:38:41 +01:00
Christian Fehmer 2ff0c60072
fix: personal bests not shown correctly on user tags (fehmer) (#5119) 2024-02-26 13:12:16 +01:00
Ajay kumar f15bc397a9
refactor: replace $.each calls with for loops (underscoore) (#5112)
* docs:updated navigation to authentication

* impr: Clearing all the fields on Sign Up page after logged out

* refactor: Replace $.each calls with for loops #5107

* refactor: replace $.each calls with for loops (underscoore) #5112

* fix hover bug

* rename obj

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-02-26 12:40:13 +01:00
Christian Fehmer b20df42f2f
test: replace jest with vitest on frontend (fehmer) (#5105)
* test: replace jest with vitest on frontend

* vscode config

* use prettier to format modfifications on save
2024-02-26 12:23:50 +01:00
aarnav593 002770ee26
feat(language): add english medical (aarnav593) (#5108)
* Update _list.json

added medicine as a language

* Create medicine.json

* Update medicine.json

* Added words to english_medical

200 words

* Rename medicine.json to english_medical.json

* changed medical to english_medical

* added english_medical to English group

* Update english_medical.json

fixed naming error

* fixed duplicate words in english_medical.json

tried creating pull request, returned an error. fixed errors.

* Update english_medical.json

saving work

* Update english_medical.json

added nearly 500 medical words

* Update english_medical.json

fixed a few duplicates

* Update english_medical.json

fixed some more duplicates

* Update english_medical.json

fixed typo

* Update english_medical.json

fixed duplicates again; added two new words (cerebellum and brain stem)

* Added some more words

more to come

* added more

keeping em coming

* Update english_medical.json

* Update english_medical.json

* Update english_medical.json

* Update english_medical.json

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-02-26 12:14:38 +01:00
Miodec c3f7f0de6a impr(dev): showing notifications with unhandled errors 2024-02-25 22:44:59 +01:00
Miodec a8285c068e fix(caching): remove precaching and navigation fallback
should fix email handler being broken
2024-02-25 13:38:15 +01:00
Miodec 829174983a fix: firebase not defined in email handler 2024-02-25 13:09:24 +01:00
Miodec fd6d1cbbf8 impr(hosting): add precaching to static pages 2024-02-25 11:49:45 +01:00
Miodec 91c30cd889 fix(caret): underline caret too low 2024-02-23 21:24:45 +01:00
Miodec 01aefa91b4 chore: add 404 for static resources 2024-02-23 20:43:12 +01:00
Miodec a1ba4a9652 fix: dont rewrite static assets to index
should fix resources not giving 404 errors
2024-02-23 19:43:33 +01:00
Miodec 6db321c8fc fix: correctly handling 404 errors when getting quotes 2024-02-23 19:27:12 +01:00
Miodec d19a95e548 chore: remove trace 2024-02-23 13:14:42 +01:00
Miodec 8076acf333 impr(typing): always allow lazy mode when in custom mode, no matter the current language selection
closes #5071
2024-02-22 23:14:44 +01:00
Christian Fehmer 81b388af4a
impr: remove usage of jQuery getJSON (fehmer) (#5109)
* impr: remove usage of jQuery getJSON

* use generic

* throwing if nothing found

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-02-22 23:05:37 +01:00
myakinx fd4f1e51e4
fix(language): Update turkish_5k.json (myakinx) (#5100)
* Update turkish_5k.json

Changed Words: 
“mahallesi” to “mahalle”
“sıralarında” to “sıra”
“geçmişi” to “geçmiş”
“standı” to “stand “
“tahminler” to “tahmin”
“dinle” to “dinlemek”
“kısaltmalar” to “kısaltma”
“aminoasit” to “amino asit”
“geldi” to “gelmek”
“fotojeni” to fotojenik”
“jonglör” deleted because it was not included in the Turkish Dictionary.
“numarası” to “numara”
“onanması” to “onanma“
“prospektüsü” to “prospektüs”
“molekülü” to “moleküllü”
“düştü” to“düşmek”
“işareti” to “işaret”
“toplamı” to “toplam”
“vardır” to “var”
“süblimasyon” to “süblimleşme”
“aralığı” to “aralık”
“yakalandı” to “yakalanmak”
“kyanit”  deleted because it was not included in the Turkish Dictionary.

* Update turkish_5k.json

* Update turkish_5k.json
2024-02-22 23:01:10 +01:00
Miodec 8b0c61415d impr(caret): better placement, cleaned up some animations, fix right to left issues 2024-02-22 19:22:00 +01:00
Miodec b03ea666c8 refactor: replace jquery event with vanilla event 2024-02-22 17:52:59 +01:00
Miodec 7e73d47f09 impr: better bug hunter badge description 2024-02-22 17:30:31 +01:00
Miodec 6dbc7371ee fix: jquery being undefined 2024-02-22 17:21:55 +01:00
Miodec 0b25148fb9 chore: yeet service workers when in dev environment 2024-02-22 17:13:53 +01:00
Miodec f1c620ee51 chore: include index 2024-02-22 16:26:18 +01:00
Miodec 2db6a88644 fix: email handler not working 2024-02-22 16:10:08 +01:00
Miodec 67f0df76c2 fix: input history button alignment 2024-02-22 15:25:40 +01:00
Sachin Kumar 1429c2ca8c
impr: save pbs for numbers mode separately (notreallystatic, miodec) (#4946) 2024-02-22 15:07:42 +01:00
Miodec 3e591635e5 refactor: pretty fix 2024-02-22 13:07:28 +01:00
Miodec c7e122f640 impr: authentication error messages 2024-02-22 12:59:08 +01:00
Miodec 34161ddffa fix: unfriendly error message when authentication fails on the client side
closes #5079
2024-02-22 12:33:59 +01:00
Nipul Mallikarachchi bebd11a35e
impr(quotes): add JavaScript quote (NipulM) (#5099) 2024-02-22 11:54:16 +01:00
Nipul Mallikarachchi 9017312a95
impr(quotes): add 3 english quotes (NipulM) (#5098) 2024-02-22 11:53:50 +01:00
Jack 8f6bfbb708
build: replace webpack with vite (#5096) 2024-02-22 02:24:20 +01:00
Exploration c29220323b
feat(theme): add macroblank theme (TheExploration) (#5088) 2024-02-21 13:42:33 +01:00
Denis Alex 6ef08d4707
impr(quotes): add Spanish quotes (devdenisalex) (#5094)
* Update spanish.json

* Update spanish.json
2024-02-21 12:51:06 +01:00
Christian Fehmer edd535c700
fix: leaderboard tables having different column width (fehmer) (#5091)
* fix: leaderboard tables having different column width

* up the date width a bit

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-02-21 12:50:12 +01:00
Jack 01790d8a3a
refactor: shared user types (#5080)
* move user to shared definitions

this includes whatever user can have on it, tags, presets and so on

* profiles, mail and others

* fix logic

* yeet

* same as master for now

* tsc fixes

* remove comment

* fix tests

* chore: omit ips

* fix(language): remove some unnecessarily capitalised words in german 1k

* fix(typing): first space sometimes soft locking the website

* perf: speed up settings page loading

* fix: use selected typing speed unit on personal best popup (fehmer) (#5070)

* fix: Use selected typing speed unit on personal best popup

* refactor

* refactor

* test coverage

* use Format in more places

* Make config mockable

* dependency injection

* wip

* fix

* test

* touch

* fix(language): typos in russian_10k.json (kae) (#5082)

* Update russian_10k.json

- fixed typos
- removed duplicates

* - fixed extra typos

* remove duplicates

* fix(language): typos in russian_10k.json

* feat: add copy missed words to result screen (fehmer) (#5086)

* feat: Add copy missed words to result screen

* remove margin

* update icons

---------

Co-authored-by: Miodec <jack@monkeytype.com>

* impr(funbox): add 46 group languages to wikipedia funbox (RealCyGuy) (#5078)

* impr: provide all-time LB results during LB update (fehmer) (#5074)

Try to provide LB results during the LB update. There is a very small time-frame where
already running queries might fail during the update. For now we keep the 503 error in this
cases and monitor how often this happens on production.

* impr(funbox): add ` (grave accent, 96) and ~ (tilde, 126) to specials (#5073)

* impr: add testWords and wordsHistory to copy result stats (#5085)

* feat: add testWords and wordsHistory to copy result stats

* fix

* add fe ts dep

---------

Co-authored-by: Christian Fehmer <fehmer@users.noreply.github.com>
Co-authored-by: Andrey Kuznetsov <akuznetsov@outlook.com>
Co-authored-by: Cyrus Yip <cyruscmyip1@gmail.com>
Co-authored-by: fitzsim <fitzsim@fitzsim.org>
2024-02-19 17:15:15 +01:00
Christian Fehmer 06c50deb3a
impr: add testWords and wordsHistory to copy result stats (#5085)
* feat: add testWords and wordsHistory to copy result stats

* fix
2024-02-19 15:02:51 +01:00
fitzsim 7c0425eb90
impr(funbox): add ` (grave accent, 96) and ~ (tilde, 126) to specials (#5073) 2024-02-19 15:00:56 +01:00
Cyrus Yip d1b663a5be
impr(funbox): add 46 group languages to wikipedia funbox (RealCyGuy) (#5078) 2024-02-19 14:58:43 +01:00
Christian Fehmer a1f883b99f
feat: add copy missed words to result screen (fehmer) (#5086)
* feat: Add copy missed words to result screen

* remove margin

* update icons

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-02-19 14:57:20 +01:00
Andrey Kuznetsov 67881cace8
fix(language): typos in russian_10k.json (kae) (#5082)
* Update russian_10k.json

- fixed typos
- removed duplicates

* - fixed extra typos

* remove duplicates

* fix(language): typos in russian_10k.json
2024-02-19 14:53:13 +01:00
Christian Fehmer bac837d823
fix: use selected typing speed unit on personal best popup (fehmer) (#5070)
* fix: Use selected typing speed unit on personal best popup

* refactor

* refactor

* test coverage

* use Format in more places

* Make config mockable

* dependency injection

* wip

* fix

* test

* touch
2024-02-19 14:46:02 +01:00
Miodec 4d5085d351 perf: speed up settings page loading 2024-02-19 14:22:49 +01:00
Miodec e94b9cb821 fix(typing): first space sometimes soft locking the website 2024-02-19 13:25:02 +01:00
Miodec 0cc1e2a07e fix(language): remove some unnecessarily capitalised words in german 1k 2024-02-19 12:50:13 +01:00
Miodec 54cb9c9e17 fix: password error when using gmail auth 2024-02-18 18:34:23 +01:00
github-actions[bot] fc925a7e55
refactor: run prettier (#5077)
Co-authored-by: monkeytypegeorge <monkeytypegeorge@gmail.com>
Co-authored-by: Jack <jack@monkeytype.com>
2024-02-18 01:52:41 +01:00
Miodec 6032c967ed chore: add proper types for wordset and section 2024-02-17 18:45:50 +01:00
Miodec aec04bc8cc chore: remove grecaptcha types
it didnt work anyway
2024-02-17 18:44:14 +01:00
Miodec c3d0b23087 chore: fix tsc error 2024-02-17 18:43:15 +01:00
Miodec 763aecad93 chore: add no mixed operators rule 2024-02-17 17:24:41 +01:00
Jack 3e0be2e210
refactor: replace select2 with slim-select (#5065)
* i cant figure this oooout

* fix: closing commandline causing settings page update

* remove log

* fix event looping issues
rerendering selects when updating settings

* remove comment

* move section back to where it should be

* update styling

* move redrawing to settings group

* no need to save to a variable

* types

* fix styles

* search placeholder

* fix structure

* fix styles

* using slim for the rest of selects

* disabled styling

* use slim

* styling

* use slim

* multi select styling

* use slim

* use slim

* use slim

* use slim

* remove everything else related to select2

* last select2 mention

* comment

* fix(settings page): font family buttons not working

* fix: input indicators remaining visible after leaving the login page (underscoore) (#5062)

* chore: update node version to 18.19.1 (#5060)

* impr(quote): add Code C quotes (penguin-teal) (#5053)

* fix: question mark appearing next to unrated quotes

* removed unnecessary link

---------

Co-authored-by: Ajay kumar <ajaykumar.bit.1995@gmail.com>
Co-authored-by: Christian Fehmer <fehmer@users.noreply.github.com>
Co-authored-by: penguin-teal <130006737+penguin-teal@users.noreply.github.com>
2024-02-17 12:12:15 +01:00
Miodec 197f2c36cf fix: question mark appearing next to unrated quotes 2024-02-15 23:14:11 +01:00
penguin-teal 8fd3889dc8
impr(quote): add Code C quotes (penguin-teal) (#5053) 2024-02-15 21:26:11 +01:00
Christian Fehmer 6cf2e4f5f5
chore: update node version to 18.19.1 (#5060) 2024-02-15 21:23:29 +01:00
Ajay kumar 46b336f538
fix: input indicators remaining visible after leaving the login page (underscoore) (#5062) 2024-02-15 21:19:16 +01:00
Miodec 0a9a6e6ef1 fix(settings page): font family buttons not working 2024-02-15 20:25:17 +01:00
Miodec f9b537be1e fix: closing commandline causing settings page update 2024-02-15 20:16:18 +01:00
Miodec 83d935709b chore: add note about dark mode extensions 2024-02-14 23:47:08 +01:00
Christian Fehmer a72aa04c53
fix: leaderboard consistency being null (#5055) 2024-02-14 23:28:51 +01:00
Miodec c04458cb90 refactor: ape client types
fully type query, payload and return data with generics
2024-02-14 17:29:52 +01:00
mokshsinghji 24975e5d01
fix: pressing space too early with the dark note theme doesnt highlight the word as incorrect (mokshsinghji) (#5052) 2024-02-14 12:41:42 +01:00
Denis Alex 933df63ecc
feat(theme): Added tangerine theme (devdenisalex) (#5047)
* Create tangerine.css

* Update _list.json

* Update _list.json

* Update tangerine.css

* Update tangerine.css

* Update tangerine.css

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-02-14 12:09:59 +01:00
Christian Fehmer 0fef619d06
refactor: null-safe usage of Auth.currentUser (fehmer) (#5048)
* fix: error on leaderboard when no user is present

* refactor simple popups

* popups, commandline

* fixes?

* more

* more

* review comments

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-02-13 19:03:50 +01:00
Jack 381bdb826d
refactor: settings groups (#5049)
* update function name

* update function name

* using data properties instead of classes

* using data property

* regex goes brrrrrrr

* button not .button

* fix sliders loading incorrectly and numbers missing

* regex missed this one

* and this one

* using button instead of .button

* use button element

* regex goes brrr once morrrrrr

* remove testing code
2024-02-13 18:22:58 +01:00
Christian Fehmer 85fd0628cc
fix: unknown function called in capsLock detection (#5050) 2024-02-13 18:22:38 +01:00
Jack 8f7b82b9d9
Revert "feat(theme): add tangerine theme (devdenisalex) (#5045)" (#5046)
This reverts commit cbc8930e85.
2024-02-13 13:13:14 +01:00
Denis Alex cbc8930e85
feat(theme): add tangerine theme (devdenisalex) (#5045)
* Create tangerine.css

* Update _list.json

* Update _list.json

* Update tangerine.css

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-02-13 13:12:38 +01:00
Miodec c445a46b15 fix: add missing button to the settings page
also fixes incorrect modes notice with certain config combinations
2024-02-13 12:29:53 +01:00
Jack 084d42c62e
refactor: enable @typescript-eslint/strict (#5028)
* enable rule

* eslint --fix

* fixes

* --fix

* fixes

* fixes

* fixes

* extract into const
2024-02-12 16:46:56 +01:00
Miodec dbc5898e49 chore: quote lengths script 2024-02-12 13:34:13 +01:00
Miodec 71a60f786d fix(quotes): quote reports 2024-02-12 13:32:47 +01:00
Christian Fehmer 5c725f7ee3
fix: leaderboard discord properties being null (fehmer) (#5032) 2024-02-12 13:04:05 +01:00
Dmitry bfdc436eae
fix(quotes): double quote characters in belarusian quotes (#5038)
* Update belarusian.json

* Update belarusian_lacinka.json
2024-02-12 12:55:23 +01:00
Dmitry 19dedd0667
impr(language): add Belarusian 5k, 10k, 25k, 50k, 100k (#5037)
* Added Belarusian 5k, 10k, 25k, 50k,100k files

* Update _groups.json

* Update _list.json
2024-02-12 12:54:45 +01:00
Zach Brehm 086adffe3d
impr(quotes): add 5 code_r quotes (zachbrehm) (#5035)
* Create code_r.json

Created initial quote file for R code and added two quotes for tidyverse functions.

* Formatting text in code_r.json

Fixed formatting to allow for new lines. Was unaware of how this worked before consulting the python quotes.

* Added quotes to code_r.json

Added two additional quotes to ensure that there is at least one in every size group.

* Fixed  code_r.json

* Fixed quote lengths.

Fixed the quote lengths for ID1 and ID2. I'm unclear and which shema ares are invalid, will investigate further.
2024-02-12 12:52:17 +01:00
penguin-teal 67245ddafa
fix(language): mistyped word in code c (#5034)
Remove extra "strlen_s" concatenated onto the "strlen"
2024-02-12 12:51:47 +01:00
Punit Bhesota 22594c5ba5
impr(quotes): add Hindi quotes (punitbhesota) (#5033)
* Updated hindi.json

Added 3 new Hindi quotes

* Updated hindi.json
2024-02-12 12:51:13 +01:00
Miodec 941b613626 chore: using a cdn for jquery in the email handler 2024-02-12 12:16:54 +01:00
Miodec 8c8d2847e8 fix: ad placeholders always visible 2024-02-09 15:25:02 +01:00
penguin-teal 35dc5049cd
impr(quotes): add code_assembly quotes (#5030) 2024-02-09 11:07:11 +01:00
Ruan Buhr c110c80772
impr(quotes): add css quotes (ruanbuhr) (#5022)
* CSS Quotes id Issue Fixed

* prettier

---------

Co-authored-by: Ruan Buhr <26440873@sun.ac.za>
Co-authored-by: Jack <jack@monkeytype.com>
2024-02-09 11:04:32 +01:00
alexkar598 20f09958a2
fix(quote): grammar mistake in french quote (alexkar598) (#5025) 2024-02-08 20:23:56 +01:00
Miodec e31613533c refactor(types): result types
move to shared types (#4774)
add types to ape client (#4786)
2024-02-08 17:57:45 +01:00
Miodec 15c697802d refactor(types): leaderboard types
move to shared types (#4774)
add types to ape client (#4786)
2024-02-08 17:44:46 +01:00
Miodec b5465be75b fix(keymap): react mode not working 2024-02-08 16:55:35 +01:00
Miodec b80a26483c chore: testing for null too 2024-02-08 16:31:47 +01:00
Miodec 67940204a1 impr: increase the transition smoothness when opening the account page 2024-02-08 15:16:17 +01:00
Miodec 7068d6be5c style: fix loading bar alignment 2024-02-08 15:15:36 +01:00
Miodec fc78378833 chore: exposing jquery on local dev 2024-02-08 15:15:18 +01:00
Miodec 09c91f5ad0 fix: missing spinner when loading the account page 2024-02-08 15:01:18 +01:00