2020-06-21 09:41:13 +03:00
|
|
|
Vue.component('owncast-footer', {
|
2020-06-29 01:08:08 +03:00
|
|
|
props: {
|
|
|
|
appVersion: {
|
|
|
|
type: String,
|
2020-06-29 03:15:53 +03:00
|
|
|
default: '0.1',
|
2020-06-29 01:08:08 +03:00
|
|
|
},
|
|
|
|
},
|
|
|
|
|
2020-06-21 09:41:13 +03:00
|
|
|
template: `
|
2020-06-29 01:08:08 +03:00
|
|
|
<footer class="flex">
|
2020-06-21 09:41:13 +03:00
|
|
|
<span>
|
|
|
|
<a href="https://github.com/gabek/owncast" target="_blank">About Owncast</a>
|
2020-06-29 01:08:08 +03:00
|
|
|
</span>
|
|
|
|
<span>Version {{appVersion}}</span>
|
2020-06-21 09:41:13 +03:00
|
|
|
</footer>
|
|
|
|
`,
|
|
|
|
});
|
2020-06-21 11:31:08 +03:00
|
|
|
|
|
|
|
|
|
|
|
Vue.component('stream-tags', {
|
|
|
|
props: ['tags'],
|
|
|
|
template: `
|
|
|
|
<ul
|
|
|
|
class="tag-list flex"
|
|
|
|
v-if="this.tags.length"
|
|
|
|
>
|
|
|
|
<li class="tag rounded-sm text-gray-100 bg-gray-700"
|
|
|
|
v-for="tag in this.tags"
|
|
|
|
v-bind:key="tag"
|
|
|
|
>
|
|
|
|
{{tag}}
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
`,
|
2020-06-29 03:15:53 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
Vue.component('user-details', {
|
2020-06-30 12:36:10 +03:00
|
|
|
props: ['logo', 'platforms', 'summary', 'tags'],
|
2020-06-29 03:15:53 +03:00
|
|
|
template: `
|
|
|
|
<div class="user-content">
|
2020-06-30 12:36:10 +03:00
|
|
|
<div
|
|
|
|
class="user-image rounded-full bg-white"
|
|
|
|
v-bind:style="{ backgroundImage: 'url(' + logo + ')' }"
|
|
|
|
>
|
|
|
|
<img
|
|
|
|
class="logo visually-hidden"
|
|
|
|
alt="Logo"
|
|
|
|
v-bind:src="logo">
|
2020-06-29 03:15:53 +03:00
|
|
|
</div>
|
|
|
|
<div class="user-content-header border-b border-gray-500 border-solid">
|
|
|
|
<h2 class="font-semibold">
|
|
|
|
About <span class="streamer-name text-indigo-600">
|
|
|
|
<slot></slot>
|
|
|
|
</span>
|
|
|
|
</h2>
|
|
|
|
<social-list v-bind:platforms="platforms"></social-list>
|
|
|
|
<div class="stream-summary" v-html="summary"></div>
|
|
|
|
<stream-tags v-bind:tags="tags"></stream-tags>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`,
|
|
|
|
});
|