* add upload component for logo
* - move upload logo functionlity to its own component
- style upload logo component
- display current logo from server
- implement submit button on logo updater, to submit new logo to api after update
- add some submit status indicator
* update edit-logo component
Logo now posts correctly to owncast api endpoint. This update includes file type
validation and removes the submit button, since the ant.d Upload component
already handles the post logic.
* remove submit-button style for logo upload
Co-authored-by: gingervitis <omqmail@gmail.com>
The logo POST route now accepts a base64 encoded image instead of a path to an
image in the data folder. The route now saves the posted image to the data
folder, with the correct file type extension, and updates logo path in the
database appropriately.
* implement custom welcome message
This change adds logic for handling custom welcome messages.
* trim welcome message string on POST
Instead of trimming the welcome message every time we are going to send to send
a welcome message, we just trim once when the message is posted from the admin.