firecomponent
Advanced tools
+1
-1
| { | ||
| "name": "firecomponent", | ||
| "description": "Declarative components that bind data to firebase", | ||
| "version": "1.2.11", | ||
| "version": "1.2.12", | ||
| "author": { | ||
@@ -6,0 +6,0 @@ "name": "dmattia", |
+15
-15
@@ -1,7 +0,7 @@ | ||
| import FireHtml from './components/FireHtml.vue' | ||
| import FireText from './components/FireText.vue' | ||
| import FireImage from './components/FireImage.vue' | ||
| import FireHtml from './components/FireHtml.vue'; | ||
| import FireText from './components/FireText.vue'; | ||
| import FireImage from './components/FireImage.vue'; | ||
| import firebase from 'firebase' | ||
| import VueProgressiveImage from 'vue-progressive-image' | ||
| import firebase from 'firebase'; | ||
| import VueProgressiveImage from 'vue-progressive-image'; | ||
@@ -14,3 +14,3 @@ // Install the components | ||
| if (options.databaseURL !== undefined) { | ||
| firebase.initializeApp(options) | ||
| firebase.initializeApp(options); | ||
| Vue.prototype.$firebase = firebase; | ||
@@ -21,4 +21,4 @@ } else { | ||
| } else { | ||
| console.error('You must add your firebase configuration object to the firecomponent library') | ||
| return | ||
| console.error('You must add your firebase configuration object to the firecomponent library'); | ||
| return; | ||
| } | ||
@@ -38,3 +38,3 @@ | ||
| FireImage | ||
| } | ||
| }; | ||
@@ -45,11 +45,11 @@ /* -- Plugin definition & Auto-install -- */ | ||
| // Plugin | ||
| const plugin = { | ||
| var plugin = { | ||
| /* eslint-disable no-undef */ | ||
| install | ||
| } | ||
| install: install | ||
| }; | ||
| export default plugin | ||
| export default plugin; | ||
| // Auto-install | ||
| let GlobalVue = null; | ||
| var GlobalVue = null; | ||
| if (typeof window !== 'undefined') { | ||
@@ -63,3 +63,3 @@ GlobalVue = window.Vue; | ||
| Vue.use(plugin, config); | ||
| } | ||
| }; | ||
| } |
36290
0.05%