From 3fad74f7fd8903b989062e0748d4e45438fea96e Mon Sep 17 00:00:00 2001 From: root Date: Fri, 11 Mar 2022 01:24:53 +0530 Subject: [PATCH] Replace the YouTube link with a dialog that has links both with and without timestamps. Partly based upon an idea from https://github.com/TeamPiped/Piped/issues/886 . --- src/components/VideoSharingPanel.vue | 78 ++++++++++++++++++++++++++++ src/routes/WatchVideo.vue | 43 ++++++++------- src/translations/en.json | 7 +++ 3 files changed, 109 insertions(+), 19 deletions(-) create mode 100644 src/components/VideoSharingPanel.vue diff --git a/src/components/VideoSharingPanel.vue b/src/components/VideoSharingPanel.vue new file mode 100644 index 0000000..6499627 --- /dev/null +++ b/src/components/VideoSharingPanel.vue @@ -0,0 +1,78 @@ + + + diff --git a/src/routes/WatchVideo.vue b/src/routes/WatchVideo.vue index 6883021..700a561 100644 --- a/src/routes/WatchVideo.vue +++ b/src/routes/WatchVideo.vue @@ -12,6 +12,10 @@ @timeupdate="onTimeUpdate" /> + + + + @@ -32,11 +36,11 @@ {{ mdiThumbUp }} {{ $store.getters['i18n/fmtNumber'](video.likes) }} - - - {{ mdiYoutube }} + + + {{ mdiShareVariant }} + {{ $t('video_sharing_panel.share') }} @@ -45,7 +49,7 @@