Commit graph

1295 commits

Author SHA1 Message Date
Miodec
ddad75abc1 changed class name to a more unique one to aboid applying to unwanted elements 2023-01-17 12:12:00 +01:00
Veemyu
d2a8b316c6
Add an upside down mode to the Funbox (#3915) Veemyu
* Add Upside Down to Funbox

* Resolve formatting issues

* Re-add missing css
2023-01-16 22:19:58 +01:00
Miodec
ffba26a4ae setting title to localhost on localhost 2023-01-16 22:19:38 +01:00
Miodec
d303b8ea11 lowered size 2023-01-16 22:14:29 +01:00
Miodec
60ad87097f manually generating the favicon instead of relying on font
(the font is not loaded at at the time of initial favicon generating, so need to do this)
2023-01-16 20:09:50 +01:00
Miodec
c4bfadeeb2 converted all fonts to locally hosted ones to avoid render blocking 2023-01-16 17:12:43 +01:00
Miodec
30ac9ae4e8 moved fonts to their own file 2023-01-16 15:58:37 +01:00
Miodec
166c3fec78 replaced import with hosted font files 2023-01-16 15:46:17 +01:00
Miodec
5d5791a865 lazy loading css to improve initial page load 2023-01-16 15:25:50 +01:00
Miodec
99e1b916d7 using div instead of anchor 2023-01-16 12:21:31 +01:00
Miodec
4874aa7f17 more seo with h2 2023-01-16 12:17:49 +01:00
Miodec
90d42d0096 not overusing h1 to help seo (maybe?) 2023-01-16 02:06:44 +01:00
Miodec
b29e4f4f05 fixed a bug where accounts with no pbs would cause misplaced "show all pbs" button 2023-01-14 01:43:42 +01:00
Miodec
43205d3287 fixed a bug where updating the preset name would not immediately show the update 2023-01-14 01:25:44 +01:00
Miodec
a5ceda8ac7 shorter link transition 2023-01-14 01:25:40 +01:00
Miodec
909f53f583 adjusted theme button media queries 2023-01-12 09:02:12 +01:00
Miodec
97aab8aa85 removed active theme indicator, replaced with constant transform
showing theme bubbles on the active theme and on hover
2023-01-12 08:39:28 +01:00
Miodec
3ee547326b added incognito alias 2023-01-12 08:39:28 +01:00
Miodec
10ed4eadc2 updated theme bubbles styling in the command line, showing sub and text color 2023-01-12 08:39:28 +01:00
Miodec
2c85e24e5b reverted to alphabetic commands 2023-01-11 18:18:03 +01:00
Jonathan Frech
61533ff12e
funbox: gave IPv6 addresses' parts leading zeros (#3852) jfrech
If the shorter form is preferred, the zero part should instead be the empty
string, since it is never written as `...:0:...`.
2023-01-11 13:25:38 +01:00
Jerry Zhou
c3204eb65d
Adding customStyle property to 'Command' object interface (#3865) jerryzhou196
* added customStyle

* added music for KeyK

* undid accidental changes

* removed unnecessary changes

* added font-family support in commandline interface

* fixed formatting for single-list-command-line mode while viewing font family

* added themes

* fixed activeMouse CSS selector

* Added styling of favourites too

* fixed github action error

* fixed css issue

* colored block within singleline command line

* added custom data property to commands
using custom data to show theme bubbles on theme commands

Co-authored-by: Miodec <jack@monkeytype.com>
2023-01-10 20:01:29 +01:00
Miodec
adf47214db added option to report users 2023-01-09 18:20:56 +01:00
Jerry Zhou
d342a08d8e
Add audio fade to remove audible 'pop' within sine's sound-on-click (#3895) jerryzhou196
* added audio fade

* removed accidental space

* lowered fadeout time

Co-authored-by: Miodec <jack@monkeytype.com>
2023-01-09 12:43:23 +01:00
Miodec
89024555a9 fixed test ui sometimes stuck in tape mode-like style 2023-01-08 14:14:26 +01:00
Miodec
70c18e25cf made commandinput same width as commandline 2023-01-08 13:20:46 +01:00
Miodec
eb6254a340 fixed backspace events not working correctly in replays 2023-01-08 12:58:28 +01:00
Miodec
7847a20a76 heavier font 2023-01-07 19:15:01 +01:00
Miodec
f8937165d5 showing notification that not all fields are filled
closes #3888
2023-01-06 21:40:23 +01:00
Miodec
b755168825 copying data instead of referencing 2023-01-06 19:50:36 +01:00
Andrew Chang
d50cb69d1d
Ignore modifier keys for test autofocus (fixed modtap issues with via and qmk) (#3837) andrewchang
* Apply debounce on restart test focus state

* Replace sleep and ignore modifier keys for test autofocus

* Update autofocus warning text

Co-authored-by: Andrew Chang <achang3@atlassian.com>
2023-01-06 13:37:35 +01:00
Miodec
6321f17201 clearing avatar
closes #3818
2023-01-05 15:13:33 +01:00
Miodec
1e6d15a002 allowing chart color update on preview
increased debounce a bit
closes #3841
2023-01-04 19:35:41 +01:00
Miodec
f3378da2d0 removed smoothconsistency from type 2023-01-04 18:47:40 +01:00
Miodec
301078fc82 storing unsmoothed raw, removing last data point if last test second is not round and is smaller than 0.5,
scaling last data point if its greater than 0.5
closes #3878
2023-01-04 18:46:51 +01:00
Miodec
3d6025f7c2 smoothing before displaying. part of #3878 2023-01-04 18:46:19 +01:00
Miodec
3de8472fde copying with json (for some reason without this some properties are lost ????) 2023-01-04 17:26:14 +01:00
Miodec
120f51bbc1 incorrect property name 2023-01-04 17:26:14 +01:00
Miodec
70e5c86e41 fixed pb crown not showing difference
closes #3817
2022-12-11 01:09:37 +01:00
Miodec
91ea52bec6 fetcing user data first 2022-12-10 23:38:53 +01:00
Miodec
8485f6d16c fixed tts not working 2022-12-01 00:11:20 +01:00
egorguslyan
618c9ec931
Ip (#3784) egorguslyan
* Finishing logic

* Numbers + layoutfluid

* One interface

* Filter results

* tts error on undefined

Extencions like NoScript can partly block scripts on the page.
If speech synthesis is not loaded, notification shows up
without freezing the page

* Improved randomcase

* Prevent dublicates in command line

* Change filter logic

* Prettier

* Convert numbers

* num

* Quote and zen modes

* withWords

* Misc

* Expand funboxes list for pb saving

* Move list to backend

* Move to constants

* Async withWords, checkFunbox tweak

* Prettier

* Forbid nonexistent funboxes

* Disable speech if language is ignored

TtS's init() uses setLanguage()

* canGetPb

* Less circular imports

* Ligatures typo

* Simon says blocks word highlight

* blockWordHighlight backend

* Changed imports

* usesLayout

* JSON schema

* IP funbox

* Split

* Display notification instead of reseting

* canGetPB

* One getWordHtml

* Dividing properties

* No sync

* blockedModes

* forcedConfig

* Infinitness parameter, list sync

* applyConfig, memory

Remove extra applyConfig somewhere;
Memory in quotes and custom modes

* I lost this code after merging

* Remove arrowKeys

* isFunboxCompatible

* Fix logic

* sync canGetPb

* remove FunboxObjectType

* baloons

* moved cangetpb function to pb utils

* updated the pb check to be easier to understand

* Refactor isFunboxCompatible

* Check modes conflicts

* Strict highlightMode type

* Only one allowed or blocked highlight mode

* More checks

* Undefined only, not false

* Prettier

* Highlight modes

* added intersect helper function

* reworked forced config
 - storing allowed modes as an array, not string
 - first value will be used if config is outside of the allowed values
 - instead of checking if highlight mode is allowed, checking if the whole config is available
- removed the "Finite" forced config and replaced it with "noInfiniteDuration" property
- config event listener now checks every config change, not just highlight mode. this will ensure any future forced configs will work straight out of the box

* ManualRestart in commandline

* fixed funbox commands not correctly showing which funbox is active

* Upd list

* Merge

* canGetPB for ip

* Reduce list

* split funbox into smaller files
moved funbox files into its own folder

* missing none command

* added function to convert camel case to space separated words

* changed config validation to be blocking the change rather than reacting to the change

* reduced code duplication

* allowing sub color flash

* moved keymap key higlighting and flashing into an observable event

* moved tts into a observable event

* passing funbox into config validation funcitons

* replaced getActive with get

* only keeping functions structure in the list, moved the actual function bodies to funbox.ts
done to remove a circular dependency
still need to finish the rest of the funboxes

* removed empty function definitions (typing issues)

* removed unnecessary type

* unnecessary check

* moved mode checking to config validation

* longer notification

* checking funboxes before changing mode

* moved more functions

* fixed incorrect type

* checking funboxes when setting punctuation and numbers

* Rest of funboxes

* fixed funbox commands showing tags text and icon

* checking if funbox can be set with the current config

* better error message

* validating with setting time and words
importing from a new file

* added a function to capitalise the first letter of a string

* using function from a new file
new parameters

* moved test length check to a function in a different file

* moved some funbox validation into its own file

* only  showing notifications if the setWordCount returned true

* moved funbox validation to its own file

* setting manual restart when trying to set funbox to nonoe

* moving this validation to before activating the funbox

* returning forcedConfigs along side if current value is allowed
moved infinite check to checkFunboxForcedConfigs

* removed function, replaced by funox validation

* removing duplicates

* throwing if no intersection

* wrong type

* always allowing setting funbox
sometimes it might be possible to update the config

* checking forced configs first, and updating config if possible
only setting funbox to none when couldnt update config

* basic difficulty levels

* xp funbox bonus

* Delete old file

* Difficulty level

* removed console logs

* renamed import, renamed type

* lowercase b for consistency across the codebase

* renamed variable for readability

* renamed for clarity

* converted metadata to object

* changed from beforesubgroup on the command to before list on the subgroup

* using code suggested by bruce

* renamed type

* removed console log

* merch banner fix

* important animation

* updating the icon of "none" funbox command

* removed unnecessary import

* lowercase b

* updated description

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Miodec <jack@monkeytype.com>
2022-11-30 19:25:57 +01:00
Miodec
351f1995bf hopefully added a solution to fix the page not loading 2022-11-30 18:49:04 +01:00
Miodec
62fd725287 removed console log 2022-11-30 18:35:38 +01:00
egorguslyan
588d14a2b3
Multiple funboxes (#3578) egorguslyan
* input-controller

* result

* Finishing logic

* Numbers + layoutfluid

* One interface

* Filter results

* tts error on undefined

Extencions like NoScript can partly block scripts on the page.
If speech synthesis is not loaded, notification shows up
without freezing the page

* Improved randomcase

* Prevent dublicates in command line

* Change filter logic

* Prettier

* Convert numbers

* num

* Quote and zen modes

* withWords

* Misc

* Expand funboxes list for pb saving

* Move list to backend

* Move to constants

* Async withWords, checkFunbox tweak

* Prettier

* Forbid nonexistent funboxes

* Disable speech if language is ignored

TtS's init() uses setLanguage()

* canGetPb

* Less circular imports

* Ligatures typo

* Simon says blocks word highlight

* blockWordHighlight backend

* Changed imports

* usesLayout

* JSON schema

* Display notification instead of reseting

* canGetPB

* One getWordHtml

* Dividing properties

* No sync

* blockedModes

* forcedConfig

* Infinitness parameter, list sync

* applyConfig, memory

Remove extra applyConfig somewhere;
Memory in quotes and custom modes

* I lost this code after merging

* Remove arrowKeys

* isFunboxCompatible

* Fix logic

* sync canGetPb

* remove FunboxObjectType

* baloons

* moved cangetpb function to pb utils

* updated the pb check to be easier to understand

* Refactor isFunboxCompatible

* Check modes conflicts

* Strict highlightMode type

* Only one allowed or blocked highlight mode

* More checks

* Undefined only, not false

* Prettier

* Highlight modes

* added intersect helper function

* reworked forced config
 - storing allowed modes as an array, not string
 - first value will be used if config is outside of the allowed values
 - instead of checking if highlight mode is allowed, checking if the whole config is available
- removed the "Finite" forced config and replaced it with "noInfiniteDuration" property
- config event listener now checks every config change, not just highlight mode. this will ensure any future forced configs will work straight out of the box

* ManualRestart in commandline

* fixed funbox commands not correctly showing which funbox is active

* Upd list

* Reduce list

* split funbox into smaller files
moved funbox files into its own folder

* missing none command

* added function to convert camel case to space separated words

* changed config validation to be blocking the change rather than reacting to the change

* reduced code duplication

* allowing sub color flash

* moved keymap key higlighting and flashing into an observable event

* moved tts into a observable event

* passing funbox into config validation funcitons

* replaced getActive with get

* only keeping functions structure in the list, moved the actual function bodies to funbox.ts
done to remove a circular dependency
still need to finish the rest of the funboxes

* removed empty function definitions (typing issues)

* removed unnecessary type

* unnecessary check

* moved mode checking to config validation

* longer notification

* checking funboxes before changing mode

* moved more functions

* fixed incorrect type

* checking funboxes when setting punctuation and numbers

* Rest of funboxes

* fixed funbox commands showing tags text and icon

* checking if funbox can be set with the current config

* better error message

* validating with setting time and words
importing from a new file

* added a function to capitalise the first letter of a string

* using function from a new file
new parameters

* moved test length check to a function in a different file

* moved some funbox validation into its own file

* only  showing notifications if the setWordCount returned true

* moved funbox validation to its own file

* setting manual restart when trying to set funbox to nonoe

* moving this validation to before activating the funbox

* returning forcedConfigs along side if current value is allowed
moved infinite check to checkFunboxForcedConfigs

* removed function, replaced by funox validation

* removing duplicates

* throwing if no intersection

* wrong type

* always allowing setting funbox
sometimes it might be possible to update the config

* checking forced configs first, and updating config if possible
only setting funbox to none when couldnt update config

* basic difficulty levels

* xp funbox bonus

* removed console logs

* renamed import, renamed type

* lowercase b for consistency across the codebase

* renamed variable for readability

* renamed for clarity

* converted metadata to object

* changed from beforesubgroup on the command to before list on the subgroup

* using code suggested by bruce

* renamed type

* removed console log

* merch banner fix

* important animation

* updating the icon of "none" funbox command

* removed unnecessary import

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Miodec <jack@monkeytype.com>
2022-11-30 16:57:48 +01:00
Miodec
d45b487192 fixed broken click handler 2022-11-30 15:33:17 +01:00
Miodec
e9f9c23ada removed console logs 2022-11-28 17:38:55 +01:00
Miodec
b4d781c40a fixed incorrect long custom text saving behavior
not removing 1 from history
replacing new lines with newlines and a space to make sure words split correctly
closes #3773
2022-11-28 16:23:32 +01:00
Miodec
6bc5d7e009 checking if cookie popup was removed/blocked before blocking input
should fix all issues with brave
2022-11-28 15:02:29 +01:00
Miodec
15b373a489 setting back the banned and verified to their original values 2022-11-28 14:38:55 +01:00