Commit graph

5522 commits

Author SHA1 Message Date
Jack ac798ed2d1 fixed zen mode not working completely 2021-10-03 15:20:30 +01:00
Jack bf39a1c7c2 Merge branch 'master' of https://github.com/Miodec/monkey-type 2021-10-03 15:14:01 +01:00
Jack f71c4fc0f5 fixed lint warning 2021-10-03 15:11:08 +01:00
Jack 6884e51cfa fixed bar timer color not working. closes #1938 2021-10-03 15:08:50 +01:00
Sashin Exists 41362dcf4b
Deleted Katakana words (#1934)
There were a few sneaky katakana words mixed in, I went and deleted them
2021-10-03 15:02:47 +01:00
Jack 2a06111e78 enter cant start the test 2021-10-02 22:56:10 +01:00
Miodec d2a3ed9fc6 Revert "Merge branch 'input-rewrite'"
This reverts commit 4f13f32d7f, reversing
changes made to 7a6b9090ec.
2021-10-02 22:21:03 +01:00
Miodec 4f13f32d7f Merge branch 'input-rewrite' 2021-10-02 22:17:53 +01:00
Jack 7a6b9090ec divided scss files 2021-10-02 15:23:03 +01:00
SeerLite 8009ff0570 fix previous commit 2021-10-01 22:11:16 -03:00
SeerLite 5d52e41932 Don't modify input when it's already the wanted value 2021-10-01 22:06:03 -03:00
Jack f7d2be17d3 unfocusing words on test finish, focusing the result div
maybe will fix #1921
2021-10-02 00:12:43 +01:00
Jack 4b824d64e1 added czech accented characters to lazy mode 2021-10-01 23:36:47 +01:00
Jack 8fbcdaa10a added bcp code 2021-10-01 23:27:11 +01:00
Meimersdorfer dcf898b74a
Add german_250k (#1933) by Meimersdorfer
* Add German_250k

* Add 250k

* Update _list.json
2021-10-01 23:26:13 +01:00
Jack b461d3f4cd added supporter 2021-10-01 20:33:06 +01:00
Jack a62ccd20a7 fixed lint warnings 2021-10-01 16:41:05 +01:00
Jack a90958aa3b fixed lint warning 2021-10-01 16:38:52 +01:00
Jack 8abd8094cf Merge branch 'master' of https://github.com/Miodec/monkey-type 2021-10-01 16:37:45 +01:00
Jack d131927fd6 added bcp 47 codes for all languages 2021-10-01 16:37:27 +01:00
Jack 653ae1193c moved tts into its own file, added support for bcp47 codes to enable multilanguage. closes #397 2021-10-01 16:24:50 +01:00
Miodec 0d4ee8d325 fixed modifier keys resetting suggested commandline commands 2021-10-01 14:19:20 +01:00
Miodec 65b3c1c1e4 fixed enter inserting a ghost character when typed incorrectly 2021-10-01 14:02:08 +01:00
Jack 874e5cbebe
commented out commiting and pushing for now 2021-10-01 00:50:39 +01:00
Jack 62e4ce396d
Update ci.yml 2021-10-01 00:21:52 +01:00
Jack 214fe571f8
Update ci.yml 2021-10-01 00:07:54 +01:00
Jack 2d3bd8a39a
Update ci.yml 2021-09-30 23:52:23 +01:00
Jack b998763097
typo 2021-09-30 23:46:59 +01:00
Jack 61c5c0474a
added comment on fail 2021-09-30 23:43:15 +01:00
Jack 147602e927 added eslint json plugin 2021-09-30 23:15:50 +01:00
Jack 41d3d94c13 removed comments 2021-09-30 23:14:28 +01:00
Jack 8778f6cb08
added --rebase flag 2021-09-30 22:32:45 +01:00
Jack c7a11c3668
reverted previous commit 2021-09-30 22:31:34 +01:00
Jack 8f93f64c7f
Update ci.yml 2021-09-30 22:29:47 +01:00
SeerLite 4d783c033d
Add CI for ESLint and Prettier in PRs (#1661) 2021-09-30 22:03:59 +01:00
Jack 62040c8099 fixed tab characters not working correctly 2021-09-30 20:19:23 +01:00
Jack 8f692c5c16 fixed a lot of floating points appearing on the account page 2021-09-30 15:35:15 +01:00
Jack 635e76481b Merge branches 'master' and 'master' of https://github.com/Miodec/monkey-type 2021-09-30 14:32:56 +01:00
Sashin Exists d8ad67f9df
Add Japanese as a language to Monkeytype (#1919) by sashinexists
* Added Japanese to _groups file

* Added Japanese Hiragana and Katakana to _list.json

* Create japanese_hiragana.json

A list of the most common hiragana only words. That it's only hiragana means all of Monkeytype's features should work just fine.
Tested with custom input on the Mozc and KKC keyboard layouts. You have to press enter to bypass Kanji conversion.

* Create japanese_katakana.json

A list of loan words commonly used in Japan. Everything is in Katakana. This should work with the "Japanese (kana)" keyboard layout.
2021-09-30 14:29:15 +01:00
Jack 041050c869 added osu and hitmarker sounds 2021-09-30 14:28:24 +01:00
Jack 1cb0c8d2a2 fixed sound not playing on backspace 2021-09-30 13:50:44 +01:00
Jack e5eec1220f fixed layout emulation causing undefined to be entered as text 2021-09-30 13:46:34 +01:00
Jack 7ef93b6f22 fixed enter key support 2021-09-30 13:41:28 +01:00
Jack ac23609ab2 added sound on click 5 (typewriter) 2021-09-30 01:06:04 +01:00
Jack 164ea185d4 fixed hide extra letter breaking input highlighting 2021-09-30 00:39:07 +01:00
SeerLite c323efea26
Rewrite input system to use <input> content (#1325)
* Rewrite input system to use <input> content

* Tab/Escape, Backspace and Enter are always handled by
  $(document).keydown.
* The rest of characters are handled by either $("#wordsInput").on("input")
  (default) or $(document).keydown (layout emulation).
* New special handling for dead keys, compose keys and diacritics in
  general with the new regex Misc.trailingComposeChars.

input-controller.js has been updated to use the above changes:
* handleBackspace() replaced with simplified backspaceToPrevious().
  On PC, a space is immediately re-added to the end of the input to make
  use of the browser/OS's Backspace. This lets the browser handle input-
  specific things like ctrl+backspace.
* handleSpace() refactored a bit to repeat less logic when word is correct
  or incorrect.

* test-ui.js updated to highlight the Misc.trailingComposeChars
correctly, and also refactored a bit to make logic easier to follow.

* AFK checking has also been simplified, now just set with a boolean
flag (TestStats.) setKeypressNotAfk() instead of checking every key and
modifier press (so incrementKeypressMod() was removed as it wasn't used
for anything else).

* Refactor input controller

New function isCharCorrect().

* Remove caps lock backspace setting

Not supported with the input rewrite anymore because we're relying on the
browser's/OS's actual backspace effects. There's no way to emulate this
keypress.

* Refactor input controller

* Reimplement opposite shift mode

* Reimplement the layout emulator

* Fix replay events for input rewrite

Now it's more flexible for a variable amount of backspacing or letter
replacing.

* Pad input with space to handle backspace on mobile

Backspace isn't fired as an event on current mobile browsers, so I worked
around that by adding a permanent space at the start of the input and
treating its removal as a fallback to Backspace to the previous word.

* Force caret to end of input on focus

Fixes initial selection on iOS.

* Use offsetTop from the DOM instead of TestUI

I didn't wanna mess too much with what happens in test-ui.js. Basically,
on a restart after having completed a test, TestUI.activeWordTop is always
wrong for some reason. This caused swipe/instant input after a restart to
always drop the first few characters.

* Prevent pasting on the input

* Revert "Reimplement opposite shift mode"

This reverts commit 9a716ad39b004f0719b05f486465ea03060430ca.

* Use key code to check opposite shift usage

Today I learned what closure actually meant.

* Accept all whitespace as word space
2021-09-30 00:22:38 +01:00
Aaron 6039820c26
Update CONTRIBUTING.md (#1915) 2021-09-29 23:25:58 +01:00
Aaron 403d36368e
Update README.md (#1912) 2021-09-29 17:04:10 +01:00
Jack 614f7fde03 marking all results coming from the input rewrite 2021-09-29 14:21:35 +01:00
Jack 83422d2f99
Update CONTRIBUTING.md 2021-09-29 01:48:42 +01:00