Commit graph

104 commits

Author SHA1 Message Date
Bruce Berrios f4a9147308
Setup PR check action (#2445) by Bruception 2022-02-08 21:27:14 +01:00
Bruce Berrios 345740db5f
Separate backend and frontend dependencies (#2441) by Bruception
* Add request validation to user endpoints

* Remove tag id log

* Remove verbs from endpoints

* Remove old code

* Remove uid

* Fix

* Remove name from URI

* Rename utils

* Fix

* Move prettier

* Update gulp file

* Add additional scripts

* Update package-lock

* Update contributing.md

Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-02-08 20:33:41 +01:00
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