From 98640e6d9283666c35165b7c3f2b5a72710c7dea Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Fri, 13 Nov 2020 02:12:02 +0530 Subject: [PATCH] Add a channel page and fix some things. --- package-lock.json | 12 ----- package.json | 3 +- src/App.vue | 27 +++++++++- src/Constants.js | 2 +- src/components/Channel.vue | 62 +++++++++++++++++++++++ src/components/TrendingPage.vue | 2 +- src/components/WatchVideo.vue | 87 ++++++++++++++++++--------------- src/main.js | 4 +- src/router/router.js | 5 ++ 9 files changed, 145 insertions(+), 59 deletions(-) create mode 100644 src/components/Channel.vue diff --git a/package-lock.json b/package-lock.json index 69922dea..b147c3c0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7842,11 +7842,6 @@ "minimist": "^1.2.5" } }, - "moment": { - "version": "2.29.1", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.1.tgz", - "integrity": "sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ==" - }, "move-concurrently": { "version": "1.0.1", "resolved": "https://registry.npm.taobao.org/move-concurrently/download/move-concurrently-1.0.1.tgz", @@ -11495,13 +11490,6 @@ "resolved": "https://registry.npmjs.org/videojs-hotkeys/-/videojs-hotkeys-0.2.27.tgz", "integrity": "sha512-pwtm1QocRmzJy1PWQsmFVHyeldYHHpLdeATK3FsFHVMmNpz6CROkAn8TFy2UILr8Ghgq134K8jEKNue8HWpudQ==" }, - "videojs-ttml": { - "version": "git+https://github.com/StuffNoOneCaresAbout/videojs-ttml.git#6927bafe47752cc3d92f06f18379b6134d182941", - "from": "git+https://github.com/StuffNoOneCaresAbout/videojs-ttml.git", - "requires": { - "moment": "^2.17.0" - } - }, "videojs-vtt.js": { "version": "0.15.2", "resolved": "https://registry.npmjs.org/videojs-vtt.js/-/videojs-vtt.js-0.15.2.tgz", diff --git a/package.json b/package.json index 99810cbb..1114d60c 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,6 @@ "video.js": "^7.10.2", "videojs-contrib-quality-levels": "^2.0.9", "videojs-hotkeys": "^0.2.27", - "videojs-ttml": "git+https://github.com/StuffNoOneCaresAbout/videojs-ttml.git", "vue": "^3.0.0", "vue-router": "^4.0.0-rc.2" }, @@ -52,4 +51,4 @@ "last 2 versions", "not dead" ] -} +} \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index b1809e79..ec3ebc82 100644 --- a/src/App.vue +++ b/src/App.vue @@ -15,7 +15,7 @@ -
{{ item.title }}
+{{ video.title }}
diff --git a/src/components/WatchVideo.vue b/src/components/WatchVideo.vue index ef803d16..f748b144 100644 --- a/src/components/WatchVideo.vue +++ b/src/components/WatchVideo.vue @@ -1,39 +1,41 @@ -{{ video.uploader }}
+ {{ video.uploader }}Sponsors found in Video: {{ sponsors.segments.length }}
- -
-
-
{{ related.title }}
- -
- {{ related.uploaderName }}
+
+
{{ related.title }}
+ +
+ {{ related.uploaderName }}