From 960e0ce15e4952b07abbe28a4b7f518db610649a Mon Sep 17 00:00:00 2001 From: Bnyro Date: Sun, 28 Aug 2022 16:29:11 +0200 Subject: [PATCH] add share dialog --- src/components/ShareModal.vue | 87 +++++++++++++++++++++++++++++++++++ src/components/WatchVideo.vue | 22 +++++---- src/locales/en.json | 9 +++- src/main.js | 2 + 4 files changed, 109 insertions(+), 11 deletions(-) create mode 100644 src/components/ShareModal.vue diff --git a/src/components/ShareModal.vue b/src/components/ShareModal.vue new file mode 100644 index 00000000..908c307b --- /dev/null +++ b/src/components/ShareModal.vue @@ -0,0 +1,87 @@ + + + + + diff --git a/src/components/WatchVideo.vue b/src/components/WatchVideo.vue index b2acbb2f..5db8d7fd 100644 --- a/src/components/WatchVideo.vue +++ b/src/components/WatchVideo.vue @@ -88,6 +88,12 @@ /> +
@@ -105,15 +111,10 @@ - - - - - - - - - + LBRY @@ -211,6 +212,7 @@ import ErrorHandler from "./ErrorHandler.vue"; import CommentItem from "./CommentItem.vue"; import ChaptersBar from "./ChaptersBar.vue"; import PlaylistAddModal from "./PlaylistAddModal.vue"; +import ShareModal from "./ShareModal.vue"; import PlaylistVideos from "./PlaylistVideos.vue"; export default { @@ -222,6 +224,7 @@ export default { CommentItem, ChaptersBar, PlaylistAddModal, + ShareModal, PlaylistVideos, }, data() { @@ -245,6 +248,7 @@ export default { smallViewQuery: smallViewQuery, smallView: smallViewQuery.matches, showModal: false, + showShareModal: false, isMobile: true, currentTime: 0, }; diff --git a/src/locales/en.json b/src/locales/en.json index ac4e4322..028effbc 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -97,7 +97,12 @@ "confirm_reset_preferences": "Are you sure you want to reset your preferences?", "backup_preferences": "Backup preferences", "restore_preferences": "Restore preferences", - "back_to_home": "Back to home" + "back_to_home": "Back to home", + "share": "Share", + "with_timecode": "Share with time code", + "piped_link": "Piped link", + "follow_link": "Follow link", + "copy_link": "Copy link" }, "comment": { "pinned_by": "Pinned by", @@ -146,4 +151,4 @@ "preferences_note": "Note: preferences are saved in the local storage of your browser. Deleting your browser data will reset them.", "page_not_found": "Page not found" } -} \ No newline at end of file +} diff --git a/src/main.js b/src/main.js index 6c9d9642..db65e6aa 100644 --- a/src/main.js +++ b/src/main.js @@ -16,6 +16,7 @@ import { faCircleMinus, faXmark, faClone, + faShare, } from "@fortawesome/free-solid-svg-icons"; import { faGithub, faBitcoin, faYoutube } from "@fortawesome/free-brands-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; @@ -38,6 +39,7 @@ library.add( faCircleMinus, faXmark, faClone, + faShare, ); import router from "@/router/router.js";