mirror of
https://github.com/romancm/gamebrary
synced 2024-11-27 13:40:48 +00:00
Address firebase-related console warnings
This commit is contained in:
parent
cbb87bceb7
commit
217e94af74
4 changed files with 9 additions and 18 deletions
|
@ -31,8 +31,9 @@ import AddList from '@/components/Lists/AddList';
|
|||
import toasts from '@/mixins/toasts';
|
||||
import List from '@/components/GameBoard/List';
|
||||
import draggable from 'vuedraggable';
|
||||
import firebase from 'firebase';
|
||||
import { mapState } from 'vuex';
|
||||
import firebase from 'firebase/app';
|
||||
import 'firebase/firestore';
|
||||
|
||||
const db = firebase.firestore();
|
||||
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import firebase from 'firebase';
|
||||
import { GoogleAuth } from '@/shared/firebase';
|
||||
import firebase from 'firebase/app';
|
||||
import 'firebase/auth';
|
||||
import { mapState } from 'vuex';
|
||||
import Panel from '@/components/Panel/Panel';
|
||||
|
||||
|
@ -45,6 +45,8 @@ export default {
|
|||
login() {
|
||||
this.$store.commit('SET_AUTHORIZING_STATUS', true);
|
||||
|
||||
const GoogleAuth = new firebase.auth.GoogleAuthProvider();
|
||||
|
||||
firebase.auth().signInWithRedirect(GoogleAuth)
|
||||
.catch((error) => {
|
||||
/* eslint-disable */
|
||||
|
|
|
@ -128,7 +128,9 @@
|
|||
<script>
|
||||
import { debounce } from 'lodash';
|
||||
import { mapState } from 'vuex';
|
||||
import firebase from 'firebase';
|
||||
import firebase from 'firebase/app';
|
||||
import 'firebase/firestore';
|
||||
import 'firebase/auth';
|
||||
import Gravatar from 'vue-gravatar';
|
||||
import Panel from '@/components/Panel/Panel';
|
||||
import toasts from '@/mixins/toasts';
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
import firebase from 'firebase';
|
||||
|
||||
// eslint-disable-next-line
|
||||
const firebaseApp = firebase.initializeApp({
|
||||
apiKey: 'AIzaSyA6MsmnLtqT4b11r-j15wwreRypO3AodcA',
|
||||
authDomain: 'gamebrary.com',
|
||||
databaseURL: 'https://gamebrary-8c736.firebaseio.com',
|
||||
projectId: 'gamebrary-8c736',
|
||||
storageBucket: 'gamebrary-8c736.appspot.com',
|
||||
messagingSenderId: '324529217902',
|
||||
});
|
||||
|
||||
// eslint-disable-next-line
|
||||
export const GoogleAuth = new firebase.auth.GoogleAuthProvider();
|
Loading…
Reference in a new issue