Skip to content

Commit

Permalink
WIP - removes firebase config from plugin and imports a config file t…
Browse files Browse the repository at this point in the history
…hat is gitignored
  • Loading branch information
sdellis committed Jun 27, 2018
1 parent 854a4ac commit 2583cb2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ node_modules
npm-debug.log*
yarn-debug.log*
yarn-error.log*
src/helpers/firebaseConfig.js
src/helpers/googleMapsConfig.js

# Editor directories and files
.idea
Expand Down
11 changes: 2 additions & 9 deletions src/plugins/firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,9 @@ import * as firebase from 'firebase';
import * as GeoFire from 'geofire';
import VueFire from 'vuefire';
import store from '../store/index'
import {config} from '../helpers/firebaseConfig'

const app = {
apiKey: "AIzaSyCZTIICdE_LL7xA7nHJ_81uUHYv7g6DjkA",
authDomain: "tree-photos.firebaseapp.com",
databaseURL: "https://tree-photos.firebaseio.com",
projectId: "tree-photos",
storageBucket: "gs://tree-photos.appspot.com",
messagingSenderId: "24380484990"
};
firebase.initializeApp(app);
firebase.initializeApp(config)

export const fireb = firebase
//export const fireui = firebaseui
Expand Down
3 changes: 2 additions & 1 deletion src/plugins/vuegooglemaps.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import * as VueGoogleMaps from 'vue2-google-maps'
import {gmConfig} from '../helpers/googleMapsConfig'

export default ({ Vue }) => {
Vue.use(VueGoogleMaps, {
load: {
key: 'AIzaSyC6Mxo0j7utiBOS9eW5qCvXQgPXHgJNIYI',
key: gmConfig.apiKey,
libraries: 'places' // necessary for places input
}
})
Expand Down

0 comments on commit 2583cb2

Please sign in to comment.