Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"plugins": [
"es6-promise",
"add-module-exports",
"lodash"
"lodash",
"transform-decorators-legacy"
]
}
4 changes: 2 additions & 2 deletions examples/decorators/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "redux-firebasev3-decorators-example",
"name": "react-redux-firebase-decorators-example",
"version": "0.0.1",
"private": true,
"devDependencies": {
Expand Down Expand Up @@ -52,7 +52,7 @@
"react-router": "^2.7.0",
"react-router-redux": "^4.0.5",
"redux": "^3.4.0",
"redux-firebasev3": "*"
"react-redux-firebase": "*"
},
"scripts": {
"start": "node ./scripts/start.js",
Expand Down
8 changes: 4 additions & 4 deletions examples/decorators/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import TodoItem from './TodoItem'

// redux/firebase
import { connect } from 'react-redux'
import { firebase, helpers } from 'redux-firebasev3'
import { firebase, helpers } from 'react-redux-firebase'
const { isLoaded, isEmpty, pathToJS, dataToJS } = helpers

@firebase([
Expand Down Expand Up @@ -48,15 +48,15 @@ export default class App extends Component {
return (
<div className="App">
<div className="App-header">
<h2>redux-firebasev3 demo</h2>
<h2>react-redux-firebase demo</h2>
<img src={logo} className="App-logo" alt="logo" />
</div>
<div className="App-todos">
<h4>
Loaded From
<span className="App-Url">
<a href="https://redux-firebasev3.firebaseio.com/">
redux-firebasev3.firebaseio.com
<a href="https://react-redux-firebase.firebaseio.com/">
react-redux-firebase.firebaseio.com
</a>
</span>
</h4>
Expand Down
2 changes: 1 addition & 1 deletion examples/decorators/src/TodoItem.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { PropTypes, Component } from 'react'
import { firebase } from 'redux-firebasev3'
import { firebase } from 'react-redux-firebase'

import './Todo.css'

Expand Down
4 changes: 2 additions & 2 deletions examples/decorators/src/config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const firebase = {
apiKey: 'AIzaSyCTUERDM-Pchn_UDTsfhVPiwM4TtNIxots',
authDomain: 'redux-firebasev3.firebaseapp.com',
databaseURL: 'https://redux-firebasev3.firebaseio.com'
authDomain: 'react-redux-firebase.firebaseapp.com',
databaseURL: 'https://react-redux-firebase.firebaseio.com'
}

export default { firebase }
2 changes: 1 addition & 1 deletion examples/decorators/src/reducer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { combineReducers } from 'redux'
import { firebaseStateReducer as firebase } from 'redux-firebasev3'
import { firebaseStateReducer as firebase } from 'react-redux-firebase'

const rootReducer = combineReducers({
firebase
Expand Down
2 changes: 1 addition & 1 deletion examples/decorators/src/store.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createStore, compose } from 'redux'
import rootReducer from './reducer'
import { firebase as fbConfig } from './config'
import { reduxReactFirebase } from 'redux-firebasev3'
import { reduxReactFirebase } from 'react-redux-firebase'
// import { reduxFirebase } from 'redux-firebase' // >= v0.1.1

export default function configureStore (initialState, history) {
Expand Down
2 changes: 1 addition & 1 deletion examples/material/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Local Development

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

Expand Down
2 changes: 1 addition & 1 deletion examples/material/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>redux-firebasev3-example</title>
<title>react-redux-firebase-example</title>
</head>
<body>
<div id="root"></div>
Expand Down
4 changes: 2 additions & 2 deletions examples/material/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "redux-firebasev3-material-example",
"name": "react-redux-firebase-material-example",
"version": "0.0.1",
"private": true,
"devDependencies": {
Expand Down Expand Up @@ -58,7 +58,7 @@
"react-router-redux": "3.0.0",
"react-tap-event-plugin": "^1.0.0",
"redux": "3.4.0",
"redux-firebasev3": "*"
"react-redux-firebase": "*"
},
"scripts": {
"start": "node ./scripts/start.js",
Expand Down
4 changes: 2 additions & 2 deletions examples/material/src/config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const firebase = {
apiKey: 'AIzaSyCTUERDM-Pchn_UDTsfhVPiwM4TtNIxots',
authDomain: 'redux-firebasev3.firebaseapp.com',
databaseURL: 'https://redux-firebasev3.firebaseio.com'
authDomain: 'react-redux-firebase.firebaseapp.com',
databaseURL: 'https://react-redux-firebase.firebaseio.com'
}

export const fbPaths = {
Expand Down
4 changes: 2 additions & 2 deletions examples/material/src/containers/Account/Account.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const textFieldStyle = { width: '60%' }
const buttonStyle = { 'marginTop': '2rem', width: '20%' }
const defaultUserImageUrl = 'https://s3.amazonaws.com/kyper-cdn/img/User.png'

// redux-firebasev3
import { firebase, helpers } from 'redux-firebasev3'
// react-redux-firebase
import { firebase, helpers } from 'react-redux-firebase'
const { dataToJS, pathToJS } = helpers

@firebase()
Expand Down
6 changes: 3 additions & 3 deletions examples/material/src/containers/Home/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { List } from 'material-ui/List'
import Paper from 'material-ui/Paper'
import Subheader from 'material-ui/Subheader'

import { firebase, helpers } from 'redux-firebasev3'
import { firebase, helpers } from 'react-redux-firebase'
const { isLoaded, pathToJS, dataToJS } = helpers

@firebase([
Expand Down Expand Up @@ -73,8 +73,8 @@ export default class Home extends Component {
<div className='Home-Info'>
from
<span className='Home-Url'>
<a href='https://redux-firebasev3.firebaseio.com/'>
redux-firebasev3.firebaseio.com
<a href='https://react-redux-firebase.firebaseio.com/'>
react-redux-firebase.firebaseio.com
</a>
</span>
</div>
Expand Down
2 changes: 1 addition & 1 deletion examples/material/src/containers/Login/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import './Login.css'

// redux/firebase
import { connect } from 'react-redux'
import { firebase, helpers } from 'redux-firebasev3'
import { firebase, helpers } from 'react-redux-firebase'
const { pathToJS } = helpers

@firebase()
Expand Down
4 changes: 2 additions & 2 deletions examples/material/src/containers/Navbar/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const avatarSize = 50

// redux/firebase
import { connect } from 'react-redux'
import { firebase, helpers } from 'redux-firebasev3'
import { firebase, helpers } from 'react-redux-firebase'
const { pathToJS } = helpers

@firebase()
Expand Down Expand Up @@ -82,7 +82,7 @@ export default class Navbar extends Component {
<AppBar
title={
<Link to='/' style={buttonStyle}>
redux-firebasev3
react-redux-firebase
</Link>
}
className='Navbar'
Expand Down
4 changes: 2 additions & 2 deletions examples/material/src/containers/Signup/Signup.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import RaisedButton from 'material-ui/RaisedButton'
// Styles
import './Signup.css'

// redux-firebasev3
import { firebase, helpers } from 'redux-firebasev3'
// react-redux-firebase
import { firebase, helpers } from 'react-redux-firebase'
const { pathToJS } = helpers

@firebase()
Expand Down
2 changes: 1 addition & 1 deletion examples/material/src/reducers.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { combineReducers } from 'redux'
import { routeReducer as router } from 'react-router-redux'
import { firebaseStateReducer as firebase } from 'redux-firebasev3'
import { firebaseStateReducer as firebase } from 'react-redux-firebase'

const rootReducer = combineReducers({
firebase,
Expand Down
2 changes: 1 addition & 1 deletion examples/material/src/store/configureStore.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createStore, applyMiddleware, compose } from 'redux'
import rootReducer from '../reducers'
import { firebase as fbConfig } from '../config'
import { syncHistory } from 'react-router-redux'
import { reduxFirebase } from 'redux-firebasev3' // >= v0.1.1
import { reduxFirebase } from 'react-redux-firebase' // >= v0.1.1

export default function configureStore (initialState, history) {
const reduxRouterMiddleware = syncHistory(history)
Expand Down
2 changes: 1 addition & 1 deletion examples/material/src/store/configureStore.prod.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createStore, compose } from 'redux'
import rootReducer from '../reducers'
import { firebase as fbConfig } from '../config'
import { reduxReactFirebase } from 'redux-firebasev3' // >= v0.1.0
import { reduxReactFirebase } from 'react-redux-firebase' // >= v0.1.0
// import { reduxFirebase } from 'redux-firebase' // >= v0.1.1

export default function configureStore (initialState, history) {
Expand Down
4 changes: 2 additions & 2 deletions examples/simple/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "redux-firebasev3-simple-example",
"name": "react-redux-firebase-simple-example",
"version": "0.1.0",
"private": true,
"devDependencies": {
Expand All @@ -10,7 +10,7 @@
"react-dom": "^15.3.1",
"react-redux": "^4.4.5",
"redux": "^3.6.0",
"redux-firebasev3": "*"
"react-redux-firebase": "*"
},
"scripts": {
"start": "react-scripts start",
Expand Down
8 changes: 4 additions & 4 deletions examples/simple/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import TodoItem from './TodoItem'

// redux/firebase
import { connect } from 'react-redux'
import { firebase, helpers } from 'redux-firebasev3'
import { firebase, helpers } from 'react-redux-firebase'
const { isLoaded, isEmpty, pathToJS, dataToJS } = helpers

class App extends Component {
Expand Down Expand Up @@ -34,15 +34,15 @@ class App extends Component {
return (
<div className='App'>
<div className='App-header'>
<h2>redux-firebasev3 demo</h2>
<h2>react-redux-firebase demo</h2>
<img src={logo} className='App-logo' alt='logo' />
</div>
<div className='App-todos'>
<h4>
Loaded From
<span className='App-Url'>
<a href='https://redux-firebasev3.firebaseio.com/'>
redux-firebasev3.firebaseio.com
<a href='https://react-redux-firebase.firebaseio.com/'>
react-redux-firebase.firebaseio.com
</a>
</span>
</h4>
Expand Down
2 changes: 1 addition & 1 deletion examples/simple/src/TodoItem.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { PropTypes, Component } from 'react'
import { firebase } from 'redux-firebasev3'
import { firebase } from 'react-redux-firebase'

import './Todo.css'

Expand Down
4 changes: 2 additions & 2 deletions examples/simple/src/config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const firebase = {
apiKey: 'AIzaSyCTUERDM-Pchn_UDTsfhVPiwM4TtNIxots',
authDomain: 'redux-firebasev3.firebaseapp.com',
databaseURL: 'https://redux-firebasev3.firebaseio.com'
authDomain: 'react-redux-firebase.firebaseapp.com',
databaseURL: 'https://react-redux-firebase.firebaseio.com'
}

export default { firebase }
2 changes: 1 addition & 1 deletion examples/simple/src/reducer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { combineReducers } from 'redux'
import { firebaseStateReducer as firebase } from 'redux-firebasev3'
import { firebaseStateReducer as firebase } from 'react-redux-firebase'

const rootReducer = combineReducers({
firebase
Expand Down
2 changes: 1 addition & 1 deletion examples/simple/src/store.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createStore, compose } from 'redux'
import rootReducer from './reducer'
import { firebase as fbConfig } from './config'
import { reduxFirebase } from 'redux-firebase'
import { reduxFirebase } from 'react-redux-firebase'

export default function configureStore (initialState, history) {
const createStoreWithMiddleware = compose(
Expand Down
56 changes: 30 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
{
"name": "react-redux-firebase",
"version": "1.0.0",
"version": "1.0.1",
"description": "A Higher Order Component to use Firebase version 3 with Redux",
"main": "dist/index.js",
"module": "src/index.js",
"jsnext:main": "src/index.js",
"files": [
"dist",
"src"
],
"scripts": {
"build": "babel src --out-dir dist",
"build-dev": "babel src --out-dir dist --watch --src-maps inline",
Expand Down Expand Up @@ -47,28 +43,8 @@
"url": "https://github.com/tiberiuc"
}
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/prescottprue/react-redux-firebase.git"
},
"bugs": {
"url": "https://github.com/prescottprue/react-redux-firebase/issues"
},
"homepage": "https://github.com/prescottprue/react-redux-firebase#readme",
"keywords": [
"firebase",
"redux",
"react",
"react-redux",
"redux-firebase",
"react",
"babel",
"hoc",
"react-redux-firebase"
],
"dependencies": {
"firebase": "^3.4.1",
"firebase": "^3.5.0",
"immutable": "^3.8.1",
"jwt-decode": "^2.1.0",
"lodash": "^4.16.4"
Expand All @@ -85,6 +61,7 @@
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-es6-promise": "^1.0.0",
"babel-plugin-lodash": "^3.2.9",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-preset-es2015": "^6.16.0",
"babel-preset-react": "^6.16.0",
"babel-preset-stage-1": "^6.16.0",
Expand All @@ -98,10 +75,37 @@
"eslint-plugin-react": "^6.4.1",
"eslint-plugin-standard": "^2.0.1",
"isparta": "^4.0.0",
"jsdom": "^9.8.0",
"mocha": "^3.1.2",
"react-addons-test-utils": "^15.3.2",
"react-dom": "^15.3.2",
"rimraf": "^2.5.4"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/prescottprue/react-redux-firebase.git"
},
"bugs": {
"url": "https://github.com/prescottprue/react-redux-firebase/issues"
},
"homepage": "https://github.com/prescottprue/react-redux-firebase#readme",
"keywords": [
"firebase",
"redux",
"react",
"react-redux",
"redux-firebase",
"react",
"babel",
"hoc",
"react-redux-firebase"
],
"npmName": "react-redux-firebase",
"files": [
"dist",
"src"
],
"npmFileMap": [
{
"basePath": "/dist/",
Expand Down
Loading