Commit graph

11769 commits

Author SHA1 Message Date
Miodec
d863e8d70e fix(keymap): dynamic legends not working correctly 2025-04-24 13:28:09 +02:00
Miodec
a424f96480 chore: upgrade oxlint 2025-04-23 18:54:33 +02:00
Christian Fehmer
ac1d6f0847
feat(funbox): add ASL (@fehmer) (#6485) 2025-04-23 18:45:52 +02:00
Miodec
d3f3a834e3 refactor: remove unnecessary json parse 2025-04-23 18:43:38 +02:00
Christian Fehmer
0c4352ee5f
refactor: improve funbox-validation, add tests (@fehmer) (#6478) 2025-04-23 15:32:54 +02:00
robi-wan
d651f28256
feat(layout): add OPY (@robi-wan) (#6453)
### Description

Add OPY layout

https://github.com/voidyourwarranty2/opy-layout
> OPY is a keyboard layout in the tradition of NEO2, AdNW and KOY
> for a split ortholinear keyboard with shift and space on thumb keys,
> optimized for mixed English and German usage [..]

I tweaked the rows so that it looks good in the matrix and split matrix
keyboard styles. The author did not define a row1 so I took the freedom
to include one which resembles row1 from the qwertz layout.

### Checks

- [ ] Adding quotes?
- [ ] Make sure to include translations for the quotes in the
description (or another comment) so we can verify their content.
- [ ] Adding a language or a theme?
- [ ] If is a language, did you edit `_list.json`, `_groups.json` and
add `languages.json`?
  - [ ] If is a theme, did you add the theme.css?
- Also please add a screenshot of the theme, it would be extra awesome
if you do so!
- [x] Check if any open issues are related to this PR; if so, be sure to
tag them below.
- [x] Make sure the PR title follows the Conventional Commits standard.
(https://www.conventionalcommits.org for more info)
- [x] Make sure to include your GitHub username prefixed with @ inside
parentheses at the end of the PR title.

---------

Co-authored-by: Christian Fehmer <cfe@sexy-developer.com>
Co-authored-by: Miodec <jack@monkeytype.com>
2025-04-23 15:30:46 +02:00
Christian Fehmer
74d54ac06c
fix: compatibility check for funboxes when switching test modes (@fehmer) (#6471) 2025-04-19 17:02:53 +02:00
cdd
ff10baca5e
feat(theme): add sunset theme (@catdogdonkey) (#6467)
### Description

Just added a new theme (I tried my best to not make this similar to any
themes, but if it is similar to one, please tell me!)

#### Screenshots

![sunset
home](https://github.com/user-attachments/assets/dc02a1b8-047e-4097-a9a4-d42998116fdb)

![sunset
test](https://github.com/user-attachments/assets/ffc61f2b-43bd-4ef3-953a-0495a22721b7)

![sunset
settings](https://github.com/user-attachments/assets/bf74a5ee-346e-4f14-9ec9-d3ea4d293c03)

![sunset
values](https://github.com/user-attachments/assets/cf87d0d7-b954-4862-b5ec-8d14ffea5d5f)


### Checks

- [ ] Adding quotes?
- [ ] Make sure to include translations for the quotes in the
description (or another comment) so we can verify their content.
- [x] Adding a language or a theme?
- [ ] If is a language, did you edit `_list.json`, `_groups.json` and
add `languages.json`?
  - [x] If is a theme, did you add the theme.css?
- Also please add a screenshot of the theme, it would be extra awesome
if you do so!
- [x] Check if any open issues are related to this PR; if so, be sure to
tag them below.
- [x] Make sure the PR title follows the Conventional Commits standard.
(https://www.conventionalcommits.org for more info)
- [x] Make sure to include your GitHub username prefixed with @ inside
parentheses at the end of the PR title.



<!-- label(optional scope): pull request title (@your_github_username)
-->

<!-- I know I know they seem boring but please do them, they help us and
you will find out it also helps you.-->
2025-04-19 13:43:31 +02:00
Christian Fehmer
e0d1ee4cf7
fix(settings): fix dropdown not rendered correctly (@fehmer) (#6468)
Dropdowns for layoutfluid and polyglot were not rendered correctly after
logout/login
2025-04-19 13:33:48 +02:00
Christian Fehmer
a9c2f52dde
docs: order oxlint badge correctly (@fehmer) (#6470) 2025-04-19 13:33:09 +02:00
Christian Fehmer
c5d0f985e9
impr: use rainbow effect on rgb badges for reduced-motion (@fehmer) (#6466) 2025-04-18 22:10:07 +02:00
Miodec
a910ddab47 chore: move word gen error definition to utils to fix circular dependency 2025-04-18 21:52:45 +02:00
Miodec
0bd49db8e5 impr(funbox): notify user if polyglot languages are not valid 2025-04-18 21:49:16 +02:00
Miodec
2835a02bbb impr: add type safety to the config event observable
!nuf
2025-04-18 20:31:48 +02:00
Christian Fehmer
4d570d32b0
fix: fix content-type check in fetchJson (@fehmer) (#6465) 2025-04-18 18:00:28 +02:00
Miodec
2a4fe187d6 chore: release v25.16.1 2025-04-18 16:52:58 +02:00
Christian Fehmer
da671337c5
feat(funbox): add polyglot (@fehmer) (#6454)
Add polyglot funbox which let you practice on multiple languages at once
in a single test.

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2025-04-18 16:48:35 +02:00
Haz
a8ce609f0d
feat(language): add xhosa_3k (@aitchz) (#6464)
### Description

Add xhosa_3k

### Checks

- [x] Adding a language or a theme?
- [x] If is a language, did you edit `_list.json`, `_groups.json` and
add `languages.json`?
- [x] Check if any open issues are related to this PR; if so, be sure to
tag them below.
- [x] Make sure the PR title follows the Conventional Commits standard.
(https://www.conventionalcommits.org for more info)
- [x] Make sure to include your GitHub username prefixed with @ inside
parentheses at the end of the PR title.

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2025-04-17 16:13:10 +02:00
megalodon2710
bf002c02ec
feat(funbox): add layout mirror (@megalodon2710) (#6463)
### Description

Added layout mirror item in the funbox with functionality.

Tweaked how active funbox items are detected in the commandline (names
included in other names no long appear as active if the item they're
included in is active).

### Checks

- [ ] Adding quotes?
- [ ] Make sure to include translations for the quotes in the
description (or another comment) so we can verify their content.
- [ ] Adding a language or a theme?
- [ ] If is a language, did you edit `_list.json`, `_groups.json` and
add `languages.json`?
  - [ ] If is a theme, did you add the theme.css?
- Also please add a screenshot of the theme, it would be extra awesome
if you do so!
- [X] Check if any open issues are related to this PR; if so, be sure to
tag them below.
- [X] Make sure the PR title follows the Conventional Commits standard.
(https://www.conventionalcommits.org for more info)
- [X] Make sure to include your GitHub username prefixed with @ inside
parentheses at the end of the PR title.

<!-- label(optional scope): pull request title (@your_github_username)
-->

<!-- I know I know they seem boring but please do them, they help us and
you will find out it also helps you.-->

Closes #5573

<!-- the issue(s) your PR resolves if any (delete if that is not the
case) -->
<!-- please also reference any issues and or PRs related to your pull
request -->
<!-- Also remove it if you are not following any issues. -->

<!-- pro tip: you can mention an issue, PR, or discussion on GitHub by
referencing its hash number e.g:
[#1234](https://github.com/monkeytypegame/monkeytype/pull/1234) -->

<!-- pro tip: you can press . (dot or period) in the code tab of any
GitHub repo to get access to GitHub's VS Code web editor Enjoy! :) -->

---------

Co-authored-by: jeffrey <jeffrey.tiger@telecom-paris.fr>
Co-authored-by: Miodec <jack@monkeytype.com>
2025-04-17 16:10:19 +02:00
Sameer Singh
6acaeb41f1
feat(theme): add Vesper theme (@SameerJS6) (#6443)
### Description
Adds Vesper theme. Based on Vesper for VSCode theme from [Rauno
Freiberg](https://github.com/raunofreiberg/vesper)

<!-- Please describe the change(s) made in your PR -->

### Checks

- [ ] Adding quotes?
- [ ] Make sure to include translations for the quotes in the
description (or another comment) so we can verify their content.
- [x] Adding a language or a theme?
- [ ] If is a language, did you edit `_list.json`, `_groups.json` and
add `languages.json`?
  - [x] If is a theme, did you add the theme.css?
- Also please add a screenshot of the theme, it would be extra awesome
if you do so!
- [x] Check if any open issues are related to this PR; if so, be sure to
tag them below.
- [x] Make sure the PR title follows the Conventional Commits standard.
(https://www.conventionalcommits.org for more info)
- [x] Make sure to include your GitHub username prefixed with @ inside
parentheses at the end of the PR title.

<!-- label(optional scope): pull request title (@your_github_username)
-->

<!-- I know I know they seem boring but please do them, they help us and
you will find out it also helps you.-->

## Preview

### Main Page:

![vesper-monkey-type](https://github.com/user-attachments/assets/4d1f7ac0-b139-42e9-b588-e3e9edeae809)

### Settings Page:
![vesper monkey type
settings](https://github.com/user-attachments/assets/274a7551-5555-483e-85c3-efd47797edac)

### Toasts:
#### Error Toast:


![image](https://github.com/user-attachments/assets/8cdc4d20-08b7-4c82-94aa-a3ee55fd779e)

#### Info Toast:


![image](https://github.com/user-attachments/assets/0b40e90d-cd23-4248-b39a-ad3340e46d32)

#### Success Toast:


![image](https://github.com/user-attachments/assets/405d010f-e790-4a32-97d2-2a051b85ec0e)


<!-- the issue(s) your PR resolves if any (delete if that is not the
case) -->
<!-- please also reference any issues and or PRs related to your pull
request -->
<!-- Also remove it if you are not following any issues. -->

<!-- pro tip: you can mention an issue, PR, or discussion on GitHub by
referencing its hash number e.g:
[#1234](https://github.com/monkeytypegame/monkeytype/pull/1234) -->

<!-- pro tip: you can press . (dot or period) in the code tab of any
GitHub repo to get access to GitHub's VS Code web editor Enjoy! :) -->
2025-04-17 14:48:04 +02:00
Christian Fehmer
644c59cd9b
fix(theme): inconsistent/unreadable styling on settings page when using phantom theme (@fehmer) (#6446)
1. Some buttons have the color animation set like funboxes on the
settings page while others have not:

![image](https://github.com/user-attachments/assets/6c4f1ecc-6a94-4e0f-9643-6dde901f8506)

2. On the active theme button the effects overlap making it unreadable:

![image](https://github.com/user-attachments/assets/d2784c9c-34c2-40c6-8e30-5d47a39ff5f4)

3. On the footer color effect was applied to the `textButton` (like
github, discord links) but not `button` (like contract and support).
This applies to all animated themes.
2025-04-17 14:31:56 +02:00
Haz
fd75dd8ac8
impr(quotes): add urdu quotes (@aitchz) (#6441)
### Description

Add five Urdu Quotes
### Checks

- [x] Adding quotes?
- [x] Make sure to include translations for the quotes in the
description (or another comment) so we can verify their content.
- [x] Check if any open issues are related to this PR; if so, be sure to
tag them below.
- [x] Make sure the PR title follows the Conventional Commits standard.
(https://www.conventionalcommits.org for more info)
- [x] Make sure to include your GitHub username prefixed with @ inside
parentheses at the end of the PR title.

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2025-04-17 14:31:32 +02:00
Christian Fehmer
312813c1ba
fix(settings): Update layoutfluid on config change (@fehmer) (#6462)
When changing the layoutfluid settings via cmdline the settings page did
not update.
This also happens on prod so it is not directly related to the change
#6445
2025-04-17 14:20:53 +02:00
Christian Fehmer
55e7de7425
docs: add layouts (@fehmer) (#6461) 2025-04-17 14:20:14 +02:00
Miodec
8bec7da619 chore: bump vite and vite plugins versions 2025-04-16 21:42:30 +02:00
Nad Alaba
2d33e1da41
chore: throw error when response in fetchJson() is not json (@NadAlaba) (#6459)
because vite dev server does not throw a 404 when fetching a non
existing json document, but responds with an html document and a 200
status code
2025-04-16 21:31:56 +02:00
Miodec
bf0ce6607d fix: lint issues
!nuf
2025-04-16 19:39:07 +02:00
Miodec
0b05b3c2fd refactor: enable ban-ts-comment rule 2025-04-16 19:15:30 +02:00
Miodec
158226629d refactor: enable eqeqeq rule 2025-04-16 18:54:15 +02:00
Miodec
3207a20829 refactor: reduce indentation by extracting code to a function 2025-04-16 18:45:55 +02:00
Miodec
33857d400a impr(frontend): reduce json minification logs on build
!nuf
2025-04-16 17:20:01 +02:00
Jack
cac8835c77
chore: add oxlint (@miodec) (#6455)
Use oxlint for general linting to provide much quicker feedback. Keep
eslint for type-aware rules. Fully switch to oxlint once it supports
type-aware.
2025-04-16 17:18:50 +02:00
Christian Fehmer
92d97c1fee
impr: optimize getFirstDayOfWeek (@fehmer) (#6457)
!nuf
2025-04-16 17:18:03 +02:00
Christian Fehmer
e1c8e4a226
impr(settings): use dropdown for custom layoutfluid (@fehmer) (#6445) 2025-04-16 16:55:38 +02:00
Christian Fehmer
4abcc8c5cd
impr: split keymap layouts into seperate files (@fehmer) (#6452)
!nuf
2025-04-16 15:06:53 +02:00
Miodec
2391bc5204 fix(test config): punctuation and numbers disappearing when selected language doesnt have any quotes
closes #6451
2025-04-16 12:53:16 +02:00
Miodec
9a4ac30957 fix(tape mode): indicate typos: below being cut off 2025-04-14 13:39:10 +02:00
Miodec
0750f26a99 chore: release v25.16.0 2025-04-14 13:06:53 +02:00
Nad Alaba
9a0fee2052
impr(tape mode): add multiline support for tape mode (@NadAlaba, @miodec) (#5868)
![newTape](https://github.com/user-attachments/assets/207b2ac0-e6c2-404a-95b3-e7633a5c375e)

***format:***
*file-name: line number on pr: `function name`*
*- message*

1. test-ui.ts: 448: `updateWordsInputPosition` & ui.ts: 109:
`debouncedEvent`
- calculate #wordsInput left position in tape mode same way when
tapeMode is off (because tape mode can have zen mode and will accept RTL
later. Also, now tape mode can have 3 lines, and #wordsInput needs to go
down to the 2nd line).
- call updateWordsInputPosition() on window resize which solves #6093 in
a simpler way than a2f6c1f.

2. test-ui.ts: 551: `updateWordsWrapperHeight`
- on zen mode make wrapper height 2 lines, and move conditions around.
- on tape mode make wrapper height min(#words.Height, .word.Height * 3)
because #words now have some padding to prevent hints from being cut off
in 1-line tap mode.

3. test-ui.ts: 285: `updateActiveElement`
- don't call scrollTape() on initial call of updateActiveElement()
because it'll be called by other functions (i.e, showWords() and
updateActiveWordLetters()).

4. test-ui.ts: 796: `updateActiveWordLetters`
- move activeWord definition to the top of the function to return if
it's not defined, and use type argument instead of "as".

5. test-ui.ts: 356: `getWordHTML` & test-ui.ts: 945:
`updateActiveWordLetters`
- add .beforeNewline and .afterNewline elements with each added .newline
element.
- the point of .afterNewline is to indent the next line, and the point
of .beforeNewline is to act as a filler for the top line when the words
of that line get removed in scrollTape() because they were overflown
horizontally.

6. test.scss: 176+188+279: `#words`+`#words.tape`
- change #words display from flex to block and make .word, .afterNewline
and .beforeNewline elements display: inline-block (but keep .newline as
block) in order to use white-space: nowrap, but still be able to break
on demand with block elements .newline.
- also, make default .word margin-bottom in tape mode 0.25em just like
in non-tape mode, since they are now practically similar.
- make the height of .beforeNewline identical to the height of .word so
that when all top-line-words are removed, the user won't feel a vertical
shift in lines.
- use vertical-align: top in .word and .beforeNewline, because in
lineJump(), we rely on their offsetTop to be the same if they are on the
same line.
- add padding-bottom: 0.5em to #words to prevent hints from being
cut-off in the last line of test when showAllLines= on and in 1-line
tape mode.

7. input-controller: 169: `backspaceToPrevious`
- remove .beforeNewline and .afterNewline elements with .newline
elements when backspacing to a higher line in zen mode.

8. test-ui.ts: 590: `updateWordsMargin`
- when tape mode is turned on, first adjust the margins and then remove
overflown elements (this is what passing true to scrollTape() does), and
when it's turned off unset the margins of both #words and .afterNewline.

9. test-ui.ts: 1168: `removeElementsBeforeWord`
- add a new helper function that removes all elements (except
.smoothScroller), before (and including) the input element and returns
the removed .word elements (removes
.newline/.afterNewline/.beforeNewline/.word elements, but returns number
of removed .words only)

10. test-ui.ts: 1191: `lineJump`
- some refactoring: save HTMLelements in const instead of repeatedly
querying the DOM.
- allow lineJump() to be called in force (even when currentTestLine ===
0), which is useful when changing Config.showAllLines to off
(currentTestLine stays at zero in showAllLines=on), in order to lineJump
and keep the active word on the 2nd line.
- make the conditions to run lineJump() similar in tapeMode on and off
(currentTestLine > 0, hideBound = currentTop - 10).
- when determining the elements to hide, save the index of the last
element to hide in a const and then remove it and everything before it
when the animation completes. It is done like this instead of saving
what needs to be hidden in an array, because .afterNewline elements have
offsetTops that cannot be relied upon to determine if they need to be
hidden or not. The new function removeElementsBeforeWord() does that.
- last element to hide is now the last .word or .newline that is higher
than the hideBound.
- #words margin-top animation is done in its own queue so that we only
.stop() margin-top animation without affecting margin-left animation.

11. test-logic.ts: 1434: `ConfigEvent.subscribe`
- remove the restriction to allow changing showAllLines without
restarting the test.

12. test-ui.ts: 492: `centerActiveLine` & ui.ts: 107: `debouncedEvent`
- add a function centerActiveLine() that finds the top of the previous
line and calls lineJump() passing that top to it. If the active word is
on the 1st line it does nothing.
- this is useful on window resize because it used to call lineJump()
passing the top of the previous word to it, causing unnecessary line
jumping if the active word was in the middle of the 2nd line (see gif
below).
- this is also useful when turning ShowAllLines off to hide (remove) all
lines higher than the previous line.

![2025-04-06
18-18-34](https://github.com/user-attachments/assets/2a4a6842-1d61-44f2-a913-c0c6c7bbee27)

13. test-ui.ts: 190: `ConfigEvent.subscribe()`
- call updateWordsWrapperHeight() on showAllLines change, and if the
change was to 'off' call centerActiveLine() in order to keep the active
word in the middle line.

14. test-ui.ts: 954: `getNlCharWidth`
- add a new helper function that calculates the width of the nlChar
letter that is in the last .word element before the input element, and
check if the nlChar placeholder was incorrectly typed, if so return a
width of 0. This last check is to minimize next line shifting behavior,
see
[video](https://discord.com/channels/713194177403420752/713196019206324306/1283880903382274119)

15. test-ui.ts: 978: `scrollTape`
    - remove leading .afterNewline elements.
- get last element to loop over which is the 2nd .afterNewline after
active word, or else the 1st one after active, or else stop at the
active word.
- in the main loop sum the widths of words before new line then add it
to the left margin of the next .afterNewline, while also determining the
widths of words before the active word (which will be in the new
margin-left of #words), and determine what words have overflown the
wrapper and need to be hidden.
- if there is anything to remove, remove the overflown elements, and
adjust margin-left of #words and .afterNewline by the width of what was
removed.
- calculate the width of the current word in tape=letter just like
before then animate the new #words margin-left and .afterNewline
elements' margin-left.
- #words margin-left animation is done in its own queue so that when we
use .stop() before the animation we'll only be stopping the margin-left
animation and not the margin-top animation which is performed in
lineJump().

16. test-ui.ts: 492: `centerActiveLine`
- scrollTape now awaits the promise centeringActiveLine which is always
resolved except if showAllLines was on and tape mode was turned on
through the commandline mid-test. In that case centeringActiveLine won't
be resolved until lineJump completes its animation/style-change, so that
scrollTape removing words won't conflict with lineJump removing words.

Closes #3907

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2025-04-13 21:59:43 +02:00
Miodec
e436671a45 impr: add promiseWithResolvers util
makes it a bit nicer when working with promises that need to be resolved outside of the promise body

!nuf
2025-04-11 16:55:29 +02:00
Miodec
a7f4dcf9e0 fix: unhelpful error messages when custom background image was not a valid url 2025-04-11 16:55:29 +02:00
Dominykas Černovas
248de12f63
impr(quotes): add lithuanian quotes (@Kurbamit) (#6440)
Translations:
Lithuanian: `Pelėsiais ir kerpe apaugus aukštai Trakų štai garbinga
pilis! Jos aukštus valdovus užmigdė kapai, O ji tebestovi dar vis.`
English: `Overgrown with mold and lichen, the high and venerable castle
of Trakai is here! Its high rulers have fallen asleep in tombs, And it
still stands.`

Lithuanian: `Ko ko, bet kvailių visur yra daugiau, negu reikia.
Kiekviena tauta jų turi ir sau, ir eksportui pakankamai, lygiai kaip
kiekviena tauta turi nuosavus latrus ir šventuosius.`
English: `Whatever, there are more fools everywhere than necessary.
Every nation has enough of them for itself and for export, just as every
nation has its own saints and saints.`

Lithuanian: `Lietuva, Tėvyne mūsų Tu didvyrių žeme, Iš praeities Tavo
sūnūs Te stiprybę semia.`
English: `Lithuania, our homeland, you are the land of heroes, From the
past your sons draw strength.`

Lithuanian: `Katorgininkas privalo sau vinimi įsikalti į kaktą: lageryje
visuomet kaltas yra nuskriaustasis, o ne skriaudėjas.`
English: `A convict must drive a nail into his own head: in a camp, the
wronged is always to blame, not the wrongdoer.`

Lithuanian: `Kai angelas atsisveikina su naujai gimusiuoju, jis paliečia
pirštu jo veidą, kad atvykėlis į žemę neprisimintų dangaus. Štai kodėl
tarp nosies ir viršutinės lūpos įspaustas griovelis.`
English: `When the angel says goodbye to the newborn, he touches his
face with his finger so that the newcomer to earth will not remember
heaven. That is why a groove is imprinted between the nose and the upper
lip.`

Lithuanian: `Juo labiau persekiojama idėja, juo brangesnė ir juo giliau
leidžia šaknis į žmogaus širdį.`
English: `The more an idea is pursued, the more precious it is and the
deeper it takes root in the human heart.`

Lithuanian: `Gyvenimas yra įvairus, reikia stengtis jį suprasti.`
English: `Life is diverse, you need to try to understand it.`

Lithuanian: `Nes ir miškas lietuvį, kaip tik galėjęs, Taip visados
raminęs, visados mylėjęs.`
English: `Because the forest, as best it could, has always soothed and
always loved the Lithuanian.`

Lithuanian: `Eik į gyvenimą pakelta galva ir atvira širdžia. Savo
širdies vis tiek nenumarinsi. Priimk gyvenimą kaip būtinybę, bet manyk,
kad geriau nė negalėjo būti. Nieko nesibijok, nieko nesigailėk ir dėl
nieko nesisielok.`
English: `Go through life with your head held high and your heart open.
You can't kill your heart anyway. Accept life as a necessity, but think
that it couldn't be better. Fear nothing, regret nothing, and grieve for
nothing.`

Lithuanian: `Dabartis savaime kuria ateitį. Jeigu mes visi norėtume
numatyti, įspėti ateitį ir pagal ją formuoti dabartį, mes rizikuotume
žiauriai apsirikti: prasilenkti su ateitim ir nieko gero neduoti
dabarčiai.`
English: `The present itself creates the future. If we all wanted to
predict, warn about the future, and shape the present according to it,
we would risk making a terrible mistake: getting ahead of the future and
doing nothing good for the present.`

Lithuanian: `Lygiam gyvenime siela apmiršta ir žmogus nebežino, ko jis
vertas.`
English: `In a life of equality, the soul becomes forgetful and a person
no longer knows what he is worth.`

Lithuanian: `Toks jau lietuvių būdas: kai du vaidijasi, nors
užsimuštinai mušasi, trečias bėga šalin, kad jam iš abiejų nekliūtų
arba, vienam negyvam likus, kad liudytoju nereiktų būti.`
English: `This is the Lithuanian way: when two people are fighting, even
if they are fighting to the death, the third one runs away so that he
doesn't get in the way of either of them or, if one of them is left
dead, so that he doesn't have to be a witness.`
2025-04-11 15:43:45 +02:00
WormholeDragon
54a45b60c1
impr(quotes): add Russian quotes (@WormholeDragon) (#6437)
### Description

Added quotes from Russian classics.

### Translations

1058: A drowning man, they say, grabs a small splinter, and he has no
reason to think that a fly can ride on a splinter, and his weight is
almost four poods, if not even five whole poods; but it does not come to
his mind at that time, and he grabs the splinter.

1059: The current generation now sees everything clearly, marvelling at
the misconceptions, laughing at the unreasonableness of their ancestors,
not for nothing, that this chronicle is scrawled with heavenly fire,
that every letter screams in it, that a piercing finger is everywhere
directed at them, at them, at the current generation; but the current
generation laughs and presumptuously, proudly begins a series of new
misconceptions, which will also be laughed at later by their
descendants.

1060: Everything quickly turns in a man; before you know it, a terrible
worm has grown inside, self-possessedly turning to itself all the vital
juices. And many times not only a broad passion, but a petty passion for
something petty grew in him who was born for the best feats, made him
forget his great and holy duties and see the great and holy in
insignificant trinkets.

1061: All life is thought and labour, labour though obscure, dark, but
continuous, and to die with the consciousness that one has done one's
work.

1062: As soon as he woke up, he immediately resolved to get up, wash his
face, and, having drunk tea, to think hard, to think of something, to
write it down, and generally to do it properly. For half an hour he lay
there, tormented by this intention, but then he reasoned that he would
have time to do it after tea, and tea could be drunk in bed, as usual,
especially as there was nothing to prevent him from thinking while lying
down.

1063: The fact was that Tarantiev was a master only of speaking; he
decided everything clearly and easily in words, especially what
concerned others; but as soon as it was necessary to move a finger, to
move from a place - in a word, to apply his own theory to a case and to
give it a practical course, to give it disposition and speed - he was
quite a different man: Suddenly he was not enough - he was suddenly
heavy, or unwell, or awkward, or another matter would come up, which he
would not take up, and even if he did, God forbid what would happen.

1064: He was not frightened, for instance, by the cracked ceiling in his
bedroom: he was accustomed to it; nor did it occur to him that the
perpetually stale air in the room and the constant sitting locked up
were almost more ruinous to health than the dampness of the night; that
to overfill the stomach daily was a kind of gradual self-destruction;
but he was accustomed to it and was not frightened.

1065: He unfurled his umbrella while it rained, that is, he suffered
while the grief lasted, and he suffered without timid submission, but
more with vexation, with pride, and he bore it patiently only because he
attributed the cause of every suffering to himself, and did not hang it,
like a caftan, on someone else's nail. And he enjoyed joy like a flower
plucked on the road, until it wilted in his hands, without ever
finishing the cup to that drop of bitterness which lies at the end of
every pleasure.

1066: When all the forces in your organism play, then life will play
around you, and you will see what your eyes are closed to now, you will
hear what you cannot hear: the music of the nerves will play, you will
hear the noise of the spheres, you will listen to the growth of grass.
Wait, do not hurry, it will come!

1067: It often happens to fall asleep in summer on a quiet, cloudless
evening, with twinkling stars, and think how good the field will be
tomorrow in the morning's bright colours! How cheerful it is to go deep
into the thicket of the woods and hide from the heat! And suddenly one
wakes up to the pounding of rain, to grey sad clouds; cold, damp....

1068: He had never clearly grasped the weight of a word of goodness,
truth, purity, thrown into the stream of people's speech, the deep
windings it breaks through; he had never thought that if spoken
cheerfully and loudly, without the colour of false shame, but with
courage, it would not sink into the ugly cries of the secular satyrs,
but would sink like a pearl into the abyss of social life, and there
would always be a shell for it.

1069: Many hesitate at a good word, weeping with shame, and boldly,
loudly utter a frivolous word, not realising that it too, unfortunately,
does not go to waste, leaving a long trail of evil, sometimes
ineradicable.

1070: Life flashes by like an instant, and he would lie down and sleep!
Let it be a constant burning! Oh, if I could live two hundred, three
hundred years! How many things could be done!

1071: Human beings are created to organise themselves and even to change
their nature, but they grow a paunch and think that nature has sent them
this burden! You had wings, but you cut them off.

1072: I know that love is less exacting than friendship, it is even
often blind, love is not for merit - that's true. But love requires
something, sometimes trifles, which can neither be defined nor named,
and which is absent in my incomparable but clumsy Ilya.

1073: Reach out to a fallen man to lift him up, or weep bitterly over
him if he perishes, rather than mock him. Love him, remember yourself in
him, and treat him as yourself - then I will read you and bow my head to
you...

1074: A short, daily rapprochement between man and man does not cost
either of them for nothing: a lot is needed on both sides of life
experience, logic and warmth of heart, that, enjoying only the
advantages, not to stab and not stab mutual shortcomings.

1075: Friendship is a good thing when it is a love between a young man
and woman or a remembrance of love between old men. But God forbid if it
is friendship on one side and love on the other.

1076: When you don't know what you live for, so you live somehow, day by
day; you rejoice that the day has passed, that the night has come, and
in your sleep you plunge the dull question of why you lived this day,
why you will live tomorrow.

1077: Some people have nothing better to do than talk. It's a calling.

1078: And the night was the darkest you can imagine. In summer, you
know, we have such dark nights near Kursk, but warm and mild: the stars
are hung like lamps across the sky, and the darkness underneath is so
thick that it is as if someone were fumbling and touching you in it...

1079: These astronomers are the worst, and especially in the drawbar
they are the most dangerous; a postilion always has to watch a horse
with such a habit, because the astronomer himself does not see how he
pokes his feet, and God knows where he ends up.

1080: Who knows what I'll find when I return? And how much I may lose!

1081: When you have travelled and returned home, and the smoke of the
Fatherland is sweet and pleasant to us!

1082: Have you ever, laughing or in sorrow, by mistake, said a kind word
about someone? Though not now, but perhaps when you were a child.

1083: What a trick you pulled! I haven't written two words for three
years! And then suddenly it came out of nowhere.

1084: How marvellous is the light created! If you philosophise, your
mind will be dizzy; If you take care, then dinner: Eat for three hours,
but in three days it will not be digested!

1085: There are on earth such transformations of governments, climates,
and manners, and minds; there are people important, heard for fools:
another in the army, another a bad poet, another ... I am afraid to
name, but recognised by the whole world, especially in recent years,
that they have become clever as anything.

1086: When in business I hide from mirth, when to fool, I fool; and to
mix these two trades there are a darkness of artisans, I am not of their
number.

1087: I was blind! In whom I sought the reward of all my labours! In a
hurry! Flying! I was trembling! I thought happiness was at hand. Before
whom I was so passionate and so low a waster of tender words! And you!
Oh, my God! Whom have you chosen? When I think who you have chosen! Why
did you entice me with hope? Why did you not tell me that you have
turned the past into laughter?! That the memory of those feelings, of
those movements of the heart in both of us, which neither distance, nor
amusement, nor change of place has cooled in me. I breathed them, and
lived them, and was occupied with them without ceasing! If you had been
told that my sudden arrival, my appearance, my words, my actions -
everything disgusts you - I would have cut off all communication with
you at once, and before parting for ever I would not have tried to find
out who this amiable man is?

1088: So! I have sobered up completely, dreams are out of sight - and
the veil has fallen;

1089: Who are the judges? - Beyond the antiquity of years. Their enmity
to free life is irreconcilable; their judgements are drawn from
forgotten newspapers of the times of Ochakovsk and the conquest of the
Crimea; always ready for a fight, they all sing the same song, not
noticing about themselves: what is older, is worse. Where are the
fathers of the fatherland, whom we should take as models? Are not these,
rich in robbery? They have found protection from judgement in friends,
in kinship, in splendid chambers, where feasts and debauchery spill
over, and where foreign clients will not resurrect the meanest features
of their past lives.

### Checks

- [ ] Adding quotes?
- [ ] Make sure to include translations for the quotes in the
description (or another comment) so we can verify their content.
- [ ] Adding a language or a theme?
- [ ] If is a language, did you edit `_list.json`, `_groups.json` and
add `languages.json`?
  - [ ] If is a theme, did you add the theme.css?
- Also please add a screenshot of the theme, it would be extra awesome
if you do so!
- [ ] Check if any open issues are related to this PR; if so, be sure to
tag them below.
- [ ] Make sure the PR title follows the Conventional Commits standard.
(https://www.conventionalcommits.org for more info)
- [ ] Make sure to include your GitHub username prefixed with @ inside
parentheses at the end of the PR title.

<!-- label(optional scope): pull request title (@your_github_username)
-->

<!-- I know I know they seem boring but please do them, they help us and
you will find out it also helps you.-->

Closes #

<!-- the issue(s) your PR resolves if any (delete if that is not the
case) -->
<!-- please also reference any issues and or PRs related to your pull
request -->
<!-- Also remove it if you are not following any issues. -->

<!-- pro tip: you can mention an issue, PR, or discussion on GitHub by
referencing its hash number e.g:
[#1234](https://github.com/monkeytypegame/monkeytype/pull/1234) -->

<!-- pro tip: you can press . (dot or period) in the code tab of any
GitHub repo to get access to GitHub's VS Code web editor Enjoy! :) -->
2025-04-10 14:10:20 +02:00
Haz
b5720e3bd1
feat(language): add bosnian 4k (@aitchz) (#6432)
### Description

add bosnian_4k

### Checks

- [x] Adding a language or a theme?
- [x] If is a language, did you edit `_list.json`, `_groups.json` and
add `languages.json`?
- [x] Check if any open issues are related to this PR; if so, be sure to
tag them below.
- [x] Make sure the PR title follows the Conventional Commits standard.
(https://www.conventionalcommits.org for more info)
- [x] Make sure to include your GitHub username prefixed with @ inside
parentheses at the end of the PR title.

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2025-04-10 14:02:59 +02:00
Carlos
3e72c4dd1f
fix(language): update spanish 1k (@CarloskHard) (#6407)
### Description

<!-- Please describe the change(s) made in your PR -->

### Checks

- [ ] Adding quotes?
- [ ] Make sure to include translations for the quotes in the
description (or another comment) so we can verify their content.
- [ ] Adding a language or a theme?
- [ ] If is a language, did you edit `_list.json`, `_groups.json` and
add `languages.json`?
  --> I only updated words in the existing "spanish_1k.json"
  - [ ] If is a theme, did you add the theme.css?
- Also please add a screenshot of the theme, it would be extra awesome
if you do so!
- [ ] Check if any open issues are related to this PR; if so, be sure to
tag them below.
- [ ] Make sure the PR title follows the Conventional Commits standard.
(https://www.conventionalcommits.org for more info)
- [ ] Make sure to include your GitHub username prefixed with @ inside
parentheses at the end of the PR title.

<!-- label(optional scope): pull request title (@your_github_username)
-->

<!-- I know I know they seem boring but please do them, they help us and
you will find out it also helps you.-->

Closes #

I updated the "Spanish _1k.json" list because it was based on an old
study from 1975 to 2004 and there was too many political/legal words
that are not used often today (not at least in the 1k most used words)
and also updated some old words with more modern ones.
There was a lot of basic words missing: there were words like
"gastropod" or "triphthong" but "hello" or "yes" weren't there.

After doing my research I found out there isn't any other modern study
so I had to manually select the outdated words and manually change them
for basic missing words, so this is not perfect but it's better than
what there was before. Someone could still filter it a little bit more
by changing rare words for more normal ones that better fit the "1k"
list (Maybe I'll do it in the future).

Thanks and happy typing!
2025-04-10 13:44:47 +02:00
Miodec
bda99ca91f fix: make sure to consider activeWordElementOffset when backspacing
!nuf
2025-04-09 17:48:50 +02:00
Miodec
d9173a5b86 chore: update string 2025-04-09 17:44:22 +02:00
Miodec
8a9ff65e78 fix: incorrect string when invalid config schema
!nuf
2025-04-09 17:41:16 +02:00
Miodec
2c6bc47d89 impr(account page): add average accuracy and average consistency to the activity graph 2025-04-09 16:19:54 +02:00
Christian Fehmer
f6d9b7c3ef
impr: lazy load chartData on results (@fehmer) (#6428)
Optimize results endpoint by removing heavy or unused data. 

We load the whole result chart data for up to 1000 results each time,
but it is very unlikely the user will view the charts for all old
results. By removing the size in my tests went down from 1152kb to
276kb.

---------

Co-authored-by: Miodec <jack@monkeytype.com>
2025-04-08 13:46:40 +02:00