* feat: Unlimited history for premium users UI
* disable button while loading, show spinner
* optional chaining
* add isPremium to /users, remove check from frontend
* add /results max batch size to configuration
* result batching ui v1
* rename variables, update button based on state, update text
* Return allowed results in /results if limit is partly overshooting the max limit
* use br instead of margin
* let result batches code handle button disabling
* hide title
* limit max width
* hide section when below batch size
* update limit color based on the % of limit used
* bring back loaded bar
* remove unused css
* fix alignemtn
* remove text for now
* add result getting log
* always hiding for non premium users for now
* Add server configuration users.premium.enabled, throw error on /results if premium user exceeds regular limit and premium is globally disabled
* Disable premium feature globally by default
* cleanup open todos
* Don't use premium user max limit on /results if premium feature is disabled on server
* fix merge issue
---------
Co-authored-by: Miodec <jack@monkeytype.com>
* Add files via upload
* Delete frontend/static/sound/error/triangle.wav
* Delete frontend/static/sound/error/damage.wav
* modified error sound code to support multiple sound options and added two error sound alternatives
* added compatability for previous users of the error sound, converts legacy true/false config values to 1 or off
* fixed opiton names and values in commandline
* fix: auto switch theme behavior & footer theme indicator (#4677)
* fix: auto switch theme behavior & footer indicator
Changing manually to a preset or custom theme now
turns auto switch theme mode off with a notification.
And now the auto switch mode does override the custom
theme as well (statement in settings also updated) if it
is the later one set.
Fixes#4659, that is the footer theme is now correctly
displayed with auto switch themes as well.
* removed unnecessary function
---------
Co-authored-by: Miodec <jack@monkeytype.com>
* fixed off config value
* moved compatibilty code to replaceLegacyValues
---------
Co-authored-by: Sanidhya Singh <sanidhyas3s@gmail.com>
Co-authored-by: Miodec <jack@monkeytype.com>
* fix: auto switch theme behavior & footer indicator
Changing manually to a preset or custom theme now
turns auto switch theme mode off with a notification.
And now the auto switch mode does override the custom
theme as well (statement in settings also updated) if it
is the later one set.
Fixes#4659, that is the footer theme is now correctly
displayed with auto switch themes as well.
* removed unnecessary function
---------
Co-authored-by: Miodec <jack@monkeytype.com>
- added function which instantly loads current state and updates dom (used when showing test page)
- focus is applied through main instead of by directly adding and removing a class
- reworked performance by storing dom elements
- improved animation smoothness by grabbing actual width of punc and num
- removed unused code
- not updating when not on the test page
Reworked checkboxes to not use any custom elements.
Instead, the native element is styled.
This fixes tab navigation, and makes them easier to use in general.