Commit graph

8607 commits

Author SHA1 Message Date
Jack 6647a81ad1
Structure (#3951)
* created file which holds skeletons for popups

* using skeleton

* saving skeleton after the events are bound

* moved click event to a static element

* using skeleton

* added hide and show functions
using skeleton

* using skeleton

* using skeleton

* using skeleton

* using skeleton

* using skeleton

* fixed a bug where updating the preset name would not immediately show the update

* using skeleton

* shorter link transition

* using skeleton

* using skeleton

* using skeleton

* fixed a bug where accounts with no pbs would cause misplaced "show all pbs" button

* using skeleton

* using skeleton

* using skeleton

* using skeleton

* fixed quote mod not being sent to the client

* using skeleton

* using skeleton

* using skeleton

* using skeleton

* using skeleton

* using state object instead of html attributes
fixed a bug where no tags text would persist even when tags were added to the test
using skeleton

* using skeleton

* using skeleton

* using skeleton

* using skeleton

* using skeleton

* removed unused code

* unnecessary import

* unused code

* using skeleton

* changed click handling element
only hiding and restarting the test if init returned true

* using skeleton
returning boolean from init function

* removed console log

* added function to check if a popup is visible

* better visibility check

* rewrote alerts to use state object instead of pushing straight to dom
using skeleton

* better visibility check

* not using skeleton for now

* using skeleton
using state object
better visibility check

* added parent override

* unnecessary code

* changed function to a more generic one

* fixed cookie popup text possibly overflowing popup

* using "isPopupVisible" function instead of a "hasClass" check
added some missing escape key handlers

* using skeleton

* using skeleton

* using skeleton

* using skeleton

* standard popup animation length

* consistent animation timing

* using iselementvisible function

* removed unused function

* using isElementVisible

* proper show and hide functions, added callback funciton on hide,
added noAnim params

* fixed no animation on the logo sub text

* reordered click handlers

* moved code to a fill function

* using proper show and hide functions
added callback on hide param
added no anim and no callback parameters

* added no anim parameter
callback func is optional

* also applying noanimation to hiding animation

* using proper hide and show functions

* using iselementvisible

* using skeleton

* missing space

* storing text area state in custom text

* using skeleton

* setting state on show instead of on hide

* moved click handler

* unused code

* missing parent override

* using skeleton

* no longer waiting for document to be ready

* settings using skeleton

* profile search using skeleton

* page profile using skeleton

* navigating to account if already logged in

* using skeleton

* using skeleton

* emptying result replay and words history on restart

* optimised theme picker

* optimised settings page fill

* performance optimisation

* awaiting promises

* brought back code that was accidentally removed

* async

* addad param to avoid duplicate group update on settings page load

* added main thread yields to remove long tasks

* optimising performance of about page loading

* not awaiting

* breaking up long tasks to optimise performance

* optimised button appending

* fixed avatar being too big

* optimisation
splitting up code
added yields to split tasks

* fixed merge

* removed sleep

* missing chart color update

* updating main chart first

* disabling animation during update

* updating chart colors once instead of on every update

* added one more sleep

* removed sleep causing graphical issues

* update chart regardless if it has data or not

* hiding estimated words typed when no data was found
2023-01-27 15:10:07 +01:00
Miodec 707575546c fixed safari not supporting rounded outlines 2023-01-27 15:03:12 +01:00
Dioswilson d9ac83a1a4
Added 7 quotes on spanish (#3953) dioswilson
* Updated spanish.json with 11 quotes

Added 11 quotes in spanish

* Fixed typos

Fixed typos I made on the previous quotes I made on spanish

* Last typo i found on the quotes

* Added more 7 quotes to spanish

Added 7 quotes to spanish and deleted one word that was wrong from a prevoius quote

* Changed quotation marks

One quote uses quotation marks, now it is as \", not sure if that's the correct way

* Updated quote's lenght which was wrong

* Changed swear from last quote.

Changed the swear on quote 126, new translation:
This "New Era" that everyone is talking about is trash. the time where pirates dreams have ended?! People dreams never end!
2023-01-27 14:49:44 +01:00
Tobin Richard 51593ebd46
Additional Latin quotes. (#3947) toholio
Co-authored-by: Tobin Richard <tobin.richard@megabus.com.au>
2023-01-27 13:48:03 +01:00
tilde-nya 8dd77860f3
Three Portal 2 quotes (#3954) tilde-nya
Cave Johnson - Lemons rant
GLaDOS - Test results
GLaDOS - Differences
2023-01-27 13:46:27 +01:00
Jack dc1b217cb9
Update monkey-ci.yml 2023-01-27 01:58:25 +01:00
Rizwan Mustafa 85f52ff49e
Add typescript support for jest (#3949) rizwanmustafa
* Add typescript support for jest

* Add typescript support for jest setup-tests.ts

* Some more bug fixing
2023-01-26 14:13:14 +01:00
Oxey 6c9ee41444
Make quote actions not break with c++ language (#3925) o-x-e-y
* Make quote actions not break with c++

c++ currently obviously has `+` symbols which means stuff like quote ratings break because of the validation regex. I feel like changing `\w` straight to `.` would also be fine since languages and their names get approved manually, but this should work fine for now

* fix silly mistake

a `.regex()` got removed for whatever reason

* Fix prettier bug

* remove unnecessary spaces

Co-authored-by: Rizwan Mustafa <rizwanmustafa0000@gmail.com>
2023-01-26 14:09:11 +01:00
Miodec 33437d8fee revert commandline text color change 2023-01-26 00:00:44 +01:00
Miodec 698d43d64e more validation 2023-01-25 23:52:37 +01:00
Miodec 385fc00ea2 more regex validation 2023-01-25 23:52:28 +01:00
Miodec 6bdf6de1f6 added body validation 2023-01-25 23:41:53 +01:00
Miodec cb3f1ee1b0 lowered outline width 2023-01-25 23:41:53 +01:00
Miodec 25f8d4a2ce revert input outline change 2023-01-25 23:41:53 +01:00
Dioswilson 3072bfd492
Typos i made (#3946)
* Updated spanish.json with 11 quotes

Added 11 quotes in spanish

* Fixed typos

Fixed typos I made on the previous quotes I made on spanish

* Last typo i found on the quotes
2023-01-25 23:41:08 +01:00
Jack 59b252389e
fix: backend/package.json & backend/package-lock.json to reduce vulnerabilities (#3945)
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-SIMPLEGIT-3177391

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2023-01-25 23:21:53 +01:00
Miodec edd69c17aa using box shadow instead of outline to fix stupid safari not supporting rounded outlines
consistent outline thickness
2023-01-25 22:26:45 +01:00
Simon Fernandez a68d163f8d
Fix french punctuation typo - missing space (#3944) pantoofle
* Fix french punctuation typo - missing space

In french, there is always a space character before ! ? or : signs. Fixing the few quotes missing this space character.

* Fix invalid quote length
2023-01-25 21:11:57 +01:00
Dioswilson 2b3d06e79a
Updated spanish.json with 11 quotes (#3942) Dioswilson
Added 11 quotes in spanish
2023-01-25 21:03:32 +01:00
Miodec a6eab83e9b using text color for commandline entries to increase readability 2023-01-25 18:18:33 +01:00
Shriram Khandbahale 7adbccf7db
add backup font-family "sans-serif" (#3943) ShriramKhandbahale
In some cases when the styles are not loaded yet, the fonts are rolled back to the default 'serif' family which looks very ugly
2023-01-25 18:00:49 +01:00
Miodec 1e60dc53cd updated settings page
added icons
updated button and text alignment
2023-01-25 17:43:01 +01:00
Miodec 7df53b700d using feather icon 2023-01-25 17:42:09 +01:00
Miodec 3a89f0099a fixed favtheme section spacing 2023-01-25 17:19:22 +01:00
Miodec 597229918c fixed a small bug where a "quick restart is disabled" message would show up when changing pages 2023-01-25 12:51:42 +01:00
Miodec 0003c7651d updated notifications styling
no longer using main, sub or error color as background
using outline instead to symbolise level
using text color on sub alt background to maximise readability
2023-01-25 12:48:42 +01:00
Miodec 904a981a70 clarification 2023-01-25 12:48:42 +01:00
holoflash 2b3db29d3b
Add five Swedish quotes (#3941) holoflash
* Add lithuanian quote

* Fix formatting

* Add five Swedish quotes
2023-01-25 11:51:38 +01:00
Bruce Berrios b2c75a11d4
Housekeeping (#3940)
* Housekeeping

* Early exit not needed
2023-01-25 11:50:30 +01:00
Jack 2f46176f34
Allowing configuration endpoint access if user is configuration mod (#3936)
* showing error when fetch failed

* added function to only use an array of middlewares in production

* allowing patch configuration and get schema if user is a configuration mod

* fixed empty middleware not working as expected
2023-01-24 16:00:29 +01:00
Bruce Berrios b36c842921
Add stricter typing to configuration (#3933) Bruception 2023-01-24 15:41:21 +01:00
James bebf2229c3
Add Catalog and related declensions to British (#3934) jameslounds
* Add Catalog and related declensions to British

* add missing comma
2023-01-24 15:40:52 +01:00
Dioswilson 419ae96e26
Added quote to spanish.json with ID=193 (#3935) dioswilson 2023-01-24 15:40:22 +01:00
Miodec 4c1175e698 showing error when fetch failed 2023-01-24 14:03:31 +01:00
Miodec 178b6ae83d schema update 2023-01-24 13:15:16 +01:00
Miodec 40298d7276 removed multiline flag 2023-01-24 02:53:23 +01:00
Miodec 80a675ab64 not trimming 2023-01-24 02:26:19 +01:00
Miodec 88a515cefd fixed replace only replacing one match 2023-01-24 02:25:38 +01:00
Miodec 3c182e70d3 fixed regex 2023-01-24 02:10:09 +01:00
Miodec 293d64526b unnecessary difficulty check 2023-01-23 16:25:04 +01:00
Bruce Berrios 74fe4c864d
Add later queue (#3789) bruception
* Add later queue

* Fix test

* renamed property

* update name

* missing rename

* try 23 times

Co-authored-by: Miodec <jack@monkeytype.com>
2023-01-23 14:07:11 +01:00
mellangr 4bfa2739dd
Add Ukrainian quotes, fix small errors (#3930) mellangr
* add qoutes

* add some qoutes

* add qoutes albert einstein

* correct mistakes

* add quotes

* correct commas

* add quotes

* add qoute from ex machina

* fix file

* fix error

* add qoutes

* add some qoutes

* quotes

* count length

* id's

* add qoute

* change qoute and fix errors

* add sources
2023-01-22 01:40:09 +01:00
github-actions[bot] a64fbde790
Prettier fix (#3932)
Co-authored-by: monkeytypegeorge <monkeytypegeorge@gmail.com>
2023-01-22 01:19:23 +01:00
Miodec 8bb6241ee9 removed bad words 2023-01-21 18:40:41 +01:00
James 8f89eedd6d
Add flavours to British English (#3929) 2023-01-19 13:52:28 +01:00
Miodec 9e391b9e8a fixed no animation on the logo sub text 2023-01-19 01:21:45 +01:00
Miodec 77b11e0fda updated 404 2023-01-18 15:51:13 +01:00
Miodec 575ee662d4 ico type 2023-01-18 15:51:13 +01:00
Miodec 7fa072e36f using noopener on anchors 2023-01-18 15:51:13 +01:00
DomovoyAlex bab0507f55
Add HiYou (Keyboard Layout) (#3927) DomovoyAlex
* Update _list.json

* Update _list.json

* Update _list.json

* Update _list.json

* Update _list.json
2023-01-18 15:49:14 +01:00