Support color customization from the admin (#2338)

* Add user-customizable theming. Closes #1915

* Prettified Code!

* Add user-customizable theming. Closes #1915

* Add explicit color for page content background

* Prettified Code!

Co-authored-by: gabek <gabek@users.noreply.github.com>
This commit is contained in:
Gabe Kangas
2022-11-12 20:26:55 -08:00
committed by GitHub
parent 5bbf9db84a
commit 813f8692f0
33 changed files with 499 additions and 65 deletions

View File

@@ -8,6 +8,11 @@ const offlineMessage = randomString();
const pageContent = `<p>${randomString()}</p>`;
const tags = [randomString(), randomString(), randomString()];
const latencyLevel = Math.floor(Math.random() * 4);
const appearanceValues = {
variable1: randomString(),
variable2: randomString(),
variable3: randomString(),
};
const streamOutputVariants = {
videoBitrate: randomNumber() * 100,
@@ -103,6 +108,11 @@ test('set offline message', async (done) => {
done();
});
test('set custom style values', async (done) => {
const res = await sendConfigChangeRequest('appearance', appearanceValues);
done();
});
test('verify updated config values', async (done) => {
const res = await request.get('/api/config');
expect(res.body.name).toBe(serverName);