Commit graph

93 commits

Author SHA1 Message Date
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 76ee885a04 account button transition to loading circle is now animated 2022-09-02 00:00:33 +02:00
Miodec 52b6b5429e showing daily leaderboard in the result, not as a notification
closes #3096
2022-09-01 23:31:50 +02:00
decaf 453056a83e
show xp until next level on hover (#3484) decafff
Co-authored-by: decaf <decaf>
2022-09-01 11:37:02 +02:00
Miodec de895a1cd2 converted font size to use an input field allowing any font size 2022-08-30 22:34:27 +02:00
Miodec f5435ce789 changed name of custom attribute 2022-08-30 15:10:03 +02:00
Miodec e1ef545ee1 added xp breakdown element 2022-08-29 01:34:21 +02:00
Miodec 3d9040ba10 removed das 2022-08-26 12:55:45 +02:00
Miodec 2a50e0d5af changed the behaviour of show yesterday button
closes #3391
2022-08-22 15:44:20 +02:00
Miodec 5b378cc606 added reject all button to comply with gdpr
closes #3409
2022-08-22 15:09:13 +02:00
Christian Rudder fcd7c63440
Adding Korean Language Functionality (#3412) neezacoto
* fixing accuracy and functionality

* removed opacity for readability

* avoiding using any

* ㅎㅁㅁ스 ㅜㅐㅔ겨ㅓ

Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-08-22 13:45:22 +02:00
Miodec 7ed9d50383 allowing version popup to be closed with escape
closes #3377
2022-08-08 16:53:28 +02:00
Miodec 64c011911b missing hidden clas 2022-08-08 16:48:49 +02:00
Luke Weiler a53ea582e4
Added version indicator option 3 (#3393) lukew3
* Fix missing step in contributing advanced

* Removed condition that will never be hit

* Replace version banner with newVersionIndicator

* Update CONTRIBUTING_ADVANCED.md

* Changed newVersionIndicator to text

* Add negative margin to indicator to fix alignment

* close newVersionIndicator on click

* Removed show x on hover

* style touch ups

Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-08-08 16:12:41 +02:00
Miodec 7c8a41137a potential edge autocomplete fix 2022-08-03 16:17:45 +02:00
Miodec ce064dd1ad showing total xp on hover 2022-08-02 01:28:56 +02:00
Miodec c6a04adc44 showing xp gain 2022-08-02 01:11:07 +02:00
Miodec e48fdc2a89 added xp and levels 2022-08-02 00:21:09 +02:00
Jan Golebiowski 3a73954b45
Added config for displaying the keymaps top row (#3353)
* added config for displaying the keymaps top row

* fixed keysplit for top row

* prettier

* lined up top row properly

Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-07-31 12:47:31 +02:00
Guilherme Jun Grillo 641dc03f1c
Changes in the profile (#3352) guijun13
* feat(popup): change gh and tt input position

* feat(popup): add static url for gh and twitter

* fix(popup): lower input size & add margin between
2022-07-26 11:36:29 +02:00
Miodec 0b7800b6ca detecting adblock and cookie blockers
showing different messages based on that
2022-07-24 11:22:27 +02:00
Miodec 2ef62f9c19 using shorter word 2022-07-23 21:38:36 +02:00
Miodec 0cbec18bc7 showing both for now 2022-07-22 15:08:31 +02:00
Miodec 1940225f07 showing small message if ads are not working 2022-07-22 13:32:19 +02:00
Miodec 130eb17ae7 moved click handler to script files 2022-07-22 11:25:31 +02:00
Miodec 7444393a40 added a message that ads can be disabled 2022-07-21 17:49:50 +02:00
Miodec df79d5320f added watch video ad as a way to support monkeytype 2022-07-18 11:47:18 +02:00
Miodec 8cceaa2d4d moved support to the second place in the footer 2022-07-18 11:46:58 +02:00
Miodec 2159b7dc33 Merge branch 'master' into ads 2022-07-18 11:17:06 +02:00
Miodec e2c8733ed3 added wpm ranges to burst heatmap legend
closes #3338
2022-07-15 14:27:12 +02:00
Miodec 45ffa96e67 changed initial class 2022-07-15 14:05:15 +02:00
Miodec ab33865088 video ad callbacks 2022-07-12 22:45:35 +02:00
Miodec b9973f1277 ads 2022-07-12 13:01:26 +02:00
Aaron c1c7b97127
Update Links to Use New Org Name (#3327)
* Renamed command line setting timer-progress bar

* Use new org name
2022-07-09 14:14:42 +02:00
Miodec c62673837f reordered settings 2022-07-06 13:01:40 +02:00
YummyOreo e794bbd68d
Adds a reset account button to the settings page (#3206) YummyOreo
* adds reset button

* moves it up above the delete button

* i am blind

* i cant move stuff

* adds reset for the profile

* Adds reseting for ape keys, and presets, also adds more resets in the user settings

* Delets all ape keys not just one

* Prevents conflicts for delete endpoints

* changes from reset to deleteAll in ape keys

* Refactors the code to use Promise.all

* adds reloading

* unit tests ape key deletion

* fixes some bugs

* Fixes type o

* More typeo fixes

* Returns nothing for reset user

* Simplifies code

* changes from reset to deleteAll for all but users

* Checks db not the memory

* fixes typo

* fixes the tests

* fixes

* fixes bugs and refactors some code

* adds requireFreshToken to the authentication

* migrates all reseting to the user endpoint

* removes the delete all for ape unit test

* to lazy to make commit message

* parallelize the calls to the db (I think)

* also resetting config

* also resetting discordid and avatar

* using unset

* updated wording

* level 1 message

Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-07-06 12:59:40 +02:00
devkennyy 27a7358a11
🚧Improve tab usability (#3296) devkennyy
* 🚸Call `screenshot` after `Enter` is pressed

`screenshot` is only called on click which does not support tab usage.

* 🐛 Make `Contact` and `Donate` fields tabbable

* ️ Open leaderboard popup on `Enter` keypress

* ️ Open support popup on `Enter` keypress

* ️ Open contact popup on `Enter` keypress

* ✏️ Rename `Donate` field to `Support`

* ️ Hide `contact` and `support` popups on `Escape`
2022-07-06 12:32:21 +02:00
Miodec e60b2ae093 updated lazy mode description 2022-06-29 11:33:14 +02:00
Miodec 5bbb6a62a4 improved quick restart esc
pressing tab now opens the command line
you can still insert tab as character (shift tab to open the commandline if text has tab)
closes #3233
2022-06-28 17:57:43 +02:00
Miodec c4bd171f1a replaced manual background filters save with automatic
closes #3253
2022-06-28 13:02:44 +02:00
Miodec 05c03936fe clicking mail on the about page opens contact popup 2022-06-27 15:12:15 +02:00
Miodec 1855578925 updated more links 2022-06-27 15:09:27 +02:00
Miodec 47bae76e1c updated hrefs for consistency 2022-06-27 15:07:46 +02:00
Çağatay Yiğit Şahin a744a03073
fix the links in the footer for profile pages (#3249) 2022-06-27 15:06:24 +02:00
Evan 104786363f
use camelCase instead of dash separation (#3239) Ferotiq 2022-06-27 11:57:35 +02:00
smunky 8a6aecb127
rework captcha (#3224) devkennyy rizwanmustafa miodec
* rework captcha

* resolve conversations

* load captcha when needed

* Fix errors

* Create captchacontroller

* Fix errors

* using captcha controller in quote submit

* removed prettier ignore

* updated report quote popup

Co-authored-by: Rizwan Mustafa <rizwanmustafa0000@gmail.com>
Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-06-25 21:06:10 +02:00
Miodec 63bf85ac1c fixed first tab on results page focusing sign in instead of the restart button 2022-06-25 16:39:16 +02:00
Miodec 31cfeef2a9 removed leaderboards route for now 2022-06-25 12:31:31 +02:00
Jack 6499cedc28
Reworked route controller (#3220) miodec
* rewrote route controller

* showing loading by default

* links which are not external need data line attribute

* need to rewrite this

* page controller takes a page as parameter
removed page type

* default export

* going through the route controller instead of changing page directly

* resolving all code paths

* using navigate

* added 404, leaderboards route

* changed leaderboards button to a link

* removed click handler

* added page about route

* removed default export,
added settings page route

* removing pointer events from everything inside links

* navigating to account when on login page

* fixed console logs, using async

* added login and account pages

* moved code to their own functions

* allowing async functions

* defaulting content visible

* async

* fixed 404 not navigating correctly

* setting public path to root

* fixed paths

* using uid passed in through url params

* added 404 page, profile routes

* removed comment

* moved discord link flow to url handler

* allowing html

* not resetting state

* removed function

* handling logo click

* removed comments

* reomoved comments

* removed comments

* removed comments

* using new router

* basic 404 page

* buttons whicha are links have no underline

* correctly handling the take me back button

* updated button

* removed comments

* fixed account page profile link button

* updated 404

* removed comments

* removed comments

* removed comments
2022-06-24 22:12:52 +02:00
Jack 66074c8314
Inventory badge selection (#3210) bruception miodec
* Fixed badges not showing on all time leaderboards

* updated types to support inventory and single badge id

* Add badge selection

* Fix bug

* Remove unnecessary prefill

* using new inventory system

* added no balloon option

* updated text color

* not showing balloon

* updated styling for showing badges selection

* Add badge selection

Co-authored-by: Bruception <bberr022@fiu.edu>
2022-06-23 18:00:53 +02:00