mirror of
https://github.com/romancm/gamebrary
synced 2025-02-25 19:27:14 +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 toasts from '@/mixins/toasts';
|
||||||
import List from '@/components/GameBoard/List';
|
import List from '@/components/GameBoard/List';
|
||||||
import draggable from 'vuedraggable';
|
import draggable from 'vuedraggable';
|
||||||
import firebase from 'firebase';
|
|
||||||
import { mapState } from 'vuex';
|
import { mapState } from 'vuex';
|
||||||
|
import firebase from 'firebase/app';
|
||||||
|
import 'firebase/firestore';
|
||||||
|
|
||||||
const db = firebase.firestore();
|
const db = firebase.firestore();
|
||||||
|
|
||||||
|
|
|
@ -27,8 +27,8 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import firebase from 'firebase';
|
import firebase from 'firebase/app';
|
||||||
import { GoogleAuth } from '@/shared/firebase';
|
import 'firebase/auth';
|
||||||
import { mapState } from 'vuex';
|
import { mapState } from 'vuex';
|
||||||
import Panel from '@/components/Panel/Panel';
|
import Panel from '@/components/Panel/Panel';
|
||||||
|
|
||||||
|
@ -45,6 +45,8 @@ export default {
|
||||||
login() {
|
login() {
|
||||||
this.$store.commit('SET_AUTHORIZING_STATUS', true);
|
this.$store.commit('SET_AUTHORIZING_STATUS', true);
|
||||||
|
|
||||||
|
const GoogleAuth = new firebase.auth.GoogleAuthProvider();
|
||||||
|
|
||||||
firebase.auth().signInWithRedirect(GoogleAuth)
|
firebase.auth().signInWithRedirect(GoogleAuth)
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
|
@ -128,7 +128,9 @@
|
||||||
<script>
|
<script>
|
||||||
import { debounce } from 'lodash';
|
import { debounce } from 'lodash';
|
||||||
import { mapState } from 'vuex';
|
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 Gravatar from 'vue-gravatar';
|
||||||
import Panel from '@/components/Panel/Panel';
|
import Panel from '@/components/Panel/Panel';
|
||||||
import toasts from '@/mixins/toasts';
|
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…
Add table
Reference in a new issue