Skip to content

Commit 58f66db

Browse files
committed
(docs) add coverage badge
1 parent 7d2d837 commit 58f66db

File tree

2 files changed

+9
-20
lines changed

2 files changed

+9
-20
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<p align="center">
22
<a href="https://travis-ci.org/antoine92190/vue-advanced-chat"><img src="https://img.shields.io/travis/antoine92190/vue-advanced-chat/master.svg"></a>
3-
<!-- <a href="https://codecov.io/github/antoine92190/vue-advanced-chat?branch=master"><img src="https://img.shields.io/codecov/c/github/antoine92190/vue-advanced-chat/master.svg"></a> -->
3+
<a href="https://codecov.io/github/antoine92190/vue-advanced-chat?branch=master"><img src="https://img.shields.io/codecov/c/github/antoine92190/vue-advanced-chat/master.svg"></a>
44
<a href="https://www.npmjs.com/package/vue-advanced-chat"><img src="https://img.shields.io/npm/dm/vue-advanced-chat.svg"></a>
55
<a href="https://www.npmjs.com/package/vue-advanced-chat"><img src="https://img.shields.io/bundlephobia/minzip/vue-advanced-chat"></a>
66
<a href="https://www.npmjs.com/package/vue-advanced-chat"><img src="https://img.shields.io/npm/v/vue-advanced-chat.svg"></a>

demo/src/firestore/index.js

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,17 @@ import * as app from 'firebase/app'
22
import 'firebase/firestore'
33
import 'firebase/storage'
44

5-
// const config = {
6-
// apiKey: 'AIzaSyCVy3Oc1jgvacBZe5hKBA8mV9EOqmqUG0U',
7-
// authDomain: 'sandbox-public.firebaseapp.com',
8-
// databaseURL: 'https://sandbox-public.firebaseio.com',
9-
// projectId: 'sandbox-public',
10-
// storageBucket: 'sandbox-public.appspot.com',
11-
// messagingSenderId: '694742394920',
12-
// appId: '1:694742394920:web:af0d589c7618f85ccc2d1d'
13-
// }
14-
15-
const config = {
16-
apiKey: 'AIzaSyAp_VqNngNGQMRMDSag10xqGTap-G6FM9E',
17-
authDomain: 'sandbox-226704.firebaseapp.com',
18-
databaseURL: 'https://sandbox-226704.firebaseio.com',
19-
projectId: 'sandbox-226704',
20-
storageBucket: 'sandbox-226704.appspot.com',
21-
messagingSenderId: '1015649565816',
22-
appId: '1:1015649565816:web:1a79587b436517599cc18d'
5+
const config = JSON.parse(process.env.VUE_APP_FIREBASE_CONFIG) || {
6+
apiKey: 'AIzaSyCVy3Oc1jgvacBZe5hKBA8mV9EOqmqUG0U',
7+
authDomain: 'sandbox-public.firebaseapp.com',
8+
databaseURL: 'https://sandbox-public.firebaseio.com',
9+
projectId: 'sandbox-public',
10+
storageBucket: 'sandbox-public.appspot.com',
11+
messagingSenderId: '694742394920',
12+
appId: '1:694742394920:web:af0d589c7618f85ccc2d1d'
2313
}
2414

2515
app.initializeApp(config)
26-
// app.initializeApp(JSON.parse(process.env.VUE_APP_FIREBASE_CONFIG_PUBLIC))
2716

2817
export const firebase = app
2918
export const db = app.firestore()

0 commit comments

Comments
 (0)