Consolidate config files and surface frontend values via API. Closes #30

This commit is contained in:
Gabe Kangas
2020-06-28 15:10:00 -07:00
parent a9b8a70e8a
commit 73b6937496
6 changed files with 63 additions and 30 deletions

View File

@@ -1,7 +1,7 @@
// add more to the promises later.
class Config {
async init() {
const configFileLocation = "./js/config.json";
const configFileLocation = "/config";
try {
const response = await fetch(configFileLocation);

View File

@@ -1,21 +0,0 @@
{
"name": "gabek",
"title": "Owncast Demo Server",
"logo": "/img/logo128.png",
"summary": "This is brief summary of whom you are or what your stream is. demo server for Owncast. You can read more about it at owncast.online. You can edit this description in your web config file.\n\nBlathers is an owl with brown feathers. His face is white and he has a yellow beak. His arms are wing shaped and he has yellow talons. His eyes are very big with small black irises. He also has big pink cheek circles on his cheeks. His belly appears to be checkered in diamonds with light brown and white squares, similar to an argyle vest, which is traditionally associated with academia. His green bowtie further alludes to his academic nature.",
"tags": [
"music",
"software",
"animal crossing"
],
"socialHandles": [
{ "platform": "twitter", "handle": "abc" },
{ "platform": "instagram", "handle": "abc" },
{ "platform": "facebook", "handle": "" },
{ "platform": "tiktok", "handle": "abc" },
{ "platform": "soundcloud", "handle": "abc" },
{ "platform": "newone", "handle": "abc" }
]
}