Commit graph

712 commits

Author SHA1 Message Date
Miodec de895a1cd2 converted font size to use an input field allowing any font size 2022-08-30 22:34:27 +02:00
Bruce Berrios 4b49900d57
Add inbox (#3458) Bruception
* Add basic inbox

* Changes

* Remove export

* Move condition

* Use for each
2022-08-30 15:19:26 +02:00
Miodec e43a30b39d building breakdown object on the server 2022-08-29 01:33:18 +02:00
Bruce Berrios 0dfa3ef773
Urgent (#3457) 2022-08-27 20:39:02 +02:00
Bruce Berrios 87a0da839a
Add endpoint for getting server config (#3431) Bruception
* Add endpoint for getting server config

* Fix route stack

* Add comment
2022-08-23 12:24:37 +02:00
Miodec 453e88599f removed another one 2022-08-22 16:16:58 +02:00
Miodec 4c4f20313f removed word from profanities 2022-08-22 16:16:40 +02:00
Miodec 6f41db5575 30 instead of 7 days 2022-08-22 14:27:36 +02:00
Bruce Berrios 5a0e8ae72e
Housekeeping (#3374) 2022-08-08 16:16:07 +02:00
Bruce Berrios 43a384c0e0
Fix/refactor xp (#3373) bruception
* Fix/refactor xp

* Prettier fixes

* Prettier
2022-08-06 16:57:01 +02:00
Miodec cf15878713 calculating daily bonus based on the total user xp, up to 1000 2022-08-05 15:40:35 +02:00
Miodec 115d32ab26 disabled daily bonus for now 2022-08-05 15:19:12 +02:00
Miodec 18c7d7db18 fixed server always reporting daily bonus 2022-08-05 15:13:07 +02:00
Miodec 2ee84972ee catching error 2022-08-05 00:56:17 +02:00
Miodec a32821c02e added min values in result schema 2022-08-05 00:33:11 +02:00
Miodec fdcc1337ae added daily bonus 2022-08-05 00:27:06 +02:00
Miodec 84443d8f8b allowing custom 2022-08-04 18:30:36 +02:00
Miodec 3b4229ffc1 Merge branch 'master' of https://github.com/Miodec/monkeytype 2022-08-04 17:41:11 +02:00
Miodec cc6234f2b9 using long 2022-08-03 23:17:50 +02:00
YummyOreo 9cbcdf9062
resets the xp when reseting account (#3359) YummyOreo
* resets the xp when reseting account

* adds test for reseting user
2022-08-03 16:28:46 +02:00
Miodec fb4c47792c removed custom onresponsefinish function 2022-08-02 20:31:41 +02:00
Miodec da4aac9a15 adjusted punctuation and numbers modifiers 2022-08-02 00:49:03 +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
Aayush Paurana 725a074bd8
making profile endpoint accessible with ape keys and adding the relev… (#3317)
* making profile endpoint accessible with ape keys and adding the relevant documentation #3256

* withApeRateLimiter middleware added #3265

* fixed documentation errors #3256

* fixed documentation errors #3256
2022-07-20 11:22:27 +02:00
Miodec b9973f1277 ads 2022-07-12 13:01:26 +02:00
Bruce Berrios af70bc5971
Bump coverage (#3314) 2022-07-06 21:01:58 +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
smunky 695bccedee
remove quickTab and swapEscAndTab from config-schema (#3311) 2022-07-06 11:22:35 +02:00
Bruce Berrios 0dd2539bf7
Add minor optimization (#3294) 2022-07-03 15:57:09 +02:00
Miodec 6e6ba3bf9d Merge branch 'master' of https://github.com/Miodec/monkeytype 2022-07-02 19:04:03 +02:00
Miodec 5dac8020c2 importing performance 2022-07-02 19:03:12 +02:00
Bruce Berrios 616e26b5c5
Add version commit hash (#3286)
* Add version commit hash

* Add frontend client hash

* Remove export
2022-07-02 18:49:13 +02:00
Miodec 162beea1b8 removed log 2022-07-02 18:19:45 +02:00
Miodec d14a582cb8 sending different path to prometheus 2022-07-02 17:39:48 +02:00
Miodec 9acd68e99f optional chain 2022-07-02 14:34:01 +02:00
Bruce Berrios da61bfb83c
Refactor auth (#3291) 2022-07-02 14:23:51 +02:00
Miodec b3ef10ddc2 typo 2022-07-02 13:55:26 +02:00
Miodec 7b8a66779c removing get form path for measuing 2022-07-02 13:54:45 +02:00
Miodec 3f98c4b801 recording time to auth in prometheus 2022-07-02 13:43:40 +02:00
Miodec 211ab8ab8e removed try it out button from docs 2022-07-01 11:57:07 +02:00
Jack db3b6755b8
Rewriting middleware tests (#3266)
* aoaoaooao

* different attempts

* figured out the test

* added another test

* redefining next before each function, checking next call count

* removed eslint ignore
2022-06-30 16:31:06 +02:00
Miodec b813dd5aa0 running tests sequentially 2022-06-30 01:33:23 +02:00
Miodec 8ec307c837 added authentication tests 2022-06-30 01:15:06 +02:00
Miodec 8d17f699df removed log 2022-06-30 00:59:14 +02:00
Miodec 4b423a5484 removed condition (iat is guaranteed to be there) 2022-06-30 00:12:23 +02:00
Miodec 2aa251fc46 moved logic to another function 2022-06-30 00:11:09 +02:00
Miodec 9085b5af9d added fresh token requirement 2022-06-30 00:03:58 +02:00
Bruce Berrios 9da5e441be
Add new rate limiting flow (#3230) Bruception
* Add new rate limiting flow

* Oops

* Fix nit

* Fix some bugs

* Split key generation functions

* Remove 429

* Change message for root limiter

* Flag 429 and add config

* Add status code config

* Check enabled flag

* Add custom status for ape keys

* Bump coverage

* swapped conditions around
whats the point of checking if the status code is in the array if the whole thing is turned off anyway

Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-06-28 13:45:57 +02:00
Bruce Berrios a552c127f8
Refactor Users DAL (#3223)
* Refactor two calls

* Return void

* Remove update result

* Remove delete result
2022-06-25 16:56:43 +02:00