Upgrade to Vue CLI 3 / Webpack 4 (#22)
Fixes #19
This commit was merged in pull request #22.
This commit is contained in:
committed by
GitHub
parent
ee9326d7a5
commit
334710065c
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -69,4 +69,4 @@ export default {
|
||||
justify-content: center;
|
||||
align-items: flex-start;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@@ -93,4 +93,4 @@ export default {
|
||||
padding-left: 1.25rem;
|
||||
padding-right: 1.25rem;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user