Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Add ability to populate the content area in the page with a markdown file
Gabe Kangas594e1c774a9f
diff --git a/webroot/index.html b/webroot/index.htmlindex ca37ab3d6a..6431740d43 100644--- a/webroot/index.html+++ b/webroot/index.html@@ -11,7 +11,7 @@<link href="https://vjs.zencdn.net/7.8.2/video-js.css" rel="stylesheet"><link href="https://unpkg.com/@videojs/themes@1/dist/fantasy/index.css" rel="stylesheet" /><script src="//vjs.zencdn.net/7.8.2/video.js"></script>-+ <script src="//unpkg.com/showdown/dist/showdown.min.js"></script><script src="vendor/autolink.js"></script><link href="./styles/layout.css" rel="stylesheet" /></head>diff --git a/webroot/js/app.js b/webroot/js/app.jsindex 4157256b47..2eac7fe1fb 100644--- a/webroot/js/app.js+++ b/webroot/js/app.js@@ -25,8 +25,23 @@ async function setupApp() {appMessagingMisc.init();const config = await new Config().init();- app.description = autoLink(config.description, { embed: false });app.title = config.title;++ const configFileLocation = "./js/config.json";++ try {+ const pageContentFile = "/static/content.md"+ const response = await fetch(pageContentFile);+ const descriptionMarkdown = await response.text()+ const descriptionHTML = new showdown.Converter().makeHtml(descriptionMarkdown);+ console.log(descriptionHTML)+ app.description = descriptionHTML;+ // Object.assign(this, configData);+ return this;+ } catch (error) {+ console.log(error);+ // No config file present. That's ok. It's not required.+ }}var websocketReconnectTimer;diff --git a/webroot/static/content.md b/webroot/static/content.mdnew file mode 100644index 0000000000..6b8f2888b8--- /dev/null+++ b/webroot/static/content.md@@ -0,0 +1,4 @@+# Stream description and content can go here.++1. Edit `content.md` in markdown.+1. And it'll go here.\ No newline at end of filediff --git a/webroot/styles/layout.css b/webroot/styles/layout.cssindex 5407aff7c5..ab82b16942 100644--- a/webroot/styles/layout.css+++ b/webroot/styles/layout.css@@ -407,3 +407,12 @@ header h1 {display: none;}}++/* Tailwind sets list styles to none. I don't know why. */+ol {+ list-style: decimal;+}++ul {+ list-style: unset;+}