Apply linter.

This commit is contained in:
FireMasterK 2021-07-18 23:15:43 +05:30
parent f33223aaa3
commit 6030ee347c
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

@ -24,7 +24,11 @@
<font-awesome-icon class="uk-margin-small-right" icon="thumbs-down"></font-awesome-icon> <font-awesome-icon class="uk-margin-small-right" icon="thumbs-down"></font-awesome-icon>
<b>{{ addCommas(video.dislikes) }}</b> <b>{{ addCommas(video.dislikes) }}</b>
</div> </div>
<a :href="'https://youtu.be/' + getVideoId()" class="uk-margin-small-left uk-button uk-button-small" style="background: #222"> <a
:href="'https://youtu.be/' + getVideoId()"
class="uk-margin-small-left uk-button uk-button-small"
style="background: #222"
>
<font-awesome-icon class="uk-margin-small-right" :icon="['fab', 'youtube']"></font-awesome-icon> <font-awesome-icon class="uk-margin-small-right" :icon="['fab', 'youtube']"></font-awesome-icon>
<b>Watch on</b> <b>Watch on</b>
</a> </a>
@ -53,7 +57,9 @@
{{ showDesc ? "Minimize Description" : "Show Description" }} {{ showDesc ? "Minimize Description" : "Show Description" }}
</a> </a>
<p v-show="showDesc" :style="[{ colour: foregroundColor }]" v-html="video.description"></p> <p v-show="showDesc" :style="[{ colour: foregroundColor }]" v-html="video.description"></p>
<div v-if="showDesc && sponsors && sponsors.segments">Sponsors Segments: {{ sponsors.segments.length }}</div> <div v-if="showDesc && sponsors && sponsors.segments">
Sponsors Segments: {{ sponsors.segments.length }}
</div>
</div> </div>
<hr /> <hr />
@ -190,7 +196,7 @@ export default {
.then(() => { .then(() => {
if (!this.video.error) { if (!this.video.error) {
document.title = this.video.title + " - Piped"; document.title = this.video.title + " - Piped";
this.channelId = this.video.uploaderUrl.split('/')[2]; this.channelId = this.video.uploaderUrl.split("/")[2];
this.fetchSubscribedStatus(); this.fetchSubscribedStatus();
this.video.description = this.purifyHTML( this.video.description = this.purifyHTML(
@ -215,7 +221,7 @@ export default {
this.fetchJson( this.fetchJson(
this.apiUrl() + "/subscribed", this.apiUrl() + "/subscribed",
{ {
channelId: this.channelId channelId: this.channelId,
}, },
{ {
headers: { headers: {