Commit graph

2066 commits

Author SHA1 Message Date
Miodec
22373a751f fix(wikipedia funbox): word generation returning to random words after the first section 2024-01-11 18:17:06 +01:00
Miodec
b93f14b5cd fix(account page): incorrect streak distance string when using offset
part of #4735
2024-01-11 15:23:38 +01:00
Miodec
2e77cb38ff impr(custom text): disallow saving empty custom texts
closes #4904
2024-01-10 17:37:48 +01:00
Miodec
eba4b92305 fix(custom text): not being able to delete custom text if content is empty
part of #4904
2024-01-10 17:35:39 +01:00
Miodec
84fe80bbc1 fix(layout emulator): emulator returning stringified event codes (like "Escape") 2024-01-10 17:22:35 +01:00
farkon00
0566280bc4
impr(layout emulator): add support for alt layer emulation (farkon00) (#4817)
* impr: add AltGr support to the keyboard emulator

* Added a polish layout

* fix: fix caps lock and punctuation behavior for layout emulator

* Add AltGr version of Ґ to the Ukrainian layout

* Fixed the backquote key not working for the layout emulator

* Renamed polish layout to polish programmers

* Made layout emulator use both alts for modifications on mac
2024-01-10 15:48:16 +01:00
Miodec
7843ce0478 impr(punctuation): add japanese punctuation 2024-01-10 15:37:41 +01:00
Christian Fehmer
730dd20ec6
fix(lazy mode): proper handling of german umlaute in lazy mode (fehmer) (#4864)
* fix: Proper handling of german umlaute in lazy mode

* fix: Proper handling of german umlaute in lazy mode

* use additional accents from language file

* refactoring

* add tests

* update property name

* update validation script

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-01-08 17:01:20 +01:00
Meet Patel
cbed2ef7cf
feat(font): add CommitMono (#4887) m2x07 2024-01-08 15:04:23 +01:00
Jack
09b770dba9
refactor: char counting (#4903) Miodec
* refactor: char counting

* fix: remove unnecessary export

* fix: remove console logs

* refactor: extract to separate functions

* refactor: remove double spread

* always pushing when test is active

* remove unnecessary variable
2024-01-08 14:40:25 +01:00
Miodec
6ee981b2f9 impr: throttle connection state notifications
now the banner/notification will only show once per 10 seconds

closes #4875
2023-12-19 14:23:08 +01:00
Miodec
30f0241df9 fix(layout emulator): first key of layout always not working
closes #4833
2023-12-19 12:42:41 +01:00
Christian Fehmer
e4e7408795
fix: apply lazy mode to funboxes using pullSection (fehmer) (#4869) 2023-12-18 13:28:59 +01:00
Miodec
896680c80b refactor: update wording on the quore report popup
also highlighted one sentence in red
2023-11-30 13:59:28 +00:00
Miodec
bc56cbc9e1 impr: blocking quick restart for long tests on result page
Quick restart is already disabled for long tests during the test.
This also disables it on the result page,
to make sure the user really wants to close
the result after a long time typing.
2023-11-30 13:29:02 +00:00
Christian Fehmer
bd2d360fc2
impr: remove unnecessary rest call to users/tags (fehmer) (#4826) 2023-11-30 13:22:12 +00:00
Miodec
004977a895 style: reduce media query margin 2023-11-28 15:36:26 +00:00
Miodec
afbdc96c7a style: center align tip on the settings page 2023-11-28 15:31:42 +00:00
Miodec
de191141f0 fix(custom text words filter): dropdowns remaining visible after closing popup
closes #4811
2023-11-27 14:41:10 +00:00
Miodec
1d29929438 impr(custom text): not allowing empty custom text 2023-11-27 14:27:30 +00:00
Miodec
779ec58dab refactor: use button elements instead of divs
also use data- prefix for custom attributes
2023-11-27 14:19:21 +00:00
FortPile
4fa6647b9c
fix(funbox): fix Wikipedia funbox sometimes producing double spaces (FortPile) (#4814)
* fix: prepone non-ascii characters removal

* also replacing fancy symbols

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-11-27 13:16:27 +00:00
Miodec
7c8c37a989 style: fix icon spacing 2023-11-22 15:05:46 +00:00
Miodec
ff80d6eea8 refactor: use button and form elements instead of classes 2023-11-22 15:02:23 +00:00
Miodec
f2ef439dfd style: increase margin 2023-11-22 15:01:55 +00:00
Miodec
f4e5574c91 fix: button not styled correctly 2023-11-22 14:58:56 +00:00
Miodec
f5576adc9a refactor: use button element instead of class 2023-11-22 14:51:12 +00:00
Miodec
5ea9c712c5 fix: unnecessary media query 2023-11-22 14:46:18 +00:00
Miodec
978d066fd9 refactor: use button instead of div 2023-11-21 14:36:32 +00:00
Miodec
b7f8c946df refactor: use button instead of div 2023-11-21 14:22:56 +00:00
Miodec
a195b959d2 refactor: use button instead of anchor
also disabling button while waiting for response
2023-11-21 14:19:58 +00:00
Miodec
1ab6c82c0c style: lower roundness of focus border on links 2023-11-21 14:14:22 +00:00
Miodec
610ed5a9d2 style: thicken up the result chart lines a little bit 2023-11-21 14:06:22 +00:00
Miodec
9779c70acd style: use theme color for chart gridlines
this makes sure that they are always visible
2023-11-21 14:05:55 +00:00
Christian Fehmer
1d4d7dab87
feat: Allow more results for premium users (fehmer, Miodec) (#4778)
* feat: Unlimited history for premium users UI

* disable button while loading, show spinner

* optional chaining

* add isPremium to /users, remove check from frontend

* add /results max batch size to configuration

* result batching ui v1

* rename variables, update button based on state, update text

* Return allowed results in /results if limit is partly overshooting the max limit

* use br instead of margin

* let result batches code handle button disabling

* hide title

* limit max width

* hide section when below batch size

* update limit color based on the % of limit used

* bring back loaded bar

* remove unused css

* fix alignemtn

* remove text for now

* add result getting log

* always hiding for non premium users for now

* Add server configuration users.premium.enabled, throw error on /results if premium user exceeds regular limit and premium is globally disabled

* Disable premium feature globally by default

* cleanup open todos

* Don't use premium user max limit on /results if premium feature is disabled on server

* fix merge issue

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-11-20 16:17:20 +00:00
Leo Wang
2f4eb103da
impr: add backtick in javascript language when punctuation is enabled (ascodeasice) (#4801)
* refactor: logic for adding bracket in code language

* feat: add tick-wrapped words in javascript

* feat: add tick to javascript with punc
2023-11-20 15:03:04 +00:00
Christian Fehmer
4b3059bdc7
refactor: Import shared types back into MonkeyTypes namespace (fehmer) (#4800)
* impr: Import shared types back into MonkeyTypes namespace, partially reverts #4769

* down to 6 errors

* fixes

* cleanup
2023-11-20 14:56:28 +00:00
Miodec
cb6d61e1ca fix: use hebrew quotes
also making sure that these are interchangable with other quote characters
2023-11-17 16:16:32 +00:00
Miodec
41aa5c61e2 refactor: fix accessibility of edit profile button
done by converting the popup to a form
converting class button to a button type submit
listening to form submit
2023-11-17 15:35:44 +00:00
Miodec
9380542e96 refactor: add text button class for consistency 2023-11-17 15:12:19 +00:00
Miodec
abe8383591 refactor: use a button element instead of a class 2023-11-17 15:11:59 +00:00
Miodec
a4efbdd714 refactor: use button element instead of a class 2023-11-17 14:59:35 +00:00
Miodec
b2377bc4d4 style: make sure checkbox cant shrink 2023-11-17 14:53:32 +00:00
Miodec
d879b3af36 fix(update custom theme popup): broken checkbox 2023-11-17 14:52:12 +00:00
toma-demagn
fbe835b0a7
impr(pace caret): only update pace caret on repeated tests if wpm was higher (toma-demagn) (#4798)
* Update pace-caret.ts

Changed the logic for lastTestWpm when repeating a test

* Update pace-caret.ts

Prettier reformat of file
2023-11-17 13:18:50 +00:00
Miodec
52cf5b0c88 fix(typing): allow ellipsis character if it currently needs to be typed
closes #4792
2023-11-16 13:53:47 +00:00
kjvlbu
7b6ed78481
feat(language): added Old English (kjvlbu) (#4780)
* modified:   frontend/static/languages/_groups.json
	modified:   frontend/static/languages/_list.json
	new file:   frontend/static/languages/english_old.json

* added missing lazy mode character
enabled lazy mode
prettier

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-11-13 12:53:59 +00:00
Miodec
9d8d8dc544 fix(custom words filter): add button overriding custom text state
also added a notification when no words were found when filtering

closes #4785
2023-11-13 12:32:53 +00:00
Sameer M
2ba23567fb
feat(language): add Romanized Sanskrit (SameeraMurthy) (#4777)
* Added romanized sanskrit

* Update sanskrit_roman.json

* add lazy mode support

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-11-13 12:18:08 +00:00
Bruce Berrios
e84f9ec5b7
refactor: add shared types (Bruception) (#4769)
* sharing is caring?

* replace 5 year old package with a more modern one

* ignore firebase config

* update import/resolver settings so that we no longer have to ignore @backend imports

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-11-09 14:03:56 +00:00