Commit graph

4104 commits

Author SHA1 Message Date
github-actions[bot] 839ae7cf48
refactor: run prettier (#5343)
Co-authored-by: monkeytypegeorge <monkeytypegeorge@gmail.com>
2024-05-02 14:58:55 +02:00
Iaroslav 3121ad1c32
impr(language): remove non-words from russian 375k (SheezZarR) (#5341) 2024-05-02 14:58:35 +02:00
cobie8708 0b2f5ccd64
impr(quotes): add english quote (cobie8708) (#5338) 2024-05-02 14:50:25 +02:00
ethan 802699162c
impr(quotes): created and added quotes in chinese simplified (extoplasm) (#5333)
* added two quotes in chinese_simplified.json

* Update chinese_simplified.json

miscounted length of first quote

* updated quotes, added more

* Update chinese_simplified.json

miscounted quote lengths (again) (oops)
2024-05-02 14:49:34 +02:00
Miodec 7f04503921 impr(max line width): setting the value to 0 will now always align the words to the width of the container 2024-04-30 21:00:02 +02:00
Miodec db8b20f36f chore: change default config value of singleListCommandline to on 2024-04-30 20:57:35 +02:00
Miodec 2600f12716 refactor: move the full-width-padding class to a higher parent to avoid having to use it
instead, just use full-width inside that parent

!nuf
2024-04-30 20:17:29 +02:00
Miodec 1c94868357 chore: quote lengths script 2024-04-30 16:51:46 +02:00
Miodec eb59db33b9 fix(quotes): user reports 2024-04-30 16:51:24 +02:00
Miodec 302d1ce144 fix(word generation): time mode tests causing errors when repeated 2024-04-30 16:10:27 +02:00
Miodec 7cfd434fca style: default live wpm/burst/acc to mini style when using bar timer 2024-04-30 15:41:34 +02:00
Miodec 3dda3f905c fix(zen mode): test automatically stopping after 100 words 2024-04-30 13:38:58 +02:00
Miodec 4eccfd632c style: fix set width causing clipping when changing browser size 2024-04-30 13:11:20 +02:00
Miodec f1fe249da1 impr(test config): fix punctuation/numbers animation sometimes not working 2024-04-30 13:03:34 +02:00
Miodec b95c2e8575 impr(test page): make desktop test config visible on narrower widths 2024-04-30 12:53:44 +02:00
Miodec f03bab29d6 chore: add supporter 2024-04-30 11:00:42 +02:00
Miodec 6a58e98457 chore: add wordset debug log 2024-04-29 20:19:32 +02:00
Miodec a30c442081 chore: update message 2024-04-29 18:10:53 +02:00
Miodec a57b6c272f fix(word generation): hasTab / hasNewline state sometimes being incorrect when using plus n funbox
closes #4698
2024-04-28 16:32:56 +02:00
Jack 6579f68955
refactor: word generation (#5344) 2024-04-28 15:40:02 +02:00
Miodec e632df7442 style: fix an outline sometimes appearing around the result 2024-04-28 14:16:55 +02:00
Miodec 25fd805004 impr(custom text): add shuffle mode
with this, you can ensure you will encounter each word at least once
2024-04-27 11:43:38 +02:00
Miodec f541f7c579 chore: remove unused import 2024-04-27 10:57:47 +02:00
Miodec 6abf0aa9b2 fix(commandline): manual mode being broken
closes #5339
2024-04-27 01:24:22 +02:00
Miodec 607da30faa style: use new content-grid system on the result page
fixes result ad causing overflow on some widths
2024-04-27 00:26:54 +02:00
Miodec 05a9b555d9 revert(comandline): debouncing input
it makes searching feel unresponsive
2024-04-27 00:14:52 +02:00
Miodec 7c3d9893e2 chore: remove rogue console.log 2024-04-27 00:02:59 +02:00
Miodec 4ed3b7d6c8 style(typing result): improve styling on narrow screens
also fix random elements causing grid issues
2024-04-27 00:02:08 +02:00
Miodec 6497aa6d25 impr(commandline): debounce the input to reduce commands flashing when typing 2024-04-27 00:01:22 +02:00
Miodec 2c4577035a impr(commandline): increase search result accuracy 2024-04-26 23:44:25 +02:00
Miodec c7e86b5062 impr(commandline): add 'wpm' alias to min speed command 2024-04-26 23:34:03 +02:00
Miodec 510b887a97 fix(config): max line width not being loaded from config 2024-04-26 23:15:22 +02:00
Miodec 04ae04dc5c impr(commandline): when searching, allow display and alias matching at the same time 2024-04-26 20:31:45 +02:00
Miodec 36df36be73 feat: add max line width
controls how many characters per line (estimated) to display during the test
literally bullied into adding it back, hope you love me again
2024-04-26 20:01:32 +02:00
Miodec 06ed908530 chore: comment unused import 2024-04-26 20:00:04 +02:00
Miodec 155c348850 style(typing test): align mini progress with the words, not the content width 2024-04-26 19:35:14 +02:00
Miodec ed9ec67264 style: remove forced display grid on full width elements
!nuf
2024-04-26 19:18:45 +02:00
Miodec 6d774ec767 revert: accidental test width change 2024-04-26 18:25:28 +02:00
Miodec 779d34c7ea fix(typing test): incorrect input placement causing weird scrolling behavior 2024-04-26 18:22:21 +02:00
Miodec 20d6c39cff impr(typing test): allow test words to breakout from the container
this completely reworks the way main content is structured

closes #5335
2024-04-26 16:57:08 +02:00
Miodec 68b3053f0c style(typing test): remove 70 character line width limit when using tape mode
part of #5335
2024-04-25 22:42:04 +02:00
Abdulbasit 1083910bcf
fix(language): typos in kurdish central 2k (#5330)
corrected some typos.
2024-04-25 13:02:49 +02:00
Miodec 76c85420a5 fix(profile): streak hover text saying that it can still be continued even though its already too late 2024-04-25 12:58:08 +02:00
Miodec 79e8566f95 refactor(config): remove "show live progress" and move it to "live progress style: off" 2024-04-25 12:58:08 +02:00
Apostolos Kyratzakos aa00a0be86
feat(language): add typescript (kyratzakos) (#5332) 2024-04-25 12:43:28 +02:00
Miodec 1b5bb7028e impr(typing test): limit line length to 70 characters 2024-04-24 18:34:24 +02:00
Miodec 0a5e7325e0 chore: bump up default font size 2024-04-24 15:28:02 +02:00
Miodec 42aa055eb4 fix(word generation): plus n funboxes causing custom tests to go over the limit 2024-04-24 14:57:41 +02:00
Miodec 99cc7042ea fix(custom text): limit sometimes being set incorrectly in simple mode 2024-04-24 14:54:02 +02:00
Jack 4039ed8b26
refactor: media queries (#5329) 2024-04-24 14:22:41 +02:00
Miodec c8e61d5941 style: lowercase about buttons for styling consistency 2024-04-24 09:59:15 +02:00
Jack ccc9a39a99
refactor: custom text logic and modal (#5327) 2024-04-23 16:58:00 +02:00
Miodec 727ff93611 impr(quote): add english quote (Ethanqg0) 2024-04-23 12:05:35 +02:00
Miodec 299fc35685 impr(loader): delay showing the loading bar by 125ms to avoid it flashing on screen for things that take a short time
!nuf
2024-04-23 12:01:12 +02:00
JojoCalabaza 59636e9d05
impr(quotes): remove inappropriate or controversial political quotes in Hebrew (JojoCalabaza) (#5323) 2024-04-23 11:59:49 +02:00
Helder Barboza 93219cfdc2
impr(language): update code_elixir (helderbarboza) (#5320)
* update strings to elixir

* remove duplicates

* remove parens

* remove one letter functions

* remove inexistant operator

* add parens back to zero-arity funs and types

* add exception modules

* add final new line

* remove parens for `SpecialForms` macros

---------

Co-authored-by: Helder Barboza <helder.fontes@sicoob.com.br>
2024-04-23 11:58:38 +02:00
cute-catgirl cc7b204350
impr(quotes): add English quotes (cute-catgirl) (#5318) 2024-04-23 11:56:43 +02:00
Miodec 9beda7debe refactor(custom text modal): use state instead of checking the dom directly all the time 2024-04-17 19:21:31 +02:00
Miodec a93e4eef11 impr(layout emulator): add urdu_phonetic 2024-04-17 13:45:17 +02:00
JojoCalabaza 208f47f455
impr(quotes): add Hebrew quotes (JojoCalabaza) (#5315) 2024-04-17 13:32:11 +02:00
Christian Fehmer 12146282e2
chore: update vitest to 1.5.0 (#5313) 2024-04-17 13:21:11 +02:00
Miodec a708eadb34 fix(stop on error): inconsistent error highlighting behavior 2024-04-15 13:32:26 +02:00
JojoCalabaza 1579aeca3d
impr(quotes): add Hebrew quotes (JojoCalabaza) (#5310) 2024-04-15 13:24:25 +02:00
ibrab000 c55d11fc6e
revert: remove layouts added by ibrab000 (#5306)
These layouts have been erased from the AKL discord server by me, and I want these layouts to also be erased from monkeytype.
2024-04-15 13:23:57 +02:00
github-actions[bot] e8484427d2
refactor: run prettier (#5308)
Co-authored-by: monkeytypegeorge <monkeytypegeorge@gmail.com>
2024-04-15 13:22:26 +02:00
Tom Kuson e6ee5bbcc2
impr(language): add "@" to git keywords (#5302)
@ is a commonly used alias for HEAD.
2024-04-15 13:21:17 +02:00
Kshitiz Rohilla 23393fb46c
impr(quotes): add 5 English quotes (kshitizrohilla) (#5300) 2024-04-15 13:20:45 +02:00
Miodec 9c49341c16 fix(custom text): some saved book mode texts not working correctly
closes #5311
2024-04-14 17:18:45 +02:00
Miodec 039c95094a refactor(mobile config): use modal chaining
!nuf
2024-04-13 21:23:07 +02:00
Miodec 89920210d3 impr(account page): change tags, funbox and language filters to a multiselect dropdown
closes #5240
2024-04-12 15:35:03 +02:00
Miodec 05e06aec80 style: use negative to always span all no matter how many columns 2024-04-12 15:35:03 +02:00
Miodec 4e0cd63dcc style: improve styling of slim selects 2024-04-12 15:35:03 +02:00
Derry Tutt adb5412ed9
impr(quotes): add 2 english quotes (everypizza1) 2024-04-12 11:14:45 +02:00
sithydev :v af9be52711
feat(theme): add discord (sithydev) (#5297) 2024-04-12 11:12:11 +02:00
Miodec 76f41f39d7 fix(quotes): quote lengths script
!nuf
2024-04-11 12:32:17 +02:00
Miodec 5a4e4604da fix(quotes): use american spelling of "judgment" 2024-04-11 10:05:11 +02:00
Miodec dc005aba1b fix(modals): extra captcha popup appearing below some modals 2024-04-09 12:16:15 +02:00
Christian Fehmer 5e7a609689
fix(account page): buttons unreadable on hover on accounts/profile page (fehmer) (#5292) 2024-04-09 11:45:10 +02:00
Miodec f2714c0a43 fix(typing): allow repeated quote tests to be saved (again) 2024-04-09 01:03:25 +02:00
Miodec 1d79d87d89 fix(word generator): quotes breaking when repeat quotes is enabled 2024-04-08 19:13:53 +02:00
Eggflaw 4514ad02ae
fix(language): add unused japanese_romaji (Eggflaw) (#5290)
* Add japanese_romaji to _groups file

* Add japanese_romaji to _list file

* japanese_romaji.json: remove duplicates
2024-04-08 15:03:06 +02:00
Miodec e5797d7048 fix(quotes): quote lengths
!nuf
2024-04-08 14:54:24 +02:00
Miodec a6886084a1 fix(quotes): user reports 2024-04-08 14:54:01 +02:00
Miodec 9af105b1e3 impr(word generation): allow tests with plus n funboxes to be repeated
also simplifies the test repeat system a little bit

closes #5282
2024-04-08 14:14:12 +02:00
Miodec 163a0302e4 fix(ape): escaping parameters if they are part of the url
closes #5287
!nuf
2024-04-08 12:52:04 +02:00
Francis A 51aa1f1d0b
impr(language): update Traditional Chinese word list (rudnam) (#5284) 2024-04-08 12:22:29 +02:00
JornTumrongwit 357e67e2f3
impr(quotes): add English quotes (JornTumrongwit) (#5283) 2024-04-08 12:21:22 +02:00
Ohad Ben Dov 17476c871c
impr(quotes): add Hebrew quotes (#5262)
* Update hebrew.json

* Update hebrew.json

* Update hebrew.json

replaced a few of the quotes.

id: 31
"They opened a hand grenade in their hearts: click! Ashkenazic? Iraqi? Brother! Jews! Warriors!" - famous quote that sounds better in Hebrew.

id: 32
"We have learned from history that wherever there is a train there is life" 

id: 36
"Officials in the police and the prosecutor's office teamed up with the left-wing newspapers, I call them 'only not Bibi', in order to sew up illusory cases for me. The goal is to topple a strong right-wing prime minister and thus distance the national camp from the country's leadership" 

translation to the other quotes is in the description of the first commit message

* Update hebrew.json

fixed an error

* Update hebrew.json

updated some of the quotes.
here is the translation:

id: 31
"They opened a hand grenade in their hearts: click! Ashkenazic? Iraqi? Jews! Siblings! Warriors!"
-Menachem Begin



id: 32
"Words can lead to actions, but what can lead to actions is reality. Reality, not words!"
-Miri Regev

id: 33
"Honesty is strength, values are strength, cunning and corruption bring us down, generosity and love are the strongest forces in the world."
-Yair Lapid

id: 34
"The Jewish people did not excel at seeing dangers in time, time after time they surprised us - the last time in the most terrible way, and this will not happen under my leadership."
-Benjamin Netanyahu


id: 35
"Violence is eroding the foundation of Israeli democracy. She must be condemned, denounced, isolated. This is not the way of the State of Israel."
-Yitzhak Rabin

id: 36
"Factors in the police and the prosecutor's office teamed up with the left-wing newspapers, I call them 'just not Bibi', in order to sew up illusory cases for me. The goal is to topple a strong right-wing prime minister and thus distance the national camp from the country's leadership."
-Benjamin Netanyahu
2024-04-08 12:19:00 +02:00
Jack ff7816aac0
refactor: custom text modal rework (#5278)
* start work on saved texts popup

* passing options through, async fill to not block animation

* handle apply

* custom text modal start

* full save custom text modal refactor

* remove import

* full finish on saved texts modal

* fill when chain re-shows it

* fix issues where opening chains within chains would show two modals

* extract type

* add support for passing data between modals

* dont leave the popup if no words were found

* use modalchaindata instead of setting popup state directly

* handling set and append modes in chain data

* move tab insertion code into the custom text modal file

* use chain data instead of state module

* move event handlers to a different file / to the setup function

* move file

* rename file

* rename id

* remove unused line

* add generics to incoming and outgoing modal chain data

* rework the way custom text textarea is handled

* update long custom text warning

* remove variable

* remember to update the state
2024-04-05 13:18:26 +02:00
Christian Fehmer 3cbf0bda4c
feat: add incognito theme (fehmer) (#5272)
* feat: add incognito theme

* fix p and t being cut at the bottom
2024-04-05 13:09:51 +02:00
Vaughn Gugger e37bf192e3
impr(profile): add level percentage when hovering over progress bar (vjgtigers) (#5276) 2024-04-05 12:24:36 +02:00
Nad Alaba 2dbd7afa10
fix(indicate typos): undefined hints in stop on letter (#5281) 2024-04-05 12:19:04 +02:00
Aarnav Suwal 55d6da2971
impr(quotes): add 3 English quotes (aarnav593) (#5266)
* Added 2 short and 1 medium quote from different sources

* Delete .gitpod.yml

* Changed one quote, added one more, and changed the source ofn existing  a quo (5355)te to app more ild-friendly

* Corrected length of quote

* removed quote

* readded book title to quote source
2024-04-03 22:41:31 +02:00
Gauthier Fiorentino 4344194a23
fix(quotes): typo (Mintoo200) (#5279) 2024-04-03 22:27:23 +02:00
Miodec 5701f94b60 refactor: move array related function to the arrays file 2024-04-03 22:22:00 +02:00
Sanidhya Singh 39e611d276
refactor(utils): distribute color, numbers, strings and other group of functions into separate util files from misc.ts (sanidhyas3s) (#5254)
* fix: Prevent theme switch when opening theme commandline from the footer

fixes #5103

* refactor(utils/misc): move functions and adjust usages
also renamed some functions for clarity
for #5187

* refactor(utils/misc): move color utils into separate file & add docstring
for #5187

* refactor(utils/misc): separte out number-related utils and more
add docstring to the functions in `utils/numbers`
also, move `getDiscordAvatarUrl` back into misc
because it was causing mt to not open somehow
for #5187

* refactor(utils/misc): move get-text functions into separate file & add docstring for them
    for #5187

* refactor(utils/misc): move get-data type functions into separate file & add docstrings
    for #5187

* Fix cyclic dependency by moving function

* Move strings utils to separate file and other minor changes to utils

* Shift Date & Time util functions to a separate file and add docstrings

* Shift more string functions to string util file

* separate out Arrays functions from misc utils

* Rename some utility files and move some functions

* lowercase filename

* rename module imports

* move ddr stuff into its own file

* temp file rename

* file rename

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-04-03 22:12:48 +02:00
Miodec 8755f450c5 fix(word generation): A A or A B A word duplicates could sometimes appear when using lazy mode
closes #5238
2024-04-03 13:35:52 +02:00
Miodec 72fd518587 impr(word generation): use full width punctuation marks when typing in chinese
closes #5277
2024-04-03 13:04:29 +02:00
Miodec 82b74574c9 style: make version history modal wider 2024-04-03 00:31:13 +02:00
Miodec 254e016d38 chore: remove unused code 2024-04-02 18:39:25 +02:00
Miodec 0ce2f6afcf fix(settings): hide revoke all tokens section when signed out 2024-04-02 18:39:04 +02:00
Miodec 82b9323fbf refactor: rename simple popup to simple modal 2024-04-02 18:38:27 +02:00
Christian Fehmer 7635d37848
feat(authentication): add signin with github (fehmer) (#5239) 2024-04-02 18:33:20 +02:00
Vaughn Gugger a6ccb2cead
impr: changed fps text color from hardcoded values to match user theme (vjgtigers) (#5271) 2024-04-02 15:07:03 +02:00
Christian Fehmer 1890dbdff8
fix(account page): use same rounding for top percentage as on leaderboard (fehmer) (#5270) 2024-04-02 15:05:24 +02:00
github-actions[bot] 0df1ed163d
refactor: run prettier (#5265)
Co-authored-by: monkeytypegeorge <monkeytypegeorge@gmail.com>
2024-04-02 15:01:25 +02:00
Sanchir Enkhbold 673b5b83a3
impr(quotes): add Mongolian quotes (sanchir2011) (#5258) 2024-04-02 15:00:55 +02:00
Christian Fehmer f7c37b0a1d
refactor: rewrite page constructor to use an object (fehmer) (#5253)
* refactor: rewrite page constructor to use an object

* rename pathname to path

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-04-02 14:59:43 +02:00
Nad Alaba 17295d7b43
fix(notifications): clear all notifications from the command line not hiding clear all button (NadAlaba) (#5257) 2024-04-02 11:55:54 +02:00
Miodec e497a192f9 chore: remove plushie banner 2024-03-31 13:19:46 +02:00
Nad Alaba c20964d185
fix(indicate typos): letters not displaying correctly in RTL languages or with ligatures when set to below (NadAlaba) (#5113) 2024-03-25 17:14:53 +01:00
Sanidhya Singh b0cf7bc4be
fix(custom text): preserve state of the textarea when applying (sanidhyas3s) (#5186) 2024-03-25 16:59:40 +01:00
refact0r 7c4435e14b
impr(theme): update catppuccin (refact0r) (#5247) 2024-03-25 12:53:27 +01:00
Vaughn Gugger a0403f79a5
impr(csv export): change main delimiter from | to , (vjgtigers) (#5249) 2024-03-25 12:44:57 +01:00
Gauthier Fiorentino 365572f652
impr(quotes): add French quotes (Mintoo200) (#5206) 2024-03-25 12:40:11 +01:00
Christian Fehmer a306ab4f32
impr(profile/account page): show leaderboard rank percentage (fehmer) (#5212) 2024-03-25 12:36:25 +01:00
anakojm 0baabb150c
impr(layout): update optimot to version 1.6 (anakojm) (#5236) 2024-03-25 12:06:49 +01:00
__filename 8083390c23
feat(quotes): add Mongolian quotes (filename24) (#5200) 2024-03-25 12:05:11 +01:00
Andrey Kuznetsov 8d77c88dc4
fix(language): russian_10k.json now contains 10000 words (#5232) 2024-03-25 11:59:29 +01:00
Johan de Jongh d1241d0a63
feat(language): add Xhosa (de-longhi) (#5231) 2024-03-25 11:58:18 +01:00
Miodec 7915df57a8 chore(animated modal): add method to get previous modal in chain 2024-03-24 23:02:05 +01:00
Miodec 6f75abef70 refactor(ape keys modal): use new modal system 2024-03-24 23:01:33 +01:00
Miodec a8a78eca6a refactor(animated modal): make setup async
!nuf
2024-03-24 19:07:33 +01:00
Miodec 5a6d2eca47 refactor: prefer for of instead of forEach 2024-03-24 19:07:33 +01:00
Miodec 47f3163267 fix(commandline): opening the commandline from the footer not showing custom themes 2024-03-24 19:07:33 +01:00
Miodec 6357489b1d fix(commandline): pressing esc always closing modal instead of going back in history 2024-03-24 19:07:33 +01:00
Miodec 7b86d5c606 fix(import export modal): import not working
!nuf
2024-03-24 19:07:33 +01:00
Miodec 6167506b89 refactor(word filter modal): use new modal system 2024-03-24 16:45:53 +01:00
Miodec 1bd6bf46f2 chore: wording 2024-03-23 11:14:30 +01:00
Estifanos Gashawtena abbed321c4
impr(login page): better error message (Estifanos12) (#5244)
* fix:create user email already exists message

* Update account-controller.ts

* Update account-controller.ts

* Update account-controller.ts

* Update account-controller.ts

* Update account-controller.ts

* Update account-controller.ts
2024-03-23 11:07:15 +01:00
Miodec e52cdef46c chore: plushie banner 2 2024-03-23 11:06:12 +01:00
Christian Fehmer fc3ac84147
fix: show command key tip correctly (fehmer) (#5234)
* fix: show command key tip correctly

* add spaces

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-03-23 10:19:20 +01:00
Christian Fehmer f3c6254933
fix: login disabled after logout (fehmer) (#5243) 2024-03-23 10:10:46 +01:00
Miodec 7f427a9643 refactor(simple modals): use new modal system 2024-03-22 20:53:22 +01:00
Miodec 234642a64d refactor: use a single object instead of multiple parameters
regex goes BRRRR
2024-03-22 20:50:18 +01:00
Miodec c905fcbed4 impr: focus first non hidden input instead of just the first one 2024-03-22 20:33:49 +01:00
Miodec c0500ce9c6 fix(commandline): languages sometimes didnt load in time, showing an error 2024-03-20 23:11:09 +01:00
Miodec e551e043af impr: automatically refocus the test when closing the command line on the test page 2024-03-20 20:56:50 +01:00
Miodec 57d9fc3b04 chore: focus words earlier to avoid flashing issues 2024-03-20 20:37:29 +01:00
Miodec 0b0fff939a refactor: dont hide out of focus warning if words are not focused 2024-03-20 20:29:43 +01:00
Miodec b7b2c1f406 refactor: use actual module instead of modifying the dom 2024-03-20 20:27:44 +01:00
Miodec 5a354ef25d refactor(quote search modal): use new modal system 2024-03-20 16:08:31 +01:00
Miodec e38f64e019 chore: use after animation to avoid animation issues 2024-03-20 15:45:36 +01:00
Miodec 33229ce057 chore: dont await function to fix animation issues 2024-03-20 15:38:21 +01:00
Miodec c6a47e8ef8 chore: clearing modal chain 2024-03-20 15:38:01 +01:00
Miodec c2b7204600 refactor(quote report modal): use new modal system 2024-03-19 16:09:23 +01:00
Miodec 28a4eac40e refactor(quote rate modal): use new modal system 2024-03-19 15:50:50 +01:00
Miodec 1a64a724c6 style: increase spacing a bit 2024-03-19 14:54:04 +01:00
Miodec 5f48827fb3 fix: incorrect param type 2024-03-19 14:49:15 +01:00
Miodec 2f0bc5af84 fix: make parameter optional 2024-03-19 14:35:38 +01:00
Miodec e999fa2a87 impr(language): remove vulgar words 2024-03-19 13:21:27 +01:00
Miodec cc5406d88c style: lowercase footer buttons for more visual consistency 2024-03-18 13:10:14 +01:00
Miodec 33c8976176 style: update modal styling
also removed some redundant styles
2024-03-18 13:08:44 +01:00
Miodec 3077daa71f refactor(quote approve modal): use new modal system 2024-03-18 12:59:53 +01:00
Miodec 429c580a74 impr(quote search modal): update placeholder text to indicate that you can search by quote id 2024-03-18 12:05:01 +01:00
Miodec b339cd082c fix(custom word amount): not being able to start an infinite word test 2024-03-18 00:02:10 +01:00
Miodec 9ca32d3b6a refactor(quote submit modal): use new modal system 2024-03-18 00:01:06 +01:00
Miodec 5e69c5df6b chore: remove logs 2024-03-17 20:47:54 +01:00
Miodec d454783d11 refactor(google sign up modal): use new modal system 2024-03-17 20:47:21 +01:00
Miodec 9e064fd57c refactor(new filter preset modal): use new modal system 2024-03-17 02:10:30 +01:00
Miodec 1ceaa66287 refactor(custom test duration modal): use new modal system 2024-03-16 19:08:20 +01:00
Miodec 7faefcdd76 refactor(mobile test config modal): use new modal system 2024-03-16 18:44:18 +01:00
Miodec 5fb042c076 impr(custom word amount modal): add clear chain support and showoptions 2024-03-16 18:33:13 +01:00
Miodec 987ac16bc8 style: update out of focus warning 2024-03-16 17:28:53 +01:00
Miodec 5990f264fb style(modal): overflow auto 2024-03-16 17:00:06 +01:00
Miodec e29d280ea5 refactor(edit result tags): complete rework
use new modal system
extract code not relating the modal to other modules
use state instead of checking dom elements/classes/attributes
2024-03-16 16:42:48 +01:00
Miodec db560d252c impr: dont block keyboard shortcuts (like cmd + r) when out of focus warning is shown 2024-03-15 17:35:23 +01:00
Miodec a8f6caebc9 refactor(commandline): change exec options to a single object
add commandlineModal parameter to open other modals in a chain
add command.opensModal to avoid double hiding commandline
2024-03-15 17:30:22 +01:00
Miodec e933bbff73 impr(edit tag): add ability to show as modal chain 2024-03-15 17:26:35 +01:00
Miodec 474c6aa52e impr(animated modal): custom show options when modal is shown in a chain 2024-03-15 17:24:15 +01:00
Miodec 44e3d1b5ad fix(commandline): previous commands being visible for a split second when opening 2024-03-15 15:29:01 +01:00
Miodec 4220c54de2 refactor(edit tag): use new modal system 2024-03-15 15:11:34 +01:00
Miodec f47340b301 refactor(animated modal): focus input if it exists and its not hidden 2024-03-15 15:10:25 +01:00
Miodec 54237d369e refactor: add title style to all modals 2024-03-15 13:49:39 +01:00
Miodec 021577c9e4 refactor(edit presets): use new modal system 2024-03-15 13:40:18 +01:00
Miodec 1640670bad style: disable pointer events on icons 2024-03-15 13:39:36 +01:00
Miodec 05de8a5de5 fix(commandline): double scrollbar 2024-03-15 13:39:19 +01:00
Miodec 00b5be2a38 refactor(edit profile): use new modal system 2024-03-15 12:58:53 +01:00
Miodec 7ee4340383 style: make profile buttons transparent to avoid focus border clipping 2024-03-15 12:26:09 +01:00
Miodec c124f9bd67 style: add overflow-y on all modals 2024-03-15 11:11:48 +01:00
Miodec ecfbe3a290 refactor(test): extract selected quote id to the test state module 2024-03-15 10:59:09 +01:00
Miodec b4259b7b4d impr: user data download times
get user data no longer needs to be called by itself
it can again be called in parallel with config and preset
2024-03-15 10:41:22 +01:00
Christian Fehmer ed9fff5d41
fix: enter quick restart not working on test page (#5227) 2024-03-15 10:41:16 +01:00
Miodec da7e59a28a fix: website sometimes showing signup/login is disabled even though its not
it was happening if the website loaded faster than the /configuration api call
2024-03-14 22:38:05 +01:00
Miodec 3a012bd3b9 fix: sign up captcha challenge appearing under the modal, making it impossible to sign up 2024-03-14 20:37:45 +01:00
Miodec c3671fbc75 refactor(animated modal): change constructor parameter to a single object 2024-03-14 17:17:29 +01:00
Miodec df8b1031ed style(alerts): make the container a bit wider 2024-03-14 17:16:32 +01:00
Miodec b6b22b3cf5 impr(animated modal): add option to automatically focus and select on show 2024-03-14 17:02:28 +01:00
Miodec 9c73697b37 impr(modals): add chaining support 2024-03-14 16:47:08 +01:00
Miodec 2a4e0b1fea refactor(user report modal): use new modal system 2024-03-14 12:21:22 +01:00
Miodec 176e344b09 fix(language): remove misspelled word in english 450k 2024-03-13 22:09:31 +01:00
Miodec f8ce7cfbe9 refactor(pb modal): use new modal system 2024-03-13 17:23:40 +01:00
Miodec 60f6e4d77b refactor(streak hour offset): user new modal system 2024-03-13 17:08:25 +01:00
Miodec 22ccebc5e9 fix(quick restart): always navigating to test page when pressing enter 2024-03-13 15:43:54 +01:00
Miodec 14280df96f refactor(animated modal): add 'focusFirstInput' param to show function 2024-03-13 15:39:47 +01:00
Miodec 1efbc5a24e refactor(custom word amount modal): use new modal system 2024-03-13 15:39:47 +01:00
Christian Fehmer 902b32a0b4
fix: fix handling of undefined key in event handler (fehmer) (#5223) 2024-03-13 14:58:28 +01:00
Miodec d249633910 fix: mobile commandline button not working 2024-03-13 13:35:22 +01:00
Miodec 32968d60e1 fix: version history being too wide on narrow screens 2024-03-13 13:32:20 +01:00
Miodec 3aeba3098c fix(commandline): presets and tags not showing up in single list mode
fixed by calling beforelist when generating the single list
this also means the list needs to be generated every time the commandline is opened
because of that, list caching has been moved to the commandline module
2024-03-13 12:42:12 +01:00
Miodec c1b71fb9ea impr(commandline): show active tags with a check icon 2024-03-13 12:08:19 +01:00
Jeanot Zubler 0f6861d493
impr: replace ß in all variations of swiss german (Jeanot-Zubler) (#5224) 2024-03-13 00:31:08 +01:00
Miodec 04e277438c chore: fix newverisonindicator opening version history modal 2024-03-13 00:29:53 +01:00
Miodec c1c0f45708 refactor(version history modal): use new modal system 2024-03-13 00:27:51 +01:00
Miodec a172225510 refactor(cookie modal): rename file, move file, use setup function, style update 2024-03-13 00:16:48 +01:00
Miodec cadf6502ef chore: remove unused import 2024-03-13 00:15:50 +01:00
Miodec bbb2644d87 chore: unnecessary code
words will get focused when restarting the test
2024-03-13 00:01:38 +01:00
Miodec b2d10e0dc5 refactor(import export modal): use setup function, move file, style 2024-03-12 23:46:40 +01:00
Miodec 09e9556ae6 refactor(register captcha): use new modal system 2024-03-12 23:39:43 +01:00
Christian Fehmer 7d3c4be04d
impr(language): update estonian word sets (Ksaspar, fehmer) (#5222) 2024-03-12 23:11:34 +01:00
Miodec 9390206082 refactor(animated modal): add animation duration property 2024-03-12 16:48:21 +01:00
Miodec 5400d06887 chore: remove throw 2024-03-12 16:45:01 +01:00
Miodec 0a401917b3 refactor(share custom url modal): use new modal system 2024-03-12 16:41:24 +01:00
Miodec 3e8fbb7d4b refactor: use try/catch 2024-03-12 15:37:33 +01:00
Miodec 3f2cfca361 chore: stop show if already open 2024-03-12 15:34:51 +01:00
Miodec e1878b91d2 chore: remove unnecessary event handler 2024-03-12 15:28:15 +01:00
kelvine c906641d36
docs: corrected grammar in about.html (#5194)
* corrected grammar in about.html

I made grammar corrections as what was there wasn't sounding right

* Update about.html
2024-03-12 14:35:55 +01:00
MordecaiO 33b08517f4
impr(quotes): add english quote (MordecaiO) (#5215)
* impr(quotes): add one english quote

* chore: correct char length

* double quotes, remove first quotes, capitalisation

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-03-12 12:11:59 +01:00
Christian Fehmer 9432602727
impr: add selfhosting using docker only (fehmer) (#5170)
* impr: add selfhosting using docker only

* add recaptcha config and docs

* add documentation on the backend-configuration.json file, remove ---redacted--- from example config

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-03-12 12:02:13 +01:00
Christian Fehmer b31dba6b7a
feat(language): add klingon (fehmer) (#5201)
* lang: add klingon

* cleanup
2024-03-12 11:58:41 +01:00
Miodec f91d6d7e6b chore: quote lengths script 2024-03-11 22:32:40 +01:00
Miodec 9a4a3eab23 fix(quote): user reports 2024-03-11 22:31:25 +01:00
Mikhail Ivanov 720d0f4468
fix(language): remove capital letters in russian_10k.json (zaqzxcswsde) (#5202)
While it's correct for the words "Москва" and "Россия" to be capitalized, they seem out of place being that way among ~10k lowercase words.
2024-03-11 20:54:45 +01:00
Exploration ab5c130b59
impr(quotes): add English quotes (TheExploration) (#5190)
* impr(quotes): add English quotes

* fix
2024-03-11 20:44:54 +01:00
Christian Fehmer f63f3184a7
feat: add ook coding language (fehmer) (#5203) 2024-03-11 20:34:45 +01:00
github-actions[bot] d224a80658
refactor: run prettier (#5205)
Co-authored-by: monkeytypegeorge <monkeytypegeorge@gmail.com>
2024-03-11 20:33:28 +01:00
Christian Fehmer 8eb3206c8a
refactor: get actual rank with the user data instead of using lbmemory (fehmer) (#5189)
Co-authored-by: Jack <jack@monkeytype.com>
2024-03-11 20:29:18 +01:00
Sanidhya Singh 9aeaa31d2c
impr: replace JSONSchema with ajv for faster validation (sanidhyas3s) (#5145)
* impr: replace JSONSchema with ajv for faster validation

* Remove JSONSchema from packages

* Add ajv in dev-dependencies

* move dep to frontend

* Fix validation schema for different languages and error messages

* fix double space

* different way of showing errors

* por que no los dos

* return on failed schema

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-03-11 20:00:10 +01:00
Miodec fcbc00b671 refactor(share custom theme): use new modal system 2024-03-09 00:20:13 +01:00
Miodec bc6cf223cf refactor(contact popup): use new modal system 2024-03-09 00:20:13 +01:00
Miodec 2285c05f62 chore: add missing import 2024-03-09 00:20:13 +01:00
Miodec 7bdcbbfc8a refactor: move modal inside modalwrapper 2024-03-09 00:20:13 +01:00
Miodec 4b3c9f2308 fix(about page): ad wrappers always visible even if ads are disabled 2024-03-09 00:20:13 +01:00
Christian Fehmer c4446e9fb0
fix: prevent print dialog to open with ctrl-shift-p (#5199) 2024-03-08 11:14:48 +01:00
Miodec 8ca760dfd2 fix(caching): no longer caching external resources locally
closes #5196
2024-03-07 22:08:29 +01:00
Miodec 4eed9074ff refactor: remove unnecessary file 2024-03-07 21:44:55 +01:00
Miodec 491337217b refactor: move converted modals to a new folder, rename supportpopup to supportmodal 2024-03-07 21:41:18 +01:00
Miodec 9f5be14a13 refactor: move animated modal to utils folder 2024-03-07 21:35:45 +01:00
Miodec f46813c958 refactor: remove unnecessary import 2024-03-07 21:31:59 +01:00
Miodec b30c2b54a2 style: lower padding on smaller screens 2024-03-07 21:30:54 +01:00
Miodec a808577940 refactor: prefer modalWrapper instead of backdrop 2024-03-07 21:28:31 +01:00
Miodec 60f3958cdf refactor(support popup): use new modal system 2024-03-07 21:24:37 +01:00
Miodec b8b844bb16 refactor: remove unused code 2024-03-07 21:22:41 +01:00
Miodec 40aa1e61f8 impr: add option to pass modal show settings through the show commandline function 2024-03-07 21:15:18 +01:00
Miodec 41cb95b43e refactor: move events to the top 2024-03-06 00:01:31 +01:00
Jack 3c4212b718
refactor: commandline (#5180)
* initial rewrite

* remove title

* remove from dom on hide

* actual command dom
show active
keep active in view
update active index on keypress

* global event only shows commandline

* impr(dev): showing notifications with unhandled errors

* rename functions

* handle hover functions
handle nesting
handle exec
attaching handlers once

* void promise

* no need for async

* move font preview to ui

* add configkey to command

* add function to build single list

* add mouse mode
clearing preview on hide
add config icon

* using new function

* use fw icon

* fix incorrect type

* extract logic

* add support for input commands

* unused error

* update single list

* chevron icon margin

* only focusing when no popups and words are visible

* extract condition

* better type

* remove no icon

* only showing when nothing is already visible

* commandline lists no longer modify the commandline element
dynamically changing which funbox commnands are available
modified searching approach
showing active settings in single mode again
calling before list if needed

* ignore keydown on page transition

* add other ways to show the commandline

* always clearing previews

* incorrect icon being used

* extract logic

* support quick single list mode by starting input with >

* fix test words not being focused

* showing all if in quick single mode

* remove unused code

* rename entry to command

* remove more unused code

* add data- prefix

* rename to data-command-id

* fix input commands not refocusing words

* fix fontsize change not working as intended

* set active index to 0 when going back

* keeping active command in view

* remove console logs

* fix quick single mode

* move file

* add footer events

* add option for subgroup override
fix issue where commands would get hidden after clearing input field
fixed auto scrolling in mouse mode

* rename commands to lists

* add background after to avoid flashing

* getting config key from active subgroup

* updating active command after removing hidden class but before animating

* fix nasty hover behavior

* updating active before animation showing, keeping active after

* add keymap event

* remove comments

* invert if, use return, combine ifs to reduce nesting

* add test event

* popups events

* fix some commands not showing up on a single list

* use new animated modal

* use regex escaping function from misc

* add singlelistdisplay and singlelistdisplaynoicon properties

* add more navigation aliases

* not adding alias if not needed

* rework command filtering

* fix active icon not working

* add custom hide handlers

* fix active command not being kept in view after showing

* unused imports

* remove commandlinelists imports from other files

* delete old file

* remove unused file

* import commandline dynamically

* fix: if skeleton has wrapper, append before building animated modal

* using new parameters

* save skeleton on ready

* rename folder

* add util to get async modules

* remove empty imports

* remove unnecessary code

* unnecessary void

* catching errors and notifying user

* better error message

* making sure all the lists are fetched before getting the single command list

* add tab navigation
2024-03-05 19:34:35 +01:00
Miodec 226f5de472 fix(quote): missing dash 2024-03-05 18:32:49 +01:00
Christian Fehmer c95e3b2fa8
feat: indicate premium users (fehmer) (#5092)
* feat: indicate premium users

* frontend

* Test multiple userFlags, remove later

* cleanup

* fix flag alignment on profile and leaderboards

* fix name auto scaling

* update screenshot watermark

* update header text

* use userFlags for lbOptOut

* use flex end

* removeo unused code, increase margin

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-03-05 16:09:23 +01:00
Miodec 7e957fb449 chore: fix eslint issue 2024-03-05 11:46:00 +01:00
Sanidhya Singh 2fb77a1693
fix: prevent automatic double newline when quick restart set to enter (sanidhyas3s) (#5184)
Fixes #5175

Co-authored-by: Jack <jack@monkeytype.com>
2024-03-05 11:44:13 +01:00
Miodec cc30f6357e fix(style): inconsistent focus border radius across buttons and links 2024-03-04 19:39:13 +01:00
Christian Fehmer b4af0917b2
chore: improve docker files for local development (#5157) 2024-03-04 16:10:22 +01:00
Dmitry ca0d6b3739
impr(quotes): add 20 belarusian quotes (Dmskrzh) (#5152)
Added 20 quotes

Co-authored-by: Jack <jack@monkeytype.com>
2024-03-04 16:09:52 +01:00
Christian Fehmer f7fe0e3f01
impr: better handling of ghost accounts (fehmer) (#5159)
* impr: better handling of ghost accounts

* move deletion to server

* wording
2024-03-04 14:23:33 +01:00
Christian Fehmer d2d7b3e109
impr: show total completed test percentage and restarts/test on profile (fehmer) (#5169) 2024-03-04 14:18:34 +01:00
Christian Fehmer ca55b28135
impr: hide login/signUp button if user signup is disabled (fehmer) (#5172)
* impr: hide signIn button if user signup is disabled

* move UI modifying code to ready.ts

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-03-04 14:13:39 +01:00
Christian Fehmer ff268ade7d
fix: fix two percentage symbols in leaderboard (fehmer) (#5174)
Co-authored-by: Jack <jack@monkeytype.com>
2024-03-04 14:02:23 +01:00
Christian Fehmer ae21d04021
fix: remove °C from estorian language (fehmer) (#5178)
Co-authored-by: Jack <jack@monkeytype.com>
2024-03-04 14:02:04 +01:00
github-actions[bot] f298213f04
refactor: run prettier (#5168)
Co-authored-by: monkeytypegeorge <monkeytypegeorge@gmail.com>
2024-03-04 13:59:50 +01:00
Miodec 42b6c53b91 refactor: skeleton util
move to util folder
add suport for predefined append targets
require append target to be specified
2024-03-04 13:23:56 +01:00
Miodec 1f52692151 chore: fix browser debugger not working correctly 2024-03-04 00:07:33 +01:00
Miodec f35e8fb8ee refactor: cookie popup
use animated modal class
should fix brave having issues with the cookie popup
2024-03-03 21:47:19 +01:00
Miodec e093b51553 impr(tab navigation): improve tab navigation
allow tab when quick restart is disabled and when its set to enter
allow pressing enter to trigger buttons even when quick restart is set to enter
2024-03-03 20:25:44 +01:00
Miodec b9092bf362 impr(animated modal): add setup function which only runs once
used for setting up event handlers - that way the event handlers can be loaded at any time
also connected constructor functions into an object
2024-03-03 19:32:33 +01:00
penguin-teal 5431ab97af
fix(commandline): select exact command matches (#5164)
Because of the RegEx, typing a command such as the language "code c" selects the item "code python" because the word "code" is being matched twice. This change makes it so that when an exact match of a `display` field is typed, it is selected (when I type "code c" I expect to be able to just hit enter but it selects "code python").

Co-authored-by: Jack <jack@monkeytype.com>
2024-03-01 22:27:44 +01:00
Sanidhya Singh 4c550c7d9d
fix(commandline): prevent theme switch when opening the commanline from the footer (sanidhyas3s) (#5163)
fixes #5103

Co-authored-by: Jack <jack@monkeytype.com>
2024-03-01 22:23:43 +01:00
Miodec 9a0d6bd5a9 chore: update link 2024-03-01 22:07:05 +01:00
Miodec d0fe0f536f fix(alerts): not being able to claim rewards 2024-03-01 18:11:59 +01:00
Miodec 03311d8d6f chore: add plushie banner 2024-03-01 17:39:46 +01:00
Miodec d4ec11f3a4 fix(language): fix typo in code matlab 2024-03-01 12:52:17 +01:00
Miodec 0f880a254c refactor(alerts): use animated modal 2024-03-01 02:13:02 +01:00
Miodec a2bf62edd4 refactor: improve animated modal code
allow global definition of custom show and hide animations
these can still be overridden at each show/hide call
store global default animation duration
2024-03-01 01:42:00 +01:00
Jack 1d7fde25a3
refactor: modal system (#5162)
* add animated modal class

* convert one popup to new system

* also grabbing backdrop classes

* rename

* padd modal as parameter

* rename to wrapper

* unnecessary constant

* rename parameter
remove first hashtag if present

* combine types

* rename popup to modal

* reduce options object nesting
2024-03-01 00:29:08 +01:00
Miodec 9cbca109ea chore: fix eslint errors 2024-02-29 22:48:29 +01:00
Christian Fehmer 91982e285d
chore: fix ESLint complaining about typescript version (#5153)
Co-authored-by: Jack <jack@monkeytype.com>
2024-02-29 22:44:33 +01:00
Miodec e6666c48c3 style: make backdrop element invisible 2024-02-29 15:07:00 +01:00
Miodec 86a94eacd8 chore: release v24.9.0 2024-02-29 14:04:09 +01:00
Owen Jones 6363b94c0a
impr(quotes): add Python quote (OwenJRJones) (#5139)
* Updated code_python.json

* Updated code_python.json
2024-02-29 13:58:39 +01:00
Max Harmony 8effada4d9
chore: expire security.txt 2024-06-03 (#5156)
Co-authored-by: Jack <jack@monkeytype.com>
2024-02-29 13:03:04 +01:00
Miodec c1c6972408 impr(accesibility): use button element instead of class button 2024-02-28 23:30:49 +01:00
Miodec 35b87c467f fix(alerts panel): unwanted horizontal scrolling 2024-02-28 23:15:16 +01:00
Miodec 8e0f124028 impr: use dialog element to take advantage of focus trapping 2024-02-28 23:02:35 +01:00
Miodec a88ba61758 fix: dont modify tab behavior if a modal is visible 2024-02-28 22:45:44 +01:00
Miodec 5147e7507c impr: fully prevent typing when a popup is visible
closes #5148
closes #5142
2024-02-28 20:44:47 +01:00
Paul Ebose a0416d3eba
impr(dev): allow docker compose to start the backend server (plbstl, Miodec) (#4995)
* chore: allow backend docker compose to start the api-server alongside redis & mongodb

* chore: update node versions in docker compose

* chore: add an extra compose file in backend

* docs: update advanced contribution guide with docker compose changes

* add docker script
support server_open env variable

* move files

* npm scripts
rename file

* add docker ignore

* fix redis not working

* rename file

* mounting root instead

* update docs

* update docs table of contents

* restart on fail

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-02-28 14:17:09 +01:00
Christian Fehmer 91494fb9e3
fix: fix tags personal bests handling of missing numbers flag (fehmer) (#5146)
* fix: fix tags personal bests handling of missing numbers flag

* add missing filters for numbers flag
2024-02-27 20:20:30 +01:00
Miodec 4d796efb63 impr: better out of focus message 2024-02-27 01:29:40 +01:00
Miodec 399263eddc fix: removed "title" text from commandline 2024-02-27 01:02:44 +01:00
Miodec d23dad36ea impr(dev): add recaptcha site key to frontend env 2024-02-27 00:49:51 +01:00
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