diff --git a/.gitignore b/.gitignore index 462a216..8c5074b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # General src/_config/ +.firebase/ .DS_Store node_modules diff --git a/package-lock.json b/package-lock.json index 490fcb1..d61f1a8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13308,6 +13308,14 @@ "integrity": "sha1-HuO8mhbsv1EYvjNLsV+cRvgvWCU=", "dev": true }, + "vue-uuid": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/vue-uuid/-/vue-uuid-1.1.1.tgz", + "integrity": "sha512-iJ9zuLjWuVdaNOhoKLHl1Af1pkbk4e33upMesAulH6HqoV9rSDM+2gvP+duwQ4aQijouYHGzwRPzEZBqw7ruig==", + "requires": { + "uuid": "^3.3.2" + } + }, "vuex": { "version": "3.1.2", "resolved": "https://registry.npm.taobao.org/vuex/download/vuex-3.1.2.tgz", diff --git a/package.json b/package.json index 4672f27..e7c5f67 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "http2": "^3.3.7", "vue": "^2.6.10", "vue-router": "^3.1.3", + "vue-uuid": "^1.1.1", "vuex": "^3.0.1" }, "devDependencies": { diff --git a/src/Firebase/index.js b/src/Firebase/index.js index 2c02e8c..1b06205 100644 --- a/src/Firebase/index.js +++ b/src/Firebase/index.js @@ -6,14 +6,7 @@ const {firebaseConfig} = require('../_config/env'); firebase.initializeApp(firebaseConfig); -const admin = require('firebase-admin'); -admin.initializeApp({ - credential: admin.credential.cert(require('../_config/sdk-keys')), - databaseURL: 'https://alice-1555232535074.firebaseio.com' -}); - module.exports = { db: firebase.firestore(), - messaging: firebase.messaging(), - admin + messaging: firebase.messaging() }; diff --git a/src/components/Chat.vue b/src/components/Chat.vue index 09af29a..e6f3913 100644 --- a/src/components/Chat.vue +++ b/src/components/Chat.vue @@ -12,7 +12,7 @@