Commit graph

701 commits

Author SHA1 Message Date
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
Bruce Berrios
f30fa1c9d5
Fix all time lb again (#3219) 2022-06-24 16:15:47 +02:00
Bruce Berrios
1346dd669c
Tune profanity detection (#3214)
* Tune profanity detection

* Remove console log

* Remove profanity

* Add tests for profanity

* Fix test case
2022-06-24 11:17:43 +02:00
Bruce Berrios
b0b39c7dc5
Fix leaderboard update bug (#3217)
* Fix leaderboard update bug

* Add test for sanitize string
2022-06-24 11:16:53 +02:00
Miodec
9231250afd removed hell 2022-06-24 11:14:06 +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
Evan
87a5bae7d2
remove monkeytype-js from the docs (#3213) 2022-06-23 11:44:23 -04:00
Jack
d26d7d0555
Converted badges to inventory (#3209)
* added inventory type

* new badges

* fixed badges not showing on all time leaderboards

* sending the selected badge id to daily lb

* returning inventory in profiles

* updated types to support inventory and single badge id

* fixed all badges not showing on profile page

* removed await

* smol refactor
2022-06-23 15:47:15 +02:00
Miodec
90ae4938c4 removed users that need to change their name from the leaderboards 2022-06-23 01:18:29 +02:00
Miodec
275b7cf3fa also added swapescandtab 2022-06-21 15:29:44 +02:00
Bruce Berrios
db9dcafc25
Add User Profiles (#3174)
* profile

* rounded table corners

* rounded leaderboards corners

* wider page by default

* v3

* font changes

* new pbtables

* blank by default

* showing pb popup

* removed some quotes

* rounding displayed acc

* removed created date (will be shown in profile)

* added profile module that fills the profile element

* updating font size in the middle of the swap to make the change not noticeable

* lowered max font size

* showing if user is banned,
not displaying most details if user is banned

* pbs not selectable

* renamed global stats to time typing

* completed previous commit

* changed function parameters

* only hiding when social is missing

* smaller badge

* aligning quick results
spanning time if wide

* larger badge

* fixed function parameters

* moved to root

* media queries

* Add user profile API (#3123) bruception

* Add flattenObjectDeep

* Add user profile API

* Bump coverage

* Add user profile configuration and rate limits

* Rename profile -> profileDetails

* Simplify

* Filter personal bests

* Handle banned users

* Add banned user test

* new profile layout system
"none" layout finished

* better "none" layout

* "socials" layout

* larger gap

* bioandkey layout done

* "both" layout finished

* final touches

* Add profile editing (#3135)

* Add profile editing

* lowered font size
increased right padding

* updated configuration schema

* moved discord integration to users object in configuration

* added warning comment

* rendering new lines

* edit popup styling

* Sanitize ZAlgo text

* Use trim

* Replace more than 2 spaces with two spaces

* Trim first

* Add profanity detection

* Ass

* Removed some profanities

* Update profanity detection

Co-authored-by: Miodec <bartnikjack@gmail.com>

* Add profile routing (#3143) bruception miodec

* Add profile routing

* removed check (also fixes circular deps)

* change page in special cases

* Hydrate profiles

* Link leaderboards to profiles

* Add failed to load div

* Dont refresh page

* always calling middle callback

* moved profile css into its own file

* fixed one media query

* added preloader, changed default layout

* added reset function
changed function name
updating profile before the page is shown, not after

* resetting after the page is hidden and before its updated

* Fix logic to not delete user if DB goes down (#3171)

* Dont route to account if uid equals current user uid

* temporairly allowing quicktab

* added copy link button

* only increasing padding on the account page

* set max height

* handling copy link button

* only showing avatar if it exists

* 1000 instead of 100

* removing placeholder if image request was successful

Co-authored-by: Miodec <bartnikjack@gmail.com>

* Fix quote length field

Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-06-21 12:01:55 +02:00
Miodec
bca69b6f09 Merge branch 'master' of https://github.com/Miodec/monkeytype 2022-06-20 16:32:05 +02:00