daily pastebin goal
42%
SHARE
TWEET

main.js

a guest Jun 18th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Import Vue
  2. import Vue from 'vue'
  3.  
  4. // Import Framework7
  5. import Framework7 from 'framework7/dist/framework7.esm.bundle.js';
  6.  
  7. // Import Framework7 Vue
  8. import Framework7Vue from 'framework7-vue/dist/framework7-vue.esm.bundle.js';
  9.  
  10. // Import F7 Style
  11. import Framework7CSS from 'framework7/dist/css/framework7.css'
  12.  
  13. // Import F7 iOS Icons
  14. import Framework7Icons from 'framework7-icons/css/framework7-icons.css'
  15.  
  16. // Import App Component
  17. import app from './main.vue'
  18.  
  19. // Import Routes
  20. import routes from './routes.js'
  21.  
  22. // Install Plugin
  23. Vue.use(Framework7Vue, Framework7);
  24.  
  25. let theme = 'auto';
  26. if (document.location.search.indexOf('theme=') >= 0) {
  27.   theme = document.location.search.split('theme=')[1].split('&')[0];
  28. }
  29.  
  30. // Init Vue App
  31. export default new Vue({
  32.   // Root Element
  33.   el: '#app',
  34.   store,
  35.   render: c => c('app'),
  36.   components: {
  37.     app,
  38.   },
  39.   framework7: {
  40.     id: 'io.framework7.testapp',
  41.     theme, // md or ios
  42.   },
  43.   routes,
  44. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top