diff --git a/src/components/ChannelItem.vue b/src/components/ChannelItem.vue new file mode 100644 index 00000000..84557629 --- /dev/null +++ b/src/components/ChannelItem.vue @@ -0,0 +1,34 @@ + + + diff --git a/src/components/ChannelPage.vue b/src/components/ChannelPage.vue index b99e844a..8595483c 100644 --- a/src/components/ChannelPage.vue +++ b/src/components/ChannelPage.vue @@ -53,7 +53,7 @@ - -
- -
- -
-

- - -

-
-

- -

- - -

- - - - - -
-
+ - diff --git a/src/components/FeedPage.vue b/src/components/FeedPage.vue index 882196a6..8927a16c 100644 --- a/src/components/FeedPage.vue +++ b/src/components/FeedPage.vue @@ -18,7 +18,7 @@
- +
diff --git a/src/components/HistoryPage.vue b/src/components/HistoryPage.vue index f41c8a4a..a0b344d9 100644 --- a/src/components/HistoryPage.vue +++ b/src/components/HistoryPage.vue @@ -14,7 +14,7 @@
- +

diff --git a/src/components/PlaylistItem.vue b/src/components/PlaylistItem.vue new file mode 100644 index 00000000..84557629 --- /dev/null +++ b/src/components/PlaylistItem.vue @@ -0,0 +1,34 @@ + + + diff --git a/src/components/PlaylistPage.vue b/src/components/PlaylistPage.vue index 37d505c9..bb42503a 100644 --- a/src/components/PlaylistPage.vue +++ b/src/components/PlaylistPage.vue @@ -32,7 +32,7 @@ diff --git a/src/components/TrendingPage.vue b/src/components/TrendingPage.vue index 589e856d..b51bf30b 100644 --- a/src/components/TrendingPage.vue +++ b/src/components/TrendingPage.vue @@ -4,7 +4,7 @@
- +
diff --git a/src/components/VideoItem.vue b/src/components/VideoItem.vue index b099d06b..66b0a44d 100644 --- a/src/components/VideoItem.vue +++ b/src/components/VideoItem.vue @@ -4,7 +4,7 @@ :to="{ path: '/watch', query: { - v: video.url.substr(-11), + v: item.url.substr(-11), ...(playlistId && { list: playlistId }), ...(index >= 0 && { index: index + 1 }), }, @@ -12,36 +12,36 @@ >
- + - +
@@ -51,14 +51,14 @@ :to="{ path: '/watch', query: { - v: video.url.substr(-11), + v: item.url.substr(-11), ...(playlistId && { list: playlistId }), ...(index >= 0 && { index: index + 1 }), listen: '1', }, }" - :aria-label="'Listen to ' + video.title" - :title="'Listen to ' + video.title" + :aria-label="'Listen to ' + item.title" + :title="'Listen to ' + item.title" > @@ -69,20 +69,20 @@ v-if="admin" :title="$t('actions.remove_from_playlist')" ref="removeButton" - @click="removeVideo(video.url.substr(-11))" + @click="removeVideo(item.url.substr(-11))" > - +
- + - - + + - - + + - + - - + +
@@ -124,7 +124,7 @@ import PlaylistAddModal from "./PlaylistAddModal.vue"; export default { props: { - video: { + item: { type: Object, default: () => { return {}; @@ -174,7 +174,7 @@ export default { if (!this.isFeed || !this.getPreferenceBoolean("hideWatched", false)) return; const objectStore = window.db.transaction("watch_history", "readonly").objectStore("watch_history"); - const request = objectStore.get(this.video.url.substr(-11)); + const request = objectStore.get(this.item.url.substr(-11)); request.onsuccess = event => { const video = event.target.result; if (video && (video.currentTime ?? 0) > video.duration * 0.9) { diff --git a/src/components/WatchVideo.vue b/src/components/WatchVideo.vue index 2c820e0a..bf024eaa 100644 --- a/src/components/WatchVideo.vue +++ b/src/components/WatchVideo.vue @@ -200,10 +200,10 @@ />
- @@ -216,7 +216,7 @@