Commit graph

3543 commits

Author SHA1 Message Date
Miodec
f35e8fb8ee refactor: cookie popup
use animated modal class
should fix brave having issues with the cookie popup
2024-03-03 21:47:19 +01:00
Miodec
e093b51553 impr(tab navigation): improve tab navigation
allow tab when quick restart is disabled and when its set to enter
allow pressing enter to trigger buttons even when quick restart is set to enter
2024-03-03 20:25:44 +01:00
Miodec
b9092bf362 impr(animated modal): add setup function which only runs once
used for setting up event handlers - that way the event handlers can be loaded at any time
also connected constructor functions into an object
2024-03-03 19:32:33 +01:00
penguin-teal
5431ab97af
fix(commandline): select exact command matches (#5164)
Because of the RegEx, typing a command such as the language "code c" selects the item "code python" because the word "code" is being matched twice. This change makes it so that when an exact match of a `display` field is typed, it is selected (when I type "code c" I expect to be able to just hit enter but it selects "code python").

Co-authored-by: Jack <jack@monkeytype.com>
2024-03-01 22:27:44 +01:00
Sanidhya Singh
4c550c7d9d
fix(commandline): prevent theme switch when opening the commanline from the footer (sanidhyas3s) (#5163)
fixes #5103

Co-authored-by: Jack <jack@monkeytype.com>
2024-03-01 22:23:43 +01:00
Miodec
9a0d6bd5a9 chore: update link 2024-03-01 22:07:05 +01:00
Miodec
d0fe0f536f fix(alerts): not being able to claim rewards 2024-03-01 18:11:59 +01:00
Miodec
03311d8d6f chore: add plushie banner 2024-03-01 17:39:46 +01:00
Miodec
d4ec11f3a4 fix(language): fix typo in code matlab 2024-03-01 12:52:17 +01:00
Miodec
0f880a254c refactor(alerts): use animated modal 2024-03-01 02:13:02 +01:00
Miodec
a2bf62edd4 refactor: improve animated modal code
allow global definition of custom show and hide animations
these can still be overridden at each show/hide call
store global default animation duration
2024-03-01 01:42:00 +01:00
Jack
1d7fde25a3
refactor: modal system (#5162)
* add animated modal class

* convert one popup to new system

* also grabbing backdrop classes

* rename

* padd modal as parameter

* rename to wrapper

* unnecessary constant

* rename parameter
remove first hashtag if present

* combine types

* rename popup to modal

* reduce options object nesting
2024-03-01 00:29:08 +01:00
Miodec
9cbca109ea chore: fix eslint errors 2024-02-29 22:48:29 +01:00
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
Miodec
e6666c48c3 style: make backdrop element invisible 2024-02-29 15:07:00 +01:00
Miodec
86a94eacd8 chore: release v24.9.0 2024-02-29 14:04:09 +01:00
Owen Jones
6363b94c0a
impr(quotes): add Python quote (OwenJRJones) (#5139)
* Updated code_python.json

* Updated code_python.json
2024-02-29 13:58:39 +01:00
Max Harmony
8effada4d9
chore: expire security.txt 2024-06-03 (#5156)
Co-authored-by: Jack <jack@monkeytype.com>
2024-02-29 13:03:04 +01:00
Miodec
c1c6972408 impr(accesibility): use button element instead of class button 2024-02-28 23:30:49 +01:00
Miodec
35b87c467f fix(alerts panel): unwanted horizontal scrolling 2024-02-28 23:15:16 +01:00
Miodec
8e0f124028 impr: use dialog element to take advantage of focus trapping 2024-02-28 23:02:35 +01:00
Miodec
a88ba61758 fix: dont modify tab behavior if a modal is visible 2024-02-28 22:45:44 +01:00
Miodec
5147e7507c impr: fully prevent typing when a popup is visible
closes #5148
closes #5142
2024-02-28 20:44:47 +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
91494fb9e3
fix: fix tags personal bests handling of missing numbers flag (fehmer) (#5146)
* fix: fix tags personal bests handling of missing numbers flag

* add missing filters for numbers flag
2024-02-27 20:20:30 +01:00
Miodec
4d796efb63 impr: better out of focus message 2024-02-27 01:29:40 +01:00
Miodec
399263eddc fix: removed "title" text from commandline 2024-02-27 01:02:44 +01:00
Miodec
d23dad36ea impr(dev): add recaptcha site key to frontend env 2024-02-27 00:49:51 +01:00
Christian Fehmer
668f2612a4
fix: PB pace caret is always zero (#5143)
* fix: PB pace caret is always zero

* cleanup
2024-02-26 20:57:09 +01:00
penguin-teal
76267baf1e
impr(languages): replace 2 fake code_vim commands with real ones (#5137) 2024-02-26 18:56:44 +01:00
Miodec
f4f1346aa8 fix(result tag popup): active tags not higlighted 2024-02-26 18:23:04 +01:00
Miodec
39ad6f65c3 impr(modes notice): not showing decimal places 2024-02-26 17:19:17 +01:00
Christian Fehmer
69dff92ede
impr: floor accuracy intead of rounding when not showing decimal places (fehmer) (#5120)
* impr: floor accuracy intead of rounding when not showing decimal places

* add method to format accuracy

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-02-26 17:16:46 +01:00
Nipul Mallikarachchi
532c16f089
impr(quotes): add 4 english quotes (NipulM) (#5110)
* impr(quotes): add 3 english quotes

* impr(quotes): add 4 english quotes

* updated per feedback

* fixed length

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-02-26 17:10:35 +01:00
Christian Fehmer
0dcf6c0d15
fix: fix wrong usage of DB.getLocalPB (#5132) 2024-02-26 14:13:14 +01:00
mizaagi
becb66dab6
feat(theme): add anti hero theme (mizaagi) (#5018)
* Create anti_hero.css

* Update _list.json

* updated colors

* Update anti_hero.css

fix color scheme

* Update _list.json

fix color scheme

* Update anti_hero.css

hopefully the final change to this theme.

* Update _list.json

hopefully the final change to this theme.

* update text color

* Update anti_hero.css

New error color fix

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-02-26 13:53:37 +01:00
Denis Alex
db34b13b48
impr(quotes): add Dutch quotes (devdenisalex) (#5125)
* Update spanish.json

* Update spanish.json

* Update dutch.json

* Update dutch.json

* Update dutch.json
2024-02-26 13:40:06 +01:00
Ashin Berish
5ff0c3fdec
fix: ctrl+backspace replay bug (ashinberish) 2024-02-26 13:38:41 +01:00
Christian Fehmer
2ff0c60072
fix: personal bests not shown correctly on user tags (fehmer) (#5119) 2024-02-26 13:12:16 +01:00
Ajay kumar
f15bc397a9
refactor: replace $.each calls with for loops (underscoore) (#5112)
* docs:updated navigation to authentication

* impr: Clearing all the fields on Sign Up page after logged out

* refactor: Replace $.each calls with for loops #5107

* refactor: replace $.each calls with for loops (underscoore) #5112

* fix hover bug

* rename obj

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-02-26 12:40:13 +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
aarnav593
002770ee26
feat(language): add english medical (aarnav593) (#5108)
* Update _list.json

added medicine as a language

* Create medicine.json

* Update medicine.json

* Added words to english_medical

200 words

* Rename medicine.json to english_medical.json

* changed medical to english_medical

* added english_medical to English group

* Update english_medical.json

fixed naming error

* fixed duplicate words in english_medical.json

tried creating pull request, returned an error. fixed errors.

* Update english_medical.json

saving work

* Update english_medical.json

added nearly 500 medical words

* Update english_medical.json

fixed a few duplicates

* Update english_medical.json

fixed some more duplicates

* Update english_medical.json

fixed typo

* Update english_medical.json

fixed duplicates again; added two new words (cerebellum and brain stem)

* Added some more words

more to come

* added more

keeping em coming

* Update english_medical.json

* Update english_medical.json

* Update english_medical.json

* Update english_medical.json

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-02-26 12:14:38 +01:00
Miodec
c3f7f0de6a impr(dev): showing notifications with unhandled errors 2024-02-25 22:44:59 +01:00
Miodec
a8285c068e fix(caching): remove precaching and navigation fallback
should fix email handler being broken
2024-02-25 13:38:15 +01:00
Miodec
829174983a fix: firebase not defined in email handler 2024-02-25 13:09:24 +01:00
Miodec
fd6d1cbbf8 impr(hosting): add precaching to static pages 2024-02-25 11:49:45 +01:00
Miodec
91c30cd889 fix(caret): underline caret too low 2024-02-23 21:24:45 +01:00
Miodec
01aefa91b4 chore: add 404 for static resources 2024-02-23 20:43:12 +01:00
Miodec
a1ba4a9652 fix: dont rewrite static assets to index
should fix resources not giving 404 errors
2024-02-23 19:43:33 +01:00
Miodec
6db321c8fc fix: correctly handling 404 errors when getting quotes 2024-02-23 19:27:12 +01:00