commit
stringlengths
40
40
old_file
stringlengths
4
150
new_file
stringlengths
4
150
old_contents
stringlengths
0
3.26k
new_contents
stringlengths
1
4.43k
subject
stringlengths
15
501
message
stringlengths
15
4.06k
lang
stringclasses
4 values
license
stringclasses
13 values
repos
stringlengths
5
91.5k
diff
stringlengths
0
4.35k
67cbfb2b4f2e513779914ce3c765cb24267a2481
web/src/index.jsx
web/src/index.jsx
/** * Main entry point for budget web app */ import React from 'react'; import { render } from 'react-dom'; // import App from './components/App'; // import styles and favicon import './sass/index.scss'; import './images/favicon.png'; if (process.env.NODE_ENV !== 'test') { render( // <App />, <...
/** * Main entry point for budget web app */ import React from 'react'; import { render } from 'react-dom'; import App from './components/App'; // import styles and favicon import './sass/index.scss'; import './images/favicon.png'; if (process.env.NODE_ENV !== 'test') { render( <App />, documen...
Remove placeholder on client app
Remove placeholder on client app
JSX
mit
felamaslen/budget,felamaslen/budget,felamaslen/budget,felamaslen/budget,felamaslen/budget,felamaslen/budget
--- +++ @@ -4,7 +4,7 @@ import React from 'react'; import { render } from 'react-dom'; -// import App from './components/App'; +import App from './components/App'; // import styles and favicon import './sass/index.scss'; @@ -12,8 +12,7 @@ if (process.env.NODE_ENV !== 'test') { render( - // <App...
02463f63f9b0d69676c4b01e68d474b8eccea97a
src/components/list.jsx
src/components/list.jsx
import React, { Component, PropTypes } from 'react'; import User from './user'; import { getUsersIfNeeded } from '../../actions/users'; import { connect } from 'react-redux'; class List extends Component { componentDidMount() { } render() { const rows = []; console.log(this.props); if(this.props.use...
import React, { Component, PropTypes } from 'react'; import User from './user'; import { getUsersIfNeeded } from '../../actions/users'; import { connect } from 'react-redux'; class List extends Component { render() { const rows = []; if(this.props.users.friends) { this.props.users.friends.forEach(id =>...
Change to pass id only
Change to pass id only
JSX
mit
sunya9/follow-manager,sunya9/follow-manager
--- +++ @@ -4,20 +4,13 @@ import { connect } from 'react-redux'; class List extends Component { - componentDidMount() { - - } render() { const rows = []; - console.log(this.props); - if(this.props.users.users.friends) { - this.props.users.users.friends.forEach(id => { - const user = Ob...
a3fc8590401abe54cfcbb80687ce65d7988c8ffa
src/components/cover-image.jsx
src/components/cover-image.jsx
import { css } from 'glamor'; import PropTypes from 'prop-types'; import React from 'react'; import { ASPECT_RATIO_21_9_RELATIVE_HEIGHT, IMAGE_OVERLAY_TINT } from '../utils/presets'; const CoverImage = ({ alt, sizes, src, srcSet, ...props }) => ( <div {...css({ background: IMAGE_OVERLAY_TINT, backgro...
import { css } from 'glamor'; import PropTypes from 'prop-types'; import React from 'react'; import { ASPECT_RATIO_21_9_RELATIVE_HEIGHT, IMAGE_OVERLAY_TINT } from '../utils/presets'; const CoverImage = ({ alt, sizes, src, srcSet, ...props }) => ( <div {...css({ background: IMAGE_OVERLAY_TINT, backgro...
Remove grayscale gradient from cover when no image is presented
Remove grayscale gradient from cover when no image is presented
JSX
mit
simonyiszk/mvk-web,simonyiszk/mvk-web
--- +++ @@ -11,32 +11,33 @@ backgroundSize: 'cover', height: `${ASPECT_RATIO_21_9_RELATIVE_HEIGHT}vw`, marginBottom: '-10rem', - position: 'relative', })} {...props} > {src != null && ( - <img - alt={alt} - sizes={sizes} - src={src} - srcSet...
b6efcc891b8e9d7ac523bde28ce1c0f74e7cee80
src/js/components/Timeline.jsx
src/js/components/Timeline.jsx
import React, { PropTypes } from 'react'; import TimelineAction from './TimelineAction.jsx'; const propTypes = { timeline: PropTypes.array.isRequired, }; const Timeline = (props) => { const actions = props.timeline.map((action, i) => { return <TimelineAction key={i} action={action} />; }); const divStyl...
import React, { PropTypes } from 'react'; import TimelineAction from './TimelineAction.jsx'; const propTypes = { timeline: PropTypes.array.isRequired, }; const Timeline = (props) => { const actions = props.timeline.map((action, i) => { return <TimelineAction key={i} action={action} />; }); return ( ...
Remove limit height in timline component
Remove limit height in timline component
JSX
mit
tanaka0325/nippo-web,tanaka0325/nippo-web
--- +++ @@ -11,13 +11,8 @@ return <TimelineAction key={i} action={action} />; }); - const divStyle = { - maxHeight: '450px', - overflowY: 'scroll', - }; - return ( - <div className="column" style={divStyle}> + <div className="column"> <article className="message"> <div class...
010109a767436aad4e2bd56160a88bdcb16a0df7
src/components/languagechooser/languagechooser.jsx
src/components/languagechooser/languagechooser.jsx
var classNames = require('classnames'); var React = require('react'); var jar = require('../../lib/jar.js'); var languages = require('../../../languages.json'); var Select = require('../forms/select.jsx'); require('./languagechooser.scss'); var LanguageChooser = React.createClass({ type: 'LanguageChooser', g...
var classNames = require('classnames'); var React = require('react'); var Api = require('../../mixins/api.jsx'); var languages = require('../../../languages.json'); var Select = require('../forms/select.jsx'); require('./languagechooser.scss'); var LanguageChooser = React.createClass({ type: 'LanguageChooser', ...
Use api to set language instead of cookie
Use api to set language instead of cookie just to be safe. But i'm leaving in the `set` method of `jar.js` so we can easily move to it in the future.
JSX
bsd-3-clause
LLK/scratch-www,LLK/scratch-www
--- +++ @@ -1,7 +1,7 @@ var classNames = require('classnames'); var React = require('react'); -var jar = require('../../lib/jar.js'); +var Api = require('../../mixins/api.jsx'); var languages = require('../../../languages.json'); var Select = require('../forms/select.jsx'); @@ -9,6 +9,9 @@ var LanguageChoo...
16a33e4b93591a39b6d821b1f627249bae01ba5c
src/components/WarningsIcon.jsx
src/components/WarningsIcon.jsx
import {StaticImage} from 'gatsby-plugin-image'; import React from 'react'; const JenkinsVoltron = () => <StaticImage src="../images/warning.svg" className="alert-icon" aria-label="Warning"/>; export default JenkinsVoltron;
import React from 'react'; import src from '../images/warning.svg'; const WarningsIcon = () => (<img src={src} alt="Warning Icon" className="alert-icon" aria-label="Warning" />); export default WarningsIcon;
Use the warnings svg directly as it doesn't need pre-processing
Use the warnings svg directly as it doesn't need pre-processing
JSX
mit
jenkins-infra/plugin-site
--- +++ @@ -1,7 +1,12 @@ -import {StaticImage} from 'gatsby-plugin-image'; import React from 'react'; +import src from '../images/warning.svg'; -const JenkinsVoltron = () => <StaticImage src="../images/warning.svg" className="alert-icon" aria-label="Warning"/>; +const WarningsIcon = () => (<img + src={src} + ...
074f278325c1417534903b16e445feb6d0f29d13
app/webpack/observations/show/containers/community_identification_container.jsx
app/webpack/observations/show/containers/community_identification_container.jsx
import { connect } from "react-redux"; import CommunityIdentification from "../components/community_identification"; import { addID } from "../ducks/observation"; import { updateObservation } from "../ducks/observation"; import { setCommunityIDModalState } from "../ducks/community_id_modal"; import { updateSession } fr...
import { connect } from "react-redux"; import CommunityIdentification from "../components/community_identification"; import { addID } from "../ducks/observation"; import { updateObservation } from "../ducks/observation"; import { setCommunityIDModalState } from "../ducks/community_id_modal"; import { updateSession } fr...
Make sure compare link in com. ID shows same places as activity item links.
Make sure compare link in com. ID shows same places as activity item links.
JSX
mit
inaturalist/inaturalist,inaturalist/inaturalist,inaturalist/inaturalist,pleary/inaturalist,pleary/inaturalist,inaturalist/inaturalist,pleary/inaturalist,pleary/inaturalist,pleary/inaturalist,inaturalist/inaturalist
--- +++ @@ -14,7 +14,7 @@ function mapStateToProps( state ) { return { - observation: state.observation, + observation: Object.assign( {}, state.observation, { places: state.observationPlaces } ), config: state.config }; }
eefd5b6030f02476269658647d8133eec6d98c26
js/components/tweetList.jsx
js/components/tweetList.jsx
/** @jsx React.DOM */ var TweetList = React.createClass({ getInitialState: function() { return { data: { tweets: [] } }; }, componentDidMount: function() { EventSystem.subscribe('input.text.change', this.updateList); }, updateList: function() { this.setState({ data:...
/** @jsx React.DOM */ var TweetList = React.createClass({ getInitialState: function() { return { data: { tweets: [] } }; }, componentDidMount: function() { EventSystem.subscribe('input.text.change', this.updateList); }, updateList: function() { this.setState({ data:...
Fix list render, only when data exists
Fix list render, only when data exists
JSX
mit
dburgos/tweet-splitter,dburgos/tweet-splitter
--- +++ @@ -23,13 +23,20 @@ }, render: function() { - return <ul className="tweets"> - { - data.tweets.map(function(tweet) { - return <li key={tweet.id}>{tweet.text}</li> - }) - } - </ul> + var data = this.state.data; + if (data) { + var hasTweets ...
070670137874422b0b917655c36ed435364cf34d
packages/nylas-dashboard/public/js/mini-account.jsx
packages/nylas-dashboard/public/js/mini-account.jsx
const React = window.React; class MiniAccount extends React.Component { calculateColor() { // in milliseconds const grayAfter = 10000; const elapsedTime = Date.now() - this.props.account.last_sync_completions[0]; let opacity = 0; if (elapsedTime < grayAfter) { opacity = 1.0 - elapsedTime /...
const React = window.React; class MiniAccount extends React.Component { calculateColor() { // in milliseconds const grayAfter = 1000 * 60 * 10; // 10 minutes const elapsedTime = Date.now() - this.props.account.last_sync_completions[0]; let opacity = 0; if (elapsedTime < grayAfter) { opacit...
Make the grayAfter time more appropriate for production, 10 mins
Make the grayAfter time more appropriate for production, 10 mins
JSX
mit
nylas/nylas-mail,nylas-mail-lives/nylas-mail,nylas/nylas-mail,nirmit/nylas-mail,simonft/nylas-mail,simonft/nylas-mail,nirmit/nylas-mail,nylas-mail-lives/nylas-mail,nylas/nylas-mail,simonft/nylas-mail,nylas-mail-lives/nylas-mail,nirmit/nylas-mail,simonft/nylas-mail,nylas-mail-lives/nylas-mail,nirmit/nylas-mail,nylas-mai...
--- +++ @@ -4,7 +4,7 @@ calculateColor() { // in milliseconds - const grayAfter = 10000; + const grayAfter = 1000 * 60 * 10; // 10 minutes const elapsedTime = Date.now() - this.props.account.last_sync_completions[0]; let opacity = 0; if (elapsedTime < grayAfter) {
7a88ce0d8014e4db61473c7c1e57d33f8d016dd7
Components/team.jsx
Components/team.jsx
import React from 'react'; var Team = React.createClass({ render : function () { if (typeof this.props.selectPlayers === 'undefined') { return null; } else { var playerLists; playerLists = this.props.selectPlayers.players.map(function(p) { return (<li>...
import React from 'react'; var position = { keepers : [], defenders : [], midfields : [], forwards : [] } var Team = React.createClass({ render : function () { if (typeof this.props.selectPlayers === 'undefined') { return null; } else { var f = _.chain(thi...
Test lodash to grouping players
Test lodash to grouping players
JSX
mit
ryanpark/FEPL,ryanpark/FEPL---React-App,ryanpark/FEPL,ryanpark/FEPL---React-App
--- +++ @@ -1,4 +1,11 @@ import React from 'react'; + +var position = { + keepers : [], + defenders : [], + midfields : [], + forwards : [] +} var Team = React.createClass({ render : function () { @@ -6,16 +13,38 @@ if (typeof this.props.selectPlayers === 'undefined') { return ...
cdbdeffd8b56046526a7b78822eb463aea1befb7
react-client/src/components/CurrentInfo.jsx
react-client/src/components/CurrentInfo.jsx
import React from 'react'; import Moment from 'react-moment'; import WeatherInfo from './WeatherInfo.jsx'; const CurrentInfo = (props) => ( <div className='current-info'> <h3> Current Information </h3> <hr className='divider'/> <p><span className='bold'>Current TripId: &ensp;</span>{props.trip._id}</p> ...
import React from 'react'; import Moment from 'react-moment'; import WeatherInfo from './WeatherInfo.jsx'; const CurrentInfo = (props) => ( <div className='current-info'> <h3> Current Information </h3> <hr className='divider'/> <p><span className='bold'>Current TripId: &ensp;</span>{props.trip._id}</p> ...
Add some static currency exchange info - need to implement live currency exchange component in the future
Add some static currency exchange info - need to implement live currency exchange component in the future
JSX
mit
kennyxcao/funtrip,ChocolateMafia/funtrip,kennyxcao/funtrip,ChocolateMafia/funtrip
--- +++ @@ -15,7 +15,7 @@ </div> <div className='currency-info'> - <p><span className='bold'>Currency Info :</span></p> + <p><span className='bold'>Currency Info: &ensp;</span> 1 USD = 0.85 Euro, 6.64 Yuan, 112.49 Yen, 58.16 Ruble</p> </div> </div> );
b7631639dfda02cbeac5aefd26fc4c045e4949f5
client-src/js/authenticated.jsx
client-src/js/authenticated.jsx
var React = require('react'); var Router = require('./modules/router'); var Route = Router.statics.Route; var Redirect = Router.statics.Redirect; var DefaultRoute = Router.statics.DefaultRoute; // Get all our statics and data require('./Includes'); // Prep the stores and actions var PlayerActions = require('./app/gam...
if(process.env.NODE_ENV !== 'development'){ require('./modules/immutable').Freezer.disable(); } var React = require('react'); var Router = require('./modules/router'); var Route = Router.statics.Route; var Redirect = Router.statics.Redirect; var DefaultRoute = Router.statics.DefaultRoute; // Get all our statics a...
Disable immutable freezing in non-dev
Disable immutable freezing in non-dev
JSX
mit
EnzoMartin/Minesweeper-React,EnzoMartin/Minesweeper-React
--- +++ @@ -1,3 +1,7 @@ +if(process.env.NODE_ENV !== 'development'){ + require('./modules/immutable').Freezer.disable(); +} + var React = require('react'); var Router = require('./modules/router'); var Route = Router.statics.Route;
c3e53eda833a5e73a658443a54df015738bd25e9
client/components/FriendList.jsx
client/components/FriendList.jsx
import React, { Component } from 'react'; import { Button, ListGroup, ListGroupItem, Col, Row, Image } from 'react-bootstrap'; const Friend = ({ username, avatar, profileLink }) => (<ListGroupItem className="list-item justify-content-center"> <Image width="50" height="50" src={avata...
import React, { Component } from 'react'; import { Button, ListGroup, ListGroupItem, Col, Row, Image } from 'react-bootstrap'; const Friend = ({ username, avatar, profileLink }) => (<ListGroupItem className="list-item justify-content-left"> <Image width="50" height="50" src={avatar}...
Align similar friend list items
Align similar friend list items
JSX
mit
novicasarenac/pathfinder,novicasarenac/pathfinder
--- +++ @@ -9,7 +9,7 @@ } from 'react-bootstrap'; const Friend = ({ username, avatar, profileLink }) => - (<ListGroupItem className="list-item justify-content-center"> + (<ListGroupItem className="list-item justify-content-left"> <Image width="50" height="50"
1df507b1eaeb94fbcfed227d54c7356955b50610
src/components/cover-image.jsx
src/components/cover-image.jsx
import { css } from 'glamor'; import PropTypes from 'prop-types'; import React from 'react'; import { ASPECT_RATIO_21_9_RELATIVE_HEIGHT, IMAGE_OVERLAY_TINT } from '../utils/presets'; const CoverImage = ({ alt, sizes, src, srcSet, ...props }) => ( <div {...css({ background: IMAGE_OVERLAY_TINT, heigh...
import { css } from 'glamor'; import PropTypes from 'prop-types'; import React from 'react'; import { ASPECT_RATIO_21_9_RELATIVE_HEIGHT, IMAGE_OVERLAY_TINT } from '../utils/presets'; const CoverImage = ({ sizes, src, srcSet, ...props }) => ( <div {...css({ background: IMAGE_OVERLAY_TINT, height: `$...
Remove meaningless img alt from cover images
Remove meaningless img alt from cover images
JSX
mit
simonyiszk/mvk-web,simonyiszk/mvk-web
--- +++ @@ -4,7 +4,7 @@ import { ASPECT_RATIO_21_9_RELATIVE_HEIGHT, IMAGE_OVERLAY_TINT } from '../utils/presets'; const CoverImage = ({ - alt, sizes, src, srcSet, ...props + sizes, src, srcSet, ...props }) => ( <div {...css({ @@ -17,7 +17,7 @@ {src != null && ( <div {...css({ height: '100%'...
1f4c8a3c1710c9df90a9f6d1ad23cc731a34f875
app/components/UserIsTyping.jsx
app/components/UserIsTyping.jsx
import React, { Component } from 'react' import PropTypes from '../lib/PropTypes' export default class UserIsTyping extends Component { static propTypes = { user: PropTypes.string.isRequired } state = { dots: '' } updateDots () { setTimeout(() => { const dots = (this.state.dots.length >= ...
import React, { Component } from 'react' import PropTypes from '../lib/PropTypes' export default class UserIsTyping extends Component { static propTypes = { user: PropTypes.string.isRequired } state = { dots: '' } updateDots () { setTimeout(() => { if (!this._stopDots) { const dot...
Stop dots when component is unmounted
Stop dots when component is unmounted
JSX
mit
quis/notify-public-research-prototype,quis/notify-public-research-prototype,quis/notify-public-research-prototype
--- +++ @@ -12,14 +12,20 @@ updateDots () { setTimeout(() => { - const dots = (this.state.dots.length >= 3) ? '' : this.state.dots + '.' - this.setState({ dots }) - this.updateDots() + if (!this._stopDots) { + const dots = (this.state.dots.length >= 3) ? '' : this.state.dots + '.'...
fb6f60f671882b7bae958eb4de57bef9d11e9417
app/views/Navbar/NavbarTabs.jsx
app/views/Navbar/NavbarTabs.jsx
import React from 'react'; import FlatButton from 'material-ui/FlatButton'; import ActionHome from 'material-ui/svg-icons/action/home'; const NavbarTabs = () => ( <div> <FlatButton label="Home" icon={<ActionHome />} /> <FlatButton label="Login" /> </div> ); export default NavbarTabs;
import React from 'react'; import FlatButton from 'material-ui/FlatButton'; import ActionHome from 'material-ui/svg-icons/action/home'; const styles = { button: { marginTop: '5px', }, }; const NavbarTabs = () => ( <div> <FlatButton style={styles.button} label="Home" icon={<ActionHome />} /...
Add small margin to top buttons
Add small margin to top buttons
JSX
mit
AlbertoALopez/polling,AlbertoALopez/polling
--- +++ @@ -2,10 +2,16 @@ import FlatButton from 'material-ui/FlatButton'; import ActionHome from 'material-ui/svg-icons/action/home'; +const styles = { + button: { + marginTop: '5px', + }, +}; + const NavbarTabs = () => ( <div> - <FlatButton label="Home" icon={<ActionHome />} /> - ...
2b58393097a30a8cdd8beef10c29b1be7087cf5b
src/components/Pages/Home/CardItem.jsx
src/components/Pages/Home/CardItem.jsx
import React from 'react'; import { Link,hashHistory } from 'react-router' import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card'; class CardItem extends React.Component { render() { const { title, description,images,host } = this.props.activity; return ( ...
import React from 'react'; import { Link,hashHistory } from 'react-router' import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card'; class CardItem extends React.Component { render() { const { title, description,images,host } = this.props.activity; let image =...
Fix HomePage data without default iamge would crash bug
Fix HomePage data without default iamge would crash bug
JSX
mit
joshua-meng/DinningShare,joshua-meng/DinningShare,joshua-meng/DinningShare
--- +++ @@ -6,14 +6,17 @@ render() { const { title, description,images,host } = this.props.activity; + let image = images ? images[0] : 'images/food/pie.png'; + let avatar = host.avatar || 'images/avatar/cook0.png'; + return ( <Card style={{boxShadow: '0 2px 4px rgb...
de036f8eb84e7e3ea21aebd8dc0c751a35c74e59
samples/msal-react-samples/react-router-sample/src/ui-components/SignOutButton.jsx
samples/msal-react-samples/react-router-sample/src/ui-components/SignOutButton.jsx
import { useState } from "react"; import { useMsal } from "@azure/msal-react"; import IconButton from '@material-ui/core/IconButton'; import AccountCircle from '@material-ui/icons/AccountCircle'; import MenuItem from '@material-ui/core/MenuItem'; import Menu from '@material-ui/core/Menu'; export const SignOutButton = ...
import { useState } from "react"; import { useMsal } from "@azure/msal-react"; import IconButton from '@material-ui/core/IconButton'; import AccountCircle from '@material-ui/icons/AccountCircle'; import MenuItem from '@material-ui/core/MenuItem'; import Menu from '@material-ui/core/Menu'; export const SignOutButton = ...
Add logoutPopup to react sample
Add logoutPopup to react sample
JSX
mit
AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication...
--- +++ @@ -11,9 +11,14 @@ const [anchorEl, setAnchorEl] = useState(null); const open = Boolean(anchorEl); - const handleLogout = () => { + const handleLogout = (logoutType) => { setAnchorEl(null); - instance.logout(); + + if (logoutType === "popup") { + instance.lo...
6fab0279a11a0a7d8e584a4d364625880df3d644
src/components/chart.jsx
src/components/chart.jsx
// should it be a functional or class-based component? // --> FUNCTIONAL - because it takes props from its parent // and is not connected to state. import React from 'react'; import { Sparklines, SparklinesLine, SparklinesReferenceLine } from 'react-sparklines'; export default (props) => { return ( <td> <Spark...
// should it be a functional or class-based component? // --> FUNCTIONAL - because it takes props from its parent // and is not connected to state. import React from 'react'; import { Sparklines, SparklinesLine, SparklinesReferenceLine } from 'react-sparklines'; export default (props) => { const length = props.data...
Add average nums to graphs (JS, no lodash)
Add average nums to graphs (JS, no lodash)
JSX
mit
Alex-Windle/redux_weather_API,Alex-Windle/redux_weather_API
--- +++ @@ -5,12 +5,19 @@ import { Sparklines, SparklinesLine, SparklinesReferenceLine } from 'react-sparklines'; export default (props) => { + const length = props.data.length; + const total = props.data.reduce(function(acc, i) { + return acc + i; + }, 0); + const average = (total/length).toFixed(2); + r...
18ce2c8c39b8dbf0e4125d2bdbf0eb878f6b68bb
client/app/main.jsx
client/app/main.jsx
import React from 'react'; import ReactDom from 'react-dom'; import Form from './components/form.jsx'; let appContainer = document.querySelector('#app'); ReactDom.render(<Form title='My Cool Form' />, appContainer);
import React from 'react'; import ReactDom from 'react-dom'; import Form from './components/form.jsx'; import Cypher from './utils/cypher'; let appContainer = document.querySelector('#app'); let formTitle = Cypher.cypher('My Cool Form'); ReactDom.render(<Form title={formTitle} />, appContainer);
Use util module on the form's title
Use util module on the form's title
JSX
mit
santiaro90/javascript-builds,santiaro90/javascript-builds
--- +++ @@ -3,5 +3,9 @@ import Form from './components/form.jsx'; +import Cypher from './utils/cypher'; + let appContainer = document.querySelector('#app'); -ReactDom.render(<Form title='My Cool Form' />, appContainer); + +let formTitle = Cypher.cypher('My Cool Form'); +ReactDom.render(<Form title={formTitle} /...
2ffe8dcafd3b0c47ccf2da25bff27f9913fc678a
ui/src/test_auth_container.jsx
ui/src/test_auth_container.jsx
/* @flow weak */ import React from 'react'; import AuthContainer from './auth_container.jsx'; import sinon from 'sinon'; // Testing only, used to inject an auth context. export default React.createClass({ displayName: 'TestAuthContainer', childContextTypes: AuthContainer.childContextTypes, getChildContext() {...
/* @flow weak */ import React from 'react'; import AuthContainer from './auth_container.jsx'; import sinon from 'sinon'; // Testing only, used to inject an auth context. export default React.createClass({ displayName: 'TestAuthContainer', propTypes: { children: React.PropTypes.element }, childContextTyp...
Allow children to be optional in TestAuthContainer, working around Flow warning
Allow children to be optional in TestAuthContainer, working around Flow warning
JSX
mit
mit-teaching-systems-lab/threeflows,mit-teaching-systems-lab/threeflows,kesiena115/threeflows,kesiena115/threeflows,kesiena115/threeflows,mit-teaching-systems-lab/threeflows,mit-teaching-systems-lab/threeflows
--- +++ @@ -7,6 +7,10 @@ // Testing only, used to inject an auth context. export default React.createClass({ displayName: 'TestAuthContainer', + + propTypes: { + children: React.PropTypes.element + }, childContextTypes: AuthContainer.childContextTypes, @@ -22,6 +26,6 @@ }, render() { - ret...
2093c8c17fb58d6e3476540f10385e7e3f4c986a
src/client/index.jsx
src/client/index.jsx
import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store'; import { loadState, saveState } from './store/localStorage'; const preloadedState = loadState(); const store = configu...
import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store'; import { loadState, saveState } from './store/localStorage'; const isProd = process.env.NODE_ENV !== "production" cons...
Disable loading state if not in production env
Disable loading state if not in production env
JSX
mit
AdamSalma/Lurka,AdamSalma/Lurka
--- +++ @@ -7,7 +7,8 @@ import configureStore from './store'; import { loadState, saveState } from './store/localStorage'; -const preloadedState = loadState(); +const isProd = process.env.NODE_ENV !== "production" +const preloadedState = isProd ? loadState() : undefined; const store = configureStore(preloadedSta...
e9192d11186bf68c2f1813542e126dd308c95abb
imports/ui/containers/SearchEventsResultsContainer.jsx
imports/ui/containers/SearchEventsResultsContainer.jsx
import { Meteor } from 'meteor/meteor'; import { createContainer } from 'meteor/react-meteor-data'; import { _ } from 'meteor/underscore'; import { Events } from '../../api/events/events.js'; import SearchEventsResults from '../components/SearchEventsResults.jsx'; export default SearchEventsResultsContainer = createCo...
import { Meteor } from 'meteor/meteor'; import { createContainer } from 'meteor/react-meteor-data'; import { _ } from 'meteor/underscore'; import { Events } from '../../api/events/events.js'; import SearchEventsResults from '../components/SearchEventsResults.jsx'; export default SearchEventsResultsContainer = createCo...
Fix events locality filters that broke with react-router array tweaks.
Fix events locality filters that broke with react-router array tweaks.
JSX
mit
howlround/worldtheatremap,howlround/worldtheatremap
--- +++ @@ -10,9 +10,18 @@ let results = []; if (!_.isEmpty(query)) { - const eventsSubscribe = Meteor.subscribe('events.search', query); + // Use an internal query so nothing strange gets passed straight through + let privateQuery = {}; + + if (query.locality && query.locality instanceof Array) {...
e0b490c0c6b38a1802491dc894d14c71953155f7
js/ui/TreeView.jsx
js/ui/TreeView.jsx
import React, {PropTypes} from 'react'; export const TreeView = React.createClass({ propTypes: { collapsed: PropTypes.bool, defaultCollapsed: PropTypes.bool, nodeLabel: PropTypes.node.isRequired, className: PropTypes.string, itemClassName: PropTypes.string, }, getIn...
import React, {PropTypes} from 'react'; export const TreeView = React.createClass({ propTypes: { collapsed: PropTypes.bool, defaultCollapsed: PropTypes.bool, nodeLabel: PropTypes.node.isRequired, className: PropTypes.string, itemClassName: PropTypes.string, }, getIn...
Make all working again. Meteor version updated
Make all working again. Meteor version updated
JSX
mit
krizka/tools,krizka/tools
--- +++ @@ -28,7 +28,7 @@ nodeLabel, children, defaultCollapsed, - ...rest, + ...rest } = this.props; let arrowClassName = 'tree-view_arrow';
8f8394d1a3f729f251d926c450426083e811a546
src/app/components/Post/ContentHtml.jsx
src/app/components/Post/ContentHtml.jsx
/* eslint-disable react/no-danger, no-undef */ import React from 'react'; import cheerio from 'cheerio'; import CaptureLinks from './CaptureLinks'; import * as libs from '../../libs'; const ContentHtml = ({ html, linksColor }) => { const $ = cheerio.load(html); $('a').attr('style', `color: ${libs.darkenColor(links...
/* eslint-disable react/no-danger, no-undef */ import React from 'react'; import cheerio from 'cheerio'; import CaptureLinks from './CaptureLinks'; import * as libs from '../../libs'; const ContentHtml = ({ html, linksColor }) => { const $ = cheerio.load(html); $('a').attr('style', `color: ${libs.darkenColor(links...
Change srcset (responsive) as well.
Change srcset (responsive) as well.
JSX
mit
worona/starter-app-theme-worona
--- +++ @@ -9,8 +9,11 @@ $('a').attr('style', `color: ${libs.darkenColor(linksColor)};`).attr('target', '_blank'); $('img').each((i, e) => { const src = $(e).attr('src'); - if (src.startsWith('http://') && window.location.protocol === 'https:') + const srcset = $(e).attr('srcset'); + if (src.start...
a4e3d0a09df2b3aa4e4d7166ac07d1f3505ddcc0
js/containers/App.jsx
js/containers/App.jsx
import React, { Component } from 'react'; import { provide } from 'react-redux'; import Router, { Redirect, Route } from 'react-router'; import { history } from 'react-router/lib/BrowserHistory'; import { applyMiddleware, combineReducers, createStore } from 'redux'; import thunk from 'redux-thunk'; import { TodoApp } ...
import React, { Component } from 'react'; import { provide } from 'react-redux'; import Router, { Redirect, Route } from 'react-router'; import { history } from 'react-router/lib/BrowserHistory'; import { applyMiddleware, combineReducers, compose, createStore } from 'redux'; import thunk from 'redux-thunk'; import { T...
Use composition when defining 'custom' createStore method
Use composition when defining 'custom' createStore method
JSX
mit
tough-griff/redux-react-router-todomvc,tough-griff/redux-react-router-todomvc
--- +++ @@ -2,15 +2,18 @@ import { provide } from 'react-redux'; import Router, { Redirect, Route } from 'react-router'; import { history } from 'react-router/lib/BrowserHistory'; -import { applyMiddleware, combineReducers, createStore } from 'redux'; +import { applyMiddleware, combineReducers, compose, createStor...
d2cc908db51a5494e019e8d9ac6d7d0045caff0c
src/components/Breadcrumb.jsx
src/components/Breadcrumb.jsx
import styles from '../styles/breadcrumb' import React from 'react' import { translate } from '../plugins/preact-polyglot' import { withRouter } from 'react-router' const Breadcrumb = ({ t, router }) => { // extract elements from the pathNames let path = router.location.pathname.match(/\/([^/]*)(.*)/) // rootN...
import styles from '../styles/breadcrumb' import React from 'react' import { translate } from '../plugins/preact-polyglot' import { withRouter } from 'react-router' const Breadcrumb = ({ t, router }) => { // extract elements from the pathNames let path = router.location.pathname.match(/\/([^/]*)(.*)/) // rootN...
Comment breadcrumb elements not used yet
[lint] Comment breadcrumb elements not used yet
JSX
agpl-3.0
enguerran/cozy-files-v3,enguerran/cozy-drive,cozy/cozy-files-v3,y-lohse/cozy-drive,goldoraf/cozy-drive,enguerran/cozy-drive,y-lohse/cozy-drive,enguerran/cozy-files-v3,y-lohse/cozy-files-v3,cozy/cozy-files-v3,y-lohse/cozy-files-v3,nono/cozy-files-v3,nono/cozy-files-v3,y-lohse/cozy-drive,y-lohse/cozy-files-v3,nono/cozy-f...
--- +++ @@ -12,8 +12,8 @@ const rootName = path[1] // the remainder is the file path - const filePath = path[2] - const filePathElements = path[2].replace(/\/([^/]*)/, '$1').split('/') + // const filePath = path[2] + // const filePathElements = path[2].replace(/\/([^/]*)/, '$1').split('/') return ( ...
0dc3bf7134a54f6cc9d50864b331ed24273ac81b
src/components/Manage/index.jsx
src/components/Manage/index.jsx
/* @flow */ import React from 'react'; import Relay, {createContainer} from 'react-relay'; type Friend = { id: number, name: string, email: string, wish: string, }; type Props = { app: { group: { title: string, description: string, friends: Array<Friend>, }, }, }; const Manage ...
/* @flow */ import React from 'react'; import Relay, {createContainer} from 'react-relay'; type Friend = { id: number, name: string, email: string, wish: string, hash: string, }; type Props = { app: { group: { title: string, description: string, friends: Array<Friend>, }, }, }...
Add hash to manage component
Add hash to manage component
JSX
mit
WhosMySanta/app,WhosMySanta/whosmysanta,WhosMySanta/app
--- +++ @@ -8,6 +8,7 @@ name: string, email: string, wish: string, + hash: string, }; type Props = { @@ -31,11 +32,12 @@ <dt>Friends</dt> <dd> <ul> - {friends.map(({name, email, wish}: Friend, index) => ( + {friends.map(({name, email, wish, hash}: Friend, index) ...
8eaf97932d3c3201555776907f8e711d8ecd8b63
beavy/jsbeavy/views/HomeView.jsx
beavy/jsbeavy/views/HomeView.jsx
import React from 'react' import { FormattedMessage, FormattedHTMLMessage } from 'react-intl' export class HomeView extends React.Component { render () { return ( <div className='container text-center'> <img src='http://beavy.xyz/logos/logo.svg' alt='beavy logo' width='150' /> <h1> ...
import React from 'react' import { FormattedMessage, FormattedHTMLMessage } from 'react-intl' export class HomeView extends React.Component { render () { return ( <div className='container text-center'> <img src='http://beavy.xyz/logos/logo.svg' alt='beavy logo' width='150' /> <h1> ...
Fix method of supplying i18n value in react-intl
Fix method of supplying i18n value in react-intl
JSX
mpl-2.0
beavyHQ/beavy,beavyHQ/beavy,beavyHQ/beavy,beavyHQ/beavy
--- +++ @@ -17,7 +17,7 @@ tagname='p' id='hello-world-docs-link' defaultMessage={'Please take a look at the <a href="{link} target="_blank">documentation</a>.'} - link='https://beavyhq.gitbooks.io/beavy-documentation/content/' + values={{link: 'https://beavyhq.gitboo...
57ba33cdb75746baa04f8accae85bf5b997bfd4d
src/CodeEditor.jsx
src/CodeEditor.jsx
import React from "react/addons" var brace = require('brace'); var AceEditor = require('react-ace'); require('brace/mode/javascript') require('brace/theme/github') var $ = require('jquery') // needed for ajax const RaisedButton = require('material-ui/lib/raised-button'); export default React.createClass({ get...
import React from "react/addons" var brace = require('brace'); var AceEditor = require('react-ace'); require('brace/mode/javascript') require('brace/theme/github') var $ = require('jquery') // needed for ajax const RaisedButton = require('material-ui/lib/raised-button'); export default React.createClass({ get...
Add space between code, test and ready
Add space between code, test and ready
JSX
mit
MuSiika/euhack-2015,MuSiika/euhack-2015
--- +++ @@ -37,9 +37,13 @@ render: function() { return <div> - <AceEditor mode="javascript" value={this.state.source} onChange={this.code} theme="github" editorProps={{$blockScrolling: true}} /> - <RaisedButton onClick={this.script} primary={true} label="Test" /> - <RaisedButton onClick={this...
e8a8ed5d41283f875247e35423da80cebb219bfb
src/components/HistoryItem.jsx
src/components/HistoryItem.jsx
import React, {PropTypes} from "react"; import Moment from "moment"; class HistoryItem extends React.Component { constructor(props) { super(props); } render() { const info = this.props.info; const dateTime = Moment(info.lastVisitTime); let formattedTime = dateTime.format("...
import React, {PropTypes} from "react"; import Moment from "moment"; class HistoryItem extends React.Component { constructor(props) { super(props); } render() { const info = this.props.info; const dateTime = Moment(info.lastVisitTime); let formattedTime = dateTime.format("...
Add a comma to separate time, and date
Add a comma to separate time, and date
JSX
mit
MrSaints/historyx,MrSaints/historyx
--- +++ @@ -12,7 +12,11 @@ const dateTime = Moment(info.lastVisitTime); let formattedTime = dateTime.format("hh:mm:ss A"); if (this.props.stale) { - formattedTime = (<small className="text-muted history__date--stale" title="Last visited time">{dateTime.format("hh:mm A DD-MM-YYYY"...
a3b8a917aad284a5c34ad0c5ed64cdb373d050e3
src/containers/error-boundary.jsx
src/containers/error-boundary.jsx
import React from 'react'; import PropTypes from 'prop-types'; import platform from 'platform'; import BrowserModalComponent from '../components/browser-modal/browser-modal.jsx'; import CrashMessageComponent from '../components/crash-message/crash-message.jsx'; import log from '../lib/log.js'; import analytics from '.....
import React from 'react'; import PropTypes from 'prop-types'; import platform from 'platform'; import BrowserModalComponent from '../components/browser-modal/browser-modal.jsx'; import CrashMessageComponent from '../components/crash-message/crash-message.jsx'; import log from '../lib/log.js'; import analytics from '.....
Remove the redundant error line
Remove the redundant error line The error message is included in the first line of the stack
JSX
bsd-3-clause
LLK/scratch-gui,LLK/scratch-gui,cwillisf/scratch-gui,cwillisf/scratch-gui,cwillisf/scratch-gui
--- +++ @@ -17,7 +17,7 @@ componentDidCatch (error, info) { // Display fallback UI this.setState({hasError: true}); - log.error(`Unhandled Error: ${error}\n${error.stack}\nComponent stack: ${info.componentStack}`); + log.error(`Unhandled Error: ${error.stack}\nComponent stack: ${i...
2467c019345daf0fd6e1a46659729d27718ca75b
app/Resources/client/jsx/organism/details/appendTraits.jsx
app/Resources/client/jsx/organism/details/appendTraits.jsx
/** * Created by s216121 on 14.03.17. */ function appendTraitEntries(domElement, traitEntries, traitFormat){ $.ajax({ url: Routing.generate('api_details_trait_entries', {'dbversion': dbversion}), data: { "trait_entry_ids": traitEntries, "trait_format": traitFormat ...
/** * Created by s216121 on 14.03.17. */ function appendTraitEntries(domElement, traitEntries, traitFormat){ $.ajax({ url: Routing.generate('api_details_trait_entries', {'dbversion': dbversion}), data: { "trait_entry_ids": traitEntries, "trait_format": traitFormat ...
Change GET to POST in ajax call
Change GET to POST in ajax call
JSX
mit
molbiodiv/fennec,molbiodiv/fennec,molbiodiv/fennec,molbiodiv/fennec,molbiodiv/fennec
--- +++ @@ -9,7 +9,7 @@ "trait_entry_ids": traitEntries, "trait_format": traitFormat }, - method: "GET", + method: "POST", success: function(result){ $.each(result, function (key, value) { var realValue = value.valueName;
2f35c71bbf6108bfad984c78b0a29b4b3d1aee53
src/components/Footer.jsx
src/components/Footer.jsx
import React from 'react'; import { Link } from 'react-router'; import Icon from './Icons'; import iconPaths from '../data/iconPaths'; export default function Footer() { return ( <div className="block footer"> <div className="wrap"> <div className="footer-nav"> <Link to="/">Home</Link> ...
import React from 'react'; import { Link } from 'react-router'; import Icon from './Icons'; import iconPaths from '../data/iconPaths'; export default function Footer() { return ( <div className="block footer"> <div className="wrap"> <nav className="nav"> <Link to="/">Home</Link> ...
Add nav class to footer nav
Add nav class to footer nav
JSX
mit
emyarod/afw,emyarod/afw
--- +++ @@ -7,7 +7,7 @@ return ( <div className="block footer"> <div className="wrap"> - <div className="footer-nav"> + <nav className="nav"> <Link to="/">Home</Link> <Link to="/portfolio">Portfolio</Link> <Link to="/contact">Contact</Link>
b573aaa76533bb83f8a5aee90c0c8b897913ebc3
src/containers/TrashToolbar.jsx
src/containers/TrashToolbar.jsx
import styles from '../styles/toolbar' import React from 'react' import { connect } from 'react-redux' import { translate } from '../lib/I18n' import Menu, { MenuButton, Item } from 'react-bosonic/lib/Menu' import { showSelectionBar } from '../actions' import { mustShowSelectionBar } from '../reducers' const TrashT...
import styles from '../styles/toolbar' import React from 'react' import { connect } from 'react-redux' import { translate } from '../lib/I18n' import Menu, { MenuButton, Item } from 'react-bosonic/lib/Menu' import { showSelectionBar } from '../actions' import { mustShowSelectionBar } from '../reducers' const TrashT...
Remove unused delete all button from trash view
[fix] Remove unused delete all button from trash view
JSX
agpl-3.0
y-lohse/cozy-drive,enguerran/cozy-files-v3,nono/cozy-files-v3,enguerran/cozy-files-v3,goldoraf/cozy-drive,enguerran/cozy-drive,y-lohse/cozy-files-v3,y-lohse/cozy-drive,y-lohse/cozy-files-v3,y-lohse/cozy-files-v3,goldoraf/cozy-drive,goldoraf/cozy-drive,enguerran/cozy-drive,nono/cozy-files-v3,enguerran/cozy-files-v3,gold...
--- +++ @@ -20,14 +20,6 @@ <span className='coz-hidden'>{ t('toolbar.item_more') }</span> </button> <Menu className={styles['fil-toolbar-menu']}> - <Item> - <a - className={styles['fil-action-delete']} - > - {t('toolbar.delete_all')} - </a...
6df3ddeee82b58ea89b773c513dcdc9b75a41f02
app/js/routes.jsx
app/js/routes.jsx
'use strict'; import React from 'react'; import createHashHistory from 'history/lib/createHashHistory'; import {Router, Route, IndexRoute} from 'react-router'; import Layout from '../components/ui/lfb-main-layout/index.jsx'; import Home from '../components/pages/home.jsx'; import About from '../components/pages/about...
'use strict'; import React from 'react'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import {Router, Route, IndexRoute} from 'react-router'; import Layout from '../components/ui/lfb-main-layout/index.jsx'; import Home from '../components/pages/home.jsx'; import About from '../components/pages...
Change router to use cleaner URLs
Change router to use cleaner URLs
JSX
apache-2.0
LittleFurryBastards/report-it,LittleFurryBastards/report-it
--- +++ @@ -1,19 +1,15 @@ 'use strict'; import React from 'react'; -import createHashHistory from 'history/lib/createHashHistory'; +import createBrowserHistory from 'history/lib/createBrowserHistory'; import {Router, Route, IndexRoute} from 'react-router'; import Layout from '../components/ui/lfb-main-layout/...
6d485f951f941e59666cc4f22aea27fcbcc4b7e7
src/index.jsx
src/index.jsx
import React from 'react'; import ReactDOM from 'react-dom'; import appFactory from './components/app.jsx'; import todoListFactory from './components/todo-list.jsx'; const TodoList = todoListFactory(); const App = appFactory(TodoList); ReactDOM.render(<App />, document.getElementById('root'));
import React from 'react'; import ReactDOM from 'react-dom'; import App from '../tests/acceptance/app.setup.js'; ReactDOM.render(<App />, document.getElementById('root'));
Remove app setup duplication between tests and demo
Remove app setup duplication between tests and demo
JSX
mit
NiGhTTraX/react-test-buffet,NiGhTTraX/react-test-buffet,NiGhTTraX/react-test-buffet
--- +++ @@ -1,10 +1,6 @@ import React from 'react'; import ReactDOM from 'react-dom'; -import appFactory from './components/app.jsx'; -import todoListFactory from './components/todo-list.jsx'; - -const TodoList = todoListFactory(); -const App = appFactory(TodoList); +import App from '../tests/acceptance/app.setup.j...
76af7dbb69ae958ac5ce6743f0a83c893ee3190b
src/mb/components/AppHeader.jsx
src/mb/components/AppHeader.jsx
import React from 'react'; export default class AppHeader extends React.Component { constructor(props) { super(props); this.state = { translucent: false }; } componentDidMount() { $(window).on('scroll', () => { this.setState({ translucent: document.body.scrollTop > 5 })...
import cn from 'classnames'; import React from 'react'; export default class AppHeader extends React.PureComponent { constructor(props) { super(props); this.state = { translucent: false }; } componentDidMount() { $(window).on('scroll', () => { const translucent = document.body.scrol...
Use classnames to modify classname
Use classnames to modify classname
JSX
mit
NJU-SAP/movie-board,MagicCube/movie-board,MagicCube/movie-board,NJU-SAP/movie-board,MagicCube/movie-board
--- +++ @@ -1,6 +1,8 @@ + +import cn from 'classnames'; import React from 'react'; -export default class AppHeader extends React.Component { +export default class AppHeader extends React.PureComponent { constructor(props) { super(props); this.state = { @@ -10,15 +12,19 @@ componentDidMount() { ...
e992c9c5f12f2375221144cfa000c891ce6732b8
lib/src/_shared/WithUtils.jsx
lib/src/_shared/WithUtils.jsx
import React from 'react'; import PropTypes from 'prop-types'; import { MuiPickersContextConsumer } from '../utils/MuiPickersUtilsProvider'; const WithUtils = () => (Component) => { const withUtils = ({ pickerRef, ...props }) => ( <MuiPickersContextConsumer> {utils => <Component ref={pickerRef} utils={util...
import React from 'react'; import PropTypes from 'prop-types'; import { MuiPickersContextConsumer } from '../utils/MuiPickersUtilsProvider'; const WithUtils = () => (Component) => { const withUtils = props => ( <MuiPickersContextConsumer> {utils => <Component utils={utils} {...props} />} </MuiPickersCo...
Remove unused pickerRef prop forwarding
Remove unused pickerRef prop forwarding
JSX
mit
oliviertassinari/material-ui,mui-org/material-ui,mui-org/material-ui,dmtrKovalenko/material-ui-pickers,mbrookes/material-ui,rscnt/material-ui,mui-org/material-ui,callemall/material-ui,callemall/material-ui,mbrookes/material-ui,rscnt/material-ui,oliviertassinari/material-ui,dmtrKovalenko/material-ui-pickers,oliviertassi...
--- +++ @@ -3,9 +3,9 @@ import { MuiPickersContextConsumer } from '../utils/MuiPickersUtilsProvider'; const WithUtils = () => (Component) => { - const withUtils = ({ pickerRef, ...props }) => ( + const withUtils = props => ( <MuiPickersContextConsumer> - {utils => <Component ref={pickerRef} utils={uti...
0431d3b975bb863adb0ae3832c6d7f8da13136be
client/src/HouseInventoryList.jsx
client/src/HouseInventoryList.jsx
import HouseInventoryListItem from './HouseInventoryListItem.jsx'; var HouseInventoryList = (props) => { return ( <div> {props.items.map((item, index) => <HouseInventoryListItem item = {item} key = {index} /> )} </div> ); }; export default HouseInventoryList;
import React from 'react'; import HouseInventoryListItem from './HouseInventoryListItem.jsx'; var HouseInventoryList = (props) => { return ( <div> {props.items.map((item, index) => <HouseInventoryListItem item = {item} key = {index} /> )} </div> ); }; export def...
Fix syntax error in this.state
Fix syntax error in this.state
JSX
mit
SentinelsOfMagic/SentinelsOfMagic
--- +++ @@ -1,3 +1,4 @@ +import React from 'react'; import HouseInventoryListItem from './HouseInventoryListItem.jsx'; var HouseInventoryList = (props) => {
5227da921abee2fc913ff87968d6738b1f139d0c
client/modules/core/components/header.jsx
client/modules/core/components/header.jsx
import React, { PropTypes } from 'react'; import { Arrow, Dropdown, DropdownMenu, Fixed, NavItem, Space, Toolbar } from 'rebass'; const Header = () => ( <Fixed top left right zIndex={1}> <Toolbar> <NavItem href="/" children="Home" /> <Space auto /> <NavItem href="/polls" children=...
import React, { PropTypes } from 'react'; import { Arrow, Dropdown, DropdownMenu, Fixed, NavItem, Space, Toolbar } from 'rebass'; const Header = () => ( <Fixed top left right zIndex={1}> <Toolbar> <NavItem href="/" children="Home" /> <Space auto /> <NavItem href="/polls" children=...
Remove First Poll link from Header
Remove First Poll link from Header
JSX
mit
thancock20/voting-app,thancock20/voting-app
--- +++ @@ -16,7 +16,6 @@ <Space auto /> <NavItem href="/polls" children="Polls" /> <NavItem href="/polls/new" children="New Poll" /> - <NavItem href="/polls/1" children="First Poll" /> </Toolbar> </Fixed> );
ce5f39fa6f71486827ed6a83011694bec80c505f
src/components/Item.jsx
src/components/Item.jsx
import React from 'react' const Item = React.createClass({ propTypes: { onClick: React.PropTypes.func.isRequired, name: React.PropTypes.string.isRequired, price: React.PropTypes.number.isRequired, stock: React.PropTypes.number.isRequired, image: React.PropTypes.string },...
import React from 'react' const Item = React.createClass({ propTypes: { onClick: React.PropTypes.func.isRequired, name: React.PropTypes.string.isRequired, price: React.PropTypes.number.isRequired, stock: React.PropTypes.number.isRequired, image: React.PropTypes.string },...
Change wave-effect color on item card
Change wave-effect color on item card
JSX
mit
nuxis/p0sX-client,nuxis/p0sX-client
--- +++ @@ -11,7 +11,7 @@ render: function () { const { onClick, name, price, image } = this.props return ( - <div className='item-card waves-effect waves-green z-depth-1 hoverable' onClick={onClick}> + <div className='item-card waves-effect z-depth-1 hoverable' onClick={o...
6470b44d5a4969655b1c6459ecfac80022cfe027
components/snackbar/Snackbar.jsx
components/snackbar/Snackbar.jsx
import React from 'react'; import ClassNames from 'classnames'; import Button from '../button'; import FontIcon from '../font_icon'; import Overlay from '../overlay'; import style from './style'; class Snackbar extends React.Component { static propTypes = { action: React.PropTypes.string, active: React.PropT...
import React from 'react'; import ClassNames from 'classnames'; import Button from '../button'; import FontIcon from '../font_icon'; import Overlay from '../overlay'; import style from './style'; class Snackbar extends React.Component { static propTypes = { action: React.PropTypes.string, active: React.PropT...
Change snackbar to fix issue where lingering timeouts would effect new activations
Change snackbar to fix issue where lingering timeouts would effect new activations
JSX
mit
jasonleibowitz/react-toolbox,rubenmoya/react-toolbox,rubenmoya/react-toolbox,react-toolbox/react-toolbox,showings/react-toolbox,react-toolbox/react-toolbox,soyjavi/react-toolbox,showings/react-toolbox,soyjavi/react-toolbox,KerenChandran/react-toolbox,rubenmoya/react-toolbox,jasonleibowitz/react-toolbox,KerenChandran/re...
--- +++ @@ -18,11 +18,24 @@ type: React.PropTypes.string }; - componentDidUpdate () { - if (this.props.active && this.props.timeout) { - setTimeout(() => { - this.props.onTimeout(); - }, this.props.timeout); + state = { + curTimeout: null + }; + + componentWillReceiveProps (nextPr...
3359b9c0ae3b31752ea3de3237e6b611bf0d26ae
src/components/recent-groups.jsx
src/components/recent-groups.jsx
import React from 'react' import UserName from './user-name' import {Link} from 'react-router' import {fromNowOrNow} from '../utils' const renderRecentGroup = recentGroup => { const updatedAgo = fromNowOrNow(parseInt(recentGroup.updatedAt)) return ( <li className="p-my-groups-link"> <Link to={`/${recentG...
import React from 'react' import UserName from './user-name' import {Link} from 'react-router' import {fromNowOrNow} from '../utils' const renderRecentGroup = recentGroup => { const updatedAgo = fromNowOrNow(parseInt(recentGroup.updatedAt)) return ( <li className="p-my-groups-link" key={recentGroup.id}> ...
Add key prop to recent groups list
Add key prop to recent groups list
JSX
mit
FreeFeed/freefeed-react-client,davidmz/freefeed-react-client,clbn/freefeed-gamma,ujenjt/freefeed-react-client,FreeFeed/freefeed-react-client,davidmz/freefeed-react-client,davidmz/freefeed-react-client,ujenjt/freefeed-react-client,clbn/freefeed-gamma,FreeFeed/freefeed-html-react,kadmil/freefeed-react-client,ujenjt/freef...
--- +++ @@ -6,7 +6,7 @@ const renderRecentGroup = recentGroup => { const updatedAgo = fromNowOrNow(parseInt(recentGroup.updatedAt)) return ( - <li className="p-my-groups-link"> + <li className="p-my-groups-link" key={recentGroup.id}> <Link to={`/${recentGroup.username}`}>{recentGroup.screenName}</...
53c845bc02b0a177eb18332db3cb6684c5321e14
src/modules/Navigation/index.jsx
src/modules/Navigation/index.jsx
import React, {Component, PropTypes} from "react" import cx from "classnames" import Icon from "../Icon" export default class Navigation extends Component { static displayName = "Navigation" static contextTypes = { file: PropTypes.object, i18n: PropTypes.object, } static items = [ { url: ...
import React, {Component, PropTypes} from "react" import cx from "classnames" import Icon from "../Icon" export default class Navigation extends Component { static displayName = "Navigation" static contextTypes = { file: PropTypes.object, i18n: PropTypes.object, } render() { const currentPage =...
Use navigation from i18n file
Use navigation from i18n file
JSX
mit
skinnyfoetusboy/putaindecode.fr,pdoreau/putaindecode.fr,pdoreau/putaindecode.fr,neemzy/putaindecode.fr,neemzy/putaindecode.fr,pdoreau/putaindecode.fr,skinnyfoetusboy/putaindecode.fr,neemzy/putaindecode.fr,skinnyfoetusboy/putaindecode.fr
--- +++ @@ -12,41 +12,13 @@ i18n: PropTypes.object, } - static items = [ - { - url: "posts", - name: "Articles", - icon: "icons/bookmark.svg", - }, - { - url: "c-est-quoi-putaindecode", - name: "Readme", - icon: "icons/text-file.svg", - }, - { - url: "posts...
35f994c81d45d16229395d5b07792726fbf769e2
client/components/dashboard/forms/addTask.jsx
client/components/dashboard/forms/addTask.jsx
import React, { Component } from 'react'; import { FormControl, FormGroup, ControlLabel, Button } from 'react-bootstrap' export default class AddTask extends Component { constructor(props) { super(props); } handleSubmit(e) { e.preventDefault(); //console.log(this.input.value) this.props.taskData(...
import React, { Component } from 'react'; import { FormControl, FormGroup, ControlLabel, Button } from 'react-bootstrap' export default class AddTask extends Component { constructor(props) { super(props); } handleSubmit(e) { e.preventDefault(); //console.log(this.input.value) this.props.taskData(...
Add new fields in form
Add new fields in form
JSX
mit
CrewBuilder/crew-builder,CrewBuilder/crew-builder
--- +++ @@ -17,7 +17,12 @@ <div> <form onSubmit={this.handleSubmit.bind(this)}> <FormGroup> - <FormControl type="text" placeholder="Add a new Task" inputRef={ref => this.input = ref}/> + <FormControl type="text" placeholder="Add a new Task" inputRef={ref => this.input ...
2dc3369584fdcf40b2594fe05f0f38d8a8614e90
src/jsx/components/ProjectTile.jsx
src/jsx/components/ProjectTile.jsx
import React, { PropTypes } from 'react'; import { Link } from 'react-router'; export default function ProjectTile(props) { return ( <Link to={`/projects/${props.slug}`} className="project-tile grid__col grid__col--1-of-2"> <h1 className="project-tile__title">{props.name}</h1> <img className="project...
import React, { PropTypes } from 'react'; import { Link } from 'react-router'; export default function ProjectTile(props) { return ( <div className="project-tile grid__col grid__col--1-of-2"> <Link to={`/projects/${props.slug}`}> <h1 className="project__title">{props.name}</h1> <img classNa...
Add year and tags below project tiles
Add year and tags below project tiles
JSX
mit
vocksel/my-website,vocksel/my-website,VoxelDavid/voxeldavid-website,VoxelDavid/voxeldavid-website
--- +++ @@ -3,10 +3,16 @@ export default function ProjectTile(props) { return ( - <Link to={`/projects/${props.slug}`} className="project-tile grid__col grid__col--1-of-2"> - <h1 className="project-tile__title">{props.name}</h1> - <img className="project-tile__image" src={props.images[0]} /> - <...
f4fd6dfd9031ff720ccb8f9309747ef10db4c1cd
src/components/number-input.jsx
src/components/number-input.jsx
// @flow import {h, Component} from 'preact' import Input from 'react-toolbox/components/input' export class NumberInput extends Component { ref: ?any props: any setRef = (ref: ?any) => { this.ref = ref } onChange = (value: string) => { if (this.props.onChange) { if (this.ref) { const...
// @flow import {h, Component} from 'preact' import Textfield from 'preact-material-components/Textfield/Textfield' export class NumberInput extends Component { ref: ?any props: any setRef = (ref: ?any) => { this.ref = ref } onChange = (value: string) => { if (this.props.onChange) { if (this....
Implement number input in MDC
Implement number input in MDC
JSX
mit
Holi0317/bridge-calc,Holi0317/bridge-calc,Holi0317/bridge-calc
--- +++ @@ -1,6 +1,6 @@ // @flow import {h, Component} from 'preact' -import Input from 'react-toolbox/components/input' +import Textfield from 'preact-material-components/Textfield/Textfield' export class NumberInput extends Component { ref: ?any @@ -23,6 +23,6 @@ } render() { - return <Input {......
e5eab8d080f738074d1e89b295c93c4bccbc3c05
src/read/component/progressbar.jsx
src/read/component/progressbar.jsx
console.log( "==== simpread read component: ProcessBar ====" ) import Progress from 'progress'; const options = { strokeWidth: 4, easing : "easeInOut", duration : 1000, trailColor : "#fff", trailWidth : 0, svgStyle : { width : "100%", height : "100%", display: ...
console.log( "==== simpread read component: ProcessBar ====" ) import Progress from 'progress'; const options = { strokeWidth: 4, easing : "easeInOut", duration : 1000, trailColor : "#fff", trailWidth : 0, svgStyle : { width : "100%", height : "100%", display: ...
Fix document scroll off not working bug.
Fix document scroll off not working bug.
JSX
mit
ksky521/simpread,ksky521/simpread
--- +++ @@ -33,12 +33,12 @@ componentDidMount() { setTimeout( ()=>{ - $( document ).on( "scroll", ()=>this.scrollEventHandle() ); + $( document ).on( "scroll", ()=>this.scrollEventHandle() ); }, 1000 ); } componentWillUnmount() { - $( docum...
42ce4afe7299e57330dfebe531729358c62c61bb
client/app/Components/Main.jsx
client/app/Components/Main.jsx
import React from 'react'; import Menu from './Menu.jsx'; import Session from './Session.jsx' const Main = (props) => { // console.log(props); return ( <div> <h2>I am the Main component!</h2> {/* <button className="add-comment" onClick={() => props.addComment('123', '345', '678', 'first comment', ...
import React from 'react'; import Menu from './Menu.jsx'; import Session from './Session.jsx' const Main = (props) => { // console.log(props); return ( <div> <h2>I am the Main component!</h2> <Session showDetail={props.showDetail} hideDetail={props.hideDetail} detailV...
Move add comment button to modal part 2
Move add comment button to modal part 2
JSX
mit
Ada323/brainstorm,conundrum-inc/brainstorm,Ada323/brainstorm,conundrum-inc/brainstorm
--- +++ @@ -8,7 +8,6 @@ return ( <div> <h2>I am the Main component!</h2> - {/* <button className="add-comment" onClick={() => props.addComment('123', '345', '678', 'first comment', 'yassssss')}>Add Comment</button> */} <Session showDetail={props.showDetail} hideDetail={props...
db1370ede889afd6ca7fd3a7dec5710a237483cf
src/app/components/map-container.jsx
src/app/components/map-container.jsx
'use strict'; import React from 'react'; import LocationMap from './location-map.jsx'; import MapStore from '../../stores/map-store.jsx'; export default class MapContainer extends React.Component { constructor(props) { super(props); this.state = { locationMap: MapStore.getMap(this.props.params.mapId) }; }...
'use strict'; import React from 'react'; import LocationMap from './location-map.jsx'; import MapStore from '../../stores/map-store.jsx'; export default class MapContainer extends React.Component { constructor(props) { super(props); this.state = { locationMap: MapStore.getMap(this.props.params.mapId) }; }...
Add mapId to LocationMap props
Add mapId to LocationMap props
JSX
mit
jkrayer/poc-map-points,jkrayer/poc-map-points
--- +++ @@ -17,7 +17,10 @@ } render () { return ( - <LocationMap locationMap={this.state.locationMap} /> + <LocationMap + locationMap={this.state.locationMap} + mapId={this.props.params.mapId} + /> ); } }
b9cce67d827b99f176737b3dd203da4cb970d816
client/components/ArticleEdge.jsx
client/components/ArticleEdge.jsx
import React from 'react'; export default class ArticleEdge extends React.Component { constructor(props){ super(props); } render() { return ( <line x1={this.props.fromX} y1={this.props.fromY} x2={this.props.toX} y2={this.props.toY} style={{strokeWidth: 2, stroke: 'rgb(0,0,0)'}} /...
import React from 'react'; export default function ArticleEdge({ fromX, fromY, toX, toY }) { return ( <line x1={fromX} y1={fromY} x2={toX} y2={toY} style={{ strokeWidth: 2, stroke: 'rgb(0,0,0)' }} /> ); } ArticleEdge.propTypes = { fromX: React.PropTypes.number.isRequired, fromY: React.PropTypes.number.isR...
Add react proptypes to article edge
Add react proptypes to article edge
JSX
mit
j-oliver/react-example,j-oliver/react-example
--- +++ @@ -1,15 +1,14 @@ import React from 'react'; -export default class ArticleEdge extends React.Component { - constructor(props){ - super(props); - } +export default function ArticleEdge({ fromX, fromY, toX, toY }) { + return ( + <line x1={fromX} y1={fromY} x2={toX} y2={toY} style={{ strokeWidth: 2, ...
11b7ef4f43db895310124cac660f4198e60d7005
src/features/contextMenus/ContextMenuManager.jsx
src/features/contextMenus/ContextMenuManager.jsx
import React, {Component} from "react"; import {connect} from "react-redux"; import Portal from 'react-portal'; import ContextMenu from "./ContextMenu"; import TestContextMenu from "./TestContextMenu"; import PilotsListItemMenu from "features/pilots/PilotsList/PilotsListItemMenu"; import {selectContextMenu} from "./...
import React, {Component} from "react"; import {connect} from "react-redux"; import {Portal} from 'react-portal'; import ContextMenu from "./ContextMenu"; import TestContextMenu from "./TestContextMenu"; import PilotsListItemMenu from "features/pilots/PilotsList/PilotsListItemMenu"; import {selectContextMenu} from "...
Update React-Portal usage to match version 4.x
Update React-Portal usage to match version 4.x
JSX
mit
markerikson/project-minimek,markerikson/project-minimek
--- +++ @@ -1,6 +1,6 @@ import React, {Component} from "react"; import {connect} from "react-redux"; -import Portal from 'react-portal'; +import {Portal} from 'react-portal'; import ContextMenu from "./ContextMenu";
c9e5de356cb55e064b51bafd54105a5dfecc2d4d
client/src/components/CustomizationWidget/index.jsx
client/src/components/CustomizationWidget/index.jsx
import React, { Component } from 'react'; import StickerListContainer from '../../containers/StickerListContainer'; import ProductContainer from '../../containers/ProductContainer'; import PaginationContainer from '../../containers/PaginationContainer'; import './CustomizationWidget.scss'; const defaultProps = { }; c...
import React, { Component, PropTypes } from 'react'; import StickerListContainer from '../../containers/StickerListContainer'; import ProductContainer from '../../containers/ProductContainer'; import PaginationContainer from '../../containers/PaginationContainer'; import './CustomizationWidget.scss'; class Customizati...
Document PropTypes for <CustomizationWidget />
Document PropTypes for <CustomizationWidget />
JSX
mit
marlonbernardes/coding-stickers,marlonbernardes/coding-stickers
--- +++ @@ -1,11 +1,8 @@ -import React, { Component } from 'react'; +import React, { Component, PropTypes } from 'react'; import StickerListContainer from '../../containers/StickerListContainer'; import ProductContainer from '../../containers/ProductContainer'; import PaginationContainer from '../../containers/Pag...
c58044f46cd5cf309b78f1fca3d41a769de36328
src/mb/components/MoDetailRow.jsx
src/mb/components/MoDetailRow.jsx
import React from 'react'; import '../res/mo-detail-row.less'; const TYPES = { casts: '演员', directors: '导演', genres: '类型' }; /** * Represent a inline list in a detail row of MoJumbotron. */ export default recompose.pure(({ data, type }) => { let items = null; if (type === 'genres') { items = data...
import Immutable from 'immutable'; import React from 'react'; import '../res/mo-detail-row.less'; const TYPES = { casts: '演员', directors: '导演', genres: '类型' }; /** * Represent a inline list in a detail row of MoJumbotron. */ export default class MoDetailRow extends React.Component { static propTypes = { ...
Change to Component with customized shouldComponentUpdate()
Change to Component with customized shouldComponentUpdate()
JSX
mit
MagicCube/movie-board,MagicCube/movie-board,MagicCube/movie-board
--- +++ @@ -1,3 +1,4 @@ +import Immutable from 'immutable'; import React from 'react'; import '../res/mo-detail-row.less'; @@ -11,25 +12,34 @@ /** * Represent a inline list in a detail row of MoJumbotron. */ -export default recompose.pure(({ - data, - type -}) => { - let items = null; - if (type === 'gen...
d196bdb00c2280cccb0d01366b1871d3809df8c5
src/react-chayns-list/component/ListItem/ExpandableListHeader.jsx
src/react-chayns-list/component/ListItem/ExpandableListHeader.jsx
import React from 'react'; import PropTypes from 'prop-types'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faChevronRight } from '@fortawesome/free-solid-svg-icons/faChevronRight'; import ListItemHeader from './ListItemHeader'; const ExpandableListHeader = ({ title, subtitle, ...
import React from 'react'; import PropTypes from 'prop-types'; import ListItemHeader from './ListItemHeader'; const ExpandableListHeader = ({ title, subtitle, image, onClick, hideIndicator, right, }) => { return ( <ListItemHeader title={title} subtitle={subt...
Remove FA and use FontTS
:lipstick: Remove FA and use FontTS
JSX
mit
TobitSoftware/chayns-components,TobitSoftware/chayns-components,TobitSoftware/chayns-components
--- +++ @@ -1,8 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; -import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; -import { faChevronRight } from '@fortawesome/free-solid-svg-icons/faChevronRight'; import ListItemHeader from './ListItemHeader'; const ExpandableListHeade...
40aa6f4401426c09b7b59a3a3261d4ac9e38a28e
imports/ui/components/StudyPlan.jsx
imports/ui/components/StudyPlan.jsx
import React from 'react'; import SignIn from './SignIn' import TabbedContainer from './common/TabbedContainer'; import BasicTable from './common/BasicTable'; /*export default function StudyPlan() { return ( <div className="page-content"> <div className="container-fluid"> <div className="col-xxl-3 ...
import React from 'react'; import SignIn from './SignIn2' import TabbedContainer from './common/TabbedContainer'; import BasicTable from './common/BasicTable'; /*export default function StudyPlan() { return ( <div className="page-content"> <div className="container-fluid"> <div className="col-xxl-3...
ADD basic instructions on how to integrate logic with ui
ADD basic instructions on how to integrate logic with ui
JSX
mit
nus-mtp/nus-oracle,nus-mtp/nus-oracle
--- +++ @@ -1,5 +1,5 @@ import React from 'react'; -import SignIn from './SignIn' +import SignIn from './SignIn2' import TabbedContainer from './common/TabbedContainer'; import BasicTable from './common/BasicTable'; @@ -17,10 +17,18 @@ export default class StudyPlan extends React.Component { render() { - ...
424c337377128d9769e902119b7d4a7d977aa696
frontend/src/containers/Lobby.jsx
frontend/src/containers/Lobby.jsx
import React from 'react' import { connect } from 'react-redux' import * as lobby from '../actions/lobby' const Lobby = React.createClass({ logout(e) { e.preventDefault() this.props.dispatch(lobby.logoutQuery()) }, componentDidMount() { this.props.dispatch(lobby.gamesQuery()) ...
import React from 'react' import { connect } from 'react-redux' import NavigationBar from '../components/NavigationBar' import NavigationItem from '../components/NavigationItem' import * as lobby from '../actions/lobby' const Lobby = React.createClass({ logout(e) { e.preventDefault() this.props.di...
Refactor lobby container with newly created components
Refactor lobby container with newly created components
JSX
mit
14Plumes/Hexode,KtorZ/Hexode,KtorZ/Hexode,14Plumes/Hexode,14Plumes/Hexode,KtorZ/Hexode
--- +++ @@ -1,6 +1,8 @@ import React from 'react' import { connect } from 'react-redux' +import NavigationBar from '../components/NavigationBar' +import NavigationItem from '../components/NavigationItem' import * as lobby from '../actions/lobby' const Lobby = React.createClass({ @@ -23,8 +25,9 @@ } ...
7e9129c9c729d546de8cfb5af2c0541ff557d7d5
src/components/UserProfile/SightingList.jsx
src/components/UserProfile/SightingList.jsx
import React, { Component } from "react"; const SightingList = (props) => { console.log(props) return( <div> <h1>Sighting List</h1> {props.sightings.map(s=> <ul> <li> {s.scientificName} </li> <li> {s.count} </li> <li>...
import React, { Component } from 'react'; const SightingList = props => { console.log(props); return ( <div> <h1>Sighting List</h1> {props.sightings.map(s => ( <ul> <li>{s.scientificName}</li> <li> Count: {s.count} </li> <li> ...
Add lat, long labels to profile Sighting List for readability
Add lat, long labels to profile Sighting List for readability
JSX
mit
omarcodex/butterfly-pinner,omarcodex/butterfly-pinner
--- +++ @@ -1,25 +1,33 @@ -import React, { Component } from "react"; +import React, { Component } from 'react'; -const SightingList = (props) => { - console.log(props) - return( +const SightingList = props => { + console.log(props); + return ( <div> <h1>Sighting List</h1> - {props.sightings.map...
a5d8c73d91bc3866c6cec659ef5995ac9c1aff5b
src/app/views/collections/CollectionsController.jsx
src/app/views/collections/CollectionsController.jsx
import React, { Component } from 'react'; import { connect } from 'react-redux' import CollectionCreate from './create/CollectionCreate'; class Collections extends Component { constructor(props) { super(props); } render () { return ( <div> <div className="grid ...
import React, { Component } from 'react'; import { connect } from 'react-redux' import CollectionCreate from './create/CollectionCreate'; class Collections extends Component { constructor(props) { super(props); } handleCollectionCreateSuccess() { // route to collection details pane for ne...
Add temporary handle create success fucntions and corect heading text
Add temporary handle create success fucntions and corect heading text Former-commit-id: e142ba88d116a2a174ccbc018eeff6c8d2dc402c Former-commit-id: 4f6b7c7ee33d201adf4fc89ad4f5f3a0faf7948f Former-commit-id: 070edd6f65b587b2bd8d08edfdec67d99fb2eb8e
JSX
mit
ONSdigital/florence,ONSdigital/florence,ONSdigital/florence,ONSdigital/florence
--- +++ @@ -6,6 +6,11 @@ class Collections extends Component { constructor(props) { super(props); + } + + handleCollectionCreateSuccess() { + // route to collection details pane for new collection + // update list of collections } render () { @@ -17,8 +22,8 @@ ...
ce052c0cbab845df658d676f32e76869ee22159e
web/static/js/components/stage_change_info_voting.jsx
web/static/js/components/stage_change_info_voting.jsx
import React from "react" export default () => ( <div> The skinny on voting: <div className="ui basic segment"> <ul className="ui list"> <li>You have <strong>3</strong> votes</li> <li>You can apply multiple votes to a given idea</li> <li>Voting is blind. Totals will be revealed ...
import React from "react" export default () => ( <div> The skinny on voting: <div className="ui basic segment"> <ul className="ui list"> <li>You have <strong>3</strong> votes.</li> <li>You can apply <strong>multiple</strong> votes to a single idea.</li> <li>Voting is <strong>bli...
Update Voting stage intro copy
Update Voting stage intro copy
JSX
mit
stride-nyc/remote_retro,stride-nyc/remote_retro,stride-nyc/remote_retro
--- +++ @@ -5,9 +5,9 @@ The skinny on voting: <div className="ui basic segment"> <ul className="ui list"> - <li>You have <strong>3</strong> votes</li> - <li>You can apply multiple votes to a given idea</li> - <li>Voting is blind. Totals will be revealed when the facilitator advan...
41bd2bd39527d3592bd5fe75aba7513af50ee40c
src/components/todo.jsx
src/components/todo.jsx
import React, { Component, PropTypes } from 'react'; import classnames from 'classnames'; export default function todoFactory() { return class Todo extends Component { static propTypes = { title: PropTypes.string.isRequired, completed: PropTypes.bool.isRequired, toggleTodo: PropTypes.func.isRe...
import React, { Component, PropTypes } from 'react'; import classnames from 'classnames'; // TODO: fix completed strikethrough styles export default function todoFactory() { return class Todo extends Component { static propTypes = { title: PropTypes.string.isRequired, completed: PropTypes.bool.isRe...
Add TODO to fix styles
Add TODO to fix styles
JSX
mit
NiGhTTraX/react-test-buffet,NiGhTTraX/react-test-buffet,NiGhTTraX/react-test-buffet
--- +++ @@ -1,6 +1,8 @@ import React, { Component, PropTypes } from 'react'; import classnames from 'classnames'; + +// TODO: fix completed strikethrough styles export default function todoFactory() { return class Todo extends Component {
de655679900540a914b34158cb8bd51c8b6f89cb
client/plato/components/index.jsx
client/plato/components/index.jsx
import React from 'react'; import { convertFromRaw } from 'draft-js'; import { Editor, createEditorState } from 'medium-draft'; import request from 'superagent'; import { Row, Col, Navbar, NavItem } from 'react-materialize'; import Login from './Login.jsx'; import NoteList from './NoteList.jsx'; import SearchBar from ...
import React from 'react'; import { convertFromRaw } from 'draft-js'; import { Editor, createEditorState } from 'medium-draft'; import request from 'superagent'; import { Row, Col, Navbar, NavItem } from 'react-materialize'; import Login from './Login.jsx'; import NoteList from './NoteList.jsx'; import SearchBar from ...
Remove doubled up components from bad comp nesting
Remove doubled up components from bad comp nesting
JSX
mit
enchanted-spotlight/Plato,enchanted-spotlight/Plato
--- +++ @@ -23,7 +23,6 @@ <Login dispatcher={props.dispatcher} /> - <h2>Your Notes:</h2> <NoteList notes={savedNotes.notes} />
19ec6960df31a10794cd26dd242915308c07fe30
client-src/js/ui/game/items/Bomb.jsx
client-src/js/ui/game/items/Bomb.jsx
var React = require('react'); var ItemsActions = require('../../../app/game/ItemsActions'); var PlayerActions = require('../../../app/game/PlayerActions'); var Bomb = React.createClass({ propTypes: { item: React.PropTypes.object.isRequired }, gameOver: function(){ ItemsActions.revealAllItem...
var React = require('react'); var ItemsActions = require('../../../app/game/ItemsActions'); var PlayerActions = require('../../../app/game/PlayerActions'); var ItemsStore = require('../../../app/game/ItemsStore'); var Bomb = React.createClass({ propTypes: { item: React.PropTypes.object.isRequired }, ...
Fix right clicking on bomb - Hide bombs
Fix right clicking on bomb - Hide bombs
JSX
mit
EnzoMartin/Minesweeper-React,EnzoMartin/Minesweeper-React
--- +++ @@ -1,6 +1,7 @@ var React = require('react'); var ItemsActions = require('../../../app/game/ItemsActions'); var PlayerActions = require('../../../app/game/PlayerActions'); +var ItemsStore = require('../../../app/game/ItemsStore'); var Bomb = React.createClass({ propTypes: { @@ -20,11 +21,11 @@ ...
bd37635462a0e0ccc8a1e240ec427ea5244acf18
client/components/Main/Loading.jsx
client/components/Main/Loading.jsx
var React = require('react'); var Loading = React.createClass({ render: function() { return( <div className="text-center loading"><img src="https://3.bp.blogspot.com/-FjddXJJsIv8/VeaoXmv8HQI/AAAAAAAAGww/PlCl0uSR_9g/s1600/loading.gif"></img></div> ); } }); module.exports = Loading;
var React = require('react'); // Please fix this link ASAP... var Loading = React.createClass({ render: function() { return( <div className="text-center loading"><img src="https://3.bp.blogspot.com/-FjddXJJsIv8/VeaoXmv8HQI/AAAAAAAAGww/PlCl0uSR_9g/s1600/loading.gif"></img></div> ); } }); module.expo...
Add a comment about replacing a link.
Add a comment about replacing a link.
JSX
mit
Zanibas/Last-Stop,Zanibas/Last-Stop,Zanibas/Last-Stop
--- +++ @@ -1,5 +1,7 @@ var React = require('react'); + +// Please fix this link ASAP... var Loading = React.createClass({ render: function() { return(
0a0f1b72730e4369db87ae555f643ffcefe57bca
common/routing/index.jsx
common/routing/index.jsx
import React from "react"; import {browserHistory, Route} from "react-router"; import {useBasename} from "history"; import {App, Views} from "containers"; import BlockComponent from "containers/Views/BlockDetail/BlockComponent"; import TransactionDetailComponent from "containers/Views/TransactionDetail/TransactionDetai...
import React from "react"; import {browserHistory, Route} from "react-router"; import {useBasename} from "history"; import {App, Views} from "containers"; import BlockComponent from "containers/Views/BlockDetail/BlockComponent"; import TransactionDetailComponent from "containers/Views/TransactionDetail/TransactionDetai...
Improve "Nothing Here" route styling.
Improve "Nothing Here" route styling.
JSX
mit
dternyak/monerochain,dternyak/monerochain
--- +++ @@ -9,7 +9,7 @@ const PageNotFound = () => ( - <section className="row" style={{marginTop: "125px"}}> + <section className="row" style={{marginBottom: '400px'}}> <h1>Nothing here!</h1> </section> );
fc147e8d2634f01fe9ca55ef18399d3cd1d58526
client/ui/Balance.jsx
client/ui/Balance.jsx
import React from 'react' import {connect} from 'react-redux' import _ from 'lodash' import sb from 'satoshi-bitcoin' const Balance = ({balance}) => { return <span> Bitcoins: {_.isNumber(balance) ? sb.toBitcoin(balance) : '?'} </span> } export default connect(s => s)(Balance)
import React from 'react' import {connect} from 'react-redux' import _ from 'lodash' import sb from 'satoshi-bitcoin' const Balance = ({balance}) => { return <span> Bitcoins: {_.isNumber(balance) ? sb.toBitcoin(balance) : <i className='fa fa-spinner fa-spin' aria-hidden="true"></i>} </span> } export default connect...
Add spinning icon to the balance button
Add spinning icon to the balance button
JSX
mit
SpidChain/spidchain-btcr,SpidChain/spidchain-btcr
--- +++ @@ -4,7 +4,7 @@ import sb from 'satoshi-bitcoin' const Balance = ({balance}) => { - return <span> Bitcoins: {_.isNumber(balance) ? sb.toBitcoin(balance) : '?'} </span> + return <span> Bitcoins: {_.isNumber(balance) ? sb.toBitcoin(balance) : <i className='fa fa-spinner fa-spin' aria-hidden="true"></i>} <...
d891cd0e7ecc756dc6064dcabde1748138a1823b
src/components/invisibe-select.jsx
src/components/invisibe-select.jsx
import React, { Children, useMemo } from 'react'; import classNames from 'classnames'; import '../../styles/shared/invisible-select.scss'; import { faCaretDown } from '@fortawesome/free-solid-svg-icons'; import { Icon } from './fontawesome-icons'; export function InvisibleSelect({ children, value, className, withCare...
import React, { Children, useMemo } from 'react'; import classNames from 'classnames'; import '../../styles/shared/invisible-select.scss'; import { faCaretDown } from '@fortawesome/free-solid-svg-icons'; import { Icon } from './fontawesome-icons'; export function InvisibleSelect({ children, value, className, withCare...
Fix current item selection in InvisibleSelect component
Fix current item selection in InvisibleSelect component
JSX
mit
FreeFeed/freefeed-react-client,FreeFeed/freefeed-react-client,FreeFeed/freefeed-react-client
--- +++ @@ -31,7 +31,7 @@ {selectedLabel} {withCaret && <Icon icon={faCaretDown} className="invisibleSelect__caret" />} </div> - <select {...rest} className="invisibleSelect__select"> + <select value={value} className="invisibleSelect__select" {...rest}> {children} <...
8e0a6b1d01f38b1ddf85b33a54ec411174a69085
src/layouts/index.jsx
src/layouts/index.jsx
import React from "react"; import Helmet from "react-helmet"; import "font-awesome/scss/font-awesome.scss"; import "prismjs" import "prismjs/components/prism-bash"; import "prismjs/themes/prism.css" import Navigation from "../components/Navigation/Navigation"; import config from "../../data/SiteConfig"; import "./inde...
import React from "react"; import Helmet from "react-helmet"; import "font-awesome/scss/font-awesome.scss"; import "prismjs" import "prismjs/components/prism-bash"; import "prismjs/themes/prism.css" import Navigation from "../components/Navigation/Navigation"; import config from "../../data/SiteConfig"; import "./inde...
Refresh Prism highlight on compDidUpdate
Refresh Prism highlight on compDidUpdate
JSX
mit
tadeuzagallo/verve-website
--- +++ @@ -12,6 +12,10 @@ import "./prism-verve"; export default class MainLayout extends React.Component { + componentDidUpdate() { + Prism.highlightAll(); + } + render() { const { children } = this.props; return (
d43e8579b0611f047bf5f8512fb2bc152a60b3aa
app/assets/javascripts/components/news_feed/news_feed_item_bounty_review_ready.js.jsx
app/assets/javascripts/components/news_feed/news_feed_item_bounty_review_ready.js.jsx
var NewsFeedItemEvent = require('./news_feed_item_event.js.jsx'); module.exports = React.createClass({ displayName: 'NewsFeedItemBountyReviewReady', propTypes: { actor: React.PropTypes.object.isRequired, award_url: React.PropTypes.string, id: React.PropTypes.string.isRequired }, render: function()...
'use strict' import NewsFeedItemEvent from './news_feed_item_event.js.jsx'; import List from '../ui/list.js.jsx'; const NewsFeedItemBountyReviewReady = React.createClass({ propTypes: { actor: React.PropTypes.object.isRequired, award_url: React.PropTypes.string, id: React.PropTypes.string.isRequired },...
Bring award and close buttons in line with the other style.
Bring award and close buttons in line with the other style.
JSX
agpl-3.0
assemblymade/meta,lachlanjc/meta,lachlanjc/meta,assemblymade/meta,assemblymade/meta,assemblymade/meta,lachlanjc/meta,lachlanjc/meta
--- +++ @@ -1,7 +1,9 @@ -var NewsFeedItemEvent = require('./news_feed_item_event.js.jsx'); +'use strict' -module.exports = React.createClass({ - displayName: 'NewsFeedItemBountyReviewReady', +import NewsFeedItemEvent from './news_feed_item_event.js.jsx'; +import List from '../ui/list.js.jsx'; + +const NewsFeedItem...
6370c80868784ad357040462d2a1d8bd80aa552f
client/views/pages/NotFoundPage.jsx
client/views/pages/NotFoundPage.jsx
import React from 'react' import { Link } from 'react-router-dom' import Icon from '../components/Icon' export default function NotFoundPage() { return ( <div className="NotFoundPage"> <h1> I couldn&apos;t find that page <Icon i="error" s="xxl" /> </h1> <p> <Icon i="error" /> 40...
import React from 'react' import { Link } from 'react-router-dom' import Icon from '../components/Icon' export default function NotFoundPage() { return ( <div className="NotFoundPage"> <section> <h1> I couldn&apos;t find that page <Icon i="error" s="xxl" /> </h1> <p> ...
Update spacing on Not Found page
Update spacing on Not Found page
JSX
apache-2.0
heiskr/sagefy,heiskr/sagefy,heiskr/sagefy,heiskr/sagefy
--- +++ @@ -5,17 +5,19 @@ export default function NotFoundPage() { return ( <div className="NotFoundPage"> - <h1> - I couldn&apos;t find that page <Icon i="error" s="xxl" /> - </h1> - <p> - <Icon i="error" /> 404 Not Found <Icon i="error" />{' '} - </p> - <p> - <...
7e76f4e946ccdf90c8d80c63416cb44702e47522
web/static/js/components/alert.jsx
web/static/js/components/alert.jsx
import React from "react" import PropTypes from "prop-types" import Modal from "react-modal" import { bindActionCreators } from "redux" import { connect } from "react-redux" import { actions as actionCreators } from "../redux" Modal.defaultStyles.content.zIndex = 2 Modal.defaultStyles.overlay.zIndex = 2 Modal.setAppE...
import React from "react" import PropTypes from "prop-types" import Modal from "react-modal" import { bindActionCreators } from "redux" import { connect } from "react-redux" import { actions as actionCreators } from "../redux" Modal.defaultStyles.content.zIndex = 2 Modal.defaultStyles.overlay.zIndex = 2 Modal.setAppE...
Increase size of stage change content
Increase size of stage change content
JSX
mit
stride-nyc/remote_retro,stride-nyc/remote_retro,stride-nyc/remote_retro
--- +++ @@ -19,12 +19,12 @@ return ( <Modal - className="ui tiny modal visible transition fade in active" + className="ui basic small modal visible transition fade in active" contentLabel="Alert" isOpen > <div className="ui basic padded clearing segment"> - <p clas...
9e2edef13599c4fbd48f2a48ef8b4b63a3b0d89c
src/components/Sidebar/InfoTab.jsx
src/components/Sidebar/InfoTab.jsx
import React from 'react'; import './Sidebar.scss'; import baseTab from './BaseTab'; function InfoTab() { return ( <div> <section> <p className="info-paragraph"> Freesound Explorer is a visual interface for exploring Freesound content in a 2-dimensional space and create music at...
import React from 'react'; import './Sidebar.scss'; import baseTab from './BaseTab'; function InfoTab() { return ( <div> <section> <p className="info-paragraph"> Freesound Explorer is a visual interface for exploring Freesound content in a 2-dimensional space and create music at...
Update authors in info tab
Update authors in info tab
JSX
mit
ffont/freesound-explorer,ffont/freesound-explorer,ffont/freesound-explorer
--- +++ @@ -20,8 +20,8 @@ <section> <p className="info-paragraph"> Freesound Explorer has been developed (so far) by Frederic Font and Giuseppe Bandiera at the - Music Technology Group, Universitat Pompeu Fabra. You can find the <a href="https://github.com/ffont/freesound-explorer"...
9c453c9755db9006efbde59532e557c54ea04eb9
src/VerticalTimeline.jsx
src/VerticalTimeline.jsx
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class VerticalTimeline extends Component { render() { const { animate, children } = this.props; let { className } = this.props; className += ' vertical-timeline'; if (animate) { className += ' vertical-timeline--ani...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class VerticalTimeline extends Component { render() { const { animate, children } = this.props; let { className } = this.props; className += ' vertical-timeline'; if (animate) { className += ' vertical-timeline--ani...
Remove isRequired for children prop
Remove isRequired for children prop
JSX
mit
stephane-monnot/react-vertical-timeline
--- +++ @@ -24,7 +24,7 @@ children: PropTypes.oneOfType([ PropTypes.arrayOf(PropTypes.node), PropTypes.node - ]).isRequired, + ]), className: PropTypes.string, animate: PropTypes.bool };
b3a235b3231e813938969af51dea85a82c6d877f
app/components/app.jsx
app/components/app.jsx
import React, { Component, PropTypes } from 'react' import MonthList from './month-list' import { buildMonthsRange } from '../utils/date' export default class App extends Component { static propTypes = { actions: PropTypes.object.isRequired, events: PropTypes.object.isRequired, ui: PropTypes.object.isRe...
import React, { Component, PropTypes } from 'react' import MonthList from './month-list' import { buildMonthsRange } from '../utils/date' export default class App extends Component { static propTypes = { actions: PropTypes.object.isRequired, events: PropTypes.object.isRequired, ui: PropTypes.object.isRe...
Remove the 'count' test (not needed but let's remember the decision)
Remove the 'count' test (not needed but let's remember the decision)
JSX
mit
byteclubfr/bc-planner,lmtm/bc-planner,byteclubfr/bc-planner,lmtm/bc-planner
--- +++ @@ -8,17 +8,6 @@ actions: PropTypes.object.isRequired, events: PropTypes.object.isRequired, ui: PropTypes.object.isRequired - } - - constructor () { - super() - this.state = { - count: 0 - } - } - - onClick() { - this.setState({count: this.state.count + 1}) } compon...
1b47c3b7ad49ce70ef48bee161cf79f42c509b76
index.jsx
index.jsx
require("./node_modules/bootstrap/dist/css/bootstrap.min.css"); import React from 'react'; import ReactDOM from 'react-dom'; import {Grid} from './Ardagryd'; import data from './testData' import 'react-select/dist/react-select.css'; export class App extends React.Component { render() { let externalData = {ge...
require("./node_modules/bootstrap/dist/css/bootstrap.min.css"); import React from 'react'; import ReactDOM from 'react-dom'; import {Grid} from './Ardagryd'; import data from './testData' import 'react-select/dist/react-select.css'; export class App extends React.Component { render() { let externalData = {ge...
Mark edit column as unsortable
Mark edit column as unsortable
JSX
mit
eddyson-de/react-grid,eddyson-de/react-grid
--- +++ @@ -24,6 +24,7 @@ edit: { label: "Edit", hideTools: true, + sortable: false, displayValueGetter: ({value, object, columns}) => <a href={"#"}> EDIT ROW</a> }, id: {show: false}
ded2ba6ffdaf0f4cc8cdfe2113b57cb77c472872
src/js/components/session/index.jsx
src/js/components/session/index.jsx
import debug from "debug"; import React, { Component, PropTypes } from "react"; import moment from "moment"; import Presenter from "../presenter"; const log = debug("schedule:components:session"); export class Session extends Component { render() { const { session } = this.props; return ( ...
import debug from "debug"; import React, { Component, PropTypes } from "react"; import moment from "moment"; import Presenter from "../presenter"; const log = debug("schedule:components:session"); export class Session extends Component { render() { const { session } = this.props; return ( ...
Fix link to session info
Fix link to session info
JSX
mit
orangecms/schedule,orangecms/schedule,nikcorg/schedule,orangecms/schedule,nikcorg/schedule,nikcorg/schedule
--- +++ @@ -10,7 +10,7 @@ const { session } = this.props; return ( <div className="session"> - <h4><a href="{session.link}">{session.title}</a></h4> + <h4><a href={session.link}>{session.title}</a></h4> <div className="session__time"> ...
7ffd45956d2902f9e3c68a3994de4ffce5ee5dfe
src/js/components/App.jsx
src/js/components/App.jsx
import React from 'react'; import Header from './Header.jsx'; import DateHeader from './DateHeader.jsx'; import Diary from './Diary.jsx'; import TasksContainer from '../containers/TasksContainer.jsx'; import Utils from '../utils.js'; export default class App extends React.Component { constructor(props) { super...
import React from 'react'; import Header from './Header.jsx'; import DateHeader from './DateHeader.jsx'; import Diary from './Diary.jsx'; import TasksContainer from '../containers/TasksContainer.jsx'; import Utils from '../utils.js'; export default class App extends React.Component { constructor(props) { super...
Implement prev/next Date on click in parent component
Implement prev/next Date on click in parent component
JSX
mit
tanaka0325/nippo-web,tanaka0325/nippo-web
--- +++ @@ -15,13 +15,34 @@ this.state = { date: today, }; + + this.prevDate = this.prevDate.bind(this); + this.nextDate = this.nextDate.bind(this); + } + + prevDate() { + const date = new Date(this.state.date.setDate(this.state.date.getDate() - 1)); + this.setState({ + date, + ...
eccf53d0106764be093f2baebd03f9dd2896165f
normandy/control/static/control/js/components/DeleteRecipe.jsx
normandy/control/static/control/js/components/DeleteRecipe.jsx
import React from 'react' import { push } from 'react-router-redux' import { makeApiRequest, recipeDeleted } from '../actions/ControlActions.js' import composeRecipeContainer from './RecipeContainer.jsx' class DeleteRecipe extends React.Component { render() { const { recipe, recipeId, dispatch } = this.props; ...
import React from 'react' import { push } from 'react-router-redux' import { makeApiRequest, recipeDeleted } from '../actions/ControlActions.js' import composeRecipeContainer from './RecipeContainer.jsx' class DeleteRecipe extends React.Component { deleteRecipe(event) { const { dispatch, recipeId } = this.props;...
Move deleteRecipe into separate method
Move deleteRecipe into separate method
JSX
mpl-2.0
mozilla/normandy,Osmose/normandy,mozilla/normandy,Osmose/normandy,mozilla/normandy,mozilla/normandy,Osmose/normandy,Osmose/normandy
--- +++ @@ -4,8 +4,19 @@ import composeRecipeContainer from './RecipeContainer.jsx' class DeleteRecipe extends React.Component { + deleteRecipe(event) { + const { dispatch, recipeId } = this.props; + + event.preventDefault(); + dispatch(makeApiRequest('deleteRecipe', { recipeId })) + .then(response =...
d3a44d020dcfb731ca05ccce6312d842c0785b1b
app/scenes/Root/App.jsx
app/scenes/Root/App.jsx
import React from 'react'; import { Link } from 'react-router-dom'; import Routes from './Routes'; import './styles.scss'; export default function App() { return ( <div> <nav className="main-menu"> <Link className="logo" to="/"> <img src="images/logo.svg" alt="React Fission" /> ...
import React from 'react'; import { Link } from 'react-router-dom'; import Routes from './Routes'; import './styles.scss'; export default function App() { return ( <div> <nav className="main-menu"> <Link className="logo" to="/" > <img src="images/lo...
Break in lines elements with many parameters
Break in lines elements with many parameters
JSX
mit
matheusmariano/react-fission,matheusmariano/react-fission
--- +++ @@ -7,8 +7,14 @@ return ( <div> <nav className="main-menu"> - <Link className="logo" to="/"> - <img src="images/logo.svg" alt="React Fission" /> + <Link + className="logo" + to="/" + > + <img + src="images/logo.svg" + ...
9bdfba619eb46d6eb225e807ff7afee26aa8664f
app/components/App.jsx
app/components/App.jsx
import React, { Component } from 'react' import PropTypes from '../lib/PropTypes' import Webchat from './Webchat' export default class App extends Component { static propTypes = { type: PropTypes.oneOf(['client', 'client-overlay', 'agent']).isRequired } render () { return <div className="f4 h-100"> ...
import React, { Component } from 'react' import PropTypes from '../lib/PropTypes' import Webchat from './Webchat' export default class App extends Component { static propTypes = { type: PropTypes.oneOf(['client', 'client-overlay', 'agent']).isRequired } render () { return <div role="application" classNa...
Add aria role application to webchat
Add aria role application to webchat
JSX
mit
quis/notify-public-research-prototype,quis/notify-public-research-prototype,quis/notify-public-research-prototype
--- +++ @@ -8,7 +8,7 @@ } render () { - return <div className="f4 h-100"> + return <div role="application" className="f4 h-100"> <Webchat type={this.props.type} /> </div> }
e552525f8196087a21496805c1411e6d27d18876
src/readme_page.jsx
src/readme_page.jsx
/** * @license Apache-2.0 * * Copyright (c) 2019 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
/** * @license Apache-2.0 * * Copyright (c) 2019 The Stdlib Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
Add JSDoc and convert function type
Add JSDoc and convert function type
JSX
apache-2.0
stdlib-js/www,stdlib-js/www,stdlib-js/www
--- +++ @@ -24,14 +24,23 @@ // MAIN // -const ReadmePage = ( props ) => { +/** +* Returns a React component for rendering a README. +* +* @private +* @param {Object} props - component properties +* @returns {ReactComponent} React component +*/ +function ReadmePage( props ) { const html = HTML_FRAGMENT_CACHE[ p...
f2ac75fff8e112bd14bc391c2b40a565a14c65f5
src/settings/index.jsx
src/settings/index.jsx
import { h, render } from 'preact'; import SettingsComponent from './components'; import reducer from 'settings/reducers/setting'; import Provider from 'shared/store/provider'; import { createStore } from 'shared/store'; const store = createStore(reducer); document.addEventListener('DOMContentLoaded', () => { let w...
import { h, render } from 'preact'; import SettingsComponent from './components'; import reducer from './reducers/setting'; import { Provider } from 'preact-redux'; import promise from 'redux-promise'; import { createStore, applyMiddleware } from 'redux'; const store = createStore( reducer, applyMiddleware(promise...
Use official redux on settings
Use official redux on settings
JSX
mit
ueokande/vim-vixen,ueokande/vim-vixen,ueokande/vim-vixen
--- +++ @@ -1,10 +1,14 @@ import { h, render } from 'preact'; import SettingsComponent from './components'; -import reducer from 'settings/reducers/setting'; -import Provider from 'shared/store/provider'; -import { createStore } from 'shared/store'; +import reducer from './reducers/setting'; +import { Provider } fr...
878b90b65d3e8e10955a9b15abbe1a20ba8e1001
src/components/memory/MemoryNav.jsx
src/components/memory/MemoryNav.jsx
import React, {Component} from 'react'; import {Button, ButtonGroup, ButtonToolbar, OverlayTrigger, Popover, Glyphicon} from 'react-bootstrap'; import MemorySearch from './MemorySearch'; export default class MemoryNav extends Component { render() { const scrollDelta = 1; const groupStyle = { float...
import React, {Component} from 'react'; import {Button, ButtonGroup, ButtonToolbar, OverlayTrigger, Popover, Glyphicon} from 'react-bootstrap'; import MemorySearch from './MemorySearch'; export default class MemoryNav extends Component { render() { const scrollDelta = 1; const groupStyle = { float...
Move "Jump to…" to right instead of bottom
Move "Jump to…" to right instead of bottom This way it doesn't obscure the memory view.
JSX
mit
WChargin/lc3,WChargin/lc3
--- +++ @@ -19,7 +19,7 @@ Jump to PC </Button> <OverlayTrigger - placement="bottom" + placement="right" trigger="click" rootClose overlay={
26aa68fb1fcfe0bb9995035f66d51eb740329a35
src/passwordless-email/ask_email.jsx
src/passwordless-email/ask_email.jsx
import React from 'react'; import EmailInput from '../credentials/email_input'; import { email, visiblyInvalidEmail } from '../credentials/index'; import { changeEmail } from './actions'; import { ui } from '../lock/index'; export default class AskEmail extends React.Component { render() { const { lock } = this....
import React from 'react'; import EmailInput from '../credentials/email_input'; import { email, visiblyInvalidEmail } from '../credentials/index'; import { changeEmail } from './actions'; import { ui } from '../lock/index'; export default class AskEmail extends React.Component { render() { const { lock } = this....
Update ask email component markup
Update ask email component markup
JSX
mit
auth0/lock-passwordless,mike-casas/lock,mike-casas/lock,mike-casas/lock,auth0/lock-passwordless,auth0/lock-passwordless
--- +++ @@ -7,17 +7,20 @@ export default class AskEmail extends React.Component { render() { const { lock } = this.props; + return ( - <div> - <div className="auth0-lock-instructions"> - Enter your email address to sign in or create an account + <div className="auth0-lock-passw...
6b419e145d335e679772c90f9f05d8caf8a76c5f
webapp/pages/RepositoryTestChart.jsx
webapp/pages/RepositoryTestChart.jsx
import React from 'react'; import PropTypes from 'prop-types'; import AsyncPage from '../components/AsyncPage'; import Paginator from '../components/Paginator'; import Section from '../components/Section'; import TestChart from '../components/TestChart'; export default class RepositoryTestChart extends AsyncPage { ...
import React from 'react'; import PropTypes from 'prop-types'; import AsyncPage from '../components/AsyncPage'; import Paginator from '../components/Paginator'; import Section from '../components/Section'; import TestChart from '../components/TestChart'; export default class RepositoryTestChart extends AsyncPage { ...
Fix pagination query parameters in Test Over Time
fix(ui): Fix pagination query parameters in Test Over Time
JSX
apache-2.0
getsentry/zeus,getsentry/zeus,getsentry/zeus,getsentry/zeus
--- +++ @@ -14,7 +14,13 @@ getEndpoints() { let {repo} = this.context; - return [['testList', `/repos/${repo.full_name}/tests-by-build`]]; + return [ + [ + 'testList', + `/repos/${repo.full_name}/tests-by-build`, + {query: this.props.location.query} + ] + ]; } ...
ec2c149510dd94980bd8a77385576c9edec46ee3
src/components/TaskList/TaskList.jsx
src/components/TaskList/TaskList.jsx
const React = require('react') const GitHub = require('../../models/github') const TaskListItem = require('../TaskListItem') class TaskList extends React.Component { constructor(props, context) { super(props, context) this.state = { notifications: [] } } componentDidMount() { const github = new GitH...
const React = require('react') const GitHub = require('../../models/github') const TaskListItem = require('../TaskListItem') class TaskList extends React.Component { constructor(props, context) { super(props, context) this.state = { notifications: [] } } componentDidMount() { const github = new GitH...
Fix linter complaint about arrow body
Fix linter complaint about arrow body
JSX
mit
cheshire137/gh-notifications-snoozer,cheshire137/gh-notifications-snoozer
--- +++ @@ -32,9 +32,9 @@ <button type="button" className="control">archive</button> </nav> <ol className="issues-list"> - {this.state.notifications.map(notification => { - return <TaskListItem {...notification} key={notification.id} /> - })} + {this....
bb1829f7b6f45c9d8411cce3159cb4008379bb16
client/app/bundles/course/lesson_plan/components/LessonPlanGroup.jsx
client/app/bundles/course/lesson_plan/components/LessonPlanGroup.jsx
import React, { PropTypes } from 'react'; import Immutable from 'immutable'; import { Element } from 'react-scroll'; import Paper from 'material-ui/Paper'; import LessonPlanItem from '../components/LessonPlanItem'; import LessonPlanMilestone from '../components/LessonPlanMilestone'; const propTypes = { milestone: Pr...
import React, { PropTypes } from 'react'; import Immutable from 'immutable'; import { Element } from 'react-scroll'; import Paper from 'material-ui/Paper'; import LessonPlanItem from '../components/LessonPlanItem'; import LessonPlanMilestone from '../components/LessonPlanMilestone'; const LessonPlanGroup = ({ mileston...
Fix lesson plan group items proptype
Fix lesson plan group items proptype
JSX
mit
Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,cysjonathan/coursemology2,cysjonathan/coursemology2,cysjonathan/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2
--- +++ @@ -5,12 +5,7 @@ import LessonPlanItem from '../components/LessonPlanItem'; import LessonPlanMilestone from '../components/LessonPlanMilestone'; -const propTypes = { - milestone: PropTypes.instanceOf(Immutable.Map).isRequired, - items: PropTypes.instanceOf(Immutable.List).isRequired, -}; - -const Milest...
a668afcc69f0dc1d66346b2a3d4eed50b811d17d
app/app.jsx
app/app.jsx
import React from 'react'; import api from './api'; import ReportsTable from './reports_table.jsx'; export default class App extends React.Component { render() { const headers = [ { name: 'Date', data: 'timestamp' }, { name: 'Size', data: 'size' }, { ...
import React from 'react'; import api from './api'; import ReportsTable from './reports_table.jsx'; export default class App extends React.Component { constructor(props) { super(props); this.state = { headers: [ { name: 'Date', data: 'timestamp' }, { ...
Allow table columns to be sorted
Allow table columns to be sorted
JSX
mit
survivejs/reports-app
--- +++ @@ -3,29 +3,40 @@ import ReportsTable from './reports_table.jsx'; export default class App extends React.Component { + constructor(props) { + super(props); + + this.state = { + headers: [ + { + name: 'Date', + data: 'timestamp' + }, + { + name: '...
ff27ca1764151e7d79bbedf6ab3327aefb984dcc
app/components/VideoDebate/VideoDebatePlayer.jsx
app/components/VideoDebate/VideoDebatePlayer.jsx
import React from 'react' import { connect } from 'react-redux' import ReactPlayer from 'react-player' import { setPosition, setPlaying } from '../../state/video_debate/video/reducer' /** * A player connected to VideoDebate state. Update position in it when playing * and seekTo position when requested in state. */...
import React from 'react' import { connect } from 'react-redux' import ReactPlayer from 'react-player' import { setPosition, setPlaying } from '../../state/video_debate/video/reducer' /** * A player connected to VideoDebate state. Update position in it when playing * and seekTo position when requested in state. */...
Improve first timecode click (when video isn't playing yet)
Improve first timecode click (when video isn't playing yet)
JSX
agpl-3.0
CaptainFact/captain-fact-frontend,CaptainFact/captain-fact-frontend,CaptainFact/captain-fact-frontend
--- +++ @@ -29,8 +29,8 @@ forcedPosition.requestId !== null && forcedPosition.requestId !== this.props.forcedPosition.requestId ) { + this.props.setPlaying(true) this.refs.player.seekTo(forcedPosition.time) - this.props.setPlaying(true) } }
390f5f45f1afdd144b72b3de7c2d0c75dda12e09
src/components/main.jsx
src/components/main.jsx
'use strict'; import ClocketteApp from './ClocketteApp'; import React from 'react'; import Router from 'react-router'; import HomeScreen from './HomeScreen'; import AddTimezoneScreen from './AddTimezoneScreen'; const Route = Router.Route; const Routes = ( <Route handler={ClocketteApp}> <Route name="/" handler=...
'use strict'; import ClocketteApp from './ClocketteApp'; import React from 'react'; import Router from 'react-router'; import HomeScreen from './home/HomeScreen'; import AddTimezoneScreen from './add-timezone/AddTimezoneScreen'; const Route = Router.Route; const Routes = ( <Route handler={ClocketteApp}> <Route...
Update screen paths to match new architecture
Update screen paths to match new architecture
JSX
mit
rhumlover/clockette,rhumlover/clockette
--- +++ @@ -3,8 +3,8 @@ import ClocketteApp from './ClocketteApp'; import React from 'react'; import Router from 'react-router'; -import HomeScreen from './HomeScreen'; -import AddTimezoneScreen from './AddTimezoneScreen'; +import HomeScreen from './home/HomeScreen'; +import AddTimezoneScreen from './add-timezone/...
92285452d42f6064bffe9cfb4f2b0cd0e310fadf
src/javascript/app.jsx
src/javascript/app.jsx
import React from 'react'; import ReactDom from 'react-dom'; import NetKANs from './components/NetKANs.jsx'; import datatableStyles from '../../node_modules/fixed-data-table/dist/fixed-data-table.min.css'; var sheet = document.createElement('style'); sheet.type = 'text/css'; sheet.innerHTML = 'html,body{background-c...
import React from 'react'; import ReactDom from 'react-dom'; import NetKANs from './components/NetKANs.jsx'; import datatableStyles from '../../node_modules/fixed-data-table/dist/fixed-data-table.min.css'; var sheet = document.createElement('style'); sheet.type = 'text/css'; sheet.innerHTML = 'html,body{background-c...
Update url of json file
Update url of json file
JSX
mit
techman83/NetKAN-status
--- +++ @@ -13,7 +13,7 @@ ReactDom.render( <NetKANs - url="http://status.ksp-ckan.org/status/netkan.json" + url="http://status.ksp-ckan.space/status/netkan.json" pollInterval={300000} />, document.getElementById('content') );
e5b92367960df217e0dcd39e1c7cca5668d4ea85
src/apps/ChannelHistory/ChannelHistoryMessages.jsx
src/apps/ChannelHistory/ChannelHistoryMessages.jsx
import React from 'react'; import { withRouter } from 'react-router'; import Reflux from 'reflux'; import Store from './ChannelHistoryStore'; import ChannelHistory from './ChannelHistory'; const ChannelHistoryMessages = React.createClass({ mixins: [Reflux.connect(Store)], render() { const { channelName } = ...
import React from 'react'; import { withRouter } from 'react-router'; import Reflux from 'reflux'; import Store from './ChannelHistoryStore'; import ChannelHistory from './ChannelHistory'; const ChannelHistoryMessages = React.createClass({ mixins: [Reflux.connect(Store)], render() { const { channelName } = ...
Fix fetching channel history messages
[DASH-2187] Fix fetching channel history messages
JSX
mit
Syncano/syncano-dashboard,Syncano/syncano-dashboard,Syncano/syncano-dashboard
--- +++ @@ -10,7 +10,7 @@ mixins: [Reflux.connect(Store)], render() { - const { channelName } = this.props; + const { channelName } = this.props.params; return <ChannelHistory channelName={channelName} />; }
429783790c34a60f4ab44eda44150106ac42860b
imports/ui/components/inplace-edit.jsx
imports/ui/components/inplace-edit.jsx
import React from 'react'; export default class InplaceEdit extends React.Component { constructor(props) { super(props); this.state = { editing: false, }; this.view = this.view.bind(this); this.edit = this.edit.bind(this); } view() { this.props.onChange(this.refs.input.value); ...
import React from 'react'; export default class InplaceEdit extends React.Component { constructor(props) { super(props); this.state = { editing: false, }; this.view = this.view.bind(this); this.edit = this.edit.bind(this); } view() { this.props.onChange(this.refs.input.value); ...
Change css styling and add placeholder if text is empty
Change css styling and add placeholder if text is empty
JSX
mit
minden/data-furnace,minden/data-furnace
--- +++ @@ -21,27 +21,34 @@ }); } + editIcon() { + if (!this.props.text) { + return ( + <span className="glyphicon glyphicon-pencil"></span> + ); + } + } + render() { if (this.state.editing) { return ( <input - style={{ marginLeft: '5px' }} + styl...
0b2f0553c0ce7b2fc7cc03f2d457a89deedee0d4
src/option/unrdist.jsx
src/option/unrdist.jsx
console.log( "===== simpread option unread list load =====" ) import List from 'list'; const actionItems = [ { id: "pocket", title: "发送到 Pocket", icon: "", disable: false, hr: true, }, { id: "remove", title: "删除", icon: "", disable: f...
console.log( "===== simpread option unread list load =====" ) import List from 'list'; import {storage} from 'storage'; const actionItems = [ { id: "pocket", title: "发送到 Pocket", icon: "", disable: false, hr: true, }, { id: "remove", title: "删除", ...
Add remove unread list logic.
Add remove unread list logic.
JSX
mit
ksky521/simpread,ksky521/simpread
--- +++ @@ -1,6 +1,8 @@ console.log( "===== simpread option unread list load =====" ) import List from 'list'; + +import {storage} from 'storage'; const actionItems = [ { @@ -21,13 +23,26 @@ export default class Unrdist extends React.Component { + state = { + item: this.props.list, + } +...
b7d7aebadb804ee77d3ef0ed53b2e80dd2637c99
web/static/js/components/idea_list_item.jsx
web/static/js/components/idea_list_item.jsx
import React, { PropTypes } from "react" import * as AppPropTypes from "../prop_types" import styles from "./css_modules/idea_list_item.css" function IdeaListItem(props) { const { idea, currentPresence } = props return ( <li className={styles.index} title={idea.body} key={idea.id}> { currentPresence.use...
import React, { Component } from "react" import * as AppPropTypes from "../prop_types" import styles from "./css_modules/idea_list_item.css" class IdeaListItem extends Component { render() { let { idea, currentPresence, handleDelete } = this.props return ( <li className={styles.index} title={idea.body...
Convert IdeaListItem to Component definition in preparation for setChanges
Convert IdeaListItem to Component definition in preparation for setChanges
JSX
mit
stride-nyc/remote_retro,stride-nyc/remote_retro,samdec11/remote_retro,stride-nyc/remote_retro,tnewell5/remote_retro,tnewell5/remote_retro
--- +++ @@ -1,31 +1,33 @@ -import React, { PropTypes } from "react" +import React, { Component } from "react" import * as AppPropTypes from "../prop_types" import styles from "./css_modules/idea_list_item.css" -function IdeaListItem(props) { - const { idea, currentPresence } = props +class IdeaListItem extends C...
273c271c6322748dd170fc19e8f9e5271bfb4fa7
public/components/BeerPair.jsx
public/components/BeerPair.jsx
import React from 'react'; import beerPair from './../../pairList.js'; class BeerPair extends React.Component { constructor(props){ super(props); } render(){ return( <div> { this.props.currentBeer.name ? `${this.props.currentBeer.name} is a ${this.props.currentBeer.type} and should be dra...
import React from 'react'; import beerPair from './../../pairList.js'; import glassShopList from './../../glassShopList.js'; class BeerPair extends React.Component { constructor(props){ super(props); } render(){ return( <div> { this.props.currentBeer.name ? <div>{this.props.currentB...
Add link to buy glass in beerPair component
Add link to buy glass in beerPair component
JSX
mit
joeylaguna/tankard.io,joeylaguna/tankard.io
--- +++ @@ -1,5 +1,6 @@ import React from 'react'; import beerPair from './../../pairList.js'; +import glassShopList from './../../glassShopList.js'; class BeerPair extends React.Component { constructor(props){ @@ -10,7 +11,12 @@ return( <div> { - this.props.currentBeer.name ? `${this.pr...
ead1bac02ca8f004b4ddd6024ce2e66f8e35905f
src/components/semver-explain-constraint-warning.jsx
src/components/semver-explain-constraint-warning.jsx
var React = require('react'), SemverConstraint = require('../libs/semver-constraint.js'), If = require('./semver-if.jsx'); var SemverExplainConstraintWarning = React.createClass({ render: function() { if (!this.props.constraint) { return false; } thi...
var React = require('react'), SemverConstraint = require('../libs/semver-constraint.js'), If = require('./semver-if.jsx'); var SemverExplainConstraintWarning = React.createClass({ render: function() { if (!this.props.constraint) { return false; } thi...
Add composer warning for caret-range
Add composer warning for caret-range
JSX
mit
jubianchi/semver-check,jubianchi/semver-check
--- +++ @@ -12,6 +12,13 @@ return ( <div> + <If test={ this.props.constraint.type() == 'range (caret)' }> + <p> + If you are using composer, you won't be able to use caret-range constraint. You should + ...
b748ab029c9c788c31b6e0013236ef5cb813d05a
src/js/components/SectionComponent.jsx
src/js/components/SectionComponent.jsx
import React from "react/addons"; import Util from "../helpers/Util"; var SectionComponent = React.createClass({ "displayName": "SectionComponent", propTypes: { active: React.PropTypes.bool, children: React.PropTypes.node, id: React.PropTypes.string.isRequired, onActive: React.PropTypes.func }, ...
import React from "react/addons"; import Util from "../helpers/Util"; var SectionComponent = React.createClass({ "displayName": "SectionComponent", propTypes: { active: React.PropTypes.bool, children: React.PropTypes.node, id: React.PropTypes.string.isRequired, onActive: React.PropTypes.func }, ...
Fix section component callback handling
Fix section component callback handling Adjust the handling to only trigger section `onActive` callbacks on active state changes.
JSX
apache-2.0
mesosphere/marathon-ui,mesosphere/marathon-ui,cribalik/marathon-ui,cribalik/marathon-ui
--- +++ @@ -18,6 +18,18 @@ }; }, + getInitialState: function () { + return { + activeStateChanged: true + }; + }, + + componentWillReceiveProps: function (nextProps) { + this.setState({ + activeStateChanged: nextProps.active !== this.props.active + }); + }, + componentDidMount: ...
7d73d460041e8c5c68a2c23c629250b574298a10
src/lib/tooltip/ToolTipTSpanLabel.jsx
src/lib/tooltip/ToolTipTSpanLabel.jsx
"use strict"; import React from "react"; import PropTypes from "prop-types"; function ToolTipTSpanLabel(props) { return <tspan className="react-stockcharts-tooltip-label" fill="#4682B4" {...props}>{props.children}</tspan>; } ToolTipTSpanLabel.propTypes = { children: PropTypes.node.isRequired, }; export default To...
"use strict"; import React from "react"; import PropTypes from "prop-types"; function ToolTipTSpanLabel(props) { return <tspan className="react-stockcharts-tooltip-label" {...props}>{props.children}</tspan>; } ToolTipTSpanLabel.propTypes = { children: PropTypes.node.isRequired, fill: PropTypes.string.isRequired, ...
Add default color for tooltip label
Add default color for tooltip label
JSX
mit
rrag/react-stockcharts
--- +++ @@ -4,11 +4,16 @@ import PropTypes from "prop-types"; function ToolTipTSpanLabel(props) { - return <tspan className="react-stockcharts-tooltip-label" fill="#4682B4" {...props}>{props.children}</tspan>; + return <tspan className="react-stockcharts-tooltip-label" {...props}>{props.children}</tspan>; } T...