Commit graph

168 commits

Author SHA1 Message Date
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
Rizwan Mustafa 9bb778673a
Long Custom Text (#3543) rizwanmustafa miodec
* Create state for storing custom text name

* Save custom text name on click

* Add todo

* add some utility functions to custom-text.ts

* Set custom text name to empty upon modification

* now update the custom text progress in localStorage

* rework logic for updating progress in test-logic.ts

* more logic changes

* Keep progress in mind when starting next test after bailout

* reset test once they complete it and minor refactor

* Now set custom text progress to 0 when it is modified

* Add UI for continuing and change var name

* Reset progress if they start it again

* Move functions

* remove debug log

* replaced simple popup with custom popup

* fixed media query

* also setting opacity to 1

* saving long custom text into a separate object

* fixed incorrect saving function
fixed get custom text names function

* setting to empty object structure first

* long list style fix

* showing long texts
handling delete and progress reset

* renamed file
tracking if custom text is long

* unnecessary comment

* showing a warning that editing will disable progress tracking

* checking if text is long
updating progress

* added notifications

* setting custom text

* showing if progress tracking is working

* showing if progress tracking was disabled

* longer notification

* corrected button text

* joining with space

* checking if name is taken
added indicator

Co-authored-by: Miodec <jack@monkeytype.com>
2022-10-04 17:42:52 +02:00
Miodec 433cb696be fixed contact popup not opening on about page mail button click
closes #3616
2022-10-03 13:26:42 +02:00
Miodec 51db47e9d6 moved nocss warning update to its own file
update nocss warning to show bigger clear cache shortcut
2022-09-29 19:45:15 +02:00
Miodec ebeafd9880 added all time lb positions to profiles 2022-09-29 13:08:10 +02:00
Miodec 2920722315 Merge branch 'master' into offline 2022-09-28 13:31:35 +02:00
Miodec 40addbf97f added daily pace caret mode
closes #3564
2022-09-28 13:07:07 +02:00
Miodec 5e6c3880d0 unnecessary closing tag 2022-09-27 22:42:24 +02:00
Miodec 19b7a6ca24 added claim all and delete all buttons to alerts panel
closes #3590
2022-09-27 00:34:05 +02:00
Bruce Berrios e6a8747d41
yyyriyriy ppp[i6riy (#3603) Bruception
* Add new synth click sounds

* Use key codes instead

* Fix Sound preview

* Check for caps lock

* Add new quote - imperial march
2022-09-26 10:41:31 +02:00
Jack 409f0a83e4
Get profile by name (#3585)
* handling query param
getting user by name if query param is present

* added function to get user by name

* split profile function to get user by uid or name

* added  function to check if get parameter exists in url

* updating the profile based on the url parameter

* using query param in url

* using get param

* renamed param name
adding search param to pathname in the deafult parameter value

* renamed param

* renamed param
added query validation

* extracted repeated query to a function

* missing await

* fixed typo
fixed validation

* using em for dynamic font sizes

* using em for dynamic font sizes

* added line height

* using em

* using em

* using page profile search instead

* updated the way data is passed into the page

* profile search page

* setting line height

* removed vertical align

* moved navigate to an event to avoid circular deps

* fixed route controller not being included

* removed unnecessary test

* showing 404 error

* improved query checking

* renamed query param

* fixed test

* note

* yeet

* cleaner type definition
2022-09-22 17:45:57 +02:00
Miodec 6cf347eaca registering now requires a captcha 2022-09-22 12:57:42 +02:00
Miodec 7dff50dc30 added histogram to the account page 2022-09-12 14:24:56 +02:00
Miodec 34e5174609 changed punctuation and numbers icons 2022-09-12 11:06:51 +02:00
Miodec 6799a78250 notification bubble defaults to off 2022-09-10 10:56:59 +02:00
Miodec 483beaaabf disabling dark reader 2022-09-09 00:10:59 +02:00
Miodec 2fa5dd0fef showing notification bubble on bell icon instead of setting the whole icon active
closes #3513
2022-09-08 22:23:18 +02:00
Christian Rudder 5912670eab
creating korean keymap (#3456) neezacoto 2022-09-08 14:05:49 +02:00
Miodec a378c743d6 optimised alerts popup for narrow screens 2022-09-05 20:45:01 +02:00
Miodec ee5c07d10a displaying longest streak on profile 2022-09-05 15:12:24 +02:00
Miodec 85dc20e8cd Merge branch 'newnav' 2022-09-05 13:55:09 +02:00
typermonkeyuser b08c194c3d
Implement streaks (#3385) typermonkeyuser, bruception, miodec
* Implement streaks

* Improve code

* Update package.json

* Store streak on the user

* Pretty-fix

* Ensure that streak is up to date

* Fix issue in streak calculation

* Revert prettier changes

* Update polish.json

* Update db.ts

* Remove initial calculation

* Write mandatory test

* using strict equality

* moved functions to the utils file

* importing utils

* adding streak to breakdown,
rounding and parsing streak modifier

* renamed variable

* renamed fields

* using correct field name

* added streaks to configuration

* showing streak during xp breakdown

* incrementing streak earlier
checking configuration before applying modifier

* returning streak to the client

* setting local streak with the number returned from the backedn

* only reading streak when updating profile instead of updating

* sending streak information in profile

* only showing streak if greater than 0

* setting to empty if no streak

* renamed config property

* updated streak calculation

* refactored isYesterday

* refactored streak update

* only displaying if streak larger than 1

* merged configuration properties into 1

* added configuration for max streak bonus

* added isToday check back (derp)

* reverted streaks back to multiplier approach

* using better maprange functin

* removed import

* moved test to dal spec

* clamping

* removed imports

* fixed test

* increased coverage

* removed angry console log

* typo

* using date now instead of dates

* mocking date now
awaiting expect

* not using date

Co-authored-by: Anonymous <110769200+fasttyperdog@users.noreply.github.com>
Co-authored-by: Rizwan Mustafa <rizwanmustafa0000@gmail.com>
Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-09-05 12:13:55 +02:00
Miodec 9c69174b0c adjusted styling 2022-09-04 23:58:18 +02:00
Miodec 81c2e3019f adjusted test config styling 2022-09-04 23:54:33 +02:00
Miodec 2e96202144 fixed icon styling 2022-09-04 23:36:55 +02:00