Commit graph

3856 commits

Author SHA1 Message Date
Miodec
5f48827fb3 fix: incorrect param type 2024-03-19 14:49:15 +01:00
Miodec
2f0bc5af84 fix: make parameter optional 2024-03-19 14:35:38 +01:00
Miodec
e999fa2a87 impr(language): remove vulgar words 2024-03-19 13:21:27 +01:00
Miodec
cc5406d88c style: lowercase footer buttons for more visual consistency 2024-03-18 13:10:14 +01:00
Miodec
33c8976176 style: update modal styling
also removed some redundant styles
2024-03-18 13:08:44 +01:00
Miodec
3077daa71f refactor(quote approve modal): use new modal system 2024-03-18 12:59:53 +01:00
Miodec
429c580a74 impr(quote search modal): update placeholder text to indicate that you can search by quote id 2024-03-18 12:05:01 +01:00
Miodec
b339cd082c fix(custom word amount): not being able to start an infinite word test 2024-03-18 00:02:10 +01:00
Miodec
9ca32d3b6a refactor(quote submit modal): use new modal system 2024-03-18 00:01:06 +01:00
Miodec
5e69c5df6b chore: remove logs 2024-03-17 20:47:54 +01:00
Miodec
d454783d11 refactor(google sign up modal): use new modal system 2024-03-17 20:47:21 +01:00
Miodec
9e064fd57c refactor(new filter preset modal): use new modal system 2024-03-17 02:10:30 +01:00
Miodec
1ceaa66287 refactor(custom test duration modal): use new modal system 2024-03-16 19:08:20 +01:00
Miodec
7faefcdd76 refactor(mobile test config modal): use new modal system 2024-03-16 18:44:18 +01:00
Miodec
5fb042c076 impr(custom word amount modal): add clear chain support and showoptions 2024-03-16 18:33:13 +01:00
Miodec
987ac16bc8 style: update out of focus warning 2024-03-16 17:28:53 +01:00
Miodec
5990f264fb style(modal): overflow auto 2024-03-16 17:00:06 +01:00
Miodec
e29d280ea5 refactor(edit result tags): complete rework
use new modal system
extract code not relating the modal to other modules
use state instead of checking dom elements/classes/attributes
2024-03-16 16:42:48 +01:00
Miodec
db560d252c impr: dont block keyboard shortcuts (like cmd + r) when out of focus warning is shown 2024-03-15 17:35:23 +01:00
Miodec
a8f6caebc9 refactor(commandline): change exec options to a single object
add commandlineModal parameter to open other modals in a chain
add command.opensModal to avoid double hiding commandline
2024-03-15 17:30:22 +01:00
Miodec
e933bbff73 impr(edit tag): add ability to show as modal chain 2024-03-15 17:26:35 +01:00
Miodec
474c6aa52e impr(animated modal): custom show options when modal is shown in a chain 2024-03-15 17:24:15 +01:00
Miodec
44e3d1b5ad fix(commandline): previous commands being visible for a split second when opening 2024-03-15 15:29:01 +01:00
Miodec
4220c54de2 refactor(edit tag): use new modal system 2024-03-15 15:11:34 +01:00
Miodec
f47340b301 refactor(animated modal): focus input if it exists and its not hidden 2024-03-15 15:10:25 +01:00
Miodec
54237d369e refactor: add title style to all modals 2024-03-15 13:49:39 +01:00
Miodec
021577c9e4 refactor(edit presets): use new modal system 2024-03-15 13:40:18 +01:00
Miodec
1640670bad style: disable pointer events on icons 2024-03-15 13:39:36 +01:00
Miodec
05de8a5de5 fix(commandline): double scrollbar 2024-03-15 13:39:19 +01:00
Miodec
00b5be2a38 refactor(edit profile): use new modal system 2024-03-15 12:58:53 +01:00
Miodec
7ee4340383 style: make profile buttons transparent to avoid focus border clipping 2024-03-15 12:26:09 +01:00
Miodec
c124f9bd67 style: add overflow-y on all modals 2024-03-15 11:11:48 +01:00
Miodec
ecfbe3a290 refactor(test): extract selected quote id to the test state module 2024-03-15 10:59:09 +01:00
Miodec
b4259b7b4d impr: user data download times
get user data no longer needs to be called by itself
it can again be called in parallel with config and preset
2024-03-15 10:41:22 +01:00
Christian Fehmer
ed9fff5d41
fix: enter quick restart not working on test page (#5227) 2024-03-15 10:41:16 +01:00
Miodec
da7e59a28a fix: website sometimes showing signup/login is disabled even though its not
it was happening if the website loaded faster than the /configuration api call
2024-03-14 22:38:05 +01:00
Miodec
3a012bd3b9 fix: sign up captcha challenge appearing under the modal, making it impossible to sign up 2024-03-14 20:37:45 +01:00
Miodec
c3671fbc75 refactor(animated modal): change constructor parameter to a single object 2024-03-14 17:17:29 +01:00
Miodec
df8b1031ed style(alerts): make the container a bit wider 2024-03-14 17:16:32 +01:00
Miodec
b6b22b3cf5 impr(animated modal): add option to automatically focus and select on show 2024-03-14 17:02:28 +01:00
Miodec
9c73697b37 impr(modals): add chaining support 2024-03-14 16:47:08 +01:00
Miodec
2a4e0b1fea refactor(user report modal): use new modal system 2024-03-14 12:21:22 +01:00
Miodec
176e344b09 fix(language): remove misspelled word in english 450k 2024-03-13 22:09:31 +01:00
Miodec
f8ce7cfbe9 refactor(pb modal): use new modal system 2024-03-13 17:23:40 +01:00
Miodec
60f6e4d77b refactor(streak hour offset): user new modal system 2024-03-13 17:08:25 +01:00
Miodec
22ccebc5e9 fix(quick restart): always navigating to test page when pressing enter 2024-03-13 15:43:54 +01:00
Miodec
14280df96f refactor(animated modal): add 'focusFirstInput' param to show function 2024-03-13 15:39:47 +01:00
Miodec
1efbc5a24e refactor(custom word amount modal): use new modal system 2024-03-13 15:39:47 +01:00
Christian Fehmer
902b32a0b4
fix: fix handling of undefined key in event handler (fehmer) (#5223) 2024-03-13 14:58:28 +01:00
Miodec
d249633910 fix: mobile commandline button not working 2024-03-13 13:35:22 +01:00
Miodec
32968d60e1 fix: version history being too wide on narrow screens 2024-03-13 13:32:20 +01:00
Miodec
3aeba3098c fix(commandline): presets and tags not showing up in single list mode
fixed by calling beforelist when generating the single list
this also means the list needs to be generated every time the commandline is opened
because of that, list caching has been moved to the commandline module
2024-03-13 12:42:12 +01:00
Miodec
c1b71fb9ea impr(commandline): show active tags with a check icon 2024-03-13 12:08:19 +01:00
Jeanot Zubler
0f6861d493
impr: replace ß in all variations of swiss german (Jeanot-Zubler) (#5224) 2024-03-13 00:31:08 +01:00
Miodec
04e277438c chore: fix newverisonindicator opening version history modal 2024-03-13 00:29:53 +01:00
Miodec
c1c0f45708 refactor(version history modal): use new modal system 2024-03-13 00:27:51 +01:00
Miodec
a172225510 refactor(cookie modal): rename file, move file, use setup function, style update 2024-03-13 00:16:48 +01:00
Miodec
cadf6502ef chore: remove unused import 2024-03-13 00:15:50 +01:00
Miodec
bbb2644d87 chore: unnecessary code
words will get focused when restarting the test
2024-03-13 00:01:38 +01:00
Miodec
b2d10e0dc5 refactor(import export modal): use setup function, move file, style 2024-03-12 23:46:40 +01:00
Miodec
09e9556ae6 refactor(register captcha): use new modal system 2024-03-12 23:39:43 +01:00
Christian Fehmer
7d3c4be04d
impr(language): update estonian word sets (Ksaspar, fehmer) (#5222) 2024-03-12 23:11:34 +01:00
Miodec
9390206082 refactor(animated modal): add animation duration property 2024-03-12 16:48:21 +01:00
Miodec
5400d06887 chore: remove throw 2024-03-12 16:45:01 +01:00
Miodec
0a401917b3 refactor(share custom url modal): use new modal system 2024-03-12 16:41:24 +01:00
Miodec
3e8fbb7d4b refactor: use try/catch 2024-03-12 15:37:33 +01:00
Miodec
3f2cfca361 chore: stop show if already open 2024-03-12 15:34:51 +01:00
Miodec
e1878b91d2 chore: remove unnecessary event handler 2024-03-12 15:28:15 +01:00
kelvine
c906641d36
docs: corrected grammar in about.html (#5194)
* corrected grammar in about.html

I made grammar corrections as what was there wasn't sounding right

* Update about.html
2024-03-12 14:35:55 +01:00
MordecaiO
33b08517f4
impr(quotes): add english quote (MordecaiO) (#5215)
* impr(quotes): add one english quote

* chore: correct char length

* double quotes, remove first quotes, capitalisation

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-03-12 12:11:59 +01:00
Christian Fehmer
9432602727
impr: add selfhosting using docker only (fehmer) (#5170)
* impr: add selfhosting using docker only

* add recaptcha config and docs

* add documentation on the backend-configuration.json file, remove ---redacted--- from example config

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-03-12 12:02:13 +01:00
Christian Fehmer
b31dba6b7a
feat(language): add klingon (fehmer) (#5201)
* lang: add klingon

* cleanup
2024-03-12 11:58:41 +01:00
Miodec
f91d6d7e6b chore: quote lengths script 2024-03-11 22:32:40 +01:00
Miodec
9a4a3eab23 fix(quote): user reports 2024-03-11 22:31:25 +01:00
Mikhail Ivanov
720d0f4468
fix(language): remove capital letters in russian_10k.json (zaqzxcswsde) (#5202)
While it's correct for the words "Москва" and "Россия" to be capitalized, they seem out of place being that way among ~10k lowercase words.
2024-03-11 20:54:45 +01:00
Exploration
ab5c130b59
impr(quotes): add English quotes (TheExploration) (#5190)
* impr(quotes): add English quotes

* fix
2024-03-11 20:44:54 +01:00
Christian Fehmer
f63f3184a7
feat: add ook coding language (fehmer) (#5203) 2024-03-11 20:34:45 +01:00
github-actions[bot]
d224a80658
refactor: run prettier (#5205)
Co-authored-by: monkeytypegeorge <monkeytypegeorge@gmail.com>
2024-03-11 20:33:28 +01:00
Christian Fehmer
8eb3206c8a
refactor: get actual rank with the user data instead of using lbmemory (fehmer) (#5189)
Co-authored-by: Jack <jack@monkeytype.com>
2024-03-11 20:29:18 +01:00
Sanidhya Singh
9aeaa31d2c
impr: replace JSONSchema with ajv for faster validation (sanidhyas3s) (#5145)
* impr: replace JSONSchema with ajv for faster validation

* Remove JSONSchema from packages

* Add ajv in dev-dependencies

* move dep to frontend

* Fix validation schema for different languages and error messages

* fix double space

* different way of showing errors

* por que no los dos

* return on failed schema

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-03-11 20:00:10 +01:00
Miodec
fcbc00b671 refactor(share custom theme): use new modal system 2024-03-09 00:20:13 +01:00
Miodec
bc6cf223cf refactor(contact popup): use new modal system 2024-03-09 00:20:13 +01:00
Miodec
2285c05f62 chore: add missing import 2024-03-09 00:20:13 +01:00
Miodec
7bdcbbfc8a refactor: move modal inside modalwrapper 2024-03-09 00:20:13 +01:00
Miodec
4b3c9f2308 fix(about page): ad wrappers always visible even if ads are disabled 2024-03-09 00:20:13 +01:00
Christian Fehmer
c4446e9fb0
fix: prevent print dialog to open with ctrl-shift-p (#5199) 2024-03-08 11:14:48 +01:00
Miodec
8ca760dfd2 fix(caching): no longer caching external resources locally
closes #5196
2024-03-07 22:08:29 +01:00
Miodec
4eed9074ff refactor: remove unnecessary file 2024-03-07 21:44:55 +01:00
Miodec
491337217b refactor: move converted modals to a new folder, rename supportpopup to supportmodal 2024-03-07 21:41:18 +01:00
Miodec
9f5be14a13 refactor: move animated modal to utils folder 2024-03-07 21:35:45 +01:00
Miodec
f46813c958 refactor: remove unnecessary import 2024-03-07 21:31:59 +01:00
Miodec
b30c2b54a2 style: lower padding on smaller screens 2024-03-07 21:30:54 +01:00
Miodec
a808577940 refactor: prefer modalWrapper instead of backdrop 2024-03-07 21:28:31 +01:00
Miodec
60f3958cdf refactor(support popup): use new modal system 2024-03-07 21:24:37 +01:00
Miodec
b8b844bb16 refactor: remove unused code 2024-03-07 21:22:41 +01:00
Miodec
40aa1e61f8 impr: add option to pass modal show settings through the show commandline function 2024-03-07 21:15:18 +01:00
Miodec
41cb95b43e refactor: move events to the top 2024-03-06 00:01:31 +01:00
Jack
3c4212b718
refactor: commandline (#5180)
* initial rewrite

* remove title

* remove from dom on hide

* actual command dom
show active
keep active in view
update active index on keypress

* global event only shows commandline

* impr(dev): showing notifications with unhandled errors

* rename functions

* handle hover functions
handle nesting
handle exec
attaching handlers once

* void promise

* no need for async

* move font preview to ui

* add configkey to command

* add function to build single list

* add mouse mode
clearing preview on hide
add config icon

* using new function

* use fw icon

* fix incorrect type

* extract logic

* add support for input commands

* unused error

* update single list

* chevron icon margin

* only focusing when no popups and words are visible

* extract condition

* better type

* remove no icon

* only showing when nothing is already visible

* commandline lists no longer modify the commandline element
dynamically changing which funbox commnands are available
modified searching approach
showing active settings in single mode again
calling before list if needed

* ignore keydown on page transition

* add other ways to show the commandline

* always clearing previews

* incorrect icon being used

* extract logic

* support quick single list mode by starting input with >

* fix test words not being focused

* showing all if in quick single mode

* remove unused code

* rename entry to command

* remove more unused code

* add data- prefix

* rename to data-command-id

* fix input commands not refocusing words

* fix fontsize change not working as intended

* set active index to 0 when going back

* keeping active command in view

* remove console logs

* fix quick single mode

* move file

* add footer events

* add option for subgroup override
fix issue where commands would get hidden after clearing input field
fixed auto scrolling in mouse mode

* rename commands to lists

* add background after to avoid flashing

* getting config key from active subgroup

* updating active command after removing hidden class but before animating

* fix nasty hover behavior

* updating active before animation showing, keeping active after

* add keymap event

* remove comments

* invert if, use return, combine ifs to reduce nesting

* add test event

* popups events

* fix some commands not showing up on a single list

* use new animated modal

* use regex escaping function from misc

* add singlelistdisplay and singlelistdisplaynoicon properties

* add more navigation aliases

* not adding alias if not needed

* rework command filtering

* fix active icon not working

* add custom hide handlers

* fix active command not being kept in view after showing

* unused imports

* remove commandlinelists imports from other files

* delete old file

* remove unused file

* import commandline dynamically

* fix: if skeleton has wrapper, append before building animated modal

* using new parameters

* save skeleton on ready

* rename folder

* add util to get async modules

* remove empty imports

* remove unnecessary code

* unnecessary void

* catching errors and notifying user

* better error message

* making sure all the lists are fetched before getting the single command list

* add tab navigation
2024-03-05 19:34:35 +01:00
Miodec
226f5de472 fix(quote): missing dash 2024-03-05 18:32:49 +01:00
Christian Fehmer
c95e3b2fa8
feat: indicate premium users (fehmer) (#5092)
* feat: indicate premium users

* frontend

* Test multiple userFlags, remove later

* cleanup

* fix flag alignment on profile and leaderboards

* fix name auto scaling

* update screenshot watermark

* update header text

* use userFlags for lbOptOut

* use flex end

* removeo unused code, increase margin

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-03-05 16:09:23 +01:00
Miodec
7e957fb449 chore: fix eslint issue 2024-03-05 11:46:00 +01:00
Sanidhya Singh
2fb77a1693
fix: prevent automatic double newline when quick restart set to enter (sanidhyas3s) (#5184)
Fixes #5175

Co-authored-by: Jack <jack@monkeytype.com>
2024-03-05 11:44:13 +01:00
Miodec
cc30f6357e fix(style): inconsistent focus border radius across buttons and links 2024-03-04 19:39:13 +01:00
Christian Fehmer
b4af0917b2
chore: improve docker files for local development (#5157) 2024-03-04 16:10:22 +01:00
Dmitry
ca0d6b3739
impr(quotes): add 20 belarusian quotes (Dmskrzh) (#5152)
Added 20 quotes

Co-authored-by: Jack <jack@monkeytype.com>
2024-03-04 16:09:52 +01:00
Christian Fehmer
f7fe0e3f01
impr: better handling of ghost accounts (fehmer) (#5159)
* impr: better handling of ghost accounts

* move deletion to server

* wording
2024-03-04 14:23:33 +01:00
Christian Fehmer
d2d7b3e109
impr: show total completed test percentage and restarts/test on profile (fehmer) (#5169) 2024-03-04 14:18:34 +01:00
Christian Fehmer
ca55b28135
impr: hide login/signUp button if user signup is disabled (fehmer) (#5172)
* impr: hide signIn button if user signup is disabled

* move UI modifying code to ready.ts

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-03-04 14:13:39 +01:00
Christian Fehmer
ff268ade7d
fix: fix two percentage symbols in leaderboard (fehmer) (#5174)
Co-authored-by: Jack <jack@monkeytype.com>
2024-03-04 14:02:23 +01:00
Christian Fehmer
ae21d04021
fix: remove °C from estorian language (fehmer) (#5178)
Co-authored-by: Jack <jack@monkeytype.com>
2024-03-04 14:02:04 +01:00
github-actions[bot]
f298213f04
refactor: run prettier (#5168)
Co-authored-by: monkeytypegeorge <monkeytypegeorge@gmail.com>
2024-03-04 13:59:50 +01:00
Miodec
42b6c53b91 refactor: skeleton util
move to util folder
add suport for predefined append targets
require append target to be specified
2024-03-04 13:23:56 +01:00
Miodec
1f52692151 chore: fix browser debugger not working correctly 2024-03-04 00:07:33 +01:00
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
Miodec
d19a95e548 chore: remove trace 2024-02-23 13:14:42 +01:00
Miodec
8076acf333 impr(typing): always allow lazy mode when in custom mode, no matter the current language selection
closes #5071
2024-02-22 23:14:44 +01:00
Christian Fehmer
81b388af4a
impr: remove usage of jQuery getJSON (fehmer) (#5109)
* impr: remove usage of jQuery getJSON

* use generic

* throwing if nothing found

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-02-22 23:05:37 +01:00
myakinx
fd4f1e51e4
fix(language): Update turkish_5k.json (myakinx) (#5100)
* Update turkish_5k.json

Changed Words: 
“mahallesi” to “mahalle”
“sıralarında” to “sıra”
“geçmişi” to “geçmiş”
“standı” to “stand “
“tahminler” to “tahmin”
“dinle” to “dinlemek”
“kısaltmalar” to “kısaltma”
“aminoasit” to “amino asit”
“geldi” to “gelmek”
“fotojeni” to fotojenik”
“jonglör” deleted because it was not included in the Turkish Dictionary.
“numarası” to “numara”
“onanması” to “onanma“
“prospektüsü” to “prospektüs”
“molekülü” to “moleküllü”
“düştü” to“düşmek”
“işareti” to “işaret”
“toplamı” to “toplam”
“vardır” to “var”
“süblimasyon” to “süblimleşme”
“aralığı” to “aralık”
“yakalandı” to “yakalanmak”
“kyanit”  deleted because it was not included in the Turkish Dictionary.

* Update turkish_5k.json

* Update turkish_5k.json
2024-02-22 23:01:10 +01:00
Miodec
8b0c61415d impr(caret): better placement, cleaned up some animations, fix right to left issues 2024-02-22 19:22:00 +01:00
Miodec
b03ea666c8 refactor: replace jquery event with vanilla event 2024-02-22 17:52:59 +01:00
Miodec
7e73d47f09 impr: better bug hunter badge description 2024-02-22 17:30:31 +01:00
Miodec
6dbc7371ee fix: jquery being undefined 2024-02-22 17:21:55 +01:00
Miodec
0b25148fb9 chore: yeet service workers when in dev environment 2024-02-22 17:13:53 +01:00
Miodec
f1c620ee51 chore: include index 2024-02-22 16:26:18 +01:00
Miodec
2db6a88644 fix: email handler not working 2024-02-22 16:10:08 +01:00
Miodec
67f0df76c2 fix: input history button alignment 2024-02-22 15:25:40 +01:00
Sachin Kumar
1429c2ca8c
impr: save pbs for numbers mode separately (notreallystatic, miodec) (#4946) 2024-02-22 15:07:42 +01:00
Miodec
3e591635e5 refactor: pretty fix 2024-02-22 13:07:28 +01:00
Miodec
c7e122f640 impr: authentication error messages 2024-02-22 12:59:08 +01:00
Miodec
34161ddffa fix: unfriendly error message when authentication fails on the client side
closes #5079
2024-02-22 12:33:59 +01:00
Nipul Mallikarachchi
bebd11a35e
impr(quotes): add JavaScript quote (NipulM) (#5099) 2024-02-22 11:54:16 +01:00
Nipul Mallikarachchi
9017312a95
impr(quotes): add 3 english quotes (NipulM) (#5098) 2024-02-22 11:53:50 +01:00
Jack
8f6bfbb708
build: replace webpack with vite (#5096) 2024-02-22 02:24:20 +01:00
Exploration
c29220323b
feat(theme): add macroblank theme (TheExploration) (#5088) 2024-02-21 13:42:33 +01:00
Denis Alex
6ef08d4707
impr(quotes): add Spanish quotes (devdenisalex) (#5094)
* Update spanish.json

* Update spanish.json
2024-02-21 12:51:06 +01:00
Christian Fehmer
edd535c700
fix: leaderboard tables having different column width (fehmer) (#5091)
* fix: leaderboard tables having different column width

* up the date width a bit

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-02-21 12:50:12 +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
Christian Fehmer
06c50deb3a
impr: add testWords and wordsHistory to copy result stats (#5085)
* feat: add testWords and wordsHistory to copy result stats

* fix
2024-02-19 15:02:51 +01:00
fitzsim
7c0425eb90
impr(funbox): add ` (grave accent, 96) and ~ (tilde, 126) to specials (#5073) 2024-02-19 15:00:56 +01:00
Cyrus Yip
d1b663a5be
impr(funbox): add 46 group languages to wikipedia funbox (RealCyGuy) (#5078) 2024-02-19 14:58:43 +01:00
Christian Fehmer
a1f883b99f
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>
2024-02-19 14:57:20 +01:00
Andrey Kuznetsov
67881cace8
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
2024-02-19 14:53:13 +01:00
Christian Fehmer
bac837d823
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
2024-02-19 14:46:02 +01:00
Miodec
4d5085d351 perf: speed up settings page loading 2024-02-19 14:22:49 +01:00
Miodec
e94b9cb821 fix(typing): first space sometimes soft locking the website 2024-02-19 13:25:02 +01:00
Miodec
0cc1e2a07e fix(language): remove some unnecessarily capitalised words in german 1k 2024-02-19 12:50:13 +01:00
Miodec
54cb9c9e17 fix: password error when using gmail auth 2024-02-18 18:34:23 +01:00
github-actions[bot]
fc925a7e55
refactor: run prettier (#5077)
Co-authored-by: monkeytypegeorge <monkeytypegeorge@gmail.com>
Co-authored-by: Jack <jack@monkeytype.com>
2024-02-18 01:52:41 +01:00
Miodec
6032c967ed chore: add proper types for wordset and section 2024-02-17 18:45:50 +01:00
Miodec
aec04bc8cc chore: remove grecaptcha types
it didnt work anyway
2024-02-17 18:44:14 +01:00
Miodec
c3d0b23087 chore: fix tsc error 2024-02-17 18:43:15 +01:00
Miodec
763aecad93 chore: add no mixed operators rule 2024-02-17 17:24:41 +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
Miodec
197f2c36cf fix: question mark appearing next to unrated quotes 2024-02-15 23:14:11 +01:00
penguin-teal
8fd3889dc8
impr(quote): add Code C quotes (penguin-teal) (#5053) 2024-02-15 21:26:11 +01:00
Christian Fehmer
6cf2e4f5f5
chore: update node version to 18.19.1 (#5060) 2024-02-15 21:23:29 +01:00
Ajay kumar
46b336f538
fix: input indicators remaining visible after leaving the login page (underscoore) (#5062) 2024-02-15 21:19:16 +01:00
Miodec
0a9a6e6ef1 fix(settings page): font family buttons not working 2024-02-15 20:25:17 +01:00
Miodec
f9b537be1e fix: closing commandline causing settings page update 2024-02-15 20:16:18 +01:00
Miodec
83d935709b chore: add note about dark mode extensions 2024-02-14 23:47:08 +01:00
Christian Fehmer
a72aa04c53
fix: leaderboard consistency being null (#5055) 2024-02-14 23:28:51 +01:00
Miodec
c04458cb90 refactor: ape client types
fully type query, payload and return data with generics
2024-02-14 17:29:52 +01:00
mokshsinghji
24975e5d01
fix: pressing space too early with the dark note theme doesnt highlight the word as incorrect (mokshsinghji) (#5052) 2024-02-14 12:41:42 +01:00
Denis Alex
933df63ecc
feat(theme): Added tangerine theme (devdenisalex) (#5047)
* Create tangerine.css

* Update _list.json

* Update _list.json

* Update tangerine.css

* Update tangerine.css

* Update tangerine.css

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-02-14 12:09:59 +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
Jack
381bdb826d
refactor: settings groups (#5049)
* update function name

* update function name

* using data properties instead of classes

* using data property

* regex goes brrrrrrr

* button not .button

* fix sliders loading incorrectly and numbers missing

* regex missed this one

* and this one

* using button instead of .button

* use button element

* regex goes brrr once morrrrrr

* remove testing code
2024-02-13 18:22:58 +01:00
Christian Fehmer
85fd0628cc
fix: unknown function called in capsLock detection (#5050) 2024-02-13 18:22:38 +01:00
Jack
8f7b82b9d9
Revert "feat(theme): add tangerine theme (devdenisalex) (#5045)" (#5046)
This reverts commit cbc8930e85.
2024-02-13 13:13:14 +01:00
Denis Alex
cbc8930e85
feat(theme): add tangerine theme (devdenisalex) (#5045)
* Create tangerine.css

* Update _list.json

* Update _list.json

* Update tangerine.css

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-02-13 13:12:38 +01:00
Miodec
c445a46b15 fix: add missing button to the settings page
also fixes incorrect modes notice with certain config combinations
2024-02-13 12:29:53 +01:00
Jack
084d42c62e
refactor: enable @typescript-eslint/strict (#5028)
* enable rule

* eslint --fix

* fixes

* --fix

* fixes

* fixes

* fixes

* extract into const
2024-02-12 16:46:56 +01:00
Miodec
dbc5898e49 chore: quote lengths script 2024-02-12 13:34:13 +01:00
Miodec
71a60f786d fix(quotes): quote reports 2024-02-12 13:32:47 +01:00
Christian Fehmer
5c725f7ee3
fix: leaderboard discord properties being null (fehmer) (#5032) 2024-02-12 13:04:05 +01:00
Dmitry
bfdc436eae
fix(quotes): double quote characters in belarusian quotes (#5038)
* Update belarusian.json

* Update belarusian_lacinka.json
2024-02-12 12:55:23 +01:00
Dmitry
19dedd0667
impr(language): add Belarusian 5k, 10k, 25k, 50k, 100k (#5037)
* Added Belarusian 5k, 10k, 25k, 50k,100k files

* Update _groups.json

* Update _list.json
2024-02-12 12:54:45 +01:00
Zach Brehm
086adffe3d
impr(quotes): add 5 code_r quotes (zachbrehm) (#5035)
* Create code_r.json

Created initial quote file for R code and added two quotes for tidyverse functions.

* Formatting text in code_r.json

Fixed formatting to allow for new lines. Was unaware of how this worked before consulting the python quotes.

* Added quotes to code_r.json

Added two additional quotes to ensure that there is at least one in every size group.

* Fixed  code_r.json

* Fixed quote lengths.

Fixed the quote lengths for ID1 and ID2. I'm unclear and which shema ares are invalid, will investigate further.
2024-02-12 12:52:17 +01:00
penguin-teal
67245ddafa
fix(language): mistyped word in code c (#5034)
Remove extra "strlen_s" concatenated onto the "strlen"
2024-02-12 12:51:47 +01:00
Punit Bhesota
22594c5ba5
impr(quotes): add Hindi quotes (punitbhesota) (#5033)
* Updated hindi.json

Added 3 new Hindi quotes

* Updated hindi.json
2024-02-12 12:51:13 +01:00
Miodec
941b613626 chore: using a cdn for jquery in the email handler 2024-02-12 12:16:54 +01:00
Miodec
8c8d2847e8 fix: ad placeholders always visible 2024-02-09 15:25:02 +01:00
penguin-teal
35dc5049cd
impr(quotes): add code_assembly quotes (#5030) 2024-02-09 11:07:11 +01:00
Ruan Buhr
c110c80772
impr(quotes): add css quotes (ruanbuhr) (#5022)
* CSS Quotes id Issue Fixed

* prettier

---------

Co-authored-by: Ruan Buhr <26440873@sun.ac.za>
Co-authored-by: Jack <jack@monkeytype.com>
2024-02-09 11:04:32 +01:00
alexkar598
20f09958a2
fix(quote): grammar mistake in french quote (alexkar598) (#5025) 2024-02-08 20:23:56 +01:00
Miodec
e31613533c refactor(types): result types
move to shared types (#4774)
add types to ape client (#4786)
2024-02-08 17:57:45 +01:00
Miodec
15c697802d refactor(types): leaderboard types
move to shared types (#4774)
add types to ape client (#4786)
2024-02-08 17:44:46 +01:00
Miodec
b5465be75b fix(keymap): react mode not working 2024-02-08 16:55:35 +01:00
Miodec
b80a26483c chore: testing for null too 2024-02-08 16:31:47 +01:00
Miodec
67940204a1 impr: increase the transition smoothness when opening the account page 2024-02-08 15:16:17 +01:00
Miodec
7068d6be5c style: fix loading bar alignment 2024-02-08 15:15:36 +01:00
Miodec
fc78378833 chore: exposing jquery on local dev 2024-02-08 15:15:18 +01:00
Miodec
09c91f5ad0 fix: missing spinner when loading the account page 2024-02-08 15:01:18 +01:00
Miodec
d54345937f fix: account page preloader not centered on page 2024-02-08 14:52:59 +01:00
Jack
cdfc7833e3
refactor(types): shared config and preset types (#5024)
* build: include all shared types files instead of just one

* move config property value types to a shared file

* backend build issues

* shared preset and config types
preset and config ape types

* typo

* ignoring unused warnings

* fixed merge
2024-02-08 14:32:04 +01:00
Miodec
67c10a9d41 fix: presets taking very long to apply when on the settings page
closes #5023
2024-02-08 14:31:16 +01:00
Miodec
aa011b6b99 build: include all shared types files instead of just one 2024-02-08 13:49:11 +01:00
Absalon43
78bb715885
feat(sounds): add fist fight and rubber keys (Absalon43) (#4984)
* Add files via upload

* feat: add support for fist fight and plastic toy sounds

* feat: add support for fist fight and plastic toy sounds

* chore: remove extra semicolon

* feat: less busy punch sound

* feat: add punch misses as error sound

* fix: update punch sounds and make them less aggresive

* fix: Change name of plastic toy to rubber keys

---------

Co-authored-by: arthur-d42 <64164367+arthur-d42@users.noreply.github.com>
Co-authored-by: arthur-d42 <arthurdiness@gmail.com>
2024-02-08 12:01:18 +01:00
Andrew Guo
2642e139cf
fix(popups): ape key popup close button not working (andGuo) (#5020) 2024-02-08 11:53:56 +01:00
penguin-teal
388f2e21f7
impr(quotes): add Code C quotes (penguin-teal) (#5015) 2024-02-08 11:44:30 +01:00
Miodec
315b7f70bb refactor(types): server configuration types
add types to ape client (#4786)
2024-02-07 23:45:48 +01:00
Miodec
15af21cbf3 refactor(types): update namespace naming 2024-02-07 23:32:05 +01:00