Commit graph

91 commits

Author SHA1 Message Date
Jack cf8d258400
Quote submission (#1984)
* added new-quotes get and add routes

* added new-quotes/approve route to api

* Added front-end for quote submission

* fix language typo, force lowercase language

* Check for duplicate quote

* added unknown language handling to quote-submit

* npm i

* npm i

* language dropdown instead of input field

* mouse down instead click

* styling changes

* moved quotemod check to the controller,
added refuse endpoint,
added ability to approve and edit

* limiting quotes

* added log to quote approve

* added approve quotes button

* typo

* using the correct function, lowered limit

* added quote approve popup

* getting quotes and showing them

* error checking

* error checking

* removed console log

* stylng changes,
added refresh list button

* added disabled class

* styling changes

* handling button clicks
showing langauge and timestamp

* check if user is a quote mod

* approve button handling

* handling quote edit

* showing short quotes in red

* post, not get

* not parsing quote id to int

* parsing to objectid

* updated styling

* fixed lint warnings

* fixed up new quotes dao

* showing loader

* calling function correctly

* typo fix

* fixed wrong path,
fix broken newid,
saving file when file exists,
searching for the quote correctly when attempting to delete

* showing message

* blocking buttons and inputs when waiting for response,
unlocking after response

* deleted workflow

Co-authored-by: lukew3 <lukew25073@gmail.com>
2021-10-10 22:46:35 +01:00
Jack 447ab9dfc4 allowing disk use for leaderboard aggregation 2021-10-05 15:08:54 +01:00
Jack 614f7fde03 marking all results coming from the input rewrite 2021-09-29 14:21:35 +01:00
Jack 0566c25b9f checking if lbpb has timestamp 2021-09-20 22:55:04 +01:00
Jack 60e97f0791 better error message 2021-09-17 22:22:09 +01:00
Jack f38733da10 using estimated document count instead of a deprecated function 2021-09-17 22:07:44 +01:00
Jack 13976921be added top % display. closes #825 2021-09-17 20:59:45 +01:00
Jack 74f4f8fc9c added more username validation 2021-09-14 15:38:44 +01:00
Jack e8d73a898d announcing lb updates 2021-09-14 14:54:03 +01:00
Jack c063012e9e added lazy mode 2021-09-13 17:28:00 +01:00
Jack e90a250f92 reverted change made for testing 2021-09-13 15:46:54 +01:00
Jack 7e682136f7 added protection against duplicate user docs 2021-09-13 15:40:00 +01:00
Jack e24e95e59c creating index on the correct collection this time 2021-09-10 14:15:49 +01:00
Jack d5e21757c6 indexing leaderboard 2021-09-10 14:11:38 +01:00
Jack 1239f6ecae removed sort 2021-09-10 00:27:31 +01:00
Jack a740d9f63e changed event name for lb update 2021-09-10 00:00:56 +01:00
Jack b3f2aa544c not checking leaderboards on test complete
updating test leaderboards every 5 minutes
2021-09-09 23:39:10 +01:00
Jack 3d4f985cc6 better time logging 2021-09-09 19:24:34 +01:00
Jack 0984d5777d sorting lb, added perf require 2021-09-09 19:09:17 +01:00
Jack a966aa3431 added logging 2021-09-09 17:41:13 +01:00
Jack 803025f80c not including banned users 2021-09-07 20:14:25 +01:00
Jack 1c710d609e removed old lb code 2021-09-07 17:44:54 +01:00
Jack e6f701c3cb added update lb memory function to user api 2021-09-07 16:36:06 +01:00
Jack 9140e1654b lbpersonalbests will now resist even when clearing personal bests - will only be overridden if a new higher wpm was found than the one stored 2021-09-07 15:04:16 +01:00
Jack febee299ba fixed function that searches by objectid 2021-09-07 15:03:24 +01:00
Jack b931730ae9 fixed typo 2021-09-07 15:03:11 +01:00
Jack c41e26e051 changed default to 100 2021-09-07 00:56:29 +01:00
Jack 5b85f11a19 added skip and limit 2021-09-06 20:36:09 +01:00
Jack 828e219e64 added getrank function 2021-09-06 17:35:37 +01:00
Jack f03f7ba9d2 updated aggregate function 2021-09-06 00:11:09 +01:00
Jack eccbcfb615 lost stash 2021-09-06 00:00:40 +01:00
Jack 97f328f88c d 2021-09-06 00:00:01 +01:00
Jack 54c68e68bc init leaderboards branch 2021-09-05 23:57:07 +01:00
Brian Evans 71663fc277
Fix update account name rate limit (#1800)
Change rate limit from seconds to milliseconds
2021-08-31 20:56:39 +01:00
Jack 0fad58b640 storing average quote score in the database 2021-08-31 19:12:04 +01:00
Jack e27ca6fcd6 added a psa system 2021-08-29 14:30:45 +01:00
Jack 100cbc00ce added option to update account name 2021-08-28 00:54:12 +01:00
Jack 82a45bfb7d increased fake result security by hasing objects and checking duplicate timestamps 2021-08-27 21:00:11 +01:00
Jack 0cf93a6f00 quote rating api 2021-08-27 20:10:00 +01:00
Corey 25ec1c54e7
Auto-assigning challenge roles for discord (corey <-- real) (#1751)
* sending bot command to db

* verifying challenge completion

* added requirements

Co-authored-by: Corey <coreybergeron1@gmail.com>
2021-08-23 15:07:13 +01:00
Miodec 367b104679 better errors 2021-08-18 01:41:29 +01:00
Miodec c64cc2d538 better errors 2021-08-18 01:37:48 +01:00
Miodec 87e3333c12 disabled quote pbs 2021-08-17 21:54:14 +01:00
lukew3 dbeb90c077 check leaderboard qualification and fix daily lb not limiting to today 2021-08-10 13:56:22 -04:00
lukew3 79da897ef4 leaderboard queries results 2021-08-09 21:31:19 -04:00
Miodec 99fca1b3e3 inverted result sorting 2021-08-04 14:37:15 +01:00
Miodec 1a9973e786 not used for now 2021-08-03 16:03:31 +01:00
Miodec 0cf495e127 got public stats to work 2021-08-02 16:21:14 +01:00
Miodec 1ae537e288 added account deletion to the danger zone 2021-07-25 00:44:24 +01:00
Miodec bcff39081d config is not required to load user data 2021-07-13 13:20:54 +01:00