diff --git a/src/components/ModalComponent.vue b/src/components/ModalComponent.vue new file mode 100644 index 00000000..f1e5ad9b --- /dev/null +++ b/src/components/ModalComponent.vue @@ -0,0 +1,42 @@ + + + + + diff --git a/src/components/PlaylistAddModal.vue b/src/components/PlaylistAddModal.vue index aeb20921..495f9f30 100644 --- a/src/components/PlaylistAddModal.vue +++ b/src/components/PlaylistAddModal.vue @@ -1,46 +1,30 @@ - - diff --git a/src/components/WatchVideo.vue b/src/components/WatchVideo.vue index b2acbb2f..5c781f88 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..8949313e 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -97,7 +97,13 @@ "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", + "time_code": "Time code (in seconds)" }, "comment": { "pinned_by": "Pinned by", @@ -144,6 +150,8 @@ }, "info": { "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" + "page_not_found": "Page not found", + "copied": "Copied!", + "cannot_copy": "Can't copy!" } -} \ No newline at end of file +} diff --git a/src/main.js b/src/main.js index 6c9d9642..0d19314e 100644 --- a/src/main.js +++ b/src/main.js @@ -16,8 +16,9 @@ import { faCircleMinus, faXmark, faClone, + faShare, } from "@fortawesome/free-solid-svg-icons"; -import { faGithub, faBitcoin, faYoutube } from "@fortawesome/free-brands-svg-icons"; +import { faGithub, faBitcoin } from "@fortawesome/free-brands-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; library.add( faEye, @@ -27,7 +28,6 @@ library.add( faCheck, faHeart, faHeadphones, - faYoutube, faRss, faChevronLeft, faLevelDownAlt, @@ -38,6 +38,7 @@ library.add( faCircleMinus, faXmark, faClone, + faShare, ); import router from "@/router/router.js";