Commit graph

3409 commits

Author SHA1 Message Date
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
Miodec 4f5f28a92d refactor(types): ape keys types
move to shared types (#4774)
add types to ape client (#4786)
2024-02-07 23:13:10 +01:00
Miodec efb972a659 refactor(types): public types
move to shared types (#4774)
add types to ape client (#4786)
2024-02-07 22:29:16 +01:00
Miodec 65120db1f0 refactor(types): PSA types
move to shared types (#4774)
add types to ape client (#4786)
2024-02-07 19:06:06 +01:00
Jack f456e1e615
refactor: enable no-floating-promises rule (#5007)
* enable rule

* backend

* fixes

* more fixes

* mooore fixes

* fixes

* fixed double void

* change some voids to await

* await -> void

* remvoe void

* missing return

* awaiting config update
2024-02-07 18:49:12 +01:00
Miodec 3233de860d fix: resolve circular dependency by moving new function to a utils file 2024-02-07 17:20:38 +01:00
Miodec 1ee058882f impr(types): add frontend config API response types
part of #4786
2024-02-07 17:13:04 +01:00
Miodec c65b13e8aa chore: using new function from the previous commit 2024-02-07 17:10:18 +01:00
Miodec 4bbe321dfe impr: add function to merge partial config onto default config 2024-02-07 17:09:02 +01:00
Christian Fehmer 848e851973
test: fix typescript setup in tests (#5014) 2024-02-07 16:32:48 +01:00
Christian Fehmer 9d7e5b1ddb
test: add jquery and mocks to frontend tests (#5013) 2024-02-07 16:11:07 +01:00
Miodec c57992343c refactor: update type name, make it dynamically generated 2024-02-07 13:50:45 +01:00
Christian Fehmer 97e2baa915
refactor: import jquery and jquery plugins using webpack (fehmer) (#4880)
* refactor: import jquery and jquery plugins using webpack

* move select import to index

* moved imports to the top

* unnecessary types

* ignoring requires in this file

* importing html2cavnas as needed instead of globally

---------

Co-authored-by: Jack <jack@monkeytype.com>
2024-02-07 13:12:12 +01:00
Miodec 0309fc3268 fix: not being able to login if user config is empty 2024-02-07 10:48:53 +01:00
Miodec 6c1c22787d fix(account page): results with isPb set to false still showing up as personal bests 2024-02-07 09:23:52 +01:00
Miodec 983be00861 refactor: not using any 2024-02-06 15:32:25 +01:00
Jack 83a4c0e6aa
refactor: enable strict-boolean-expressions rule (#4992) 2024-02-06 14:01:45 +01:00
Adam Mehaney a0d8e3a9f2
impr(language): add 'buffer' to list of keywords in luau language (adammehaney) (#5005)
* Add 'buffer' to list of keywords in code_luau.json

* impr(language): add 'buffer' to list of keywords in luau language
2024-02-06 13:43:31 +01:00
Miodec 8c794aa058 fix: funboxes not applying on repeated tests
closes #5003
2024-02-05 15:24:34 +01:00
Miodec bfda00166c impr: clearing funbox in the middle of the test finish animation
this will make sure funboxes like mirror clear while neither the test or result page are visible
2024-02-05 15:24:10 +01:00
Nipul Mallikarachchi 63c3b6773f
impr(quotes): add 2 russian quotes (NipulM) (#5002)
* impr(quotes): add 2 russian quotes (NipulM)

* update russian.json

correcting minor spelling mistakes.
2024-02-05 15:16:32 +01:00
Miodec ca87feb26c fix: quote reports 2024-02-05 15:16:08 +01:00
Miodec b8e647d38d impr(reporting): dont allow reporting for suspected cheating if user has opted out of leaderboards 2024-02-05 15:16:08 +01:00
Miodec 7326ff0985 impr(reporting): dont allow reporting for suspected cheating if user has opted out of leaderboards 2024-02-05 15:16:08 +01:00
Walter White fed310ee9c
fix(language): cleaned russian 375k (mb6ockatf) (#4997) 2024-02-05 14:16:58 +01:00
anakojm cf70ec93ec
feat(layout): add ergo‑l (anakojm) (#5001) 2024-02-05 14:13:00 +01:00
Andrey Kuznetsov a6be3926a6
fix(language): typos in russian 10k (kae) (#4998)
* Update russian_10k.json

- fixed typos
- removed duplicates

* - fixed extra typos

* remove duplicates
2024-02-05 14:12:21 +01:00
Ale-Flash 5a525cbfd0
fix(language): remove non-italian words from italian 7k (Ale-Flash) (#5000)
removed non-Italian words such as crêpe that cannot be written with an Italian keyboard and other nonexisting words
2024-02-05 14:10:37 +01:00
Patel Prince 554d64f742
feat(lang): add gujarati 1k language (prince-patel23) (#4994)
* feat(languages): add Gujarati language support

BREAKING CHANGE: This commit introduces support for the Gujarati language in Monkeytype. Users can now practice typing in Gujarati.

* feat(languages): enable noLazyMode for Gujarati language

This commit adds the "noLazyMode": true property in the Gujarati.json file.

* feat(lang): add gujarati_1k language

Adds support for the gujarati_1k language with approximately 1000 words.

BREAKING CHANGE: None

* feat(lang): add new words to Gujarati_1k language

Adds a batch of new words to the Gujarati language.

* feat(lang):littel bit formating to Gujarati language

* fix(lang): remove duplicate word from Gujarati language

Addresses an issue by removing a duplicate word in the Gujarati language file.

* fix(lang): remove additional duplicate word from Gujarati language

Resolves an issue by eliminating another duplicate word in the Gujarati language file.

* fix(lang): remove one duplicate word from Gujarati language

Resolves an issue by eliminating another duplicate word in the Gujarati language file.

* pretty fix

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2024-02-05 13:41:22 +01:00
Miodec 94a4be3f6f refactor: use new functions
my dumbass forgot to save all files
2024-02-05 13:17:50 +01:00
Miodec 68fa0b65a5 test: add langauge string function tests 2024-02-05 13:16:40 +01:00
Miodec acce544b19 refactor: add util functions for handling language strings 2024-02-05 13:16:05 +01:00
Miodec 7e33b4891e chore: upgrade jest 2024-02-05 13:01:09 +01:00
Miodec 5cea19e299 chore: add todos 2024-02-05 12:37:30 +01:00
Miodec 6fddc7c070 fix: weird behavior when using quote mode with a language that doesnt have a base (200) list 2024-02-05 12:36:39 +01:00
Jack d9eb4b980d
fix(custom text): saving a book mode test completely breaking saved book mode tests (#4990)
* rename functions

* add set functions

* use new set functions (still need to fix type errors)

* make parameter not optional

* fix type errors
2024-02-01 15:17:13 +01:00
Miodec 1f302c3dd9 chore: quote lengths script 2024-02-01 12:46:24 +01:00
Miodec a163c81474 fix(quotes): address quote reports 2024-02-01 12:45:54 +01:00
Jack 8b48347764
refactor: result types (#4980)
* further shared improvements
 - moved more types to shared
 - reworked the way results are typed

THIS COULD CHANGE LOGIC, TEST THIS

* removed comment

* update the way completed event is built on the client

* remove unnecessary property

* comment

* move hash check higher

* remove todo

* fix incorrect type

* updated type
remove field if undefined
2024-02-01 11:54:25 +01:00
Miodec 0920010f5e fix(account page): results being put in the wrong histogram bucket 2024-02-01 11:32:51 +01:00
Miodec f57bac8071 fix(account page): account activity showing undefined tests completed on hover 2024-01-31 16:13:58 +01:00
Miodec 9e394beb41 fix: keymaps not showing 2024-01-31 13:51:37 +01:00
Jack 0124ee6345
chore: upgrade axios from 0.21.4 to 1.6.4 (#4986)
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-AXIOS-6032459
- https://snyk.io/vuln/SNYK-JS-AXIOS-6124857
- https://snyk.io/vuln/SNYK-JS-AXIOS-6144788

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2024-01-31 13:05:45 +01:00
Miodec 48184bbb24 chore: update supporters 2024-01-30 22:51:25 +01:00
Oleksii Zaitsev 217aa4a24e
refactor: quotes types (zaitsev-oleksii) (#4981)
* refactor: quotes types

* refactor: quotes types - void -> null

* refactor: quotes types - removed redundant code
2024-01-30 22:33:53 +01:00
Miodec 1a2e16884c fix(account page): rounding wpm instead of flooring when generating the speed histogram 2024-01-30 21:30:23 +01:00
Patel Prince 476992238d
chore: fix bcp 47 property in gujarati (#4983)
formatting the words , and change the property from "bcp 47": "gu" to "bcp 47": "gu-IN".
2024-01-30 13:44:43 +01:00
duunr 76c9d2db15
feat(layouts): add seht-drai, ints, rollla, wreathy (snypetofpaper) (#4982)
* Add seht-drai, ints, rollla, wreathy

* Fix CTGAP
2024-01-30 13:43:42 +01:00