Resolve "Reduce / hide the room creation status messages"

This commit is contained in:
N Pex 2023-04-26 11:04:05 +00:00
parent ce780ea3b0
commit 0905bc34c0
3 changed files with 69 additions and 17 deletions

View file

@ -38,13 +38,23 @@ npm run build
npm run lint
```
### Customize configuration
### Customize build configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
## Theming
You can do simple theming by setting values in the configuration file, see below.
# Sticker short codes - To enable sticker short codes, follow these steps:
## Configuration file
The app loads runtime configutation from the server at "./config.json" and merges that with the default values in "assets/config.json".
The following values can be set via the config file:
* **logo** - An url or base64-encoded image data url that represents the app logotype.
* **accentColor** - The accent color of the app UI.
* **show_status_messages** - Whether to show only user joins/leaves and display name updates, or the full range of room status updates. Possible values are "never" (only the above), "moderators" (moderators will see all status updates) or "always" (everyone will see all status updates). Defaults to "always".
### Sticker short codes - To enable sticker short codes, follow these steps:
* Run the "create sticker config" script using "npm run create-sticker-config <path-to-sticker-packs>"
* Insert the resulting config blob into the "shortCodeStickers" value of the config file (assets/config.json)
* Rearrange order of sticker packs by editing the config blob above.