Added firebase credentials
This commit is contained in:
12
.env.example
12
.env.example
@@ -1,2 +1,10 @@
|
|||||||
VUE_CITY_ID_RESOLVER=https://owm-finder.kamilklecha.dev/city
|
VUE_APP_CITY_ID_RESOLVER=https://owm-finder.kamilklecha.dev/city
|
||||||
VUE_API_KEY=<key>
|
VUE_APP_OWM_API_KEY=<key>
|
||||||
|
|
||||||
|
VUE_APP_FIREBASE_apiKey=<key>
|
||||||
|
VUE_APP_FIREBASE_authDomain=<key>
|
||||||
|
VUE_APP_FIREBASE_projectId=<key>
|
||||||
|
VUE_APP_FIREBASE_storageBucket=<key>
|
||||||
|
VUE_APP_FIREBASE_messagingSenderId=<key>
|
||||||
|
VUE_APP_FIREBASE_appId=<key>b
|
||||||
|
VUE_APP_FIREBASE_measurementId=<key>
|
||||||
@@ -42,7 +42,7 @@ export default class City extends Vue {
|
|||||||
id: this.id,
|
id: this.id,
|
||||||
units: "metric",
|
units: "metric",
|
||||||
lang: "pl",
|
lang: "pl",
|
||||||
appid: process.env.VUE_APP_API_KEY,
|
appid: process.env.VUE_APP_OWM_API_KEY,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
@@ -61,7 +61,7 @@ export default class City extends Vue {
|
|||||||
id: this.id,
|
id: this.id,
|
||||||
units: "metric",
|
units: "metric",
|
||||||
lang: "pl",
|
lang: "pl",
|
||||||
appid: process.env.VUE_APP_API_KEY,
|
appid: process.env.VUE_APP_OWM_API_KEY,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
|||||||
28
src/main.ts
28
src/main.ts
@@ -1,12 +1,26 @@
|
|||||||
import Vue from 'vue'
|
import Vue from "vue";
|
||||||
import App from './App.vue'
|
import App from "./App.vue";
|
||||||
import store from './store'
|
import store from "./store";
|
||||||
import vuetify from './plugins/vuetify'
|
import vuetify from "./plugins/vuetify";
|
||||||
|
|
||||||
Vue.config.productionTip = false
|
import { initializeApp } from "firebase/app";
|
||||||
|
|
||||||
|
Vue.config.productionTip = false;
|
||||||
|
|
||||||
|
const firebaseConfig = {
|
||||||
|
apiKey: process.env.VUE_APP_FIREBASE_apiKey,
|
||||||
|
authDomain: process.env.VUE_APP_FIREBASE_authDomain,
|
||||||
|
projectId: process.env.VUE_APP_FIREBASE_projectId,
|
||||||
|
storageBucket: process.env.VUE_APP_FIREBASE_storageBucket,
|
||||||
|
messagingSenderId: process.env.VUE_APP_FIREBASE_messagingSenderId,
|
||||||
|
appId: process.env.VUE_APP_FIREBASE_appId,
|
||||||
|
measurementId: process.env.VUE_APP_FIREBASE_measurementId,
|
||||||
|
};
|
||||||
|
|
||||||
|
const app = initializeApp(firebaseConfig);
|
||||||
|
|
||||||
new Vue({
|
new Vue({
|
||||||
store,
|
store,
|
||||||
vuetify,
|
vuetify,
|
||||||
render: h => h(App)
|
render: (h) => h(App),
|
||||||
}).$mount('#app')
|
}).$mount("#app");
|
||||||
|
|||||||
Reference in New Issue
Block a user