Commit graph

27 commits

Author SHA1 Message Date
Bruce Berrios
374a2089c3
Rename handlers to utils (#2620) 2022-03-03 16:31:57 -05:00
Bruce Berrios
1ba7a76b86
Migrate middlewares to TypeScript (#2574)
* Migrate middlewares

* Update workflow

* Fix ignore

* Fix

* Fix

* Remove babel loader from root dependencies

* Remove mongoDb
2022-02-23 10:03:38 -05:00
Bruce Berrios
f9d6f52c15
Api overhaul (#2555) by Bruception
* Feat:Update response structure (#2427)

* Fix:response and error structure

* update:response message

* update:response class

* update

* Update response message

Co-authored-by: Mustafiz Kaifee Mumtaz <mustafiz.mumtaz@freecharge.com>

* Add MonkeyToken foundation (#2487) by Bruception

* Api changes (#2492)

* API changes

* Remove unused import

* Add Ape client (#2513)

* Add all endpoints (#2514)

* Merged backend typescript into api overhaul (#2515)

* Install typescript and add backend tsconfig

Cannot yet build due to a number of compilation errors in JS code

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Fix typescript compilation errors

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Migrated backend to ES modules

Switched to import export syntax

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Add typescript declaration for anticheat

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Rename top level files to .ts

Fix service account json file typing

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Add dev build scripts for backend typescript

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Removed empty lines and switched to using db

Cleaned up imports by removing needless empty lines and migrated to the new db.js instead of mongodb.js.

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Fixed backend commonjs syntax to ES module syntax

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Add build to backend start script

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Migrate some endpoints to Ape

* Strict equals

* Remove artifact

* ape -> Ape

* Ape migration p2 (#2522)

* Migrate leaderboard endpoints to ape

* Fixed comment

* Init backend types

* Fail

* Return

* Migrate Quotes to Ape (#2528)

* Migrate quotes to Ape

* Fix backend response

* Fix issue

* Fix rate limit (#2533)

* fix rate limit

* Fix import

* Fix issues

* Ape migration p4 (#2547)

* Migrate results endpoints to ape

* Remove unused import

* Remove unused import

* Fix loaders

* Make function async

* Hide try saving results

* Migrate some users endpoints to Ape (#2548)

* Complete Ape Migration (#2553)

* Complete ape migration

* Fix preset

* Return preset data

* Add typings

* Move captcha reset

* Read from params

* Fix result tags endpoint

* Fix stuck loader

* fixed lb memory not saving

* fixed quote rating popup not showing up for new users

Co-authored-by: Mustafiz Kaifee <49086821+Mustafiz04@users.noreply.github.com>
Co-authored-by: Mustafiz Kaifee Mumtaz <mustafiz.mumtaz@freecharge.com>
Co-authored-by: Brian Evans <53117772+mrbrianevans@users.noreply.github.com>
Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-02-22 20:55:48 +01:00
Bruce Berrios
f4a9147308
Setup PR check action (#2445) by Bruception 2022-02-08 21:27:14 +01:00
Cameron
e56d534f33
fix: endpoints share the same rate limit (#2136) by CameronCT
* fix: cleaned rate limiter

* chore: separated ratelimits per request

* fix: bug where leaderboards would crash
2021-11-30 00:49:05 +00:00
Jack
447ab9dfc4 allowing disk use for leaderboard aggregation 2021-10-05 15:08:54 +01:00
Jack
0566c25b9f checking if lbpb has timestamp 2021-09-20 22:55:04 +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
e8d73a898d announcing lb updates 2021-09-14 14:54:03 +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
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