Commit graph

71 commits

Author SHA1 Message Date
Miodec
6c31faab0c added package to update a files modified date
this fixes issues where firebase deploy would not upload the file (because gulp doesnt update the modified date)
2022-02-01 13:34:05 +01:00
Miodec
0cc74791fb switched hashing package
now using node-object-hash
added a configuratoin property to enable/disable hashing
part of #2389 and #2250
2022-02-01 13:13:59 +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
Miodec
68de7cfb89 exact package version 2022-01-31 16:08:15 +01:00
Miodec
28b59945ee Merge branch 'master' of https://github.com/Miodec/monkeytype 2022-01-29 22:03:37 +01:00
Bruce Berrios
7ce9146c7d
Add initial report quote endpoint (#2367) by Bruception
* Add initial report quote endpoint

* Tune rate limiter for report quote

* Tune rate limiter

* Increase max comment size

* Add supported languages to schema validation

* Fix naming
2022-01-29 22:03:02 +01:00
Miodec
d9b9fd64b5 minifying js 2022-01-29 21:00:08 +01:00
Miodec
bc96330ae9 moved node fetch to 2.6.7 2022-01-26 23:38:48 +01:00
dependabot[bot]
566b44df28
Bump node-fetch from 2.6.1 to 3.1.1 (#2338)
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 3.1.1.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/main/docs/CHANGELOG.md)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v3.1.1)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-25 11:26:19 +01:00
Miodec
f64660174d added dynamic sw cache name that changes on compile 2022-01-15 20:34:42 +01:00
Miodec
ecaff47af9 Revert "added word definition fetching on click"
This reverts commit 80ed5f3d63.
2022-01-04 12:44:22 +01:00
Miodec
adf358e1b3 added word definition fetching on click 2022-01-04 12:43:43 +01:00
Miodec
b8ef24485e Revert "added word definition fetching on click"
This reverts commit 80ed5f3d63.
2022-01-04 12:30:08 +01:00
Miodec
80ed5f3d63 added word definition fetching on click 2022-01-04 12:28:19 +01:00
Jack
c17969e15a updated versions 2021-10-13 20:25:10 +01: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
747abee4aa added eslint github formatter 2021-10-10 16:22:34 +01:00
Jack
147602e927 added eslint json plugin 2021-09-30 23:15:50 +01:00
Jack
860de29955 better agent log 2021-09-25 13:49:46 +01:00
Jack
fb7e5cae3a removed mongoose dependency 2021-09-15 12:08:44 +01:00
Jack
2e8d09af1a added cron 2021-09-09 23:38:42 +01:00
dependabot[bot]
0b4c9138bb
Bump axios from 0.21.1 to 0.21.2 (#1824)
Bumps [axios](https://github.com/axios/axios) from 0.21.1 to 0.21.2.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.21.1...v0.21.2)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-08 22:48:58 +01:00
Jack
b10085e0c7 updated dev db script to only watch for changes in the backend directory 2021-08-28 00:07:03 +01:00
Jack
423990ab3b added api rate limiting 2021-08-27 21:40:38 +01:00
Jack
166b6c10e7 added object hash 2021-08-27 19:10:39 +01:00
Miodec
71123d4e55 added domtoimage 2021-08-26 14:27:45 +01:00
Jack
a38213de0e updated nodb script 2021-08-22 00:37:19 +01:00
Jack
f1ccc3d9ac added a nodb dev server script 2021-08-22 00:30:04 +01:00
Miodec
afb262bc26 updated dev and deploy scripts 2021-08-21 12:44:01 +01:00
Miodec
997a96ee1b started migration convertion 2021-08-03 14:19:55 +01:00
Miodec
bec7f380ca converted discord linking to mongo 2021-07-09 22:17:19 +01:00
Miodec
a7aa36c3fa updated packages 2021-07-07 14:32:07 +01:00
Miodec
7689086503 merged master into mongo 2021-07-07 14:24:44 +01:00
Miodec
56e7b47647 fixed up package locks 2021-07-06 13:55:41 +01:00
Alvin Zhao
87073a3700
Added min burst (#1579) started by yzAlvin
* Added min burst

* no need to calculate burst on a timer

* added a burst history and current burst trackers, added set and push functions, removed burst calculating in stats (should be done on word completion)

* burst will not be calculated on every keypress

* calculating burst and pushing to history on space
setting start time on first keypress

* verifying that burst history and input history are the same length

* bursthistory typo
added function to calculate burst speed and updated the pushing function to consider if the word was already completed once before

* removed fail condition from timer

* removed debug notification

* added fail condition

* rounding burst

* making sure to load burst config

* styling burst display

* including burst in the result

* renamed variable

* removed burst from result screen, changed wording in settings page

* reran npm i to regenerate package lock in version 2

* audit fix

* gulp update

* added two burst modes: flex and fixed

* standardized some code

* swapped classes

* updated settings page min burst input
updated min burst description

* updated the setting sections with inputs to a new, better design

Co-authored-by: Jack <bartnikjack@gmail.com>
2021-06-29 18:55:59 +01:00
Dharmaraj
74685cb52b Removed postinstall script 2021-06-12 23:02:48 +05:30
Miodec
a692e44038 added eslint 2021-06-12 17:51:15 +01:00
Dharmaraj
216c0637c1 Added MonkeyError class 2021-06-06 22:56:12 +05:30
Dharmaraj
4c560a437f Added Auth Router and DAO 2021-06-06 22:02:37 +05:30
lukew3
11caa57eeb replaced /api/ with api subdomain in production, added helmet middleware 2021-06-03 11:19:27 -04:00
lukew3
fd30b5aa36 brought back firebase analytics and authentication 2021-05-31 23:47:58 -04:00
lukew3
d7c3f53e73 Merge branch 'master' of https://github.com/Miodec/monkeytype into Miodec-master 2021-05-27 11:28:04 -04:00
lukew3
e2920fbec2 email verification 2021-05-27 11:08:40 -04:00
lukew3
12f3b45529 changed displayName to name, moved from cookies to localstorage 2021-05-26 19:06:03 -04:00
lukew3
61ae1084da removed unecessary createBlankLb function, removed mongob package 2021-05-26 15:07:21 -04:00
lukew3
68ba85f11e Moved backend to backend folder, removed moved functions 2021-05-20 14:38:58 -04:00
Miodec
d890307f99 switched sounds to howler, should fix safari problems 2021-05-16 00:29:21 +01:00
lukew3
3978b7a106 firebase completely disconnected, working at restoring all functionality 2021-05-14 13:56:08 -04:00
Rustom Ichhaporia
e71079e044 Install tinycolor2 2021-05-08 16:23:36 -05:00
Miodec
3cdec2da46 using actual project name 2020-12-19 04:22:19 +00:00