Commit graph

90 commits

Author SHA1 Message Date
Bruce Berrios c8af14baab
Fix PR check action (#2447)
* fix

* Install all dependencies

* Fix PR check action

* Fix lint

* Update install.sh and remove pretty check
2022-02-08 22:17:26 +01:00
Bruce Berrios 957b4cf1a8
Endpoint schemas/Improved Auth Middleware (#2411) by Bruception
* Lots of stuff

* Changed code order

* Change message

* Use strict comparison

* Fix Bearer auth

* changed failed validation message

* removed full stops

Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-02-04 21:18:22 +01:00
Miodec a30b0b6295 added stack to log 2022-02-03 22:51:12 +01:00
Bruce Berrios 5beb1bf619
Update Configuration to handle arrays/ Add new db client (#2395)
* Update Configuration to handle arrays

* Add new db client

* Add comment
2022-02-02 19:26:43 +01:00
Miodec 05d3ead9ce ignoring eslint errors if argument begins with _ 2022-02-01 18:13:40 +01:00
Bruce Berrios 101c227599
Add Dynamic Server Configuration (#2385) by Bruception
* Add no frontend script

* Define context middleware

* Define base configuration schema

* Define configuration DAO

* Setup context middleware and live configuration fetch

* Remove patch configuration method

* Rename files for consistency

* Use plain object check

* Use plain object

* modified base configuration

* renamed config property

* brought back 2 properties

Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-01-31 22:47:58 +01:00
Bruce Berrios dafaad9158
Refactor cron jobs (#2357) by Bruception
* Refactor cron job configuration

* Refactor leaderboard update logic

* Update naming

* Refactor to use leaderboard dao

* Deduplicate top 10 query

* Fix oopsy

* Fix query order

* Undo method signature update

* Update new records detection logic

* Fix lint
2022-01-28 19:48:08 +01:00
Bruce Berrios fefe7cd9e9
Refactor routing configuration (#2356) by Bruception
* Refactor adding routes

* Fix lint

* Move root route

* Fix lint
2022-01-26 23:42:53 +01:00
Miodec 93bd15af28 changed status 2022-01-18 17:15:36 +01:00
Miodec 91bd2368cd moved the test route to the root route 2022-01-18 17:10:50 +01:00
Miodec 7c43a02765 changing error if connection was refused to the 27017 port 2022-01-18 15:42:32 +01:00
Miodec e7c86ee20a added consolelog 2022-01-14 14:44:35 +01:00
Miodec 6868ba4db6 removing stack before sending to user 2022-01-10 03:10:26 +01:00
Miodec ee0843b317 fixed error completely broken 2022-01-10 03:06:34 +01:00
Miodec bcc9c3d8b0 typo 2022-01-07 17:26:25 +01:00
Miodec 4b35a3df0e fixed incorrect parameter names 2022-01-07 17:24:58 +01:00
Miodec ba03f819fc lint warning fixes 2022-01-07 17:05:24 +01:00
Jack 82320266cd added api path override 2021-12-13 22:00:12 +00:00
Jack e7e5f08bb3 only sending bot command if result is recent 2021-11-20 19:45:13 +00:00
Jack 4372276169 only annoucing changes if timestamp is within 10 minutes 2021-11-20 18:19:47 +00:00
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 4afa2f089f fixed debug cron 2021-09-14 14:54:35 +01:00
Jack e8d73a898d announcing lb updates 2021-09-14 14:54:03 +01:00
Jack adac26883a deleting old logs 2021-09-14 00:10:56 +01:00
Jack 5cd8619cb5 making sure uid makes it into the db error 2021-09-13 15:40:12 +01:00
Jack a4d8efad1a fixed errors not being able to be logged 2021-09-10 14:18:40 +01:00
Jack b814a7fe4f moved leaderboard update back a bit 2021-09-10 01:04:40 +01:00
Jack 9ca0a96d2d running leaderboard updates together 2021-09-10 00:50:47 +01:00
Jack 050e18dd3e updated log once more,
logging errors
2021-09-10 00:03:01 +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 f83103727e Merge branch 'leaderboards' 2021-09-07 20:07:11 +01:00
Jack e7beb66543 changed leaderobards route 2021-09-06 17:35:03 +01:00
Jack ea32e158c5 updated maintenance message 2021-09-06 00:52:32 +01:00
Jack a05cd6f595 added maintenance mode 2021-09-06 00:52:05 +01:00
Jack 54c68e68bc init leaderboards branch 2021-09-05 23:57:07 +01:00
Jack e27ca6fcd6 added a psa system 2021-08-29 14:30:45 +01:00
Jack a5b431d55f trusting proxy 2021-08-27 21:52:49 +01:00
Jack 0cf93a6f00 quote rating api 2021-08-27 20:10:00 +01:00
Miodec 5ffd053d0a hopefully fixed error pointing to itself 2021-08-18 00:41:33 +01:00
Miodec 6f001ffc27 fixed error insert using wrong function 2021-08-18 00:33:14 +01:00
Miodec 5cfa792eb2 inserting monkey error into the database later to avoid recursive errors 2021-08-17 20:00:29 +01:00
Miodec 829a7bc10c reverted cors change 2021-08-16 18:01:52 +01:00
Miodec 85504136f5 cors update 2021-08-16 15:45:17 +01:00
Miodec 93998e2e49 test endpoint 2021-08-11 00:02:17 +01:00
Miodec 76fa65f03a fixed potential error when no decoded token is in the request 2021-07-13 15:11:38 +01:00
Miodec edd453bfef only logging to db when error is 500 and env is not dev 2021-07-09 21:18:50 +01:00
Miodec 60fcfe7f6b started converting presets to new system 2021-07-08 22:34:36 +01:00
Miodec 557f96c362 converted routes to plural 2021-07-08 22:22:18 +01:00
Miodec be75c9a3e5 updated error handling 2021-07-08 15:58:11 +01:00
Miodec 5fd1121d7b using monkey error 2021-07-08 12:30:06 +01:00