Commit graph

8303 commits

Author SHA1 Message Date
Miodec 593fdb5f92 code. nothing to see here, move on 2022-10-31 00:45:46 +01:00
akp b6d17d64ee
Fixed #2361 (#3695) aungKhantPaing
* fixed #2361

Fixed command line input bug on android

* Update frontend/src/ts/commandline/index.ts

* Update frontend/src/ts/commandline/index.ts

Co-authored-by: Rizwan Mustafa <rizwanmustafa0000@gmail.com>
2022-10-30 23:02:22 +01:00
Miodec 5cef5d0cbc allowing the user to close the unexpected server down time banner 2022-10-30 22:59:19 +01:00
Bruce Berrios 1eb71dc517
Add memoize async util (rewrite get json lists in misc) (#3596) Bruception Miodec
* Add memoize async util

* Stricter types

* type cast

* added getjson function

* removed unnecessary code
removed comments

* ignoring cache if value is undefined

* checking if layouts list exists

* messed up merge

* checking if layouts exist

* throwing if layouts list or layout is undefined

* catching in case layouts or layout is undefined

* catching in case layouts list or layout is undefined

* breaking in case layouts list is undefined

* showing a message if layout list is undefined

* removed console log

* themes list can return undefined

* removed catch from fetch json

* getlayoutslist no longer can return undefined

* console logging then throwing again

* rethrowing with a different message

* try catch

* catch

* try catching

* try catching

* typo

* url fix

* moved definition up

* moved functions up

* moved functions up

* removed unnecessary update

* catching errors

* updated return type
not returning

* try catching

* updated return type
throwing if list ends up undefined

* removed return

* moved functions up

* try catching

* checking if not undefined

* removed unused file

* try catching

* try catching

* rewrote language getting

* rewrote funbox

* try catching

* notification instead of console error

* notification instead of console error

* rewrote fonts

* rewrote challenges

* try catch

* typo

* rewrote contributors and supporters

Co-authored-by: Miodec <jack@monkeytype.com>
2022-10-30 22:53:24 +01:00
Miodec cbdfb732a1 showing decimal places on the pb table if they are enabled
closes #3696
2022-10-30 00:37:53 +02:00
Miodec 4f791f2060 updated contributors list 2022-10-29 16:45:46 +02:00
Miodec a1ab515857 updated git ignore 2022-10-29 16:45:33 +02:00
Miodec 95b91f1d70 not recording uids for now 2022-10-29 14:31:36 +02:00
Miodec 508c289c92 added a function which applies a custom rate limiter when using ape key
opened results endpoint to ape keys (1 req per hour)
updated docs to mention new open endpoint
2022-10-28 18:42:44 +02:00
Miodec b00e5d893e logging busiest uids 2022-10-28 14:39:33 +02:00
Miodec 8389970963 fixed moonlight sub alt color being the same as background 2022-10-27 19:22:43 +02:00
Miodec b1e2fd57d0 limited merch banner 2022-10-27 18:30:03 +02:00
EMRD95 73d0d88aeb
French 630k (#3687) EMRD95 2022-10-26 23:35:47 +02:00
Miodec 67dc086b5a found a good value 2022-10-26 19:18:59 +02:00
Miodec 820ef70ed9 removed todo 2022-10-26 19:15:44 +02:00
Miodec 5ebd050e9c fixed accouracy being rounded in some places instead of floored
closes #3683
2022-10-26 19:12:41 +02:00
Miodec a6a7454d2e deleting ape keys, presets, config on user delete
also removing from leaderboards
closes #3684
2022-10-26 19:02:37 +02:00
Miodec 9b678eb1b9 unly updating keymap when needed
also calling refresh when updating keymap mode
2022-10-26 15:41:02 +02:00
Miodec dc02c21c79 refreshing keymap before showing test page 2022-10-26 14:58:39 +02:00
Miodec 964ce3379f removed console log 2022-10-26 14:55:50 +02:00
Miodec 3d2057e177 pushing actual bucket before filling the empty ones 2022-10-26 14:02:20 +02:00
Miodec ea63e73b61 using correct variable 2022-10-26 14:01:56 +02:00
QuackerDeezles ab008110bb
New Language: "lorem ipsum" by me (#3681) QuackerDeezies
* New language: english doubleletter -> A 200-word list only including words that have the same letter used consecutively.

* english doubleletter error, comma syntax fixed!

* english doubleletter -> english_doubleletter

* A list of roughly 200 lorem-ipsum type words generated by AI bots!

* renamed file

* removed duplicates

Co-authored-by: Miodec <jack@monkeytype.com>
2022-10-25 14:03:52 +02:00
CoolerFred d9ee92770e
Added some cool deep quotes... (#3676) CoolerFred
* Added some cool deep quotes...

* Fixed a SMALL typo

* Fixed TWO small typos

* fixed length

Co-authored-by: Miodec <jack@monkeytype.com>
2022-10-25 14:01:14 +02:00
Varun Tiwari 1afca8204a
Added commands to add/remove the current theme to favorites (#3682) varunKT001
* Added 'Add current theme to favorite...' command

* Remove toggle for 'Add current theme to favorite...' command

* Added 'Remove current theme from favorite...' command

* Merge add/remove commands in a single file

* removed dots

* updated icon

* only showing favorite commands if custom theme is disabled

Co-authored-by: Miodec <jack@monkeytype.com>
2022-10-25 13:38:57 +02:00
Miodec 6adbdb19fd removed programme 2022-10-25 13:38:20 +02:00
Miodec 6db89e8744 missing turkish characters 2022-10-25 13:14:20 +02:00
Miodec ce5f4393c0 making restart button always visible on mobile 2022-10-24 13:31:04 +02:00
Miodec 673d74956a fixed failing test completing long text, fixed progress saving skipping a word 2022-10-24 12:41:46 +02:00
Miodec c7402bf203 setting custom long text name to empty/undefined when deleting long text 2022-10-24 12:31:02 +02:00
EMRD95 48dcfe7402
More french quotes about typing (#3680) EMRD95
* More french quotes

Translation: 

 "text": "You are sitting and you only want to wait, wait only until there is nothing left to wait for: until the night comes, until the hours ring, until the days go by, until the memories fade away",
      "source": "A Sleeping Man (1967) by Georges Perec",
      "length": 207,
      "id": 117
    },
    {
      "text": "I love peanuts. You're drinking a beer and you're sick of the taste. So you eat peanuts. Peanuts are sweet and salty, strong and tender, like a woman. Eating peanuts, it's a really strong feeling. And then you feel like drinking beer again. Peanuts are the perpetual motion within the reach of man,
      "source": "JCVD cult quotes from Jean-Claude Van Damme",
      "length": 342,
      "id": 118
    },
    {
      "text": "To live is to go from one space to another trying as much as possible not to bump into each other.",
      "source": "Espèces d'espaces (1974) by Georges Perec",
      "length": 100,
      "id": 119
    },
    {
      "text": "He was a word killer: he worked on updating the Larousse dictionaries.",
      "source": "La Vie mode d'emploi (1978) by Georges Perec",
      "length": 84,
      "id": 120
    },
    {
      "text": "The law is implacable, but the law is unpredictable. No one is supposed to ignore it, but no one can know it.",
      "source": "W. ou le Souvenir d'enfance (1975) by Georges Perec",
      "length": 110,
      "id": 121
    },
    {
      "text": "You have everything to learn, everything that cannot be learned: solitude, indifference, patience, silence.",
      "source": "A Sleeping Man by Georges Perec",
      "length": 107,
      "id": 122
    },
    {
      "text": "You can be God of the dogs, God of the cats, God of the poor, all you need is a leash, some slack, some fortune, but you will never be master of the tree. You will never be able to but want to become a tree in your turn.",
      "source": "A Sleeping Man by Georges Perec",
      "length": 229,
      "id": 123
    },
    {
      "text": "Yea, though I walk through the valley of the shadow of death, I will fear no evil: for thou art with me, thy rod and thy staff, they comfort me.",
      "source": "Psalm 23:4 Darby Bible",
      "length": 164,
      "id": 124
    },
	{
      "text": "Nature has not made each of us like each other, but different in ability, and fit for this or that purpose.",
      "source": "Plato's Republic",
      "length": 88,
      "id": 125
    },
	{
      "text": "None of the human things are worth taking with great seriousness.",
      "source": "Plato's Republic",
      "length": 65,
      "id": 126
    },
	{
      "text": "True philosophers guard against all the passions of the body, resist them and do not give themselves over to them.",
      "source": "Phaedo, 82b by Plato",
      "length": 107,
      "id": 127
    },
	{
      "text": "Some call the body the tomb of the soul where it is presently buried.",
      "source": "Cratylus of Plato",
      "length": 106,
      "id": 128
    }
  ]
}

* Removed the peanut and word killer quote

Translation of the changes:

id 120
Your room is the most beautiful of the deserted islands, and Paris is a desert that nobody ever crossed. You don't need anything else but this calm, this sleep, this silence, this torpor. Let the days begin and let the days end, let time pass, let your mouth close, let the muscles of your neck, your jaw, your chin, relax completely, let only the heaving of your ribcage, the beating of your heart, still testify to your patient survival.

id 118
Plants, for example, which have no hands and no ears, feel things, vibrations, they are more aware than other species.

* Update french.json

* More french quotes about typing

Translation:
1) She attended a typing school. In front of the school desks, girls of all ages were whispering while a woman sitting at a table was reading aloud... * Les Destinées Sentimentales (1934-1936) by Jacques Chardonne
2) A typist is a person whose striking power is not always a deterrent for her boss. * Dictionnaire français-rosse de Noctuel

* Update french.json
2022-10-24 12:19:46 +02:00
akp fa3482f46e
Add Burmese layout (#3678) aungKhantPaing 2022-10-24 12:19:14 +02:00
Rob Sassack f1ad57ab3b
Update banner refresh (#3677) robsassack
* Added refresh on click to update banner

* Minimized added CSS
2022-10-24 12:16:22 +02:00
Miodec 5ae51b36ff moved british english below languages 2022-10-22 12:59:16 +02:00
Peter Moore 677481b3fb
Add quotes to code_c (#3674) PeterMoore24
* Added fibonacci to code_c

* Added FreeBSD boot and GCC quotes to code_c

* Added python and vkd3d quotes to code_c

* fixed quote lenghts

Co-authored-by: Miodec <jack@monkeytype.com>
2022-10-21 23:08:40 +02:00
Miodec 42a70c61bd fixed leaderboards not working when not signed in 2022-10-21 22:44:01 +02:00
Miodec 2551a98bf5 fixed one package vuln 2022-10-21 14:57:45 +02:00
Miodec 3d90c398d0 updated to husky 8 2022-10-21 14:51:44 +02:00
Miodec 9813c9d757 updated firebase version 2022-10-21 14:51:44 +02:00
Swarit Choudhari 062cfeaca3
add quotes for 3 languages (#3672) SwiftyProgrammer690
* Add quotes for languages english, hindi, norwegian

* added vintage_red theme

* Delete vintage_red.css

* Update _list.json
2022-10-21 14:12:50 +02:00
Miodec 1414c7301d fixed missing decimal points 2022-10-19 12:44:38 +02:00
Miodec 22d07d14ec making sure the preset filters have all the required keys 2022-10-19 00:55:47 +02:00
Miodec b1d53f1f99 fixed incorrect schema 2022-10-19 00:34:47 +02:00
Miodec ebd19f0a56 fixed incorrect event handler binding
closes #3669
2022-10-19 00:30:23 +02:00
Miodec 293a7868e2 showing decimal places on the accounts page if enabled in the settings 2022-10-19 00:27:20 +02:00
EMRD95 825ea7f520
More french quotes (#3661) emrd95
* More french quotes

Translation: 

 "text": "You are sitting and you only want to wait, wait only until there is nothing left to wait for: until the night comes, until the hours ring, until the days go by, until the memories fade away",
      "source": "A Sleeping Man (1967) by Georges Perec",
      "length": 207,
      "id": 117
    },
    {
      "text": "I love peanuts. You're drinking a beer and you're sick of the taste. So you eat peanuts. Peanuts are sweet and salty, strong and tender, like a woman. Eating peanuts, it's a really strong feeling. And then you feel like drinking beer again. Peanuts are the perpetual motion within the reach of man,
      "source": "JCVD cult quotes from Jean-Claude Van Damme",
      "length": 342,
      "id": 118
    },
    {
      "text": "To live is to go from one space to another trying as much as possible not to bump into each other.",
      "source": "Espèces d'espaces (1974) by Georges Perec",
      "length": 100,
      "id": 119
    },
    {
      "text": "He was a word killer: he worked on updating the Larousse dictionaries.",
      "source": "La Vie mode d'emploi (1978) by Georges Perec",
      "length": 84,
      "id": 120
    },
    {
      "text": "The law is implacable, but the law is unpredictable. No one is supposed to ignore it, but no one can know it.",
      "source": "W. ou le Souvenir d'enfance (1975) by Georges Perec",
      "length": 110,
      "id": 121
    },
    {
      "text": "You have everything to learn, everything that cannot be learned: solitude, indifference, patience, silence.",
      "source": "A Sleeping Man by Georges Perec",
      "length": 107,
      "id": 122
    },
    {
      "text": "You can be God of the dogs, God of the cats, God of the poor, all you need is a leash, some slack, some fortune, but you will never be master of the tree. You will never be able to but want to become a tree in your turn.",
      "source": "A Sleeping Man by Georges Perec",
      "length": 229,
      "id": 123
    },
    {
      "text": "Yea, though I walk through the valley of the shadow of death, I will fear no evil: for thou art with me, thy rod and thy staff, they comfort me.",
      "source": "Psalm 23:4 Darby Bible",
      "length": 164,
      "id": 124
    },
	{
      "text": "Nature has not made each of us like each other, but different in ability, and fit for this or that purpose.",
      "source": "Plato's Republic",
      "length": 88,
      "id": 125
    },
	{
      "text": "None of the human things are worth taking with great seriousness.",
      "source": "Plato's Republic",
      "length": 65,
      "id": 126
    },
	{
      "text": "True philosophers guard against all the passions of the body, resist them and do not give themselves over to them.",
      "source": "Phaedo, 82b by Plato",
      "length": 107,
      "id": 127
    },
	{
      "text": "Some call the body the tomb of the soul where it is presently buried.",
      "source": "Cratylus of Plato",
      "length": 106,
      "id": 128
    }
  ]
}

* Removed the peanut and word killer quote

Translation of the changes:

id 120
Your room is the most beautiful of the deserted islands, and Paris is a desert that nobody ever crossed. You don't need anything else but this calm, this sleep, this silence, this torpor. Let the days begin and let the days end, let time pass, let your mouth close, let the muscles of your neck, your jaw, your chin, relax completely, let only the heaving of your ribcage, the beating of your heart, still testify to your patient survival.

id 118
Plants, for example, which have no hands and no ears, feel things, vibrations, they are more aware than other species.

* Update french.json
2022-10-18 15:46:17 +02:00
Brian Evans cffa7514ea
Save speed stats in leaderboard update (#3652) mrbrianevans
* Save speed stats in leaderboard update

Saves a histogram data structure of speeds for buckets rounded to the nearest 10.

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* API endpoint to get public speed stats

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Add APE class for public stats (WIP)

I created an APE class for accessing public stats. Also stubbed getting and showing the public speed stats on the about page. Haven't implemented the histogram yet though.

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Draw histogram for global speed stats

On about page

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Update histogram colors on theme change

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Fixed out-of-order data in speed histogram

 Data was not sorted correctly, which resulted in an incorrect histogram being drawn.

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Public speed stats PR fixes

Small fixes based on PR feedback:
 - changed _req to req
 - removed unnecessary client version header

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Add endpoint for typing stats

New endpoint to retrieve the public typing stats such as global count of tests completed.

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Renamed public-stats to public

Except in cases where it would cause an identifier named `public` as this is forbidden in strict mode.

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Add stats section to about page

In this commit:
 - add a section above about called stats
 - display typing stats in three columns
 - underneath show the histogram of speeds on english time 60
 - make chart responsive

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* Add unit test for Public DAL

Signed-off-by: Brian Evans <ebrian101@gmail.com>

* updated styling

* only requesting data once per session

* going one column on narrow screens

* added option to specify number of decimal poitns

* just showing million instead of abbreviating
updated structure
updated styling

Signed-off-by: Brian Evans <ebrian101@gmail.com>
Co-authored-by: Miodec <jack@monkeytype.com>
2022-10-18 15:45:45 +02:00
Jack 208e5c5e7f
backend server, not database 2022-10-18 12:35:40 +02:00
Miodec 18229a2beb installing dependencies manually is not required when using docker 2022-10-18 12:34:17 +02:00
Miodec e47048f0b2 added concurrently as a dev frontend dependency 2022-10-18 12:34:00 +02:00