aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2017-01-15 18:24:09 -0800
committerAdam Soltys <[email protected]>2017-01-15 18:24:09 -0800
commit7762ceaa7e2bb34f8758e17a4c8f512fa6a81b9e (patch)
tree91bb1d1b8fe6ad77a48f0e429d9bfd35834c78d9 /src/main.js
parent0ae266bf88f9f79c7e99b272688126898303daa4 (diff)
downloadcoinos-server-7762ceaa7e2bb34f8758e17a4c8f512fa6a81b9e.tar.gz
coinos-server-7762ceaa7e2bb34f8758e17a4c8f512fa6a81b9e.zip
Initial Vueification
Diffstat (limited to 'src/main.js')
-rw-r--r--src/main.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/main.js b/src/main.js
new file mode 100644
index 00000000..e4ae5c1a
--- /dev/null
+++ b/src/main.js
@@ -0,0 +1,26 @@
+// The Vue build version to load with the `import` command
+// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
+import Vue from 'vue'
+import VueRouter from 'vue-router'
+import App from './App'
+import SignIn from './components/SignIn'
+
+const routes = [
+ { path: '/', component: SignIn },
+ { path: '/signin', component: SignIn }
+]
+
+const router = new VueRouter({
+ routes // short for routes: routes
+})
+
+Vue.use(VueRouter)
+
+/* eslint-disable no-new */
+new Vue({
+ el: '#app',
+ template: '<app/>',
+ components: { App },
+ router: router
+})
+