Commit graph

625 commits

Author SHA1 Message Date
Bruce Berrios
0ef52ed9da
Add daily leaderboards (#3023) bruception
* Setup daily leaderboards backend (#2987) bruception

* Setup daily leaderboards backend

* Add enabled checks

* Consistent naming

* Add initial unit tests

* Use more flexible daily leaderboard rule logic

* Fix seed rule

* Add LRU Cache + Rank Calculation

* Use native functions

* Optional daily leaderboard rank

* Proper status code for invalid lb mode

* Add result criteria check

* Make daily leaderboard cache size configurable

* Add Ape endpoint for daily leaderboard (#2997)

* support for switching to viewing daily lbs

* test

* buttons

* only checking daily if user has more than 2 hours typed

* updated structure

* setting rank if its undefined

* only when daily

* storing uid

* fixed media queries

* Daily leaderboards pagination (#3006)

* Pagination

* Remove with scores

* Add daily leaderboard rank (#3014) Bruception

* Add daily leaderboard rank

* Remove unused import

* Use object instead

* Add client logic

* Add limit checks

* Announce top daily leaderboard results (#3017)

* Add rank in daily leaderboard results (#3022)

* not showing lb memory and top % on daily

* Fix rank pagination

* Actual fix

* showing new rank

Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-05-26 16:30:11 +02:00
Evan
66c912e817
use interfaces instead of types (#3002) ferotiq
* use interfaces instead of types

* Update custom-text.ts
2022-05-26 12:19:01 +02:00
Miodec
b05535a381 fixed cookie popup blocking extensions causing weird behaviour 2022-05-24 18:02:55 +02:00
Miodec
4166003f21 allowing tab navigation on login page 2022-05-24 16:08:51 +02:00
Miodec
c12579eb4a removed wrapper 2022-05-24 16:06:16 +02:00
Miodec
784e49bfa8 automatically wrapping input in wrapper
changing padding when indicator is visible
2022-05-24 16:05:32 +02:00
Miodec
2fcea65d68 added functions to disable certain components instead of all at once 2022-05-24 16:03:54 +02:00
Rizwan Mustafa
d7812d1b1b
Disable signup button by default and enable only on all correct checks (#3020) rizwanmustafa
* Disable signup button by default and enable only on all correct checks

* Refactor code

* remove debug log

* null when hidden

Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-05-24 15:29:22 +02:00
Miodec
45722c0c5a goat 2022-05-24 00:29:36 +02:00
Rizwan Mustafa
9c5652113c
Add checks for password and email on signup and add field indicators for them (#3011) rizwanmustafa
* Add password length and strength check

* Change regex

* Add indicator

* Fix bug

* Revert autocomplete change

* Add indicator for verify password

* Add indicator for emails

* Reorder code

* Remove indicators when fields are empty

* Show notification when email invalid on signup
2022-05-23 23:48:09 +02:00
Rizwan Mustafa
44419bdb60
Fix bug (#3012) rizwanmustafa
* Fix bug

* base 10

Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-05-23 22:10:04 +02:00
Miodec
48fffe1b99 created input indicator class to be used in many places 2022-05-23 22:04:06 +02:00
Miodec
bde38219a5 fixed cookie popup not showing up 2022-05-23 13:37:45 +02:00
Miodec
411ebab487 logic typo 2022-05-21 01:35:56 +02:00
Miodec
42d984981a 2 hours minimum to be placed on the lb 2022-05-21 01:32:09 +02:00
Max Kronenbürger
f5412b6e8e
replace german ß accent with ss as it was used prior to the german spelling reform (#2992) tmuplayer33
Co-authored-by: Maximilian Kronenbürger <maximilian.kronenbuerger@1und1.de>
2022-05-19 11:29:03 +02:00
Miodec
6fff446c61 added more checks for cookie popup blocking extensions 2022-05-17 15:51:26 +02:00
Miodec
e4c2b55907 fixed arrows not scrolling tape. closes #2986 2022-05-16 22:41:12 +02:00
Miodec
51ae5ef36a storing state in variable. closes #2985 2022-05-16 22:17:28 +02:00
Miodec
986de64359 preventing default when cookie poopup is visible 2022-05-16 22:15:19 +02:00
aNOOBis
69810de9e0
Proper addition of something like tag display in alerts (#2982)
* spacebar in presets and tags addition

* super mega spacebar remake

* style fix

* final name removal in ui

* replaceAll in ape removal

* using display above account chart

* create preset in command line addition

* testing removal

* one more testing removal

* create tag command line addition

* Update commandline-lists.ts

* moved add commands to the bottom
hiding if user is not signed in

* refactor

* hiding tags and presets when signed out

* fixed presets and tags display in alerts

Co-authored-by: Miodec <bartnikjack@gmail.com>
Co-authored-by: Vasiliy Novozhilov <vasya@192.168.1.3>
2022-05-16 18:49:33 +02:00
Miodec
e2aff9d73b defaulting word and time to -1 2022-05-15 03:22:40 +02:00
Miodec
3491701f4e removed todo 2022-05-14 20:37:45 +02:00
Miodec
83cc9848e6 missing result visible check 2022-05-14 20:28:55 +02:00
Miodec
2a116763ed moved quote repeat logic to the test restart function 2022-05-14 20:24:38 +02:00
Miodec
96a624f9d4 rewrote that mess 2022-05-14 20:23:50 +02:00
Miodec
81a7b8a273 importing leaderboards 2022-05-14 20:23:24 +02:00
Miodec
e504e107b5 checking if any fields are undefined 2022-05-14 18:55:59 +02:00
Miodec
ac7a00495b fixed caret positioning 2022-05-14 16:03:04 +02:00
Miodec
465e9cec71 always scrolling tape when emulator is enabled
fixes #2974
2022-05-13 10:04:49 +02:00
Miodec
6dc291a4d4 console logs 2022-05-13 09:55:28 +02:00
Miodec
d38f739c63 added protection 2022-05-13 09:54:52 +02:00
Miodec
cc004de147 added function for users that got stuck with a google account that no longer exists 2022-05-13 09:53:12 +02:00
Miodec
c1f32bf5a6 only showing notification when changing setting manually 2022-05-11 14:22:41 +02:00
Miodec
603dde93f8 disabled ads 2022-05-11 14:21:26 +02:00
Miodec
521a1f94eb removed das banner, added das to support links 2022-05-10 20:02:38 +02:00
Miodec
865dd3d734 typos 2022-05-08 20:45:00 +02:00
Miodec
d1d64ffc03 showing banner and info if user needs to change name 2022-05-08 20:42:10 +02:00
Miodec
d20122d9f0 catching issues with google sign in 2022-05-08 17:58:34 +02:00
Miodec
616d068e2f needsToUpdateName > needsToChangeName 2022-05-08 16:59:45 +02:00
Miodec
9e500172c3 reduced number of page changes to avoid double changes and hard to understand logic 2022-05-08 15:01:26 +02:00
Miodec
857a0e15c8 made page change async
added force param to force page change even if page is the same
setting page to account if page is login and user is signed in
2022-05-08 15:01:00 +02:00
Miodec
4926ec2949 added search override to url handlers 2022-05-08 14:57:47 +02:00
Miodec
ef49c6dcc8 setting quote length to all if user signed out 2022-05-08 13:44:43 +02:00
Miodec
3fbfc83fd0 added needsToUpdateName to frontend 2022-05-08 13:29:10 +02:00
Bruce Berrios
9026893571
Add favorite quotes mode (#2945) bruception
* Add favorite quotes mode

* Remove unnecessary repeated fn call

* resetting quote length to -1 when no favorites found

* fixed quote favoriting broken

* starting hidden

* showing/hiding button depending on login state

* added command to commandline

* removed comment

Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-05-08 11:58:58 +02:00
Miodec
c9bfb00008 Merge branch 'master' of https://github.com/Miodec/monkeytype 2022-05-08 09:53:19 +02:00
Miodec
78914ab91c moved average update lower 2022-05-08 09:53:13 +02:00
aNOOBis
5395cdf9f3
Create preset addition in presets in command line (#2957) aNOOBisTheGod
* create preset in command line addition

* testing removal

* one more testing removal

* create tag command line addition

* Update commandline-lists.ts

* moved add commands to the bottom
hiding if user is not signed in

* refactor

* hiding tags and presets when signed out

Co-authored-by: Vasiliy Novozhilov <vasya@192.168.1.3>
Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-05-08 09:35:49 +02:00
Miodec
9b9960628e updated message 2022-05-06 23:39:02 +02:00