main.js 733 B

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