You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
as i don t know how to contribute nor to fork a git repo i d like to "paste" in my ideas here.
To get this preset to work with the latest stable vue // vuetify releases here are some tips. Maybe it works for you either and anyone else can put this into this repo.
first you need a vuetify.js - file in your js - folder right next to your app.js
import Vue from 'vue'
import Vuetify from 'vuetify'
import 'vuetify/dist/vuetify.min.css'
Vue.use(Vuetify)
const opts = {}
export default new Vuetify(opts)
second you need to tweak your app.js as follows:
require('./bootstrap');
window.Vue = require('vue');
import loginButton from './components/LoginButtonComponent.vue'
import registerButton from './components/RegisterButtonComponent.vue'
import rememberPassword from './components/RememberPasswordComponent.vue'
import resetPassword from './components/ResetPasswordComponent.vue'
import snackBar from './components/SnackBarComponent.vue'
import gravatar from './components/GravatarComponent.vue'
import vuetify from './vuetify'
import store from './store'
import * as actions from './store/action-types'
import * as mutations from './store/mutation-types'
import { mapGetters } from 'vuex'
import withSnackbar from './components/mixins/withSnackbar'
if (window.user) {
store.commit(mutations.ACCOUNT, user)
store.commit(mutations.LOGGED, true)
}
new Vue({
el: '#app',
store,
vuetify,
components:{
'login-button':loginButton,
'register-button':registerButton,
'rememberPassword':rememberPassword,
'reset-password':resetPassword,
'snackbar':snackBar,
'gravatar':gravatar,
},
mixins: [ withSnackbar ],
data: () => ({
... like before
]
}),
methods: {
... like before
}
}).$mount('#app');
at last you need to update your package.json to the following content:
Hi @acacha,
as i don t know how to contribute nor to fork a git repo i d like to "paste" in my ideas here.
To get this preset to work with the latest stable vue // vuetify releases here are some tips. Maybe it works for you either and anyone else can put this into this repo.
first you need a vuetify.js - file in your js - folder right next to your app.js
second you need to tweak your app.js as follows:
at last you need to update your package.json to the following content:
and don t forget to
and
before
as a side note i needed to install cross-env globaly to get rid off some errors.
Hope this helps anyone who struggled like me to get this working with vuetify 2+
Regards
Moebius
The text was updated successfully, but these errors were encountered: