Commit graph

211 commits

Author SHA1 Message Date
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
bapic
c69d2d0251
Fix About Page Leaderboard Typo (#4179) itsbapic
Just saw it while using the site, tiny one-letter fix
2023-04-14 12:56:06 +02:00
Miodec
1c489cad92 updated description 2023-04-01 21:15:55 +02:00
Albert
7ed088a13e
Account graph (#4049) albertying
* Create graph with ao10, ao100, and pb

* Display best ao10 and 100

* Fix ts errors

* Remove old graph

* Remove smoothing slider and toggle chart style button

* Clean up code

* Populate graph if chartData > 0

* Fix filter not displaying data correctly

* Fix wpm cpm labels

* Update colors using theme colors

* brought back accuracy averages

* different colors

* Add toggle ao10 and ao100

* Change opacity based on toggles

* Persist on refresh

* Fix accountActivity chart point color not updating when changing theme in the command line

* Refactor

* Keep pb color consistent

* removed dot

* smaller buttons, in one row, media queries

* hiding bottom scale

* connected the config properties into 1

* Refactor

* Combine into one loop

* cleanup
removed unused functions
reduced repeating code
removed comments
removed console logs

* removed highest avg 10 and 100 stats

* sweep

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-03-16 12:57:47 +01:00
Miodec
c8f2d25364 added custom layoutfluid timer countdown 2023-03-13 14:15:18 +01:00
Miodec
06d797bd99 moved words input outside words wrapper to avoid weird graphical glitches 2023-03-08 14:07:08 +01:00
Miodec
31b1474a47 moved words input inside words wrapper 2023-03-07 14:57:37 +01:00
Miodec
a0d7af31d8 changed label style 2023-03-06 15:21:27 +01:00
Miodec
08e16c03da reordered inputs 2023-03-06 15:20:06 +01:00
Jack
56d8c7c9ae
Added ability to opt out of leaderboards (#4016)
* added button to opt out of leaderboards

* also not allowing daily leaderboards

* also not allowing weekly lb

* added lb opt out notice on the leaderboards

* updated message

* resetting lboptout state on account reset
2023-02-25 23:26:06 +01:00
Miodec
60f5427c22 typo 2023-02-25 21:59:18 +01:00
Albert
2b8690bf20
Add word filter presets (#4018) albertying
* Add word filter presets

* updated structure and styling

* updated button classes and click handlers

* removed timeouts to fix annoying jumping

* typescript fixes

* renamed function

* converted file to using single object that defines presets

* using spread

* added right hand preset
using spread
added key position B to the right hand preset

* removed line

* changed text

* Finish rewriting presets in new format

* added home keys filter preset

* removed comment

* Fix home keys preset

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-02-21 22:57:31 +01:00
Miodec
8a2fa437e6 removed p
wider columns
2023-02-21 14:21:12 +01:00
Miodec
2249932331 using css setup that is esier to modify in media queries 2023-02-21 14:19:13 +01:00
Peter Gessler
c0373dfc1f
fix: Add about page supporter/contributor references (#3994) gesslerpd 2023-02-14 11:27:04 +01:00
Miodec
384ec9bf44 updated email addresses 2023-02-14 00:22:37 +01:00
Miodec
4781755fef replaced email address 2023-02-13 23:55:08 +01:00
Jerry Zhou
da9b691bb1
New Sound on Click - Pentatonic Scale (#3970)
* added scale function

* cleaned up merge

* cleaned up scale implementation and created closure for previewing scales

* finalized changes

* fixed ci/de

* switched to upper camel case

* undid accidental changes

* updates

* fixed indexing bug and audioCtxt being intialized

* removed mapping

* updated schema with non-inclusive range for two new sound-on-clicks

---------

Co-authored-by: Bruce Berrios <bberr022@fiu.edu>
Co-authored-by: Bruce Berrios <58147810+Bruception@users.noreply.github.com>
2023-02-10 18:11:52 -05:00
Miodec
9cdfa9c191 fixed filter preset buttons not showing up 2023-01-30 12:56:41 +01:00
Jack
6647a81ad1
Structure (#3951)
* created file which holds skeletons for popups

* using skeleton

* saving skeleton after the events are bound

* moved click event to a static element

* using skeleton

* added hide and show functions
using skeleton

* using skeleton

* using skeleton

* using skeleton

* using skeleton

* using skeleton

* fixed a bug where updating the preset name would not immediately show the update

* using skeleton

* shorter link transition

* using skeleton

* using skeleton

* using skeleton

* fixed a bug where accounts with no pbs would cause misplaced "show all pbs" button

* using skeleton

* using skeleton

* using skeleton

* using skeleton

* fixed quote mod not being sent to the client

* using skeleton

* using skeleton

* using skeleton

* using skeleton

* using skeleton

* using state object instead of html attributes
fixed a bug where no tags text would persist even when tags were added to the test
using skeleton

* using skeleton

* using skeleton

* using skeleton

* using skeleton

* using skeleton

* removed unused code

* unnecessary import

* unused code

* using skeleton

* changed click handling element
only hiding and restarting the test if init returned true

* using skeleton
returning boolean from init function

* removed console log

* added function to check if a popup is visible

* better visibility check

* rewrote alerts to use state object instead of pushing straight to dom
using skeleton

* better visibility check

* not using skeleton for now

* using skeleton
using state object
better visibility check

* added parent override

* unnecessary code

* changed function to a more generic one

* fixed cookie popup text possibly overflowing popup

* using "isPopupVisible" function instead of a "hasClass" check
added some missing escape key handlers

* using skeleton

* using skeleton

* using skeleton

* using skeleton

* standard popup animation length

* consistent animation timing

* using iselementvisible function

* removed unused function

* using isElementVisible

* proper show and hide functions, added callback funciton on hide,
added noAnim params

* fixed no animation on the logo sub text

* reordered click handlers

* moved code to a fill function

* using proper show and hide functions
added callback on hide param
added no anim and no callback parameters

* added no anim parameter
callback func is optional

* also applying noanimation to hiding animation

* using proper hide and show functions

* using iselementvisible

* using skeleton

* missing space

* storing text area state in custom text

* using skeleton

* setting state on show instead of on hide

* moved click handler

* unused code

* missing parent override

* using skeleton

* no longer waiting for document to be ready

* settings using skeleton

* profile search using skeleton

* page profile using skeleton

* navigating to account if already logged in

* using skeleton

* using skeleton

* emptying result replay and words history on restart

* optimised theme picker

* optimised settings page fill

* performance optimisation

* awaiting promises

* brought back code that was accidentally removed

* async

* addad param to avoid duplicate group update on settings page load

* added main thread yields to remove long tasks

* optimising performance of about page loading

* not awaiting

* breaking up long tasks to optimise performance

* optimised button appending

* fixed avatar being too big

* optimisation
splitting up code
added yields to split tasks

* fixed merge

* removed sleep

* missing chart color update

* updating main chart first

* disabling animation during update

* updating chart colors once instead of on every update

* added one more sleep

* removed sleep causing graphical issues

* update chart regardless if it has data or not

* hiding estimated words typed when no data was found
2023-01-27 15:10:07 +01:00
Miodec
1e60dc53cd updated settings page
added icons
updated button and text alignment
2023-01-25 17:43:01 +01:00
Miodec
904a981a70 clarification 2023-01-25 12:48:42 +01:00
Miodec
77b11e0fda updated 404 2023-01-18 15:51:13 +01:00
Miodec
575ee662d4 ico type 2023-01-18 15:51:13 +01:00
Miodec
7fa072e36f using noopener on anchors 2023-01-18 15:51:13 +01:00
Miodec
ddad75abc1 changed class name to a more unique one to aboid applying to unwanted elements 2023-01-17 12:12:00 +01:00
Miodec
edad8a9780 moved links to bottom of body 2023-01-16 15:26:02 +01:00
Miodec
5d5791a865 lazy loading css to improve initial page load 2023-01-16 15:25:50 +01:00
Miodec
99e1b916d7 using div instead of anchor 2023-01-16 12:21:31 +01:00
Miodec
4874aa7f17 more seo with h2 2023-01-16 12:17:49 +01:00
Miodec
0f636861da removed more h1 tags 2023-01-16 03:03:09 +01:00
Miodec
90d42d0096 not overusing h1 to help seo (maybe?) 2023-01-16 02:06:44 +01:00
Miodec
a10ae7856f seo 2023-01-16 01:53:55 +01:00
Miodec
1dc0b8fded updated name and description 2023-01-16 01:28:04 +01:00
Miodec
f3c7a2e4bd storing default theme colors in the head in case theme file failed to load 2023-01-14 01:02:48 +01:00
Miodec
adf47214db added option to report users 2023-01-09 18:20:56 +01:00
Miodec
1c6ee5d172 moved large livewpm below restart button
closes #3806
2023-01-07 19:19:29 +01:00
Andrew Chang
d50cb69d1d
Ignore modifier keys for test autofocus (fixed modtap issues with via and qmk) (#3837) andrewchang
* Apply debounce on restart test focus state

* Replace sleep and ignore modifier keys for test autofocus

* Update autofocus warning text

Co-authored-by: Andrew Chang <achang3@atlassian.com>
2023-01-06 13:37:35 +01:00
Miodec
a99d524705 changed property name 2023-01-05 15:13:33 +01:00
Bruce Berrios
e8e377ff62
House keeping (#3867) bruception
* Add comment for blind mode

* Maybe fix on failure job
2023-01-04 14:48:33 +01:00
Miodec
15a8dba11a fixed level balloon not working on public profiles 2023-01-04 13:53:35 +01:00
Miodec
5d040ae8a0 also clearing cache after uninstalling the service worker 2022-12-01 20:19:03 +01:00
Miodec
351f1995bf hopefully added a solution to fix the page not loading 2022-11-30 18:49:04 +01:00
Miodec
6f5a8f2ee4 using nbsp instead of margin-right to avoid prettier yoinking spaces 2022-11-28 17:43:49 +01:00
Nat Zimmermann
634081c7ca
add spacing between sentences (#3779) 2022-11-28 17:27:13 +01:00