mirror of https://github.com/FreeTubeApp/FreeTube
Move observe-visibility directive registration to main.js (#5088)
This commit is contained in:
parent
a20061dc6d
commit
7bdf45cc26
|
@ -1,6 +1,5 @@
|
|||
import Vue, { defineComponent } from 'vue'
|
||||
import { defineComponent } from 'vue'
|
||||
import { mapActions, mapMutations } from 'vuex'
|
||||
import { ObserveVisibility } from 'vue-observe-visibility'
|
||||
import FtFlexBox from './components/ft-flex-box/ft-flex-box.vue'
|
||||
import TopNav from './components/top-nav/top-nav.vue'
|
||||
import SideNav from './components/side-nav/side-nav.vue'
|
||||
|
@ -20,8 +19,6 @@ import { translateWindowTitle } from './helpers/strings'
|
|||
|
||||
let ipcRenderer = null
|
||||
|
||||
Vue.directive('observe-visibility', ObserveVisibility)
|
||||
|
||||
export default defineComponent({
|
||||
name: 'App',
|
||||
components: {
|
||||
|
|
|
@ -8,6 +8,8 @@ import { library } from '@fortawesome/fontawesome-svg-core'
|
|||
|
||||
import { register as registerSwiper } from 'swiper/element'
|
||||
|
||||
import { ObserveVisibility } from 'vue-observe-visibility'
|
||||
|
||||
// Please keep the list of constants sorted by name
|
||||
// to avoid code conflict and duplicate entries
|
||||
import {
|
||||
|
@ -193,6 +195,7 @@ library.add(
|
|||
registerSwiper()
|
||||
|
||||
Vue.component('FontAwesomeIcon', FontAwesomeIcon)
|
||||
Vue.directive('observe-visibility', ObserveVisibility)
|
||||
|
||||
/* eslint-disable-next-line no-new */
|
||||
new Vue({
|
||||
|
|
Loading…
Reference in New Issue