monkeytype/backend/dao
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
..
bot.js announcing lb updates 2021-09-14 14:54:03 +01:00
config.js config is not required to load user data 2021-07-13 13:20:54 +01:00
leaderboards.js allowing disk use for leaderboard aggregation 2021-10-05 15:08:54 +01:00
new-quotes.js Quote submission (#1984) 2021-10-10 22:46:35 +01:00
preset.js switched presets to _id 2021-07-09 15:50:15 +01:00
psa.js added a psa system 2021-08-29 14:30:45 +01:00
public-stats.js got public stats to work 2021-08-02 16:21:14 +01:00
quote-ratings.js storing average quote score in the database 2021-08-31 19:12:04 +01:00
result.js marking all results coming from the input rewrite 2021-09-29 14:21:35 +01:00
user.js better error message 2021-09-17 22:22:09 +01:00