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
91bfaa931fe48715bb1501a0c2a9b4a81fa5b0a5
client/app/bundles/course/assessment/submission/components/ScribingView/index.jsx
client/app/bundles/course/assessment/submission/components/ScribingView/index.jsx
import React from 'react'; import PropTypes from 'prop-types'; import scribingViewLoader from 'course/assessment/submission/loaders/ScribingViewLoader'; import ScribingToolbar from './ScribingToolbar'; import ScribingCanvas from './ScribingCanvas'; import style from './ScribingView.scss'; // eslint-disable-line no-unus...
import React from 'react'; import PropTypes from 'prop-types'; import scribingViewLoader from 'course/assessment/submission/loaders/ScribingViewLoader'; import ScribingToolbar from './ScribingToolbar'; import ScribingCanvas from './ScribingCanvas'; import { submissionShape } from '../../propTypes'; const propTypes = {...
Fix scribing question bug in autograded assessment
fix(ScribingViewComponent): Fix scribing question bug in autograded assessment
JSX
mit
Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2,Coursemology/coursemology2
--- +++ @@ -3,7 +3,6 @@ import scribingViewLoader from 'course/assessment/submission/loaders/ScribingViewLoader'; import ScribingToolbar from './ScribingToolbar'; import ScribingCanvas from './ScribingCanvas'; -import style from './ScribingView.scss'; // eslint-disable-line no-unused-vars import { submissionShape...
b8f232a7aa9b0b100b9176f36a40424740779721
client/components/Events/Event.jsx
client/components/Events/Event.jsx
import React, { PropTypes } from 'react'; import { Link } from 'react-router'; import Moment from 'moment'; const Event = ({ eventName, description, eventStartDateTime, eventEndDateTime, eventContractAddress, price, addressLine1, addressLine2, city, state, zipPostalCode, country }) => ( <li> <Link to={{ pa...
import React, { PropTypes } from 'react'; import { Link } from 'react-router'; import Moment from 'moment'; const Event = ({ eventName, description, eventStartDateTime, eventEndDateTime, eventContractAddress, price, addressLine1, addressLine2, city, state, zipPostalCode, country }) => ( <li> <Link to={{ pa...
Change event listing to location instead of city
Change event listing to location instead of city
JSX
mit
chrispicato/ticket-sherpa,chrispicato/ticket-sherpa
--- +++ @@ -44,7 +44,7 @@ >{eventName}</Link></h2> <p>Date: {Moment().format('MMMM Do YYYY, h:mm A')}</p> <p>Price: {price}</p> - <p>City: {city}</p> + <p>Location: {city + ', ' + state}</p> </li> );
049d68c94f38b1f59bd1d841a377c89cec3e2a07
src/components/Button.jsx
src/components/Button.jsx
import React from 'react'; import './Button.css'; import Icon from 'react-icons-kit'; export default function Button(props) { var buttonClass = 'Button'; switch (props.buttonType) { case 'primary': buttonClass = buttonClass + ' primary'; break; case 'navbar-tab': case 'navbar-tab-active':...
import React from 'react'; import './Button.css'; import Icon from 'react-icons-kit'; export default function Button(props) { var buttonClass = 'Button'; switch (props.buttonType) { case 'primary': buttonClass = buttonClass + ' primary'; break; case 'navbar-tab': case 'navbar-tab-active':...
Disable ability to click inactive buttons
Disable ability to click inactive buttons
JSX
mit
gaviarctica/forestry-game-frontend,gaviarctica/forestry-game-frontend
--- +++ @@ -43,7 +43,7 @@ className={buttonClass} id={props.id} style={props.style} - onClick={props.handleClick} > + onClick={props.inactive ? '' : props.handleClick} > {props.icon ? <Icon size={'1.3em'} icon={props.icon} className="navbar-icon"/> : ''}
953e7fa2e1e9220a360950e1d4dee9ee9f679968
src/specs/MyComponent.spec.jsx
src/specs/MyComponent.spec.jsx
import React from "react"; import MyComponent from "../components/MyComponent"; const LOREM = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo co...
import React from "react"; import MyComponent from "../components/MyComponent"; const LOREM = "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo co...
Change default color of sample component.
Change default color of sample component.
JSX
mit
philcockfield/ui-harness-sample
--- +++ @@ -10,7 +10,7 @@ before(() => { // Runs when the Suite loads. Use this to host your component-under-test. - this.load( <MyComponent color="red"/> ); + this.load( <MyComponent /> ); }); it("reload", () => { @@ -30,5 +30,6 @@ it("red", () => this.props({ color: "red" })); it(...
66c56b14ec5395ff7c0bbebcadf78e5e2eecb1c7
client/components/dialog/DialogPart.jsx
client/components/dialog/DialogPart.jsx
var React = require('react/addons'), PureRenderMixin = React.addons.PureRenderMixin var DialogPart = React.createClass({ mixins: [PureRenderMixin], propTypes: { type: React.PropTypes.oneOf(['header', 'body', 'footer']) }, render: function () { return ( <div className={`dialog-${this.props.typ...
var cn = require('classnames') var React = require('react/addons') var PureRenderMixin = React.addons.PureRenderMixin var DialogPart = React.createClass({ mixins: [PureRenderMixin], propTypes: { type: React.PropTypes.oneOf(['header', 'body', 'footer']).isRequired, className: React.PropTypes.string }, ...
Add className to dialog part
Add className to dialog part
JSX
apache-2.0
cesarandreu/bshed,cesarandreu/bshed
--- +++ @@ -1,16 +1,18 @@ -var React = require('react/addons'), - PureRenderMixin = React.addons.PureRenderMixin +var cn = require('classnames') +var React = require('react/addons') +var PureRenderMixin = React.addons.PureRenderMixin var DialogPart = React.createClass({ mixins: [PureRenderMixin], propType...
7f45f304ee27433a0be791d4311660d9568b2349
client/app/bundles/RentersRights/components/resources/ResourceIndexItem.jsx
client/app/bundles/RentersRights/components/resources/ResourceIndexItem.jsx
import React from 'react'; export default class ResourceIndexItem extends React.Component { constructor(props) { super(props); } render() { const { organization, phone, email, website, region, description, address, } = this.props.resource; const homeSize...
import React from 'react'; export default class ResourceIndexItem extends React.Component { constructor(props) { super(props); } render() { const { organization, phone, email, website, region, description, address, } = this.props.resource; const homeSize...
Clean up resource index item render
Clean up resource index item render
JSX
mit
codeforsanjose/renters-rights,codeforsanjose/renters-rights,codeforsanjose/renters-rights
--- +++ @@ -19,11 +19,19 @@ return ( <div> - <a href={website} target="_blank"><h3>{organization}</h3></a> + <a href={website} target="_blank"> + <h3>{organization}</h3> + </a> <p>{description}</p> <p>Contact: </p> - <p><span className="glyphicon gl...
d1539efe596e9b957b37e5d76d302df21f2a3a7a
app/components/Caveats.jsx
app/components/Caveats.jsx
import React from 'react'; import GenericContent from './GenericContent'; export default class Caveats extends React.Component { componentDidMount() { const script = document.createElement("script"); script.src = "//cdn.jsdelivr.net/caniuse-embed/1.0.1/caniuse-embed.min.js"; document.body.appendChild(script); ...
import React from 'react'; import GenericContent from './GenericContent'; export default class Caveats extends React.Component { componentDidMount() { const script = document.createElement("script"); script.id = "caniuse-embed"; script.src = "//cdn.jsdelivr.net/caniuse-embed/1.0.1/caniuse-embed.min.js"; c...
Fix adding new <script> to execute caniuse embed on each load
fix(caveats-page): Fix adding new <script> to execute caniuse embed on each load
JSX
mit
Velenir/workers-journey,Velenir/workers-journey
--- +++ @@ -5,8 +5,16 @@ export default class Caveats extends React.Component { componentDidMount() { const script = document.createElement("script"); + script.id = "caniuse-embed"; script.src = "//cdn.jsdelivr.net/caniuse-embed/1.0.1/caniuse-embed.min.js"; - document.body.appendChild(script); + + const...
bc886d86067ff138d512d6759a32b67c77607b72
application/jsx/account/change-email.jsx
application/jsx/account/change-email.jsx
/** @jsx React.DOM */ define([ 'react', 'models/change-email', 'templates/mixins/navigate' ], function( React, ChangeEmailModel, NavigateMixin ) { return React.createClass({ displayName : 'ChangeEmailModule', mixins : [NavigateMixin], handleSubmit : func...
/** @jsx React.DOM */ define([ 'react', 'templates/mixins/navigate' ], function( React, NavigateMixin ) { return React.createClass({ displayName : 'ChangeEmailModule', mixins : [NavigateMixin], handleSubmit : function(event) { event.preventDefault();...
Remove dependency on nonexistent file.
Remove dependency on nonexistent file.
JSX
mit
dcpages/dcLibrary-Template,areida/spacesynter,dcpages/dcLibrary-Template,areida/spacesynter,areida/spacesynter,areida/spacesynter,areida/spacesynter
--- +++ @@ -1,11 +1,9 @@ /** @jsx React.DOM */ define([ 'react', - 'models/change-email', 'templates/mixins/navigate' ], function( React, - ChangeEmailModel, NavigateMixin ) {
44337117427bd1566d9aec4a8d423a8cc093f97b
kanban_app/app/index.jsx
kanban_app/app/index.jsx
import './main.css'; import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import App from './containers/App.jsx'; import configureStore from './store/configureStore'; import storage from './libs/storage'; const APP_STORAGE = 'app'; const store = configureStore(storage.ge...
import './main.css'; import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import App from './containers/App.jsx'; import configureStore from './store/configureStore'; import storage from './libs/storage'; const APP_STORAGE = 'redux_kanban'; const store = configureStore(s...
Use `redux_kanban` as app storage
Use `redux_kanban` as app storage This way it doesn't conflict with other implementations so easily.
JSX
mit
survivejs-demos/redux-demo,survivejs/redux-demo
--- +++ @@ -7,7 +7,7 @@ import configureStore from './store/configureStore'; import storage from './libs/storage'; -const APP_STORAGE = 'app'; +const APP_STORAGE = 'redux_kanban'; const store = configureStore(storage.get(APP_STORAGE) || {});
e6eee46fdba507376b79e5c9ec8ce582c975b213
src/shell/components/shell-view.jsx
src/shell/components/shell-view.jsx
var React = require('react'), glimpse = require('glimpse'); module.exports = React.createClass({ _applicationAdded: function() { this.forceUpdate(); }, componentDidMount: function() { this._applicationAddedOn = glimpse.on('shell.application.added', this._applicationAdded); }, co...
var React = require('react'), glimpse = require('glimpse'), EmitterMixin = require('../../lib/components/emitter-mixin.jsx'); module.exports = React.createClass({ mixins: [ EmitterMixin ], componentDidMount: function() { this.addListener('shell.application.added', this._applicationAdded); }...
Switch shell view over to using event emitter mixin
Switch shell view over to using event emitter mixin
JSX
unknown
avanderhoorn/Glimpse.Client.Prototype,avanderhoorn/Glimpse.Client.Prototype,Glimpse/Glimpse.Client.Prototype,Glimpse/Glimpse.Client.Prototype,Glimpse/Glimpse.Client.Prototype
--- +++ @@ -1,15 +1,11 @@ var React = require('react'), - glimpse = require('glimpse'); + glimpse = require('glimpse'), + EmitterMixin = require('../../lib/components/emitter-mixin.jsx'); module.exports = React.createClass({ - _applicationAdded: function() { - this.forceUpdate(); - }, + m...
cae6acaa93ffc585cd58bb85ad3a6b11f4ce0011
client/src/components/houseInventory.jsx
client/src/components/houseInventory.jsx
import React from 'react'; import ReactDOM from 'react-dom'; import axios from 'axios'; import HouseInventoryList from './HouseInventoryList.jsx'; import Nav from './Nav.jsx'; import AddItem from './AddItem.jsx'; class HouseInventory extends React.Component { constructor(props) { super(props); this.state = ...
import React from 'react'; import ReactDOM from 'react-dom'; import axios from 'axios'; import HouseInventoryList from './HouseInventoryList.jsx'; import Nav from './Nav.jsx'; import AddItem from './AddItem.jsx'; class HouseInventory extends React.Component { constructor(props) { super(props); this.state = ...
Add state to propogate to Nav bar
Add state to propogate to Nav bar
JSX
mit
SentinelsOfMagic/SentinelsOfMagic
--- +++ @@ -12,7 +12,8 @@ this.state = { items: [], houseId: 1, // dummy value for now, will use cookies in future - userId: 4 + userId: 4, + page: 'inventory' }; } @@ -38,7 +39,7 @@ render() { return ( <div> - <Nav /> + <Nav page={this.state.page}/> ...
bb28a3e59151ab4b869ce8fa19c7f5ce4d37f84c
src/request/components/request-view.jsx
src/request/components/request-view.jsx
var React = require('react'), Session = require('./request-session-view.js'), Filter = require('./request-filter-view.js'), Entry = require('./request-entry-view.js'); module.exports = React.createClass({ render: function() { return ( <div className="row"> <div className="col-md-2...
var React = require('react'), Session = require('./request-session-view.js'), Filter = require('./request-filter-view.js'), Entry = require('./request-entry-view.js'); module.exports = React.createClass({ render: function() { return ( <div className="row"> <div className="col-md-2...
Fix up typeo in class names
Fix up typeo in class names
JSX
unknown
Glimpse/Glimpse.Client.Prototype,Glimpse/Glimpse.Client.Prototype,avanderhoorn/Glimpse.Client.Prototype,avanderhoorn/Glimpse.Client.Prototype,Glimpse/Glimpse.Client.Prototype
--- +++ @@ -7,13 +7,13 @@ render: function() { return ( <div className="row"> - <div className="col-md-2 request-session-holder-outter"> + <div className="col-md-2 request-session-holder-outer"> <Session /> </div> - <div className="col-md...
4abaa7e137e60105f025b13e71a704705507ab0d
src/sentry/static/sentry/app/locale.jsx
src/sentry/static/sentry/app/locale.jsx
import Jed from 'jed'; const i18n = new Jed({ 'domain' : 'sentry', // This callback is called when a key is missing 'missing_key_callback' : function(key) { // TODO(dcramer): this should log to Sentry }, 'locale_data' : { // This is the domain key 'sentry' : { // The empty string key is u...
import Jed from 'jed'; import { getTranslations } from './translations'; const i18n = new Jed({ 'domain' : 'sentry', // This callback is called when a key is missing 'missing_key_callback' : function(key) { // TODO(dcramer): this should log to Sentry }, 'locale_data': { // XXX: configure language h...
Load translations in i18n module
Load translations in i18n module
JSX
bsd-3-clause
JamesMura/sentry,mitsuhiko/sentry,ifduyue/sentry,jean/sentry,jean/sentry,daevaorn/sentry,looker/sentry,mvaled/sentry,ifduyue/sentry,gencer/sentry,JamesMura/sentry,jean/sentry,looker/sentry,JamesMura/sentry,ifduyue/sentry,gencer/sentry,daevaorn/sentry,ifduyue/sentry,mvaled/sentry,jean/sentry,JackDanger/sentry,gencer/sen...
--- +++ @@ -1,4 +1,5 @@ import Jed from 'jed'; +import { getTranslations } from './translations'; const i18n = new Jed({ 'domain' : 'sentry', @@ -8,22 +9,9 @@ // TODO(dcramer): this should log to Sentry }, - 'locale_data' : { - // This is the domain key - 'sentry' : { - // The empty strin...
ef7a27946d74666d2a2ed80dae371241359ce521
app/app/components/navbar/NavLinks.jsx
app/app/components/navbar/NavLinks.jsx
import React from 'react'; import {Link} from 'react-router' import auth from '../../utils/auth.jsx' export default class NavLinks extends React.Component { handleClick(e){ $('.active').removeClass('active') e.target.className = 'active'; } render(){ return ( <div> <li onClick={this.handleClick.bind(th...
import React from 'react'; import {Link} from 'react-router' import auth from '../../utils/auth.jsx' export default class NavLinks extends React.Component { handleClick(e){ $('.active').removeClass('active') e.target.className = 'active'; } render(){ if (auth.loggedIn()){ return <LoggedIn handleClick={this...
Add proper formatting for nav links
Add proper formatting for nav links
JSX
mit
taodav/MicroSerfs,taodav/MicroSerfs
--- +++ @@ -8,27 +8,25 @@ e.target.className = 'active'; } render(){ - return ( - <div> - <li onClick={this.handleClick.bind(this)}><Link to="/">Home</Link></li> - {if (auth.loggedIn()){} - <LoggedIn handleClick={this.handleClick} /> - {}} else {} - <NotLoggedIn handleClick={this.handleClic...
0479a24758fa8318b40b37e7c9497b01faf242b0
src/main/webapp/resources/js/pages/projects/linelist/components/TableControlPanel/TemplatesPanel/TemplatesPanel.jsx
src/main/webapp/resources/js/pages/projects/linelist/components/TableControlPanel/TemplatesPanel/TemplatesPanel.jsx
import React from "react"; import PropTypes from "prop-types"; import ImmutablePropTypes from "react-immutable-proptypes"; import { SaveTemplateModal } from "./SaveTemplateModal"; import { TemplateSelect } from "../../TemplateSelect/index"; /** * This component is responsible for rendering all components that handle ...
import React from "react"; import PropTypes from "prop-types"; import ImmutablePropTypes from "react-immutable-proptypes"; import { SaveTemplateModal } from "./SaveTemplateModal"; import { TemplateSelect } from "./TemplateSelect/TemplateSelect"; /** * This component is responsible for rendering all components that ha...
Fix path to template select
Fix path to template select
JSX
apache-2.0
phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida
--- +++ @@ -2,7 +2,7 @@ import PropTypes from "prop-types"; import ImmutablePropTypes from "react-immutable-proptypes"; import { SaveTemplateModal } from "./SaveTemplateModal"; -import { TemplateSelect } from "../../TemplateSelect/index"; +import { TemplateSelect } from "./TemplateSelect/TemplateSelect"; /** ...
c4b42e15b72408ce5b9c45c15f44c71c2393afc2
src/components/Navigation/Navigation.jsx
src/components/Navigation/Navigation.jsx
import React, { Component } from "react"; import Button from "react-md/lib/Buttons"; import NavigationDrawer from "react-md/lib/NavigationDrawers"; import ToolbarActions from "../ToolbarActions/ToolbarActions"; import Footer from "../Footer/Footer"; import GetNavList from "./NavList"; import "./Navigation.scss"; class...
import React, { Component } from "react"; import Button from "react-md/lib/Buttons"; import NavigationDrawer from "react-md/lib/NavigationDrawers"; import ToolbarActions from "../ToolbarActions/ToolbarActions"; import Footer from "../Footer/Footer"; import GetNavList from "./NavList"; import "./Navigation.scss"; class...
Fix drawer open by default
Fix drawer open by default
JSX
mit
tadeuzagallo/verve-website
--- +++ @@ -15,7 +15,7 @@ toolbarThemeType="themed" toolbarTitleMenu={<a ref="logo" href="/"><img src="/logos/logo.svg"/></a>} toolbarActions={<ToolbarActions config={config} />} - desktopDrawerType={NavigationDrawer.DrawerTypes.FULL_HEIGHT} + desktopDrawerType={NavigationDraw...
998d6ba48e7ab3d03a19647fef3a71e4400ce48e
src/js/popup/components/Header.react.jsx
src/js/popup/components/Header.react.jsx
import React from 'react'; export default class Header extends React.Component { /* * Handle onClick event with header image. The current window will be changed to the fokus home page. */ static fokusTab() { window.open('/src/html/home.html').focus(); } constructor(props) { super(props); } ...
import React from 'react'; export default class Header extends React.Component { /* * Handle onClick event with header image. The current window will be changed to the fokus home page. */ static fokusTab() { window.open('/src/html/home.html').focus(); } render() { return ( <div className='...
Remove unnecessary constructor from Header
Remove unnecessary constructor from Header
JSX
mit
williamgrosset/fokus,williamgrosset/fokus,williamgrosset/fokus
--- +++ @@ -9,10 +9,6 @@ window.open('/src/html/home.html').focus(); } - constructor(props) { - super(props); - } - render() { return ( <div className='fokus-link'>
5ba0cd68a8bf679be4eb6c7782787954b6a178d8
src/pages/components/ParticipantEdit.jsx
src/pages/components/ParticipantEdit.jsx
import React from 'react'; import Container from '../../components/Container'; import Message from '../../containers/Message'; import ParticipantEditForm from '../../participants/containers/ParticipantEditForm'; const ParticipantEdit = () => ( <Container> <h1><Message name="participants.changePersonalInformatio...
import Breadcrumb from 'reactstrap/lib/Breadcrumb'; import BreadcrumbItem from 'reactstrap/lib/BreadcrumbItem'; import React from 'react'; import Col from 'reactstrap/lib/Col'; import Row from 'reactstrap/lib/Row'; import Container from '../../components/Container'; import Link from '../../containers/Link'; import Mes...
Make Participant edit page narrow
Make Participant edit page narrow
JSX
mit
just-paja/improtresk-web,just-paja/improtresk-web
--- +++ @@ -1,13 +1,32 @@ +import Breadcrumb from 'reactstrap/lib/Breadcrumb'; +import BreadcrumbItem from 'reactstrap/lib/BreadcrumbItem'; import React from 'react'; +import Col from 'reactstrap/lib/Col'; +import Row from 'reactstrap/lib/Row'; import Container from '../../components/Container'; +import Link from...
b3ca399af2ebff09be7444851741df33ef4cd551
src/react-chayns-tapp_portal/component/TappPortal.jsx
src/react-chayns-tapp_portal/component/TappPortal.jsx
import { createPortal } from 'react-dom'; import PropTypes from 'prop-types'; const TappPortal = ({ children, parent }) => createPortal( children, parent || document.getElementsByClassName('tapp')[0] || document.body, ); TappPortal.propTypes = { children: PropTypes.oneOfType([ PropTypes.node, ...
import { createPortal } from 'react-dom'; import PropTypes from 'prop-types'; const defaultParent = document.getElementsByClassName('tapp')[0] || document.body; let destroyed = false; const TappPortal = ({ children, parent }) => { const parentUsed = document.getElementsByClassName('tapp')[0] || document.body; ...
Fix bug that tappPortal renders into different dom nodes
:bug: Fix bug that tappPortal renders into different dom nodes
JSX
mit
TobitSoftware/chayns-components,TobitSoftware/chayns-components,TobitSoftware/chayns-components
--- +++ @@ -1,10 +1,25 @@ import { createPortal } from 'react-dom'; import PropTypes from 'prop-types'; -const TappPortal = ({ children, parent }) => createPortal( - children, - parent || document.getElementsByClassName('tapp')[0] || document.body, -); +const defaultParent = document.getElementsByClassName(...
2a688afb4cefe436c09e2e170129edb8631bc32e
src/components/ChartBench.jsx
src/components/ChartBench.jsx
import {HotKeys} from "react-hotkeys" import Chart from "../containers/Chart" import EditToolbar from "../containers/EditToolbar" const ChartBench = ({ chordA, chordB, chordC, chordD, chordE, chordF, chordG, moveLeft, moveRight, redo, slug, title, undo, width, }) => ( <article style={{m...
import {HotKeys} from "react-hotkeys" import Chart from "../containers/Chart" import EditToolbar from "../containers/EditToolbar" const ChartBench = ({ chordA, chordB, chordC, chordD, chordE, chordF, chordG, moveLeft, moveRight, redo, slug, title, undo, width, }) => ( <article style={{m...
Enable key shortcuts when toolbar is focused
Enable key shortcuts when toolbar is focused
JSX
agpl-3.0
openchordcharts/openchordcharts-sample-data,openchordcharts/openchordcharts-sample-data,openchordcharts/sample-data,openchordcharts/sample-data
--- +++ @@ -29,7 +29,6 @@ {" "} </small> </h1> - <EditToolbar chartSlug={slug} /> <HotKeys handlers={{ chordA, @@ -45,6 +44,7 @@ undo, }} > + <EditToolbar chartSlug={slug} /> <Chart slug={slug} width={width} /> </HotKeys> </article>
8976ccb8b75ae09b77bc84bd10c66fbcdbdebc5b
app/javascript/app/pages/sectors/sectors-component.jsx
app/javascript/app/pages/sectors/sectors-component.jsx
import React, { PureComponent } from 'react'; import sectorsScreenshot from 'assets/screenshots/sectors-screenshot'; import Teaser from 'components/teaser'; class Sectors extends PureComponent { // eslint-disable-line react/prefer-stateless-function render() { return ( <Teaser screenshot={sectors...
import React, { PureComponent } from 'react'; import sectorsScreenshot from 'assets/screenshots/sectors-screenshot'; import Teaser from 'components/teaser'; class Sectors extends PureComponent { // eslint-disable-line react/prefer-stateless-function render() { return ( <Teaser screenshot={sectors...
Update content of sectoral sectors
Update content of sectoral sectors
JSX
mit
Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch
--- +++ @@ -8,8 +8,8 @@ return ( <Teaser screenshot={sectorsScreenshot} - title="Explore the sectoral cuts" - description="Text to change: Check each the sectoral cuts lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna...
89c4958b9c397c598f24d3dd91ec34c6347bcc55
frontend/course-form.jsx
frontend/course-form.jsx
import React from 'react' import ReactDOM from 'react-dom' import KeywordInput from './components/keyword-input' import TopicInput from './components/topic-input' const element = document.getElementById('div_id_keywords'); let error = element.querySelector('#error_1_id_keywords'); let input = element.querySelector('#i...
import React from 'react' import ReactDOM from 'react-dom' import KeywordInput from './components/keyword-input' import TopicInput from './components/topic-input' /* * Replace keywords and topics form input with react components */ const element = document.getElementById('div_id_keywords'); let error = element.quer...
Add comment to explain the purpose of react view
Add comment to explain the purpose of react view
JSX
mit
p2pu/learning-circles,p2pu/learning-circles,p2pu/learning-circles,p2pu/learning-circles
--- +++ @@ -2,6 +2,10 @@ import ReactDOM from 'react-dom' import KeywordInput from './components/keyword-input' import TopicInput from './components/topic-input' + +/* + * Replace keywords and topics form input with react components + */ const element = document.getElementById('div_id_keywords'); let error = e...
3f2facb52e98f7bee51829161ea89edf131209c8
client/src/components/ChartContainer.jsx
client/src/components/ChartContainer.jsx
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchPlayers } from '../actions.js'; import BarChart from './BarChart.jsx'; export class ChartContainer extends Component { constructor() { super(); } componentDidMount() { const { getPlayers, currentTeam } = this....
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchPlayers } from '../actions.js'; import BarChart from './BarChart.jsx'; export class ChartContainer extends Component { constructor() { super(); } componentDidMount() { const { getPlayers, currentTeam } = this....
Add loading chart when players not defined
Add loading chart when players not defined
JSX
mit
smclendening/nfl-draft,smclendening/nfl-draft
--- +++ @@ -16,11 +16,18 @@ render() { const { players } = this.props; - return ( - <div> - {players ? <BarChart players={players} /> : <p>Loading</p>} + const barChart = ( + <div className="ui container segment"> + <BarChart players={players} /> </div> ) + + con...
e0a88466c82c3f3392aa13a44a9c6e837fedb928
app/scripts/components/GameInstance.jsx
app/scripts/components/GameInstance.jsx
import React from 'react'; class GameInstance extends React.Component { render() { var status_num = Math.floor(Math.random() * 4); var status = "panel"; var status_text = null; switch (status_num) { case 0: status += " panel-danger"; break; case 1: status += " panel-success"; break; ...
import React from 'react'; import { Button } from 'react-bootstrap'; class GameInstance extends React.Component { render() { var status_num = Math.floor(Math.random() * 4); var status = "panel"; var status_text = null; switch (status_num) { case 0: status += " panel-danger"; break; case 1...
Make game instance a button
Make game instance a button
JSX
mit
gnidan/foodtastechess-client,gnidan/foodtastechess-client
--- +++ @@ -1,4 +1,5 @@ import React from 'react'; +import { Button } from 'react-bootstrap'; class GameInstance extends React.Component { render() { @@ -21,11 +22,9 @@ } return ( - <div className={status}> - <div className="panel-heading"> - {status_text} - </div> - ...
e4d57bb510f6c2f3dc281e2b451a57453c368d3b
imports/ui/NavBar.jsx
imports/ui/NavBar.jsx
import createReactClass from 'create-react-class' import React from 'react' import {Link, NavLink as RNavLink} from 'react-router-dom' import {Collapse, Nav, NavItem, NavLink, Navbar, NavbarBrand, NavbarToggler} from 'reactstrap' export default createReactClass({ displayName: 'NavBar', getInitialState: () => ({ ...
import createReactClass from 'create-react-class' import React from 'react' import {Link, NavLink as RNavLink} from 'react-router-dom' import {Collapse, Nav, NavItem, NavLink, Navbar, NavbarBrand, NavbarToggler} from 'reactstrap' export default createReactClass({ displayName: 'NavBar', getInitialState: () => ({ ...
Fix current route highlight in navbar menu
Fix current route highlight in navbar menu
JSX
mit
SpidChain/spidchain-btcr,SpidChain/spidchain-btcr
--- +++ @@ -30,10 +30,10 @@ <Collapse isOpen={this.state.isOpen} navbar> <Nav navbar className='ml-auto'> <NavItem> - <NavLink tag={RNavLink} to='/' onClick={this.close}>Home</NavLink> + <NavLink tag={RNavLink} exact to='/' onClick={this.close}>Home</NavLink>...
41408c82d88e6df19b57ccf324654ae107538b16
client/components/Gauge.jsx
client/components/Gauge.jsx
import React, {Component, PropTypes} from 'react' import 'plotly' export default class Gauge extends Component { constructor (props) { super(props) } render () { return ( <div>{this.props.range[0]}</div> ) } } Gauge.propTypes = { range: PropTypes.array } Gauge.defaultProps = { range: [0, 1] }
import React, {Component, PropTypes} from 'react' import 'plotly' export default class Gauge extends Component { constructor (props) { super(props) const {width, minorGrads, majorGrads} = this.props this.node = this.getDOMNode() // ToDo: scale according to width (use % instead of x/300) this.innerRadius = ...
Add basic flat config & class attributes
Add basic flat config & class attributes
JSX
mit
UVicFH/Telemetry-v2,UVicFH/Telemetry-v2
--- +++ @@ -4,6 +4,24 @@ export default class Gauge extends Component { constructor (props) { super(props) + const {width, minorGrads, majorGrads} = this.props + this.node = this.getDOMNode() + + // ToDo: scale according to width (use % instead of x/300) + this.innerRadius = Math.round(width*130/300) + thi...
41026dad5fdc6c666012df1f5d8d333fb0f30f1c
client/map/MapWrapper.jsx
client/map/MapWrapper.jsx
import React, {Component, PropTypes} from 'react'; import GoogleMap from 'google-map-react'; import LocationMarkers from './MapMarkers'; Markers = new Mongo.Collection("markers"); export default class MapWrapper extends Component { constructor(props) { super(props); } createMapOptions() { return{ minZ...
import React, {Component, PropTypes} from 'react'; import TrackerReact from 'meteor/ultimatejs:tracker-react'; import GoogleMap from 'google-map-react'; import LocationMarkers from './MapMarkers'; Markers = new Mongo.Collection("markers"); export default class MapWrapper extends TrackerReact(Component) { construct...
Add TrackerReact to the project
Add TrackerReact to the project
JSX
mit
reyvera/raceDay,reyvera/raceDay,reyvera/raceDay
--- +++ @@ -1,11 +1,12 @@ import React, {Component, PropTypes} from 'react'; +import TrackerReact from 'meteor/ultimatejs:tracker-react'; import GoogleMap from 'google-map-react'; import LocationMarkers from './MapMarkers'; Markers = new Mongo.Collection("markers"); -export default class MapWrapper extends ...
5e708d98f0fafe92469f9a434fc4c45a81bc0e61
client/components/ChatClient.jsx
client/components/ChatClient.jsx
import React from 'react'; import sendChatMessage from './../actions'; import ChatMessagesDisplay from './ChatMessagesDisplay.jsx'; class ChatClient extends React.Component { constructor(props) { super(props); this.state = { store: props.store, message: '', user: props.username }; } ...
import React from 'react'; import { sendChatMessage } from './../actions'; import ChatMessagesDisplay from './ChatMessagesDisplay.jsx'; class ChatClient extends React.Component { constructor(props) { super(props); this.state = { store: props.store, message: '', user: props.username }; ...
Enable posting to slack from React component's input
Enable posting to slack from React component's input
JSX
mit
enchanted-spotlight/Plato,enchanted-spotlight/Plato
--- +++ @@ -1,5 +1,5 @@ import React from 'react'; -import sendChatMessage from './../actions'; +import { sendChatMessage } from './../actions'; import ChatMessagesDisplay from './ChatMessagesDisplay.jsx'; @@ -23,11 +23,11 @@ // Form is not properly re rendering after setState // Redux...
aa6e7b7585795c84e416e74ac13cd219dcef2047
event-handling/lib/dropdown-component.jsx
event-handling/lib/dropdown-component.jsx
'use strict'; var ButtonDropdown = require('./button-dropdown-component.jsx'), React = require('react'); module.exports = React.createClass({ render: function () { return ( <div> <ButtonDropdown /> </div> ); } });
'use strict'; /* eslint-disable no-unused-vars*/ var ButtonDropdown = require('./button-dropdown-component.jsx'), /* eslint-enable no-unused-vars*/ React = require('react'); module.exports = React.createClass({ render: function () { return ( <div> <ButtonDropdown /> ...
Fix eslint error since, for some reason, it cannot detect when you've used a require'd component in the jsx.
Fix eslint error since, for some reason, it cannot detect when you've used a require'd component in the jsx.
JSX
mit
zpratt/react-tdd-guide
--- +++ @@ -1,6 +1,8 @@ 'use strict'; +/* eslint-disable no-unused-vars*/ var ButtonDropdown = require('./button-dropdown-component.jsx'), +/* eslint-enable no-unused-vars*/ React = require('react');
5a7a5a1dfcdff503bfcc09d24a7303649c7e3fad
frontend/src/components/home.jsx
frontend/src/components/home.jsx
import React from 'react'; const Home = (props) => <div className="content--wrapper"> <div className="content--header"> <div className="content--header-spacing" /> <div className="content--header-breadcrumbs"> <ul> <li>Home</li> <...
import React from 'react'; const Home = (props) => <div className="content--wrapper"> <div className="content--header"> <div className="content--header-spacing" /> <div className="content--header-breadcrumbs"> <ul> <li>Home</li> <...
Fix left word because on mobile the nav isn't shown on the left side anymore
Fix left word because on mobile the nav isn't shown on the left side anymore
JSX
agpl-3.0
wearespindle/flindt,wearespindle/flindt,wearespindle/flindt
--- +++ @@ -15,7 +15,7 @@ <div className="content"> <h1>Welcome at Flindt!</h1> - <p>Use the left navigation bar to check for open feedback requests or received feedback!</p> + <p>Use the navigation bar to check for open feedback requests or received feedback!</p> ...
9a94b20a1400cbeb095886749516224cd2a2d16b
src/containers/Posts.jsx
src/containers/Posts.jsx
import React from 'react' import classNames from 'classnames' import { asyncConnect } from 'redux-connect' import Helmet from 'react-helmet' import { Single } from './' import { Loading, NotFound, Pagination, Post, Summary } from '../components' import { changePost, fetchPosts } from '../actions/PostsActions...
import React from 'react' import classNames from 'classnames' import { asyncConnect } from 'redux-connect' import Helmet from 'react-helmet' import { Single } from './' import { Loading, NotFound, Pagination, Post, Summary } from '../components' import { changePost, fetchPosts } from '../actions/PostsActions...
Change page 1 title to same on home page
Change page 1 title to same on home page
JSX
mit
nomkhonwaan/nomkhonwaan.github.io
--- +++ @@ -26,7 +26,9 @@ return ( <div> <Helmet - title={ `Page ${page}` } /> + title={ (page === 1 + ? 'Nomkhonwaan' + : `Page ${page}`) } /> <div className="posts"> { (isFetching
5f5d29b7818005907a01b2013579efea5da90ea4
src/components/elements/search-form.jsx
src/components/elements/search-form.jsx
import React from 'react'; import { connect } from 'react-redux'; import { browserHistory } from 'react-router'; import classnames from 'classnames'; import { preventDefault } from '../../utils'; export default class SearchForm extends React.Component { constructor(props) { super(props); this.state = { ...
import React from 'react'; import { connect } from 'react-redux'; import { browserHistory } from 'react-router'; import classnames from 'classnames'; import { preventDefault } from '../../utils'; export default class SearchForm extends React.Component { constructor(props) { super(props); this.state = { ...
Replace string ref with function in SearchForm
[no-string-refs] Replace string ref with function in SearchForm
JSX
mit
clbn/freefeed-gamma,clbn/freefeed-gamma,clbn/freefeed-gamma
--- +++ @@ -14,6 +14,10 @@ }; } + refSearchQuery = (input) => { + this.searchQuery = input; + }; + focusForm = () => { this.setState({ isFocused: true }); }; @@ -23,7 +27,7 @@ }; submitForm = () => { - const query = this.refs.searchQuery.value; + const query = this.searchQuery....
2a4290b888bd8a2275098203a61498a9b285a709
src/client/components/MyInvestmentProjects/InvestmentProjectSummary.jsx
src/client/components/MyInvestmentProjects/InvestmentProjectSummary.jsx
import React from 'react' import PropTypes from 'prop-types' import { PURPLE, ORANGE, BLUE, YELLOW, GREEN } from 'govuk-colours' import { connect } from 'react-redux' import PieChart from '../PieChart' import { ID as CHECK_INVESTMENTS_ID } from '../PersonalisedDashboard/state' import { ID } from './state' const segm...
import React from 'react' import PropTypes from 'prop-types' import { PURPLE, ORANGE, BLUE, YELLOW, GREEN } from 'govuk-colours' import { connect } from 'react-redux' import PieChart from '../PieChart' import { ID as CHECK_INVESTMENTS_ID } from '../PersonalisedDashboard/state' import { ID as INVESTMENT_PROJECTS_ID } ...
Refactor for ease of readability
Refactor for ease of readability
JSX
mit
uktrade/data-hub-frontend,uktrade/data-hub-frontend,uktrade/data-hub-fe-beta2,uktrade/data-hub-frontend,uktrade/data-hub-fe-beta2
--- +++ @@ -6,23 +6,23 @@ import PieChart from '../PieChart' import { ID as CHECK_INVESTMENTS_ID } from '../PersonalisedDashboard/state' -import { ID } from './state' +import { ID as INVESTMENT_PROJECTS_ID } from './state' const segmentColours = [PURPLE, ORANGE, BLUE, YELLOW, GREEN] const state2props = (sta...
3e0666567296026c2537d111041810c728f14c4e
indico/modules/rb_new/client/js/setup.jsx
indico/modules/rb_new/client/js/setup.jsx
import ReactDOM from 'react-dom'; import React from 'react'; import {Provider} from 'react-redux'; import Overridable from 'indico/react/util/Overridable'; import setupUserMenu from 'indico/react/containers/UserMenu'; import App from './components/App'; import createRBStore, {history} from './store'; import {init} fr...
import ReactDOM from 'react-dom'; import React from 'react'; import {Provider} from 'react-redux'; import Overridable from 'indico/react/util/Overridable'; import setupUserMenu from 'indico/react/containers/UserMenu'; import App from './components/App'; import createRBStore, {history} from './store'; import {init} fr...
Refresh data after leaving RB administration
Refresh data after leaving RB administration
JSX
mit
mvidalgarcia/indico,OmeGak/indico,mvidalgarcia/indico,indico/indico,mic4ael/indico,DirkHoffmann/indico,indico/indico,ThiefMaster/indico,pferreir/indico,OmeGak/indico,OmeGak/indico,ThiefMaster/indico,indico/indico,mvidalgarcia/indico,pferreir/indico,mic4ael/indico,mic4ael/indico,DirkHoffmann/indico,pferreir/indico,Thief...
--- +++ @@ -10,6 +10,7 @@ import {init} from './actions'; import {selectors as configSelectors} from './common/config'; import {selectors as userSelectors} from './common/user'; +import {actions as roomsActions} from './common/rooms'; import 'semantic-ui-css/semantic.css'; import '../styles/main.scss'; @@ -19,...
c3aaa2560aa0a339d23daed01d8a414783385baa
src/client/components/DeckBuilder.jsx
src/client/components/DeckBuilder.jsx
import React from 'react'; import Main from './Main'; import BigPane from './Main/BigPane'; import SmallPane from './Main/SmallPane'; import DeckCardList from '../containers/Card/deck-CardList'; import SearchCardBlockList from '../containers/Card/search-CardBlockList'; import CardBlockList from '../components/Card/Car...
import React from 'react'; import Main from './Main'; import BigPane from './Main/BigPane'; import SmallPane from './Main/SmallPane'; import DeckCardList from '../containers/Card/deck-CardList'; import SearchCardBlockList from '../containers/Card/search-CardBlockList'; import CardBlockList from '../components/Card/Car...
Add instant and sorcery display
Add instant and sorcery display
JSX
agpl-3.0
Narxem/crispy-magic-front,Narxem/crispy-magic-front
--- +++ @@ -17,7 +17,7 @@ <SmallPane> <DeckCardList containerToAdd="deckbuilder" - categories={['creature&planeswalker', 'artefact&enchantment', 'land']} + categories={['creature&planeswalker', 'artefact&enchantment', 'sorcery&instant', 'land']} /> </Smal...
a466ba91c473f7259973c119aedf53903e2e3fbf
src/js/components/App.jsx
src/js/components/App.jsx
import Appconfig from '../appconfig'; import React from 'react'; import Router from 'react-router'; import { RouteHandler } from 'react-router'; import UserActions from '../actions/UserActions'; var App = React.createClass({ mixins: [Router.Navigation], componentWillMount() { if (!Appconfig.authRequired) retu...
import Appconfig from '../appconfig'; import React from 'react'; import Router from 'react-router'; import { RouteHandler } from 'react-router'; import UserActions from '../actions/UserActions'; var App = React.createClass({ mixins: [Router.Navigation], componentWillMount() { if (!Appconfig.authRequired) retu...
Fix race condition for transitions
Fix race condition for transitions When redirecting back from a successful login, onAuth gets called twice, once with `null` and once with valid user data, and both `transitionTo`'s get called. Ensure the transition to `index` gets called later by using `setTimeout`.
JSX
mit
kentor/notejs-react,kentor/notejs-react,kentor/notejs-react
--- +++ @@ -13,7 +13,9 @@ Appconfig.firebaseRef.onAuth((jsonUser) => { if (jsonUser) { UserActions.loggedIn(jsonUser); - this.transitionTo('index'); + setTimeout(() => { + this.transitionTo('index'); + }, 0); } else { UserActions.loggedOut(); ...
660b99cf33a89eba9132760b3234a1fe846f958e
src/containers/NoAuthLandingPage/index.jsx
src/containers/NoAuthLandingPage/index.jsx
import React from 'react' import { Link } from 'react-router-dom' import {connect} from 'react-redux' import { bindActionCreators } from 'redux' import * as actionCreators from '../../actions/howItWorksActionCreators' import css from './NoAuthLandingPage.scss' import Hero from '../../components/Hero' import NoAuthS...
import React from 'react' import { Link } from 'react-router-dom' import {connect} from 'react-redux' import { bindActionCreators } from 'redux' import * as actionCreators from '../../actions/howItWorksActionCreators' import css from './NoAuthLandingPage.scss' import Hero from '../../components/Hero' import NoAuth...
Bring in state of NoAuthSubNavigation to dynamnically render whats happening section user clicks tab
Bring in state of NoAuthSubNavigation to dynamnically render whats happening section user clicks tab
JSX
mit
Code-For-Change/GivingWeb,Code-For-Change/GivingWeb
--- +++ @@ -4,6 +4,7 @@ import { bindActionCreators } from 'redux' import * as actionCreators from '../../actions/howItWorksActionCreators' + import css from './NoAuthLandingPage.scss' @@ -20,6 +21,12 @@ return <HowItWorks /> } } + + renderSubNavigationSelection() { + if (this.props.currentLandingP...
51aee49d56497957a74ab5212faafb61e8c3dd63
app/components/Thanks.jsx
app/components/Thanks.jsx
import React from 'react'; import { withRouter } from 'react-router'; const Thanks = React.createClass({ goBack() { this.props.router.goBack(); }, render() { return <div className="content-container"> <div className="thanks-container"> <div className="back-container"> <span ...
import React from 'react'; import { withRouter } from 'react-router'; import CircularProgress from 'material-ui/CircularProgress'; const Thanks = React.createClass({ goBack() { this.props.router.goBack(); }, render() { return <div className="content-container"> <div className="thanks-container"> ...
Add progress circle to thanks component
Add progress circle to thanks component
JSX
mit
spanningtime/voque,spanningtime/voque
--- +++ @@ -1,5 +1,7 @@ import React from 'react'; import { withRouter } from 'react-router'; +import CircularProgress from 'material-ui/CircularProgress'; + const Thanks = React.createClass({ goBack() { @@ -30,6 +32,10 @@ <h6 className="lyrics"> {this.props.lyrics} </h6> + ...
fbaf842b7b41bab1bd997ccebe187a02b39d8c9c
src/code/moviepreview.jsx
src/code/moviepreview.jsx
/** @jsx React.DOM */ 'use strict' require("../css/moviepreview.css") var React = require('react'); var $ = require('jquery'); module.exports = React.createClass({ displayName: 'MoviePreview', getInitialState: function(){ return { thumb: null }; }, componentDidMount: functio...
/** @jsx React.DOM */ 'use strict' require("../css/moviepreview.css") var React = require('react'); var $ = require('jquery'); module.exports = React.createClass({ displayName: 'MoviePreview', getInitialState: function(){ return { thumb: null }; }, componentDidMount: functio...
Use same protocol as host page
Use same protocol as host page
JSX
mit
salicylic/movie-db-viewer,salicylic/movie-db-viewer
--- +++ @@ -13,7 +13,7 @@ }, componentDidMount: function() { var self = this; - $.getJSON('http://vimeo.com/api/v2/video/' + this.props.videoId + '.json').done(function(response){ + $.getJSON('//vimeo.com/api/v2/video/' + this.props.videoId + '.json').done(function(response){ ...
b68a5beec0d25ddc64c89067eb5d90380dfe225f
src/components/Header.jsx
src/components/Header.jsx
const React = window.React = require('react'); export default class Header extends React.Component { constructor(props) { super(props); this.listenId = this.props.d.listenSession(() => { this.forceUpdate(); }); } componentWillUnmount() { this.props.d.unlistenSession(this.listenId); } re...
const React = window.React = require('react'); export default class Header extends React.Component { constructor(props) { super(props); this.listenId = this.props.d.listenSession(() => { this.forceUpdate(); }); } componentWillUnmount() { this.props.d.unlistenSession(this.listenId); } re...
Fix awkward spacing in custom network header bar
Fix awkward spacing in custom network header bar
JSX
apache-2.0
irisli/stellarterm,irisli/stellarterm,irisli/stellarterm
--- +++ @@ -15,9 +15,11 @@ console.log(this.props.network) if (!this.props.network.isDefault) { networkBar = <div className="so-back HeaderNetworkBarBack"> - <div className="so-chunk HeaderNetworkBar"> - <span>Horizon url: <strong>{this.props.network.horizonUrl}</strong></span> - ...
2bba73ee53dd56ee3b7df2b21894667ba7ab806d
assets-server/components/shared/header.jsx
assets-server/components/shared/header.jsx
import React from 'react/addons'; import InlineStyles from 'react-style'; const inlineStyles = InlineStyles.create({ ISContainer : { padding : '8px 0 0 0', maxWidth : '1218px', margin : '0 auto' } }); export default class Header extends React.Component { constructor(props) { super(props); }, ...
import React from 'react/addons'; import InlineStyles from 'react-style'; const inlineStyles = InlineStyles.create({ ISContainer : { padding : '8px 0 0 0', maxWidth : '1218px', margin : '0 auto' } }); export default class Header extends React.Component { constructor(props) { super(props); } ...
Remove commas in Header class
Remove commas in Header class
JSX
mit
renemonroy/es6-scaffold,renemonroy/es6-scaffold
--- +++ @@ -12,7 +12,7 @@ export default class Header extends React.Component { constructor(props) { super(props); - }, + } render() { const { heading } = this.props, { ISContainer } = this.styles; @@ -24,4 +24,4 @@ </header> ); } -}; +}
c2134a37a0e85bcc3c9b626ccecb72f6b02c314b
client/activities/activity-back-button.jsx
client/activities/activity-back-button.jsx
import React from 'react' import { connect } from 'react-redux' import styled from 'styled-components' import { goBack } from '../activities/action-creators' import IconButton from '../material/icon-button.jsx' import BackIcon from '../icons/material/baseline-arrow_back-24px.svg' const BackButton = styled(IconButto...
import React from 'react' import { connect } from 'react-redux' import styled from 'styled-components' import { goBack } from '../activities/action-creators' import IconButton from '../material/icon-button.jsx' import BackIcon from '../icons/material/baseline-arrow_back-24px.svg' const BackButton = styled(IconButto...
Simplify the title on the ActivityBackButton. This better matches the general pattern for titles (and works better for accessibility tools).
Simplify the title on the ActivityBackButton. This better matches the general pattern for titles (and works better for accessibility tools).
JSX
mit
ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery
--- +++ @@ -19,7 +19,7 @@ if (activityOverlay.history.size < 2) return null - return <BackButton icon={<BackIcon />} title='Click to go back' onClick={this.onBackClick} /> + return <BackButton icon={<BackIcon />} title='Back' onClick={this.onBackClick} /> } onBackClick = () => {
2d7a68938dba13f00b510acf7992fa7f4fe1f5f5
imports/ui/components/FormMessage.jsx
imports/ui/components/FormMessage.jsx
import React from 'react'; import { Accounts } from 'meteor/accounts-base'; export class FormMessage extends React.Component { render () { let { message, type, className = "message", style = {} } = this.props; return message ? ( <div style={ style }  className={[ className, type ].join(' ')}...
import React from 'react'; import { Accounts } from 'meteor/accounts-base'; export class FormMessage extends React.Component { render () { let { message, type, className = "message", style = {} } = this.props; message = _.isObject(message) ? message.message : message; // If message is object, then try to get...
Fix issue, when message is object
Fix issue, when message is object I don`t now, what happend and in witch version of meteor. But I`ve had troubles with meteor/std:accounts-ui and zetoff:accounts-material-ui It`s fast simple fix, checked on meteor 1.4.1 and 1.4.2
JSX
mit
studiointeract/accounts-ui
--- +++ @@ -4,6 +4,7 @@ export class FormMessage extends React.Component { render () { let { message, type, className = "message", style = {} } = this.props; + message = _.isObject(message) ? message.message : message; // If message is object, then try to get message from it return message ? ( ...
e672ff6016a02e98e3ff2c5834c9d079a6feaf7a
examples/panel/stories.jsx
examples/panel/stories.jsx
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import { PANEL } from '../../utilities/constants'; import Filtering from './filtering'; import FilteringLocked from './filtering-locked'; import FilteringError from './filtering-error'; storiesOf(PANEL, module) .addDecorator((getStory) => ( ...
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import { PANEL } from '../../utilities/constants'; import Filtering from './filtering'; import FilteringLocked from './filtering-locked'; import FilteringError from './filtering-error'; storiesOf(PANEL, module) .addDecorator((getStory) => ( ...
Add styling to Panel story
Add styling to Panel story
JSX
bsd-3-clause
salesforce/design-system-react,salesforce/design-system-react,salesforce/design-system-react
--- +++ @@ -8,7 +8,7 @@ storiesOf(PANEL, module) .addDecorator((getStory) => ( - <div className="slds-grid"> + <div className="slds-grid" style={{ backgroundColor: '#ccc', padding: '20px' }}> <div className="slds-col--bump-left" style={{ width: '420px' }}
60823e621a74ce4d8dd88e3838892491c9ec30df
lib/jsx/networkEventSubscribe.jsx
lib/jsx/networkEventSubscribe.jsx
/* global params, ActionDescriptor, stringIDToTypeID, executeAction, DialogModes */ // Expected params: // - events: Array of strings representing event names var i, actionDescriptor; actionDescriptor = new ActionDescriptor(); actionDescriptor.putString(stringIDToTypeID("version"), "1.0.0"); for (i = 0; i < params....
/* global params, ActionDescriptor, stringIDToTypeID, executeAction, DialogModes */ // Expected params: // - events: Array of strings representing event names var i, actionDescriptor; actionDescriptor = new ActionDescriptor(); //actionDescriptor.putString(stringIDToTypeID("version"), "1.0.0"); for (i = 0; i < param...
Use old version of the protocol
Use old version of the protocol Until PS sends the imageChanged tag, must use the old version.
JSX
mit
camikazegreen/photoshop-scrambler,alesitalugo/generator-core,camikazegreen/photoshop-scrambler,jaredadobe/generator,adobe-photoshop/generator-core,codeorelse/generator-core,camikazegreen/photoshop-scrambler,kristjanmik/generator-assets,MikkoH/generator-core
--- +++ @@ -5,7 +5,7 @@ var i, actionDescriptor; actionDescriptor = new ActionDescriptor(); -actionDescriptor.putString(stringIDToTypeID("version"), "1.0.0"); +//actionDescriptor.putString(stringIDToTypeID("version"), "1.0.0"); for (i = 0; i < params.events.length; i++) { actionDescriptor.putClass(stringIDT...
492796fb963461050d7d953773455d29e34f1bf0
src/js/refugee-map-borders-layer.jsx
src/js/refugee-map-borders-layer.jsx
var React = require('react'); var d3 = require('d3'); var RefugeeMapBordersLayer = React.createClass({ getDefaultProps: function() { return {subunitClass: 'subunit'} }, componentDidMount: function() { this.drawBorders(); }, drawBorders: function() { var path = d3.geo.path().projection(this.props.proje...
var React = require('react'); var d3 = require('d3'); var RefugeeMapBordersLayer = React.createClass({ getDefaultProps: function() { return {subunitClass: 'subunit'} }, componentDidMount: function() { }, onMouseOver: function(country) { //console.log("over country" + country); ...
Move DOM management in borders layer to React from D3
Move DOM management in borders layer to React from D3
JSX
mit
lucified/lucify-refugees,lucified/lucify-refugees,lucified/lucify-refugees,lucified/lucify-refugees
--- +++ @@ -6,42 +6,56 @@ var RefugeeMapBordersLayer = React.createClass({ - getDefaultProps: function() { - return {subunitClass: 'subunit'} - }, - - componentDidMount: function() { - this.drawBorders(); - }, - - drawBorders: function() { - var path = d3.geo.path().projection(this.props.projection); - - v...
211fcdb3305bf02ccc624c52c1168e47142c7dae
client/src/components/BeatSequencer/index.jsx
client/src/components/BeatSequencer/index.jsx
import React, { Component } from 'react'; import Sequence from './Sequence'; import PlayStopButton from './PlayStopButton' /** * logic of: * - changing BPM * - beat grouping * - pass sounds to sequence */ class BeatSequencer extends Component { constructor(props) { super(props); this.state = { is...
import React, { Component } from 'react'; import { Transport } from 'tone'; import Sequence from './Sequence'; import PlayStopButton from './PlayStopButton'; /** * logic of: * - changing BPM * - beat grouping * - pass sounds to sequence */ class BeatSequencer extends Component { constructor(props) { super(p...
Use Tone.Transport in main BeatSequencer & pass state to Sequence
Use Tone.Transport in main BeatSequencer & pass state to Sequence
JSX
mit
NerdDiffer/reprise,NerdDiffer/reprise,NerdDiffer/reprise
--- +++ @@ -1,6 +1,7 @@ import React, { Component } from 'react'; +import { Transport } from 'tone'; import Sequence from './Sequence'; -import PlayStopButton from './PlayStopButton' +import PlayStopButton from './PlayStopButton'; /** * logic of: @@ -20,11 +21,22 @@ } togglePlaying() { - const isPla...
6ba0cb60ca8263a3fdac99d161333b1f78681a37
common/components/forms/HiddenFormFields.jsx
common/components/forms/HiddenFormFields.jsx
// @flow import React from "react"; import type { Dictionary, KeyValuePair } from "../types/Generics.jsx"; import _ from "lodash"; type DictionaryArgs = {| sourceDict: Dictionary<string>, |}; type SourceFieldsArgs<T> = {| sourceObject: ?T, fields: Dictionary<(T) => string>, |}; type Props<T> = DictionaryArgs ...
// @flow import React from "react"; import type { Dictionary, KeyValuePair } from "../types/Generics.jsx"; import _ from "lodash"; type DictionaryArgs = {| sourceDict: Dictionary<string>, |}; type SourceFieldsArgs<T> = {| sourceObject: ?T, fields: Dictionary<(T) => string>, |}; type Props<T> = DictionaryArgs ...
Fix LocationAutocomplete hidden form fields
Fix LocationAutocomplete hidden form fields
JSX
mit
DemocracyLab/CivicTechExchange,DemocracyLab/CivicTechExchange,DemocracyLab/CivicTechExchange,DemocracyLab/CivicTechExchange
--- +++ @@ -26,12 +26,10 @@ const nameValues: $ReadOnlyArray<KeyValuePair<string>> = this.props .sourceDict ? _.entries(this.props.sourceDict) - : _.entries( - _.keys(this.props.fields).map(fieldName => [ - fieldName, - this.props.fields[fieldName](this.props.sou...
f033ee417ec811bf2b06cbece9fa1fbf0a2dce56
src/framework/box/Box.jsx
src/framework/box/Box.jsx
import classNames from 'classnames'; import React from 'react'; import BaseBox from '../base/box/BaseBox.jsx'; const Box = props => { const classes = classNames(Box.defaultProps.classes, props.classes); const extendedProps = Object.assign({}, props, { classes, }); return ( <BaseBox {...extende...
import classNames from 'classnames/dedupe'; import React from 'react'; import BaseBox from '../base/box/BaseBox.jsx'; const Box = props => { const classes = classNames(Box.defaultProps.classes, props.classes); const extendedProps = Object.assign({}, props, { classes, }); return ( <BaseBox {......
Create box component - using classnames/dedupe to prevent classes added multiple times
[SDX-1041] Create box component - using classnames/dedupe to prevent classes added multiple times
JSX
mit
smaato/ui-framework
--- +++ @@ -1,5 +1,5 @@ -import classNames from 'classnames'; +import classNames from 'classnames/dedupe'; import React from 'react'; import BaseBox from '../base/box/BaseBox.jsx';
dabd951399891ec8c2b0f73b89bea957c064ee29
src/client/components/ProgressIndicator.jsx
src/client/components/ProgressIndicator.jsx
import React from 'react' import LoadingBox from '@govuk-react/loading-box' import styled from 'styled-components' const StyledRoot = styled.div({ textAlign: 'center', }) const StyledLoadingBox = styled(LoadingBox)({ height: '30px', }) const ProgressIndicator = ({ message }) => ( <StyledRoot> <StyledLoadin...
import React from 'react' import LoadingBox from '@govuk-react/loading-box' import { SPACING } from '@govuk-react/constants' import styled from 'styled-components' const StyledRoot = styled.div({ textAlign: 'center', }) const StyledLoadingBox = styled(LoadingBox)({ height: SPACING.SCALE_5, marginTop: SPACING.SC...
Reposition the loading indicator slightly further down the page
Reposition the loading indicator slightly further down the page
JSX
mit
uktrade/data-hub-frontend,uktrade/data-hub-frontend,uktrade/data-hub-fe-beta2,uktrade/data-hub-frontend,uktrade/data-hub-fe-beta2
--- +++ @@ -1,5 +1,6 @@ import React from 'react' import LoadingBox from '@govuk-react/loading-box' +import { SPACING } from '@govuk-react/constants' import styled from 'styled-components' const StyledRoot = styled.div({ @@ -7,7 +8,9 @@ }) const StyledLoadingBox = styled(LoadingBox)({ - height: '30px', + ...
ddfe4b6d45fd09775b064de0ab0bc186bcc2f944
src/components/Layout/FilterInput/index.jsx
src/components/Layout/FilterInput/index.jsx
// @flow import React, { Component } from 'react' type Props = { onEnter?: ?Function, value: string, } class FilterInput extends Component<Props> { onEnter = (string) => { if (this.props.onEnter) this.props.onEnter(string) } onKeyPress = (event) => { if (event.key === 'Enter') this.onEn...
// @flow import React, { Component } from 'react' type Props = { onEnter?: ?Function, value: string, } type State = { value: string, } class FilterInput extends Component<Props, State> { constructor(props: Props) { super(props) this.state = { value: props.value, } } componentWillReceiv...
Fix for a filter input bug
Fix for a filter input bug
JSX
mit
emwalker/digraffe,emwalker/digraffe,emwalker/digraffe
--- +++ @@ -6,7 +6,26 @@ value: string, } -class FilterInput extends Component<Props> { +type State = { + value: string, +} + +class FilterInput extends Component<Props, State> { + constructor(props: Props) { + super(props) + this.state = { + value: props.value, + } + } + + componentWillReceiv...
4b58bab78c9ba7ef7934837344c9d40e2aa079d1
application/ui/components/resource.jsx
application/ui/components/resource.jsx
/** @jsx React.DOM */ 'use strict'; var React = require('react'); var cx = require('react/lib/cx'); var Method = require('./method'); module.exports = React.createClass({ displayName : 'Resource', propTypes : { name : React.PropTypes.string.isRequired, methods : React.PropTypes.array...
/** @jsx React.DOM */ 'use strict'; var React = require('react'); var cx = require('react/lib/cx'); var Method = require('./method'); module.exports = React.createClass({ displayName : 'Resource', propTypes : { name : React.PropTypes.string.isRequired, methods : React.PropTypes.array...
Fix formatting that Sublime Text doesn't like.
Fix formatting that Sublime Text doesn't like.
JSX
mit
synapsestudios/lively,synapsestudios/lively
--- +++ @@ -23,8 +23,7 @@ uri={method.uri} oauth={method.oauth} params={method.params} - oauthStore={this.props.oauthStore} - />; + oauthStore={this.props.oauthStore}/>; }, render...
92848043417da1bea5e622e998a61c9d87ec4195
src/js/components/happening-now/index.jsx
src/js/components/happening-now/index.jsx
import debug from "debug"; import React, { Component } from "react"; import Track from "../track"; const log = debug("schedule:components:happening-now"); export class HappeningNow extends Component { updateCurrentSessions(props) { const { getState } = props; const { current, tracks, sessions } = ...
import debug from "debug"; import React, { Component } from "react"; import Track from "../track"; const log = debug("schedule:components:happening-now"); export class HappeningNow extends Component { updateCurrentSessions(props) { const { getState } = props; const { current, tracks, sessions } = ...
Add cure for empty current sessions page
Add cure for empty current sessions page
JSX
mit
nikcorg/schedule,nikcorg/schedule,nikcorg/schedule
--- +++ @@ -32,13 +32,15 @@ return ( <div className="current-sessions"> { - sessions.map(t => { + 0 < sessions.length + ? sessions.map(t => { return ( <div key={t.name}...
181e7cd8c913a5250b9468a94bd8686e3b914620
src/components/hptrack.jsx
src/components/hptrack.jsx
import React from 'react'; import HpBlock from './hpblock'; import Button from './button'; import helpers from '../utilities/helpers'; // import style from '../style/hptrack.css'; export default function HpTrack(props) { const { calculateHp, setSelectedMonster } = props; const blocks = props.monsters.map((monster,...
import React from 'react'; import HpBlock from './hpblock'; import Button from './button'; import ButtonClose from './button-close'; import helpers from '../utilities/helpers'; import style from '../style/hptrack.css'; export default function HpTrack(props) { const { calculateHp, deleteMonster, setSelectedMonster } ...
Add delete button and function
Add delete button and function
JSX
mit
jkrayer/summoner,jkrayer/summoner
--- +++ @@ -1,21 +1,22 @@ import React from 'react'; import HpBlock from './hpblock'; import Button from './button'; +import ButtonClose from './button-close'; import helpers from '../utilities/helpers'; -// import style from '../style/hptrack.css'; +import style from '../style/hptrack.css'; export default fun...
c46983b8173a9a29d11f3d3481c34f803e54e9d5
src/_app/player/components/player-status.jsx
src/_app/player/components/player-status.jsx
import React, { Component, PropTypes } from 'react'; class PlayerStatus extends Component { render() { const { activeSong } = this.props; return ( <div className="player-status"> <div className="song-status"> <h4>{activeSong.title}</h4> <p>{activeSong.url}</p> </div>...
import React, { Component, PropTypes } from 'react'; class PlayerStatus extends Component { render() { const { activeSong } = this.props; return ( <div className="player-status"> <div className="song-status"> <h4>{activeSong.title}</h4> </div> </div> ); } } Player...
Remove url from player status
Remove url from player status
JSX
mit
yanglinz/reddio,yanglinz/reddio
--- +++ @@ -7,7 +7,6 @@ <div className="player-status"> <div className="song-status"> <h4>{activeSong.title}</h4> - <p>{activeSong.url}</p> </div> </div> );
19b0bd9dd7126aafaa8cf57d54b20b267c283b73
infotv/frontend/src/overlay.jsx
infotv/frontend/src/overlay.jsx
import React from "react"; import moment from "moment"; import DatumManager from "./datum"; export default class OverlayComponent extends React.Component { componentWillMount() { this.clockUpdateTimer = setInterval(() => { this.forceUpdate(); }, 5000); } componentWillUnmount() { clearInter...
import React from "react"; import moment from "moment"; import _ from "lodash"; import DatumManager from "./datum"; export default class OverlayComponent extends React.Component { componentWillMount() { this.clockUpdateTimer = setInterval(() => { this.forceUpdate(); }, 5000); } componentWillUnmoun...
Support weather with 0 degrees
Support weather with 0 degrees
JSX
mit
kcsry/infotv,kcsry/infotv,kcsry/infotv
--- +++ @@ -1,5 +1,6 @@ import React from "react"; import moment from "moment"; +import _ from "lodash"; import DatumManager from "./datum"; export default class OverlayComponent extends React.Component { @@ -29,10 +30,17 @@ icon = null; } - return (<div className="weather"> - ...
f7973351133797c8d4406e400c9fc6b04ae60e8c
docs/src/Examples/Demo/BasicDatePicker.jsx
docs/src/Examples/Demo/BasicDatePicker.jsx
import React, { Fragment, PureComponent } from 'react'; import { DatePicker } from 'material-ui-pickers'; import { FormControl } from 'material-ui'; export default class BasicDatePicker extends PureComponent { state = { selectedDate: new Date(), } handleDateChange = (date) => { this.setState({ selectedD...
import React, { Fragment, PureComponent } from 'react'; import { DatePicker } from 'material-ui-pickers'; g; export default class BasicDatePicker extends PureComponent { state = { selectedDate: new Date(), } handleDateChange = (date) => { this.setState({ selectedDate: date }); } render() { co...
Remove testing fixture from DatePicker example
Remove testing fixture from DatePicker example
JSX
mit
mbrookes/material-ui,callemall/material-ui,mbrookes/material-ui,dmtrKovalenko/material-ui-pickers,mui-org/material-ui,dmtrKovalenko/material-ui-pickers,callemall/material-ui,oliviertassinari/material-ui,oliviertassinari/material-ui,mui-org/material-ui,mui-org/material-ui,oliviertassinari/material-ui,mbrookes/material-u...
--- +++ @@ -1,6 +1,7 @@ import React, { Fragment, PureComponent } from 'react'; import { DatePicker } from 'material-ui-pickers'; -import { FormControl } from 'material-ui'; + + g; export default class BasicDatePicker extends PureComponent { state = { @@ -17,15 +18,12 @@ return ( <Fragment> ...
a85d1a36c508b416c1be6552f844458792175479
ui/src/components/Toolbar/PagingButtons.jsx
ui/src/components/Toolbar/PagingButtons.jsx
import React from 'react'; import { FormattedMessage } from 'react-intl'; import { ButtonGroup, Button, AnchorButton } from "@blueprintjs/core"; import './PagingButtons.css'; export default class extends React.Component { render() { const { location: loc } = this.props; if (this.props.pageNumber && this.pro...
import React from 'react'; import { FormattedMessage } from 'react-intl'; import queryString from 'query-string'; import { ButtonGroup, Button, AnchorButton } from "@blueprintjs/core"; import './PagingButtons.css'; export default class extends React.Component { render() { const { pageNumber, pageTotal, location...
Fix for paging buttons to preserve the hashpath
Fix for paging buttons to preserve the hashpath
JSX
mit
alephdata/aleph,pudo/aleph,pudo/aleph,alephdata/aleph,alephdata/aleph,pudo/aleph,alephdata/aleph,alephdata/aleph
--- +++ @@ -1,28 +1,41 @@ import React from 'react'; import { FormattedMessage } from 'react-intl'; +import queryString from 'query-string'; import { ButtonGroup, Button, AnchorButton } from "@blueprintjs/core"; import './PagingButtons.css'; export default class extends React.Component { render() { - c...
91b703a09b7d1252293b5525874c51dc011790e8
react/frontpage/components/PromoBanner.jsx
react/frontpage/components/PromoBanner.jsx
// PromoBanner.jsx // A carousel of various promotion related material (ie Show of the Month, Ticket Giveaways, ect) import React from 'react'; // Open-Source Components import Slider from 'react-slick'; // Common Components import RectImage from '../../common/RectImage.jsx'; import { Link } from 'react-router'; ...
// PromoBanner.jsx // A carousel of various promotion related material (ie Show of the Month, Ticket Giveaways, ect) import React from 'react'; // Open-Source Components import Slider from 'react-slick'; // Common Components import RectImage from '../../common/RectImage.jsx'; import { Link } from 'react-router'; ...
Move promo banner data into a hard coded JSON array
Move promo banner data into a hard coded JSON array
JSX
agpl-3.0
uclaradio/uclaradio,uclaradio/uclaradio,uclaradio/uclaradio
--- +++ @@ -14,6 +14,13 @@ // styling require('./PromoBanner.scss'); +// Promo Banner Data +const bannerData = [ + {"img": "/img/sotm-mar17-nuindigo.png", "link": "/shows/90"}, + {"img": "/img/sotm-feb2017.jpg", "link": "/shows/75"}, + {"img": "/img/sotm_january_2017.png", "link": "/shows/83"} +]; + var Prom...
0507371d6f8e1e8d0cdbcf114d8258e88f79ef4c
src/components/PrimalMultiplication.jsx
src/components/PrimalMultiplication.jsx
import React from 'react'; import MultiplicationTable from './MultiplicationTable.jsx'; import findPrimes from '../helpers/find-primes.js'; class PrimalMultiplication extends React.Component { constructor(props) { super(props); this.state = { primesLength: 10, primes: findPrimes(10) }; ...
import React from 'react'; import MultiplicationTable from './MultiplicationTable.jsx'; import findPrimes from '../helpers/find-primes.js'; class PrimalMultiplication extends React.Component { constructor(props) { super(props); this.state = { primesLength: props.initialPrimesLength, primes: f...
Use defaultProps for component defaults
Use defaultProps for component defaults
JSX
cc0-1.0
acusti/primal-multiplication,acusti/primal-multiplication
--- +++ @@ -6,8 +6,8 @@ constructor(props) { super(props); this.state = { - primesLength: 10, - primes: findPrimes(10) + primesLength: props.initialPrimesLength, + primes: findPrimes(props.initialPrimesLength) }; } @@ -20,4 +20,8 @@ } } +PrimalMultiplication.defaultProps ...
bb50d49c524bc929f294c0ccf0f0fda3eb326d35
src/containers/monitor.jsx
src/containers/monitor.jsx
const bindAll = require('lodash.bindall'); const React = require('react'); const MonitorComponent = require('../components/monitor/monitor.jsx'); class Monitor extends React.Component { constructor (props) { super(props); bindAll(this, [ 'handleDragEnd' ]); } handleDrag...
const bindAll = require('lodash.bindall'); const React = require('react'); const MonitorComponent = require('../components/monitor/monitor.jsx'); class Monitor extends React.Component { constructor (props) { super(props); bindAll(this, [ 'handleDragEnd' ]); } handleDrag...
Add name for unused event variable
Add name for unused event variable
JSX
bsd-3-clause
cwillisf/scratch-gui,cwillisf/scratch-gui,LLK/scratch-gui,cwillisf/scratch-gui,LLK/scratch-gui
--- +++ @@ -10,7 +10,7 @@ 'handleDragEnd' ]); } - handleDragEnd (_, {x, y}) { + handleDragEnd (e, {x, y}) { this.props.onDragEnd( this.props.id, x,
8353bcb2789ce8c595230c24baf5767809b74394
imports/ui/containers/SearchShowsContainer.jsx
imports/ui/containers/SearchShowsContainer.jsx
import { Meteor } from 'meteor/meteor'; import { createContainer } from 'meteor/react-meteor-data'; import SearchShows from '../pages/SearchShows.jsx'; export default createContainer(() => { const languagesSubscribe = Meteor.subscribe('languages.public'); const countriesSubscribe = TAPi18n.subscribe('countries.pub...
import { Meteor } from 'meteor/meteor'; import { TAPi18n } from 'meteor/tap:i18n'; import { createContainer } from 'meteor/react-meteor-data'; import SearchShows from '../pages/SearchShows.jsx'; export default createContainer(() => { const languagesSubscribe = Meteor.subscribe('languages.public'); const countriesS...
Fix interest filter on Show search.
Fix interest filter on Show search.
JSX
mit
howlround/worldtheatremap,howlround/worldtheatremap
--- +++ @@ -1,14 +1,16 @@ import { Meteor } from 'meteor/meteor'; +import { TAPi18n } from 'meteor/tap:i18n'; import { createContainer } from 'meteor/react-meteor-data'; import SearchShows from '../pages/SearchShows.jsx'; export default createContainer(() => { const languagesSubscribe = Meteor.subscribe('lan...
bc1b68fde45d0e64011574c694639d31c972f0a6
src/client/components/nav/nav-menu.jsx
src/client/components/nav/nav-menu.jsx
import React, { PropTypes } from 'react'; // TODO add key const NavMenuItem = ({ item }) => <a className='nav-butt' href={item.route}><li>{item.label}</li></a>; // Route objects are used to create the items in the menu NavMenuItem.propTypes = { item: React.PropTypes.shape({ route: PropTypes.string.isRequired, ...
import React, { PropTypes } from 'react'; const NavMenuItem = ({ item }) => <a className='nav-butt' href={item.route}><li>{item.label}</li></a>; // Route objects are used to create the items in the menu NavMenuItem.propTypes = { item: React.PropTypes.shape({ route: PropTypes.string.isRequired, label: PropTy...
Add key to list iterations to fix warning
Add key to list iterations to fix warning
JSX
agpl-3.0
Narxem/crispy-magic-front,Narxem/crispy-magic-front
--- +++ @@ -1,6 +1,5 @@ import React, { PropTypes } from 'react'; -// TODO add key const NavMenuItem = ({ item }) => <a className='nav-butt' href={item.route}><li>{item.label}</li></a>; // Route objects are used to create the items in the menu @@ -14,7 +13,7 @@ const NavMenu = ({ items }) => ( <div classNa...
81a0f83ba2c04e6d2fab16c4341a4b3187fdeed7
src/rooms/components/listItem.component.jsx
src/rooms/components/listItem.component.jsx
import React, { Component } from 'react'; import { Card, Button, Row, Col } from 'react-materialize'; import { Link } from 'react-router'; import { removeRoom } from '../actions/rooms.action'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; class ListItem extends Component { handle...
import React, { Component } from 'react'; import { Card, Button, Row, Col } from 'react-materialize'; import { Link } from 'react-router'; import { removeRoom } from '../actions/rooms.action'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; class ListItem extends Component { handle...
Refactor es2015 slightly for the benefit of babel
test: Refactor es2015 slightly for the benefit of babel Babel was choking on the previous arrow function in the class.
JSX
mit
Nailed-it/Designify,Nailed-it/Designify
--- +++ @@ -16,24 +16,24 @@ } render() { - + const title = this.props.title; return ( <Link to={ 'furniture' }> <Card - onClick={ () => { this.handleClick(title) } } + onClick={ () => this.handleClick(title) } className='grey lighten-2' tit...
d3c357f38f62a419043b254dc687f4d9c44240a9
docs/src/Examples/Localization/MomentLocalizationExample.jsx
docs/src/Examples/Localization/MomentLocalizationExample.jsx
import React from 'react'; import moment from 'moment'; import MomentUtils from 'material-ui-pickers/utils/moment-utils'; import MuiPickersUtilsProvider from 'material-ui-pickers/utils/MuiPickersUtilsProvider'; moment.locale('fr'); const App = () => ( <MuiPickersUtilsProvider utils={MomentUtils} moment={mom...
import React from 'react'; import moment from 'moment'; import 'moment/locale/fr'; // this is the important bit, you have to import the locale your'e trying to use. import MomentUtils from 'material-ui-pickers/utils/moment-utils'; import MuiPickersUtilsProvider from 'material-ui-pickers/utils/MuiPickersUtilsProvider'; ...
Add missing import in Moment locale example
Add missing import in Moment locale example according to https://momentjs.com/docs/#/i18n/loading-into-browser/ locales have to be imported before being used.
JSX
mit
mbrookes/material-ui,dmtrKovalenko/material-ui-pickers,rscnt/material-ui,callemall/material-ui,mbrookes/material-ui,rscnt/material-ui,mui-org/material-ui,dmtrKovalenko/material-ui-pickers,callemall/material-ui,oliviertassinari/material-ui,oliviertassinari/material-ui,callemall/material-ui,oliviertassinari/material-ui,m...
--- +++ @@ -1,5 +1,6 @@ import React from 'react'; import moment from 'moment'; +import 'moment/locale/fr'; // this is the important bit, you have to import the locale your'e trying to use. import MomentUtils from 'material-ui-pickers/utils/moment-utils'; import MuiPickersUtilsProvider from 'material-ui-pickers/u...
eac4b7d63613ff4ce64f37cdebf6095f06f70ec8
app/index.jsx
app/index.jsx
import React from 'react'; import ReactDOM from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import { Provider } from 'react-redux'; import './scss/main.scss'; import App from './components/App'; import configureStore from './store/configureStore'; import { load } from './modules/monod'; const appEl...
import React from 'react'; import ReactDOM from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import { Provider } from 'react-redux'; import './scss/main.scss'; import App from './components/App'; import configureStore from './store/configureStore'; import { load } from './modules/monod'; const appEl...
Disable offline mode in dev
Disable offline mode in dev
JSX
mit
PaulDebus/monod,PaulDebus/monod,TailorDev/monod,TailorDev/monod,PaulDebus/monod,TailorDev/monod
--- +++ @@ -19,7 +19,8 @@ window.location.hash.slice(1) )); -require('offline-plugin/runtime').install(); +/* eslint no-unused-expressions: 0, global-require: 0 */ +'production' === process.env.NODE_ENV && require('offline-plugin/runtime').install(); ReactDOM.render( <AppContainer>
5912592678bc8caeb6c345d0b0b2c7447e88d462
examples/pages/counter-fluxible/Counter.jsx
examples/pages/counter-fluxible/Counter.jsx
import React from 'react'; import * as actions from './actions'; export default React.createClass({ contextTypes: { executeAction: React.PropTypes.func.isRequired }, propTypes: { increment: React.PropTypes.func.isRequired, value: React.PropTypes.number.isRequired }, handle...
import React from 'react'; export default React.createClass({ propTypes: { increment: React.PropTypes.func.isRequired, value: React.PropTypes.number.isRequired }, handleIncrement() { this.props.increment(); }, render() { return ( <div> C...
Remove dead code in fluxible example
Remove dead code in fluxible example
JSX
apache-2.0
jeffhandley/react-composition,jeffhandley/react-composite-pages
--- +++ @@ -1,11 +1,6 @@ import React from 'react'; -import * as actions from './actions'; export default React.createClass({ - contextTypes: { - executeAction: React.PropTypes.func.isRequired - }, - propTypes: { increment: React.PropTypes.func.isRequired, value: React.PropType...
2b663d9817c8ba7dec6478bd34abc3c5202f15f4
src/js/components/MemoryFieldComponent.jsx
src/js/components/MemoryFieldComponent.jsx
var React = require("react/addons"); var MemoryFieldComponent = React.createClass({ displayName: "MemoryFieldComponent", propTypes: { megabytes: React.PropTypes.number.isRequired }, render() { const megabytes = this.props.megabytes; return ( <span title={`${megabytes}MB`}>{`${megabytes}MB`}</...
var React = require("react/addons"); var MemoryFieldComponent = React.createClass({ displayName: "MemoryFieldComponent", propTypes: { megabytes: React.PropTypes.number.isRequired }, render() { // For a documentation of the different unit prefixes please refer to: // https://en.wikipedia.org/wiki/Te...
Add methods to round the memory value
Add methods to round the memory value Impl. methods to round the memory and attach the correct unit, using JEDEC and IEC units.
JSX
apache-2.0
mesosphere/marathon-ui,cribalik/marathon-ui,cribalik/marathon-ui,mesosphere/marathon-ui
--- +++ @@ -6,9 +6,20 @@ megabytes: React.PropTypes.number.isRequired }, render() { + // For a documentation of the different unit prefixes please refer to: + // https://en.wikipedia.org/wiki/Template:Quantities_of_bytes + const units = ["MB", "GB", "TiB", "PiB", "EiB", "ZiB", "YiB"]; + const f...
70be51baf2773cbde02f61bb5784cdb31336ac18
src/index.jsx
src/index.jsx
// Application entrypoint. // Load up the application styles require("../styles/application.scss"); // Render the top-level React component import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.jsx'; ReactDOM.render(<App />, document.getElementById('react-root'));
// Application entrypoint. // Load up the application styles require("../styles/application.scss"); // Render the top-level React component import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.jsx'; import Nav from './Nav.jsx' import Dashboard from './Dashboard.jsx' import { Router, Ro...
Create second page // TODO url should be changed later
Create second page // TODO url should be changed later
JSX
mit
shinmike/scortch,shinmike/scortch
--- +++ @@ -7,5 +7,16 @@ import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.jsx'; +import Nav from './Nav.jsx' +import Dashboard from './Dashboard.jsx' -ReactDOM.render(<App />, document.getElementById('react-root')); +import { Router, Route, hashHistory} from 'react-router'; + +...
4451fc5c4bcbe23817a8f3e3d95064dd29a16da6
src/frontend/components/admin/GroupsList.jsx
src/frontend/components/admin/GroupsList.jsx
'use strict'; import React from 'react'; import GroupListEntry from './GroupListEntry.jsx'; import AddGroupModalLauncher from './AddGroupModalLauncher.jsx'; export default ({ groups , editable, onSave }) => { let groupEntries = groups.map( group => (<GroupListEntry group={group} onSave={onSave} />)); let addMo...
'use strict'; import React from 'react'; import GroupListEntry from './GroupListEntry.jsx'; import AddGroupModalLauncher from './AddGroupModalLauncher.jsx'; export default ({ groups , editable, onSave }) => { let groupEntries = groups.map( group => (<GroupListEntry group={group} onSave={onSave} />)); let addMo...
Add class of new to add group button on Admin page
Add class of new to add group button on Admin page
JSX
agpl-3.0
rabblerouser/core,rabblerouser/core,rabblerouser/core
--- +++ @@ -5,7 +5,7 @@ export default ({ groups , editable, onSave }) => { let groupEntries = groups.map( group => (<GroupListEntry group={group} onSave={onSave} />)); - let addModalLauncher = editable ? <li><AddGroupModalLauncher onSave={onSave} /></li> : null; + let addModalLauncher = editable ? <li ...
63c16df960c5556c39e549f4d1cdf10bbfb0d5df
src/main/webapp/resources/js/components/Header/main-navigation/components/GlobalSearch.jsx
src/main/webapp/resources/js/components/Header/main-navigation/components/GlobalSearch.jsx
import { Input, Menu } from "antd"; import React from "react"; import styled from "styled-components"; import { grey6 } from "../../../../styles/colors"; import { primaryColour, theme } from "../../../../utilities/theme-utilities"; import { setBaseUrl } from "../../../../utilities/url-utilities"; import { IconSearch } ...
import { Input, Menu } from "antd"; import React from "react"; import styled from "styled-components"; import { grey6 } from "../../../../styles/colors"; import { primaryColour, theme } from "../../../../utilities/theme-utilities"; import { setBaseUrl } from "../../../../utilities/url-utilities"; import { IconSearch } ...
Allow clear and no autocomplete for glabal search
Allow clear and no autocomplete for glabal search
JSX
apache-2.0
phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida,phac-nml/irida
--- +++ @@ -17,6 +17,10 @@ font-size: 14px; } + .anticon-close-circle svg { + color: ${grey6}; + } + input { border-bottom: 2px solid ${primaryColour}; } @@ -32,6 +36,8 @@ <SearchForm method="get" action={setBaseUrl("/search")}> <Input name="query" + allowClear + ...
915e103e6d6301f54ac291c154f9fa75ac44cd22
client/modules/core/components/header.jsx
client/modules/core/components/header.jsx
import React, { PropTypes } from 'react'; import LogInButtons from '/client/modules/accounts/containers/log_in_buttons.js'; import { Arrow, Dropdown, DropdownMenu, Fixed, NavItem, Space, Toolbar } from 'rebass'; const Header = ({isLoggedIn}) => ( <Fixed top left right zIndex={1}> <Toolbar> <N...
import React, { PropTypes } from 'react'; import { Link } from 'react-router'; import LogInButtons from '/client/modules/accounts/containers/log_in_buttons.js'; import { Arrow, Dropdown, DropdownMenu, Fixed, NavItem, Space, Toolbar } from 'rebass'; const Header = ({isLoggedIn}) => ( <Fixed top left rig...
Change NavItems to use react-router Links in Header
Change NavItems to use react-router Links in Header
JSX
mit
thancock20/voting-app,thancock20/voting-app
--- +++ @@ -1,4 +1,5 @@ import React, { PropTypes } from 'react'; +import { Link } from 'react-router'; import LogInButtons from '/client/modules/accounts/containers/log_in_buttons.js'; import { Arrow, @@ -13,10 +14,10 @@ const Header = ({isLoggedIn}) => ( <Fixed top left right zIndex={1}> <Toolbar> - ...
4c8e24bea7a2ffffffdd1c9a358bd48ba5285452
src/index.jsx
src/index.jsx
/** @jsx createElement */ import {createElement} from 'elliptical' import ImpliedURL from './implied-url' import SpecificURL from './specific-url' const defaultProps = { splitOn: /\s|,/, label: 'URL', limit: 1 } function suppressWhen (input) { return /^(h|ht|htt|https?|https?:|https?:\/|https?:\/\/|(https?:\/...
/** @jsx createElement */ import {createElement} from 'elliptical' import ImpliedURL from './implied-url' import SpecificURL from './specific-url' const defaultProps = { splitOn: /\s|,/, label: 'URL', limit: 1 } function suppressWhen (input) { return /^(h|ht|htt|https?|https?:|https?:\/|https?:\/\/|(https?:\/...
Add an id to help with Lacona extension
Add an id to help with Lacona extension
JSX
mit
brandonhorst/lacona-phrase-url,lacona/lacona-phrase-url
--- +++ @@ -27,4 +27,4 @@ ) } -export const URL = {defaultProps, describe} +export const URL = {defaultProps, describe, id: 'elliptical-url:URL'}
f15fc609349219e22f24d86daac0eebbb1e283fe
app/assets/javascripts/components/dashboard.js.jsx
app/assets/javascripts/components/dashboard.js.jsx
var MeasurementBox = React.createClass({ loadClientLocation: function() { var path = "/locations/current"; $.ajax({ url: path, dataType: 'json', cache: true, success: function(data) { this.setState({client: data.id}); }.bind(this), error: function(xhr, status, err) ...
var MeasurementBox = React.createClass({ loadLocation: function(path, prop) { var path = "/locations/current"; var state = new Object(); $.ajax({ url: path, dataType: 'json', cache: true, success: function(data) { state[prop] = data.id this.setState(state); }....
Add Server ID to the dashboard
Add Server ID to the dashboard
JSX
mit
zunda/ping,zunda/ping,zunda/ping
--- +++ @@ -1,17 +1,25 @@ var MeasurementBox = React.createClass({ - loadClientLocation: function() { + loadLocation: function(path, prop) { var path = "/locations/current"; + var state = new Object(); $.ajax({ url: path, dataType: 'json', cache: true, success: function(dat...
7ed7805630cf9c2cddeddcbbcb7a513f1b3672e5
scripts/apps/search/components/SelectBox.jsx
scripts/apps/search/components/SelectBox.jsx
import React from 'react'; import {isCheckAllowed} from '../helpers'; export class SelectBox extends React.Component { constructor(props) { super(props); this.toggle = this.toggle.bind(this); } toggle(event) { event.stopPropagation(); if (isCheckAllowed(this.props.item)) { ...
import React from 'react'; import {isCheckAllowed} from '../helpers'; export class SelectBox extends React.Component { constructor(props) { super(props); this.toggle = this.toggle.bind(this); } toggle(event) { if (event && (event.ctrlKey || event.shiftKey)) { return fal...
Fix for multiselect on key shortcut
[SDESK-390] fix(multiselect): Fix for multiselect on key shortcut
JSX
agpl-3.0
petrjasek/superdesk-client-core,fritzSF/superdesk-client-core,jerome-poisson/superdesk-client-core,ioanpocol/superdesk-client-core,darconny/superdesk-client-core,petrjasek/superdesk-client-core,petrjasek/superdesk-client-core,pavlovicnemanja/superdesk-client-core,mdhaman/superdesk-client-core,gbbr/superdesk-client-core...
--- +++ @@ -8,6 +8,10 @@ } toggle(event) { + if (event && (event.ctrlKey || event.shiftKey)) { + return false; + } + event.stopPropagation(); if (isCheckAllowed(this.props.item)) { var selected = !this.props.item.selected;
eff50577de820a490225ded3a3791b078de238a0
imports/ui/components/records/RecordsList.jsx
imports/ui/components/records/RecordsList.jsx
import React from 'react'; import { List } from 'material-ui/List'; import RecordItem from './RecordItem.jsx'; import EmptyRecordsList from './EmptyRecordsList.jsx'; import moment from 'moment'; /** * Shows time records in a list. * * @prop {Object[]} records - the time records to be shown * @prop {Object} records...
import React from 'react'; import { List } from 'material-ui/List'; import RecordItem from './RecordItem.jsx'; import EmptyRecordsList from './EmptyRecordsList.jsx'; import moment from 'moment'; /** * Shows time records in a list. * * @prop {Object[]} records - the time records to be shown * @prop {Object} records...
Fix bug on showing day of record on RecordItem
Fix bug on showing day of record on RecordItem Signed-off-by: Felipe Milani <6def120dcec8fcb28aed4723fac713cfff66d853@gmail.com>
JSX
mit
fmilani/contatempo,fmilani/contatempo
--- +++ @@ -21,7 +21,8 @@ {records.map((record, index) => { // check if current record's day is the same of previous one to hide the day of the record if (index > 0 && - moment(record.begin).startOf('day').isSame(moment(records[index - 1]).startOf('day'))) { + mome...
f3f0100cbbf494e6acc59188c4eedbc460473226
src/Modules/Content/Dnn.PersonaBar.Pages/Pages.Web/src/components/Breadcrumbs.jsx
src/Modules/Content/Dnn.PersonaBar.Pages/Pages.Web/src/components/Breadcrumbs.jsx
import React, { PropTypes } from "react"; const maxItems = 4; const Breadcrumbs = ({ items, onSelectedItem }) => { function onClick(tabId) { if (tabId) onSelectedItem(tabId); } return ( <div className="breadcrumbs-container"> {items.length > maxItems && ...
import React, { PropTypes } from "react"; const maxItems = 4; const Breadcrumbs = ({ items, onSelectedItem }) => { function onClick(tabId) { if (tabId) onSelectedItem(tabId); } return ( <div className="breadcrumbs-container"> {items.length > maxItems && ...
Fix the layout on breadcrumb on Safari
Fix the layout on breadcrumb on Safari
JSX
mit
valadas/Dnn.Platform,mitchelsellers/Dnn.Platform,mitchelsellers/Dnn.Platform,valadas/Dnn.Platform,dnnsoftware/Dnn.Platform,dnnsoftware/Dnn.Platform,valadas/Dnn.Platform,RichardHowells/Dnn.Platform,dnnsoftware/Dnn.AdminExperience.Extensions,bdukes/Dnn.Platform,bdukes/Dnn.Platform,robsiera/Dnn.Platform,dnnsoftware/Dnn.Ad...
--- +++ @@ -1,5 +1,4 @@ import React, { PropTypes } from "react"; - const maxItems = 4; const Breadcrumbs = ({ items, onSelectedItem }) => { @@ -12,9 +11,11 @@ return ( <div className="breadcrumbs-container"> {items.length > maxItems && - <span className="more" - ...
de377608d9f18fd239e52d9357df67f0c228a509
app/assets/javascripts/components/app.es6.jsx
app/assets/javascripts/components/app.es6.jsx
class App extends React.Component { constructor(){ super(); this.state = { possibleVenues: [], midpoint: [], detailsView: {}, lat: 40.705116, lng: -74.00883, choices: [ { name: "freedomTower", lat: 40.713230, lng: -74.013367 }, ...
class App extends React.Component { constructor(){ super(); this.state = { possibleVenues: [], midpoint: [], detailsView: {}, lat: 40.705116, lng: -74.00883, choices: [ { name: "freedomTower", lat: 40.713230, lng: -74.013367 }, ...
Add in handle click bind.
Add in handle click bind.
JSX
mit
nyc-wolves-2016/FrienDiagram,nyc-wolves-2016/FrienDiagram,nyc-wolves-2016/FrienDiagram
--- +++ @@ -19,6 +19,7 @@ lng: -73.9884472 } ] + this.handleClick = this.handleClick.bind(this); } }
582974be75ee4273ba64e11bc046e846e6db79d9
components/elements/filter/FilterBar.jsx
components/elements/filter/FilterBar.jsx
import React, {Component, PropTypes} from 'react' export default class FilterBar extends Component { static propTypes = { filters: PropTypes.arrayOf(PropTypes.shape({ name: PropTypes.string.isRequired, props: PropTypes.any, component: PropTypes.func })), onChange: PropTypes.func } ...
import React, {Component, PropTypes} from 'react' export default class FilterBar extends Component { static propTypes = { filters: PropTypes.arrayOf(PropTypes.shape({ name: PropTypes.string.isRequired, props: PropTypes.any, component: PropTypes.func })), onChange: PropTypes.func } ...
Fix to correct the lightbox width of regionpicker
Fix to correct the lightbox width of regionpicker
JSX
mit
bengler/imdikator,bengler/imdikator
--- +++ @@ -27,7 +27,7 @@ <h5 className="t-only-screenreaders">Filter</h5> <div className="row t-position"> {filters.filter(f => !f.props.hidden).map(filter => ( - <div key={filter.name} className="col--fifth"> + <div key={filter.name} className="col--fifth" style={{...
3bd7467a24a9f5e6caf5c6916a2c20b4846e57d9
app/assets/javascripts/components/trial.js.jsx
app/assets/javascripts/components/trial.js.jsx
class Trial extends React.Component { render () { return( <td> <a href={"https://clinicaltrials.gov/ct2/show/" + this.props.trial.nct_id}>{this.props.trial.brief_title}</a> </td> ) } }
class Trial extends React.Component { render () { return( <td> <a href={"https://clinicaltrials.gov/ct2/show/" + this.props.trial.nct_id}>{this.props.trial.brief_title}</a> <div> <ul> <li> <a href={"https://clinicaltrials.gov/ct2/show/" + this....
Add div with additional info in Trial component
Add div with additional info in Trial component
JSX
mit
danmckeon/crconnect,danmckeon/crconnect,danmckeon/crconnect
--- +++ @@ -3,6 +3,13 @@ return( <td> <a href={"https://clinicaltrials.gov/ct2/show/" + this.props.trial.nct_id}>{this.props.trial.brief_title}</a> + <div> + <ul> + <li> + <a href={"https://clinicaltrials.gov/ct2/show/" + this.props.trial.nct_id...
7c43b9d9e4cb9b46477429d55a1c65054f0d2dec
src/_shared/ModalDialog.jsx
src/_shared/ModalDialog.jsx
import React from 'react'; import PropTypes from 'prop-types'; import { Dialog, DialogActions, DialogContent, Button, withStyles } from 'material-ui'; const styles = { dialog: { '&:first-child': { padding: 0, }, }, }; const ModalDialog = (props) => { const { children, classes, onAccept, onDism...
import React from 'react'; import PropTypes from 'prop-types'; import { Dialog, DialogActions, DialogContent, Button, withStyles } from 'material-ui'; const styles = { dialog: { '&:first-child': { padding: 0, }, }, }; const ModalDialog = (props) => { const { children, classes, onAccept, onDism...
Update tabIndex on cancel button
Update tabIndex on cancel button
JSX
mit
dmtrKovalenko/material-ui-pickers,mui-org/material-ui,callemall/material-ui,rscnt/material-ui,mui-org/material-ui,oliviertassinari/material-ui,callemall/material-ui,mui-org/material-ui,mbrookes/material-ui,oliviertassinari/material-ui,dmtrKovalenko/material-ui-pickers,callemall/material-ui,rscnt/material-ui,mbrookes/ma...
--- +++ @@ -22,7 +22,7 @@ </DialogContent> <DialogActions> - <Button color="primary" onClick={onDismiss}> Cancel </Button> + <Button color="primary" onClick={onDismiss} tabIndex={-1}> Cancel </Button> <Button color="primary" onClick={onAccept}> OK </Button> </DialogAction...
84248c019c1e4885820e4460df77fe332c98ffed
installer/frontend/components/bm-cluster-info.jsx
installer/frontend/components/bm-cluster-info.jsx
import React from 'react'; import { Input, Connect } from './ui'; import { TectonicLicense, licenseForm } from './tectonic-license'; import { ExperimentalFeatures } from './experimental-features'; import { CLUSTER_NAME } from '../cluster-config'; import { Form } from '../form'; import fields from '../fields'; const c...
import React from 'react'; import { Input, Connect } from './ui'; import { TectonicLicense, licenseForm } from './tectonic-license'; import { ExperimentalFeatures } from './experimental-features'; import { CLUSTER_NAME } from '../cluster-config'; import { Form } from '../form'; import fields from '../fields'; const c...
Make order of tectonic license & experimental features the same in baremetal & aws.
frontend: Make order of tectonic license & experimental features the same in baremetal & aws.
JSX
apache-2.0
cpanato/tectonic-installer,everett-toews/tectonic-installer,radhikapc/tectonic-installer,estroz/tectonic-installer,yifan-gu/tectonic-installer,ggreer/tectonic-installer,mrwacky42/tectonic-installer,squat/tectonic-installer,bison/tectonic-installer,AduroIdeja/tectonic-installer,yifan-gu/tectonic-installer,bison/tectonic...
--- +++ @@ -26,9 +26,8 @@ <p className="text-muted">Give this cluster a name that will help you identify it.</p> </div> </div> + <ExperimentalFeatures /> <TectonicLicense /> - <br /> - <ExperimentalFeatures /> </div> ); };
fb7521c00db8cdf01f5ae94f01b4b9013a2eddd6
client/auth/email-verification-notification.jsx
client/auth/email-verification-notification.jsx
import React from 'react' import { makeServerUrl } from '../network/server-url' import styled from 'styled-components' import { grey800, colorTextPrimary } from '../styles/colors' import { Body1Old } from '../styles/typography' const VerifyEmail = styled.div` height: 32px; background-color: ${grey800}; display:...
import React from 'react' import { makeServerUrl } from '../network/server-url' import styled from 'styled-components' import { grey800, colorTextPrimary } from '../styles/colors' import { Body1Old } from '../styles/typography' const VerifyEmail = styled.div` height: 32px; background-color: ${grey800}; display:...
Adjust the email verification text a bit.
Adjust the email verification text a bit.
JSX
mit
ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery,ShieldBattery/ShieldBattery
--- +++ @@ -21,11 +21,11 @@ export default class ContentLayout extends React.Component { render() { - const verifyEmailText = `Please verify your email to ensure everything works correctly. In case - you haven't received it yet,` + const verifyEmailText = `Your email is unverified! Check for an email...
222287d4b7b07c345b0aca88f5e605ec8935ba31
ui/component/viewers/htmlViewer.jsx
ui/component/viewers/htmlViewer.jsx
// @flow import React from 'react'; import { stopContextMenu } from 'util/context-menu'; type Props = { source: string, }; class HtmlViewer extends React.PureComponent<Props> { render() { const { source } = this.props; return ( <div className="file-render__viewer" onContextMenu={stopContextMenu}> ...
// @flow import * as React from 'react'; import { stopContextMenu } from 'util/context-menu'; type Props = { source: string, }; type State = { loading: boolean, }; class HtmlViewer extends React.PureComponent<Props, State> { iframe: React.ElementRef<any>; constructor(props: Props) { super(props); thi...
Fix sizing for html files and add loading indicator
Fix sizing for html files and add loading indicator
JSX
mit
lbryio/lbry-electron,lbryio/lbry-app,lbryio/lbry-electron,lbryio/lbry-app,lbryio/lbry-electron
--- +++ @@ -1,21 +1,47 @@ // @flow -import React from 'react'; +import * as React from 'react'; import { stopContextMenu } from 'util/context-menu'; type Props = { source: string, }; -class HtmlViewer extends React.PureComponent<Props> { +type State = { + loading: boolean, +}; + +class HtmlViewer extends ...
9345e53c163cce1394c1aab8b0975d59838cfc57
imports/ui/components/study_plan/AcadYrRow.jsx
imports/ui/components/study_plan/AcadYrRow.jsx
import React from 'react'; import SemModulesCardContainer from './SemModulesCardContainer.js'; import SemSpecialModulesCard from './SemSpecialModulesCard.jsx'; import Util from '../../../../api/util'; export default class AcadYrRow extends React.Component { render() { return ( <section className="activity...
import React from 'react'; import SemModulesCardContainer from './SemModulesCardContainer.js'; import SemSpecialModulesCard from './SemSpecialModulesCard.jsx'; export default class AcadYrRow extends React.Component { render() { return ( <section className="activity-line-action"> <div className="tim...
FIX bug with Util import
FIX bug with Util import
JSX
mit
nus-mtp/nus-oracle,nus-mtp/nus-oracle
--- +++ @@ -1,8 +1,6 @@ import React from 'react'; import SemModulesCardContainer from './SemModulesCardContainer.js'; import SemSpecialModulesCard from './SemSpecialModulesCard.jsx'; - -import Util from '../../../../api/util'; export default class AcadYrRow extends React.Component { render() {
17cc28d3a2ac8f6cc13cf572840a0516c52fb647
components/overlay/index.jsx
components/overlay/index.jsx
import React from 'react'; import ReactDOM from 'react-dom'; import style from './style'; class Overlay extends React.Component { static propTypes = { active: React.PropTypes.bool, className: React.PropTypes.string, onClick: React.PropTypes.func, opacity: React.PropTypes.number }; static default...
import React from 'react'; import ReactDOM from 'react-dom'; import style from './style'; class Overlay extends React.Component { static propTypes = { active: React.PropTypes.bool, className: React.PropTypes.string, onClick: React.PropTypes.func, opacity: React.PropTypes.number }; static default...
Set .active class only when component has a opacity > 0
Set .active class only when component has a opacity > 0
JSX
mit
rubenmoya/react-toolbox,DigitalRiver/react-atlas,jasonleibowitz/react-toolbox,soyjavi/react-toolbox,Magneticmagnum/react-atlas,jasonleibowitz/react-toolbox,react-toolbox/react-toolbox,showings/react-toolbox,rubenmoya/react-toolbox,rubenmoya/react-toolbox,soyjavi/react-toolbox,react-toolbox/react-toolbox,KerenChandran/r...
--- +++ @@ -17,6 +17,7 @@ componentDidMount () { this.app = document.getElementById('react-toolbox-app') || document.body; this.node = document.createElement('div'); + this.node.setAttribute('data-react-toolbox', 'overlay'); this.app.appendChild(this.node); this.handleRender(); } @@ -32,1...
7e2a40cfd4c2201d6559b11d1e11b71250362a9a
app/components/elements/PercentageBar/index.jsx
app/components/elements/PercentageBar/index.jsx
import React from "react"; import PropTypes from "prop-types"; import classNames from "classnames"; import "./style.scss"; const maxWidth = 97; const minWidth = 3; class PercentageBar extends React.Component { static propTypes = { colorClass: PropTypes.string.isRequired, value: PropTypes.number.isRequired...
import React from "react"; import PropTypes from "prop-types"; import classNames from "classnames"; import "./style.scss"; class PercentageBar extends React.Component { static propTypes = { colorClass: PropTypes.string.isRequired, value: PropTypes.number.isRequired, maxValue: PropTypes.number.isRequire...
Fix PercentageBar giving slightly off values
Fix PercentageBar giving slightly off values
JSX
mit
lifeonmarspt/care-international,lifeonmarspt/care-international
--- +++ @@ -3,9 +3,6 @@ import classNames from "classnames"; import "./style.scss"; - -const maxWidth = 97; -const minWidth = 3; class PercentageBar extends React.Component { @@ -16,10 +13,10 @@ }; render() { - let percentage = Math.round(maxWidth * this.props.value / (this.props.maxValue || 1) + ...
00fb56ff99951708fc4b3988f69b2565cd023c6a
client/views/readouts/transmission_delay_readout.jsx
client/views/readouts/transmission_delay_readout.jsx
import Moment from "moment"; import "moment-duration-format"; import React from "react"; import ListeningView from "../listening_view.js"; class TransmissionDelayReadout extends ListeningView { componentDidMount() { super.componentDidMount(); window.setInterval(() => {this.forceUpdate();}, 1000); } re...
import Moment from "moment"; import "moment-duration-format"; import React from "react"; import ListeningView from "../listening_view.js"; class TransmissionDelayReadout extends ListeningView { componentDidMount() { super.componentDidMount(); window.setInterval(() => {this.forceUpdate();}, 1000); } re...
Remove crossfilter from microcharts, fix atmo means, and clarify ground time label.
Remove crossfilter from microcharts, fix atmo means, and clarify ground time label.
JSX
mit
sensedata/space-telemetry,sensedata/space-telemetry
--- +++ @@ -12,7 +12,7 @@ } render() { - const unixTime = this.state.data.length > 0 ? this.state.data[0].t : 0; + const unixTime = this.state.data ? this.state.data.t : 0; const time = Moment.unix(unixTime).utc(); const now = Moment().utc(); const delta = now.diff(time, "milliseconds");
714aee31c750fab1e691d7ca15e90e32faa6475c
app/app/components/home/RegisteredUserHome.jsx
app/app/components/home/RegisteredUserHome.jsx
import React from 'react'; import {Link} from 'react-router' import auth from '../../utils/auth.jsx' export default class RegisteredUserHome extends React.Component { componentWillMount() { auth.getUser(localStorage.id).then((res) => { console.log(res.data) this.user = res.data.user }) } render(){ retur...
import React from 'react'; import {Link} from 'react-router' import auth from '../../utils/auth.jsx' export default class RegisteredUserHome extends React.Component { // componentWillMount() { // auth.getUser(localStorage.id).then((res) => { // this.user = res.data.user // }) // } render(){ return( <div...
Update to include correct info when mounting component
Update to include correct info when mounting component
JSX
mit
taodav/MicroSerfs,taodav/MicroSerfs
--- +++ @@ -3,16 +3,15 @@ import auth from '../../utils/auth.jsx' export default class RegisteredUserHome extends React.Component { - componentWillMount() { - auth.getUser(localStorage.id).then((res) => { - console.log(res.data) - this.user = res.data.user - }) - } + // componentWillMount() { + // auth.get...
6de799a572aebd9edbc7620333a9a78f2e8c5b52
client/src/components/customer/CustomerNav.jsx
client/src/components/customer/CustomerNav.jsx
import React from 'react'; // nav bar const CustomerNav = () => ( <div className="customer-nav-bar"> <ul id="dropdown1" className="dropdown-content"> <li><a href="/">home</a></li> <li className="divider"></li> <li><a href="../manager">manager</a></li> </ul> <nav> <...
import React from 'react'; // nav bar const CustomerNav = () => ( <div className="customer-nav-bar"> <ul id="dropdown1" className="dropdown-content"> <li><a href="/">home</a></li> <li className="divider"></li> <li><a href="/manager">manager</a></li> </ul> <nav> <di...
Fix bug in navbar manager button redirecting to wrong page
Fix bug in navbar manager button redirecting to wrong page
JSX
mit
Lynne-Daniels/q-dot
--- +++ @@ -6,7 +6,7 @@ <ul id="dropdown1" className="dropdown-content"> <li><a href="/">home</a></li> <li className="divider"></li> - <li><a href="../manager">manager</a></li> + <li><a href="/manager">manager</a></li> </ul> <nav> <div className="nav-wrapp...
ce97c5fbb0b484a6cbcde8e9841cc0572e682cbf
src/modules/content/components/searchResult.jsx
src/modules/content/components/searchResult.jsx
import ReactPlayer from 'react-player'; require('../styles/search.scss'); class SearchResult extends React.Component { constructor(props) { super(props); } render() { const result = this.props.result; return ( <div className="col-sm-4"> <div className="card"> {result.type == "Online-Video" ? ...
import ReactPlayer from 'react-player'; require('../styles/search.scss'); class SearchResult extends React.Component { constructor(props) { super(props); } render() { const attributes = this.props.result.attributes; return ( <div className="col-sm-4"> <div className="card"> {attributes.type == "O...
Fix attributes not being displayed
Fix attributes not being displayed
JSX
agpl-3.0
schul-cloud/schulcloud-client,schul-cloud/schulcloud-client,schul-cloud/schulcloud-client
--- +++ @@ -7,26 +7,26 @@ } render() { - const result = this.props.result; + const attributes = this.props.result.attributes; return ( <div className="col-sm-4"> <div className="card"> - {result.type == "Online-Video" ? - <ReactPlayer url={result.url} className="card-img-top" + {attri...
8a21c4f071175306e8a9845417ed7d37743491ba
app/javascript/app/components/footer/bottom-bar/bottom-bar-component.jsx
app/javascript/app/components/footer/bottom-bar/bottom-bar-component.jsx
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import cx from 'classnames'; import layout from 'styles/layout.scss'; import styles from './bottom-bar-styles.scss'; const BottomBar = ({ className }) => ( <div className={styles.container}> <div className={c...
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import cx from 'classnames'; import layout from 'styles/layout.scss'; import styles from './bottom-bar-styles.scss'; const BottomBar = ({ className }) => ( <div className={styles.container}> <div className={c...
Include current year in footer
Include current year in footer
JSX
mit
Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch
--- +++ @@ -16,7 +16,7 @@ </div> <div> <span className={styles.text}> - Climate Watch © 2017 Powered by Resource Watch + Climate Watch © {new Date().getFullYear()} Powered by Resource Watch </span> </div> </div>
f09997aeeaeef82f37efe8d4582062df9acb598e
client/public/js/components/status_run_idle.jsx
client/public/js/components/status_run_idle.jsx
import React from 'react'; import Button from './button'; function StatusRunIdle(props) { return ( <div className="status-run-idle"> <p> This simulation might take about <span className="time">6 hours</span>. </p> <p> We&#39;ll send you an email at {props.email} when you run thi...
import React from 'react'; import Button from './button'; function StatusRunIdle(props) { return ( <div className="status-run-idle"> <p> This simulation might take about <span className="time">6 hours</span>. </p> <p> We&#39;ll send you an email at {props.email} when you run thi...
Fix missing proptype in statusrunidle
Fix missing proptype in statusrunidle
JSX
apache-2.0
Autodesk/molecular-simulation-tools,Autodesk/molecular-design-applications,Autodesk/molecular-simulation-tools,Autodesk/molecular-design-applications,Autodesk/molecular-simulation-tools,Autodesk/molecular-design-applications
--- +++ @@ -22,10 +22,14 @@ ); } +StatusRunIdle.defaultProps = { + fetchingData: false, +}; + StatusRunIdle.propTypes = { clickRun: React.PropTypes.func.isRequired, email: React.PropTypes.string.isRequired, - fetchingData: React.PropTypes.bool.isRequired, + fetchingData: React.PropTypes.bool, }; e...
9a698e83806e64c15f3c7fdffe3382ede446244c
app/views/emails/best-of-digest/post-comment.jsx
app/views/emails/best-of-digest/post-comment.jsx
import React from 'react'; import classnames from 'classnames'; import PieceOfText from './piece-of-text'; import UserName from './user-name'; export default class PostComment extends React.Component { renderBody() { const authorAndButtons = ( <span> {' -'}&nbsp; <UserName user={this.prop...
import React from 'react'; import classnames from 'classnames'; import PieceOfText from './piece-of-text'; import UserName from './user-name'; export default class PostComment extends React.Component { renderBody() { let authorAndButtons = ''; if (!this.props.hideType) { authorAndButtons = ( ...
Fix hidden comment display in bestOf email.
Fix hidden comment display in bestOf email.
JSX
mit
FreeFeed/freefeed-server,FreeFeed/freefeed-server
--- +++ @@ -7,12 +7,15 @@ export default class PostComment extends React.Component { renderBody() { - const authorAndButtons = ( - <span> - {' -'}&nbsp; - <UserName user={this.props.createdBy} me={this.props.me}/> - </span> - ); + let authorAndButtons = ''; + if (!this.props....
8ce46bd12c4221b5c42e18b76fa2b251aad0936f
frontend/components/trade/incoming_trade_item.jsx
frontend/components/trade/incoming_trade_item.jsx
import React from 'react'; import { Link } from 'react-router'; const IncomingTradeItem = (props) => { const trade = props.trade; return ( <div className="trade-item"> <div className="trade-info"> <Link to={`/items/${trade.requester.item.id}`}> &nbsp;{trade.requester.item.name}&nbsp; ...
import React from 'react'; import { Link } from 'react-router'; const IncomingTradeItem = (props) => { const trade = props.trade; return ( <div className="trade-item"> <div className="trade-info"> <Link to={`/${trade.requester.id}/garage`}> {trade.requester.name}'s </Link>&nbsp;...
Fix wording of incoming trade request
Fix wording of incoming trade request
JSX
mit
PGilbertSchmitt/SwappingApp,PGilbertSchmitt/SwappingApp,PGilbertSchmitt/SwappingApp
--- +++ @@ -6,12 +6,12 @@ return ( <div className="trade-item"> <div className="trade-info"> - <Link to={`/items/${trade.requester.item.id}`}> - &nbsp;{trade.requester.item.name}&nbsp; - </Link> for <Link to={`/${trade.receiver.id}/garage`}> - &nbsp;{trade.receiver.name}...
f09d9e86e676db545d0d08773176914e1f1f5b87
src/cred/location_input.jsx
src/cred/location_input.jsx
import React from 'react'; import InputWrap from './input_wrap'; import Icon from '../icon/icon'; export default class LocationInput extends React.Component { constructor(props) { super(props); this.state = {}; } render() { const { onClick, tabIndex, value } = this.props; const { focused } = thi...
import React from 'react'; import InputWrap from './input_wrap'; import Icon from '../icon/icon'; export default class LocationInput extends React.Component { constructor(props) { super(props); this.state = {}; } render() { const { onClick, tabIndex, value } = this.props; const { focused } = thi...
Fix location input tab navigation
Fix location input tab navigation
JSX
mit
mike-casas/lock,auth0/lock-passwordless,auth0/lock-passwordless,auth0/lock-passwordless,mike-casas/lock,mike-casas/lock
--- +++ @@ -40,7 +40,10 @@ } handleKeyDown(e) { - e.preventDefault(); + if (e.key !== "Tab") { + e.preventDefault(); + } + if (e.key === "ArrowDown") { return this.props.onClick(); }
de4173d6480e7f5ffbc97861ec21e4626c287ffc
apps/authentication/static/js/components/App.jsx
apps/authentication/static/js/components/App.jsx
var React = require('react'); var Login = require('./Login.jsx'); var Register = require('./Register.jsx'); var App = React.createClass({ render: function () { return ( <div> <hgroup> <h1>MicroAuth</h1> <h3>Authentication service for microserv</h3> </hgroup> <di...
var React = require('react'); var Login = require('./Login.jsx'); var Register = require('./Register.jsx'); var App = React.createClass({ getInitialState: function() { return { hideLogin: false, hideRegistration: true }; }, switchView: function() { this.setState({ hideLogin: !this...
Make the app look nice.
Make the app look nice.
JSX
mit
microserv/microauth,microserv/microauth,microserv/microauth
--- +++ @@ -4,6 +4,20 @@ var Register = require('./Register.jsx'); var App = React.createClass({ + getInitialState: function() { + return { + hideLogin: false, + hideRegistration: true + }; + }, + + switchView: function() { + this.setState({ + hideLogin: !this.state.hideLogin, + hi...
a9c10cc2ee4ad8591307a8935349e9bd42066377
app/assets/javascripts/components/ui/list.js.jsx
app/assets/javascripts/components/ui/list.js.jsx
var ListItem = React.createClass({ render() { return <li>{this.props.children}</li> } }) var List = React.createClass({ statics: { Item: ListItem }, propTypes: { type: React.PropTypes.oneOf(['inline', 'piped']).isRequired }, render() { var type = this.props.type var cs = React.addo...
var ListItem = React.createClass({ render() { return <li>{this.props.children}</li> } }) var List = React.createClass({ statics: { Item: ListItem }, propTypes: { type: React.PropTypes.oneOf(['inline', 'piped']).isRequired }, render() { var type = this.props.type var cs = React.addo...
Remove margin bottom on Lists.
Remove margin bottom on Lists.
JSX
agpl-3.0
lachlanjc/meta,assemblymade/meta,assemblymade/meta,assemblymade/meta,lachlanjc/meta,lachlanjc/meta,assemblymade/meta,lachlanjc/meta
--- +++ @@ -17,7 +17,7 @@ render() { var type = this.props.type var cs = React.addons.classSet({ - 'list-reset': true, + 'list-reset mb0': true, 'list--inline': type === 'inline', 'list--piped': type === 'piped' })
1d50eddf8c59d6fc49babe502c551cf1167a3580
src/views/HomeView/index.jsx
src/views/HomeView/index.jsx
import React from 'react'; import './index.scss'; export default class HomeView extends React.Component { render() { return ( <div className="container text-center"> <h1>Welcome to the React Redux Starter Kit</h1> </div> ); } }
import React from 'react'; import './index.scss'; export default class HomeView extends React.Component { render() { return ( <div className="container text-center"> <a href ="/auth/login/facebook">Log in</a> </div> ); } }
Add log in link to logged out home
Add log in link to logged out home This will help people log in.
JSX
mit
lencioni/gift-thing,lencioni/gift-thing
--- +++ @@ -1,11 +1,12 @@ import React from 'react'; + import './index.scss'; export default class HomeView extends React.Component { render() { return ( <div className="container text-center"> - <h1>Welcome to the React Redux Starter Kit</h1> + <a href ="/auth/login/facebook">Log in...
aebdcb75c6e104acb1fb605937e26571661c0764
src/specs/css-loader.spec.jsx
src/specs/css-loader.spec.jsx
import React from 'react'; import { lorem } from './util'; import './css-loader.css'; class CssSample extends React.Component { render() { return ( <div className="css-sample"> <p>{ lorem(50) }</p> <p>{ lorem(50) }</p> </div> ); } } describe('CSS', function() { this.header...
import React from 'react'; import { lorem } from './util'; const IS_BROWSER = typeof(window) !== 'undefined'; if (IS_BROWSER) { require('./css-loader.css'); } class CssSample extends React.Component { render() { return ( <div className="css-sample"> <p>{ lorem(50) }</p> <p>{ lorem(50)...
Add switch to only import CSS when in browser.
Hack: Add switch to only import CSS when in browser. This prevents compile errors when spec JS is parsed on server. Would be nice to figure out a better way to handle this in the future. JS is parsed on the server so that a copy of the specs are available in memory. This is to allow for `it.server` (yet to be imple...
JSX
mit
philcockfield/ui-harness,philcockfield/ui-harness,philcockfield/ui-harness
--- +++ @@ -1,6 +1,12 @@ import React from 'react'; import { lorem } from './util'; -import './css-loader.css'; + + +const IS_BROWSER = typeof(window) !== 'undefined'; +if (IS_BROWSER) { + require('./css-loader.css'); +} + class CssSample extends React.Component {