Commit graph

1342 commits

Author SHA1 Message Date
Jack
1ca0fd1b23
Custom email (#3964)
* added nodemailer and mjml

* added email template

* basic email util file

* added email queue

* email worker

* renamed folder

* showing which queues and workers were initialized

* initializing email on server boot
added some test code

* renamed to email worker

* type fix

* renamed queue

* added queue to list

* added worker to list

* logging when config was verified

* handling send mail result

* not minifying (not supported anymore)
using .html property
returning correct value

* dont send me emails

* added port to .env

* updated example

* updated test email

* using env email

* parseint base

* message

* refactor

* message

* rename

* moved email templates

* using async file read

* typo

* using mustache

* moved file
renamed to email client

* logging with prometheus

* added social links

* line

* using stronger types (object instead of array of any[])
moved prometheus logging into email client
added function to send mail using a template

* fixed templates not working

* removed console log

* name change

* rename

* moved templates

* rename

* string interpolation

* string interpolation

* moved to dev dependencies, exact versions

* moved types

* removed function, remove unnecessary if

* update template params

* updated name

* fixed button not clickable

* throwing

* moved template metadata to one place

* rename

* sending email on account creation

* removed test code
removed await

* fixed button

* not stopping the server if email client validation failed

* added metric for queue lengths

* exposing getjobcounts

* added job to log queue lengths

* added endpoint to request verification email

* using send verification email that calls api instead of firebase built in

* updated route

* renamed function

* recording time to complete

* returning 400 if email already verified

* setting transport initialized to true earlier, setting it to false if caught error

* moved forgot password flow to a simple popup, added new endpoint to ape

* added forgotpasswordemail route

* added email tempalte

* setting transport to false if caught error

* added email queue function

* moved try higher

* fixed log
2023-02-13 13:24:43 +01:00
Miodec
68474368e1 longer notification time 2023-02-12 00:02:50 +01:00
Miodec
89a6e9ff02 updated message 2023-02-12 00:02:50 +01:00
Jerry Zhou
da9b691bb1
New Sound on Click - Pentatonic Scale (#3970)
* added scale function

* cleaned up merge

* cleaned up scale implementation and created closure for previewing scales

* finalized changes

* fixed ci/de

* switched to upper camel case

* undid accidental changes

* updates

* fixed indexing bug and audioCtxt being intialized

* removed mapping

* updated schema with non-inclusive range for two new sound-on-clicks

---------

Co-authored-by: Bruce Berrios <bberr022@fiu.edu>
Co-authored-by: Bruce Berrios <58147810+Bruception@users.noreply.github.com>
2023-02-10 18:11:52 -05:00
Miodec
9a9699b445 fixed buttons not appearing
closes #3980
2023-02-09 12:43:22 +01:00
Miodec
87b4114532 checking if there is still input to be pushed
moved the check into one place
fixes #3981
2023-02-09 12:32:19 +01:00
Liewe Gutter
51ebf96fcb
improve password length check (#3973) lgutter
integratie check for too long passwords into isPasswordStrong, and
consistently check for it wherever passwords can be created / changed.

Co-authored-by: Liewe Gutter <liewegutter@gmail.com>
2023-02-06 12:30:33 +01:00
Jerry Zhou
801be2fc55
Fixed issue #3971 - active theme selection is properly removed (#3972)
* fixed issue #3971

* removed debug statement
2023-02-06 12:19:22 +01:00
Rephael Congmon
d9120b47c2
Update all-time-stats.ts (#3976)
These 2 if statements can be combined
2023-02-05 19:30:33 -05:00
Miodec
9c58ec2808 fixed more issues with cookie popup blocking extensions 2023-02-05 22:32:06 +01:00
Miodec
888cf9f34e added command to copy result stats to clipboard 2023-01-31 01:02:40 +01:00
Miodec
2b0ccbe44c added islocalhost function to misc 2023-01-30 16:34:36 +01:00
Miodec
9cdfa9c191 fixed filter preset buttons not showing up 2023-01-30 12:56:41 +01:00
Miodec
0d2af80a80 fixed tags not showing up in the account page filters 2023-01-29 01:01:08 +01:00
Miodec
26a19a87b0 fixed error if 8008 is the active theme
should fix #3957
2023-01-28 19:50:35 +01:00
Miodec
4cc8ed5e91 fixed theme buttons not showing up if user has favorites 2023-01-28 19:50:03 +01:00
Miodec
bc4651d2b7 fixed active entry icon color not changing 2023-01-28 19:46:06 +01:00
Miodec
c90ccf05be removed console logs 2023-01-27 23:33:15 +01:00
Miodec
c0cb29c80f added a resetState parameter
not resetting textarea state if user is about to save the custom text
should help with #3958 and #3955
2023-01-27 23:32:39 +01:00
Miodec
79659a6e42 removed duplicate click handler 2023-01-27 23:31:15 +01:00
Miodec
e94364f269 lots of missing function calls causing results failing to save for everyone
i am stupid
2023-01-27 17:36:30 +01:00
Miodec
d9e101c452 throwing error if challenge failed to fetch 2023-01-27 15:32:22 +01:00
Miodec
81afc92022 returning if word is undefined 2023-01-27 15:28:08 +01:00
Miodec
2abd0e69fe calling line jump on resize event
triggering resize event on font size change to trigger this event handler
closes #3937
2023-01-27 15:24:45 +01:00
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
Miodec
33437d8fee revert commandline text color change 2023-01-26 00:00:44 +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
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
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
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
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
7fa072e36f using noopener on anchors 2023-01-18 15:51:13 +01:00
Miodec
89b9b9a75e not allowing rtl languages to access tape mode 2023-01-17 12:46:12 +01:00
Miodec
287234f430 fixed users not being able to report swiss german quotes 2023-01-17 12:20:41 +01:00
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