- 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
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.
* 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>
* 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
* 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
* 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>
* 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
* 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>
* 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>
* 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>