mirror of
https://github.com/Dannecron/ich-lerne-deutsch.git
synced 2025-12-25 21:02:35 +03:00
SingIn and SignUp pages logic. Add Firebase integration
This commit is contained in:
17
src/main.js
17
src/main.js
@@ -1,12 +1,16 @@
|
||||
import Vue from 'vue';
|
||||
import Vuetify from 'vuetify';
|
||||
import firebase from 'firebase';
|
||||
|
||||
import 'vuetify/dist/vuetify.min.css';
|
||||
import 'material-design-icons-iconfont/dist/material-design-icons.css';
|
||||
|
||||
import App from './App.vue';
|
||||
import router from './router';
|
||||
import store from './store';
|
||||
import App from '@/App.vue';
|
||||
import router from '@/router';
|
||||
import store from '@/store';
|
||||
import firebaseConfig from '@/config/firebase';
|
||||
|
||||
firebase.initializeApp(firebaseConfig);
|
||||
|
||||
Vue.config.productionTip = false;
|
||||
Vue.use(Vuetify);
|
||||
@@ -14,5 +18,10 @@ Vue.use(Vuetify);
|
||||
new Vue({
|
||||
router,
|
||||
store,
|
||||
render: h => h(App)
|
||||
render: h => h(App),
|
||||
created: function onApplicationCreated() {
|
||||
firebase.auth().onAuthStateChanged((user) => {
|
||||
this.$store.dispatch('stateChanged', user);
|
||||
});
|
||||
}
|
||||
}).$mount('#app');
|
||||
|
||||
Reference in New Issue
Block a user