Commit graph

6468 commits

Author SHA1 Message Date
Bruce Berrios
8c5b88ef5d
Migrate files to ts (#2581) 2022-02-23 22:17:17 -06:00
Ferotiq
8620b45ea7
fix some backend errors (#2580) 2022-02-23 21:54:38 -06:00
gimmerain4days
9d522d0c37
English 25k - Replace British Spellings (#2578) by gimmerain4days 2022-02-24 00:28:33 +01:00
Octahedron
78279cefae
Fixed octa8 semicolon/colon (#2579)
some silly goofball accidentally put the layout data incorrectly haha
2022-02-23 14:46:55 -06:00
Bruce Berrios
8dbf0966d1
Upgrade mongo library to 4.x.x (#2576) 2022-02-23 14:23:54 -05:00
Miodec
efea8afab2 logging database name 2022-02-23 18:40:14 +01:00
Charles Ancheta
65654624a6
Remove some @ts-ignores in frontend scripts (#2575)
* Remove some `@ts-ignores` in frontend scripts

- Create interfaces for `String` prototype and the `global` object
- Create type for errors in catch blocks
- Create partial type for Firebase user object
- Fix function signature of `objectToQueryString`
- Use strict equality on string comparisons

* Use Firebase types instead of partial types

* Revert "Use Firebase types instead of partial types"

This reverts commit 9d239205c7.

* Use Firebase types instead of partial types

* Move Global type to MonkeyTypes

- Also remove duplicate `TimeStats` type

* Create global alias instead of typecasting
2022-02-23 10:18:06 -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
Miodec
124e842115 Merge branch 'master' of https://github.com/Miodec/monkeytype 2022-02-23 13:45:52 +01:00
Samar Mohan
cc5eca2740
display 0 if the time typing is NaN. (#2571) 2022-02-23 13:35:09 +01:00
Miodec
6f67db0788 fixed page not changing to account after sign up
closes #2568
2022-02-23 13:29:57 +01:00
Miodec
c71baadc9b commented out worker file to avoid it producing errors and warnings 2022-02-23 13:24:53 +01:00
Miodec
34e1255cf9 fixed sticky banners media query not removing right icon 2022-02-23 13:19:19 +01:00
Miodec
a18fbc6a5f Merge branch 'master' of https://github.com/Miodec/monkeytype 2022-02-23 13:07:25 +01:00
Miodec
f00bc98db8 moved database down message to the top of the if stack 2022-02-23 13:07:18 +01:00
Ferotiq
b99a979370
remove run-script-os and change the script back (#2573) 2022-02-23 01:07:48 +01:00
Ferotiq
bf281d9ba7
Update english.json (#2572) 2022-02-23 00:50:53 +01:00
Jack
e57d864e9c
Update bug_report.yaml 2022-02-23 00:20:22 +01:00
Miodec
ad250d7f5c Merge branch 'master' of https://github.com/Miodec/monkeytype 2022-02-22 23:39:25 +01:00
Miodec
80f822c76a removed unnecessary types 2022-02-22 23:39:21 +01:00
Bruce Berrios
61f16584c9
Action anti cheat step (#2570)
* Add anti-cheat check

* Add anti-cheat step

* Test

* Revert

* .

* Fix
2022-02-22 23:02:37 +01:00
Miodec
91657fd53f reenabled helmet 2022-02-22 23:00:27 +01:00
Miodec
e18da7da87 added log message
using implemented checking function
2022-02-22 22:58:00 +01:00
Miodec
8c3c6d004d added anticheat stub 2022-02-22 22:50:47 +01:00
Miodec
12d0e95a75 removed anticheat from gitignore 2022-02-22 22:50:39 +01:00
Miodec
96323f2af5 new anticheat import 2022-02-22 22:41:01 +01:00
Miodec
72ba88a917 added unused vars ignore patters 2022-02-22 22:39:26 +01:00
Miodec
8dce406786 showing banner if server under maintenance
closes #2569
2022-02-22 21:31:52 +01:00
Miodec
9b7b0e257e disabled helmet middleware 2022-02-22 21:03:50 +01:00
Vi Mio
e53c2418e6
Add Blue Dolphin theme (#2560)
* add blue dolphin theme

* update _list.json
2022-02-22 20:56:05 +01: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
9eb4e6ac86 not saving signed out result if failed
fixes #2564
2022-02-22 18:50:13 +01:00
Miodec
d3b4bf9f1b Merge branch 'master' of https://github.com/Miodec/monkeytype 2022-02-22 18:40:46 +01:00
Miodec
2b5033ac1f removed evals completely 2022-02-22 18:35:59 +01:00
Miodec
10be208f0a not using evals 2022-02-22 18:11:53 +01:00
Souren Papazian
8d430b666c
Add western armenian language (#2556) 2022-02-22 14:35:41 +01:00
Angelo Fallaria
06ed2d4ddd
feat(language): add more words to code_rust.json (#2563) 2022-02-22 14:33:26 +01:00
Ferotiq
c0f2a066ff
Warn users on edge about disabling efficiency mode (#2562)
* add edge message

* Update test-timer.js

* Update test-timer.js
2022-02-22 14:12:48 +01:00
Ferotiq
80135166b2
Add TypeScript to the README (#2554) 2022-02-21 21:23:33 +01:00
Miodec
eb5bdc8712 optional 2022-02-21 21:19:53 +01:00
Miodec
1113b878a6 updated message 2022-02-21 14:45:56 +01:00
Miodec
58a78d4496 fixed type 2022-02-21 14:34:40 +01:00
Miodec
9c6f678748 fixed type 2022-02-21 14:34:28 +01:00
Miodec
47af9c25dc fixed incorrect type 2022-02-21 14:26:51 +01:00
Miodec
4622f1522d parsing to int first 2022-02-21 14:21:12 +01:00
Miodec
88a35c3d7c using parse float instead (im stupid) 2022-02-21 14:13:16 +01:00
Miodec
9996d90e42 parsing to int 2022-02-21 14:06:54 +01:00
Brian Evans
86d7207c39
Update privacy-policy to reflect mongodb (#2552)
Data is now stored in MongoDB, so I updated the privacy policy to reflect this change. Also updated the "last updated" date.
2022-02-21 13:57:02 +01:00
Miodec
6cf1f06d0d temporairly accepting both strings and numbers 2022-02-21 13:56:25 +01:00
Miodec
251b7234a4 fixed showavg duplication 2022-02-21 13:46:00 +01:00