Commit graph

79 commits

Author SHA1 Message Date
Christian Fehmer 91982e285d
chore: fix ESLint complaining about typescript version (#5153)
Co-authored-by: Jack <jack@monkeytype.com>
2024-02-29 22:44:33 +01:00
Paul Ebose a0416d3eba
impr(dev): allow docker compose to start the backend server (plbstl, Miodec) (#4995)
* chore: allow backend docker compose to start the api-server alongside redis & mongodb

* chore: update node versions in docker compose

* chore: add an extra compose file in backend

* docs: update advanced contribution guide with docker compose changes

* add docker script
support server_open env variable

* move files

* npm scripts
rename file

* add docker ignore

* fix redis not working

* rename file

* mounting root instead

* update docs

* update docs table of contents

* restart on fail

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-02-28 14:17:09 +01:00
Christian Fehmer b20df42f2f
test: replace jest with vitest on frontend (fehmer) (#5105)
* test: replace jest with vitest on frontend

* vscode config

* use prettier to format modfifications on save
2024-02-26 12:23:50 +01:00
Jack 8f6bfbb708
build: replace webpack with vite (#5096) 2024-02-22 02:24:20 +01:00
Jack 01790d8a3a
refactor: shared user types (#5080)
* move user to shared definitions

this includes whatever user can have on it, tags, presets and so on

* profiles, mail and others

* fix logic

* yeet

* same as master for now

* tsc fixes

* remove comment

* fix tests

* chore: omit ips

* fix(language): remove some unnecessarily capitalised words in german 1k

* fix(typing): first space sometimes soft locking the website

* perf: speed up settings page loading

* fix: use selected typing speed unit on personal best popup (fehmer) (#5070)

* fix: Use selected typing speed unit on personal best popup

* refactor

* refactor

* test coverage

* use Format in more places

* Make config mockable

* dependency injection

* wip

* fix

* test

* touch

* fix(language): typos in russian_10k.json (kae) (#5082)

* Update russian_10k.json

- fixed typos
- removed duplicates

* - fixed extra typos

* remove duplicates

* fix(language): typos in russian_10k.json

* feat: add copy missed words to result screen (fehmer) (#5086)

* feat: Add copy missed words to result screen

* remove margin

* update icons

---------

Co-authored-by: Miodec <jack@monkeytype.com>

* impr(funbox): add 46 group languages to wikipedia funbox (RealCyGuy) (#5078)

* impr: provide all-time LB results during LB update (fehmer) (#5074)

Try to provide LB results during the LB update. There is a very small time-frame where
already running queries might fail during the update. For now we keep the 503 error in this
cases and monitor how often this happens on production.

* impr(funbox): add ` (grave accent, 96) and ~ (tilde, 126) to specials (#5073)

* impr: add testWords and wordsHistory to copy result stats (#5085)

* feat: add testWords and wordsHistory to copy result stats

* fix

* add fe ts dep

---------

Co-authored-by: Christian Fehmer <fehmer@users.noreply.github.com>
Co-authored-by: Andrey Kuznetsov <akuznetsov@outlook.com>
Co-authored-by: Cyrus Yip <cyruscmyip1@gmail.com>
Co-authored-by: fitzsim <fitzsim@fitzsim.org>
2024-02-19 17:15:15 +01:00
Miodec aec04bc8cc chore: remove grecaptcha types
it didnt work anyway
2024-02-17 18:44:14 +01:00
Jack 3e0be2e210
refactor: replace select2 with slim-select (#5065)
* i cant figure this oooout

* fix: closing commandline causing settings page update

* remove log

* fix event looping issues
rerendering selects when updating settings

* remove comment

* move section back to where it should be

* update styling

* move redrawing to settings group

* no need to save to a variable

* types

* fix styles

* search placeholder

* fix structure

* fix styles

* using slim for the rest of selects

* disabled styling

* use slim

* styling

* use slim

* multi select styling

* use slim

* use slim

* use slim

* use slim

* remove everything else related to select2

* last select2 mention

* comment

* fix(settings page): font family buttons not working

* fix: input indicators remaining visible after leaving the login page (underscoore) (#5062)

* chore: update node version to 18.19.1 (#5060)

* impr(quote): add Code C quotes (penguin-teal) (#5053)

* fix: question mark appearing next to unrated quotes

* removed unnecessary link

---------

Co-authored-by: Ajay kumar <ajaykumar.bit.1995@gmail.com>
Co-authored-by: Christian Fehmer <fehmer@users.noreply.github.com>
Co-authored-by: penguin-teal <130006737+penguin-teal@users.noreply.github.com>
2024-02-17 12:12:15 +01:00
Christian Fehmer 6cf2e4f5f5
chore: update node version to 18.19.1 (#5060) 2024-02-15 21:23:29 +01:00
Christian Fehmer 0fef619d06
refactor: null-safe usage of Auth.currentUser (fehmer) (#5048)
* fix: error on leaderboard when no user is present

* refactor simple popups

* popups, commandline

* fixes?

* more

* more

* review comments

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-02-13 19:03:50 +01:00
Christian Fehmer 9d7e5b1ddb
test: add jquery and mocks to frontend tests (#5013) 2024-02-07 16:11:07 +01:00
Christian Fehmer 97e2baa915
refactor: import jquery and jquery plugins using webpack (fehmer) (#4880)
* refactor: import jquery and jquery plugins using webpack

* move select import to index

* moved imports to the top

* unnecessary types

* ignoring requires in this file

* importing html2cavnas as needed instead of globally

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-02-07 13:12:12 +01:00
Miodec 7e33b4891e chore: upgrade jest 2024-02-05 13:01:09 +01:00
Jack 0124ee6345
chore: upgrade axios from 0.21.4 to 1.6.4 (#4986)
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-AXIOS-6032459
- https://snyk.io/vuln/SNYK-JS-AXIOS-6124857
- https://snyk.io/vuln/SNYK-JS-AXIOS-6144788

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2024-01-31 13:05:45 +01:00
Christian Fehmer 6aa7a72727
test: configure testing for frontend code (fehmer) (#4879)
* test: configure testing for frontend code

* remove test coverage thresholds, cleanup
2024-01-08 15:26:57 +01:00
Christian Fehmer 39eb13b4fa build: fix development mode detection on windows (fehmer) (#4724)
* fix: development mode detection on windows

* fix: development mode detection on windows
2023-10-17 12:41:59 +01:00
Christian Fehmer 0f6884a5be
impr: detect development mode based on config instead of window.location (fehmer) (#4703)
* impr: detect development mode based on config instead of window.location

* Allow access to /configure on the backend using non-local ip

* Use webpack define plugin

* take BACKEND_URL from env
2023-10-09 18:46:40 +01:00
Miodec 18b4e62f13 chore: release v1.17.14 2023-09-25 14:15:45 +01:00
Miodec e3f66b165e build: add deploy-preview script 2023-08-31 14:05:21 +02:00
Miodec 9bb1a87e08 chore: upgrade firebase 2023-08-25 11:45:18 +02:00
Miodec 940cc018ea build: upgrade dependencies
This also fixes issue where the dev server would die when using firefox
2023-08-13 12:34:54 +02:00
Miodec c47c66146f style: add normalize.css 2023-08-12 14:59:11 +02:00
Miodec 6ae332e769 build: add postcss and autoprefixer
Autoprefixer will automatically add vendor prefixes to css on build
2023-08-12 14:59:11 +02:00
Miodec 0b69b2e1e3 added knip to find unused exports 2023-08-10 18:32:33 +02:00
Miodec 38a316715b moved to node 18.17.1 lts 2023-08-10 17:38:27 +02:00
Miodec 99a7972c13 updated firebase version 2023-07-10 13:01:11 +02:00
Miodec e3cb26d30c added eslint to frontend to fix linting issues 2023-06-22 23:52:55 +02:00
Miodec 369be4db76 upgrade to webpack-cli 4.10 2023-06-08 12:39:18 +02:00
Miodec c18144d7b9 replaced plugin with a better one 2023-04-20 12:59:54 +02:00
Miodec 6a6d475e51 dynamically blending colors for the heatmap
fixes #1613
2023-03-08 15:44:40 +01:00
Bruce Berrios 46d7a78ffe
Add Monkey CI (#3799)
* Split PR checks

* Split Jobs

* Test

* Fix path check

* Use checkout

* Undo

* oh boy

* .

* .

* .

* .

* test

* .

* .

* .

* .

* .

* .

* .

* yay

* Remove jsonschema from global dep

* monkey ci

* .

* oops

* test

* .

* .

* .

* .

* .

* .

* .

* ayy

* add permissions
2022-12-05 18:52:15 +01:00
Miodec 01f083e87d updated port 2022-11-28 17:37:37 +01:00
Miodec eddad02ca5 save exact 2022-10-31 01:00:04 +01:00
Miodec 593fdb5f92 code. nothing to see here, move on 2022-10-31 00:45:46 +01:00
Miodec 9813c9d757 updated firebase version 2022-10-21 14:51:44 +02:00
Miodec e47048f0b2 added concurrently as a dev frontend dependency 2022-10-18 12:34:00 +02:00
Miodec a0a3acc623 pwa support
offline support
2022-10-13 14:26:49 +02:00
riyu 0c3e3549b0
Add confetti animation (#3607) riyuzenn
* include confetti sound

* include confetti-canvas

* include canvas-confetti

* include confetti sound

* create confetti func

* import confetti sound

* add confetti

* add confetti to daily leaderboard

* change confetti color

* revert to main color

* save exact version

* updated confetti parameters
added one more color
made duration shorter
more particles
higher spread

* removed sound

* only showing confetti if user already has a pb (doesn't show on the first pb)

* regenerated package lock

* not showing confetti if timer is slow

Co-authored-by: Miodec <jack@monkeytype.com>
2022-09-28 00:15:02 +02:00
krau5 2b782f35b7
Move types dependency to devDeps (#3573) krau5 2022-09-22 14:26:58 +02:00
Miodec d63232680f Revert "clearing webpack console output on rebuild"
this causes backend build errors to be cleared
2022-09-04 20:03:53 +02:00
Miodec 5be476d3e3 clearing webpack console output on rebuild 2022-09-04 17:16:23 +02:00
Christian Rudder fcd7c63440
Adding Korean Language Functionality (#3412) neezacoto
* fixing accuracy and functionality

* removed opacity for readability

* avoiding using any

* ㅎㅁㅁ스 ㅜㅐㅔ겨ㅓ

Co-authored-by: Miodec <bartnikjack@gmail.com>
2022-08-22 13:45:22 +02:00
Bruce Berrios 616e26b5c5
Add version commit hash (#3286)
* Add version commit hash

* Add frontend client hash

* Remove export
2022-07-02 18:49:13 +02:00
Miodec 89c9557475 definitely didnt forget about those 2022-05-05 23:35:40 +02:00
Miodec 9e2bd5a3fb fixed script names 2022-05-05 23:25:03 +02:00
Miodec 52ffeb3da9 rebuilding remplate on save
(still doesnt work with auto refersh)
2022-05-03 18:57:33 +02:00
Evan f584d683bb
Rename scripts to ts (#2869) ferotiq
* Rename scripts to ts

* Update config.base.js

* Delete firebase-config.ts
2022-04-24 17:20:30 +02:00
Jack 4d365802a1
Added popup to share test settings through url (#2870)
* added package for compressing strings

* added popup to share test settings

* added function to parse test settings from url

* returning if no settings were applied

* removed pointless try catches

* added type for shared setings instead of casting

* small refactor

* unnecessary ??
2022-04-24 17:05:04 +02:00
Rizwan Mustafa d65fcff79d
Add script for starting live version locally (#2855) rizwan
* Create start live version locally script

* Fix issues
2022-04-24 15:11:54 +02:00
Rizwan Mustafa fd002f1553
Save exact for all packages (#2853) 2022-04-23 19:42:20 +02:00
Rizwan Mustafa 5691643b7a
Fixed versions (#2851) 2022-04-21 12:28:30 +02:00