Commit graph

255 commits

Author SHA1 Message Date
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
Miodec
202059d13f apparently autocapitalize="off" is depracated
part of #4388
2023-06-22 12:39:07 +02:00
Xea
850a14c584
split smoothCaret into several modes (#4374) im-0xea
* split smoothCaret into several modes

* implemented requested changes of smoothCaret modes

* moved config migration code

* bring back caretFlash animation

* fixed error (weird how the build process didnt catch this)

---------

Co-authored-by: Miodec <jack@monkeytype.com>
Co-authored-by: Niki <n.topel@callassoftware.com>
2023-06-14 13:59:24 +02:00
Jack
27b1a7fedb
Streak hour offset (#4357)
* backend flow to set hour offset

* added frontend popup to set streak hour offset

* displaying a message that the user can change offset
displaying the actual offset if its already set

* applying offset when checking streaks

* added tests for the new offset
updated old streak tests

* defaulting to undefined

* removing content if offset is already set

* updated the way offset is displayed

* also updating in the local snapshot
2023-06-12 14:38:44 +02:00
kenn
993dc14e39
Backgrounds in Theme URLs (#4279) KennLDN
* Added Optional Background Data sharing to Theme Share URL, and updated URL Handling to support new JSON format

* Fixed Clipboard Fail Popup

* Do it Properly this time

* Prettier

* err

* err

* removed one margin, updated the other

* updated button text

* updated type

* unnecessary await

* more descriptive variable names

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

* level 1 instead of 0

* better notifications when copying failed

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-05-15 13:25:34 +02:00
net-tech-
d2632ec62b
fix: disable autocomplete in safari for the typing test (#4287) net-tech 2023-05-15 13:10:54 +02:00
Albert
67daa1d409
Custom mode pipe delimiter: section count mode (#4105) albertying, miodec
* Add section input

* Restore code

* Cleaner approach

* Correct current index

* Remove import

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

* Plus n adds n words instead of n sections

* Undo

* Fix normal test

* Replace word with section when delimiter is checked

* Restore

* Set progress to current section / section total

* Fix memory funbox

* Fix randomcase

* Fix text generation when random is not enabled

* no word limit if in random section mode

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

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

* test

* Revert "test"

This reverts commit 50d20fff3d.

* allowing infinite

* fixed words not being added after the first word generation

* not checking section index if infinite word

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

* removed/reverted old approach to this feature

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

* removed unused import

* exporting section index and current section

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

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

* missing comment

* removed comment

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

* better errors

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

* fixed pipe delmiter non random custom text not working

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

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-05-15 11:45:38 +02:00
Anthony Rosman
2ba3067f89
Accessibility (#4227) D3press3dd
* fix: add role missing in aria-label

* fix: add web-kit option to support safari browsers

* fix: change div to link to keep the structure of the others

* fix:add rel to avoid tab access with window.opener

* fix: add missing roles when using aria-label

* fix: delete placeholders

* fix:add webkit to all,comment unused css selectors

* removed placeholder

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-04-28 15:52:22 +02:00
Miodec
24f11297d4 updated description 2023-04-19 13:40:18 +02:00
Miodec
bbae8c8ffc added steno and steno matrix keymap style 2023-04-19 12:10:30 +02:00