Commit graph

202 commits

Author SHA1 Message Date
Cameron e0ca6cec43
chore: updated node/npm versions (#2440) 2022-02-08 00:28:56 +01:00
Miodec 79c5b432fc moved eslint to root directory
using file eslint config
keeping folder structure when moving to dist/gen
updated some imports
2022-02-07 18:47:24 +01:00
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 272a02b622 npm install 2022-01-31 16:09:19 +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
dependabot[bot] 09a25e1b8b
Bump cached-path-relative from 1.0.2 to 1.1.0 (#2359)
Bumps [cached-path-relative](https://github.com/ashaffer/cached-path-relative) from 1.0.2 to 1.1.0.
- [Release notes](https://github.com/ashaffer/cached-path-relative/releases)
- [Commits](https://github.com/ashaffer/cached-path-relative/commits)

---
updated-dependencies:
- dependency-name: cached-path-relative
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-28 16:51: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 90ea8b4626 Merge branch 'master' of https://github.com/Miodec/monkeytype 2022-01-15 20:56:20 +01:00
Miodec f64660174d added dynamic sw cache name that changes on compile 2022-01-15 20:34:42 +01:00
dependabot[bot] 1e3357980f
Bump follow-redirects from 1.14.4 to 1.14.7 (#2310)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.4 to 1.14.7.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.4...v1.14.7)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-15 14:53:48 +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
Miodec a11aef772f npm i 2021-12-30 16:04:54 +01:00
Jack 9fd6b03696 regenerated package lock 2021-10-13 20:25:01 +01:00
Jack 5cc3982a9c rerunning npm i 2021-10-10 23:30:29 +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 6178ed504f security update 2021-10-10 22:12:44 +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
Miodec bc40ff48d2 updated package 2021-09-24 17:07:41 +01:00
Jack fb7e5cae3a removed mongoose dependency 2021-09-15 12:08:44 +01:00
Miodec ef3f2295f6 lock update 2021-09-11 13:13:41 +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
Pranav Sinha 55b8d226c2
Debugged broken newline in customText - Issue#1780 (#1798) by pran01
* Added a delimiter switch

* Added delimiter to wordfilter

* Delimiter Switch to Delimiter Checkbox

* fixed random input fields styling

* regenerated lockfile to version 2

* brought back example.evn

* removed console logs

* removed garbage code

* reverted back delimiter tagline

* solved newline bug in custom

* removed garbage code

Co-authored-by: Jack <bartnikjack@gmail.com>
2021-09-01 16:15:44 +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 c1ac7b7287 Merge branch 'master' of https://github.com/Miodec/monkeytype 2021-08-26 14:28:07 +01:00
Miodec 71123d4e55 added domtoimage 2021-08-26 14:27:45 +01:00
Pranav Sinha 3df0230c70
Added a delimiter switch (#1754) by pran01
* Added a delimiter switch

* Added delimiter to wordfilter

* Delimiter Switch to Delimiter Checkbox

* fixed random input fields styling

* regenerated lockfile to version 2

* brought back example.evn

* removed console logs

Co-authored-by: Jack <bartnikjack@gmail.com>
2021-08-25 14:46:37 +01:00
Miodec c44b707280 npm i 2021-08-21 12:45:31 +01:00
Miodec ea4f3bcc5d Merge branch 'mongo' 2021-08-17 18:13:04 +01:00
Miodec 997a96ee1b started migration convertion 2021-08-03 14:19:55 +01:00
Miodec 5335ad1ad4 updated package requirement 2021-08-03 13:31:59 +01:00
DharmarajX24 e62acc923f Disabling auth observer in signIn 2021-07-21 16:48:02 +05:30
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 40b0ad4d1e npm i 2021-07-06 14:52:46 +01:00
Miodec 56e7b47647 fixed up package locks 2021-07-06 13:55:41 +01:00
Miodec afa895991d npm i 2021-07-04 16:11:39 +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
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
Dharmaraj 3df8610735 Removed functions dir 2021-06-06 19:48:10 +05:30
Miodec 697b23f1be npm i 2021-06-05 20:21:48 +01:00
lukew3 11caa57eeb replaced /api/ with api subdomain in production, added helmet middleware 2021-06-03 11:19:27 -04:00
lukew3 7845135c8a Created migrate script, updated CONTRIBUTING.md 2021-06-02 22:03:37 -04:00
lukew3 fd30b5aa36 brought back firebase analytics and authentication 2021-05-31 23:47:58 -04:00
Jack ffe92b6c98 added offline message 2021-05-31 20:14:02 +01: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
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
UnrealApex 191d6e255f Fixed abnormal diff in package-lock.json files 2021-05-12 20:20:33 +00:00
UnrealApex 0ce3cbfb17 Updated internal link names 2021-05-11 21:23:04 +00:00
Jack af5549d615 npm update 2021-05-09 19:32:15 +01:00
Miodec 83c7c6e616 updated the way full width settings are styled
reordered some settings elements
2021-05-09 02:22:21 +01:00
Rustom Ichhaporia e71079e044 Install tinycolor2 2021-05-08 16:23:36 -05:00
Jack d5e6b06d66 npm i 2021-05-08 19:37:18 +01:00
OctahedronV2 240c099c24 test 2021-05-05 00:24:48 -04:00
humptyhump c27eb46ea0 Added ISRT, Colemak-Qix, and ColemaQ 2021-04-29 18:27:19 -04:00
dependabot[bot] 9a0726d456
Bump y18n from 3.2.1 to 3.2.2
Bumps [y18n](https://github.com/yargs/y18n) from 3.2.1 to 3.2.2.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-29 18:47:12 +00:00
Jack 21e8cf8299 fixed missing commit that was lost somewhere in the merges 2021-03-29 19:44:18 +01:00
Miodec b21e087c31 lockfile 2021-03-16 23:47:39 +00:00
dependabot[bot] 74076e2971
Bump elliptic from 6.5.3 to 6.5.4
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-08 18:26:38 +00:00
dependabot[bot] 10f7ff89e6
Bump ini from 1.3.5 to 1.3.7
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.7)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-10 20:08:27 +00:00
Jack eeaa708cfc
Revert "Convert external dependencies to npm packages" 2020-12-05 14:50:33 +00:00
Marco Pagani dd8b01ff52 replaced jquery and html2canvas with external deps
fixed import statement for jquery
2020-11-26 01:08:47 -05:00
Jack 37b009be5d
Merge pull request #582 from typerqeo/chartjs
Converting ChartJS to an npm dependency
2020-11-21 20:02:30 +00:00
Jack e70eba044e update package lock 2020-11-19 16:04:27 +00:00
typer adc097ffc2 converted chart.js to an npm dependency 2020-11-12 23:54:38 -08:00
typer b879a5967d added browserify and made db.js an ES6 module 2020-11-12 23:12:53 -08:00
typer c4b1407770 Merge branch 'master' into lint 2020-11-03 19:01:08 -08:00
Corey Bergeron d8f9a40edd added enable ads to command line 2020-11-03 20:29:47 -05:00
typer e70d38f541 fixed most lint errors 2020-11-02 17:32:27 -08:00
typer 56e2910a4d added eslint@6.0.0, gulp-eslint, babel-eslint dev dependencies. added linting to the concatenated source. removed a duplicate function to allow it to build. 2020-11-02 17:13:09 -08:00
typer ceb798ad6f added sass compilation in gulp build 2020-11-01 22:53:20 -08:00
typer ffe8554c89 added gulp build and a few dev dependencies. can now run with 'npm run start:dev' 2020-11-01 22:25:25 -08:00
typerqeo e6d1ad79dc added prettier as a git pre-commit hook 2020-10-27 19:23:11 -07:00
typerqeo aae1f34a82 added new package.json. install with npm install, and run with npm start. 2020-10-27 19:23:10 -07:00
Jack ee2674fef7 unnecessary package lock 2020-10-26 20:48:53 +00:00
Jack 9d3994e73d moving verification to oauth2 2020-10-10 15:48:08 +01:00
Jack 71b8728e09 updated dependencies 2020-08-15 15:33:52 +01:00
Jack 91e7430049 added prettier to the depnedency 2020-08-11 21:45:10 +01:00
Jack d0daa37cc4 dependencies 2020-06-24 21:14:11 +01:00
Jack 249dae1161 added cloud functions, moving to a new db design 2020-06-05 18:17:59 +01:00
unknown b742054a41 added back missing dependencies 2020-05-18 23:46:54 +01:00
Jack 1a5e9070b7 removed vscode folder from git
removed functions
added a note about emailing to the about page
2020-05-14 18:57:11 +01:00
Jack 056525d244 changed evens on test complete
added login tip
added required password confirmation when registering
2020-05-14 18:57:10 +01:00