Skip to content

Commit 0e2eb85

Browse files
authored
#5 v1.0.1
* Includes fix for [#2](https://github.com/prescottprue/react-redux-firebase/issues/) * Includes fix for [#3](#3) * tests added for query actions and connect function * String templating used where possible to simplify query actions * Updated examples to using `react-redux-firebase` over `redux-firebasev3`
2 parents c1a0445 + 985dc5c commit 0e2eb85

32 files changed

+317
-83
lines changed

.babelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"plugins": [
44
"es6-promise",
55
"add-module-exports",
6-
"lodash"
6+
"lodash",
7+
"transform-decorators-legacy"
78
]
89
}

examples/decorators/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "redux-firebasev3-decorators-example",
2+
"name": "react-redux-firebase-decorators-example",
33
"version": "0.0.1",
44
"private": true,
55
"devDependencies": {
@@ -52,7 +52,7 @@
5252
"react-router": "^2.7.0",
5353
"react-router-redux": "^4.0.5",
5454
"redux": "^3.4.0",
55-
"redux-firebasev3": "*"
55+
"react-redux-firebase": "*"
5656
},
5757
"scripts": {
5858
"start": "node ./scripts/start.js",

examples/decorators/src/App.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import TodoItem from './TodoItem'
66

77
// redux/firebase
88
import { connect } from 'react-redux'
9-
import { firebase, helpers } from 'redux-firebasev3'
9+
import { firebase, helpers } from 'react-redux-firebase'
1010
const { isLoaded, isEmpty, pathToJS, dataToJS } = helpers
1111

1212
@firebase([
@@ -48,15 +48,15 @@ export default class App extends Component {
4848
return (
4949
<div className="App">
5050
<div className="App-header">
51-
<h2>redux-firebasev3 demo</h2>
51+
<h2>react-redux-firebase demo</h2>
5252
<img src={logo} className="App-logo" alt="logo" />
5353
</div>
5454
<div className="App-todos">
5555
<h4>
5656
Loaded From
5757
<span className="App-Url">
58-
<a href="https://redux-firebasev3.firebaseio.com/">
59-
redux-firebasev3.firebaseio.com
58+
<a href="https://react-redux-firebase.firebaseio.com/">
59+
react-redux-firebase.firebaseio.com
6060
</a>
6161
</span>
6262
</h4>

examples/decorators/src/TodoItem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { PropTypes, Component } from 'react'
2-
import { firebase } from 'redux-firebasev3'
2+
import { firebase } from 'react-redux-firebase'
33

44
import './Todo.css'
55

examples/decorators/src/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const firebase = {
22
apiKey: 'AIzaSyCTUERDM-Pchn_UDTsfhVPiwM4TtNIxots',
3-
authDomain: 'redux-firebasev3.firebaseapp.com',
4-
databaseURL: 'https://redux-firebasev3.firebaseio.com'
3+
authDomain: 'react-redux-firebase.firebaseapp.com',
4+
databaseURL: 'https://react-redux-firebase.firebaseio.com'
55
}
66

77
export default { firebase }

examples/decorators/src/reducer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { combineReducers } from 'redux'
2-
import { firebaseStateReducer as firebase } from 'redux-firebasev3'
2+
import { firebaseStateReducer as firebase } from 'react-redux-firebase'
33

44
const rootReducer = combineReducers({
55
firebase

examples/decorators/src/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { createStore, compose } from 'redux'
22
import rootReducer from './reducer'
33
import { firebase as fbConfig } from './config'
4-
import { reduxReactFirebase } from 'redux-firebasev3'
4+
import { reduxReactFirebase } from 'react-redux-firebase'
55
// import { reduxFirebase } from 'redux-firebase' // >= v0.1.1
66

77
export default function configureStore (initialState, history) {

examples/material/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Local Development
44

5-
1. Clone repo: `[email protected]:prescottprue/redux-firebasev3.git`
5+
1. Clone repo: `[email protected]:prescottprue/react-redux-firebase.git`
66
2. Install dependencies: `npm install`
77
3. Run dev server `npm start`
88

examples/material/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1">
6-
<title>redux-firebasev3-example</title>
6+
<title>react-redux-firebase-example</title>
77
</head>
88
<body>
99
<div id="root"></div>

examples/material/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "redux-firebasev3-material-example",
2+
"name": "react-redux-firebase-material-example",
33
"version": "0.0.1",
44
"private": true,
55
"devDependencies": {
@@ -58,7 +58,7 @@
5858
"react-router-redux": "3.0.0",
5959
"react-tap-event-plugin": "^1.0.0",
6060
"redux": "3.4.0",
61-
"redux-firebasev3": "*"
61+
"react-redux-firebase": "*"
6262
},
6363
"scripts": {
6464
"start": "node ./scripts/start.js",

0 commit comments

Comments
 (0)