Commit graph

4237 commits

Author SHA1 Message Date
Miodec
89016d390d impr: dont sent results shorter than 1 second
closes #5858
2024-09-08 10:35:15 +02:00
Christian Fehmer
6de9ad6e1c
fix: result filters defaults invalid (@fehmer) (#5860) 2024-09-07 13:05:13 +02:00
fsq
5f695b4229
feat(layout): add the scythe layout (@forusu) (#5854)
* Update _list.json

Adds the scythe layout.

* Update _list.json

Fixed JSON syntax errors

* Update _list.json
2024-09-06 12:08:14 +02:00
Nad Alaba
cbaefbf210
fix(caret): getting last letter top in long multiline words (@NadAlaba) (#5856)
* fix(caret): getting last letter top in long multiline words (@NadAlaba)

* no need to check for invisible extra letters

This check was needed when `letterPosTop` was
`currentLetter?.offsetTop ?? previousLetter?.offsetTop ??
lastWordLetter?.offsetTop` where `previousLetter?.offsetTop` was defined
but 0 in extra letters in blind mode, so we got the value of zero
although in some fonts the real value (`lastWordLetter` value) is not 0.

However, now we don't use `previousLetter`, and `currentLetter` is
undefined in extra letters (blind mode or not), so we'll get the value
we want (`lastWordLetter` value) in extra letters.

* update comment
2024-09-06 11:59:27 +02:00
Christian Fehmer
77c1e8e298
feat(funbox): add instant messaging (@fehmer) (#5850)
Thanks
2024-09-05 17:36:10 +02:00
Alessandro Chitarrini
b8ca187ab3
Open impr(quotes): add English quote (@chitvs) (#5844)
Co-authored-by: Jack <jack@monkeytype.com>
2024-09-05 17:32:13 +02:00
Christian Fehmer
259894ab9f
impr: use tsrest for user endpoints (@fehmer) (#5815)
!nuf
2024-09-05 17:28:19 +02:00
Christian Fehmer
8e0a6c3417
impr(settings): add hints to tag buttons on mouseover (@fehmer) (#5849) 2024-09-05 11:12:32 +02:00
Nad Alaba
661c138812
fix(zen mode): issues when changing tape mode and other caret issues (@NadAlaba) (#5824)
* fix(zen mode): undefined word when changing tape mode during test (@NadAlaba)

* fix(zen mode): shrinking full-width-caret when changing tape mode during test (@NadAlaba)

* fix(zen mode): messed up caret in RTL languages (@NadAlaba)

because of the letter '_' that is added to the beginning of a word
in zen mode, the caret is getting positioned on the 2nd letter.

Also, since lastWordLetter is always undefined (because wordLen is
always 0) offsetHeight and offsetTop are getting the default values
regardless of font characteristics.

* fix caret staying in position in (blind + word tape + zen) mode

* refactor: combine last 2 solutions

* rename parameter
2024-09-02 12:10:45 +02:00
Nad Alaba
55496996de
refactor: determine active word based on logical value, not DOM class (@NadAlaba) (#5834)
* refactor: use active word based on logical value, not DOM class

* use existing const instead of querying DOM

activeWord.offsetTop changes when the DOM element gets updated
no need to query the active word again

* better naming

* no need to requery DOM, we have the top of the previous word saved
2024-09-02 11:49:41 +02:00
Andrew Hermes
02490213d6
impr(quotes): add English quote (#5832) 2024-09-02 10:58:44 +02:00
Miodec
8ddb23ac40 fix: cookie modal not being shown for new users 2024-09-01 16:35:30 +02:00
Miodec
cc00295a5d fix: words flashing when line jumping in some modes 2024-08-30 20:27:36 +02:00
Christian Fehmer
1804ebcd8a
impr: use tsrest for quotes endpoints (@fehmer) (#5802)
!nuf
2024-08-29 15:42:42 +02:00
amarnathsama
253efb7340
fix(presets): auto-switch theme checkbox values not loaded correctly (@amarnathsama) (#5826)
* fixed bug where presets wouldnt change auto light and dark theme checkbox values

* mode code to setting.ts

* updated variable name

* updated setting.ts
2024-08-29 12:40:19 +02:00
Miodec
7b4a789f2e refactor: await addWord if the test is out of words
fixes #5630 by not always awaiting
closes #5819
2024-08-28 13:51:07 +02:00
Miodec
13eab07139 fix(language): duplicate word 2024-08-28 12:06:35 +02:00
Miodec
c3274f0f02 refactor: update based on logical value, not DOM class 2024-08-28 12:04:29 +02:00
Miodec
9eb927b2f4 refactor: rename some functions and variables for easier understanding 2024-08-28 12:04:29 +02:00
Miodec
0d5ff3eb70 style(mini result chart modal): fix incorrect height 2024-08-28 12:04:29 +02:00
Miodec
8a6d0a6494 fix(language): typos in english medical 2024-08-28 12:04:29 +02:00
Christian Fehmer
8bef02f739
fix(funbox): earthquake and simon says not working correctly (@fehmer) (#5823)
* fix: fix earthquake funbox (@fehmer)

* fix simon says funbox
2024-08-28 10:47:40 +02:00
Miodec
a6232beea5 fix: caps lock state sometimes being out of sync 2024-08-27 13:25:56 +02:00
Miodec
d957e7afec fix(sign up): false positive typo warning when using hotmail.com 2024-08-27 13:25:56 +02:00
Christian Fehmer
30d440a70e
impr: use tsrest for dev endpoints (@fehmer) (#5800)
!nuf
2024-08-23 20:03:13 +02:00
Anthony Perez
8863fb70d1
refactor: updateURL function for improved maintainability (@anthonypz) (#5817)
* refactor: updateURL function

* refactor: rename val to getVal and replace forEach loop with for of
2024-08-23 19:48:46 +02:00
Christian Fehmer
e2d574444a
impr: use tsrest for configurations endpoint (@fehmer) (#5796)
!nuf
2024-08-23 19:06:41 +02:00
Christian Fehmer
e03a25fb92
impr: use ts-rest for results endpoint (@fehmer) (#5758)
!nuf
2024-08-23 12:13:50 +02:00
Miodec
abdd66a27b fix(funbox): choo choo not working 2024-08-23 11:39:05 +02:00
Pablo Sánchez Flores
a53d60207c
fix: remove 2 misspelled words from english_450k (@pasanflo) (#5809)
* fix: remove 2 misspelled words from english_450k (@pasanflo)

* fix: add trailing space (@pasanflo)
2024-08-22 11:54:59 +02:00
Miodec
59a18680a1 refactor: move mini result chart to the new modal system
closes #5811
2024-08-21 11:50:20 +02:00
Miodec
14c121b9ff style: fix some themes not working well with the new header menu 2024-08-21 11:27:49 +02:00
dependabot[bot]
32d9fa49e8
chore(deps-dev): bump vite-plugin-checker from 0.6.4 to 0.7.2 (#5808)
Bumps [vite-plugin-checker](https://github.com/fi3ework/vite-plugin-checker) from 0.6.4 to 0.7.2.
- [Release notes](https://github.com/fi3ework/vite-plugin-checker/releases)
- [Changelog](https://github.com/fi3ework/vite-plugin-checker/blob/main/CHANGELOG.md)
- [Commits](https://github.com/fi3ework/vite-plugin-checker/compare/vite-plugin-checker@0.6.4...vite-plugin-checker@0.7.2)

---
updated-dependencies:
- dependency-name: vite-plugin-checker
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-20 17:22:44 +02:00
dependabot[bot]
7cd44812ea
chore(deps-dev): bump @types/object-hash from 2.2.1 to 3.0.6 (#5805)
Bumps [@types/object-hash](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/object-hash) from 2.2.1 to 3.0.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/object-hash)

---
updated-dependencies:
- dependency-name: "@types/object-hash"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-20 17:03:17 +02:00
Jack
47e52f0b15
impr: move account settings to a separate page (@miodec) (#5798) 2024-08-20 16:43:30 +02:00
Hyperion2400
03a08f402c
impr(language): add common Java classes and words (#5803) 2024-08-20 15:10:07 +02:00
Nad Alaba
9e057dce87
fix(hints): hide hints in blind mode and update position on some config changes (@NadAlaba) (#5754)
* fix(hints): update hints position on blind mode and hide extra letters (@NadAlaba)

* update hints position on font family preview

* hide hints in blind mode

* allow wide hints to overflow horizontally when tapeMode=off

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-08-20 15:07:14 +02:00
Miodec
bb01dbef25 revert: thai ligature rendering
This reverts commit 6e9e1e721d.
2024-08-20 14:47:02 +02:00
Miodec
46fa970086 fix: tape mode sometimes showing two cut off lines (for real this time) 2024-08-16 11:51:56 +02:00
Miodec
6657c02d7d fix: tape mode sometimes showing two cut off lines 2024-08-16 11:25:07 +02:00
Miodec
210d1aed9c fix: account verification notice duplicating 2024-08-16 10:18:45 +02:00
Miodec
7ffb7ead0b chore: add todo 2024-08-16 01:17:50 +02:00
Miodec
cd3b95b387 fix(config): some settings sometimes being reset on refresh 2024-08-16 01:11:59 +02:00
Miodec
f25536a218 style: increase margin 2024-08-15 23:35:43 +02:00
Miodec
2e22677df0 style: update email not verified warning styling 2024-08-15 23:03:42 +02:00
Miodec
3221968e52 refactor(account button): dont access snapshot directly, accept parameters instead 2024-08-15 14:57:41 +02:00
Miodec
aaadad0812 refactor(sign in out button): move dom modifying code to the element file 2024-08-15 14:56:59 +02:00
Miodec
8b4b24f0b1 refactor: move all account button related code to one file 2024-08-15 12:55:28 +02:00
Miodec
e3a40b46b1 impr(account page): automatically enable results if both results and accuracy are disabled to avoid confusion 2024-08-15 11:42:18 +02:00
Miodec
a0dcfbb6f5 chore: bump chartjs-plugin-annotation to 2.2.1 2024-08-15 11:08:32 +02:00