Commit graph

34 commits

Author SHA1 Message Date
Miodec
6f235a2479 fixed name checking regex 2022-03-03 19:06:23 +01:00
Bruce Berrios
2f70d1ab8a
Add ApeKeys CRUD (#2606)
* Add ApeKeys CRUD

* Fix

* Omit ape key data

* Encode id + key
2022-03-01 11:11:01 -05:00
Bruce Berrios
8dbf0966d1
Upgrade mongo library to 4.x.x (#2576) 2022-02-23 14:23:54 -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
Miodec
b4288d9bd2 user tags not required when loading user 2022-02-03 23:18:30 +01:00
Miodec
0ef370ca80 added name to stack 2022-02-03 22:54:01 +01:00
Miodec
f269d0dfd8 clearing lb personal bests on clear pb 2022-01-08 15:31:40 +01:00
Jack
60e97f0791 better error message 2021-09-17 22:22:09 +01:00
Jack
74f4f8fc9c added more username validation 2021-09-14 15:38:44 +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
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
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
100cbc00ce added option to update account name 2021-08-28 00:54:12 +01:00
Jack
0cf93a6f00 quote rating api 2021-08-27 20:10:00 +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
Miodec
b5b619816b updated clear pb to new system 2021-07-12 23:34:55 +01:00
Miodec
674316784a converted email updating 2021-07-12 23:12:03 +01:00
Miodec
eb5137e11c fixed tag pbs not working as intended 2021-07-09 21:41:33 +01:00
Miodec
7ddf37f8a3 tags now use _id 2021-07-09 17:21:16 +01:00
Miodec
c730d5fa44 addings tags returns the created tag 2021-07-08 23:27:47 +01:00
Miodec
5306f82ec7 checking funbox when checking for pb 2021-07-08 22:19:34 +01:00
Miodec
3bd02d3292 converted tags to the new system 2021-07-08 16:03:52 +01:00
Miodec
c25986e407 fixed raw wpm not working in personal bests,
fixed started tests not considering the completed test
2021-07-07 14:04:12 +01:00
Miodec
32a2a73915 added delete user option, playing around with the return codes and formats 2021-06-16 20:20:16 +01:00
Miodec
ecef2da2eb added a is name available check 2021-06-16 00:45:28 +01:00
Miodec
7579442b8c missing variable 2021-06-13 20:18:23 +01:00
Miodec
e7c93f7620 reduced the amount of function parameters 2021-06-12 19:01:49 +01:00
Miodec
be23ab4168 added function to get a list of tags 2021-06-12 17:51:58 +01:00
Miodec
fdb2568d99 singular 2021-06-12 17:14:57 +01:00
Renamed from backend/dao/users.js (Browse further)