Commit graph

62 commits

Author SHA1 Message Date
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
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
Marco Pagani f3274c22b3 converted moment to external dependency 2020-11-26 01:07:57 -05: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
Jack c5762d229a
Merge branch 'master' into lint 2020-11-08 23:26:59 +00:00
Jack 079bd61e7f renamed script to start:dev 2020-11-05 19:52:38 +00:00
typer c4b1407770 Merge branch 'master' into lint 2020-11-03 19:01:08 -08:00
Jack 3090ef1702 updated version 2020-11-04 00:48:33 +00:00