main.js 875 B

1234567891011121314151617181920212223242526272829303132
  1. import Vue from 'vue'
  2. import App from './App.vue'
  3. import store from '@/store'
  4. import VueClipboard from 'vue-clipboard2'
  5. import 'vue-virtual-scroller/dist/vue-virtual-scroller.css'
  6. import VueVirtualScroller from 'vue-virtual-scroller'
  7. import imgPreview from '@/components/popup/imgPreview'
  8. import packetGet from '@/components/popup/packetGet'
  9. import packetSend from '@/components/popup/packetSend'
  10. import otherInfo from '@/components/popup/otherInfo'
  11. import TWEEN from '@tweenjs/tween.js'
  12. Vue.use(VueClipboard)
  13. Vue.use(VueVirtualScroller)
  14. Vue.use(imgPreview)
  15. Vue.use(otherInfo, store)
  16. Vue.use(packetGet, store)
  17. Vue.use(packetSend, store)
  18. Vue.config.productionTip = false
  19. new Vue({
  20. render: h => h(App),
  21. store
  22. }).$mount('#app')
  23. // Setup the animation loop.
  24. function animate (time) {
  25. requestAnimationFrame(animate)
  26. TWEEN.update(time)
  27. }
  28. requestAnimationFrame(animate)