Commit graph

264 commits

Author SHA1 Message Date
Miodec
7ce8c16274 chore: hide video ad buttons for now
video ads have not been updated to work with the new ad provider

closes #4727
2023-10-20 12:43:24 +01:00
Miodec
fa5029f905 chore: lowercase buttons and headings for consistency
Also use buttons instead of divs for accessibility
2023-10-19 20:50:17 +01:00
Miodec
894ff4bf7d impr(settings): optimise preset section for keyboard navigation 2023-10-18 18:52:28 +01:00
Miodec
8b9ff44aae impr(settings): optimised tags section for keyboard navigation 2023-10-18 15:09:39 +01:00
Aaron
3a4d8effdb
fix(server): rework 'revoke all tokens' flow (hattorius) (#4717)
* Remove tokens from cache

* Async method not necessary

* Whoops

* Better naming

* smol name change

* uncomment settings section

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-10-16 16:57:14 +01:00
Miodec
d8a4dbac94 impr: renamed timer/progress to live progress 2023-10-16 15:11:29 +01:00
Miodec
64904f0c3a chore: hide section which is not working at the moment 2023-10-03 12:58:56 +01:00
W0LFB0MB
fa01558876
impr(sound): add support for various error sounds (W0LFB0MB) (#4679)
* Add files via upload

* Delete frontend/static/sound/error/triangle.wav

* Delete frontend/static/sound/error/damage.wav

* modified error sound code to support multiple sound options and added two error sound alternatives

* added compatability for previous users of the error sound, converts legacy true/false config values to 1 or off

* fixed opiton names and values in commandline

* fix: auto switch theme behavior & footer theme indicator (#4677)

* fix: auto switch theme behavior & footer indicator

Changing manually to a preset or custom theme now
turns auto switch theme mode off with a notification.
And now the auto switch mode does override the custom
theme as well (statement in settings also updated) if it
is the later one set.
Fixes #4659, that is the footer theme is now correctly
displayed with auto switch themes as well.

* removed unnecessary function

---------

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

* fixed off config value

* moved compatibilty code to replaceLegacyValues

---------

Co-authored-by: Sanidhya Singh <sanidhyas3s@gmail.com>
Co-authored-by: Miodec <jack@monkeytype.com>
2023-10-02 16:09:30 +01:00
Sanidhya Singh
5844f1da5a fix: auto switch theme behavior & footer theme indicator (sanidhyas3s, miodec) (#4677)
* fix: auto switch theme behavior & footer indicator

Changing manually to a preset or custom theme now
turns auto switch theme mode off with a notification.
And now the auto switch mode does override the custom
theme as well (statement in settings also updated) if it
is the later one set.
Fixes #4659, that is the footer theme is now correctly
displayed with auto switch themes as well.

* removed unnecessary function

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-10-02 13:48:26 +01:00
Miodec
59be910857 refactor: swap button placement 2023-10-02 12:02:12 +01:00
Miodec
e0bb96e008 refactor: test config
- added function which instantly loads current state and updates dom (used when showing test page)
 - focus is applied through main instead of by directly adding and removing a class
 - reworked performance by storing dom elements
 - improved animation smoothness by grabbing actual width of punc and num
 - removed unused code
 - not updating when not on the test page
2023-09-27 23:00:17 +01:00
Miodec
4a1a7ea456 style: remove icon margins causing height change 2023-09-27 12:34:02 +01:00
Miodec
7440f70b04 style: move result ad below the "sign in to save result" message 2023-09-26 16:36:39 +01:00
Miodec
2a006ddf5f refactor: use button instead of div for settings group titles 2023-09-26 16:28:05 +01:00
Miodec
102d97c416 fix(settings page): account section link remained visible even when not signed in 2023-09-26 16:03:18 +01:00
Miodec
c39fdb0263 fix: tab navigation not working on the result page in safari 2023-09-25 16:32:21 +01:00
Miodec
0aab73ad67 refactor: change icon buttons to text buttons for consistency 2023-09-25 12:57:50 +01:00
Miodec
ef4964ca1a chore: more consistent casing 2023-09-25 12:54:45 +01:00
Shuja-Mahmood
aee1cc1581
impr(custom text): add checkbox to toggle control character replacing (Shuja-Mahmood) (#4648) 2023-09-25 12:51:29 +01:00
Miodec
413c6d72d6 refactor: redo the way focus is handled for popup 2023-09-25 11:50:24 +01:00
Christian Fehmer
5439d3966f
impr: increase favicon quality by using svg (fehmer) (#4652) 2023-09-25 11:41:04 +01:00
Miodec
c76b2f40e8 refactor: use id instead of class 2023-09-23 12:17:49 +01:00
Miodec
54457006ec refactor: use button instead of div
Reduce css.
Remove keypress event listeners.
Remove tabindex overrides.
Moved sign in tip below the buttons so that tab navigation makes sense.
2023-09-20 18:38:58 +01:00
Miodec
c97a5d7502 refactor: fix version button wrapped in two buttons 2023-09-20 11:54:03 +01:00
Miodec
724403d361 refactor: use nav instead of a div 2023-09-19 23:53:13 +01:00
Miodec
6610542d5f refactor: use footer instead of a div with an id 2023-09-19 23:51:20 +01:00
Miodec
46c0555202 chore: missing class 2023-09-19 23:47:33 +01:00
Miodec
d1cb222735 chore: rename file 2023-09-19 23:45:52 +01:00
Miodec
5a06954f02 refactor: use button instead of div 2023-09-19 23:44:48 +01:00
Miodec
13d041e055 chore: remove tabindex 2023-09-19 23:40:28 +01:00
Miodec
513dfc63ff chore: use textButton for now to fix theme issues 2023-09-19 23:32:47 +01:00
Miodec
412d415207 refactor: use header instead of div with id 2023-09-19 23:31:13 +01:00
Miodec
cb449cfd2b chore: rename file 2023-09-19 23:08:28 +01:00
Miodec
13e08a716e refactor: use button instead of div 2023-09-19 22:57:52 +01:00
Miodec
ef15ee85c5 refactor: remove tabindex overrrides 2023-09-19 22:50:33 +01:00
Miodec
6314204e1d refactor: change logo into an anchor 2023-09-19 22:49:29 +01:00
Miodec
2a66e509f4 refactor(sign up): use button instead of div 2023-09-19 21:08:22 +01:00
Miodec
6fef51cd89 refactor(sign in): use button elements instead of div 2023-09-19 20:23:42 +01:00
Miodec
43a8b081a5 refactor: checkboxes
Reworked checkboxes to not use any custom elements.
Instead, the native element is styled.
This fixes tab navigation, and makes them easier to use in general.
2023-09-19 18:26:03 +01:00
Miodec
7a1f2ce5ed style: rework button styling 2023-09-19 17:38:41 +01:00
Shuja-Mahmood
7c971e5d84
feat(custom text): add text file opening (Shuja-Mahmood) (#4596) 2023-09-11 18:22:39 +01:00
Miodec
87e882b94d feat(security): add revoke all tokens button
With this, user can sign out all sessions if they think their account has bee compromised.
2023-08-31 14:05:21 +02:00
Miodec
0de54f889b impr(replay): show live wpm when viewing test replay 2023-08-31 14:05:21 +02:00
Miodec
2380d09fad impr(settings): add reminder that there are more account settings available in the danger zone 2023-08-31 14:05:21 +02:00
Miodec
cfed190f36 impr(profile): add reminder about lb opt out
Added a reminder which mentions that results are not validated by the anticheat
for accounts that opted out of the leaderboard
2023-08-31 14:05:21 +02:00
Shuja-Mahmood
7a375299df
impr(quote search): add pagination to search results (Shuja-Mahmood) (#4577)
* Added page navigation for quotes search

* using fixed width icons

* style adjustment

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-08-24 12:42:22 +02:00
Christian Fehmer
0d5cd3eb02
Added highlight modes next word, next two words and next three words (#4516) fehmer
* Added highlight modes next word, next two words and next three words

* updating active element to make sure change is visible when applied from the commandline

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-08-10 15:05:07 +02:00
Steve H
6dd524ad39
Updated the overlay text of the screenshot button (#4507) Mammoets
* Updated the overlay text of the screenshot button to be more descriptive.

* Update result-screen.ts

added save as alias

* Update sourcecode.txt

reverted change to aria-label
2023-08-10 14:49:52 +02:00
Jack
a40d42b7c3
Renamed live wpm to live speed, min wpm to min speed (no non-user facing changes) (#4502) Miodec
* strings rename

* added alias

* renamed to min speed

* missing string rename

* wpm to speed rename

* converted displayed and inputted values for pace caret to the currently active speed unit

* accepting active speed unit in the commandline for min speed and min burst

* taking input in the currently selected unit for min burst

* displaying min burst in the selected unit

* converting min speed to the current unit
2023-08-08 11:39:47 +02:00
Christian Fehmer
1f4df9199d
Added configuration for typing speed unit, removed alwaysShowCPM (#4492) fehmer
* Added configuration for typing speed unit, removed alwaysShowCPM

* review comments

* fix live-burst, activityChart and results-pb label

* Added support for typing speed unit in account histogram chart

* trigger build

* Update account.ts

* Fix chart scaling and wpm/rawWpm hovers on result page
fix chart scaling and bucket size on account page

* refactor histogramChartData to support 0.5 steps

* Revert dynamic scaling on accounts/result graph

* Refactor histogramChartData to an int[]

* Fix cutoff in account history

* Fix labels on result page

* Limit result chart label to two decimals

* renamed show average wpm to show average speed

* fix scaling on accounts history graph (again),   not adding an easteregg 🤫

* hiding by default

* fix scaling on accounts history graph episode three

* move typingSpeedUnit related functions out of Misc

* updating account page if typing speed unit changes

* updating result page if changing units on the result page

* missing buton change

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-08-04 13:22:27 +02:00