Commit graph

9677 commits

Author SHA1 Message Date
Miodec 1344681273 quote reports 2023-07-31 13:42:15 +02:00
Raaed Shaikh ca4dfcd6b4
fix typo in cpm graph label (#4486) rxxed 2023-07-29 14:57:45 +02:00
Miodec 245daed4fc using debug logs instead 2023-07-29 02:49:07 +02:00
Miodec 5d09be09f2 reduced code duplication
merged live wpm/raw and final wpm/raw calculation into one
count chars now includes test input

this also fixes a tiny bug where live raw would be inflated (this did not affect any final stats)
2023-07-29 02:30:37 +02:00
Miodec fc3f529278 removed debug variable and setter function
using debug logs instead
2023-07-29 02:28:09 +02:00
Miodec 42b85732e5 renamed type 2023-07-29 02:26:55 +02:00
Miodec d630d1c394 added more data to debug getStats
changed where average and std dev data is inserted
2023-07-29 01:57:06 +02:00
Miodec f326482af6 renamed 2 variables 2023-07-29 01:52:10 +02:00
Miodec 73ddb06339 changed type of variable 2023-07-29 01:51:35 +02:00
Miodec 35a6b910aa moved afk history into its own variable 2023-07-29 01:49:54 +02:00
Miodec b659a68d9b moved variable to a different module 2023-07-29 01:43:51 +02:00
Miodec 063693be0a extracted two parameters into another object 2023-07-28 22:26:13 +02:00
Miodec 5bef9fac04 moved bailed out state to test state 2023-07-28 22:15:14 +02:00
Miodec 73f4050392 removed unnecessary type definition
changed to unknown and added tsignores because this is just debug code
2023-07-28 22:11:31 +02:00
Miodec 93c169a465 not exporting
renamed variable
2023-07-28 22:03:35 +02:00
Miodec 951fc391fd removed unused variable 2023-07-28 22:01:43 +02:00
Miodec 67531c636f quote lengths 2023-07-28 14:04:26 +02:00
Miodec 1e87deb42b quote reports 2023-07-28 14:04:09 +02:00
Miodec 34bd4cd827 added a bit of extra space to the tab character 2023-07-27 13:47:31 +02:00
Miodec 3c5e4c0662 updated the new line character 2023-07-27 13:44:37 +02:00
Miodec 1d8aee1c68 updated layoutfluid notification element
made it work in mods other than time
closes #4484
2023-07-27 12:55:20 +02:00
Miodec 168055e21e selecting the input if it gets prefilled
closes #4482
2023-07-27 12:13:15 +02:00
Miodec 8612c0d2f2 added polish wikipedia 2023-07-27 12:05:40 +02:00
ademirkan 17713fde87
fixed quick toggle-to-highlight bug (#4481)
* fixed quick toggle-to-highlight bug

* eslint fix

* added return type to function, eslint
2023-07-27 10:52:41 +02:00
Miodec 50c96006c2 removed duplicate header 2023-07-25 17:47:17 +02:00
Miodec a828fcfb01 moved issubmiossionenabled check before opening the popup 2023-07-25 17:25:17 +02:00
Miodec ad357d3948 showing groups instead of languages 2023-07-25 17:19:09 +02:00
Miodec 327125186b updated parameter 2023-07-25 17:18:57 +02:00
Miodec 7359bb78ba reordered groups 2023-07-25 17:04:06 +02:00
Miodec 59c34fc988 only allowing 100 submissions per language 2023-07-25 17:00:29 +02:00
Miodec 99111ec3e8 asking the backend if submission is enabled instead of hardcoding 2023-07-25 16:53:41 +02:00
Miodec 869f9c229d added endpoint to frontend ape client 2023-07-25 16:52:36 +02:00
Miodec 753d9649e8 updated response schema 2023-07-25 16:43:00 +02:00
Miodec 574532f280 added endpoint to check if quote submission is enabled 2023-07-25 16:40:29 +02:00
Miodec 2e8c58365f sending client version in headers
logging which client versions are getting errors
closes #4475
2023-07-25 15:46:46 +02:00
Miodec 5abc29bb76 hiding clear all button button when focused
closes #4480
2023-07-25 15:33:18 +02:00
ademirkan 45cc0487ed
Fixed last word(s) highlight not showing up (#4479) ademirkan 2023-07-25 15:28:27 +02:00
Miodec 47a73190c4 fixed lasts sometimes not being highlighted by hovering over the last chart data point 2023-07-25 14:14:24 +02:00
Miodec 90761fbc32 quote lengths script 2023-07-25 12:03:49 +02:00
Miodec f54a315ba6 quote reports 2023-07-25 12:03:32 +02:00
Miodec 93144cade3 replaced global override with a function
fixes broken result hashes
2023-07-23 19:08:20 +02:00
Miodec c9edae203d also updating database email when adding password auth 2023-07-21 14:03:26 +02:00
Warrobot10 fafe4512bd
Improving quote sources. (#4467) Warrobot10 2023-07-21 13:38:53 +02:00
ademirkan 29b05271de
New Highlighting System (#4448) ademirkan
* put speed above word in input highlight

* updated class name
using class nesting

* put speed below word, added nocursor

* removed unnecessary line

* saving highlight controller progress, started init()

* finished highlight-controller init, middle of highlight()

* fixed highlightContainer padding issue

* buggy implementation of highlight()

* finished highlight() demo

* event listener to call destroy() on window resize

* removed init from public functions

* fixed bug where words could not be hovered for speed highlight

* simplified highlight css & js

* accounted for padding

* buggy, functional implementation of counter-animation

* semi-percise line up, buggy clear()

* official v1.0, fixed highlightPlaceholder text dissapearing late bug

* improved variable name readability

* improved documentation for highlight-controller

* added concise summary on top for highlight-controller

* minor counter-animation performance changes

* fixed bug where word is overtyped but corrected, causing overlapping inputWord elements

* prettier error, removed line

* fixed eslint errors

* fixed bug: highlight persisting on mouseleave when moving too fast

* changed highlight transitions from 0.15s to 0.25s

* fixed eslint bug for new setIsHoverChart function

* checkpoint: introduced line rect to type

* checkpoint: percise inputWord positioning

* checkpoint: highlight width  based on input, not full word

* checkpoint: optimized by reducing animations by setting min/max on highlight offsets, reducing number of lines being animated

* checkpoint: changed highlight offset limiters to be based on window width

* Fixed bugs for highlight-controller

* fixed eslint issues

* fixed length error on resize

* Fixed offset error when heatmap is toggled

* fixed inputWordsContainer animation bug in first highlight call

* uncommented accidental comments

* reduced jQuery calls, improving performance

* removed unnecessary document query

* early exists when highlightRange does not change

* reset highlightRange on destroy

* removed unnecessary import

* optimized callback

* added fade in/out animations, instant positioning

* removed console log

* renamed highlightWords to highlightWordsInRange

* made highlightWordsInRange more readable

* renamed highlight-controller to result-word-highlight

* nonfunctional checkpoint

* nonfunctional, updated highlightWordsInRange

* nonfunctional, saving progress

* nonfuctional, saving progress

* saving progress, nonfunctional

* partially functional, incomplete getHighlightElementPosition

* nonfunctional, checkpoint

* non-functional, made isLanguageRTL + functions async

* fixed returning false I bug (i think)

* current line functional

* lower lines highlight positioning functional

* completed RTL refactor

* finished RTL refactor, eslint fix

* fixed ts, getBoundingRect function put in misc

* removed console log

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2023-07-21 13:38:26 +02:00
Axel Cuevas ea7df209d5
Added quote (#4462) Hideoka117
* Pending changes exported from your codespace

* Update english.json
2023-07-21 13:07:07 +02:00
Miodec ebcc212605 catching drop errors, should fix #4440 2023-07-21 13:04:18 +02:00
Miodec 62a73bc61e added supporter 2023-07-20 22:46:25 +02:00
Miodec f04ee79b73 added supporter 2023-07-20 22:35:05 +02:00
Miodec c507481da1 added a clear all button if at least two sticky notifications are visible 2023-07-19 14:42:47 +02:00
Miodec 4bd295f297 showing correct and incorrect 2023-07-19 14:15:41 +02:00