Fix for eslint errors.

This commit is contained in:
Kavin 2022-05-19 22:17:58 +01:00
parent 4d481e6f84
commit de55a5a0c7
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD
6 changed files with 14 additions and 17 deletions

View file

@ -19,7 +19,7 @@
<script setup> <script setup>
import { defineProps, defineEmits } from "vue"; import { defineProps, defineEmits } from "vue";
const props = defineProps({ defineProps({
chapters: Object, chapters: Object,
}); });

View file

@ -18,7 +18,7 @@
</div> </div>
<div class="comment-author"> <div class="comment-author">
<router-link class="font-bold link" :to="comment.commentorUrl" v-text="comment.author" /> <router-link class="font-bold link" :to="comment.commentorUrl">{{ comment.author }}</router-link>
<font-awesome-icon class="ml-1.5" v-if="comment.verified" icon="check" /> <font-awesome-icon class="ml-1.5" v-if="comment.verified" icon="check" />
</div> </div>
<div class="comment-meta text-sm mb-1.5" v-text="comment.commentedTime" /> <div class="comment-meta text-sm mb-1.5" v-text="comment.commentedTime" />

View file

@ -12,7 +12,7 @@
</span> </span>
<span class="md:float-right"> <span class="md:float-right">
<Sorting by-key="uploaded" @apply="order => videos.sort(order)" /> <SortingSelector by-key="uploaded" @apply="order => videos.sort(order)" />
</span> </span>
<hr /> <hr />
@ -24,12 +24,12 @@
<script> <script>
import VideoItem from "./VideoItem.vue"; import VideoItem from "./VideoItem.vue";
import Sorting from "./Sorting.vue"; import SortingSelector from "./SortingSelector.vue";
export default { export default {
components: { components: {
VideoItem, VideoItem,
Sorting, SortingSelector,
}, },
data() { data() {
return { return {

View file

@ -7,7 +7,7 @@
</div> </div>
<div class="right-1"> <div class="right-1">
<Sorting by-key="watchedAt" @apply="order => videos.sort(order)" /> <SortingSelector by-key="watchedAt" @apply="order => videos.sort(order)" />
</div> </div>
</div> </div>
@ -22,12 +22,12 @@
<script> <script>
import VideoItem from "./VideoItem.vue"; import VideoItem from "./VideoItem.vue";
import Sorting from "./Sorting.vue"; import SortingSelector from "./SortingSelector.vue";
export default { export default {
components: { components: {
VideoItem, VideoItem,
Sorting, SortingSelector,
}, },
data() { data() {
return { return {

View file

@ -69,12 +69,9 @@
<div class="flex"> <div class="flex">
<div class="flex items-center"> <div class="flex items-center">
<img :src="video.uploaderAvatar" alt="" loading="lazy" class="rounded-full" /> <img :src="video.uploaderAvatar" alt="" loading="lazy" class="rounded-full" />
<router-link <router-link v-if="video.uploaderUrl" class="link ml-1.5" :to="video.uploaderUrl">{{
v-if="video.uploaderUrl" video.uploader
class="link ml-1.5" }}</router-link>
:to="video.uploaderUrl"
v-text="video.uploader"
/>
<font-awesome-icon class="ml-1" v-if="video.uploaderVerified" icon="check" /> <font-awesome-icon class="ml-1" v-if="video.uploaderVerified" icon="check" />
</div> </div>
<div class="relative ml-auto children:mx-2"> <div class="relative ml-auto children:mx-2">
@ -103,7 +100,7 @@
/> />
<!-- eslint-disable-next-line vue/no-v-html --> <!-- eslint-disable-next-line vue/no-v-html -->
<div v-show="showDesc" class="break-words" v-html="purifyHTML(video.description)" /> <div v-show="showDesc" class="break-words" v-html="purifyHTML(video.description)" />
<Chapters v-if="video?.chapters?.length > 0" :chapters="video.chapters" @seek="navigate" /> <ChaptersBar v-if="video?.chapters?.length > 0" :chapters="video.chapters" @seek="navigate" />
<div <div
v-if="showDesc && sponsors && sponsors.segments" v-if="showDesc && sponsors && sponsors.segments"
v-text="`${$t('video.sponsor_segments')}: ${sponsors.segments.length}`" v-text="`${$t('video.sponsor_segments')}: ${sponsors.segments.length}`"
@ -170,7 +167,7 @@ import VideoPlayer from "./VideoPlayer.vue";
import VideoItem from "./VideoItem.vue"; import VideoItem from "./VideoItem.vue";
import ErrorHandler from "./ErrorHandler.vue"; import ErrorHandler from "./ErrorHandler.vue";
import CommentItem from "./CommentItem.vue"; import CommentItem from "./CommentItem.vue";
import Chapters from "./Chapters.vue"; import ChaptersBar from "./ChaptersBar.vue";
import PlaylistAddModal from "./PlaylistAddModal.vue"; import PlaylistAddModal from "./PlaylistAddModal.vue";
import PlaylistVideos from "./PlaylistVideos.vue"; import PlaylistVideos from "./PlaylistVideos.vue";
@ -181,7 +178,7 @@ export default {
VideoItem, VideoItem,
ErrorHandler, ErrorHandler,
CommentItem, CommentItem,
Chapters, ChaptersBar,
PlaylistAddModal, PlaylistAddModal,
PlaylistVideos, PlaylistVideos,
}, },