This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createApp } from "vue"; | |
import { createWebHistory, createRouter } from "vue-router"; | |
import firebase from "firebase/app"; | |
import "firebase/analytics"; | |
import "firebase/auth"; | |
import "firebase/firestore"; | |
var firebaseConfig = { | |
apiKey: process.env.VUE_APP_API_KEY, | |
authDomain: process.env.VUE_APP_AUTH_DOMAIN, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import firebase from 'firebase/app' | |
import 'firebase/auth' | |
import 'firebase/firestore' | |
import 'firebase/database' | |
import moment from 'moment' | |
function CREATE_DOCUMENT(collection, obj) { | |
return new Promise((resolve, reject) => { | |
firebase | |
.firestore() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function createNewInstance(myInstanceId) { | |
Vue.component('button-counter', { | |
data: function () { | |
return { | |
count: 0 | |
} | |
}, | |
template: '<button v-on:click="count++">You clicked me {{ count }} times.</button>' | |
}) | |
new Vue({ el: '#instance-' + myInstanceId }) |
NewerOlder