Upgrade to Vue CLI 3 / Webpack 4 (#22)

Fixes #19
This commit was merged in pull request #22.
This commit is contained in:
Daniel J. Summers
2018-08-21 20:39:41 -05:00
committed by GitHub
parent ee9326d7a5
commit 334710065c
43 changed files with 3162 additions and 3950 deletions

View File

@@ -29,7 +29,7 @@ export default {
Navigation
},
data () {
return { version }
return {}
},
mounted () {
this.$refs.toast.setOptions({ position: 'bottom right' })
@@ -37,6 +37,9 @@ export default {
computed: {
toast () {
return this.$refs.toast
},
version () {
return version.endsWith('.0') ? version.substr(0, version.length - 2) : version
}
}
}

View File

@@ -8,7 +8,6 @@ import mutations from '@/store/mutation-types'
var tokenRenewalTimeout
export default class AuthService {
constructor () {
this.login = this.login.bind(this)
this.setSession = this.setSession.bind(this)

View File

@@ -69,4 +69,4 @@ export default {
justify-content: center;
align-items: flex-start;
}
</style>
</style>

View File

@@ -93,4 +93,4 @@ export default {
padding-left: 1.25rem;
padding-right: 1.25rem;
}
</style>
</style>

View File

@@ -1,5 +1,3 @@
// 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 VueProgressBar from 'vue-progressbar'
import VueToast from 'vue-toast'
@@ -31,11 +29,8 @@ Vue.component('md-icon', MaterialDesignIcon)
Vue.component('page-title', PageTitle)
Vue.component('toast', VueToast)
/* eslint-disable no-new */
new Vue({
el: '#app',
router,
store,
template: '<App/>',
components: { App }
})
render: h => h(App)
}).$mount('#app')

View File

@@ -18,6 +18,7 @@ Vue.use(Router)
export default new Router({
mode: 'history',
base: process.env.BASE_URL,
scrollBehavior (to, from, savedPosition) {
if (savedPosition) {
return savedPosition