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
/* ************************************************************************ | |
qooxdoo - the new era of web development | |
http://qooxdoo.org | |
Copyright: | |
2010, Gregory Beaver | |
License: |
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
const stuff = { | |
output: { | |
pathinfo: true | |
}, | |
module: { | |
loaders: [ | |
{ test: /\.js/, loader: 'babel-loader', exclude: /node_modules/ }, | |
] |
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
/* eslint no-var: 0, babel/object-shorthand: 0, vars-on-top: 0 */ | |
require('babel-register') | |
var sauceBrowsers = require('./test/saucebrowsers.js') | |
var ieBrowsers = require('./test/onlyie.js') | |
var iosBrowsers = require('./test/onlyios.js') | |
var isCI = process.env.CONTINUOUS_INTEGRATION === 'true' | |
var reporters = ['mocha', 'saucelabs'] | |
var browsers = process.env.ONLYIE ? ieBrowsers : sauceBrowsers | |
var browserKeys = Object.keys(browsers) |
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
/* eslint no-var: 0, babel/object-shorthand: 0, vars-on-top: 0 */ | |
require('babel-register') | |
var isCI = process.env.CONTINUOUS_INTEGRATION === 'true' | |
var reporters = ['mocha', 'saucelabs'] | |
var singleRun = true | |
var sauceParams = { | |
testName: "react-selection-hoc unit tests", | |
username: process.env.SAUCEUSER, |
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 Router from 'react-router' | |
import Route from 'react-router' | |
// import the components | |
import App from './App' | |
import Dashboard from './Dashboard' | |
import About from './About' | |
import Inbox from './Inbox' | |
import Message from './Message' | |
// example from https://github.com/ReactTraining/react-router/blob/master/docs/guides/RouteConfiguration.md |
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 { connect } from 'react-redux' | |
import Component from './Component' | |
import * as actions from './actions' | |
function mapStateToProps(state, props) { | |
return { | |
year => props.year || state.year | |
} | |
} |
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 Camper from './Camper' | |
export default ({ year, ...otherData }) => { | |
return ( | |
<div> | |
{ otherData.year === year ? <Camper {...otherData} /> : null } | |
</div> | |
) | |
} |
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 { connect } from 'react-redux' | |
export default isActive => ({ component, ...props }) => { | |
const Component = component | |
const NullComponent = ({ '@@__isActive': active, ...props }) => ( | |
active ? <Component {...props} /> : null | |
) | |
const R = connect((state, props) => { |
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, { Component } from 'react' | |
export default class Inbox extends Component { | |
render() { | |
return ( | |
<div> | |
<h2>Inbox</h2> | |
{this.props.children || "Welcome to your Inbox"} | |
</div> | |
) |
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, { Component } from 'react' | |
import RenderIfRoute from './RenderIfRoute' | |
import Message from './Message' | |
export default class Inbox extends Component { | |
render() { | |
return ( | |
<div> | |
<h2>Inbox</h2> | |
<RenderIfRoute isActive={state => state.routing.activeRoute === 'message'} component={Message} /> |
OlderNewer