- nylas/N1 💌 An extensible desktop mail app built on the modern web.
- black-screen/black-screen A terminal emulator for the 21st century.
- shockone/black-screen A terminal emulator for the 21st century.
- ptmt/react-native-macos React Native for macOS
- docker/kitematic Visual Docker Container Management on Mac & Windows
- kitematic/kitematic Visual Docker Container Management on Mac & Windows
- davezuko/wirk-starter Get started with React, Redux, and React-Router!
- TelescopeJS/Telescope 🔭 An open-source social news app built with Meteor & React
- coryhouse/react-slingshot React + Redux starter kit / boile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Post list | |
export const GET_POSTS = 'GET_POSTS'; | |
export const GET_POSTS_SUCCESS = 'GET_POSTS_SUCCESS'; | |
export const GET_POSTS_FAILURE = 'GET_POSTS_FAILURE'; | |
//Single post | |
export const GET_POST = 'GET_POST'; | |
export const GET_POST_SUCCESS = 'GET_POST_SUCCESS'; | |
export const GET_POST_FAILURE = 'GET_POST_FAILURE'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from 'axios'; | |
import { | |
GET_POSTS, | |
GET_POSTS_SUCCESS, | |
GET_POSTS_FAILURE, | |
GET_POST, | |
GET_POST_SUCCESS, | |
GET_POST_FAILURE, | |
} from './actions'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
GET_POSTS, | |
GET_POSTS_SUCCESS, | |
GET_POSTS_FAILURE | |
} from "./../actions/actions"; | |
const INITIAL_STATE = { posts: [], error: null, loading: false, totalpages: 0 }; | |
const Posts = (state = INITIAL_STATE, action) => { | |
let error; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
GET_POST, | |
GET_POST_SUCCESS, | |
GET_POST_FAILURE, | |
} from "./../actions/actions"; | |
const INITIAL_STATE = { post: null, error: null, loading: false }; | |
const Post = (state = INITIAL_STATE, action) => { | |
let error; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { combineReducers } from "redux"; | |
import MainReducer from "./reducer_main"; | |
import SingleReducer from "./reducer_single"; | |
const rootReducer = combineReducers({ | |
postsList: MainReducer, | |
currentPost: SingleReducer | |
}); | |
export default rootReducer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createStore, applyMiddleware, compose } from "redux"; | |
import reducers from "./../reducers/reducers"; | |
import promise from "redux-promise"; | |
const enhancer = applyMiddleware(promise); | |
export default function configureStore(initialState) { | |
return createStore(rootReducer, initialState, enhancer); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import { Provider } from 'react-redux'; | |
import { Router, browserHistory } from 'react-router'; | |
import routes from './routes'; | |
import configureStore from './store/configureStore.js'; | |
const store = configureStore({}); | |
ReactDOM.render( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { Route, IndexRoute } from 'react-router'; | |
import Main from './containers/maincontainer'; | |
import Single from './containers/singlecontainer'; | |
import App from './components/app'; | |
import SingleWrapper from './components/singleContain'; | |
import NotFound from './components/404'; | |
export default ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = require("path"); | |
var webpack = require("webpack"); | |
module.exports = { | |
entry: "./index.js", | |
output: { | |
path: path.join(__dirname, "../js"), | |
filename: "bundle.js" | |
}, | |
module: { |
OlderNewer