Commit graph

1197 commits

Author SHA1 Message Date
Jack be7bce087f updated spanish quote 2021-10-12 17:28:07 +01:00
Jack 2a6fee088e Merge branches 'master' and 'master' of https://github.com/Miodec/monkey-type 2021-10-12 15:46:04 +01:00
Jack fbfad6aac2 showing chracter length on quote submit popup 2021-10-12 15:44:10 +01:00
Miodec 2e881a982c fixed support popup not styled. closes #1997 2021-10-12 12:59:43 +01:00
Miodec 1221b1170f removed duplicate quote 2021-10-12 00:43:18 +01:00
George The Bot b7ea6cb7d4
Added more quotes (#1993) 2021-10-12 00:42:09 +01:00
Jack 3e64f30b6a fixed pb tables popup not styled correctly 2021-10-11 19:23:12 +01:00
Jack 9ed2855aa4 added supporter 2021-10-11 16:47:30 +01:00
Jack 50aec0b9e7 added captcha to quote submission 2021-10-11 16:02:27 +01:00
Jack bb490fca9d fixed tags and preset popups not being styled. closes #1988 2021-10-11 14:41:58 +01:00
Jack 5275e16f34 added warning message to quote submission form 2021-10-10 23:44:13 +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
Azirine 2fb29739d0
Update english_5k.json (#1983) by Azirine
Removed duplicates.
2021-10-10 21:48:01 +01:00
Jack b00148e481 updated the 5k list to use the oxford 5000. closes #1974 2021-10-10 16:52:41 +01:00
Jack b0db2c47bd Merge branch 'master' of https://github.com/Miodec/monkey-type 2021-10-10 16:44:34 +01:00
Jack 115148323f updated the 5k word list slightly. thanks
impranav16
2021-10-10 16:43:06 +01:00
patpro dd59f05184
Update french.json (#1981) by p4tpr0
typos, spelling, grammar corrections.
2021-10-10 16:40:32 +01:00
Jack 4783c1ebe4 fix typo 2021-10-10 16:06:02 +01:00
Jack c80759dded missing change. 2021-10-07 19:06:24 +01:00
Jack fad01ae125 renamed layout override to layout emulator 2021-10-07 19:06:05 +01:00
Jack 6fc38b1314 updated ads.txt 2021-10-06 18:50:32 +01:00
Jack a7c882392a updated ads.txt 2021-10-06 18:49:39 +01:00
usrme 521aff2d17
Add Estonian (#1952) by usrme
* add 'estonian', 'estonian_1k', and 'estonian_10k'

* add Estonian

* add Estonian
2021-10-06 13:36:21 +01:00
Dimitri Tabatadze 2dd577220e
Add georgian (#1943)
* added georgian.json

* updated _groups.json

* updated _list.json

Co-authored-by: D-T-6 <tabatadzedima@protonmail.com>
2021-10-04 20:35:45 +01:00
Jack 30246f9f50 capital I 2021-10-03 20:41:35 +01:00
Denis Çerri e09a71e1dd
Added some Wolf of Wall Street Quotes (#1939)
* Added some Wolf of Wall Street Quotes

* Added Wolf of Wall Street Quotes [Fixed Uppercase words]
2021-10-03 20:40:58 +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 f7d2be17d3 unfocusing words on test finish, focusing the result div
maybe will fix #1921
2021-10-02 00:12:43 +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 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
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 ac23609ab2 added sound on click 5 (typewriter) 2021-09-30 01:06:04 +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
Jack 3d479d5eb5 reduced image size 2021-09-26 20:31:54 +01:00
Jack c1b59e9f17 updated apple touch icons 2021-09-25 14:10:24 +01:00
Miodec 5f6b6c15f8 added popup to view all personal bests 2021-09-24 20:22:08 +01:00
Miodec 53e3cea31d updated spelling 2021-09-24 17:00:50 +01:00
Jack 843bee022b removed / adjusted some quotes 2021-09-24 00:38:55 +01:00
Jack e0b0a809db Merge branch 'master' of https://github.com/Miodec/monkey-type 2021-09-23 22:56:45 +01:00
Jack 7dc91cd797 fixed indonesian quotes 2021-09-23 22:56:38 +01:00
Michael b0b48292b9
Fix spelling error in german.json (#1901) by kemonprogrammer
"Frucht" means fruit, "Furcht" means fear.
Additional source: http://www.worte-projekt.de/herbert.html
2021-09-23 22:54:47 +01:00
Jack fcbfbeb893 fixed chaos theory not working 2021-09-23 14:57:58 +01:00
Miigon 999779677a
completed lazy mode for chinese pinyin (#1866) by Miigon
* completed lazy mode for chinese pinyin

* lazy-mode accent override for pinyin 'ü'

* lazy-mode accent override for chinese pinyin
2021-09-22 14:37:42 +01:00
Jack c337eac37c balanced words history button spacing 2021-09-21 22:14:16 +01:00
Jack 30a268cd02 added sewing tin light 2021-09-20 22:21:47 +01:00