From 1b0d87e81d77da50a625015ea40efa661edfd5f5 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 22 Aug 2021 21:17:41 +0530 Subject: [PATCH] A few fixes and a basic implementation --- src/App.vue | 5 +++ src/components/VideoItem.vue | 7 ++-- src/routes/WatchHistory.vue | 64 +++++++++++++++++++++++++++++++--- src/routes/WatchVideo.vue | 2 +- src/store/watched-videos-db.js | 19 +++++++--- 5 files changed, 84 insertions(+), 13 deletions(-) diff --git a/src/App.vue b/src/App.vue index 4685d76..d55b622 100644 --- a/src/App.vue +++ b/src/App.vue @@ -56,6 +56,11 @@ export default { id: 'trending', name: 'Trending', to: '/' + }, + { + id: 'watch-history', + name: 'Watch History', + to: '/watch-history' } ] }), diff --git a/src/components/VideoItem.vue b/src/components/VideoItem.vue index 61bdf9c..955a0b4 100644 --- a/src/components/VideoItem.vue +++ b/src/components/VideoItem.vue @@ -3,15 +3,16 @@ {{ video.title }} - -
{{ video.uploaderName }}
+ +
{{ video.uploaderName || video.uploader }}
+ {{ numberFormat(video.views) }} views
{{ video.uploadedDate }}
{{ timeFormat(video.duration) }} diff --git a/src/routes/WatchHistory.vue b/src/routes/WatchHistory.vue index 9926003..ca73342 100644 --- a/src/routes/WatchHistory.vue +++ b/src/routes/WatchHistory.vue @@ -1,20 +1,76 @@