mirror of
https://github.com/zhigang1992/reactfire.git
synced 2026-05-14 02:24:29 +08:00
add fireperf
This commit is contained in:
@@ -2,5 +2,19 @@
|
||||
"firestore": {
|
||||
"rules": "firestore.rules",
|
||||
"indexes": "firestore.indexes.json"
|
||||
},
|
||||
"hosting": {
|
||||
"public": "build",
|
||||
"ignore": [
|
||||
"firebase.json",
|
||||
"**/.*",
|
||||
"**/node_modules/**"
|
||||
],
|
||||
"rewrites": [
|
||||
{
|
||||
"source": "**",
|
||||
"destination": "/index.html"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,13 +3,14 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"firebase": "^5.9.3",
|
||||
"@firebase/performance": "https://fireperffw.firebaseapp.com/v002/firebase-performance-0.0.2.tgz",
|
||||
"firebase": "^5.9.4",
|
||||
"jest": "23.6.0",
|
||||
"react": "^16.8.6",
|
||||
"react-dom": "^16.8.6",
|
||||
"react-firebaseui": "^3.1.2",
|
||||
"react-scripts": "2.1.8",
|
||||
"reactfire": "0.0.1",
|
||||
"jest": "23.6.0"
|
||||
"reactfire": "0.0.1"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "react-scripts start",
|
||||
|
||||
@@ -2,18 +2,24 @@ import React, { StrictMode } from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import App from './App';
|
||||
import * as serviceWorker from './serviceWorker';
|
||||
import firebase from 'firebase/app';
|
||||
import './app.css';
|
||||
|
||||
firebase.initializeApp({
|
||||
import firebase from 'firebase/app';
|
||||
import '@firebase/performance';
|
||||
|
||||
const app = firebase.initializeApp({
|
||||
apiKey: 'AIzaSyBg3u1sJlyJwQCE95oSDH_mtLABS-is8ZM',
|
||||
authDomain: 'rxfire-525a3.firebaseapp.com',
|
||||
databaseURL: 'https://rxfire-525a3.firebaseio.com',
|
||||
projectId: 'rxfire-525a3',
|
||||
storageBucket: 'rxfire-525a3.appspot.com',
|
||||
messagingSenderId: '844180061847'
|
||||
messagingSenderId: '844180061847',
|
||||
appId: '1:844180061847:web:400f7142e2d1aaeb'
|
||||
});
|
||||
|
||||
// Initialize performance monitoring
|
||||
app.performance();
|
||||
|
||||
ReactDOM.render(
|
||||
<StrictMode>
|
||||
<App />
|
||||
|
||||
Reference in New Issue
Block a user