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
e66ae0aa87a0193c4cdee77408fe67bca0b87fd1
src/common/Editor/Editor.jsx
src/common/Editor/Editor.jsx
import React from 'react'; import AceEditor from 'react-ace'; import 'brace/mode/python'; import 'brace/mode/javascript'; import 'brace/mode/ruby'; import 'brace/mode/golang'; import 'brace/mode/swift'; import 'brace/mode/php'; import 'brace/mode/json'; import 'brace/mode/html'; import 'brace/mode/django'; import 'bra...
import React from 'react'; import AceEditor from 'react-ace'; import 'brace/mode/python'; import 'brace/mode/javascript'; import 'brace/mode/ruby'; import 'brace/mode/golang'; import 'brace/mode/swift'; import 'brace/mode/php'; import 'brace/mode/json'; import 'brace/mode/html'; import 'brace/mode/django'; import 'bra...
Add data-e2e to the editor
[DASH-2407] Add data-e2e to the editor
JSX
mit
Syncano/syncano-dashboard,Syncano/syncano-dashboard,Syncano/syncano-dashboard
--- +++ @@ -29,14 +29,16 @@ const { style, editorName, ...other } = this.props; return ( - <AceEditor - id={editorName} - name={editorName} - ref={`editor-${editorName}`} - editorProps={{ $blockScrolling: 'Infinity' }} - style={{ ...styles.root, ...style }} - ...
7eb2f5b58a1c404ed7c3d78d5f8b386f6b075e64
components/form/index.jsx
components/form/index.jsx
import Form from './Form'; import FormItem from './FormItem'; import ValueMixin from './ValueMixin'; Form.Item = FormItem; Form.ValueMixin = ValueMixin; export default Form;
import Form from './Form'; import FormItem from './FormItem'; import ValueMixin from './ValueMixin'; import Input from '../input'; Form.Item = FormItem; Form.ValueMixin = ValueMixin; // 对于 import { Form, Input } from 'antd/lib/form/'; // 的方式做向下兼容 // https://github.com/ant-design/ant-design/pull/566 Form.Form = Form; ...
Add support for degrade usage of form
Add support for degrade usage of form
JSX
mit
hjin-me/ant-design,hjin-me/ant-design,ant-design/ant-design,waywardmonkeys/ant-design,mitchelldemler/ant-design,elevensky/ant-design,superRaytin/ant-design,RaoHai/ant-design,MarshallChen/ant-design,zhujun24/ant-design,ant-design/ant-design,liekkas/ant-design,MarshallChen/ant-design,vgeyi/ant-design,hotoo/ant-design,cod...
--- +++ @@ -1,7 +1,15 @@ import Form from './Form'; import FormItem from './FormItem'; import ValueMixin from './ValueMixin'; +import Input from '../input'; Form.Item = FormItem; Form.ValueMixin = ValueMixin; + +// 对于 import { Form, Input } from 'antd/lib/form/'; +// 的方式做向下兼容 +// https://github.com/ant-design/...
c44ee381e3edb841c06d97a55b4aab7ee565bd6f
shared/views/Story/Toolbar.jsx
shared/views/Story/Toolbar.jsx
import React from 'react'; import { connect } from 'redux/react'; import { bindActionCreators } from 'redux'; import FontSizeSelector from './FontSizeSelector'; import * as StoryActions from 'actions/StoryActions'; @connect(state => ({ editing: state.story.get('editing') })) e...
import React from 'react'; import { connect } from 'redux/react'; import { bindActionCreators } from 'redux'; import FontSizeSelector from './FontSizeSelector'; import * as StoryActions from 'actions/StoryActions'; @connect(state => ({ editing: state.story.get('editing') })) e...
Remove last trace of ParagraphActions
Remove last trace of ParagraphActions
JSX
apache-2.0
checkraiser/chapters,bananaoomarang/chapters
--- +++ @@ -10,9 +10,6 @@ export default class Toolbar extends React.Component { handleAlignment = (e) => { - this.props.dispatch( - ParagraphActions.setAlignment(e.target.name) - ); } handleLoad = () => { @@ -27,7 +24,7 @@ return ( <div className='toolbar' style={style}> - ...
12385407d37233e77e7f77fe0fbc01c462d71c65
indico/web/client/js/react/util/Slot.jsx
indico/web/client/js/react/util/Slot.jsx
/* This file is part of Indico. * Copyright (C) 2002 - 2018 European Organization for Nuclear Research (CERN). * * Indico is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 3 of the * License...
/* This file is part of Indico. * Copyright (C) 2002 - 2018 European Organization for Nuclear Research (CERN). * * Indico is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 3 of the * License...
Use React.Children.forEach instead of for loop
Use React.Children.forEach instead of for loop
JSX
mit
indico/indico,mvidalgarcia/indico,mic4ael/indico,pferreir/indico,pferreir/indico,DirkHoffmann/indico,ThiefMaster/indico,OmeGak/indico,OmeGak/indico,pferreir/indico,mvidalgarcia/indico,mvidalgarcia/indico,DirkHoffmann/indico,OmeGak/indico,pferreir/indico,indico/indico,mic4ael/indico,ThiefMaster/indico,mvidalgarcia/indic...
--- +++ @@ -31,9 +31,9 @@ static split(children) { if (children.every((e) => (React.isValidElement(e) && e.type.name === 'Slot'))) { const result = {}; - for (const child of children) { + React.Children.forEach(children, (child) => { result[child.props...
a09c5fe3596a0dbb4f4c8a1e3458cf138d602f99
src/components/notes/NoteForm.jsx
src/components/notes/NoteForm.jsx
import React from 'react'; import './NoteForm.scss'; import noteRepository from '../../data/NoteRepository'; export default class NoteForm extends React.Component { constructor(props) { super(props); this.state = { title: '', content: '', }; } // update state with data from form handle...
import React from 'react'; import './NoteForm.scss'; import noteRepository from '../../data/NoteRepository'; // Class for note creation form export default class NoteForm extends React.Component { constructor(props) { super(props); this.state = { title: '', content: '', }; } /** * Upd...
Update and add clarifying comments
Update and add clarifying comments
JSX
mit
emyarod/refuge,emyarod/refuge
--- +++ @@ -2,6 +2,7 @@ import './NoteForm.scss'; import noteRepository from '../../data/NoteRepository'; +// Class for note creation form export default class NoteForm extends React.Component { constructor(props) { super(props); @@ -11,7 +12,9 @@ }; } - // update state with data from form + ...
0a0afed84b904045088437177952818bde22c49d
samples/react/ReactGrid/ReactApp/components/PeopleGrid.jsx
samples/react/ReactGrid/ReactApp/components/PeopleGrid.jsx
import React from 'react'; import Griddle from 'griddle-react'; import { CustomPager } from './CustomPager.jsx'; import { fakeData } from '../data/fakeData.js'; import { columnMeta } from '../data/columnMeta.jsx'; const resultsPerPage = 10; const fakeDataWithAction = fakeData.map(data => Object.assign(data, {actions: ...
import React from 'react'; import Griddle from 'griddle-react'; import { CustomPager } from './CustomPager.jsx'; import { fakeData } from '../data/fakeData.js'; import { columnMeta } from '../data/columnMeta.jsx'; const resultsPerPage = 10; // Griddle requires each row to have a property matching each column, even if ...
Add comment about why the 'actions' property is being patched on
Add comment about why the 'actions' property is being patched on
JSX
apache-2.0
aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore,aspnet/AspNetCore
--- +++ @@ -5,7 +5,9 @@ import { columnMeta } from '../data/columnMeta.jsx'; const resultsPerPage = 10; -const fakeDataWithAction = fakeData.map(data => Object.assign(data, {actions: ''})); +// Griddle requires each row to have a property matching each column, even if you're not displaying +// any data from the r...
ad2187f1e3a319beaa4c684b2acaf42233dc41c1
webapp/components/Collapsable.jsx
webapp/components/Collapsable.jsx
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import {Column, Row} from './ResultGrid'; export default class Collapsable extends Component { static propTypes = { children: PropTypes.node.isRequired, collapsable: PropTypes.bool, maxVis...
import React, {Component} from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import {Column, Row} from './ResultGrid'; export default class Collapsable extends Component { static propTypes = { children: PropTypes.node.isRequired, collapsable: PropTypes.bool, maxVis...
Remove hardcoded minimum on maxVisible
ref: Remove hardcoded minimum on maxVisible
JSX
apache-2.0
getsentry/zeus,getsentry/zeus,getsentry/zeus,getsentry/zeus
--- +++ @@ -29,7 +29,7 @@ if (totalChildren <= maxVisible) { collapsed = false; } else if (collapsed) { - visibleChildren = Math.max(5, maxVisible); + visibleChildren = maxVisible; children = children.slice(0, visibleChildren); }
3b2c1a73f5b990ba7b705a511ca10afc273a9512
src/components/app.jsx
src/components/app.jsx
import React, { Component } from 'react'; const ENTER = 13; export default function appFactory() { return class App extends Component { constructor(props) { super(props); this.state = { todoInput: '', todos: [] }; } render() { return <div className="todoapp"> ...
import React, { Component } from 'react'; const ENTER = 13; export default function appFactory() { return class App extends Component { constructor(props) { super(props); this.state = { todoInput: '', todos: [] }; } render() { return <div className="todoapp"> ...
Hide the main section when there's no todos
Hide the main section when there's no todos Didn't need a unit test here since the acceptance test is enough.
JSX
mit
NiGhTTraX/react-test-buffet,NiGhTTraX/react-test-buffet,NiGhTTraX/react-test-buffet
--- +++ @@ -29,18 +29,22 @@ }} /> </header> - <section className="main"> - <ul className="todo-list"> - {this.state.todos.map((todo, index) => - <li className="todo" key={index}> - <div className="view"> - <label>...
14969a8c0449491091ddbebad71927e857336f56
src/browser/components/HoveringURL.jsx
src/browser/components/HoveringURL.jsx
const React = require('react'); const divStyle = { backgroundColor: 'whitesmoke', position: 'absolute', bottom: 0, paddingLeft: 4, paddingRight: 16, borderTopRightRadius: 4 }; const spanStyle = { color: 'gray' }; class HoveringURL extends React.Component { render() { return ( <div style={di...
const React = require('react'); const style = { color: 'gray', backgroundColor: 'whitesmoke', maxWidth: '95%', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', position: 'absolute', bottom: 0, paddingLeft: 4, paddingRight: 16, paddingTop: 2, paddingBottom: 2, borderTopRight...
Improve visility of hevering URL
Improve visility of hevering URL - Add top and bottom padding - Add border lines - Truncate long URL using ellipsis
JSX
apache-2.0
mattermost/desktop,yuya-oc/desktop,yuya-oc/desktop,jnugh/desktop,yuya-oc/electron-mattermost,mattermost/desktop,mattermost/desktop,mattermost/desktop,mattermost/desktop,yuya-oc/desktop,yuya-oc/electron-mattermost,jnugh/desktop,jnugh/desktop,yuya-oc/electron-mattermost
--- +++ @@ -1,25 +1,28 @@ const React = require('react'); -const divStyle = { +const style = { + color: 'gray', backgroundColor: 'whitesmoke', + maxWidth: '95%', + whiteSpace: 'nowrap', + overflow: 'hidden', + textOverflow: 'ellipsis', position: 'absolute', bottom: 0, paddingLeft: 4, paddingRig...
a6c60aedf06197823b5b3d7b34ffb285c4f809be
client/src/containers/UserInstrument.jsx
client/src/containers/UserInstrument.jsx
import React, { Component } from 'react'; import Piano from './Piano'; class UserInstrument extends Component { render() { if (this.props.inst==="piano") { console.log('you selected piano'); return ( <div> <Piano id="userPiano" /> </div> ); } else { return (...
import React, { Component } from 'react'; // import Piano from './Piano'; class UserInstrument extends Component { render() { if (this.props.inst==="piano") { console.log('you selected piano'); return ( <div> // <Piano id="userPiano" /> </div> ); } else { re...
Fix code that was not in pull request
Fix code that was not in pull request
JSX
mit
NerdDiffer/reprise,NerdDiffer/reprise,NerdDiffer/reprise
--- +++ @@ -1,5 +1,5 @@ import React, { Component } from 'react'; -import Piano from './Piano'; +// import Piano from './Piano'; class UserInstrument extends Component { @@ -8,7 +8,7 @@ console.log('you selected piano'); return ( <div> - <Piano id="userPiano" /> + // <Pi...
d02a704c9b013eae6c10d252a3c364de06076fd5
lib/components/groceries/GroceriesListJson.jsx
lib/components/groceries/GroceriesListJson.jsx
import React, { PropTypes } from 'react'; export default class GroceriesListJson extends React.Component { static propTypes = { groceries: PropTypes.object.isRequired, } render() { const { groceries } = this.props; const groceriesJSON = JSON.stringify( groceries.toJS().map((item) => item.title...
import React, { PropTypes } from 'react'; export default class GroceriesListJson extends React.Component { static propTypes = { groceries: PropTypes.object.isRequired, } render() { const { groceries } = this.props; const groceriesJSON = JSON.stringify( groceries.toJS().map((item) => item.title...
Add name attribute to input
Add name attribute to input
JSX
mit
Zapix/react-groceries,Zapix/react-groceries,Zapix/react-groceries
--- +++ @@ -14,6 +14,7 @@ <div> <input type="hidden" + name="items" value={groceriesJSON} /> </div>
edd1543700f5e1b6d4f9d0453b3dc15c6805ead0
app/scripts/components/login.jsx
app/scripts/components/login.jsx
import React from 'react'; import PropTypes from 'prop-types'; import { Redirect } from 'react-router-dom'; import auth from '../util/auth.js'; export default class Login extends React.Component { constructor(props) { super(props); this.state = { redirectToReferrer: false, ...
import React from 'react'; import PropTypes from 'prop-types'; import { Redirect } from 'react-router-dom'; import auth from '../util/auth.js'; export default class Login extends React.Component { constructor(props) { super(props); this.state = { redirectToReferrer: false, ...
Add warning when redirected from restricted page
Add warning when redirected from restricted page
JSX
mit
benct/tomlin-web,benct/tomlin-web
--- +++ @@ -30,8 +30,9 @@ return this.state.redirectToReferrer ? ( <Redirect to={from} /> ) : ( - <div className="wrapper"> - <form ref={form => (this.form = form)} onSubmit={this.handleSubmit.bind(this)}> + <div className="wrapper text"> + ...
f3466fc7c40ef5927f7074c9375732bdff8c46f9
beavy/jsbeavy/views/HomeView.jsx
beavy/jsbeavy/views/HomeView.jsx
import React from 'react'; import { connect } from 'react-redux'; // We define mapDispatchToProps where we'd normally use the @connect // decorator so the data requirements are clear upfront, but then // export the decorated component after the main class definition so // the component can be tested w/ and w/o b...
import React from 'react'; import { connect } from 'react-redux'; // We define mapDispatchToProps where we'd normally use the @connect // decorator so the data requirements are clear upfront, but then // export the decorated component after the main class definition so // the component can be tested w/ and w/o b...
Add logo and link to docs
Add logo and link to docs
JSX
mpl-2.0
beavyHQ/beavy,beavyHQ/beavy,beavyHQ/beavy,beavyHQ/beavy
--- +++ @@ -28,7 +28,11 @@ render () { return ( <div className='container text-center'> + <img src="http://beavy.xyz/logos/logo.svg" alt="beavy logo" width="150" /> <h1>Wecome to Beavy!</h1> + <p> + Please take a look at the <a href="https://beavyhq.gitbooks.io/beavy-docum...
8c8c59a88312b596bf0f9b51959c42276fb4b6c6
app/layout/site-subnav.jsx
app/layout/site-subnav.jsx
import React from 'react'; import ExpandableMenu from './expandable-menu'; class SiteSubnav extends React.Component { trigger() { return ( <span className="site-nav__link" activeClassName="site-nav__link--active" title="News" aria-label="News" > News </s...
import React from 'react'; import ExpandableMenu from './expandable-menu'; class SiteSubnav extends React.Component { render() { if (this.props.isMobile) { return this.props.children; } else { return ( <ExpandableMenu className="site-nav__modal" trigger={ ...
Tidy up News button HTML Removes unnecessary title and label attributes.
Tidy up News button HTML Removes unnecessary title and label attributes.
JSX
apache-2.0
zooniverse/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,jelliotartz/Panoptes-Front-End
--- +++ @@ -2,19 +2,6 @@ import ExpandableMenu from './expandable-menu'; class SiteSubnav extends React.Component { - - trigger() { - return ( - <span - className="site-nav__link" - activeClassName="site-nav__link--active" - title="News" - aria-label="News" - > - N...
53763e7b2d12184fd4040e2c3468d656b157c851
src/client/components/Affinity.jsx
src/client/components/Affinity.jsx
import React from 'react'; import {ImageItem} from './ImageItem.jsx'; // import mapObject from 'lodash.map'; export class Affinity extends React.Component { render() { const listItems = this.props.imageList.map(({url, x, y, maxWidth, maxHeight, dimensions}) => { const wscale = maxWidth / dimens...
import React from 'react'; import {ImageItem} from './ImageItem.jsx'; // import mapObject from 'lodash.map'; export class Affinity extends React.Component { constructor(props) { super(props); this.state = props; } render() { const listItems = this.state.imageList.map(({url, x, y, ...
Move top-level Props into State
Move top-level Props into State Setting the stage for changing state dynamically.
JSX
mit
mearns/image-affinity,mearns/image-affinity
--- +++ @@ -3,8 +3,14 @@ // import mapObject from 'lodash.map'; export class Affinity extends React.Component { + + constructor(props) { + super(props); + this.state = props; + } + render() { - const listItems = this.props.imageList.map(({url, x, y, maxWidth, maxHeight, dimensions}...
08e8c11f66812a19890fea30d7cb54ca1a3a568e
client/modules/core/components/poll.jsx
client/modules/core/components/poll.jsx
import React, { PropTypes } from 'react'; import { ButtonCircle } from 'rebass'; import { partial } from 'partial-application'; import Load from 'shingon-load-jss'; const Poll = ({poll, deletePoll}) => ( <li className={classes.list} > <a href={`/polls/${poll._id}`} className={classes.link} ...
import React, { PropTypes } from 'react'; import { ButtonCircle } from 'rebass'; import { partial } from 'partial-application'; import Load from 'shingon-load-jss'; const Poll = ({poll, deletePoll}) => ( <li className={classes.list} > <a href={`/polls/${poll._id}`} className={classes.link} ...
Add proptype for deletePoll to Poll component
Add proptype for deletePoll to Poll component
JSX
mit
thancock20/voting-app,thancock20/voting-app
--- +++ @@ -24,7 +24,8 @@ </li> ); Poll.propTypes = { - poll: PropTypes.object + poll: PropTypes.object, + deletePoll: PropTypes.func }; const styles = {
d0aa115084abede78701c318a80d7f4207991077
src/sentry/static/sentry/app/components/timeSince.jsx
src/sentry/static/sentry/app/components/timeSince.jsx
var React = require("react"); var moment = require("moment"); var TimeSince = React.createClass({ propTypes: { date: React.PropTypes.any.isRequired }, componentDidMount() { var delay = 2600; this.ticker = setInterval(this.ensureValidity, delay); }, componentWillUnmount() { if (this.ticker)...
var React = require("react"); var moment = require("moment"); var TimeSince = React.createClass({ propTypes: { date: React.PropTypes.any.isRequired, suffix: React.PropTypes.string }, getDefaultProps() { return { suffix: 'ago' }; }, componentDidMount() { var delay = 2600; this...
Add suffix prop to TimeSince
Add suffix prop to TimeSince
JSX
bsd-3-clause
ifduyue/sentry,zenefits/sentry,korealerts1/sentry,hongliang5623/sentry,looker/sentry,fuziontech/sentry,zenefits/sentry,kevinlondon/sentry,hongliang5623/sentry,BuildingLink/sentry,fuziontech/sentry,daevaorn/sentry,gencer/sentry,beeftornado/sentry,mvaled/sentry,alexm92/sentry,looker/sentry,fotinakis/sentry,JamesMura/sent...
--- +++ @@ -3,7 +3,14 @@ var TimeSince = React.createClass({ propTypes: { - date: React.PropTypes.any.isRequired + date: React.PropTypes.any.isRequired, + suffix: React.PropTypes.string + }, + + getDefaultProps() { + return { + suffix: 'ago' + }; }, componentDidMount() { @@ -36,7 +...
8beb6851fcd734d474e61f6b12c0936dc22f0516
examples/clock/src/App.jsx
examples/clock/src/App.jsx
import React, { Component } from 'react' import moment from 'moment' import { view, store } from 'react-easy-state' class App extends Component { // create a local clock = store({ id: setInterval(() => this.setTime(), 1000), time: moment() .utc() .format('hh:mm:ss A') }); // the clock stor...
import React, { Component } from 'react' import moment from 'moment' import { view, store } from 'react-easy-state' class App extends Component { // create a local store clock = store({ id: setInterval(() => this.setTime(), 1000), time: moment() .utc() .format('hh:mm:ss A') }); // the cloc...
Fix a comment typo on the clock example
Fix a comment typo on the clock example
JSX
mit
solkimicreb/react-easy-state
--- +++ @@ -3,7 +3,7 @@ import { view, store } from 'react-easy-state' class App extends Component { - // create a local + // create a local store clock = store({ id: setInterval(() => this.setTime(), 1000), time: moment()
94e790f0cc6356f28bee7f1e8b0aee1ddf84397d
js/Sidebar.jsx
js/Sidebar.jsx
import React, { Component, PropTypes } from 'react'; import LeftNav from 'material-ui/lib/left-nav'; import RaisedButton from 'material-ui/lib/raised-button'; import FlatButton from 'material-ui/lib/flat-button'; import styles from '../css/Sidebar.css'; export class Sidebar extends React.Component { static propType...
import React, { Component, PropTypes } from 'react'; import LeftNav from 'material-ui/lib/left-nav'; import RaisedButton from 'material-ui/lib/raised-button'; import FlatButton from 'material-ui/lib/flat-button'; import styles from '../css/Sidebar.css'; export class Sidebar extends React.Component { static propType...
Change default state of sidebar
Change default state of sidebar
JSX
mit
michaelghinrichs/coding-math,michaelghinrichs/coding-math
--- +++ @@ -14,7 +14,7 @@ constructor(props) { super(props); - this.state = { open: false }; + this.state = { open: true }; } getComp(comp, i) {
8ae76006685b7dac766a6b4dfc0b95294a2aaab5
src/components/includes/SiteFooter.jsx
src/components/includes/SiteFooter.jsx
import React from 'react'; const currentYear = new Date().getFullYear() function SiteFooter(props) { return ( <footer id="bottom" className="page-micro fine-print"> <ul className="list-inline--delimited"> <li>Copyright {currentYear} David Minnerly</li> <li><a href="https://github.com/vocks...
import React from 'react'; const currentYear = new Date().getFullYear() function SiteFooter(props) { return ( <footer id="bottom" className="page-micro fine-print"> <ul className="list-inline--delimited"> <li>&copy; {currentYear} David Minnerly</li> <li><a href="https://github.com/vocksel/...
Change "Copyright" to the copyright symbol
Change "Copyright" to the copyright symbol This was an accidental change. The copyright symbol is what we were using before.
JSX
mit
VoxelDavid/voxeldavid-website,vocksel/my-website,VoxelDavid/voxeldavid-website,vocksel/my-website
--- +++ @@ -6,7 +6,7 @@ return ( <footer id="bottom" className="page-micro fine-print"> <ul className="list-inline--delimited"> - <li>Copyright {currentYear} David Minnerly</li> + <li>&copy; {currentYear} David Minnerly</li> <li><a href="https://github.com/vocksel/my-website">Web...
307a02fee9c5c3c2d312750209247f7c2dae5f9d
client/views/readouts/decimal_readout.jsx
client/views/readouts/decimal_readout.jsx
import _ from "lodash"; import React from "react"; import ListeningView from "../listening_view.js"; class DecimalReadout extends ListeningView { render() { let formatted; let raw; if (typeof this.state.data === "undefined" || this.state.data.length === 0) { raw = "-"; } else { if (typ...
import _ from "lodash"; import React from "react"; import ListeningView from "../listening_view.js"; class DecimalReadout extends ListeningView { render() { let formatted; let raw; if (typeof this.state.data === "undefined" || this.state.data.length === 0) { formatted = "-"; } else { i...
Fix decimal readout to again show a dash without data.
Fix decimal readout to again show a dash without data.
JSX
mit
sensedata/space-telemetry,sensedata/space-telemetry
--- +++ @@ -9,7 +9,7 @@ let raw; if (typeof this.state.data === "undefined" || this.state.data.length === 0) { - raw = "-"; + formatted = "-"; } else { if (typeof this.props.quaternionId !== "undefined") {
fba6dfe7a1478d634bab9bee42614a12a780dc63
lib/map-instance-mixin.jsx
lib/map-instance-mixin.jsx
/** * @jsx React.DOM */ 'use strict'; var MapLoader = require('async-google-maps').MapLoader, React = require('react'); module.exports = { componentDidMount: function () { MapLoader.create(this.getDOMNode(), this.props.mapOptions).then(function (map) { this.idle(map); }.bind(th...
/** * @jsx React.DOM */ 'use strict'; var MapLoader = require('async-google-maps').MapLoader, React = require('react'); module.exports = { componentDidMount: function () { MapLoader.create(this.getDOMNode(), this.props.mapOptions).then(function (map) { this.idle(map); }.bind(th...
Remove silly nested element that wasn't needed.
Remove silly nested element that wasn't needed.
JSX
mit
zpratt/idle-maps,zpratt/idle-maps
--- +++ @@ -17,7 +17,6 @@ render: function () { return ( <div className="map-container"> - <div className="test"></div> </div> ); }
4d6d44f13c5af2d9bb38489af7646f77620e648e
client/source/components/Recipe/RecipeIngredientsBS.jsx
client/source/components/Recipe/RecipeIngredientsBS.jsx
import React, {Component} from 'react'; import { Grid, Row, Col, Table } from 'react-bootstrap'; // TODO: Confirm ingredient object structure, ensure that key refers to the proper value // TODO: Add headers for the 'Ingredient', 'Quantity', 'Unit' and other fields. export default ({ingredientList}) => { return (...
import React, {Component} from 'react'; import { Grid, Row, Col, Table } from 'react-bootstrap'; // TODO: Confirm ingredient object structure, ensure that key refers to the proper value // TODO: Add headers for the 'Ingredient', 'Quantity', 'Unit' and other fields. class RecipeIngredients extends React.Component { ...
Implement optional render method that displays a given preparation value along with ingredient name.
Implement optional render method that displays a given preparation value along with ingredient name.
JSX
mit
JAC-Labs/SkilletHub,JAC-Labs/SkilletHub
--- +++ @@ -1,35 +1,57 @@ import React, {Component} from 'react'; import { Grid, Row, Col, Table } from 'react-bootstrap'; - // TODO: Confirm ingredient object structure, ensure that key refers to the proper value // TODO: Add headers for the 'Ingredient', 'Quantity', 'Unit' and other fields. -export defaul...
a8fe524987b82e976e11bab1a947ddd20a87776f
client-js/users.jsx
client-js/users.jsx
import "babel-polyfill"; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import UserList from './users/UserList.jsx'; import { store } from './common/store.js'; import api from './common/api.js'; ReactDOM.render( <Provider store={store}> <UserList />...
import "babel-polyfill"; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import UserList from './users/UserList.jsx'; import { store } from './common/store.js'; import api from './common/api.js'; ReactDOM.render( <Provider store={store}> <UserList />...
Remove unnecessary fetches for User page
Remove unnecessary fetches for User page
JSX
mit
dragonrobotics/PartTracker,stmobo/PartTracker,dragonrobotics/PartTracker,stmobo/PartTracker,stmobo/PartTracker,dragonrobotics/PartTracker
--- +++ @@ -18,6 +18,4 @@ ); store.dispatch(api.readCollection('users')); -store.dispatch(api.readCollection('reservations')); -store.dispatch(api.readCollection('inventory')); store.dispatch(api.getCurrentUser());
3eae85b18da4211041134f0e8da99d7edff2019f
src/components/HistorySection/index.jsx
src/components/HistorySection/index.jsx
import React from 'react' import Checkbox from '../Checkbox' import Item from '../HistoryItem' import Store from '../../stores/history' import { observer } from 'mobx-react' @observer export default class HistorySection extends React.Component { constructor () { super() this.items = [] } render () { ...
import React from 'react' import Checkbox from '../Checkbox' import Item from '../HistoryItem' import Store from '../../stores/history' import { observer } from 'mobx-react' @observer export default class HistorySection extends React.Component { constructor () { super() this.items = [] } render () { ...
Fix checkbox checking all items when esearched
Fix checkbox checking all items when esearched
JSX
apache-2.0
Nersent/Wexond,Nersent/Wexond
--- +++ @@ -23,16 +23,18 @@ const onAllCheck = (flag) => { for (var i = 0; i < this.items.length; i++) { - const checkbox = this.items[i].checkbox + if (this.items[i] != null) { + const checkbox = this.items[i].checkbox - if (flag) { - if (!checkbox.state.checked...
13491aed1be52c246a37d98386ce18b855f62ac0
src/client/components/ThreadPost/ThreadPost.jsx
src/client/components/ThreadPost/ThreadPost.jsx
import React from 'react'; import uuid from 'uuid' import { createMediaIfExists } from './Media' export default function ({post, children}) { const { id, title, date, imgsrc, comment, ext, references } = post const SRC = imgsrc const ID = 'post-media-' + id return ( <div id={...
import React from 'react' import uuid from 'uuid' import moment from 'moment' import { createMediaIfExists } from './Media' import Tooltip from '../Tooltip' export default function ({post, children}) { const { id, title, date, imgsrc, comment, ext, references, time } = post const SRC = imgsrc ...
Add timeago tooltip to threadpost
Add timeago tooltip to threadpost
JSX
mit
AdamSalma/Lurka,AdamSalma/Lurka
--- +++ @@ -1,22 +1,24 @@ -import React from 'react'; +import React from 'react' import uuid from 'uuid' +import moment from 'moment' import { createMediaIfExists } from './Media' +import Tooltip from '../Tooltip' export default function ({post, children}) { - const { id, title, date, imgsrc, comment, e...
3dc96aaa457c301ad9270bb36460e61c13e7ba1c
src/components/CirclePageNavBar.jsx
src/components/CirclePageNavBar.jsx
import React from 'react'; import { Navbar, Nav, NavItem, NavDropdown, MenuItem } from 'react-bootstrap'; export default class CirclePageNavBar extends React.Component { openPage(e) { location.href = e.target.getAttribute('href'); } render() { var creditURL = this.props.credit; var openCreditPage = ...
import React from 'react'; import { Navbar, Nav, NavItem, NavDropdown, MenuItem } from 'react-bootstrap'; export default class CirclePageNavBar extends React.Component { openPage(e) { location.href = e.target.getAttribute('href'); } render() { var creditURL = this.props.credit; var openCreditPage = ...
Add floors link to the header
Add floors link to the header
JSX
mit
henge-tech/henge-tech,henge-tech/henge-tech,henge-tech/henge-tech,henge-tech/henge-tech
--- +++ @@ -32,6 +32,7 @@ </Navbar.Header> <Navbar.Collapse> <Nav> + <NavItem href="/floors/" onClick={this.openPage}>Floors</NavItem> <NavItem href="/circles/" onClick={this.openPage}>Circles</NavItem> <NavItem onClick={openCreditPage}>Credits</NavIte...
33d2b08220a0d05d93dafcb3802e146d4b22fc2f
src/modules/Thread/ThreadHOC.jsx
src/modules/Thread/ThreadHOC.jsx
import React, {Component} from 'react' import { Overlay, Spinner } from '~/components' const threadConnect = (ThreadComponent) => { const ThreadHOC = (props) => { const {isThreadOpen, posts, closeThread} = props console.log(props) return ( <div className="Thread"> ...
import React, {Component} from 'react' import { Overlay, Spinner } from '~/components' const threadConnect = (ThreadComponent) => { const ThreadHOC = (props) => { const {isThreadOpen, posts, closeThread, didInvalidate} = props console.log(props) return ( <div className=...
Disable loading screen when a thread invalidates
fix(Thread): Disable loading screen when a thread invalidates
JSX
mit
AdamSalma/Lurka,AdamSalma/Lurka
--- +++ @@ -6,16 +6,16 @@ const threadConnect = (ThreadComponent) => { const ThreadHOC = (props) => { - const {isThreadOpen, posts, closeThread} = props + const {isThreadOpen, posts, closeThread, didInvalidate} = props console.log(props) return ( <div className="...
6c8655ab3f2fcff6ee70b6c19a69aa5167036305
apps/public/src/components/Markdown/Markdown.jsx
apps/public/src/components/Markdown/Markdown.jsx
import React from 'react'; import PropTypes from 'prop-types'; import BaseMarkdown from 'markdown-to-jsx'; import { Typography } from '@material-ui/core'; const overrides = { h1: { component: Typography, props: { variant: 'h5', component: 'h2', gutterBottom: true } }, h2: { comp...
import React from 'react'; import PropTypes from 'prop-types'; import BaseMarkdown from 'markdown-to-jsx'; import { Typography } from '@material-ui/core'; const overrides = { h1: { component: Typography, props: { variant: 'h5', component: 'h2', gutterBottom: true } }, h2: { comp...
Fix event description when empty
Fix event description when empty
JSX
mit
tumido/malenovska,tumido/malenovska
--- +++ @@ -53,7 +53,7 @@ } } { ...props } > - { content } + { content || '' } </BaseMarkdown> );
bde0cf621f359b4ce1ad4a648159c07c3aa92ee8
public/src/components/navigation.jsx
public/src/components/navigation.jsx
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { ButtonToolbar, DropdownButton } from 'react-bootstrap'; class Navigation extends Component { constructor(props) { super(props); // Bind this.renderLinks = this.renderLinks.bind(this); } // Render all current l...
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { ButtonToolbar, DropdownButton, MenuItem } from 'react-bootstrap'; class Navigation extends Component { constructor(props) { super(props); // Bind this.logoutOnClick = this.logoutOnClick.bind(this); this.render...
Create onClick for logout link and update renderLink method, fix lint issues
Create onClick for logout link and update renderLink method, fix lint issues
JSX
mit
Twilio-org/phonebank,Twilio-org/phonebank
--- +++ @@ -1,17 +1,25 @@ import React, { Component } from 'react'; import { Link } from 'react-router-dom'; -import { ButtonToolbar, DropdownButton } from 'react-bootstrap'; +import { ButtonToolbar, DropdownButton, MenuItem } from 'react-bootstrap'; class Navigation extends Component { constructor(props) { ...
e8dfd6f9da4b987f8d3abbb252bdc8dc5b790a6a
lib/client/components/whatsnew/periodSelector.jsx
lib/client/components/whatsnew/periodSelector.jsx
import React from 'react'; class PeriodSelector extends React.Component { render() { const from = 1; const to = 10; const options = []; for (let i = from; i <= to; i++) { options.push(( <option key={i} value={i}>{i} day(s)</option> )); } return ( <form className="f...
import React from 'react'; const PeriodSelector = props => { const from = 1; const to = 10; const options = []; for (let i = from; i <= to; i++) { options.push(( <option key={i} value={i}>{i} day(s)</option> )); } return ( <form className="form-inline pt20"> <div className="form-g...
Implement react-router and factorize whatsnew page
Implement react-router and factorize whatsnew page
JSX
mit
dbrugne/ftp-nanny,dbrugne/ftp-nanny
--- +++ @@ -1,34 +1,31 @@ import React from 'react'; -class PeriodSelector extends React.Component { - render() { - const from = 1; - const to = 10; +const PeriodSelector = props => { + const from = 1; + const to = 10; - const options = []; - for (let i = from; i <= to; i++) { - options.push(...
81248730fb617e65ce667218ffa08af36d532570
app/components/Logo.jsx
app/components/Logo.jsx
import React, {Component} from 'react'; import App from './App'; export default class Logo extends Component { state = {link: "", image: ""}; loadLogo(name) { let piece = App.pieces.find(p => p.name == name); let imageUrl = require('../images/'+piece.logo); this.setState({link: piece.link, image: ima...
import React, {Component} from 'react'; import App from './App'; export default class Logo extends Component { state = {link: "", image: ""}; loadLogo(name) { let piece = App.pieces.find(p => p.name == name); let imageUrl = require('../images/'+piece.logo); this.setState({link: piece.link, image: ima...
Use componentWillReceiveProps instead of componentDidUpdate
Use componentWillReceiveProps instead of componentDidUpdate Because loadLogo will setState, then componentDidUpdate is called two times in total.
JSX
isc
J-F-Liu/webpack-react-boilerplate,J-F-Liu/webpack-react-boilerplate
--- +++ @@ -11,15 +11,15 @@ this.setState({link: piece.link, image: imageUrl}); } + componentWillReceiveProps(nextProps) { + let name = nextProps.params.name; + if (name !== this.props.params.name) { + this.loadLogo(name); + } + } + componentDidMount() { this.loadLogo(this.props.para...
4468c2d6085d68e1477fda3c0cbfe33b7e861b1f
tutor/src/components/onboarding/onboarding-nag.jsx
tutor/src/components/onboarding/onboarding-nag.jsx
import React from 'react'; import { Button } from 'react-bootstrap'; import { action, observable } from 'mobx'; import { observer, PropTypes as MobxPropTypes } from 'mobx-react'; import Router from '../../helpers/router'; import { OnboardingNag, Heading, Body, Footer } from './nag-components'; export { OnboardingNag,...
import React from 'react'; import { Button } from 'react-bootstrap'; import { action, observable } from 'mobx'; import { observer, PropTypes as MobxPropTypes } from 'mobx-react'; import Router from '../../helpers/router'; import { OnboardingNag, Heading, Body, Footer } from './nag-components'; export { OnboardingNag,...
Remove "No problem" from the ask me later followup
Remove "No problem" from the ask me later followup https://trello.com/c/HbML3S3w/773-j29-bug-copy-changes
JSX
agpl-3.0
openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js,openstax/tutor-js
--- +++ @@ -39,7 +39,7 @@ return ( <OnboardingNag className="got-it"> <Body> - No problem. When you’re ready to create a real course, click “Create a course” on the top right of your dashboard. + When you’re ready to create a real course, click “Create a course” on the top right...
e96a304a9e9f06b8411e645b5c06ab08cc9dc472
src/react-autolink.jsx
src/react-autolink.jsx
import React from 'react'; import assign from 'object-assign'; function ReactAutolinkMixin() { let delimiter = /((?:https?:\/\/)?(?:(?:[a-z0-9][a-z0-9\-]{1,61}[a-z0-9]\.)+[a-z\.]*[a-z]+|(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3})[a-z0-9.,_\/~#&=;%+?-]*)/ig; return {...
import React from 'react'; import assign from 'object-assign'; function ReactAutolinkMixin() { let delimiter = /((?:https?:\/\/)?(?:(?:[a-z0-9][a-z0-9\-]{1,61}[a-z0-9]\.)+[a-z\.]*[a-z]+|(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3})(?::\d{1,5})*[a-z0-9.,_\/~#&=;%+?-]*)/ig...
Support for matching with port
Support for matching with port Port regex would be more valid way (0 to 65535), however, I choose more easy (lazy) way
JSX
mit
banyan/react-autolink,banyan/react-autolink,banyan/react-autolink
--- +++ @@ -2,7 +2,7 @@ import assign from 'object-assign'; function ReactAutolinkMixin() { - let delimiter = /((?:https?:\/\/)?(?:(?:[a-z0-9][a-z0-9\-]{1,61}[a-z0-9]\.)+[a-z\.]*[a-z]+|(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3})[a-z0-9.,_\/~#&=;%+?-]*)/ig; + let de...
e6a31e0f923e4585bf708525bcdb320753689b11
app/assets/javascripts/notification-counter.js.jsx
app/assets/javascripts/notification-counter.js.jsx
var NotificationCounter = React.createClass({ getInitialState: function() { return {messages: 0, mentions: 0}; }, refresh: function() { var n = this; $.getJSON("/notifications/counters.json", {}, function(data, status, xhr) { n.setState({messages: data.messages, mentions: data.mentions}); })...
var NotificationCounter = React.createClass({ getInitialState: function() { return {messages: 0, mentions: 0}; }, refresh: function() { var n = this; $.getJSON("/notifications/counters.json", {}, function(data, status, xhr) { n.setState({messages: data.messages, mentions: data.mentions}); })...
Set mentions class for mentions counter
Set mentions class for mentions counter
JSX
mit
mutle/fu2,mutle/fu2,mutle/fu2,mutle/fu2
--- +++ @@ -11,7 +11,7 @@ }, render: function() { var messageCounter = this.state.messages > 0 ? <div className="count"><a href="/notifications">{this.state.messages}</a></div> : null; - var mentionCounter = this.state.mentions > 0 ? <div className="count"><a href="/notifications">{this.state.mentions}<...
f858f36f202e33a7e690c6cba841ed02246d1baf
examples/counter/src/components/Counter.jsx
examples/counter/src/components/Counter.jsx
import React, { Component, PropTypes } from 'react' import { withStore, withActions } from 'fluorine-lib' import dispatcher from '../dispatcher' import counter from '../reducers/counter' import * as CounterActions from '../actions/counter' @withStore(dispatcher.reduce(counter), 'counter') @withActions(dispatcher, Cou...
import React, { Component, PropTypes } from 'react' import { withStore, withActions } from 'fluorine-lib' import dispatcher from '../dispatcher' import counter from '../reducers/counter' import * as CounterActions from '../actions/counter' @withStore(dispatcher.reduce(counter), 'counter') @withActions(dispatcher, Cou...
Fix example for stricter babel class transpilation
Fix example for stricter babel class transpilation
JSX
unknown
philplckthun/fluorine,philpl/fluorine,philpl/fluorine
--- +++ @@ -12,7 +12,7 @@ static propTypes = { actions: PropTypes.objectOf(PropTypes.func).isRequired, counter: PropTypes.number.isRequired - } + }; render() { const {
d834c1a26e7b5a6df8f11b99a9297caf48eb4bf8
packages/lesswrong/components/users/LoginPopup.jsx
packages/lesswrong/components/users/LoginPopup.jsx
import { Components, registerComponent } from 'meteor/vulcan:core'; import React, { PureComponent } from 'react'; import Dialog from '@material-ui/core/Dialog'; // Makes its child a link (wrapping it in an <a> tag) which opens a login // dialog. class LoginPopup extends PureComponent { constructor() { super(); ...
import { Components, registerComponent } from 'meteor/vulcan:core'; import React, { PureComponent } from 'react'; import Dialog from '@material-ui/core/Dialog'; // Makes its child a link (wrapping it in an <a> tag) which opens a login // dialog. class LoginPopup extends PureComponent { constructor() { super(); ...
Remove unused props from Dialog
Remove unused props from Dialog
JSX
mit
Discordius/Lesswrong2,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Telescope,Discordius/Lesswrong2
--- +++ @@ -17,8 +17,6 @@ return ( <Dialog - title="Log In" - modal={false} open={true} onClose={this.props.onClose} >
179d938497be42e0071477714407ab7bbeec4a2b
src/utils/iconFactory.jsx
src/utils/iconFactory.jsx
import React from 'react'; import PropTypes from 'prop-types'; export default function iconFactory(network, iconConfig) { const Icon = (props) => { const { className, iconBgStyle, logoFillColor, round, size, } = props; const baseStyle = { width: size, height: si...
import React from 'react'; import PropTypes from 'prop-types'; export default function iconFactory(network, iconConfig) { const Icon = (props) => { const { className, iconBgStyle, logoFillColor, borderRadius, round, size, } = props; const baseStyle = { width: si...
Allow rounded corners for rect icons
Allow rounded corners for rect icons
JSX
mit
nygardk/react-share,nygardk/react-share
--- +++ @@ -7,6 +7,7 @@ className, iconBgStyle, logoFillColor, + borderRadius, round, size, } = props; @@ -30,6 +31,8 @@ <rect width="64" height="64" + rx={borderRadius} + ry={borderRadius} ...
989b0c917cbd693967983d09a975545dde9a4369
indico/modules/events/client/js/header.jsx
indico/modules/events/client/js/header.jsx
// This file is part of Indico. // Copyright (C) 2002 - 2021 CERN // // Indico is free software; you can redistribute it and/or // modify it under the terms of the MIT License; see the // LICENSE file for more details. import React from 'react'; import ReactDOM from 'react-dom'; import {IButton, ICSCalendarLink} from...
// This file is part of Indico. // Copyright (C) 2002 - 2021 CERN // // Indico is free software; you can redistribute it and/or // modify it under the terms of the MIT License; see the // LICENSE file for more details. import React from 'react'; import ReactDOM from 'react-dom'; import {IButton, ICSCalendarLink} from...
Fix react warning about duplicate key
Fix react warning about duplicate key
JSX
mit
DirkHoffmann/indico,ThiefMaster/indico,ThiefMaster/indico,indico/indico,indico/indico,DirkHoffmann/indico,DirkHoffmann/indico,ThiefMaster/indico,ThiefMaster/indico,indico/indico,pferreir/indico,pferreir/indico,DirkHoffmann/indico,pferreir/indico,indico/indico,pferreir/indico
--- +++ @@ -36,7 +36,7 @@ options={[ {key: 'event', text: Translate.string('Event'), extraParams: {}}, { - key: 'event', + key: 'contributions', text: Translate.string('Detailed timetable'), extraParams: {detail: 'contributions'}, },
0acd20cb42c96ed58f11c979bdfba9faa8a8370a
views/components/Main.jsx
views/components/Main.jsx
'use babel'; import React, { Component } from 'react'; import NavBar from './NavBar'; import Announcements from './Announcements/Container'; import Multimedia from './Multimedia/Container'; export default class Main extends Component { constructor(props) { super(props); this.state = { windowToRender: ...
'use babel'; import React, { Component } from 'react'; import NavBar from './NavBar'; import Announcements from './Announcements/Container'; import Multimedia from './Multimedia/Container'; export default class Main extends Component { constructor(props) { super(props); this.state = { windowToRender: ...
Add switch case for different view
Add switch case for different view
JSX
mit
amoshydra/nus-notify,amoshydra/nus-notify
--- +++ @@ -26,7 +26,15 @@ <NavBar switchView={this.switchView} windowToRender={this.state.windowToRender} /> </div> <div id="content"> - <Announcements /> + {(() => { + switch (this.state.windowToRender) { + case 'announcements': return <Announce...
7967b4386fac9cfc51080823b28c7a28ffb4a202
src/components/vanilla/NoteFilter.jsx
src/components/vanilla/NoteFilter.jsx
import React from 'react' import PropTypes from 'prop-types' import style from './NoteFilter.css' const NoteFilter = ({ onChange }) => ( <div className={style.root}> <span>Find notes:</span> <input type='text' className={style.input} placeholder='Filter by text or tags' onChange={eve...
import React from 'react' import PropTypes from 'prop-types' import style from './NoteFilter.css' const NoteFilter = ({ onChange }) => { function resetFilter (input) { if (input.value) { input.value = '' onChange(input.value) } } return ( <div className={style.root}> <span>Find n...
Use ESC to reset filter
Use ESC to reset filter Signed-off-by: Vojtech Szocs <c84ddee24d9ec6bf57c82d34e0d78c578d566b77@gmail.com>
JSX
mit
vojtechszocs/react-playground,vojtechszocs/react-playground
--- +++ @@ -3,17 +3,27 @@ import style from './NoteFilter.css' -const NoteFilter = ({ onChange }) => ( - <div className={style.root}> +const NoteFilter = ({ onChange }) => { + function resetFilter (input) { + if (input.value) { + input.value = '' + onChange(input.value) + } + } - <span>Fi...
670a978795557c7eddc80eff68ff62c2ccce9297
src/app/components/message_form.jsx
src/app/components/message_form.jsx
let React = require('react'); let Actions = require('../actions'); let mui = require('material-ui'); let IconButton = mui.IconButton; let FontIcon = mui.FontIcon; let Colors = mui.Styles.Colors; let MessageForm = React.createClass({ getInitialState () { return { body: '', }; }, handl...
let React = require('react'); let Actions = require('../actions'); let mui = require('material-ui'); let IconButton = mui.IconButton; let FontIcon = mui.FontIcon; let Colors = mui.Styles.Colors; let MessageForm = React.createClass({ getInitialState () { return { body: '', }; }, handl...
Fix empty message sending from MessageForm
Fix empty message sending from MessageForm
JSX
mit
Gargron/xmpp-web,Gargron/xmpp-web
--- +++ @@ -21,7 +21,7 @@ }, handleKeyUp (e) { - if (e.keyCode === 13 && this.state.body.length > 0) { + if (e.keyCode === 13) { this._commitMessage(); } }, @@ -31,6 +31,10 @@ }, _commitMessage () { + if (this.state.body.length === 0) { + return; + } + Actions.send...
4a7c7542829dda358dd7128bbc704fe75c9ce6ca
src/context/ScreenClassProvider/index.jsx
src/context/ScreenClassProvider/index.jsx
/* global window */ import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import { getScreenClass } from '../../utils'; import { getConfiguration } from '../../config'; export const NO_PROVIDER_FLAG = 'NO_PROVIDER_FLAG'; export const ScreenClassContext = React.createContext(NO_PROVIDER_FLA...
/* global window */ import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import { getScreenClass } from '../../utils'; import { getConfiguration } from '../../config'; export const NO_PROVIDER_FLAG = 'NO_PROVIDER_FLAG'; export const ScreenClassContext = React.createContext(NO_PROVIDER_FLA...
Remove event listener instead of add.
Remove event listener instead of add.
JSX
isc
zoover/react-grid-system,zoover/react-grid-system,JSxMachina/react-grid-system
--- +++ @@ -32,7 +32,7 @@ } componentWillUnmount() { - window.addEventListener('resize', this.setScreenClass, false); + window.removeEventListener('resize', this.setScreenClass, false); } setScreenClass() {
89d8fde21c76d80496e30cc66e0c0869aa886bcd
src/js/ui/OverlaysContainer.jsx
src/js/ui/OverlaysContainer.jsx
import React from 'react'; import Shield from './Shield'; import FileDrop from '../file/FileDrop'; // Container to transition from old HTML-based #overlays-container element. export default class OverlaysContainer extends React.Component { render () { return ( <div> <Shield /> ...
import React from 'react'; import Shield from './Shield'; import FileDrop from '../file/FileDrop'; // Container to transition from old HTML-based #overlays-container element. export default class OverlaysContainer extends React.Component { render () { return ( <div> <Shield /> ...
Add proper class to modals container
Add proper class to modals container
JSX
mit
tangrams/tangram-play,tangrams/tangram-play
--- +++ @@ -9,7 +9,7 @@ <div> <Shield /> <FileDrop /> - <div id='modal-container'></div> + <div id='modal-container' className='modal-container' /> </div> ); }
ae534e3625bd6bff90fab7fa181f4db3980c75e9
src/client/pages/Dashboard/ItemList.jsx
src/client/pages/Dashboard/ItemList.jsx
import React from 'react'; import PropTypes from 'prop-types'; import { DashboardCard } from '../shared/Cards'; const ItemList = ({ items }) => ( <div className="item-list"> {items.map(item => ( <DashboardCard item={item} key={item.name} /> ))} </div> ); ItemList.propTypes = { items: PropTypes.ar...
import React from 'react'; import PropTypes from 'prop-types'; import AnimateVisibleChildren from '../shared/AnimateVisibleChildren'; import { DashboardCard } from '../shared/Cards'; const ItemList = ({ items }) => ( <div className="item-list"> <AnimateVisibleChildren className="flex flex-wrap margin-vertical-b...
Add AnimateVisibleChildren effect to Dashboard
Add AnimateVisibleChildren effect to Dashboard
JSX
mit
Chingu-cohorts/devgaido
--- +++ @@ -1,13 +1,16 @@ import React from 'react'; import PropTypes from 'prop-types'; +import AnimateVisibleChildren from '../shared/AnimateVisibleChildren'; import { DashboardCard } from '../shared/Cards'; const ItemList = ({ items }) => ( <div className="item-list"> - {items.map(item => ( - <D...
129f0f2d60da6b79b103df07fec6e742abc4e5c8
src/js/monsterblock.jsx
src/js/monsterblock.jsx
import React from 'react'; const MonsterBlock = React.createClass({ protypes: { stats: React.PropTypes.array.isRequired, title: React.PropTypes.string }, render () { let className = 'monster-block ' + this.props.className; let header = this.props.title ? (<h2>{this.props.title}</h2>) : ''; re...
import React from 'react'; const MonsterBlock = React.createClass({ protypes: { stats: React.PropTypes.array.isRequired, title: React.PropTypes.string }, render () { let className = 'monster-block ' + this.props.className; let header = this.props.title ? (<h2>{this.props.title}</h2>) : ''; re...
Fix markup problem caused by mardown
Fix markup problem caused by mardown
JSX
mit
jkrayer/summoner,jkrayer/summoner
--- +++ @@ -14,7 +14,7 @@ {this.props.stats.map(function(stat, index) { let markup = marked(stat, {sanitize: false}); return ( - <p key={index} dangerouslySetInnerHTML={{__html: markup}} /> + <div key={index} dangerouslySetInnerHTML={{__html: markup}} /> ...
e2d03bd12d7ac627c092913076b30293a83fb744
lib/GridItem.jsx
lib/GridItem.jsx
'use strict'; import React from 'react'; export default class GridItem extends React.Component { render() { var itemStyle = this.props.style; return <div style={itemStyle} className="gridItem">{this.props.item.name}</div>; } } GridItem.propTypes = { item: React.PropTypes.object, style: React.PropType...
'use strict'; import React from 'react'; import BaseDisplayObject from './BaseDisplayObject.jsx'; export default class GridItem extends BaseDisplayObject{ constructor() { super(); this.onDrag = super.onDrag.bind(this); this.onMouseOver = super.onMouseOver.bind(this); } render() { //IMPORTANT: ...
Update gridItem with new basedisplay
Update gridItem with new basedisplay
JSX
mit
jrowny/react-absolute-grid,okonet/react-absolute-grid,rovolution/react-absolute-grid,Jonekee/react-absolute-grid,conorhastings/react-absolute-grid,ClouDesire/react-absolute-grid,Jonekee/react-absolute-grid,socialtables/react-absolute-grid,ClouDesire/react-absolute-grid,okonet/react-absolute-grid,rovolution/react-absolu...
--- +++ @@ -1,16 +1,24 @@ 'use strict'; import React from 'react'; +import BaseDisplayObject from './BaseDisplayObject.jsx'; -export default class GridItem extends React.Component { +export default class GridItem extends BaseDisplayObject{ + + constructor() { + super(); + this.onDrag = super.onDrag.bind(...
4e2cf81d15c6bdeeb3af3bb3e41fed078fc6c3fb
app/components/pages/Search.jsx
app/components/pages/Search.jsx
import React from 'react'; class Search extends React.Component { render() { // if (!process.env.BROWSER) return null; // rendering on server makes it dissapear on client return ( <div> {/*<iframe style={{width: "100%", height: "100vh", maxWidth: "800px"}} frameBorder="0...
import React from 'react'; class Search extends React.Component { render() { // if (!process.env.BROWSER) return null; // rendering on server makes it dissapear on client return ( <div> {/*<iframe style={{width: "100%", height: "100vh", maxWidth: "800px"}} frameBorder="0...
Fix search disable message typo and center
Fix search disable message typo and center
JSX
mit
GolosChain/tolstoy,steemit-intl/steemit.com,TimCliff/steemit.com,enisey14/platform,TimCliff/steemit.com,steemit/steemit.com,TimCliff/steemit.com,steemit/steemit.com,steemit-intl/steemit.com,steemit/steemit.com,GolosChain/tolstoy,enisey14/platform,GolosChain/tolstoy
--- +++ @@ -7,7 +7,7 @@ <div> {/*<iframe style={{width: "100%", height: "100vh", maxWidth: "800px"}} frameBorder="0" src="/static/search.html"> </iframe>*/} - <div>Site search if temporary unavailable. Sorry for the inconvenience.</div> + <d...
562733f5923c632959b119b1d33281aa5d2a2353
samples/msal-react-samples/react-router-sample/src/pages/Logout.jsx
samples/msal-react-samples/react-router-sample/src/pages/Logout.jsx
import React, { useEffect } from "react"; import { useMsal } from "@azure/msal-react"; import { BrowserUtils } from "@azure/msal-browser"; export function Logout() { const { instance } = useMsal(); useEffect(() => { instance.logoutRedirect({ onRedirectNavigate: () => !BrowserUtils.isInIfra...
import React, { useEffect } from "react"; import { useMsal } from "@azure/msal-react"; import { BrowserUtils } from "@azure/msal-browser"; export function Logout() { const { instance } = useMsal(); useEffect(() => { instance.logoutRedirect({ onRedirectNavigate: () => !BrowserUtils.isInIfra...
Fix react router lint error
Fix react router lint error
JSX
mit
AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication-library-for-js,AzureAD/microsoft-authentication...
--- +++ @@ -9,7 +9,7 @@ instance.logoutRedirect({ onRedirectNavigate: () => !BrowserUtils.isInIframe() }) - }, []); + }, [ instance ]); return ( <div>Logout</div>
65d522903efcb34dd5250edb969e47f4e9c6d8f8
src/mb/components/SearchBar.jsx
src/mb/components/SearchBar.jsx
import React from 'react'; import '../res/search-bar.less'; export default class SearchBar extends React.Component { static propTypes = { onKeywordChange: React.PropTypes.func.isRequired } handleChange(e) { const value = e.target.value.trim(); this.clearChangingTimer(); this.changingTimer = set...
import React from 'react'; import '../res/search-bar.less'; export default class SearchBar extends React.Component { static propTypes = { onQueryChange: React.PropTypes.func.isRequired } handleChange(e) { const value = e.target.value.trim(); this.clearChangingTimer(); this.changingTimer = setTi...
Rename keywordChange event to 'queryChange'
Rename keywordChange event to 'queryChange'
JSX
mit
MagicCube/movie-board,MagicCube/movie-board,MagicCube/movie-board
--- +++ @@ -4,14 +4,14 @@ export default class SearchBar extends React.Component { static propTypes = { - onKeywordChange: React.PropTypes.func.isRequired + onQueryChange: React.PropTypes.func.isRequired } handleChange(e) { const value = e.target.value.trim(); this.clearChangingTimer(); ...
6487c98435a3c3b9fbb5a80f28b2c857f3b18741
web/static/js/components/category_column.jsx
web/static/js/components/category_column.jsx
import React from "react" import Idea from "./idea" import * as AppPropTypes from "../prop_types" import styles from "./css_modules/category_column.css" function CategoryColumn(props) { const categoryToEmoticonUnicodeMap = { happy: "😊", sad: "😥", confused: "😕", "action-item": "🚀", } const em...
import React from "react" import Idea from "./idea" import * as AppPropTypes from "../prop_types" import styles from "./css_modules/category_column.css" function CategoryColumn(props) { const categoryToEmoticonUnicodeMap = { happy: "😊", sad: "😥", confused: "🤔", "action-item": "🚀", } const em...
Use thinking-face emoji for confused
Use thinking-face emoji for confused
JSX
mit
tnewell5/remote_retro,samdec11/remote_retro,stride-nyc/remote_retro,tnewell5/remote_retro,stride-nyc/remote_retro,stride-nyc/remote_retro
--- +++ @@ -7,7 +7,7 @@ const categoryToEmoticonUnicodeMap = { happy: "😊", sad: "😥", - confused: "😕", + confused: "🤔", "action-item": "🚀", }
27404f1b5afee8b01d216c36ebeecba0bda02e0a
src/pages/components/ChangePasswordPage.jsx
src/pages/components/ChangePasswordPage.jsx
import Breadcrumb from 'reactstrap/lib/Breadcrumb'; import BreadcrumbItem from 'reactstrap/lib/BreadcrumbItem'; import Col from 'reactstrap/lib/Col'; import PropTypes from 'prop-types'; import React from 'react'; import Row from 'reactstrap/lib/Row'; import Container from '../../components/Container'; import HelmetTit...
import Breadcrumb from 'reactstrap/lib/Breadcrumb'; import BreadcrumbItem from 'reactstrap/lib/BreadcrumbItem'; import Col from 'reactstrap/lib/Col'; import PropTypes from 'prop-types'; import React from 'react'; import Row from 'reactstrap/lib/Row'; import Container from '../../components/Container'; import HelmetTit...
Fix password page breadcrumb label
Fix password page breadcrumb label
JSX
mit
just-paja/improtresk-web,just-paja/improtresk-web
--- +++ @@ -28,7 +28,7 @@ <Link to="participantHome"><Message name="participants.home" /></Link> </BreadcrumbItem> <BreadcrumbItem active> - <Message name="orders.changeFood" /> + <Message name="participants.changePassword" /> </BreadcrumbItem> </Breadcrumb> </Conta...
90bce29f3183d0f0bfd0987142c5581a7fc6173a
docs/src/Examples/Demo/KeyboardDatePicker.jsx
docs/src/Examples/Demo/KeyboardDatePicker.jsx
import React, { Fragment, PureComponent } from 'react'; import { DatePicker } from 'material-ui-pickers'; export default class BasicUsage extends PureComponent { state = { selectedDate: new Date(), } handleDateChange = (date) => { this.setState({ selectedDate: date }); } render() { const { sele...
import React, { Fragment, PureComponent } from 'react'; import { DatePicker } from 'material-ui-pickers'; export default class BasicUsage extends PureComponent { state = { selectedDate: new Date(), } handleDateChange = (date) => { this.setState({ selectedDate: date }); } render() { const { sele...
Add example of using mask as function to datepicker example
Add example of using mask as function to datepicker example
JSX
mit
dmtrKovalenko/material-ui-pickers,callemall/material-ui,mbrookes/material-ui,mbrookes/material-ui,rscnt/material-ui,mbrookes/material-ui,oliviertassinari/material-ui,callemall/material-ui,mui-org/material-ui,rscnt/material-ui,callemall/material-ui,oliviertassinari/material-ui,mui-org/material-ui,dmtrKovalenko/material-...
--- +++ @@ -32,7 +32,8 @@ label="Masked input" format="DD/MM/YYYY" placeholder="10/10/2018" - mask={[/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/]} + // handle clearing outside => pass plain array if you are not controlling value outside + ...
bf7c46834f27abd64d073b22a05c826f7fbe81d6
client/src/components/HouseInventoryList.jsx
client/src/components/HouseInventoryList.jsx
import React from 'react'; import HouseInventoryListItem from './HouseInventoryListItem.jsx'; import { GridList, GridTile } from 'material-ui/GridList'; var HouseInventoryList = (props) => { return ( <GridList cellHeight="auto" cols="4" padding={15}> {props.items.map((item, index) => <HouseInventor...
import React from 'react'; import HouseInventoryListItem from './HouseInventoryListItem.jsx'; import { GridList, GridTile } from 'material-ui/GridList'; var HouseInventoryList = (props) => { return ( <GridList cellHeight="auto" cols={4} padding={15}> {props.items.map((item) => <HouseInventoryListIt...
Change key property to fix deletion bug
Change key property to fix deletion bug
JSX
mit
SentinelsOfMagic/SentinelsOfMagic
--- +++ @@ -4,12 +4,13 @@ var HouseInventoryList = (props) => { return ( - <GridList cellHeight="auto" cols="4" padding={15}> - {props.items.map((item, index) => + <GridList cellHeight="auto" cols={4} padding={15}> + {props.items.map((item) => <HouseInventoryListItem - item = {it...
64dc6a90048090ffefdbdbf71ea3a0c069a04062
src/components/Main.jsx
src/components/Main.jsx
import cx from 'classnames'; import React, {Component} from "react"; export default class Main extends Component { render () { let {className} = this.props; return <div {...this.props} className={cx('main', className)}/>; } }
import cx from 'classnames'; import {Component, findDOMNode} from "react"; export default class Main extends Component { render () { let {className} = this.props; return <div {...this.props} className={cx('main', className)}/>; } componentDidUpdate() { findDOMNode(this).scrollTop = 0; ...
Reset scrollTop when change document
Reset scrollTop when change document
JSX
mit
pirosikick/eslintrc-editor,pirosikick/eslintrc-editor
--- +++ @@ -1,5 +1,5 @@ import cx from 'classnames'; -import React, {Component} from "react"; +import {Component, findDOMNode} from "react"; export default class Main extends Component { @@ -7,4 +7,8 @@ let {className} = this.props; return <div {...this.props} className={cx('main', className)}/>;...
0901dc175d880d5c8b23221ec637b9e40b6e9598
public/src/components/navigation.jsx
public/src/components/navigation.jsx
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { ButtonToolbar, DropdownButton } from 'react-bootstrap'; class Navigation extends Component { constructor(props) { super(props); // Bind this.renderLinks = this.renderLinks.bind(this); } // Render all current l...
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { ButtonToolbar, DropdownButton } from 'react-bootstrap'; class Navigation extends Component { constructor(props) { super(props); // Bind this.renderLinks = this.renderLinks.bind(this); } // Render all current l...
Fix null error for dropdown title
Fix null error for dropdown title
JSX
mit
Twilio-org/phonebank,Twilio-org/phonebank
--- +++ @@ -23,7 +23,7 @@ render() { return ( <ButtonToolbar> - <DropdownButton title={this.props.title} id="menu"> + <DropdownButton title={!!this.props.title ? this.props.title : ''} id="menu"> {this.renderLinks()} </DropdownButton> </ButtonToolbar>
5319bd55e409c1db428094378491731c111214e4
imports/ui/components/events/index.jsx
imports/ui/components/events/index.jsx
import React from 'react' import cloneChildren from '../cloneChildren' export default (props) => ( <ol> {props.events.map((event, idx) => ( <li key={idx} onClick={ev => props.onEventClick(ev, event)}> <p> <span className='bold'>{event.code}</span> <span>{event.date && formatDat...
import React from 'react' import cloneChildren from '../cloneChildren' export default (props) => ( <ol> {props.events.map((event, idx) => ( <li key={idx} onClick={ev => props.onEventClick(ev, event)}> <p> <span className='bold'>{event.code}</span> <span>{event.date && formatDat...
Format events' date: show 'Today' or 'Tomorrow' if applicable.
Format events' date: show 'Today' or 'Tomorrow' if applicable.
JSX
mit
LuisLoureiro/placard-wrapper
--- +++ @@ -27,7 +27,23 @@ ) function formatDate (date) { - return `${setTwoDigits(date.getDate())}/${setTwoDigits(date.getMonth() + 1)}/${date.getFullYear()}, ${setTwoDigits(date.getHours())}:${setTwoDigits(date.getMinutes())}` + return `${setTodayTomorrowOrDate(date)}, ${setTwoDigits(date.getHours())}:${setTw...
831ae9a7779283ecc5695c81b7dcf89006a5544a
test/client/spec/components/ecology.spec.jsx
test/client/spec/components/ecology.spec.jsx
/** * Client tests */ import React from "react/addons"; import Component from "src/components/ecology"; // Use `TestUtils` to inject into DOM, simulate events, etc. // See: https://facebook.github.io/react/docs/test-utils.html const TestUtils = React.addons.TestUtils; describe("components/ecology", function () { ...
/** * Client tests */ import React from "react/addons"; import Ecology from "src/components/ecology"; // Use `TestUtils` to inject into DOM, simulate events, etc. // See: https://facebook.github.io/react/docs/test-utils.html const TestUtils = React.addons.TestUtils; describe("components/ecology", function () { i...
Rename Ecology component under test
Rename Ecology component under test
JSX
mit
FormidableLabs/ecology,aurelienshz/ecology,FormidableLabs/ecology,aurelienshz/ecology
--- +++ @@ -2,7 +2,7 @@ * Client tests */ import React from "react/addons"; -import Component from "src/components/ecology"; +import Ecology from "src/components/ecology"; // Use `TestUtils` to inject into DOM, simulate events, etc. // See: https://facebook.github.io/react/docs/test-utils.html @@ -16,7 +16,7...
28421cfd127977e36a7fdeb26300ebba69b40902
web/static/js/components/category_column.jsx
web/static/js/components/category_column.jsx
import React from "react" import styles from "./css_modules/category_column.css" function CategoryColumn(props) { const categoryToEmoticonUnicodeMap = { happy: "😊", sad: "😥", confused: "😕", "action-item": "🚀", } const emoticonUnicode = categoryToEmoticonUnicodeMap[props.category] const fil...
import React from "react" import styles from "./css_modules/category_column.css" function CategoryColumn(props) { const categoryToEmoticonUnicodeMap = { happy: "😊", sad: "😥", confused: "😕", "action-item": "🚀", } const emoticonUnicode = categoryToEmoticonUnicodeMap[props.category] const fil...
Use primary key as listItem's key attribute to allow ideas with duplicate body attributes
Use primary key as listItem's key attribute to allow ideas with duplicate body attributes
JSX
mit
stride-nyc/remote_retro,stride-nyc/remote_retro,tnewell5/remote_retro,stride-nyc/remote_retro,samdec11/remote_retro,tnewell5/remote_retro
--- +++ @@ -12,7 +12,7 @@ const emoticonUnicode = categoryToEmoticonUnicodeMap[props.category] const filteredIdeas = props.ideas.filter(idea => idea.category === props.category) const filteredIdeasList = filteredIdeas.map(idea => - <li className="item" title={idea.body} key={`${idea.body}`}>{idea.body}</l...
0fb81065fa9bb64b9e4cbc4374ceea60bad481ab
docs/components/EditableExample.jsx
docs/components/EditableExample.jsx
var React = require('react') , ReactDOM = require('react-dom') , Playground = require('@monastic.panic/component-playground/Playground') , ReactWidgets = require('../../src/index') , MultiselectTagList = require('react-widgets/MultiselectTagList') , List = require('react-widgets/List') , genData = require('...
var React = require('react') , ReactDOM = require('react-dom') , Playground = require('@monastic.panic/component-playground/Playground') , ReactWidgets = require('../../src/index') , MultiselectTagList = require('react-widgets/MultiselectTagList') , List = require('react-widgets/List') , genData = require('...
Trim leading blank line from code examples
Trim leading blank line from code examples
JSX
mit
haneev/react-widgets,jquense/react-widgets,haneev/react-widgets,jquense/react-widgets,jquense/react-widgets
--- +++ @@ -18,9 +18,11 @@ module.exports = React.createClass({ render() { + let { codeText, ...props } = this.props; return ( <Playground - {...this.props} + {...props} + codeText={codeText.trim()} mode='jsx' theme='oceanicnext' scope={scope}
84c1b5c8deb20ed2b7d3ad62b2b307f5983c5a28
waartaa/client/app/containers/login/LoginController.jsx
waartaa/client/app/containers/login/LoginController.jsx
import React, {Component, PropTypes} from 'react'; import ActionAndroid from 'material-ui/svg-icons/action/android'; import RaisedButton from 'material-ui/RaisedButton'; import userManager from '../../helpers/oidcHelpers.jsx'; import LoginForm from '../forms/LoginForm'; export default class LoginController extends C...
import React, {Component, PropTypes} from 'react'; import ActionAndroid from 'material-ui/svg-icons/action/android'; import RaisedButton from 'material-ui/RaisedButton'; import userManager from '../../helpers/oidcHelpers.jsx'; import LoginForm from '../forms/LoginForm'; export default class LoginController extends C...
Remove unused FAS login button from login container.
Remove unused FAS login button from login container.
JSX
mit
waartaa/waartaa,waartaa/waartaa,waartaa/waartaa
--- +++ @@ -20,11 +20,6 @@ render() { return ( <div> - <RaisedButton - label="Login with FAS" - icon={<ActionAndroid/>} - onMouseUp={this.onFASLoginButtonClick} - /> <LoginForm handleSubmit={this.handleSubmit} submitting={false} /> </div> );
3e52bc7fc520079fde91bef0c860de19904e5b4a
src/components/navigation/conference/2018/navigation.jsx
src/components/navigation/conference/2018/navigation.jsx
var React = require('react'); var NavigationBox = require('../../base/navigation.jsx'); require('./navigation.scss'); var Navigation = React.createClass({ type: 'Navigation', render: function () { return ( <NavigationBox> <ul className="ul mod-2018"> <l...
var React = require('react'); var NavigationBox = require('../../base/navigation.jsx'); require('./navigation.scss'); var Navigation = React.createClass({ type: 'Navigation', render: function () { return ( <NavigationBox> <ul className="ul mod-2018"> <l...
Make Conference logo button link to homepage.
Make Conference logo button link to homepage.
JSX
bsd-3-clause
LLK/scratch-www,LLK/scratch-www
--- +++ @@ -11,7 +11,7 @@ <NavigationBox> <ul className="ul mod-2018"> <li className="li-left mod-logo mod-2018"> - <a href="/conference" className="logo-a"> + <a href="/" className="logo-a"> ...
55016a4d7f87fa2d5209a2e30c84434558b27616
app/assets/javascripts/components/common/rocket_chat.jsx
app/assets/javascripts/components/common/rocket_chat.jsx
import React from 'react'; const RocketChat = React.createClass({ displayName: 'RocketChat', getInitialState() { return { loggedIn: true }; }, render() { let chatFrame; if (this.state.loggedIn) { chatFrame = <iframe style={{ display: 'block', width: '100%', height: '1000px' }} src="https://...
import React from 'react'; const RocketChat = React.createClass({ displayName: 'RocketChat', getInitialState() { return { showChat: false }; }, login() { this.setState({ showChat: true }); // TODO: // If possible, start by checking if the user is already logged in to RocketChat. // If no...
Add chat login, sketch out next steps
Add chat login, sketch out next steps
JSX
mit
WikiEducationFoundation/WikiEduDashboard,alpha721/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,KarmaHater/WikiEduDashboard,majakomel/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,alpha721/WikiEduDashboard,majakomel/WikiEduDashboard,sejalkhatri/WikiEduDashboard,sejalkhatri/WikiEduDashboard,WikiE...
--- +++ @@ -4,18 +4,36 @@ displayName: 'RocketChat', getInitialState() { - return { loggedIn: true }; + return { showChat: false }; + }, + + login() { + this.setState({ showChat: true }); + + // TODO: + // If possible, start by checking if the user is already logged in to RocketChat. + // ...
9f9e99686f4f798ef6ee30bf55c554137c1f15e6
app/assets/javascripts/components/posts/posts_index.js.jsx
app/assets/javascripts/components/posts/posts_index.js.jsx
var PostList = require('./post_list.js.jsx'); var PostsStore = require('../../stores/posts_store'); var ProductStore = require('../../stores/product_store'); var PostsIndex = React.createClass({ displayName: 'PostsIndex', propTypes: { initialPosts: React.PropTypes.array.isRequired }, componentDidMount: fu...
var PostList = require('./post_list.js.jsx'); var PostsStore = require('../../stores/posts_store'); var ProductStore = require('../../stores/product_store'); var PostsIndex = React.createClass({ displayName: 'PostsIndex', propTypes: { initialPosts: React.PropTypes.array.isRequired }, componentDidMount: fu...
Fix getDefaultProps for non product pages
Fix getDefaultProps for non product pages
JSX
agpl-3.0
lachlanjc/meta,assemblymade/meta,lachlanjc/meta,assemblymade/meta,assemblymade/meta,lachlanjc/meta,lachlanjc/meta,assemblymade/meta
--- +++ @@ -15,8 +15,8 @@ getDefaultProps: function() { var product = ProductStore.getProduct(); - if (!product.slug) { - console.warn('No product slug found when initializing PostsIndex. Has the ProductStore been initialized?'); + if (!product) { + return {} } return {
f0eb141a384d953a8e14f641bc6946a414a1c81f
src/drive/web/modules/services/components/Embeder.jsx
src/drive/web/modules/services/components/Embeder.jsx
import React from 'react' import { Spinner, IntentHeader } from 'cozy-ui/transpiled/react' import FileOpener from 'drive/web/modules/viewer/FileOpenerExternal' import { IconSprite } from 'cozy-ui/transpiled/react/' class Embeder extends React.Component { constructor(props) { super(props) this.state = { ...
import React from 'react' import { Spinner, IntentHeader } from 'cozy-ui/transpiled/react' import FileOpenerExternal from 'drive/web/modules/viewer/FileOpenerExternal' import { IconSprite } from 'cozy-ui/transpiled/react/' class Embeder extends React.Component { constructor(props) { super(props) this.state ...
Rename component to avoid confusion with FileOpener
refactor: Rename component to avoid confusion with FileOpener
JSX
agpl-3.0
nono/cozy-files-v3,nono/cozy-files-v3,nono/cozy-files-v3,nono/cozy-files-v3
--- +++ @@ -1,6 +1,6 @@ import React from 'react' import { Spinner, IntentHeader } from 'cozy-ui/transpiled/react' -import FileOpener from 'drive/web/modules/viewer/FileOpenerExternal' +import FileOpenerExternal from 'drive/web/modules/viewer/FileOpenerExternal' import { IconSprite } from 'cozy-ui/transpiled/react...
3913e5377bd9b417c9d075383248cc79e7b5cf91
src/components/CLIWrapper/CLIWrapper.jsx
src/components/CLIWrapper/CLIWrapper.jsx
import React, { PureComponent } from 'react'; import { Link, routerShape } from 'react-router'; import docs from '../../docs'; import CLIDoc from '../CLIDoc'; import { PrimarySection, SubtronSection } from '../PageSections'; import styles from './CLIWrapper.scss'; export default class CLIWrapper extends PureComponen...
import React, { PureComponent } from 'react'; import { Link, routerShape } from 'react-router'; import docs from '../../docs'; import CLIDoc from '../CLIDoc'; import { PrimarySection, SubtronSection } from '../PageSections'; import styles from './CLIWrapper.scss'; export default class CLIWrapper extends PureComponen...
Fix unknown CLI command page
Fix unknown CLI command page
JSX
mit
MarshallOfSound/electronforge.io,MarshallOfSound/electronforge.io
--- +++ @@ -14,6 +14,7 @@ render() { const { router: { params: { command } } } = this.props; + const targetDoc = docs.find(doc => doc.command === command); return ( <div> @@ -36,8 +37,8 @@ </div> <div className={styles.commandDocs}> { - ...
5bb96541271db58f7def52692f53a0df81ccac12
web/src/components/pages/User/UserView.jsx
web/src/components/pages/User/UserView.jsx
import React, { Component } from 'react'; import { PropTypes } from 'react'; export default class UserView extends Component { constructor(props, context) { super(props, context); this.state = { user: { username: "", age: "" } }; this.onUserNameChange = this.onUserName...
import React, { Component } from 'react'; import { PropTypes } from 'react'; export default class UserView extends Component { constructor(props, context) { super(props, context); this.state = { user: { username: "", age: "" } }; this.onUserNameChange = this.onUserNameChange.bind(this); t...
Replace 4 spaces with 2 spacees
Replace 4 spaces with 2 spacees
JSX
mit
RailsRoading/wissle,RailsRoading/wissle,RailsRoading/wissle
--- +++ @@ -2,49 +2,49 @@ import { PropTypes } from 'react'; export default class UserView extends Component { - constructor(props, context) { - super(props, context); + constructor(props, context) { + super(props, context); - this.state = { - user: { username: "", age: "" } - ...
a9fdac23e39c7f9a9fd7ba4c94f0abde847092cd
src/components/admin/article/components/ArticlePreview.jsx
src/components/admin/article/components/ArticlePreview.jsx
import ArticleBody from 'components/main/ArticleBody'; import React from 'react'; const ArticlePreview = props => ( <div className="article"> <ArticleBody {...props} /> </div> ); ArticlePreview.propTypes = ArticleBody.propTypes; export default ArticlePreview;
import ArticleBody from 'components/main/ArticleBody'; import React from 'react'; const ArticlePreview = props => ( <div className="article" style={{ marginTop: '20px' }}> <ArticleBody {...props} /> </div> ); ArticlePreview.propTypes = ArticleBody.propTypes; export default ArticlePreview;
Increase top margin in preview
Increase top margin in preview
JSX
mit
thegazelle-ad/gazelle-server,thegazelle-ad/gazelle-server,thegazelle-ad/gazelle-front-end,thegazelle-ad/gazelle-front-end,thegazelle-ad/gazelle-server,thegazelle-ad/gazelle-server,thegazelle-ad/gazelle-server
--- +++ @@ -2,7 +2,7 @@ import React from 'react'; const ArticlePreview = props => ( - <div className="article"> + <div className="article" style={{ marginTop: '20px' }}> <ArticleBody {...props} /> </div> );
e9046cd448f57d035c9891dd40746b993cb0ec67
app/scripts/modules/payments/components/payment-create.jsx
app/scripts/modules/payments/components/payment-create.jsx
'use strict'; var React = require('react'); var PaymentHistory = React.createClass({ componentDidMount: function() { this.props.model.on('change', function() { // ??? }); }, componentWillUnmout: function() { this.props.model.off('change'); }, render: function() { return (); } }); ...
'use strict'; var React = require('react'); var Navigation = require('react-router').Navigation; var Input = require('react-bootstrap').Input; var Button = require('react-bootstrap').Button; var paymentActions = require('../actions'); var PaymentHistory = React.createClass({ mixins: [Navigation], formatInput: fu...
Create form for sending payments
[TASK] Create form for sending payments
JSX
isc
dabibbit/dream-stack-seed,dabibbit/dream-stack-seed
--- +++ @@ -1,20 +1,64 @@ 'use strict'; var React = require('react'); +var Navigation = require('react-router').Navigation; +var Input = require('react-bootstrap').Input; +var Button = require('react-bootstrap').Button; +var paymentActions = require('../actions'); var PaymentHistory = React.createClass({ + mi...
75a85cf2195c1497130630ac7a42c2f1f84089f2
src/js/components/MenuItemComponent.jsx
src/js/components/MenuItemComponent.jsx
import React from "react/addons"; import Util from "../helpers/Util"; var MenuItemComponent = React.createClass({ "displayName": "MenuItemComponent", propTypes: { children: React.PropTypes.node, id: React.PropTypes.string, name: React.PropTypes.string, selected: React.PropTypes.bool, value: Re...
import React from "react/addons"; import Util from "../helpers/Util"; var MenuItemComponent = React.createClass({ "displayName": "MenuItemComponent", propTypes: { children: React.PropTypes.node, className: React.PropTypes.string, id: React.PropTypes.string, name: React.PropTypes.string, select...
Allow custom menu item classes
Allow custom menu item classes
JSX
apache-2.0
mesosphere/marathon-ui,cribalik/marathon-ui,cribalik/marathon-ui,mesosphere/marathon-ui
--- +++ @@ -6,6 +6,7 @@ propTypes: { children: React.PropTypes.node, + className: React.PropTypes.string, id: React.PropTypes.string, name: React.PropTypes.string, selected: React.PropTypes.bool, @@ -15,6 +16,7 @@ render: function () { var { children, + className, ...
34c9ccb0308828a4cc88a90409fcb26522f9e641
src/components/menu-bar/community-button.jsx
src/components/menu-bar/community-button.jsx
import classNames from 'classnames'; import {FormattedMessage} from 'react-intl'; import PropTypes from 'prop-types'; import React from 'react'; import Button from '../button/button.jsx'; import communityIcon from './icon--see-community.svg'; import styles from './community-button.css'; const CommunityButton = ({ ...
import classNames from 'classnames'; import {FormattedMessage} from 'react-intl'; import PropTypes from 'prop-types'; import React from 'react'; import Button from '../button/button.jsx'; import communityIcon from './icon--see-community.svg'; import styles from './community-button.css'; const CommunityButton = ({ ...
Change "See Community" to "See Project Page"
Change "See Community" to "See Project Page"
JSX
bsd-3-clause
LLK/scratch-gui,LLK/scratch-gui
--- +++ @@ -21,9 +21,9 @@ onClick={onClick} > <FormattedMessage - defaultMessage="See Community" - description="Label for see community button" - id="gui.menuBar.seeCommunity" + defaultMessage="See Project Page" + description="Label for see...
d664dcd49e7a1b0e6dd7e0d43f21b93cfaa50a07
src/pickhost/static/assets/js/components/ResultDisplay.jsx
src/pickhost/static/assets/js/components/ResultDisplay.jsx
import {range} from 'underscore'; import React from 'react'; import PureRenderMixin from 'react-addons-pure-render-mixin'; import {connect} from 'react-redux'; import MemberForm from './MemberForm'; import ResultDisplay from './ResultDisplay'; import * as actionCreators from '../action_creators'; export default Reac...
import {range} from 'underscore'; import React from 'react'; import PureRenderMixin from 'react-addons-pure-render-mixin'; import {connect} from 'react-redux'; import MemberForm from './MemberForm'; import ResultDisplay from './ResultDisplay'; import * as actionCreators from '../action_creators'; export default Reac...
Add note that this was built with CityMapper API.
Add note that this was built with CityMapper API.
JSX
mit
amfarrell/pickhost,amfarrell/pickhost,amfarrell/pickhost
--- +++ @@ -34,7 +34,9 @@ <span>{this.props.best.get('address')}</span> </div> } else { - return <div><span></span></div> + return <div><span><small> + Built with <a href="https://citymapper.com">Citymapper</a> API + </small> </span></div> } } })
43b99184f794cd5526b365995e658737c5d3a7a1
packages/coinstac-ui/app/render/components/runs/effects/useStartDecentralizedRun.jsx
packages/coinstac-ui/app/render/components/runs/effects/useStartDecentralizedRun.jsx
import { useRef, useEffect } from 'react'; import { useQuery, useSubscription } from '@apollo/client'; import { get } from 'lodash'; import { useSelector, useDispatch } from 'react-redux'; import { FETCH_ALL_CONSORTIA_QUERY, RUN_STARTED_SUBSCRIPTION } from '../../../state/graphql/functions'; import { startRun } from '...
import { useEffect } from 'react'; import { useQuery, useSubscription } from '@apollo/client'; import { get } from 'lodash'; import { useSelector, useDispatch } from 'react-redux'; import { FETCH_ALL_CONSORTIA_QUERY, RUN_STARTED_SUBSCRIPTION } from '../../../state/graphql/functions'; import { startRun } from '../../.....
Update comment on the component responsible for starting decentralized runs
Update comment on the component responsible for starting decentralized runs
JSX
mit
MRN-Code/coinstac,MRN-Code/coinstac,MRN-Code/coinstac
--- +++ @@ -1,4 +1,4 @@ -import { useRef, useEffect } from 'react'; +import { useEffect } from 'react'; import { useQuery, useSubscription } from '@apollo/client'; import { get } from 'lodash'; import { useSelector, useDispatch } from 'react-redux'; @@ -6,8 +6,11 @@ import { FETCH_ALL_CONSORTIA_QUERY, RUN_STARTED...
b07dfba2b52d87b7dd1ef1eb65039effeae10ccb
web/static/js/components/idea_list_item.jsx
web/static/js/components/idea_list_item.jsx
import React, { Component } from "react" import * as AppPropTypes from "../prop_types" import styles from "./css_modules/idea_list_item.css" class IdeaListItem extends Component { render() { let { idea, currentPresence, handleDelete } = this.props return ( <li className={styles.index} title={idea.body...
import React, { Component } from "react" import * as AppPropTypes from "../prop_types" import styles from "./css_modules/idea_list_item.css" class IdeaListItem extends Component { render() { let { idea, currentPresence, handleDelete } = this.props return ( <li className={styles.index} title={idea.body...
Consolidate edit & delete icons under one conditional render
Consolidate edit & delete icons under one conditional render
JSX
mit
stride-nyc/remote_retro,stride-nyc/remote_retro,tnewell5/remote_retro,stride-nyc/remote_retro,tnewell5/remote_retro,samdec11/remote_retro
--- +++ @@ -9,20 +9,20 @@ return ( <li className={styles.index} title={idea.body} key={idea.id}> { currentPresence.user.is_facilitator ? - <i - id={idea.id} - title="Delete Idea" - className={styles.actionIcon + ` remove circle icon`} - onClick...
53e08b8790d1860c8be6c04585bb0eb6d7db3a4f
app/assets/javascripts/components/subcategory_picker.es6.jsx
app/assets/javascripts/components/subcategory_picker.es6.jsx
class SubcategoryPicker extends React.Component { subcategories () { var categoryId = this.props.categoryId; var subcategories = this.props.subcategories.filter( (subcategory) => subcategory.categoryId === categoryId ); var selectedId = this.props.selectedId; var component = this; retu...
class SubcategoryPicker extends React.Component { subcategories () { var categoryId = this.props.categoryId; var subcategories = this.props.subcategories.filter( (subcategory) => subcategory.categoryId === categoryId ); var selectedId = this.props.selectedId; var component = this; retu...
Remove description from subcategory picker and add info link
Remove description from subcategory picker and add info link
JSX
agpl-3.0
AjuntamentdeBarcelona/decidimbcn,AjuntamentdeBarcelona/decidimbcn,AjuntamentdeBarcelona/decidim.barcelona,AjuntamentdeBarcelona/barcelona-participa,AjuntamentdeBarcelona/barcelona-participa,AjuntamentdeBarcelona/decidim.barcelona,AjuntamentdeBarcelona/decidim.barcelona-legacy,AjuntamentdeBarcelona/decidim.barcelona-leg...
--- +++ @@ -18,8 +18,7 @@ <li className={classNames.join(' ')} key={subcategory.id} onClick={() => component.select(subcategory)}> - {subcategory.name} - <div dangerouslySetInnerHTML={{__html: subcategory.description }}></div> + {subcategory.name} <a href=...
73d13713a5af39483eee866f5427803c62858758
app/action-creators/transition.jsx
app/action-creators/transition.jsx
export const MOVE_X_LEFT = 'MOVE_X_LEFT'; export const MOVE_X_RIGHT = 'MOVE_X_RIGHT'; export const MOVE_Y_UP = 'MOVE_Y_UP'; export const MOVE_Y_DOWN = 'MOVE_Y_DOWN'; export const ROTATE_SPRITE = 'ROTATE_SPRITE'; export const INCREMENT_STAR_COUNT = 'INCREMENT_STAR_COUNT'; export const RESET_TRANSITION = 'RESET_TRANSITIO...
export const MOVE_X_LEFT = 'MOVE_X_LEFT'; export const MOVE_X_RIGHT = 'MOVE_X_RIGHT'; export const MOVE_Y_UP = 'MOVE_Y_UP'; export const MOVE_Y_DOWN = 'MOVE_Y_DOWN'; export const ROTATE_SPRITE = 'ROTATE_SPRITE'; export const INCREMENT_STAR_COUNT = 'INCREMENT_STAR_COUNT'; export const RESET_TRANSITION = 'RESET_TRANSITIO...
Add red tile and red star to canvas.
Add red tile and red star to canvas.
JSX
mit
donthedeveloper/kindercode,donthedeveloper/kindercode,donthedeveloper/kindercode
--- +++ @@ -53,4 +53,3 @@ type: RESET_TRANSITION } } -
11aa22cffae01f3e291b7182b0d9c0eee63fcb90
www_src/lib/router.jsx
www_src/lib/router.jsx
module.exports = { android: window.Android, getRouteParams: function () { var r = {}; if (this.android) { // Check to see if route params exist & create cache key var routeParams = this.android.getRouteParams(); var key = 'state::route'; // If they do, save them. If not, fetch from...
module.exports = { android: window.Android, getRouteParams: function () { var r = {}; if (this.android) { // Check to see if route params exist & create cache key var routeParams = this.android.getRouteParams(); var key = 'route::params'; // If they do, save them. If not, fetch fro...
Use in-memory storage for route params
Use in-memory storage for route params
JSX
mpl-2.0
alanmoo/webmaker-android,j796160836/webmaker-android,bolaram/webmaker-android,bolaram/webmaker-android,mozilla/webmaker-android,adamlofting/webmaker-android,alicoding/webmaker-android,gvn/webmaker-android,alanmoo/webmaker-android,mozilla/webmaker-android,alicoding/webmaker-android,k88hudson/webmaker-android,rodmoreno/w...
--- +++ @@ -6,14 +6,14 @@ if (this.android) { // Check to see if route params exist & create cache key var routeParams = this.android.getRouteParams(); - var key = 'state::route'; + var key = 'route::params'; // If they do, save them. If not, fetch from SharedPreferences i...
7cbcd20dca8008d63ae9a51f73ef109e484a988c
client/components/InputForm.jsx
client/components/InputForm.jsx
import React from 'react'; export default class InputForm extends React.Component { constructor(props) { super(props); this.state = { inputValue: '', }; } handleInputChange(e) { this.setState({ inputValue: e.target.value, }); } handleClick() { this.props.analyzeText(this...
import React from 'react'; export default class InputForm extends React.Component { constructor(props) { super(props); this.state = { inputValue: '', }; } handleInputChange(e) { this.setState({ inputValue: e.target.value, }); } handleClick() { this.props.analyzeText(this...
Fix reset text button - clears text and analytics again
Fix reset text button - clears text and analytics again
JSX
mit
nonchalantkettle/SpeechDoctor,alexxisroxxanne/SpeechDoctor,alexxisroxxanne/SpeechDoctor,nonchalantkettle/SpeechDoctor
--- +++ @@ -18,9 +18,18 @@ this.props.analyzeText(this.state.inputValue); } + clearTextForm() { + console.log('reset text got called with this value of ', this); + this.setState({ + inputValue: '', + }); + this.props.resetText(); + } + render() { const handleInputChange = this.han...
1fea29ff633bf9e44e4132d2c49297add4145aff
src/components/FeedItem.jsx
src/components/FeedItem.jsx
import React, { Component } from 'react' import shouldPureComponentUpdate from 'react-pure-render' import gravatar from 'gravatar' import PropTypes from 'lib/PropTypes' import { Card, CardHeader, CardText } from 'material-ui' export default class FeedItem extends Component { static propTypes = { author: Pr...
import React, { Component } from 'react' import shouldPureComponentUpdate from 'react-pure-render' import gravatar from 'gravatar' import PropTypes from 'lib/PropTypes' import { Card, CardHeader, CardText } from 'material-ui' export default class FeedItem extends Component { static propTypes = { author: Pr...
Add profile info to feed items.
Add profile info to feed items.
JSX
mit
tvararu/peak-meteor,tvararu/peak-meteor
--- +++ @@ -18,13 +18,27 @@ shouldComponentUpdate = shouldPureComponentUpdate; render () { - const email = this.props.author.emails[0].address + const author = this.props.author + const email = author.emails[0].address const avatarUrl = gravatar.imageUrl(email) + let title = '' + if (autho...
fcc9845b252b7f23a0e6645250343f770a04905e
src/client/app/components/TooltipHelpComponent.jsx
src/client/app/components/TooltipHelpComponent.jsx
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import React from 'react'; import ReactTooltip from 'react-tooltip'; /** * Component that renders a help icon th...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import React from 'react'; import ReactTooltip from 'react-tooltip'; /** * Component that renders a help icon th...
Remove extraneous word in comment
Remove extraneous word in comment
JSX
mpl-2.0
beloitcollegecomputerscience/OED,beloitcollegecomputerscience/OED,OpenEnergyDashboard/OED,beloitcollegecomputerscience/OED,OpenEnergyDashboard/OED,OpenEnergyDashboard/OED,OpenEnergyDashboard/OED,beloitcollegecomputerscience/OED
--- +++ @@ -6,7 +6,7 @@ import ReactTooltip from 'react-tooltip'; /** - * Component that renders a help icon that shows a tooltip when on hover + * Component that renders a help icon that shows a tooltip on hover */ export default function TooltipHelpComponent(props) { const divStyle = {
833780aed725d5e0995ede485957aa417828fcca
snippets/datedialog.jsx
snippets/datedialog.jsx
import {DateDialog, Button, Stack, TextView, contentView} from 'tabris'; contentView.append( <Stack stretch padding={16} spacing={16} alignment='stretchX'> <Button onSelect={showSimpleDialog}>Simple date dialog</Button> <Button onSelect={showSpecificDate}>Dialog with pre-set date</Button> <Button onSelec...
import {DateDialog, Button, Stack, TextView, contentView} from 'tabris'; contentView.append( <Stack stretch padding={16} spacing={16} alignment='stretchX'> <Button onSelect={showSimpleDialog}>Simple date dialog</Button> <Button onSelect={showSpecificDate}>Dialog with pre-set date</Button> <Button onSelec...
Fix DateDialog snippet to have month in correct range
Fix DateDialog snippet to have month in correct range The previously used initial date for the date dialog had the month at index 12. This value is out of range since the month is index 0 based.
JSX
bsd-3-clause
eclipsesource/tabris-js,eclipsesource/tabris-js,eclipsesource/tabris-js
--- +++ @@ -18,7 +18,7 @@ } async function showSpecificDate() { - const {date} = await DateDialog.open(new Date(2012, 12, 12)).onClose.promise(); + const {date} = await DateDialog.open(new Date(2022, 0, 25)).onClose.promise(); textView.text = date ? `Picked ${date.toDateString()}` : 'Canceled'; }
be62c038ec47af65c68443d2ecc2106342c83db4
app/scripts/shared/components/nav-links/nav-links.jsx
app/scripts/shared/components/nav-links/nav-links.jsx
var React = require('react'); var Link = require('react-router').Link; var NavLinks = React.createClass({ propTypes: { links: React.PropTypes.array }, //<ul className="nav navbar-nav navbar-right"> getDefaultProps: function() { return {className: "nav navbar-nav"}; }, getLinks: function(links...
var React = require('react'); var Link = require('react-router').Link; var NavLinks = React.createClass({ propTypes: { links: React.PropTypes.array }, //<ul className="nav navbar-nav navbar-right"> getDefaultProps: function() { return {className: "nav navbar-nav"}; }, getLinks: function(links...
Add key to Nav List
[TASK] Add key to Nav List
JSX
isc
dabibbit/dream-stack-seed,dabibbit/dream-stack-seed
--- +++ @@ -14,8 +14,8 @@ getLinks: function(links) { var items = links.map(function(link, i) { return( - <li> - <Link key={i++} to={link.href}> + <li key={i++}> + <Link to={link.href}> {link.text} </Link> </li>
d9bc418cede729894b213b99ac24d60332796fda
app/assets/javascripts/components/initial_offer.js.jsx
app/assets/javascripts/components/initial_offer.js.jsx
/** @jsx React.DOM */ (function() { var InitialOffer = React.createClass({ getDefaultProps: function() { return { user: app.currentUser() } }, getInitialState: function() { return { toggle: 'simple' } }, handleToggleClick: function() { this.setState...
/** @jsx React.DOM */ (function() { var InitialOffer = React.createClass({ getDefaultProps: function() { return { user: app.currentUser() } }, getInitialState: function() { return { toggle: 'simple' } }, handleToggleClick: function() { this.setState...
Use the word Custom instead of Advanced
Use the word Custom instead of Advanced
JSX
agpl-3.0
lachlanjc/meta,assemblymade/meta,assemblymade/meta,lachlanjc/meta,lachlanjc/meta,lachlanjc/meta,assemblymade/meta,assemblymade/meta
--- +++ @@ -32,7 +32,7 @@ return ( <div className="form-group"> <div className="btn-group right"> - <a onClick={this.handleToggleClick} href="#">{this.state.toggle == 'simple' ? 'Advanced' : 'Simple'}</a> + <a onClick={this.handleToggleClick} href="#">{this.state.toggl...
5b03009ff1ab70e40c529a8439bed0364a45445b
common/components/componentsBySection/FindProjects/SplashScreen.jsx
common/components/componentsBySection/FindProjects/SplashScreen.jsx
// @flow import React from 'react'; import {Button} from 'react-bootstrap'; import Section from "../../enums/Section.js"; import url from "../../utils/url.js"; import cdn from "../../utils/cdn.js"; type Props = {| onClickFindProjects: () => void |}; class SplashScreen extends React.PureComponent<Props> { _onClic...
// @flow import React from 'react'; import {Button} from 'react-bootstrap'; import Section from "../../enums/Section.js"; import url from "../../utils/url.js"; import cdn from "../../utils/cdn.js"; type Props = {| onClickFindProjects: () => void |}; class SplashScreen extends React.PureComponent<Props> { _onClic...
Change splash screen mission statement
Change splash screen mission statement
JSX
mit
DemocracyLab/CivicTechExchange,DemocracyLab/CivicTechExchange,DemocracyLab/CivicTechExchange,DemocracyLab/CivicTechExchange
--- +++ @@ -30,7 +30,8 @@ </div> </div> <div className="SplashScreen-mission"> - <p>DemocracyLab is a 501(c)(3) nonprofit organization. Our mission is to empower a community of people and projects that use technology to advance the public good.</p> + <p>DemocracyLab is ...
66f953bfffd4b227406291e48a396889ee004355
ditto/static/flux-chat/js/components/RoomSection.jsx
ditto/static/flux-chat/js/components/RoomSection.jsx
var React = require('react'); var ThreadStore = require('../stores/ThreadStore'); var ChatThreadActionCreators = require('../actions/ChatThreadActionCreators'); var cx = require('react/lib/cx'); var urls = require('../utils/urlUtils'); import { Link } from 'react-router'; function getStateFromStores() { return { ...
var React = require('react'); var ThreadStore = require('../stores/ThreadStore'); var ChatThreadActionCreators = require('../actions/ChatThreadActionCreators'); var cx = require('react/lib/cx'); var urls = require('../utils/urlUtils'); import { Link } from 'react-router'; function getStateFromStores() { return { ...
Remove jabber domain from names in 'Other chatrooms'
Remove jabber domain from names in 'Other chatrooms'
JSX
bsd-3-clause
Kvoti/ditto,Kvoti/ditto,Kvoti/ditto,Kvoti/ditto,Kvoti/ditto
--- +++ @@ -31,7 +31,7 @@ var roomListItems = this.state.rooms.map(room => { var roomID = room.split('@')[0]; return ( - <Link key={roomID} className="list-group-item" to={urls.chatroom(roomID)}>{room}</Link> + <Link key={roomID} className="list-group-item" to={urls.chatroom(roomID)}>{Strophe.g...
487f2b5569634b80f301ed6f5cc4a7844b322c5b
src/components/HighlightOnHover.jsx
src/components/HighlightOnHover.jsx
import React from 'react'; import EventTypes from '../update/EventTypes.js'; import Colors from '../styles/Colors.js'; import {makeArtListener} from './utils/DrawingUtils.js'; /** * @example * import handleHover from '...HighlightOnHover.jsx'; * const myHoveringElem = handlerHover(MyCircuitElement); * * @param ...
import React from 'react'; import EventTypes from '../update/EventTypes.js'; import Colors from '../styles/Colors.js'; import {makeArtListener} from './utils/DrawingUtils.js'; /** * @example * import handleHover from '...HighlightOnHover.jsx'; * const myHoveringElem = handlerHover(MyCircuitElement); * * @param ...
Add displayName for Highlighter to help debugging
Add displayName for Highlighter to help debugging
JSX
epl-1.0
circuitsim/circuit-simulator,circuitsim/circuit-simulator,circuitsim/circuit-simulator
--- +++ @@ -53,5 +53,7 @@ hover: false }; + Highlighter.displayName = `Highlighted ${CircuitElement.model.get('type')}`; + return Highlighter; };
131148762812038c80f82a4a77cd1aef89d1cade
app/assets/javascripts/views/input_preview.js.jsx
app/assets/javascripts/views/input_preview.js.jsx
/** @jsx React.DOM */ //= require views/form_group var InputPreview = React.createClass({ getInitialState: function() { return { inputPreview: '', transform: this.props.transform || this.transform }; }, render: function() { return ( <FormGroup> <div className="input-group"...
/** @jsx React.DOM */ //= require views/form_group var InputPreview = React.createClass({ getInitialState: function() { return { inputPreview: '', transform: this.props.transform || this.transform }; }, render: function() { return ( <FormGroup> <div className="input-group"...
Disable repos create button until input >= 2
Disable repos create button until input >= 2
JSX
agpl-3.0
lachlanjc/meta,assemblymade/meta,assemblymade/meta,lachlanjc/meta,lachlanjc/meta,lachlanjc/meta,assemblymade/meta,assemblymade/meta
--- +++ @@ -20,8 +20,8 @@ value={this.state.inputPreview} placeholder={this.props.placeholder} onChange={this.onChange} /> - <span className="input-group-btn"> - <button type="submit" onSubmit={this.onSubmit} className="btn btn-primary">{this.props.butt...
cbef4636e2ab7ec6f122836b03060978e2fe2594
src/app/components/Sidebar/ScriptList.jsx
src/app/components/Sidebar/ScriptList.jsx
import React, { Component, PropTypes } from 'react'; import Script from './Script'; import ReactDOM from 'react-dom'; export default class ScriptList extends Component { static propTypes = { onScriptClick: PropTypes.func.isRequired, scripts: PropTypes.objectOf(React.PropTypes.object.isRequired).isRequired, ...
import React, { Component, PropTypes } from 'react'; import Script from './Script'; import ReactDOM from 'react-dom'; export default class ScriptList extends Component { static propTypes = { onScriptClick: PropTypes.func.isRequired, scripts: PropTypes.objectOf(React.PropTypes.object.isRequired).isRequired, ...
Change view of the scriptList
Change view of the scriptList
JSX
mit
simonlovesyou/AutoRobot
--- +++ @@ -33,7 +33,11 @@ return null; } return ( - <div id="scriptList" key={0}> + <div id="scriptList" className="container flex" key={0}> + <div className="flex"> + <h4 className="flex"> Scripts </h4> + <button className="flex" onClick={() => {this.props.onAddSc...
4968289ac2fd2f4e659cbb673becf5d70d148b6e
BlazarUI/app/scripts/components/sidebar/Module.jsx
BlazarUI/app/scripts/components/sidebar/Module.jsx
/*global config*/ import React, {Component, PropTypes} from 'react'; import BuildingIcon from '../shared/BuildingIcon.jsx'; let Link = require('react-router').Link; class Module extends Component { render() { let {inProgressBuild, gitInfo, module} = this.props.repo; let moduleLink = ''; if (inProgressB...
/*global config*/ import React, {Component, PropTypes} from 'react'; import BuildingIcon from '../shared/BuildingIcon.jsx'; let Link = require('react-router').Link; class Module extends Component { render() { let {inProgressBuild, gitInfo, module} = this.props.repo; let moduleLink = ''; if (inProgressB...
Fix in progress build link for sidebar
Fix in progress build link for sidebar
JSX
apache-2.0
HubSpot/Blazar,HubSpot/Blazar,HubSpot/Blazar,cgvarela/Blazar,cgvarela/Blazar,HubSpot/Blazar,cgvarela/Blazar,cgvarela/Blazar
--- +++ @@ -10,7 +10,7 @@ let moduleLink = ''; if (inProgressBuild) { - moduleLink = `${config.appRoot}/builds/${gitInfo.host}/${gitInfo.organization}/${gitInfo.repository}/${gitInfo.branch}/${module.name + '_' + module.id}/${inProgressBuild.buildNumber}`; + moduleLink = `${config.appRoot}/build...
4ca03795876cdbdbd39538cbff397c7a4c2aa750
src/components/UserProfile/UserProfileContainer.jsx
src/components/UserProfile/UserProfileContainer.jsx
import React, { Component } from 'react'; import firebase, { auth, db } from '../../javascripts/firebase'; import UserProfile from './UserProfile'; import store from '../../store/configureStore'; class UserProfileContainer extends Component { constructor(props) { super(props); this.state = { sightings:...
import React, { Component } from 'react'; import firebase, { auth, db } from '../../javascripts/firebase'; import UserProfile from './UserProfile'; import store from '../../store/configureStore'; class UserProfileContainer extends Component { constructor(props) { super(props); this.state = { sightings:...
Add current user uid as child to firebase db reference
Add current user uid as child to firebase db reference
JSX
mit
omarcodex/butterfly-pinner,omarcodex/butterfly-pinner
--- +++ @@ -13,7 +13,10 @@ componentDidMount() { let sightings; - let ref = db.ref().child('sightings'); + let ref = db + .ref() + .child('sightings') + .child(firebase.auth().currentUser.uid); var that = this; ref.once('value').then(function(snap) { sightings = Object....
918346158ea8c4baade4711b084367ce51facbc1
app/scripts/components/card_list.jsx
app/scripts/components/card_list.jsx
import React from 'react' class CardList extends React.Component { render() { return ( <ul> {this.props.cards.map(card => <li>{card.url}</li>)} </ul> ) } } export default CardList
import React from 'react' import Card from './card' class CardList extends React.Component { render() { return ( <ul> {this.props.cards.map(card => { return <li> <Card {...card} /> </li> })} </ul> ) } } export default CardList
Use Card instead of text inside CardList
Use Card instead of text inside CardList
JSX
mit
adelgado/linkbag,adelgado/linkbag
--- +++ @@ -1,11 +1,16 @@ import React from 'react' +import Card from './card' class CardList extends React.Component { render() { return ( <ul> - {this.props.cards.map(card => <li>{card.url}</li>)} + {this.props.cards.map(card => { + return <li> + <Card {...card} /> + </li> + })...
a02c054dbc1bc56af3f6edf94acddc0baac89e3b
web/components/common/PressAndHoldButton/index.jsx
web/components/common/PressAndHoldButton/index.jsx
import React from 'react'; export default class PressAndHoldButton extends React.Component { componentWillMount() { this.timeout = null; this.interval = null; } componentWillUnmount() { this.handleRelease(); } handleHoldDown() { let that = this; let delay = N...
import React from 'react'; import joinClasses from 'react/lib/joinClasses'; export default class PressAndHoldButton extends React.Component { componentWillMount() { this.timeout = null; this.interval = null; } componentWillUnmount() { this.handleRelease(); } handleHoldDown()...
Use joinClasses() to join class with this.props.className
Use joinClasses() to join class with this.props.className
JSX
mit
cheton/cnc.js,cheton/cnc,cncjs/cncjs,cncjs/cncjs,cheton/piduino-grbl,cheton/cnc.js,cheton/piduino-grbl,cheton/cnc.js,cncjs/cncjs,cheton/cnc,cheton/piduino-grbl,cheton/cnc
--- +++ @@ -1,4 +1,5 @@ import React from 'react'; +import joinClasses from 'react/lib/joinClasses'; export default class PressAndHoldButton extends React.Component { componentWillMount() { @@ -36,7 +37,7 @@ render() { let { type, className, onClick } = this.props; type = type || 'butt...
87ba36e1854866e9496c66d6105b2e8cff4b63fd
src/components/atoms/ReloadButton/ReloadButton.jsx
src/components/atoms/ReloadButton/ReloadButton.jsx
/* Copyright (C) 2017 Cloudbase Solutions SRL This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distribute...
/* Copyright (C) 2017 Cloudbase Solutions SRL This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distribute...
Add `Reload` button animation to lists
Add `Reload` button animation to lists
JSX
agpl-3.0
aznashwan/coriolis-web,aznashwan/coriolis-web
--- +++ @@ -13,7 +13,8 @@ */ import React from 'react' -import styled from 'styled-components' +import styled, { injectGlobal } from 'styled-components' +import PropTypes from 'prop-types' import reloadImage from './images/reload.svg' @@ -24,10 +25,37 @@ cursor: pointer; ` +injectGlobal` + .reload-ani...
2fd15799dd81bee5fce425c8a949a80634ce8f5e
client/src/js/components/Main/options/Jobs/Task.jsx
client/src/js/components/Main/options/Jobs/Task.jsx
/** * @license * The MIT License (MIT) * Copyright 2015 Government of Canada * * @author * Ian Boyes * * @exports Task */ 'use strict'; var _ = require('lodash'); var React = require('react'); var Row = require('react-bootstrap/lib/Row'); var Col = require('react-bootstrap/lib/Col'); var ListGroupItem = requ...
/** * @license * The MIT License (MIT) * Copyright 2015 Government of Canada * * @author * Ian Boyes * * @exports Task */ 'use strict'; var _ = require('lodash'); var React = require('react'); var Row = require('react-bootstrap/lib/Row'); var Col = require('react-bootstrap/lib/Col'); var ListGroupItem = requ...
Make nuvs show as NuVs instead of Nuvs in task-specific limits
Make nuvs show as NuVs instead of Nuvs in task-specific limits
JSX
mit
virtool/virtool,virtool/virtool,igboyes/virtool,igboyes/virtool
--- +++ @@ -31,9 +31,11 @@ render: function () { var readOnly = _.includes(['add_host', 'rebuild'], this.props.taskPrefix); + var displayName = this.props.taskPrefix === 'nuvs' ? 'NuVs': _.startCase(this.props.taskPrefix); + return ( <ListGroupItem> - <h5><s...
6527704462a001f79597292c344a6c16ef1cc603
src/request/components/request-user-list-view.jsx
src/request/components/request-user-list-view.jsx
var React = require('react'), ReactCSSTransitionGroup = React.addons.CSSTransitionGroup, UserItem = require('./request-user-list-item-view.jsx'); module.exports = React.createClass({ render: function() { var users = []; for (var key in this.props.allUsers) { var user = this.props...
var React = require('react'), ReactCSSTransitionGroup = React.addons.CSSTransitionGroup, UserItem = require('./request-user-list-item-view.jsx'); module.exports = React.createClass({ render: function() { var users = []; for (var key in this.props.allUsers) { var user = this.props...
Fix the id being used for the key in the user list
Fix the id being used for the key in the user list
JSX
unknown
Glimpse/Glimpse.Client.Prototype,avanderhoorn/Glimpse.Client.Prototype,Glimpse/Glimpse.Client.Prototype,avanderhoorn/Glimpse.Client.Prototype,Glimpse/Glimpse.Client.Prototype
--- +++ @@ -8,7 +8,7 @@ for (var key in this.props.allUsers) { var user = this.props.allUsers[key]; - users.push(<UserItem key={user.id} user={user} />); + users.push(<UserItem key={user.details.id} user={user} />); } var message = (users.length === 0) ? ...
06a69b52b71c44f9b15d658c3ad23402ec71227d
src/pages/home/components/add-note-form/components/field-error/field-error.jsx
src/pages/home/components/add-note-form/components/field-error/field-error.jsx
// @flow import React from 'react'; import PropTypes from 'prop-types'; import { Field } from 'react-final-form'; import './field-error.scss'; const FieldError = ({ name }) => ( <Field name={name} subscription={{ touched: true, error: true }} render={({ meta: { touched, error } }) => ...
// @flow import React from 'react'; import PropTypes from 'prop-types'; import { Field } from 'react-final-form'; import { toClass } from 'recompose'; import './field-error.scss'; const FieldError = ({ name }) => ( <Field name={name} subscription={{ touched: true, error: true }} render={({ ...
Fix broken <FieldError /> (by unknown reason preact is ignoring functional components)
Fix broken <FieldError /> (by unknown reason preact is ignoring functional components)
JSX
mit
ArturJS/ArturJS.github.io,ArturJS/ArturJS.github.io
--- +++ @@ -2,6 +2,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { Field } from 'react-final-form'; +import { toClass } from 'recompose'; import './field-error.scss'; const FieldError = ({ name }) => ( @@ -18,4 +19,4 @@ name: PropTypes.string.isRequired }; -export default F...
cdabcd44552b1363b289277fb9212b0058890e2f
packages/lesswrong/components/search/UsersSearchInput.jsx
packages/lesswrong/components/search/UsersSearchInput.jsx
import { Components, registerComponent} from 'meteor/vulcan:core'; import React, { PureComponent } from 'react'; import Input from '@material-ui/core/Input'; import InputAdornment from '@material-ui/core/InputAdornment'; import Icon from '@material-ui/core/Icon' import { withStyles } from '@material-ui/core/styles'; c...
import { Components, registerComponent} from 'meteor/vulcan:core'; import React, { PureComponent } from 'react'; import Input from '@material-ui/core/Input'; import InputAdornment from '@material-ui/core/InputAdornment'; import Icon from '@material-ui/core/Icon' import { withStyles } from '@material-ui/core/styles'; c...
Fix 'input.focus is not a function' console error
Fix 'input.focus is not a function' console error
JSX
mit
Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Telescope,Discordius/Telescope,Discordius/Telescope,Discordius/Lesswrong2
--- +++ @@ -14,14 +14,17 @@ } }) -const UsersSearchInput = ({ inputProps, classes }) => <Input - { ...inputProps} - classes={{input: classes.input}} - startAdornment={ - <InputAdornment position="start"> - <Icon>person_add</Icon> - </InputAdornment>} - /> +const UsersS...
4963e37de2f466255d6c0061be3f061f2c912900
app/assets/javascripts/components/edit-player-selection-row.jsx
app/assets/javascripts/components/edit-player-selection-row.jsx
import HeroSelect from './hero-select.jsx' import PlayerSelect from './player-select.jsx' class EditPlayerSelectionRow extends React.Component { render() { const { inputID, selectedPlayer, nameLabel, onHeroSelection, mapSegments, onPlayerSelection, players, heroes, selections } = this.pro...
import HeroSelect from './hero-select.jsx' import PlayerSelect from './player-select.jsx' const EditPlayerSelectionRow = function(props) { const { inputID, selectedPlayer, nameLabel, onHeroSelection, mapSegments, onPlayerSelection, players, heroes, selections } = props return ( <tr> <...
Fix style linter error about pure stateless function
Fix style linter error about pure stateless function
JSX
mit
cheshire137/overwatch-team-comps,cheshire137/overwatch-team-comps,cheshire137/overwatch-team-comps
--- +++ @@ -1,35 +1,33 @@ import HeroSelect from './hero-select.jsx' import PlayerSelect from './player-select.jsx' -class EditPlayerSelectionRow extends React.Component { - render() { - const { inputID, selectedPlayer, nameLabel, onHeroSelection, - mapSegments, onPlayerSelection, players, heroes, ...
46c194c20ab433e53ec969337cfff29e7698a981
src/FormsyText.jsx
src/FormsyText.jsx
import React from 'react'; import Formsy from 'formsy-react'; import TextField from 'material-ui/lib/text-field'; let FormsyText = React.createClass({ mixins: [ Formsy.Mixin ], propTypes: { name: React.PropTypes.string.isRequired, value: React.PropTypes.string }, handleChange: function handleChange(e...
import React from 'react'; import Formsy from 'formsy-react'; import TextField from 'material-ui/lib/text-field'; let FormsyText = React.createClass({ mixins: [ Formsy.Mixin ], propTypes: { name: React.PropTypes.string.isRequired, value: React.PropTypes.string, onFocus: React.PropTypes.func, onBlu...
Add custom onBlur and onFocus handler support
Add custom onBlur and onFocus handler support Pass event to onBlur
JSX
mit
rojobuffalo/formsy-material-ui,Aweary/formsy-material-ui,alan-cruz2/formsy-material-ui,mbrookes/formsy-material-ui
--- +++ @@ -7,7 +7,9 @@ propTypes: { name: React.PropTypes.string.isRequired, - value: React.PropTypes.string + value: React.PropTypes.string, + onFocus: React.PropTypes.func, + onBlur: React.PropTypes.func }, handleChange: function handleChange(event) { @@ -29,6 +31,7 @@ handleBlur...
f11127b209031c93e73dc97dd441337411950d04
packages/vulcan-accounts/imports/ui/components/EnrollAccount.jsx
packages/vulcan-accounts/imports/ui/components/EnrollAccount.jsx
import { Components, registerComponent, withCurrentUser } from 'meteor/vulcan:core'; import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import { intlShape } from 'meteor/vulcan:i18n'; import { STATES } from '../../helpers.js'; class AccountsEnrollAccount extends PureComponent { compone...
import { Components, registerComponent, withCurrentUser } from 'meteor/vulcan:core'; import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import { intlShape } from 'meteor/vulcan:i18n'; import { STATES } from '../../helpers.js'; class AccountsEnrollAccount extends PureComponent { compone...
Fix punctuation glitch on password reset page
Fix punctuation glitch on password reset page The localizations of `accounts.info_password_changed` all end in a period, so adding an exclamation point after it results in "Password changed.!" which is incorrect punctuation.
JSX
mit
Discordius/Telescope,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Telescope,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2
--- +++ @@ -20,7 +20,7 @@ } else { return ( <div className='password-reset-form'> - <div>{this.context.intl.formatMessage({id: 'accounts.info_password_changed'})}!</div> + <div>{this.context.intl.formatMessage({id: 'accounts.info_password_changed'})}</div> </div> ...