Commit graph

192 commits

Author SHA1 Message Date
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
Miodec 96229f0144 added estimated total words typed 2022-11-10 15:12:41 +01:00
Miodec f72c3a6702 added a state token to make sure we only link to the user that started the oauth2 flow 2022-11-09 15:44:31 +01:00
Prajwal Raj Basnet a8b4fa348b
Hide favourite quote button for unauthenticated user (#3709) Prajwalrajbasnet
* Hide favourite quote button for unauthenticated user

* pretty fix

* hiding favorite button a bit later

* hiding favorite button by default
removed unnecessary auth import

Co-authored-by: Miodec <jack@monkeytype.com>
2022-10-31 14:49:25 +01:00
Brian Evans cffa7514ea
Save speed stats in leaderboard update (#3652) mrbrianevans
* Save speed stats in leaderboard update

Saves a histogram data structure of speeds for buckets rounded to the nearest 10.

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* API endpoint to get public speed stats

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Add APE class for public stats (WIP)

I created an APE class for accessing public stats. Also stubbed getting and showing the public speed stats on the about page. Haven't implemented the histogram yet though.

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Draw histogram for global speed stats

On about page

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Update histogram colors on theme change

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Fixed out-of-order data in speed histogram

 Data was not sorted correctly, which resulted in an incorrect histogram being drawn.

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Public speed stats PR fixes

Small fixes based on PR feedback:
 - changed _req to req
 - removed unnecessary client version header

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Add endpoint for typing stats

New endpoint to retrieve the public typing stats such as global count of tests completed.

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Renamed public-stats to public

Except in cases where it would cause an identifier named `public` as this is forbidden in strict mode.

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Add stats section to about page

In this commit:
 - add a section above about called stats
 - display typing stats in three columns
 - underneath show the histogram of speeds on english time 60
 - make chart responsive

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Add unit test for Public DAL

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* updated styling

* only requesting data once per session

* going one column on narrow screens

* added option to specify number of decimal poitns

* just showing million instead of abbreviating
updated structure
updated styling

Signed-off-by: Brian Evans <ebrian101@gmail.com>
Co-authored-by: Miodec <jack@monkeytype.com>
2022-10-18 15:45:45 +02:00
Miodec 0b5e312897 added option to add or not add periods when replacing new lines with spaces
closes #3660
2022-10-17 16:13:58 +02:00
Miodec 26487a2366 added pb filter 2022-10-17 13:51:48 +02:00
Miodec 69b02569ee added button to the result page that allows you to update tags for the result
only shows up if user has tags
closes #3642
2022-10-13 21:00:50 +02:00
Miodec 9c388c3d37 restructured the custom text popup 2022-10-13 20:02:10 +02:00
Miodec aab38105e8 added code to detect when the user is online or offline 2022-10-13 14:26:29 +02:00
Miodec 42f559d5c6 moved service worker code 2022-10-13 14:25:14 +02:00
Miodec 3f50619fd9 specifying element 2022-10-11 13:42:35 +02:00
Miodec 908b215a58 updated description 2022-10-10 20:18:23 +02:00
Miodec c50585b4a0 mentioning shift enter 2022-10-10 20:16:47 +02:00
Miodec 944028cdd5 added option to replace new lines with spaces
closes #3630
2022-10-10 18:50:21 +02:00
Miodec c9d357cf82 empty default structure 2022-10-09 01:12:30 +02:00
Miodec a3c9914505 disabled caching for the index file 2022-10-09 00:01:52 +02:00
Miodec 7dc26e5962 using div instead of anchor for non href links
styling text buttons instead of anchors
2022-10-08 23:48:31 +02:00
Miodec d15f9a8adb using div instead of anchor for non href links 2022-10-08 23:46:16 +02:00
Miodec 4be2e9bae1 more descriptive link text 2022-10-08 23:41:08 +02:00