diff --git a/resources/assets/js/components.js b/resources/assets/js/components.js index a4dbf061..026b496f 100644 --- a/resources/assets/js/components.js +++ b/resources/assets/js/components.js @@ -3,7 +3,6 @@ import BootstrapVue from 'bootstrap-vue' import InfiniteLoading from 'vue-infinite-loading'; import Loading from 'vue-loading-overlay'; import VueTimeago from 'vue-timeago'; -//import {Howl, Howler} from 'howler'; Vue.use(BootstrapVue); Vue.use(InfiniteLoading); @@ -36,126 +35,8 @@ try { } window.filesize = require('filesize'); -// window.Plyr = require('plyr'); import swal from 'sweetalert'; -// require('./components/localstorage'); -// require('./components/commentform'); -//require('./components/searchform'); -// require('./components/bookmarkform'); -// require('./components/statusform'); -//require('./components/embed'); -//require('./components/notifications'); - -// import Echo from "laravel-echo" - -// window.io = require('socket.io-client'); - -// window.pixelfed.bootEcho = function() { -// window.Echo = new Echo({ -// broadcaster: 'socket.io', -// host: window.location.hostname + ':2096', -// auth: { -// headers: { -// Authorization: 'Bearer ' + token.content, -// }, -// }, -// }); -// } - -// Initialize Notification Helper -window.pixelfed.n = {}; - -// Vue.component( -// 'search-results', -// require('./components/SearchResults.vue').default -// ); - -// Vue.component( -// 'photo-presenter', -// require('./components/presenter/PhotoPresenter.vue').default -// ); - -// Vue.component( -// 'video-presenter', -// require('./components/presenter/VideoPresenter.vue').default -// ); - -// Vue.component( -// 'photo-album-presenter', -// require('./components/presenter/PhotoAlbumPresenter.vue').default -// ); - -// Vue.component( -// 'video-album-presenter', -// require('./components/presenter/VideoAlbumPresenter.vue').default -// ); - -// Vue.component( -// 'mixed-album-presenter', -// require('./components/presenter/MixedAlbumPresenter.vue').default -// ); - -// Vue.component( -// 'post-menu', -// require('./components/PostMenu.vue').default -// ); - - -// Vue.component( -// 'passport-clients', -// require('./components/passport/Clients.vue').default -// ); - -// Vue.component( -// 'passport-authorized-clients', -// require('./components/passport/AuthorizedClients.vue').default -// ); - -// Vue.component( -// 'passport-personal-access-tokens', -// require('./components/passport/PersonalAccessTokens.vue').default -// ); - - - -// Vue.component( -// 'follow-suggestions', -// require('./components/FollowSuggestions.vue').default -// ); - -// Vue.component( -// 'circle-panel', -// require('./components/CirclePanel.vue') -// ); - -// Vue.component( -// 'story-compose', -// require('./components/StoryCompose.vue').default -// ); - -//import 'promise-polyfill/src/polyfill'; - -// window.pixelfed.copyToClipboard = (str) => { -// const el = document.createElement('textarea'); -// el.value = str; -// el.setAttribute('readonly', ''); -// el.style.position = 'absolute'; -// el.style.left = '-9999px'; -// document.body.appendChild(el); -// const selected = -// document.getSelection().rangeCount > 0 -// ? document.getSelection().getRangeAt(0) -// : false; -// el.select(); -// document.execCommand('copy'); -// document.body.removeChild(el); -// if (selected) { -// document.getSelection().removeAllRanges(); -// document.getSelection().addRange(selected); -// } -// }; - $(document).ready(function() { $(function () { $('[data-toggle="tooltip"]').tooltip()