Commit graph

7403 commits

Author SHA1 Message Date
Bruce Berrios 8144ea9077
Refactor some code (#3205) 2022-06-23 02:01:48 +02:00
Bruce Berrios 4a0db5c14e
Fix bug (#3204) 2022-06-23 01:54:13 +02:00
Miodec b2cab171b8 showing website name instead of full url 2022-06-23 01:36:22 +02:00
Miodec 90ae4938c4 removed users that need to change their name from the leaderboards 2022-06-23 01:18:29 +02:00
Miodec 38dc115e60 fixed name not scaling on the profile page
closes #3196
2022-06-23 01:16:54 +02:00
Miodec 005eb4cc68 Merge branch 'master' of https://github.com/Miodec/monkeytype 2022-06-23 00:34:36 +02:00
Miodec d8a246c8f0 showing all badges on profile 2022-06-23 00:33:12 +02:00
Miodec adf02e7c90 added monkey supporter 2022-06-23 00:31:46 +02:00
Cody Bloemhard cce4cd34e6
Fix type in language code_haskell (#3203) codybloemhard
Fix `loopup` to `lookup`.
2022-06-23 00:21:16 +02:00
Miodec 26a9ff5930 fixed closing div in the wrong spot 2022-06-23 00:13:17 +02:00
smunky 79d1071b3e
added bug hunter and white hat badges (#3202)
* added bug hunter and white hat badges

* corrected 'in the code' to 'on the site'

* edited descriptions

* changed white hat icon

* changed spotted to reported
2022-06-23 00:07:28 +02:00
Miodec aad79660af allowing html 2022-06-22 23:47:24 +02:00
Miodec 3274bf8bbb new line 2022-06-22 21:03:22 +02:00
Miodec 3ab1e4d796 made the psa fail message less techy 2022-06-22 20:53:45 +02:00
Miodec bf1664e49e added notext option to get badge html 2022-06-22 17:51:26 +02:00
Miodec 5fd131480d Merge branch 'master' of https://github.com/Miodec/monkeytype 2022-06-22 15:13:40 +02:00
Miodec de37ca7cbe added note about avatars to the edit profile popup 2022-06-22 15:12:50 +02:00
R0merol 50b26b0934
Fixed punctuation and quote length (#3193) R0merol
* Fixed punctuation (id: 163)

* Fixed quote length (id: 163)
2022-06-22 12:13:14 +02:00
Miodec 9d2dfa9754 Merge branch 'master' of https://github.com/Miodec/monkeytype 2022-06-22 12:12:24 +02:00
Miodec 1545ecc1b2 disabled autorole 2022-06-22 12:12:18 +02:00
Bruce Berrios daa7529f3d
Webpack configs housekeeping (#3179) bruception 2022-06-22 12:11:14 +02:00
aria 5b4dfce534
Added 8 more English quotes (#3166) holyhearted
* Added 5 quotes

* fixed lengths and added MORE quotes

* merged current with prior stream

* Fetching upstream (#1)

* extended: language 'code rust' (#3104)

Added all derives and some very common traits as well as `pub(crate)`.

* added one english quote (#3094)

* added one english quote

* added one english quote

* updated the quote id 6095

* Custom Filters [Backend] (#3105)

* Added `ResultFilters` to types
Added customFilters field to user
This field is an optional array of `ResultFilters`
It will store a user's custom filters

* Added Add and Remove functions for `ResultFilters` in user DAL

Also added unit tests

* Added Custom Filter configuration

Can now enable/disable the custom filters feature
Can also set a cap on the number of filters per user

* Add and Remove functions for `ResultFilters` in user controller

* Added one english quote (#3109)

* added one english quote

* added one english quote

* updated the quote id 6095

* Added english quote id 6096

* Custom Filters [Backend] (#3105) (#3110)

* Added `ResultFilters` to types
Added customFilters field to user
This field is an optional array of `ResultFilters`
It will store a user's custom filters

* Added Add and Remove functions for `ResultFilters` in user DAL

Also added unit tests

* Added Custom Filter configuration

Can now enable/disable the custom filters feature
Can also set a cap on the number of filters per user

* Add and Remove functions for `ResultFilters` in user controller

* Added Haskell programming language (#3108)

* added: code_haskell language;

* fixed: missing comma;

* Contributing typos fix (#3114)

* 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

* russian_25k and russian_50k addition

* russian 375k addition

* lil fix

* fixed windows auto-reload error

* Revert "fixed windows auto-reload error"

This reverts commit ea22621232.

* Revert "Revert "fixed windows auto-reload error""

This reverts commit 669cec4217.

* Revert "Revert "Revert "fixed windows auto-reload error"""

This reverts commit d90352633c.

* themes popup small fix

* using &&

* some typos fixed

Co-authored-by: Miodec <bartnikjack@gmail.com>
Co-authored-by: Vasiliy Novozhilov <vasya@192.168.1.3>

* Fix yesterday toggle button (#3107)

Co-authored-by: Cody Bloemhard <cblmhrd@live.nl>
Co-authored-by: Jitesh Kumar Sahoo <77315098+Jitesh117@users.noreply.github.com>
Co-authored-by: Malo Hamon <hamon.malo@gmail.com>
Co-authored-by: aNOOBis <69043738+aNOOBisTheGod@users.noreply.github.com>
Co-authored-by: Miodec <bartnikjack@gmail.com>
Co-authored-by: Vasiliy Novozhilov <vasya@192.168.1.3>
Co-authored-by: Bruce Berrios <58147810+Bruception@users.noreply.github.com>

* fixed ids and added more quotes

* i sincerely hope this is the LAST TIME I DO THIS

* more quotes!

* removed inappropriate quote

* added more long english quotes

* added more whitespace between dashes

* fixed lengths for 5999, 6116 & 6117

* fixed lengths

* i don't have eyes

Co-authored-by: Cody Bloemhard <cblmhrd@live.nl>
Co-authored-by: Jitesh Kumar Sahoo <77315098+Jitesh117@users.noreply.github.com>
Co-authored-by: Malo Hamon <hamon.malo@gmail.com>
Co-authored-by: aNOOBis <69043738+aNOOBisTheGod@users.noreply.github.com>
Co-authored-by: Miodec <bartnikjack@gmail.com>
Co-authored-by: Vasiliy Novozhilov <vasya@192.168.1.3>
Co-authored-by: Bruce Berrios <58147810+Bruception@users.noreply.github.com>
2022-06-22 12:08:11 +02:00
smunky 3e614d3984
replaced edit with save (#3191) 2022-06-21 19:25:28 -04:00
Bruce Berrios 4fa24c0bc3
Fix rank scrolling (#3187)
* Fix rank scrolling

* Add await
2022-06-21 22:44:54 +02:00
Bruce Berrios af34ccaa56
Add ñ as an accent (#3188) 2022-06-21 22:36:01 +02:00
Bruce Berrios 7f26f33445
Fix consistency bug (#3189) 2022-06-21 22:35:43 +02:00
Miodec e196f3f6be fixed no column definition 2022-06-21 21:47:21 +02:00
Miodec 801b6763b0 width 100% 2022-06-21 21:03:43 +02:00
Miodec 4ef5cda7ca fix quote lengths 2022-06-21 20:59:17 +02:00
Bruce Berrios ba111e6764
Fix leaderboard avatars (#3181) Bruception, zachstence
* Fix leaderboard avatars

* Allow HTML

* Use function notation

* Use utility

* Fix

* larger image

* not that large

* requesting png

Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-06-21 20:50:33 +02:00
Miodec b82e6dc0bb addressed user quote reports 2022-06-21 18:43:40 +02:00
Miodec 2aed8d4603 Merge branch 'master' of https://github.com/Miodec/monkeytype 2022-06-21 18:04:48 +02:00
Miodec ea004365c9 typo 2022-06-21 18:04:42 +02:00
Bruce Berrios 11740a5399
Fix webpack config (#3178) 2022-06-21 16:36:09 +02:00
Miodec 275b7cf3fa also added swapescandtab 2022-06-21 15:29:44 +02:00
Miodec 4eec1db25f changed banner message when using localhost 2022-06-21 12:09:23 +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
smunky 5bf7caf3df
fix webpack reloading twice (#3176) devkennyy 2022-06-21 11:56:50 +02:00
Miodec bca69b6f09 Merge branch 'master' of https://github.com/Miodec/monkeytype 2022-06-20 16:32:05 +02:00
Miodec 3e5982f1de temporairly allowing quicktab 2022-06-20 16:31:59 +02:00
Bruce Berrios 6a3f01f6a9
Fix logic to not delete user if DB goes down (#3171) 2022-06-20 16:10:43 +02:00
Jack ae300bfa94
Disabled time typing requirement on dev (#3169)
* checking if mode is dev when adding to daily lb

* disabled time typing check on dev when recalculating leaderboards

* not replacing footer on localhost

* using ternary

* modified logic
2022-06-20 15:06:35 +02:00
Bruce Berrios 6668575cea
Refactor webpack configs (#3170)
* Refactor webpack configs

* Remove unused import
2022-06-20 15:06:22 +02:00
smunky df2a9e7f01
fixed typos (#3160) devkennyy
* fixed punctuation

* fixed last updated date

* replaced un-permitted with prohibited

* fixed last updated date
2022-06-20 13:45:20 +02:00
Miodec 6e34ebf5c1 fixed quote 2022-06-20 13:38:15 +02:00
smunky 5180dc64f5
added missing challenge (#3159) devkennyy
* added look at me i am the developer now challenge

* fixed accuracy challenge

* added message for accuracy challenges

* moved i am the developer now challenge with other script challenges

* added script for challenge
2022-06-20 13:04:46 +02:00
Miodec 9923a0e6e6 Merge branch 'master' of https://github.com/Miodec/monkeytype 2022-06-20 13:02:13 +02:00
Miodec 86082d9eba updated contributors 2022-06-20 13:00:53 +02:00
smunky 3ef606ffbc
create supporter and sugar daddy badges (#3156) devkennyy
* create supporter and sugar daddy badges

* modify descriptions and colors

Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-06-20 12:58:31 +02:00
karimk123 a09849752d
Adjusted Caps warning position (#3148) karimk123 miodec
* Adjusted Caps warning position

the caps warning div was blocking the test modes text so i moved it up a little.

* animating based on the focus state instead to always stay at the correct distance from the content below

Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-06-20 12:56:00 +02:00