From 426c5669f0bb08a263c82376318e78caf866a5d6 Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Thu, 17 Jun 2021 00:44:46 +0530 Subject: [PATCH] Add audio only buttons. --- src/components/Channel.vue | 23 +++----------- src/components/Playlist.vue | 22 +++---------- src/components/TrendingPage.vue | 30 +++--------------- src/components/VideoItem.vue | 55 +++++++++++++++++++++++++++++++++ src/main.js | 4 +-- 5 files changed, 72 insertions(+), 62 deletions(-) create mode 100644 src/components/VideoItem.vue diff --git a/src/components/Channel.vue b/src/components/Channel.vue index 27eb541f..734e7cd8 100644 --- a/src/components/Channel.vue +++ b/src/components/Channel.vue @@ -11,25 +11,10 @@
- - - {{ item.title }} - -
-
- - - {{ numberFormat(item.views) }} views -
- {{ item.uploadedDate }} -
- - {{ timeFormat(item.duration) }} - -
+
@@ -38,6 +23,7 @@ diff --git a/src/components/Playlist.vue b/src/components/Playlist.vue index 0f98997c..f8ec71ea 100644 --- a/src/components/Playlist.vue +++ b/src/components/Playlist.vue @@ -21,24 +21,10 @@
- - - {{ item.title }} - -
-
- - {{ - item.uploaderName - }} - - - {{ timeFormat(item.duration) }} - -
+
@@ -47,6 +33,7 @@ diff --git a/src/components/TrendingPage.vue b/src/components/TrendingPage.vue index f4528a9c..c05845fb 100644 --- a/src/components/TrendingPage.vue +++ b/src/components/TrendingPage.vue @@ -10,37 +10,14 @@ v-bind:key="video.url" v-for="video in videos" > -
- - thumbnail -

{{ video.title }}

-
- -

{{ video.uploaderName }}

-
- - - {{ numberFormat(video.views) }} views -
- {{ video.uploadedDate }} -
- - {{ timeFormat(video.duration) }} - -
+ diff --git a/src/components/VideoItem.vue b/src/components/VideoItem.vue new file mode 100644 index 00000000..d0efcdce --- /dev/null +++ b/src/components/VideoItem.vue @@ -0,0 +1,55 @@ + + + diff --git a/src/main.js b/src/main.js index 498f58d9..c230257e 100644 --- a/src/main.js +++ b/src/main.js @@ -1,9 +1,9 @@ import { createApp } from "vue"; import { library } from "@fortawesome/fontawesome-svg-core"; -import { faThumbsUp, faThumbsDown, faEye, faThumbtack, faCheck, faHeart } from "@fortawesome/free-solid-svg-icons"; +import { faThumbsUp, faThumbsDown, faEye, faThumbtack, faCheck, faHeart, faHeadphones } from "@fortawesome/free-solid-svg-icons"; import { faGithub, faBitcoin } from "@fortawesome/free-brands-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; -library.add(faThumbsUp, faThumbsDown, faEye, faGithub, faBitcoin, faThumbtack, faCheck, faHeart); +library.add(faThumbsUp, faThumbsDown, faEye, faGithub, faBitcoin, faThumbtack, faCheck, faHeart, faHeadphones); import("uikit/dist/css/uikit-core.css"); import("uikit/dist/js/uikit-core.min");