This partially reverts 923f69ab55.
This is because we sometimes still need the decoded token in public endpoints.
If an endpoint doesnt accept ape keys BUT its public, we dont return a 401 error.
* impr: detect development mode based on config instead of window.location
* Allow access to /configure on the backend using non-local ip
* Use webpack define plugin
* take BACKEND_URL from env
* 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>
* Added highlight modes next word, next two words and next three words
* updating active element to make sure change is visible when applied from the commandline
---------
Co-authored-by: Miodec <jack@monkeytype.com>
* Added configuration for typing speed unit, removed alwaysShowCPM
* review comments
* fix live-burst, activityChart and results-pb label
* Added support for typing speed unit in account histogram chart
* trigger build
* Update account.ts
* Fix chart scaling and wpm/rawWpm hovers on result page
fix chart scaling and bucket size on account page
* refactor histogramChartData to support 0.5 steps
* Revert dynamic scaling on accounts/result graph
* Refactor histogramChartData to an int[]
* Fix cutoff in account history
* Fix labels on result page
* Limit result chart label to two decimals
* renamed show average wpm to show average speed
* fix scaling on accounts history graph (again), not adding an easteregg 🤫
* hiding by default
* fix scaling on accounts history graph episode three
* move typingSpeedUnit related functions out of Misc
* updating account page if typing speed unit changes
* updating result page if changing units on the result page
* missing buton change
---------
Co-authored-by: Miodec <jack@monkeytype.com>
* Added crt mode to the funbox
* remove borders, move screen glow to body, remove lines animation
* removes white flash on test restart, keep crt mode on result page
* cleanup removal of funbox css
* fix white flash when disabling crt mode, fix background
* use actual color for text glow
* fix rendering issue with glow
* adds glow to input, buttons, logo and carets
* prefix new variables with -crt, update themes to fit crt mode
* adds glow to textarea, avatar and fix glow in focus mode
* fix typo in lavender theme
* move crt related stylesheets to separate file, add scanline div on demand
* add applyGlobalCss to keep the theme active on pages outsite the test page
* made sure crt works globally
added a clear global function
calling apply global and clear global when toggling funboxes
delaying globalcss apply because about page for some reason doesnt like funbox css files
* add glow to banner
---------
Co-authored-by: Miodec <jack@monkeytype.com>