Commit graph

4269 commits

Author SHA1 Message Date
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
dependabot[bot] a5bbf9856f
chore(deps): bump chartjs-adapter-date-fns from 2.0.0 to 3.0.0 (#5782)
Bumps [chartjs-adapter-date-fns](https://github.com/chartjs/chartjs-adapter-date-fns) from 2.0.0 to 3.0.0.
- [Release notes](https://github.com/chartjs/chartjs-adapter-date-fns/releases)
- [Commits](https://github.com/chartjs/chartjs-adapter-date-fns/compare/v2.0.0...v3.0.0)

---
updated-dependencies:
- dependency-name: chartjs-adapter-date-fns
  dependency-type: direct:production
  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>
Co-authored-by: Jack <jack@monkeytype.com>
2024-08-15 10:49:29 +02:00
Christian Fehmer 4386999cc3
fix: legacy values in config not getting migrated (@fehmer) (#5790)
* fix: legacy values in config not getting migrated (@fehmer)

* cleanup, combine merge and migrate

* rename, fix/add tests
2024-08-15 10:33:48 +02:00
Christian Fehmer fa9e877cc3
fix: result filters getting reset on page load (@fehmer) (#5788) 2024-08-15 00:22:51 +02:00
Miodec b162e3ada1 chore: log zod issues, not zod error 2024-08-14 14:06:29 +02:00
Miodec b50701ee2a chore: hide merch banner for now
!nuf
2024-08-14 13:54:08 +02:00
dependabot[bot] 5694dacbdf
chore(deps): bump axios from 1.6.4 to 1.7.4 in /frontend (@dependabot) (#5779)
* chore(deps): bump axios from 1.6.4 to 1.7.4 in /frontend

Bumps [axios](https://github.com/axios/axios) from 1.6.4 to 1.7.4.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.6.4...v1.7.4)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* generate lock

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jack <jack@monkeytype.com>
2024-08-14 13:39:26 +02:00
Miodec 13457cf6c7 impr(ls with schema): verify schema after migration
also improve tests

!nuf
2024-08-14 13:28:41 +02:00
Miodec 38aa79a350 fix: default result filters not passing schema
also update migration to handle previous schema

!nuf
2024-08-14 13:28:41 +02:00
dependabot[bot] 68efbcec21
chore(deps-dev): bump madge from 6.1.0 to 8.0.0 (@dependabot) (#5774)
Bumps [madge](https://github.com/pahen/madge) from 6.1.0 to 8.0.0.
- [Changelog](https://github.com/pahen/madge/blob/master/CHANGELOG.md)
- [Commits](https://github.com/pahen/madge/compare/v6.1.0...v8.0.0)

---
updated-dependencies:
- dependency-name: madge
  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>
Co-authored-by: Jack <jack@monkeytype.com>
2024-08-14 12:21:24 +02:00
dependabot[bot] 92e270ae9a
chore(deps-dev): bump firebase-tools from 13.13.3 to 13.15.1 (@dependabot) (#5771)
Bumps [firebase-tools](https://github.com/firebase/firebase-tools) from 13.13.3 to 13.15.1.
- [Release notes](https://github.com/firebase/firebase-tools/releases)
- [Commits](https://github.com/firebase/firebase-tools/compare/v13.13.3...v13.15.1)

---
updated-dependencies:
- dependency-name: firebase-tools
  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>
Co-authored-by: Jack <jack@monkeytype.com>
2024-08-14 12:18:18 +02:00
Miodec a46872847b chore: add icloud typos 2024-08-13 23:24:26 +02:00
Christian Fehmer 1c9dbccfa3
chore: update vitest to 2.0.5 (@fehmer) (#5770) 2024-08-12 20:18:22 +02:00
Jack 55e183e7bb
impr: add local storage with schema class to improve type safety (@miodec) (#5763)
!nuf
2024-08-12 17:04:01 +02:00
Walid Mosbahi 38a8529808
impr(commandline): preview error sound on hover (@Bretis2019) (#5769)
* fix: play sound on error  on hover in settings pop up menu

* name

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-08-12 16:51:16 +02:00
Jave Bantilan 2ae398cdaf
impr: update filipino word list (@Killer8Hyper) (#5768)
Replaced less commonly appearing or less frequently typed word:

bayan → pasok (entry • entrance • admission • school day • work day • going to work)

My bad, I really missed this one out. It was on my list/notes, but I completely forgot about it.

It's been a year or two since I started planning to update some words in the list. So, yeah, this will be my final update on the most common 200 words in Filipino—unless someone requests an update. But I believe that's unlikely, as I've done my best to provide a useful list for everyone.
2024-08-12 16:42:58 +02:00
Miodec 692d3f5920 impr: deep copy constant objects when retrieving them 2024-08-12 15:50:34 +02:00
Christian Fehmer c6e8f413fc
impr: use tsrest for leaderboard endpoints (@fehmer) (#5717)
!nuf
2024-08-12 14:08:17 +02:00
neinja d5b243cf57
impr(quotes): add 3 german quotes (@neinja007) (#5767) 2024-08-12 12:49:15 +02:00
Jave Bantilan 6d000aec6a
impr: update filipino word list (@Killer8Hyper) (#5761) 2024-08-12 12:46:54 +02:00
Avick Saha 474ef2e53d
fix(language): add one thousandth word to english 1k (@avick-saha) (#5757) 2024-08-12 12:45:52 +02:00
Breno Queiroz Lima d7a40c8d5a
fix(save custom text modal): save button not being enabled (@brenob6) (#5759)
* fix: invalid return values

* add: hexToRgb test suite

* test: update hexToRgb test value

* add more tests

* fix: save custom text button not enabled (#5692)

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-08-12 12:25:09 +02:00
Miodec 24e94479d3 style: only apply error underline when moving to the next word 2024-08-10 21:45:47 +02:00
Miodec 142b51cc26 style: sliiiightly increase the horizontal word margin 2024-08-10 14:55:47 +02:00
Miodec 002ef8f6bf fix(caret): not working in zen mode 2024-08-10 14:55:47 +02:00
Christian Fehmer a9caf24427
fix: documentation link in settings (@fehmer) (#5755) 2024-08-09 22:21:18 +02:00
Christian Fehmer cfea8eef19
refactor: use single client for whole contract on frontend (@fehmer) (#5752)
* refactor: use single client for whole contract on frontend (@fehmer)

* review comments
2024-08-09 22:07:09 +02:00
Miodec 295e47638e chore: rebuild all files instead of just what changed 2024-08-09 17:01:10 +02:00
Miodec f32846de32 refactor: getLocalPb returns pb object instead of just wpm
also use this function in test logic
also fixes todo
2024-08-09 12:40:15 +02:00
Christian Fehmer c50535cd0f
impr: use tsrest for public endpoints (@fehmer) (#5716)
!nuf
2024-08-09 12:39:27 +02:00
Miodec 6c9148624e impr: use authentication state instead of the dom
!nuf
2024-08-09 11:55:54 +02:00
Miodec 90e3ad4957 refactor: move psa check to after auth was initialised 2024-08-09 10:45:57 +02:00
Christian Fehmer 0d7e3cf916
fix: don't send authentication if user is not authenticated (@fehmer (#5747) 2024-08-08 19:00:02 +02:00
Christian Fehmer 2d24fc323e
fix: remove tailing slashes from new endpoint urls (@fehmer) (#5745)
!nuf
2024-08-08 18:12:50 +02:00
Miodec c33a087161 chore: quote lengths script 2024-08-08 17:41:14 +02:00
Miodec e1a2020b01 fix(quote): user reports 2024-08-08 17:40:28 +02:00
Christian Fehmer f6ec006507
impr: use tsrest for psa endpoints (@fehmer) (#5712)
!nuf
2024-08-08 15:10:26 +02:00
Nad Alaba 657d305abc
fix(caret): jumping in word tape mode and RTL position issues (@NadAlaba) (#5726)
* fix(caret): jumping in word tape mode (@NadAlaba)

* fix(caret): diacritics getting caret width of last letter

* fix(caret): hide extra letters in RTL languages

* fix(caret): add space width for non-mono fonts

* optimize getting space width

* refactor assignmet in conditional and remove console.log

* move left calculation in tape mode to getTargetPositionLeft

* no need to calculate left 2 times in tape mode

* prophylactically consider future changes of hide extra letters

* treat blind mode and hide extra letters the same

* change naming and fix tape word

* final refactor

* change naming

* nope, cleaner version doesn't work

* || instead of ?? for letter.offsetTop

* reduce unneeded code

* chore: run anticheat for banned accounts

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-08-08 13:49:24 +02:00
Rafael Romão ff8464eef6
feat(layout): add the romak layout (@rafaelromao) (#5741) 2024-08-08 12:58:39 +02:00
dependabot[bot] dfdf3fc6cd
chore(deps-dev): bump typescript from 5.3.3 to 5.5.4 (@dependabot) (#5734) 2024-08-08 12:44:22 +02:00
Christian Fehmer 9f9663682d
chore: fix tests using machine timezone (@fehmer) (#5740) 2024-08-08 12:10:11 +02:00
dependabot[bot] 613687cbf8
chore(deps-dev): bump autoprefixer from 10.4.14 to 10.4.20 (@dependabot) (#5732)
Bumps [autoprefixer](https://github.com/postcss/autoprefixer) from 10.4.14 to 10.4.20.
- [Release notes](https://github.com/postcss/autoprefixer/releases)
- [Changelog](https://github.com/postcss/autoprefixer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/autoprefixer/compare/10.4.14...10.4.20)

---
updated-dependencies:
- dependency-name: autoprefixer
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-06 12:11:28 +02:00
Miodec a558a59a5a refactor: change hideExtraLetters from being html based to css based
!nuf
2024-08-05 20:13:52 +02:00
Miodec 41638dd142 style(settings page): fix pace caret buttons text overflow 2024-08-05 19:50:54 +02:00
Miodec 6e9e1e721d fix: thai ligature rendering 2024-08-05 17:52:50 +02:00
Miodec 7306cf8a9f feat: last signed out result modal
the website will now show the last signed out result
and ask the user if they want to save or discard it
(instead of always saving)
2024-08-05 14:28:31 +02:00
Miodec ddebf57454 impr: add "student" to education email regex
!nuf
2024-08-05 12:46:41 +02:00
Miodec de79d469cb impr: add email typo to the list
!nuf
2024-08-05 12:44:28 +02:00
Miodec cbd6725ad6 refactor: move pb crown aria-label text update to a function 2024-08-05 12:41:27 +02:00
Miodec f0441e2b66 chore: remove unused code 2024-08-05 12:26:45 +02:00
Miodec 7b7b1c86ea fix(pb crown): incorrect class names causing ineligible warning or pending state to not show 2024-08-05 12:13:56 +02:00
Adam Sasine b26cb887e4
feat(funbox): add hexadecimal (@asasine) (#5724)
* feat(funbox): added hexadecimal

* missing list definition

* lower max to 4

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-08-05 10:53:03 +02:00
Nad Alaba 738574ed33
impr(pace caret): add tags pb mode (@NadAlaba) (#5715)
* impr(pace caret): add tags pb mode (@NadAlaba)

* update modes notice when clear tags from commandline

* remove all mode because it grabs only 1k results

* short circuit tag.active

* update setting name

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-08-02 21:50:56 +02:00
amarnathsama 8c7ece3721
impr(settings): replace sound volume with a slider (@amarnathsama) (#5702)
* replaced sound volume settings with a slider

* used SettingsGroup instead of custom class, minor css change

* use common structure, remove css

* notify if sound volume is out of range

* command input goes from 0 to 1

* fix test

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-08-02 21:15:40 +02:00
Jefferson Michael c791156848
feat(languages): add portuguese 320k and 550k (@jeffersonjpr) (#5698)
* feat(languages): add portuguese 320k and 550k (@jeffersonjpr)

* run prettier, ignore pnpm yaml files

---------

Co-authored-by: Christian Fehmer <cfe@sexy-developer.com>
2024-08-02 14:13:31 +02:00
266-750Balloons a3661ec894
impr(quotes): add star trek quotes (@266-750Balloons) (#5705)
* Add Star Trek quotes from under-represented series

* Fix spelling mistake added by profanity filter

---------

Co-authored-by: Dexx Stexx <dchosen1uno@gmail.com>
2024-08-02 14:12:02 +02:00
Miodec 8527b33b06 impr: remove ñ from lazy mode replacements
this character is always available on the keyboard, not hidden in a layer or a dead key
2024-08-02 11:11:52 +02:00
Jack fe50fe1659
fix(frontend api adapter): use abortcontroller.abort when abortsignal.timeout is not available (@miodec) (#5714)
* setTimeout approach

* better approach

* remove console log

* better polyfill check
2024-08-02 10:57:43 +02:00
Miodec b22e0a407d fix(caret): incorrect placement in tape mode: word 2024-08-02 10:50:33 +02:00
Christian Fehmer 482de29460
fix: not being able to make requests on very old browsers (@fehmer) (#5711) 2024-08-01 13:30:03 +02:00
Christian Fehmer 8a09acd8d5
impr: use tsrest for ape-keys endpoint (@fehmer) (#5706)
!nuf
2024-08-01 13:29:25 +02:00
Miodec 981f9668c9 fix(caret): incorrect placement in tape mode 2024-07-31 18:16:39 +02:00
Miodec 9858d93dc2 fix(config): keymap size not persisting 2024-07-31 18:16:39 +02:00
Rizwan Mustafa 7a4db1ef9c fix(funbox): sometimes generating unrealistic ip addresses (@rizwanmustafa) (#5682)
* fix: fix ipv6 compression

* chore: remove console log

* fix: remove accidental removal of last colon

* refactor: change the IPv6 compression algorithm

* fix: fix problem in compression algorithm while handling one 16 bit 0 field

* chore: move function out into utils/misc.ts

* feat: Add unit tests for compressing ipv6 and move ip-addresses.ts from test to utils

* fix: add a new test case with port and fix compression algorithm

* chore: remove console log

* test: add test case for generation of ipv4 addresses

* chore: changed generation constant from 10 to 1k

* test: add unit tests for generating ipv4, and converting ip address to cidr

* fix: fix wrong upper value

* fix: fix wrong values

* fix: really fix the ranges

* chore: fix a NaN error in test due to compressed ipv6 address being passed
2024-07-31 18:16:39 +02:00
Miodec f86d6fcf1c fix: repeated tests that use pipe delimiter would not load correctly
closes #5685
2024-07-31 10:28:59 +02:00
Miodec 594db598da chore(deps): bump firebase version 2024-07-31 00:50:21 +02:00
Jack 2720c07664
chore: switch from npm to pnpm (#5690)
* pnpm

* v4, pnpm lock

* checkout, node setup

* cache dir

* path, name

* store path

* name

* setup pnpm, get store then check cache

* unnecessary if

* missing dependencies

* fix docker

* lock file name

* remove prop

* wip

* fix

* reduce image sizes

* save exact

* correct command

* lock

---------

Co-authored-by: Christian Fehmer <cfe@sexy-developer.com>
2024-07-30 22:36:19 +02:00
Miodec 47438fa8d1 chore(lint): enable no unsafe return 2024-07-30 22:10:30 +02:00
Miodec 20c2fbc116 impr: school email detection regex
!nuf
2024-07-30 22:04:39 +02:00