SHARE
TWEET

Untitled

a guest Aug 18th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import 'bootstrap'
  2. import 'bootstrap/dist/css/bootstrap.min.css'
  3. import Vue from 'vue'
  4. import App from './App.vue'
  5. import VueRouter from 'vue-router'
  6. import { library } from '@fortawesome/fontawesome-svg-core'
  7. import { faUserSecret } from '@fortawesome/free-solid-svg-icons'
  8. import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
  9.  
  10. Vue.config.productionTip = false
  11. Vue.component('font-awesome-icon', FontAwesomeIcon)
  12.  
  13. library.add(faUserSecret)
  14.  
  15. Vue.use(VueRouter)
  16.  
  17. const Home = { template: '<div>temp</div>' }
  18.  
  19. const routes = [
  20.   { path: '/', component: Home },
  21.   { path: '/about', component: () => import('./views/About.vue') },
  22.   { path: '/submitArtwork', component: () => import('./views/submitArtwork.vue') },
  23. ]
  24.  
  25. const router = new VueRouter({
  26.   routes
  27. })
  28.  
  29. new Vue({
  30.     router,
  31.     render: h => h(App),
  32. }).$mount('#app')
  33.      
  34. <template>
  35.   <div id="app">
  36.  
  37.     <div id="nav">
  38.       <router-link to="/">Home</router-link> |
  39.       <router-link to="/about">About</router-link> |
  40.       <router-link to="/submitArtwork">Submit Artwork</router-link>
  41.     </div>
  42.  
  43.     <img alt="Vue logo" src="./assets/logo.png">
  44.       <HelloWorld msg="Welcome to Your Vue.js App"/>
  45.     <transition
  46.         name="fade"
  47.         mode="out-in"
  48.     ></transition>
  49.       <router-view/>
  50.  
  51.       <v-facebook-login app-id="966242223397117"></v-facebook-login>
  52.  
  53.   </div>
  54. </template>
  55.  
  56. <script>
  57.  
  58. import HelloWorld from './components/HelloWorld.vue'
  59. import About from './components/about.vue'
  60. import VFacebookLogin from 'vue-facebook-login-component'
  61.  
  62. export default {
  63.   name: 'app',
  64.   components: {
  65.     HelloWorld,
  66.     VFacebookLogin,
  67.     About
  68.   },
  69. }
  70.  
  71. </script>
  72.  
  73. <style>
  74. ...
  75. </style>
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