Commit graph

1794 commits

Author SHA1 Message Date
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
e47048f0b2 added concurrently as a dev frontend dependency 2022-10-18 12:34:00 +02:00
Miodec
1b94f90bde removed unnecessary class check,
replaced deprecated function
2022-10-18 04:00:11 +02:00
Miodec
e0d76ff439 removed quotes 2022-10-18 03:44:24 +02:00
Miodec
47c4028aed more specific event binding 2022-10-18 03:41:20 +02:00
Miodec
aa0b5caf42 more specific query for slightly better performance 2022-10-18 03:33:15 +02:00
Miodec
e3d34311c3 storing caret globally
removed unnecessary words wrapper class check
2022-10-18 03:21:51 +02:00
Miodec
6d75b64666 vanilla js for m o r e s p e e d 2022-10-18 03:11:59 +02:00
Miodec
4c2e7ee5cb fixed placement of caps lock warning 2022-10-18 03:05:47 +02:00
Miodec
6970fbddaa storing state
binding event to words input instead of document
2022-10-18 03:05:31 +02:00
Miodec
78e3a54b02 updated contributors list 2022-10-18 02:37:09 +02:00
Miodec
56457b29b7 quote lengthx fix 2022-10-17 21:22:43 +02:00
Miodec
8a283836e7 quote reports 2022-10-17 21:22:04 +02:00
Miodec
fbd58a3202 fixed practise words popup not showign 2022-10-17 20:08:21 +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
QuackerDeezles
80df3dc61f
New language: english doubleletter (#3664) QuackerDeezles
* New language: english doubleletter -> A 200-word list only including words that have the same letter used consecutively.

* english doubleletter error, comma syntax fixed!

* english doubleletter -> english_doubleletter
2022-10-17 16:13:05 +02:00
Miodec
575cbcef60 fixed a bug where smooth line transition would cause quick consecutive line jumps to not work correctly
closes #3662
2022-10-17 15:21:35 +02:00
Miodec
40cd8c58b0 stopping animations on restart
removing smooth scroller on restart
2022-10-17 15:15:03 +02:00
Miodec
02e3c5a46f incorrect parent element 2022-10-17 14:23:20 +02:00
Miodec
37a56b11e3 saving repeated time typing as incomplete
so it can be saved on the next successful result save
closes #3666
2022-10-17 14:21:53 +02:00
Kavin Ruengprateepsang
a67aeaf977
Add English quote (#3656) kavinvin
* Add English quote

* Add more English quote

* Add more English quotes from Eighty Six

* Fix quote length

* Add more quotes

* Remove some quotes

* Remove more quotes
2022-10-17 14:04:16 +02:00
Miodec
d99e4ca4c9 making sure the buttons are ready
updating active buttons
2022-10-17 14:03:15 +02:00
Miodec
26487a2366 added pb filter 2022-10-17 13:51:48 +02:00
Miodec
1fd1e30806 showing if user got a pb for the newly added tag
closes #3663
2022-10-17 13:41:53 +02:00
Miodec
b6c73fca49 not doing anything if arrays are equal 2022-10-17 13:39:38 +02:00
Miodec
c55f322616 setting to empty array when empty string 2022-10-17 13:39:17 +02:00
Miodec
a845daf443 unnecessary generic type 2022-10-17 12:33:22 +02:00
Miodec
d5ae0466bb added util functions for checking if arrays (sorted and unsorted) are equal 2022-10-17 12:32:18 +02:00
PS-PARSA
07d51d9947
feat(front-end): persian quote file initialized and 20 quote added (#3655) psparsa 2022-10-17 11:51:18 +02:00
Miodec
575f3551f3 added ABNT2 2022-10-16 22:18:19 +02:00
Miodec
7bcd41e7e5 updated event handler 2022-10-16 20:44:36 +02:00
Miodec
23b3cf1a73 updated event handlers 2022-10-16 20:40:02 +02:00
Miodec
bcde597841 updated event haldners 2022-10-16 20:34:06 +02:00
Miodec
5b99a975fd updated event handlers 2022-10-16 18:49:19 +02:00
Miodec
caeccbc454 updated event handlers 2022-10-16 18:47:04 +02:00
Miodec
f43dc97ffb updated event handlers 2022-10-16 18:43:58 +02:00
Miodec
dcd4bc876c updated event handlers 2022-10-16 18:42:12 +02:00
Miodec
76db73427f updated event handlers 2022-10-16 18:39:12 +02:00
Miodec
fe7d9d5fb0 updated event handlers 2022-10-16 18:36:17 +02:00
Miodec
2b1457e462 updated event handler 2022-10-16 18:32:09 +02:00
Miodec
db1d303dc7 removed return 2022-10-16 18:31:39 +02:00
Miodec
0917be20cc updated event handlers 2022-10-16 18:28:38 +02:00
Miodec
b59297ef1b updated event handlers 2022-10-16 18:25:41 +02:00
Miodec
fe3bb36768 update 2022-10-16 18:22:21 +02:00
Miodec
aba74c8c6a updated event handler 2022-10-16 18:22:09 +02:00
Miodec
34fd0e8111 moved popups to their own parent element 2022-10-16 18:08:09 +02:00
Miodec
04cc5b74f8 removed comment 2022-10-16 14:02:27 +02:00
Miodec
0f601d912b using box shadow instead of outline
closes #3658
2022-10-16 14:02:13 +02:00
Jack
95f2899636
Fixed db snapshot type (#3647)
* dbsnapshot will be undefined if user is signed out

* fixed warnings

* fixed errors

* settings snapshot to undefined when signing out

* guard

* unused import

* type casting

* guard

* optional chaining

* guards, optional chaining

* optional chaining, guards

* optional chaining, guards

* guards, optional chaining

* optional chaining

* guards, optional chaining

* replaced or with nullish coalescing

* nullish coalescing

* nullish coalescing
2022-10-15 16:06:28 +02:00
Miodec
e6cd73265c fixed tag commands active indicator not showing correctly 2022-10-15 11:53:32 +02:00