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
5edf285889d28dcf3dbd268e3bc707e7eb67858a
client/app/bundles/HelloWorld/components/premium/quote_request_modal.jsx
client/app/bundles/HelloWorld/components/premium/quote_request_modal.jsx
import React from 'react' import Modal from 'react-bootstrap/lib/Modal'; import Stripe from '../modules/stripe.jsx' export default React.createClass ({ getInitialState: function() { return { isUserSignedIn: ($('#user-logged-in').data().signedIn === true) }; }, charge: function() { n...
import React from 'react' import Modal from 'react-bootstrap/lib/Modal'; import Stripe from '../modules/stripe.jsx' export default React.createClass ({ getInitialState: function() { return { isUserSignedIn: ($('#user-logged-in').data().signedIn === true) }; }, charge: function() { n...
Update copy with credit card
Update copy with credit card
JSX
agpl-3.0
empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core,empirical-org/Empirical-Core
--- +++ @@ -32,7 +32,7 @@ </a> </Modal.Body> <Modal.Footer> - <p>To pay now, please <span data-toggle="modal" onClick={this.chargeOrLogin}>click here</span>.</p> + <p>To pay now with a credit card, please <span data-toggle="modal" onClick=...
2764d37b8c72728b1f6ec5be12d3633499fd1e24
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/piduino-grbl,cheton/cnc.js,cncjs/cncjs,cncjs/cncjs,cheton/cnc.js,cheton/cnc.js,cheton/cnc,cheton/piduino-grbl,cheton/piduino-grbl,cheton/cnc,cheton/cnc,cncjs/cncjs
--- +++ @@ -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...
1396873498d43bb12b94fa2a0214d44703e2b48c
src/app.jsx
src/app.jsx
/* * Copyright 2018 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
/* * Copyright 2018 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
Remove history props as BrowserRouter uses the HTML 5 api.
Remove history props as BrowserRouter uses the HTML 5 api.
JSX
apache-2.0
ExpediaDotCom/haystack-ui,ExpediaDotCom/haystack-ui
--- +++ @@ -34,7 +34,7 @@ // mount react components ReactDOM.render( <Provider {...stores}> - <Router history={history}> + <Router> <Route component={withTracker(Main)}/> </Router> </Provider>
d525b40c3ca027f46c4128601311cc7b05d3b71b
src/components/elements/post-comments-more.jsx
src/components/elements/post-comments-more.jsx
import React from 'react'; import { preventDefault } from '../../utils'; import throbber16 from 'assets/images/throbber-16.gif'; export default (props) => ( <div className="comment"> <span className="more-comments-throbber"> {props.isLoading ? ( <img width="16" height="16" src={throbber16}/> ...
import React from 'react'; import { preventDefault } from '../../utils'; import throbber16 from 'assets/images/throbber-16.gif'; export default (props) => ( <div className="comment"> <span className="more-comments-throbber"> {props.isLoading ? ( <img width="16" height="16" src={throbber16}/> ...
Remove unnecessary arrow function in PostCommentsMore
[jsx-no-bind] Remove unnecessary arrow function in PostCommentsMore
JSX
mit
clbn/freefeed-gamma,clbn/freefeed-gamma,clbn/freefeed-gamma
--- +++ @@ -12,7 +12,7 @@ </span> <a className="more-comments-link" href={props.postUrl} - onClick={preventDefault(()=>props.showMoreComments())}> + onClick={preventDefault(props.showMoreComments)}> {`${props.omittedComments}`} more comments </a> </div>
608eadac4d0c7ab53298f1b07d5b5c8bcd29f957
src/ConnectionStatus.jsx
src/ConnectionStatus.jsx
import { observer } from 'mobx-react' import React from 'react' import { connect } from 'react-redux' import FlatButton from 'material-ui/FlatButton' import { app } from '@mindhive/di' const ConnectionStatus = ({ domains: { connectionDomain } = app(), vocab, }) => connectionDomain.connectionDown && <div sty...
import { observer } from 'mobx-react' import React from 'react' import FlatButton from 'material-ui/FlatButton' import { app } from '@mindhive/di' const ConnectionStatus = ({ domains: { connectionDomain } = app(), }) => connectionDomain.connectionDown && <div style={{ background: 'red', color: 'white' }}> ...
Remove use of vocab to keep generic
Remove use of vocab to keep generic
JSX
mit
mindhivenz/mui-components
--- +++ @@ -1,17 +1,15 @@ import { observer } from 'mobx-react' import React from 'react' -import { connect } from 'react-redux' import FlatButton from 'material-ui/FlatButton' import { app } from '@mindhive/di' const ConnectionStatus = ({ domains: { connectionDomain } = app(), - vocab, }) => connect...
40f2391457c7187ca0103311b72a06718a95ec50
client/src/components/transaction/currency-input.jsx
client/src/components/transaction/currency-input.jsx
import React from 'react' import { Input } from 'components/core/input' import { getCurrencyCodes } from 'services/currency' import user from 'services/user' class CurrencyInput extends React.Component { constructor (props) { super(props) this.state = { currencyCodes: [] } } async componentDi...
import React from 'react' import { Input } from 'components/core/input' import { getCurrencyCodes } from 'services/currency' import user from 'services/user' class CurrencyInput extends React.Component { constructor (props) { super(props) this.state = { currencyCodes: [] } } async componentDi...
Fix initial value for currency input
Fix initial value for currency input
JSX
mit
mtratsiuk/contrast,mtratsiuk/contrast,mtratsiuk/contrast,mtratsiuk/contrast
--- +++ @@ -26,7 +26,7 @@ return ( <Input {...this.props} - getInitialValue={() => user.getPreferredCurrency()} + getInitialValue={this.props.getInitialValue || (() => user.getPreferredCurrency())} validate={value => (currencyCodes || []).indexOf(value) >= 0} autoc...
7ae7df8398ac9b59e7b4ddf9dc4bc9f9aefd7d13
src/pages/Flipper.jsx
src/pages/Flipper.jsx
import React from 'react' import Img from 'gatsby-image' import './Flipper.scss' const Flipper = ({ name, logo, text }) => ( <div className="Flipper"> <div className="Flipper-Inner"> <div className="Flipper-Front"> <Img fluid={logo} alt={name} /> </div> <...
import React from 'react' import Img from 'gatsby-image' import './Flipper.scss' const Flipper = ({ name, logo, text }) => ( <div className="Flipper"> <div className="Flipper-Inner"> <div className="Flipper-Front"> <Img fluid={logo} alt={name} fixed={typeof window === 'undefined...
Fix build error in gatsby image
Fix build error in gatsby image
JSX
mit
Echie/echie-net
--- +++ @@ -6,7 +6,7 @@ <div className="Flipper"> <div className="Flipper-Inner"> <div className="Flipper-Front"> - <Img fluid={logo} alt={name} /> + <Img fluid={logo} alt={name} fixed={typeof window === 'undefined' ? { src: {} } : undefined} /> </...
4a4b22f8fcebebfca15cade382fac41a85f546a1
src/components/Alert.jsx
src/components/Alert.jsx
import React from 'react'; import { connect } from 'react-redux'; import { setAlert } from 'appActions'; class Alert extends React.Component { constructor(props) { super(props); this.handleExitClick = this.handleExitClick.bind(this); } componentDidUpdate() { setTimeout(() => { this.props.dis...
import React from 'react'; import { connect } from 'react-redux'; import { setAlert } from 'appActions'; class Alert extends React.Component { constructor(props) { super(props); this.handleExitClick = this.handleExitClick.bind(this); } componentWillReceiveProps(nextProps) { if (nextProps && nextPr...
Fix alert updating more than it should
Fix alert updating more than it should
JSX
mit
JavierPDev/Weather-D3,JavierPDev/Weather-D3
--- +++ @@ -10,10 +10,12 @@ this.handleExitClick = this.handleExitClick.bind(this); } - componentDidUpdate() { - setTimeout(() => { - this.props.dispatch(setAlert({type: null, message: null})); - }, 3000); + componentWillReceiveProps(nextProps) { + if (nextProps && nextProps.app.alert.type) ...
4c28f621857c618cb6b9c1685491fcdff03b38d3
wrappers/html.jsx
wrappers/html.jsx
import React from 'react'; module.exports = React.createClass({ render: function() { var html; html = "<div>fix me</div>"; return ( <div dangerouslySetInnerHTML={{__html: html}}/> ); } });
import React, {PropTypes} from 'react' module.exports = React.createClass({ propTypes: { page: PropTypes.shape({ data: PropTypes.string, }), }, render: function () { const html = this.props.page.data; return ( <div dangerouslySetInnerHTML={{__html: html}}/> ); } });
Fix HTML wrapper, even if it's currently unused
Fix HTML wrapper, even if it's currently unused
JSX
mit
scottnonnenberg/blog,scottnonnenberg/blog,scottnonnenberg/blog
--- +++ @@ -1,9 +1,15 @@ -import React from 'react'; +import React, {PropTypes} from 'react' module.exports = React.createClass({ - render: function() { - var html; - html = "<div>fix me</div>"; + propTypes: { + page: PropTypes.shape({ + data: PropTypes.string, + }), + }, + + render: function ...
57eb0cff9e8370a40a0ff0f2c362a7771feb7bae
installer/app/src/views/aws-region-picker.js.jsx
installer/app/src/views/aws-region-picker.js.jsx
import PrettySelect from './pretty-select'; var AWSRegionPicker = React.createClass({ render: function () { return ( <label> <div>AWS Region: </div> <PrettySelect onChange={this.__handleChange} value={this.props.value}> <option value="us-east-1">US East (N. Virginia)</option> <option value="us-...
import PrettySelect from './pretty-select'; var AWSRegionPicker = React.createClass({ render: function () { return ( <label> <div>AWS Region: </div> <PrettySelect onChange={this.__handleChange} value={this.props.value}> <option value="us-east-1">US East (N. Virginia)</option> <option value="us-...
Remove eu-central-1 from region select
installer: Remove eu-central-1 from region select This region doesn't have a corresponding image. fixes #1336 Signed-off-by: Jesse Stuart <a5c95b3d7cb4d0ae05a15c79c79ab458dc2c8f9e@jessestuart.ca>
JSX
bsd-3-clause
jzila/flynn,supermario/flynn,TribeMedia/flynn,technosophos/flynn,tonicbupt/flynn,rikur/flynn,arekkas/flynn,rikur/flynn,shads196770/flynn,whouses/flynn,TribeMedia/flynn,TribeMedia/flynn,shads196770/flynn,arekkas/flynn,pkdevbox/flynn,jzila/flynn,felixrieseberg/flynn,jzila/flynn,GrimDerp/flynn,justintung/flynn,benbjohnson...
--- +++ @@ -10,7 +10,6 @@ <option value="us-west-2">US West (Oregon)</option> <option value="us-west-1">US West (N. California)</option> <option value="eu-west-1">EU (Ireland)</option> - <option value="eu-central-1">EU (Frankfurt)</option> <option value="ap-southeast-1">Asia Pacific (Singa...
67a8d1770ad3223ec6651059b4e5b05cb56b47df
src/components/controls/Range.jsx
src/components/controls/Range.jsx
// @flow import React from "react"; import s from "./styles.scss"; const Range = (props: { name: string, types: { range: [number, number] }, value: number, step: ?number, onSetFilterOption: (string, any) => {} }) => ( <div className={s.range}> <div className={s.label}>{props.name}</div> <div clas...
// @flow import React from "react"; import s from "./styles.scss"; const Range = (props: { name: string, types: { range: [number, number] }, value: number, step: ?number, onSetFilterOption: (string, any) => {} }) => ( <div className={s.range}> <div className={s.label}>{props.name}</div> <div clas...
Allow manual setting of 0 in range control
Allow manual setting of 0 in range control
JSX
mit
gyng/ditherer,gyng/ditherer,gyng/ditherer
--- +++ @@ -31,7 +31,7 @@ onClick={() => { const newValue = window.prompt("Value"); // eslint-disable-line const parsed = parseFloat(newValue); - if (parsed) { + if (parsed || parsed === 0) { props.onSetFilterOption(props.name, parsed); } ...
afa613b0e556fb941fa1e28d2653e6e9043910e8
app/app/config/routes.jsx
app/app/config/routes.jsx
import React from 'react' import Main from '../components/Main.jsx' import CreateUser from '../components/user/CreateUser.jsx' import Home from '../components/home/Home.jsx' import Login from '../components/user/Login.jsx' import CreateTask from '../components/tasks/CreateTask.jsx' import {Route, IndexRoute} from 'reac...
import React from 'react' import Main from '../components/Main.jsx' import CreateUser from '../components/user/CreateUser.jsx' import Home from '../components/home/Home.jsx' import Login from '../components/user/Login.jsx' import CreateTask from '../components/tasks/CreateTask.jsx' import {Route, IndexRoute} from 'reac...
Add Routes for components in create task
Add Routes for components in create task
JSX
mit
taodav/MicroSerfs,taodav/MicroSerfs
--- +++ @@ -5,6 +5,8 @@ import Login from '../components/user/Login.jsx' import CreateTask from '../components/tasks/CreateTask.jsx' import {Route, IndexRoute} from 'react-router' +import TaskForm from '../components/tasks/TaskForm.jsx' +import SearchSerf from '../components/tasks/SearchSerf.jsx' const CreateUs...
8813352c1bf1c73a042b8c567ec171b1c47b6fe2
src/client.jsx
src/client.jsx
import React from 'react' import { render } from 'react-dom' import Hello from './components/Hello' render(<Hello name="Rodrigo" />, document.getElementById('root'))
import React from 'react' import { render } from 'react-dom' import Hello from './components/Hello' render(<Hello />, document.getElementById('root'))
Remove name prop on Hello instantiation
Remove name prop on Hello instantiation
JSX
mit
rwillrich/life-goals-tracker
--- +++ @@ -3,4 +3,4 @@ import Hello from './components/Hello' -render(<Hello name="Rodrigo" />, document.getElementById('root')) +render(<Hello />, document.getElementById('root'))
06e01c6eda96386e52f78992a4d8bdd136a3e5b1
src/sentry/static/sentry/app/views/groupDetails/chart.jsx
src/sentry/static/sentry/app/views/groupDetails/chart.jsx
var React = require("react"); var BarChart = require("../../components/barChart"); var PropTypes = require("../../proptypes"); var PureRenderMixin = require('react/addons').addons.PureRenderMixin; var GroupChart = React.createClass({ mixins: [PureRenderMixin], propTypes: { group: PropTypes.Group.isRequired, ...
var React = require("react"); var BarChart = require("../../components/barChart"); var PropTypes = require("../../proptypes"); var PureRenderMixin = require('react/addons').addons.PureRenderMixin; var GroupChart = React.createClass({ mixins: [PureRenderMixin], propTypes: { group: PropTypes.Group.isRequired, ...
Fix logic for checking if first seen should be visible
Fix logic for checking if first seen should be visible
JSX
bsd-3-clause
gencer/sentry,alexm92/sentry,BayanGroup/sentry,kevinlondon/sentry,kevinlondon/sentry,daevaorn/sentry,imankulov/sentry,ngonzalvez/sentry,gencer/sentry,BuildingLink/sentry,JamesMura/sentry,zenefits/sentry,alexm92/sentry,BayanGroup/sentry,fotinakis/sentry,jean/sentry,ngonzalvez/sentry,jean/sentry,nicholasserra/sentry,look...
--- +++ @@ -21,10 +21,11 @@ var className = "bar-chart group-chart " + (this.props.className || ''); var markers = []; - if (this.props.firstSeen >= points[0].x) { + var firstSeenX = new Date(this.props.firstSeen).getTime() / 1000; + if (firstSeenX >= points[0].x) { markers.push({ ...
6745f1569fcf77d620c456d70e450110e959f253
app/app/components/home/RegisteredUserHome.jsx
app/app/components/home/RegisteredUserHome.jsx
import React from 'react'; import {Link} from 'react-router' import auth from '../../utils/auth.jsx' export default class RegisteredUserHome extends React.Component { // componentWillMount() { // auth.getUser(localStorage.id).then((res) => { // this.user = res.data.user // }) // } render(){ return( <div...
import React from 'react'; import {Link} from 'react-router' import auth from '../../utils/auth.jsx' export default class RegisteredUserHome extends React.Component { // componentWillMount() { // auth.getUser(localStorage.id).then((res) => { // this.user = res.data.user // }) // } render(){ return( <div...
Refactor getUser into parent component and pass down as props
Refactor getUser into parent component and pass down as props
JSX
mit
taodav/MicroSerfs,taodav/MicroSerfs
--- +++ @@ -12,7 +12,8 @@ return( <div className="starter-template"> <h1>Welcome Back, {this.props.user.first_name}</h1> - <p className="lead">Cras justo odio, dapibus ac facilisis in, egestas eget quam. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa j...
da544845ef1d3c29e46e924bcbc0b44d5698a8ee
app/client/components/sections/Goals/Goals.jsx
app/client/components/sections/Goals/Goals.jsx
Camino.Goals = React.createClass({ mixins: [ReactMeteorData], getMeteorData() { let sub = Meteor.subscribe("goals") return { isLoading: ! sub.ready(), goals: Goals.find({ 'userId': Meteor.userId() }).fetch() } }, showContent() { return ( <div className="goals s...
Camino.Goals = React.createClass({ mixins: [ReactMeteorData], // Fetch the data. Reactive and real-time by default. getMeteorData() { let sub = Meteor.subscribe("goals") return { isLoading: ! sub.ready(), goals: Goals.find({ 'userId': Meteor.userId() }).fetch() } }, //...
Add comments for the blog post
Add comments for the blog post
JSX
mit
fjaguero/camino,fjaguero/camino
--- +++ @@ -1,6 +1,7 @@ Camino.Goals = React.createClass({ mixins: [ReactMeteorData], + // Fetch the data. Reactive and real-time by default. getMeteorData() { let sub = Meteor.subscribe("goals") @@ -12,7 +13,8 @@ } }, - showContent() { + // Pass the data to the view + showGoals() { ...
adcf969b71234642b0339eada6d0e5fa8d03def6
packages/lesswrong/components/posts/PostsItemTitle.jsx
packages/lesswrong/components/posts/PostsItemTitle.jsx
import { Components, registerComponent } from 'meteor/vulcan:core'; import React from 'react'; import Typography from '@material-ui/core/Typography'; import { withStyles } from '@material-ui/core/styles' import grey from '@material-ui/core/colors/grey'; const styles = theme => ({ root: { whiteSpace:"nowrap", ...
import { Components, registerComponent } from 'meteor/vulcan:core'; import React from 'react'; import Typography from '@material-ui/core/Typography'; import { withStyles } from '@material-ui/core/styles' import grey from '@material-ui/core/colors/grey'; const styles = theme => ({ root: { whiteSpace:"nowrap", ...
Remove width from title component
Remove width from title component
JSX
mit
Discordius/Lesswrong2,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Telescope,Discordius/Lesswrong2
--- +++ @@ -9,7 +9,6 @@ whiteSpace:"nowrap", overflow:"hidden", textOverflow:"ellipsis", - width:"calc(100% - 80px)", [theme.breakpoints.down('xs')]: { paddingLeft: 2, },
6153ad169f20900f59fbc345655fcb2f33acdba6
src/components/notes/Note.jsx
src/components/notes/Note.jsx
import React from 'react'; import './Note.scss'; import noteRepository from '../../data/NoteRepository'; export default class Note extends React.Component { remove() { noteRepository.remove(this.props, err => { // TODO: inform user if (err) throw err; }); } render() { return ( <div...
import React from 'react'; import './Note.scss'; import noteRepository from '../../data/NoteRepository'; export default class Note extends React.Component { remove() { noteRepository.remove(this.props, err => { // TODO: inform user if (err) throw err; }); } render() { return ( <div...
Add click handler to display modal when editing
Add click handler to display modal when editing
JSX
mit
emyarod/refuge,emyarod/refuge
--- +++ @@ -12,7 +12,7 @@ render() { return ( - <div className="note"> + <div className="note" onClick={this.props.clickHandler}> <h1>{this.props.title}</h1> <pre>{this.props.content}</pre> <button type="button" onClick={() => this.remove()}>
fe32202cde374ef0dbaf1747293d91b85c42b3d6
app/assets/javascripts/components/copy_link.jsx
app/assets/javascripts/components/copy_link.jsx
class CopyLink extends React.Component { constructor(props) { super(props); this.copyStreamLinkFn = this.copyStreamLink.bind(this); } copyStreamLink(event) { // Clipboard API is not mature yet // const copyEvent = new ClipboardEvent('copy', { dataType: 'text/plain', data: this.props.href }); ...
class CopyLink extends React.Component { constructor(props) { super(props); this.copyStreamLinkFn = this.copyStreamLink.bind(this); } copyStreamLink(event) { // Clipboard API is not mature yet // const copyEvent = new ClipboardEvent('copy', { dataType: 'text/plain', data: this.props.href }); ...
Make CopyLink an <a> tag
Make CopyLink an <a> tag Allows for right-click → copy link as well
JSX
mit
gyng/ireul-web,gyng/ireul-web,gyng/ireul-web
--- +++ @@ -31,10 +31,11 @@ }; return ( - <div + <a className="copy-link" - style={{ cursor: 'pointer' }} + href={this.props.href} onClick={this.copyStreamLinkFn} + style={{ color: 'inherit', cursor: 'pointer' }} title="Copy direct stream link…" ...
b9c457138a7d00fc248fe3966d620053d17fadae
src/js/components/nav.jsx
src/js/components/nav.jsx
const React = require('react'); const Icon = require('components/icon.jsx'); const Nav = React.createClass({ render: function() { return ( <div className='nav'> <div className='top'> <Icon type='navicon' size='lg' /> <a className='logo' href='/'> <Icon type='reddit'...
const React = require('react'); const Icon = require('components/icon.jsx'); const Nav = React.createClass({ render: function() { return ( <div className='nav'> <div className='top'> <Icon type='navicon' size='lg' /> <a className='logo' href='/'> <Icon type='reddit'...
Switch dummy anchors to ref fake hash links
Switch dummy anchors to ref fake hash links
JSX
mit
AdamEdgett/material-reddit,AdamEdgett/material-reddit,AdamEdgett/material-reddit
--- +++ @@ -19,12 +19,12 @@ <div className='bottom'> <div className='sorts'> - <a href='/hot'>hot</a> - <a href='/new'>new</a> - <a href='/rising'>rising</a> - <a href='/controversial'>controversial</a> - <a href='/top'>top</a> - ...
6101516119e4bb0aed8e0f7c3dbb285c3f9abde6
src/components/user-feed.jsx
src/components/user-feed.jsx
import React from 'react' import {Link} from 'react-router' import PaginatedView from './paginated-view' import Feed from './feed' export default props => ( <div> {props.viewUser.blocked ? ( <div className="box-body"> <p>You have blocked <b>{props.viewUser.screenName}</b>, so all of their posts an...
import React from 'react' import {Link} from 'react-router' import PaginatedView from './paginated-view' import Feed from './feed' export default props => ( <div> {props.viewUser.blocked ? ( <div className="box-body"> <p>You have blocked <b>{props.viewUser.screenName}</b>, so all of their posts an...
Fix navigating to second page of user feed
Fix navigating to second page of user feed This fixes a JS error causing a full page reload when visitor clicks "Older items" on user feed. It's likely a regression after the recent router update.
JSX
mit
FreeFeed/freefeed-html-react,clbn/freefeed-gamma,ujenjt/freefeed-react-client,davidmz/freefeed-react-client,davidmz/freefeed-react-client,FreeFeed/freefeed-html-react,FreeFeed/freefeed-html-react,ujenjt/freefeed-react-client,kadmil/freefeed-react-client,clbn/freefeed-gamma,FreeFeed/freefeed-react-client,davidmz/freefee...
--- +++ @@ -16,7 +16,7 @@ <p><b>{props.viewUser.screenName}</b> has a private feed.</p> </div> ) : ( - <PaginatedView> + <PaginatedView {...props}> <Feed {...props} isInUserFeed={true}/> </PaginatedView> )}
b854abad2a7f7bc49290360d369f761a53988213
src/Modules/Content/Dnn.PersonaBar.Pages/Pages.Web/src/components/dnn-persona-bar-page-treeview/src/_PersonaBarPageIcon.jsx
src/Modules/Content/Dnn.PersonaBar.Pages/Pages.Web/src/components/dnn-persona-bar-page-treeview/src/_PersonaBarPageIcon.jsx
import React, {Component} from "react"; import { PropTypes } from "prop-types"; import "./styles.less"; import {PagesIcon, FolderIcon, TreeLinkIcon, TreeDraftIcon, TreePaperClip} from "dnn-svg-icons"; export default class PersonaBarPageIcon extends Component { /* eslint-disable react/no-danger */ selectIcon(nu...
import React, {Component} from "react"; import { PropTypes } from "prop-types"; import "./styles.less"; import {PagesIcon, TreeLinkIcon, TreePaperClip} from "dnn-svg-icons"; export default class PersonaBarPageIcon extends Component { /* eslint-disable react/no-danger */ selectIcon(number) { /*eslint-...
Change file icon from folder to clip
Change file icon from folder to clip
JSX
mit
bdukes/Dnn.Platform,robsiera/Dnn.Platform,dnnsoftware/Dnn.AdminExperience.Extensions,nvisionative/Dnn.Platform,bdukes/Dnn.Platform,dnnsoftware/Dnn.Platform,RichardHowells/Dnn.Platform,valadas/Dnn.Platform,valadas/Dnn.Platform,valadas/Dnn.Platform,nvisionative/Dnn.Platform,RichardHowells/Dnn.Platform,RichardHowells/Dnn....
--- +++ @@ -1,7 +1,7 @@ import React, {Component} from "react"; import { PropTypes } from "prop-types"; import "./styles.less"; -import {PagesIcon, FolderIcon, TreeLinkIcon, TreeDraftIcon, TreePaperClip} from "dnn-svg-icons"; +import {PagesIcon, TreeLinkIcon, TreePaperClip} from "dnn-svg-icons"; export default ...
511527bc26f79fb2be3afaaa9544195c81c731ba
src/components/viewer2d/guides/guide-vertical-streak.jsx
src/components/viewer2d/guides/guide-vertical-streak.jsx
import React, {PropTypes} from 'react'; export default function GuideVerticalStreak({width, height, guide}) { let step = guide.properties.get('step'); let colors; if (guide.properties.has('color')) { colors = [guide.properties.get('color')]; } else { colors = guide.properties.get('colors'); } let...
import React, {PropTypes} from 'react'; export default function GuideVerticalStreak({width, height, guide}) { let step = guide.properties.get('step'); let colors; if (guide.properties.has('color')) { colors = [guide.properties.get('color')]; } else { colors = guide.properties.get('colors'); } let...
Fix grids in 2D view
Fix grids in 2D view
JSX
mit
dearkaran/react-planner,vovance/3d-demo,cvdlab/react-planner
--- +++ @@ -12,7 +12,7 @@ let rendered = []; let i = 0; - for (let x = 0; x <= height; x += step) { + for (let x = 0; x <= width; x += step) { let color = colors[i % colors.length]; i++; rendered.push(<line key={x} x1={x} y1="0" x2={x} y2={height} strokeWidth="1" stroke={color}/>);
520f3892214bd563decd6e850cd2abfec7533812
demo/app.jsx
demo/app.jsx
/* global document:false */ import React from 'react'; import ReactDOM from 'react-dom'; import { Grid, Cell } from '../src/index'; class App extends React.Component { render() { return ( <div className="demo"> <Grid defaultCells={{width: 1 / 3}}> <Cell alignment={{horizontal: 'center', v...
/* global document:false */ import React from 'react'; import ReactDOM from 'react-dom'; import Radium, { StyleRoot } from 'radium'; import { Grid, Cell } from '../src/index'; @Radium class App extends React.Component { render() { return ( <StyleRoot className="demo"> <Grid defaultCells={{width: 1 ...
Add a StyleRoot for the demo page and set a height to make custom alignments more obvious
Add a StyleRoot for the demo page and set a height to make custom alignments more obvious
JSX
mit
FormidableLabs/radium-grid,FormidableLabs/radium-grid
--- +++ @@ -1,14 +1,16 @@ /* global document:false */ import React from 'react'; import ReactDOM from 'react-dom'; +import Radium, { StyleRoot } from 'radium'; import { Grid, Cell } from '../src/index'; +@Radium class App extends React.Component { render() { return ( - <div className="demo"> - ...
7c48cbf84be4bc56bb165a74cf55cc820bd56dbb
src/app/components/selectable-box/SelectableBoxController.jsx
src/app/components/selectable-box/SelectableBoxController.jsx
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import SelectableBoxItem from './SelectableBoxItem'; const propTypes = { heading: PropTypes.string.isRequired, items: PropTypes.array, activeItem: PropTypes.object, handleItemClick: PropTypes.func, isUpdating: PropTypes....
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import SelectableBoxItem from './SelectableBoxItem'; const propTypes = { heading: PropTypes.string.isRequired, items: PropTypes.array, activeItem: PropTypes.object, handleItemClick: PropTypes.func, isUpdating: PropTypes....
Remove debugger on mount of selectabl box controller
Remove debugger on mount of selectabl box controller Former-commit-id: aa11d5e05d99d3dc2c77f084ecbd7a9f8c06cec4 Former-commit-id: 0067d0e596b14865763d50f8ff060c73dd435162 Former-commit-id: bf1f080fa946965c4aee4d1e79668a772cd834c1
JSX
mit
ONSdigital/florence,ONSdigital/florence,ONSdigital/florence,ONSdigital/florence
--- +++ @@ -16,10 +16,6 @@ super(props); this.bindItemClick = this.bindItemClick.bind(this); - } - - componentDidMount() { - debugger; } bindItemClick(itemProps) {
9fa51ebb5408942479bbc6036ff24c44dcbee5fb
client/sections/profile/components/Description.jsx
client/sections/profile/components/Description.jsx
import React, { Component } from 'react'; class Description extends Component { constructor(props) { super(props); this.state = { showCount: false, }; } render() { const { description, updateDescription } = this.props; const charLimit = 100; var charCount = this.state.showCount ? (<...
import React, { Component } from 'react'; class Description extends Component { constructor(props) { super(props); this.state = { showCount: false, }; } render() { const { description, updateDescription } = this.props; const charLimit = 255; var charCount = this.state.showCount ? (<...
Change char limit to 255
Change char limit to 255
JSX
mit
VictoriousResistance/iDioma,VictoriousResistance/iDioma
--- +++ @@ -9,7 +9,7 @@ } render() { const { description, updateDescription } = this.props; - const charLimit = 100; + const charLimit = 255; var charCount = this.state.showCount ? (<div>{ 'Characters left: ' + (charLimit - this.refs.description.innerText.length) }</div>) : null; return ( ...
d6a4962910e3aa3b8e38242a83bead81bf4f32f5
packages/vulcan-debug/lib/components/Routes.jsx
packages/vulcan-debug/lib/components/Routes.jsx
import React from 'react'; import { registerComponent, Components, Routes } from 'meteor/vulcan:lib'; import { Link } from 'react-router'; console.log(Object.values(Routes)) const RoutePath = ({ document }) => <Link to={document.path}>{document.path}</Link> const RoutesDashboard = props => <div className="rout...
import React from 'react'; import { registerComponent, Components, Routes } from 'meteor/vulcan:lib'; import { Link } from 'react-router'; const RoutePath = ({ document }) => <Link to={document.path}>{document.path}</Link> const RoutesDashboard = props => <div className="routes"> <Components.Datatable s...
Remove console log from routes dashboard
Remove console log from routes dashboard
JSX
mit
Discordius/Telescope,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Telescope,VulcanJS/Vulcan,VulcanJS/Vulcan,Discordius/Telescope,Discordius/Telescope,Discordius/Lesswrong2
--- +++ @@ -2,12 +2,10 @@ import { registerComponent, Components, Routes } from 'meteor/vulcan:lib'; import { Link } from 'react-router'; -console.log(Object.values(Routes)) - -const RoutePath = ({ document }) => +const RoutePath = ({ document }) => <Link to={document.path}>{document.path}</Link> -const Rou...
7453bd0218beaa9643d1e782ca1f01145cea610f
app/javascript/lca/containers/themeContainer.jsx
app/javascript/lca/containers/themeContainer.jsx
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { MuiThemeProvider, createMuiTheme } from 'material-ui/styles' import { switchTheme } from '../ducks/actions.js' const themes = { light: createMuiTheme({ }), dark: createMuiTheme({ palette: { typ...
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { MuiThemeProvider, createMuiTheme } from 'material-ui/styles' import { switchTheme } from '../ducks/actions.js' const overrides = { MuiSelect: { selectMenu: { overflow: 'hidden', }, }, } cons...
Fix for select fields vertical alignment in Firefox
Fix for select fields vertical alignment in Firefox
JSX
agpl-3.0
makzu/lotcastingatemi,makzu/lotcastingatemi,makzu/lotcastingatemi,makzu/lotcastingatemi,makzu/lotcastingatemi
--- +++ @@ -6,13 +6,23 @@ import { switchTheme } from '../ducks/actions.js' +const overrides = { + MuiSelect: { + selectMenu: { + overflow: 'hidden', + }, + }, +} + const themes = { light: createMuiTheme({ + overrides: overrides, }), dark: createMuiTheme({ palette: { type: '...
5f23f4f3405ca89c2cd4acc08e45a0a30011731a
src/jsx/templates.jsx
src/jsx/templates.jsx
var BpmTable = React.createClass({ propTypes: { bpm_info: React.PropTypes.object.isRequired, }, componentDidMount: function () { $(document.body).on("keydown", this.handleKeyDown); }, componentWillUnmount: function () { $(document.body).off("keydown", this.handleKeyDown); }, render: function (...
var BpmTable = React.createClass({ propTypes: { initialBpm: React.PropTypes.number.isRequired, initialTimingTaps: React.PropTypes.number.isRequired, }, getInitialState: function () { return { bpm: this.props.initialBpm, timingTaps: this.props.initialTimingTaps, }; }, componentDidMo...
Update the bpm table: use state
Update the bpm table: use state
JSX
mit
khwang/plum,khwang/plum
--- +++ @@ -1,32 +1,36 @@ var BpmTable = React.createClass({ propTypes: { - bpm_info: React.PropTypes.object.isRequired, + initialBpm: React.PropTypes.number.isRequired, + initialTimingTaps: React.PropTypes.number.isRequired, + }, + getInitialState: function () { + return { + bpm: this.props.in...
fe4e24e445b91c12e7d0215369c77a6fe3ae10f4
src/components/Parameters.jsx
src/components/Parameters.jsx
/* global __WEBPACK__ */ import React from 'react'; import NumberEditor from 'react-number-editor'; if (__WEBPACK__) { require('../../style/components/Parameters.less'); } class Parameters extends React.Component { render() { return ( <div className="parameters"> <label> ...
/* global __WEBPACK__ */ import React from 'react'; import NumberEditor from 'react-number-editor'; if (__WEBPACK__) { require('../../style/components/Parameters.less'); } class Parameters extends React.Component { render() { return ( <div className="parameters"> <label> ...
Add help icon with title tooltip text for number editor
Add help icon with title tooltip text for number editor
JSX
cc0-1.0
acusti/primal-multiplication,acusti/primal-multiplication
--- +++ @@ -12,6 +12,7 @@ <label> How many primes do you want to show? <NumberEditor min={1} max={100000} step={1} decimals={0} {...this.props} /> </label> + <span className="glyphicon glyphicon-question-sign" title="Double-click to manually edit t...
552471d37ea4b20f9d816f337be2506435e32d50
src/components/notes/Note.jsx
src/components/notes/Note.jsx
import React from 'react'; import './Note.scss'; import noteRepository from '../../data/NoteRepository'; export default class Note extends React.Component { remove() { noteRepository.remove(this.props, err => { // TODO: inform user if (err) throw err; }); } render() { // console.log(this...
import React from 'react'; import './Note.scss'; import noteRepository from '../../data/NoteRepository'; export default class Note extends React.Component { remove() { noteRepository.remove(this.props, err => { // TODO: inform user if (err) throw err; }); } render() { return ( <div...
Add TODO and remove comment
Add TODO and remove comment
JSX
mit
emyarod/refuge,emyarod/refuge
--- +++ @@ -11,7 +11,6 @@ } render() { - // console.log(this.props); return ( <div className="note"> <h1>{this.props.title}</h1> @@ -27,6 +26,7 @@ } } +// TODO: see if stateless functional component can be reimplemented // export default function Note({ title, content }) { // ...
0ec79890b7e705654e5a3a5c91722d26179c56ab
generators/app/templates/src/modules/app/components/App.jsx
generators/app/templates/src/modules/app/components/App.jsx
import React, { PropTypes } from 'react' import { connect } from 'react-redux' import { compose } from 'redux' import pure from 'recompose/pure' import * as select from '../selectors' const propTypes = { children: PropTypes.node.isRequired, loading: PropTypes.bool.isRequired, } const App = ({ children, ...props ...
import React, { PropTypes } from 'react' import { connect } from 'react-redux' import { compose } from 'redux' import pure from 'recompose/pure' import * as selectors from '../selectors' const propTypes = { children: PropTypes.node.isRequired, loading: PropTypes.bool.isRequired, } const App = ({ children, ...pro...
Use selectors instead of select
Use selectors instead of select
JSX
mit
127labs/generator-duxedo,127labs/generator-duxedo
--- +++ @@ -3,7 +3,7 @@ import { compose } from 'redux' import pure from 'recompose/pure' -import * as select from '../selectors' +import * as selectors from '../selectors' const propTypes = { children: PropTypes.node.isRequired, @@ -21,7 +21,7 @@ App.propTypes = propTypes const mapStateToProps = (state...
68f92848cc694ffb58f949b6503000a746d1629c
src/web/components/Layout/index.jsx
src/web/components/Layout/index.jsx
import React from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' import Header from './Header' import Sidebar from './Sidebar' import SidebarFooter from './SidebarFooter' import LicenseComponent from '~/components/License' import AboutComponent from '~/components/About' import GuidedT...
import React from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' import Header from './Header' import Sidebar from './Sidebar' import SidebarFooter from './SidebarFooter' import LicenseComponent from '~/components/License' import AboutComponent from '~/components/About' import GuidedT...
Add class to container to adapted render when there's no header
Add class to container to adapted render when there's no header
JSX
agpl-3.0
botpress/botpress,botpress/botpress,botpress/botpress,botpress/botpress
--- +++ @@ -28,12 +28,30 @@ super(props, context) } + componentDidMount() { + const viewMode = this.props.location.query && this.props.location.query.viewMode + + setImmediate(() => { + actions.viewModeChanged(viewMode ? viewMode : 0) + }) + } + render() { + if (this.props.UI.get('...
630396b88c81343b62a113435639dd5445f97222
client/components/Cart/Cart.jsx
client/components/Cart/Cart.jsx
import React from 'react'; import Drawer from 'material-ui/Drawer'; import Badge from 'material-ui/Badge'; import MenuItem from 'material-ui/MenuItem'; import IconButton from 'material-ui/IconButton'; import ShoppingCartIcon from 'material-ui/svg-icons/action/shopping-cart'; // import styles from './Cart.css'; const ...
import React from 'react'; import Drawer from 'material-ui/Drawer'; import Badge from 'material-ui/Badge'; import MenuItem from 'material-ui/MenuItem'; import IconButton from 'material-ui/IconButton'; import ShoppingCartIcon from 'material-ui/svg-icons/action/shopping-cart'; // import styles from './Cart.css'; const ...
Remove location required prop for warning message
Remove location required prop for warning message
JSX
mit
ntoung/beer.ly,ntoung/beer.ly
--- +++ @@ -50,7 +50,7 @@ } Cart.propTypes = { - location: React.PropTypes.object.isRequired + //location: React.PropTypes.object.isRequired }; export default Cart;
75634dc9edffbc223c5e93f0c8f45782a48083ae
app/assets/javascripts/components/common/academic_system.jsx
app/assets/javascripts/components/common/academic_system.jsx
import React from 'react'; const createReactClass = require('create-react-class'); const AcademicSystem = createReactClass({ getInitialState: function () { this.props.updateCourseProps({ academic_system: this.props.value || 'semester' }); return { selectedOption: this.props.value || 'semester' };...
import React from 'react'; const createReactClass = require('create-react-class'); const AcademicSystem = createReactClass({ getInitialState: function () { this.props.updateCourseProps({ academic_system: this.props.value || 'semester' }); return { selectedOption: this.props.value || 'semester' };...
Fix React missing key warning
Fix React missing key warning
JSX
mit
WikiEducationFoundation/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard
--- +++ @@ -24,7 +24,7 @@ const academic_system = []; for (i = 0; i < options.length; i += 1) { academic_system.push( - <label className="radio-inline"> + <label className="radio-inline" key={options[i]}> <input type="radio" name="academic_system"
6b6dd50a41245f210acd90d5398957838958aa8a
app/javascript/app/components/card/card-row/card-row-component.jsx
app/javascript/app/components/card/card-row/card-row-component.jsx
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import styles from './card-row-styles.scss'; const CardRowComponent = ({ rowData }) => ( <React.Fragment> {rowData && ( <div className={cx(styles.cardRow, { [styles.cardRowWithSubtitle]: rowData.su...
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import styles from './card-row-styles.scss'; const CardRowComponent = ({ rowData }) => ( <React.Fragment> {rowData && ( <div className={cx(styles.cardRow, { [styles.cardRowWithSubtitle]: rowData.su...
Update PropTypes of CardRow component
Update PropTypes of CardRow component
JSX
mit
Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch
--- +++ @@ -28,6 +28,7 @@ CardRowComponent.propTypes = { rowData: PropTypes.shape({ title: PropTypes.string, + subtitle: PropTypes.string, value: PropTypes.any }) };
e1a5bc5cd864f8f623f643c9fc9183b6a0603b4c
docs/components/layout/Grid.jsx
docs/components/layout/Grid.jsx
/* jshint node: true, esnext: true */ "use strict"; var React = require('react'); var ReactCSS = require('reactcss'); var bounds = require('react-bounds'); class Grid extends ReactCSS.Component { constructor() { super(); this.calculateBounds = this.calculateBounds.bind(this); } classes() { return...
/* jshint node: true, esnext: true */ "use strict"; var React = require('react'); var ReactCSS = require('reactcss'); var context = require('react-context'); class Grid extends ReactCSS.Component { constructor() { super(); } classes() { return { 'default': { grid: { position:...
Change width back to context
Change width back to context
JSX
mit
casesandberg/react-context,casesandberg/react-context,dallonf/react-context,dallonf/react-context,edge/react-context,edge/react-context,clkao/react-context,jdelStrother/react-context,sjmarshy/react-context,jdelStrother/react-context
--- +++ @@ -3,14 +3,14 @@ var React = require('react'); var ReactCSS = require('reactcss'); -var bounds = require('react-bounds'); +var context = require('react-context'); class Grid extends ReactCSS.Component { + + constructor() { super(); - - this.calculateBounds = this.calculateBounds.bind(this...
ceba15647c043d29a4c6549f2cc1845759d2cadc
packages/vulcan-ui-bootstrap/lib/components/forms/Select.jsx
packages/vulcan-ui-bootstrap/lib/components/forms/Select.jsx
import React from 'react'; import { intlShape } from 'meteor/vulcan:i18n'; import Form from 'react-bootstrap/Form'; import { Components, registerComponent } from 'meteor/vulcan:core'; // copied from vulcan:forms/utils.js to avoid extra dependency const getFieldType = datatype => datatype && datatype[0].type; const Se...
import React from 'react'; import { intlShape } from 'meteor/vulcan:i18n'; import Form from 'react-bootstrap/Form'; import { Components, registerComponent } from 'meteor/vulcan:core'; // copied from vulcan:forms/utils.js to avoid extra dependency const getFieldType = datatype => datatype && datatype[0].type; const Se...
Fix labeling in select component.
Fix labeling in select component.
JSX
mit
VulcanJS/Vulcan,VulcanJS/Vulcan
--- +++ @@ -21,7 +21,7 @@ <Components.FormItem path={inputProperties.path} label={inputProperties.label} {...itemProperties}> <Form.Control as="select" {...inputProperties} ref={refFunction}> {options.map((option, i) => ( - <option key={i} {...option}>{option.value}</option> + <...
6f239f30b03289d6b17d7f76b7d600a61587a856
src/Dots.jsx
src/Dots.jsx
import React, { Component, PropTypes } from 'react' import { Paper } from 'material-ui' const styles = { root: { display: 'block' }, dot: { width: 10, height: 10, background: 'rgba(255,255,255,1)', marginLeft: 3, marginRight: 3, float: 'left' }, dotInactive: { width: 10, h...
import React, { Component, PropTypes } from 'react' import { Paper } from 'material-ui' const styles = { root: { display: 'block' }, dot: { width: 10, height: 10, background: 'rgba(255,255,255,1)', marginLeft: 3, marginRight: 3, float: 'left' }, dotInactive: { width: 10, h...
Add key prop to dot.
Add key prop to dot.
JSX
mit
TeamWertarbyte/material-auto-rotating-carousel
--- +++ @@ -31,7 +31,12 @@ return ( <div style={{ ...this.props.style, ...styles.root, width }}> {[...Array(count).keys()].map((i) => ( - <Paper circle zDepth={0} style={i === index ? styles.dot : styles.dotInactive} /> + <Paper + key={i} + circle + ...
c389b99be51e563eeb4b91beccd5a784eb2fdba5
src/components/elements/post-visibility-icon.jsx
src/components/elements/post-visibility-icon.jsx
import React from 'react'; import * as PostVisibilityLevels from '../../utils/post-visibility-levels'; import { getPostVisibilityLevel } from '../../utils'; const PostVisibilityIcon = (props) => { const postLevel = getPostVisibilityLevel(props.recipients, props.authorId); switch (postLevel) { case PostVisibi...
import React from 'react'; import * as PostVisibilityLevels from '../../utils/post-visibility-levels'; import { getPostVisibilityLevel } from '../../utils'; const PostVisibilityIcon = (props) => { const postLevel = getPostVisibilityLevel(props.recipients, props.authorId); switch (postLevel) { case PostVisibi...
Introduce visibility icon for Public level posts
Introduce visibility icon for Public level posts Of course, it's a globe.
JSX
mit
clbn/freefeed-gamma,clbn/freefeed-gamma,clbn/freefeed-gamma
--- +++ @@ -17,7 +17,7 @@ return <i className="post-visibility-icon icon-protected" title="This entry is only visible to FreeFeed users"></i>; } } - return false; + return <i className="post-visibility-icon fa fa-globe" title="This entry is public"></i>; }; export default PostVisibilityIcon;
a89880a409454a88b85164264aed367d35bff71f
src/app/global/Layout.jsx
src/app/global/Layout.jsx
import React, { Component } from 'react'; import { connect } from 'react-redux' import NavBar from './NavBar'; class Layout extends Component { constructor(props) { super(props) } render() { return ( <div> <NavBar /> {this.props.children} ...
import React, { Component } from 'react'; import NavBar from './NavBar'; export default class Layout extends Component { constructor(props) { super(props) } render() { return ( <div> <NavBar /> {this.props.children} </div> ) ...
Remove connect and export component instead
Remove connect and export component instead Former-commit-id: 376ab01500862c7e9656c0c5a3475a1a8c064d68 Former-commit-id: 3f1d4e3b5c4852eeb810ed9646ac27d291ae45f2 Former-commit-id: 51b94dca5acea80f34ca96013d46fa5aca5877b5
JSX
mit
ONSdigital/florence,ONSdigital/florence,ONSdigital/florence,ONSdigital/florence
--- +++ @@ -1,9 +1,8 @@ import React, { Component } from 'react'; -import { connect } from 'react-redux' import NavBar from './NavBar'; -class Layout extends Component { +export default class Layout extends Component { constructor(props) { super(props) } @@ -17,5 +16,3 @@ ) } }...
93ae11228c38406a55793551543d938e9d489253
src/components/columns.jsx
src/components/columns.jsx
var React = require('react'); var FormioComponent = require('../FormioComponent.jsx'); module.exports = React.createClass({ displayName: 'Column', render: function() { return ( <div className="row"> {this.props.component.columns.map(function(column, index) { return ( <di...
var React = require('react'); var FormioComponent = require('../FormioComponent.jsx'); module.exports = React.createClass({ displayName: 'Column', render: function() { return ( <div className="row"> {this.props.component.columns.map(function(column, index) { return ( <di...
Change the column classname to reflect deprecation
Change the column classname to reflect deprecation - In order to reflect bootstrap deprecations in their grid system, i've changed the classname from col-xs-6 to col-sm-6, also, the angular app uses this class.
JSX
mit
formio/react-formio
--- +++ @@ -8,7 +8,7 @@ <div className="row"> {this.props.component.columns.map(function(column, index) { return ( - <div key={index} className="col-xs-6"> + <div key={index} className="col-sm-6"> {column.components.map(function(component) { ...
efcf589a42524aed285c5efcadb54493ebee3180
templates/client/modules/core/components/home.jsx
templates/client/modules/core/components/home.jsx
import React from 'react'; const Home = () => ( <div> <h1>Mantra</h1> <p> Welcome to Mantra 0.2.0. </p> <p> <ul> <li> Read <a target="_blank" href="https://kadirahq.github.io/mantra/">spec</a> </li> <li> Learn <a target="_blank" href="https://gi...
import React from 'react'; const Home = () => ( <div> <h1>Mantra</h1> <p> Welcome to Mantra 0.2.0. </p> <ul> <li> Read <a target="_blank" href="https://kadirahq.github.io/mantra/">spec</a> </li> <li> Learn <a target="_blank" href="https://github.com/sungwoncho/...
Remove nested ul tag from p tag due to warning in Chrome
Remove nested ul tag from p tag due to warning in Chrome Warning: validateDOMNesting(...): <ul> cannot appear as a descendant of <p>. See Home > p > ... > ul.
JSX
mit
StorytellerCZ/mantra-cli,StorytellerCZ/mantra-cli,mantrajs/mantra-cli,sungwoncho/mantra-cli,mantrajs/mantra-cli,mcmunder/bija
--- +++ @@ -6,16 +6,14 @@ <p> Welcome to Mantra 0.2.0. </p> - <p> - <ul> - <li> - Read <a target="_blank" href="https://kadirahq.github.io/mantra/">spec</a> - </li> - <li> - Learn <a target="_blank" href="https://github.com/sungwoncho/mantra-cli#commands...
c3fa815d73f253cb35f1b6c047755e23af1a1dee
src/operator/application.jsx
src/operator/application.jsx
import React from 'react'; import Visitors from './visitors'; import * as actions from './actions'; export default React.createClass({ propTypes: { visitors: React.PropTypes.array.isRequired, dispatch: React.PropTypes.func.isRequired }, handleInvite(visitorId) { this.props.dispatch...
import React from 'react'; import Visitors from './visitors'; import * as actions from './actions'; export default class Application extends React.Component { handleInvite(visitorId) { this.props.dispatch(actions.inviteVisitor(visitorId)); } render() { return ( <div> ...
Rewrite <Application /> to be an ES6 class
Rewrite <Application /> to be an ES6 class
JSX
apache-2.0
JustBlackBird/mibew-ui,JustBlackBird/mibew-ui
--- +++ @@ -2,15 +2,10 @@ import Visitors from './visitors'; import * as actions from './actions'; -export default React.createClass({ - propTypes: { - visitors: React.PropTypes.array.isRequired, - dispatch: React.PropTypes.func.isRequired - }, - +export default class Application extends React...
57918f3f96386c4d8d00618c760447db28748603
app/js/home/components/Hero.jsx
app/js/home/components/Hero.jsx
import React from 'react'; import SmoothImageDiv from 'common/components/SmoothImageDiv'; import LabImg from 'img/betterLab.jpg'; import RapDevImg from 'img/rapdev.jpg'; class Hero extends React.Component { constructor(props) { super(props); this.state = { img1Loaded: false, img2Loaded: false, ...
import React from 'react'; import SmoothImageDiv from 'common/components/SmoothImageDiv'; import LabImg from 'img/betterLab.jpg'; import RapDevImg from 'img/rapdev.jpg'; class Hero extends React.Component { constructor(props) { super(props); this.state = { img1Loaded: false, img2Loaded: false, ...
Update Meeting Times for Spring Semester
Update Meeting Times for Spring Semester
JSX
mit
rit-sse/OneRepoToRuleThemAll
--- +++ @@ -33,7 +33,7 @@ <div className="fancy-hero-container" /> <div className="hero-content"> <h3>Weekly Meetings</h3> - <h6>Thurs @ 4:00pm</h6> + <h6>Wed @ 4:30pm</h6> <h6>GOL-1670</h6> <h6>All Are Welcome!</h6> </div>
b209698fca9bed184080b5d320682373d24799c3
src/field/or/ask_social_network_or_phone_number.jsx
src/field/or/ask_social_network_or_phone_number.jsx
import React from 'react'; import Base from '../../connection/passwordless/ask_phone_number'; import PhoneNumberPane from '../phone-number/phone_number_pane'; import SocialButtonsPane from '../social/social_buttons_pane'; import PaneSeparator from '../../core/pane_separator'; import * as l from '../../core/index'; imp...
import React from 'react'; import Base from '../../connection/passwordless/ask_phone_number'; import PhoneNumberPane from '../phone-number/phone_number_pane'; import SocialButtonsPane from '../social/social_buttons_pane'; import PaneSeparator from '../../core/pane_separator'; import * as l from '../../core/index'; imp...
Use i18n prop in AskSocialNetworkOrPhoneNumber
Use i18n prop in AskSocialNetworkOrPhoneNumber
JSX
mit
mike-casas/lock,mike-casas/lock,mike-casas/lock
--- +++ @@ -18,20 +18,21 @@ return renderSignedInConfirmation(lock) || super.renderAuxiliaryPane(lock); } - render({focusSubmit, i18n, model, t}) { + render({focusSubmit, i18n, model}) { + // TODO: review when bringing passwordless back return ( <div> <SocialButtonsPane + ...
4579adc011744b1ecea103e8f70d0ffd227b1c9b
src/components/App/App.jsx
src/components/App/App.jsx
import React from 'react'; import Content from '../Content'; import './App.scss'; const commits = [ { "id": 1, "date": "April 30, 2016", "text": "Started to learn React", "isProject": true }, { "id": 2, "date": "May, 2016", "text": "Started to learn...", "isProject": false } ]; expor...
import React from 'react'; import Content from '../Content'; import './App.scss'; const commits = [ { "id": 1, "date": "April 30, 2014", "text": "Started to learn HTML", "isProject": false }, { "id": 2, "date": "April 30, 2014", "text": "Started to learn CSS", "isProject": true }, {...
Test data: added an extra element to Commits object and modified some data
Test data: added an extra element to Commits object and modified some data
JSX
mit
designhorf/designhorf2017,designhorf/designhorf2017
--- +++ @@ -5,14 +5,20 @@ const commits = [ { "id": 1, - "date": "April 30, 2016", - "text": "Started to learn React", + "date": "April 30, 2014", + "text": "Started to learn HTML", + "isProject": false + }, + { + "id": 2, + "date": "April 30, 2014", + "text": "Started to learn CSS", "is...
cfe60e7eb55f1c0bfc6912477e8e768e71d07cf0
app/frontend/root.jsx
app/frontend/root.jsx
import React from "react" import {linkTo} from "./utils" class Header extends React.Component { onClick = (ev) => { ev.preventDefault() window.location = linkTo("/") } render() { return <header id="header" onClick={this.onClick}> <h1>Cashout</h1> </header> ...
import React from "react" import {linkTo} from "./utils" class Header extends React.Component { render() { return <header id="header"> <h1>Cashout</h1> </header> } } class Root extends React.Component { render() { return <div> <Header /> {thi...
Remove reload on header click
Remove reload on header click
JSX
mit
daGrevis/cashout,daGrevis/cashout,daGrevis/cashout
--- +++ @@ -3,14 +3,8 @@ class Header extends React.Component { - onClick = (ev) => { - ev.preventDefault() - - window.location = linkTo("/") - } - render() { - return <header id="header" onClick={this.onClick}> + return <header id="header"> <h1>Cashout</h1> ...
667daec7d939ae045aa7920aa2abe52d9c8badb1
templates/app/client/app/src/components/Footer.jsx
templates/app/client/app/src/components/Footer.jsx
/** @jsx React.DOM */ var React = require('react'); var FOOTER = React.createClass({ render: function(){ return ( <div className="footer"> <div className="container"> <p className="text-muted"> Fork us on Github! </p> </div> </div> ) } }) module.exports = FOOTE...
/** @jsx React.DOM */ var React = require('react'); var FOOTER = React.createClass({ render: function(){ return ( <div className="footer"> <div className="container"> <p className="text-muted"> <a href="https://github.com/react-fullstack/slush-react-fullstack">Fork us on G...
Add link to GitHub repo in footer of generated app
Add link to GitHub repo in footer of generated app
JSX
mit
react-fullstack/slush-react-fullstack
--- +++ @@ -4,13 +4,15 @@ var React = require('react'); var FOOTER = React.createClass({ - - + + render: function(){ return ( <div className="footer"> <div className="container"> - <p className="text-muted"> Fork us on Github! </p> + <p className="text-muted"> + ...
702da029e998e30b13c4cb1426046922b1ed6358
client/components/grid/Grid.jsx
client/components/grid/Grid.jsx
var cn = require('classnames'), React = require('react/addons'), PureRenderMixin = React.addons.PureRenderMixin var Grid = React.createClass({ mixin: [PureRenderMixin], propTypes: { className: React.PropTypes.string }, render: function () { var {children, className, ...props} = this.props ret...
var cn = require('classnames'), React = require('react/addons'), PureRenderMixin = React.addons.PureRenderMixin var Grid = React.createClass({ mixin: [PureRenderMixin], propTypes: { className: React.PropTypes.string, subheader: React.PropTypes.string }, render: function () { var {children, cl...
Update grid to allow subheader
Update grid to allow subheader
JSX
apache-2.0
cesarandreu/bshed,cesarandreu/bshed
--- +++ @@ -6,14 +6,18 @@ mixin: [PureRenderMixin], propTypes: { - className: React.PropTypes.string + className: React.PropTypes.string, + subheader: React.PropTypes.string }, render: function () { - var {children, className, ...props} = this.props + var {children, className, subheader...
a229ba1a90fb407969ba0b3f674fdba0e32151f4
packages/nylas-dashboard/public/js/process-loads.jsx
packages/nylas-dashboard/public/js/process-loads.jsx
const React = window.React; class ProcessLoads extends React.Component { render() { let entries; if (this.props.counts == null || Object.keys(this.props.counts).length === 0) { entries = "No Data" } else { entries = []; for (const processName of Object.keys(this.props.counts)) { ...
const React = window.React; class ProcessLoads extends React.Component { render() { let entries; if (this.props.counts == null || Object.keys(this.props.counts).length === 0) { entries = "No Data" } else { entries = []; for (const processName of Object.keys(this.props.counts).sort(...
Sort process entries on the dashboard
Sort process entries on the dashboard
JSX
mit
simonft/nylas-mail,nylas-mail-lives/nylas-mail,nylas-mail-lives/nylas-mail,nirmit/nylas-mail,nylas/nylas-mail,nylas-mail-lives/nylas-mail,simonft/nylas-mail,nylas-mail-lives/nylas-mail,nylas-mail-lives/nylas-mail,simonft/nylas-mail,nirmit/nylas-mail,nylas/nylas-mail,nirmit/nylas-mail,nirmit/nylas-mail,simonft/nylas-mai...
--- +++ @@ -9,7 +9,7 @@ } else { entries = []; - for (const processName of Object.keys(this.props.counts)) { + for (const processName of Object.keys(this.props.counts).sort()) { entries.push( <div className="load-count"> <b>{processName}</b>: {this.props.cou...
9e695b75946964a3cf50d5b0ce3f9d359f1bc887
client/src/index.jsx
client/src/index.jsx
/*jshint esversion: 6 */ /* <- Imports and Declarations -> */ import reducers from './reducers'; import App from './components/App.jsx'; import Landing from './components/Landing.jsx'; // Declare Redux Methods const store = Redux.createStore(reducers); // Declare ReactRouter Methods const Router = ReactRouter.Router...
/*jshint esversion: 6 */ /* <- Imports and Declarations -> */ import reducers from './reducers'; import App from './components/App.jsx'; import Landing from './components/Landing.jsx'; // Declare Redux Methods const store = Redux.createStore(reducers); // Declare ReactRouter Methods const Router = ReactRouter.Router...
Add React routes and update App.jsx
Add React routes and update App.jsx
JSX
mit
folksy-squid/Picky-Notes,inspiredtolive/Picky-Notes,derektliu/Picky-Notes,inspiredtolive/Picky-Notes,folksy-squid/Picky-Notes,derektliu/Picky-Notes,folksy-squid/Picky-Notes,derektliu/Picky-Notes,inspiredtolive/Picky-Notes
--- +++ @@ -29,7 +29,7 @@ <Route path='/lecture' component={Lecture} /> <Route path='/compile' component={Compile} /> </Route> - </Router> + </Router>*/ ), document.getElementById('root') );
5e1db046eb6a9979d614240e48fb4980e7647fc8
src/js/components/Task.jsx
src/js/components/Task.jsx
import React, { PropTypes } from 'react'; import TaskActions from '../actions/TaskActions'; const propTypes = { task: PropTypes.object.isRequired, }; export default class Task extends React.Component { constructor(props) { super(props); this.removeTask = this.removeTask.bind(this); this.doneTask = t...
import React, { PropTypes } from 'react'; import TaskActions from '../actions/TaskActions'; const propTypes = { task: PropTypes.object.isRequired, }; export default class Task extends React.Component { constructor(props) { super(props); this.removeTask = this.removeTask.bind(this); this.doneTask = t...
Hide done button if task statu is done
Hide done button if task statu is done
JSX
mit
tanaka0325/nippo-web,tanaka0325/nippo-web
--- +++ @@ -23,14 +23,18 @@ } render() { + const buttonDone = (this.props.task.status !== 3) ? + <td className="is-icon" onClick={this.doneTask}> + <i className="fa fa-check" /> + </td> + : <td />; + return ( <tr> <td> {this.props.task.text} </...
9d34f77e94a9ef01af8718b8409ce1dadbcffd56
client/components/volunteer/imports/active-puzzle.jsx
client/components/volunteer/imports/active-puzzle.jsx
import { Meteor } from 'meteor/meteor'; import React, { PropTypes } from 'react'; import { Segment, Header, Progress, Button } from 'semantic-ui-react'; export default class ActivePuzzle extends React.Component { constructor(props) { super(props); } render() { const { team, puzzle } = this.props; r...
import { Meteor } from 'meteor/meteor'; import React, { PropTypes } from 'react'; import { Segment, Header, Progress, Button } from 'semantic-ui-react'; import PuzzleProgress from '../../game/imports/puzzle-progress'; export default class ActivePuzzle extends React.Component { constructor(props) { super(props);...
Add puzzle progress to volunteer active puzzle comp
Add puzzle progress to volunteer active puzzle comp
JSX
mit
kyle-rader/greatpuzzlehunt,kyle-rader/greatpuzzlehunt,kyle-rader/greatpuzzlehunt
--- +++ @@ -1,6 +1,8 @@ import { Meteor } from 'meteor/meteor'; import React, { PropTypes } from 'react'; import { Segment, Header, Progress, Button } from 'semantic-ui-react'; + +import PuzzleProgress from '../../game/imports/puzzle-progress'; export default class ActivePuzzle extends React.Component { cons...
b2056cf1c064b30ce7a79a09b46ecabccc396603
imports/ui/structure-view/add-element-button.jsx
imports/ui/structure-view/add-element-button.jsx
import React from 'react'; import { DropdownButton, MenuItem } from 'react-bootstrap'; import Elements from '../../api/elements.js'; export default class AddElementButton extends React.Component { constructor(props) { super(props); this.handleAddElement = this.handleAddElement.bind(this); } handleAddEle...
import React from 'react'; import { DropdownButton, MenuItem } from 'react-bootstrap'; import Elements from '../../api/elements.js'; export default class AddElementButton extends React.Component { constructor(props) { super(props); this.handleAddElement = this.handleAddElement.bind(this); } handleAddEle...
Adjust to approve with coding style
Adjust to approve with coding style
JSX
mit
minden/data-furnace,minden/data-furnace
--- +++ @@ -39,9 +39,8 @@ })} </DropdownButton> ); - } else { - return (<div></div>); } + return (<div></div>); } }
d8e570197d1fddb82d429c6480162fad0a6bffe5
coin-selfservice-standalone/src/javascripts/components/download_button.jsx
coin-selfservice-standalone/src/javascripts/components/download_button.jsx
/** @jsx React.DOM */ App.Components.DownloadButton = React.createClass({ onDownload: function (e) { e.preventDefault(); e.stopPropagation(); this.props.genFile(this.donePreparing); }, donePreparing: function (data) { console.log("Done download.."); var blob = new Blob([data], {type: this.p...
/** @jsx React.DOM */ App.Components.DownloadButton = React.createClass({ onDownload: function (e) { e.preventDefault(); e.stopPropagation(); this.props.genFile(this.donePreparing); }, donePreparing: function (data) { var blob = new Blob([data], {type: this.props.mimeType}), url = windo...
Fix export stats button for firefox
Fix export stats button for firefox
JSX
apache-2.0
OpenConext/OpenConext-dashboard,OpenConext/OpenConext-dashboard,OpenConext/OpenConext-dashboard,cybera/OpenConext-dashboard,cybera/OpenConext-dashboard,OpenConext/OpenConext-dashboard,cybera/OpenConext-dashboard,cybera/OpenConext-dashboard
--- +++ @@ -9,13 +9,15 @@ }, donePreparing: function (data) { - console.log("Done download.."); var blob = new Blob([data], {type: this.props.mimeType}), url = window.URL.createObjectURL(blob); this.saveAs(url); - window.URL.revokeObjectURL(url); + // revoke the url with a dela...
5e0a1b1bab64d19da06eeb8bb27c835d0c0e8dd9
src/components/Tab.jsx
src/components/Tab.jsx
import React from 'react' import SkillVideo from './SkillVideo' export default React.createClass({ props: { skillId: React.PropTypes.number.isRequired, videos: React.PropTypes.array.isRequired, onUpvote: React.PropTypes.func.isRequired, onDownvote: React.PropTypes.func.isRequired, onWatchedSkill...
import React from 'react' import SkillVideo from './SkillVideo' export default React.createClass({ props: { skillId: React.PropTypes.number.isRequired, videos: React.PropTypes.array.isRequired, onUpvote: React.PropTypes.func.isRequired, onDownvote: React.PropTypes.func.isRequired, onWatchedSkill...
Remove Got it button if no skill selected
Remove Got it button if no skill selected
JSX
mit
nikau-2016/lifestack-client,nikau-2016/lifestack-client
--- +++ @@ -11,7 +11,6 @@ onWatchedSkill: React.PropTypes.func.isRequired }, render () { - console.log(this.props.skillId) const videos = (this.props.videos || []) .sort((a, b) => a.votes < b.votes) .map(elem => { @@ -22,7 +21,7 @@ onUpvote={this.props.onUpvote} ...
8241ed3fa8a7e010e6b23ee3029e90314d71990b
packages/lesswrong/components/posts/EventsDaily.jsx
packages/lesswrong/components/posts/EventsDaily.jsx
import { Components, registerComponent, getSetting, registerSetting } from 'meteor/vulcan:core'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import { withStyles } from '@material-ui/core/styles'; import { styles } from './EventsDaily'; registerSetting('for...
import { Components, registerComponent, getSetting, registerSetting } from 'meteor/vulcan:core'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import { withStyles } from '@material-ui/core/styles'; import { styles } from './PostsDaily'; registerSetting('foru...
Fix a console error message due to invalid import
Fix a console error message due to invalid import Kind of disappointed in ESLint for not catching this one.
JSX
mit
Discordius/Telescope,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Telescope
--- +++ @@ -3,7 +3,7 @@ import PropTypes from 'prop-types'; import moment from 'moment'; import { withStyles } from '@material-ui/core/styles'; -import { styles } from './EventsDaily'; +import { styles } from './PostsDaily'; registerSetting('forum.numberOfDays', 5, 'Number of days to display in Daily view');
1c4abfd3e29710f978d920050fd7c03995c45319
src/App.jsx
src/App.jsx
import React, { Component } from 'react'; export default class App extends Component { render() { return ( <h1>Hello React :)</h1> ); } }
import React from 'react'; const App = React.createClass({ render: function() { return ( <h1>Hello React :)</h1> ); } }); export default App;
Use createClass instead of ES6 classes
Use createClass instead of ES6 classes Most of the React docs use createClass. It will be easier for students to follow the docs.
JSX
mit
Justinette2175/morning-app-react,jenreiher/slug-journal,mackybeltran/chatty,ehdwn1212/personalWebsite2,davidbpaul/LHL-Final-GetGO-web,SebaRev1989/react-examples,davidbpaul/LHL-Final-GetGO-web,jzhang729/chatty,promilo/Waundr,KyleFlemington/CHATi,bchuup/lhl-final-trip-me-up,ddandipu/chattyapp,noahlotzer/react-simple-boil...
--- +++ @@ -1,9 +1,10 @@ -import React, { Component } from 'react'; +import React from 'react'; -export default class App extends Component { - render() { +const App = React.createClass({ + render: function() { return ( <h1>Hello React :)</h1> ); } -} +}); +export default App;
3e5fc692bccae66a7531a1b7ccd25fb5befbc213
app/javascript/components/meeting/agendum/Agenda.jsx
app/javascript/components/meeting/agendum/Agenda.jsx
import React from 'react'; import Sortable from 'react-sortablejs'; // Controls import AgendumContainer from '../../../containers/AgendumContainer'; const Agenda = ({ agenda, meetingID, onSort }) => { const sortableOptions = { draggable: '.sortable', filter: '.modal', animation: 250, easing: '...
import React from 'react'; import Sortable from 'react-sortablejs'; // Controls import AgendumContainer from '../../../containers/AgendumContainer'; const Agenda = ({ agenda, meetingID, onSort }) => { const sortableOptions = { draggable: '.sortable', filter: '.modal' }; return( <Sortable classNa...
Remove animation from agenda sorting
Remove animation from agenda sorting With large agendas it can be really confusing when all the other agendums switch around.
JSX
mit
robyparr/adjourn,robyparr/adjourn,robyparr/adjourn
--- +++ @@ -7,9 +7,7 @@ const Agenda = ({ agenda, meetingID, onSort }) => { const sortableOptions = { draggable: '.sortable', - filter: '.modal', - animation: 250, - easing: 'cubic-bezier(1, 0, 0, 1)' + filter: '.modal' }; return(
e2f58c54bdd8a2fe017fe85dd40867b0eacc1d51
packages/vulcan-errors/lib/components/ErrorCatcher.jsx
packages/vulcan-errors/lib/components/ErrorCatcher.jsx
/* ErrorCatcher Usage: <Components.ErrorCatcher> <YourComponentTree /> </Components.ErrorCatcher> */ import { Components, registerComponent, withCurrentUser, withSiteData } from 'meteor/vulcan:core'; import React, { Component } from 'react'; import { Errors } from '../modules/errors.js'; class ErrorCatch...
/* ErrorCatcher Usage: <Components.ErrorCatcher> <YourComponentTree /> </Components.ErrorCatcher> */ import { Components, registerComponent, withCurrentUser, withSiteData } from 'meteor/vulcan:core'; import { withRouter } from 'react-router'; import React, { Component } from 'react'; import { Errors } fro...
Reset error catcher on route change
Reset error catcher on route change
JSX
mit
VulcanJS/Vulcan,VulcanJS/Vulcan
--- +++ @@ -11,6 +11,7 @@ */ import { Components, registerComponent, withCurrentUser, withSiteData } from 'meteor/vulcan:core'; +import { withRouter } from 'react-router'; import React, { Component } from 'react'; import { Errors } from '../modules/errors.js'; @@ -31,11 +32,26 @@ }); }; + component...
4c08bb2d4cb97ed4e7551ad68ce90c2485065ab2
application/client/feature-detect/css-custom-properties.jsx
application/client/feature-detect/css-custom-properties.jsx
/** * Test client for touch capabilities. * * @file * @module * * @author hello@ulrichmerkel.com (Ulrich Merkel), 2016 * @version 0.0.1 * * @changelog * - 0.0.1 basic functions and structure */ /** * Test if browser supports css custom properties. * * @see {@link https://justmarkup.com/log/2016/02/theme-...
/** * Test client for touch capabilities. * * @file * @module * * @author hello@ulrichmerkel.com (Ulrich Merkel), 2016 * @version 0.0.1 * * @changelog * - 0.0.1 basic functions and structure */ import { isBrowser } from '../../common/utils/environment'; /** * Test if browser supports css custom properties...
Add feature detection for css custom properties
Add feature detection for css custom properties
JSX
mit
ulrich-merkel/www.ulrichmerkel.com,ulrich-merkel/www.ulrichmerkel.com,ulrich-merkel/www.ulrichmerkel.com
--- +++ @@ -10,17 +10,21 @@ * @changelog * - 0.0.1 basic functions and structure */ +import { isBrowser } from '../../common/utils/environment'; /** * Test if browser supports css custom properties. * * @see {@link https://justmarkup.com/log/2016/02/theme-switcher-using-css-custom-properties/} * - *...
544f7b230f1d4a22c69966326ad26b60a3faa22d
src/frontend/Components/RegistrationModal.jsx
src/frontend/Components/RegistrationModal.jsx
import React from 'react'; import ContentModal from 'Components/ContentModal'; class RegistrationModal extends React.Component { backToConfig() { if (process.env.NODE_ENV !== 'development') { window.location = '/login?returnUrl=/config'; } } render() { let modalOpts = { openWithButton: tr...
import React from 'react'; import ContentModal from 'Components/ContentModal'; class RegistrationModal extends React.Component { constructor(props) { super(props); this.state = { showLogout: false }; } backToConfig() { if (process.env.NODE_ENV !== 'development') { window.location = '/...
Allow 'back' button on Start Registration Modal to work?
Allow 'back' button on Start Registration Modal to work? This might not work. This might be stupid. This might need to be reverted. 🤷
JSX
mit
uwwebservices/idcard-webapp-poc,uwwebservices/idcard-webapp-poc
--- +++ @@ -2,6 +2,12 @@ import ContentModal from 'Components/ContentModal'; class RegistrationModal extends React.Component { + constructor(props) { + super(props); + this.state = { + showLogout: false + }; + } backToConfig() { if (process.env.NODE_ENV !== 'development') { window.l...
f11cc971247b5c8ba94e6d6dbf907acc54b01f6a
app/jsx/external_apps/components/Header.jsx
app/jsx/external_apps/components/Header.jsx
/** @jsx React.DOM */ define([ 'underscore', 'i18n!external_tools', 'react', 'react-router' ], function (_, I18n, React, {Link}) { return React.createClass({ displayName: 'Header', render() { var paragraph = I18n.t( '*See some LTI tools* that work great with Canvas. You can also chec...
/** @jsx React.DOM */ define([ 'underscore', 'i18n!external_tools', 'react', 'react-router' ], function (_, I18n, React, {Link}) { return React.createClass({ displayName: 'Header', render() { var paragraph = I18n.t( '*See some LTI tools* that work great with Canvas.', { wrapp...
Remove Link to Community in Apps Page
Remove Link to Community in Apps Page Fixes PLAT-1120 Test Plan - Make sure the link labeled 'Canvas Community topics about Lti topics' is no longer in the paragraph at the top of the external apps settings page. Change-Id: Icf14d1a1c3fbbc702a41c1435abcc48972409de2 Reviewed-on: https://gerrit.instructure.com/570...
JSX
agpl-3.0
sfu/canvas-lms,snehakachroo1/LSI_replica,HotChalk/canvas-lms,leftplusrightllc/canvas-lms,juoni/canvas-lms,sdeleon28/canvas-lms,leftplusrightllc/canvas-lms,juoni/canvas-lms,snehakachroo1/LSI_replica,djbender/canvas-lms,redconfetti/canvas-lms,snehakachroo1/LSI_replica,antoniuslin/canvas-lms,skmezanul/canvas-lms,Rvor/canv...
--- +++ @@ -13,10 +13,9 @@ render() { var paragraph = I18n.t( - '*See some LTI tools* that work great with Canvas. You can also check out the **Canvas Community topics about LTI tools**.', + '*See some LTI tools* that work great with Canvas.', { wrappers: [ '<a href="ht...
880407c7bf444d42ab59bbde83210c33a2ae4c5e
src/components/footer/footer.jsx
src/components/footer/footer.jsx
var React = require('react'); module.exports = React.createClass({ mixins: [require('react-intl').IntlMixin], render: function () { return ( <div id="footer"> <div className="inner"> <ul className="links"> <li><a href="https://webmaker.org/en-US/terms">{this.getIntlMessage('...
var React = require('react'); module.exports = React.createClass({ mixins: [require('react-intl').IntlMixin], render: function () { return ( <div id="footer"> <div className="inner"> <ul className="links"> <li><a href="https://webmaker.org/#/legal">{this.getIntlMessage('lega...
Update link to new TOS. Re GH-533
Update link to new TOS. Re GH-533
JSX
mpl-2.0
mozilla-b2g/webmaker-fxos,vazquez/webmaker-browser,alanmoo/webmaker-browser,alanmoo/webmaker-browser,vazquez/webmaker-browser,mozilla/webmaker-browser,mozilla-b2g/webmaker-fxos,mozilla/webmaker-browser
--- +++ @@ -7,7 +7,7 @@ <div id="footer"> <div className="inner"> <ul className="links"> - <li><a href="https://webmaker.org/en-US/terms">{this.getIntlMessage('legal')}</a></li> + <li><a href="https://webmaker.org/#/legal">{this.getIntlMessage('legal')}</a></li> ...
5299e13e130ec01f6ab312a8db6abf4dd866c64f
app/collections/manager-icon.jsx
app/collections/manager-icon.jsx
import PropTypes from 'prop-types'; import React from 'react'; import Dialog from 'modal-form/dialog'; import CollectionsManager from './collections-manager'; class CollectionsManagerIcon extends React.Component { constructor(props) { super(props); this.state = { open: false }; this.open = th...
import PropTypes from 'prop-types'; import React from 'react'; import Dialog from 'modal-form/dialog'; import CollectionsManager from './collections-manager'; class CollectionsManagerIcon extends React.Component { constructor(props) { super(props); this.state = { open: false }; this.open = th...
Fix collections close button Stop the click event from bubbling up to the collections button and opening the dialog every time it is closed.
Fix collections close button Stop the click event from bubbling up to the collections button and opening the dialog every time it is closed.
JSX
apache-2.0
amyrebecca/Panoptes-Front-End,zooniverse/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,amyrebecca/Panoptes-Front-End
--- +++ @@ -19,8 +19,9 @@ this.setState({ open: true }); } - close() { + close(e) { this.setState({ open: false }); + e.stopPropagation(); } render() {
cfd2e4a52226532b067b9bbec132690b11b80d60
app/components/Editor/VRComp.jsx
app/components/Editor/VRComp.jsx
import React, { Component } from 'react' import { withRouter } from 'react-router-dom' import firebase from 'APP/fire' class VRComp extends Component { popUp= () => { window.open(`../VR component/VRindex.html?${this.props.obj}?${this.props.mtl}`) } render() { return ( <div className = 'VR-slide-pos...
import React, { Component } from 'react' import { withRouter } from 'react-router-dom' import firebase from 'APP/fire' class VRComp extends Component { popUp= () => { window.open(`../../../VR component/VRindex.html?${this.props.obj}?${this.props.mtl}`) } render() { return ( <div className = 'VR-sli...
Add VR on edit mode
Add VR on edit mode
JSX
mit
seal-team/Ngage,seal-team/Ngage,seal-team/Ngage
--- +++ @@ -4,7 +4,7 @@ class VRComp extends Component { popUp= () => { - window.open(`../VR component/VRindex.html?${this.props.obj}?${this.props.mtl}`) + window.open(`../../../VR component/VRindex.html?${this.props.obj}?${this.props.mtl}`) } render() { return (
db04f2d7fa0797092a9829a73fca50ce83fcb01e
client/components/Avatar.jsx
client/components/Avatar.jsx
import React from 'react'; import PropTypes from 'prop-types'; import webpackConfig from '../../config/webpack'; import './components.less'; const env = process.env.NODE_ENV === 'development' ? 'dev' : 'build'; const publishPath = webpackConfig[env].assetsPublicPath + webpackConfig[env].assetsSubDirectory; const avat...
import React from 'react'; import PropTypes from 'prop-types'; import './components.less'; const avatarFallback = 'https://cdn.suisuijiang.com/fiora/avatar/0.jpg'; const failTimes = new Map(); function noop() { } function handleError(e) { const times = failTimes.get(e.target) || 0; if (times >= 2) { ...
Modify the wrong default avatar address
fix: Modify the wrong default avatar address
JSX
mit
yinxin630/fiora,yinxin630/fiora,yinxin630/fiora
--- +++ @@ -1,19 +1,16 @@ import React from 'react'; import PropTypes from 'prop-types'; -import webpackConfig from '../../config/webpack'; import './components.less'; -const env = process.env.NODE_ENV === 'development' ? 'dev' : 'build'; -const publishPath = webpackConfig[env].assetsPublicPath + webpackConfig...
47049bf7bbb8f21b1f92d3e6fc1e1e58572d4726
packages/lesswrong/components/shortform/ShortformPage.jsx
packages/lesswrong/components/shortform/ShortformPage.jsx
import React from 'react'; import { Components, registerComponent } from 'meteor/vulcan:core'; import { withStyles } from '@material-ui/core/styles'; const styles = theme => ({ column: { width:680, margin:"auto" } }) const ShortformPage = ({classes}) => { const { SingleColumnSection, ShortformThreadList...
import React from 'react'; import { Components, registerComponent } from 'meteor/vulcan:core'; import { withStyles } from '@material-ui/core/styles'; const styles = theme => ({ column: { maxWidth:680, margin:"auto" } }) const ShortformPage = ({classes}) => { const { SingleColumnSection, ShortformThreadL...
Fix shortform page width on mobile
Fix shortform page width on mobile
JSX
mit
Discordius/Telescope,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Telescope
--- +++ @@ -4,7 +4,7 @@ const styles = theme => ({ column: { - width:680, + maxWidth:680, margin:"auto" } })
b86bfcfeeeb61b2f4f60164e18a974129c899bec
packages/lesswrong/components/users/UsersSingle.jsx
packages/lesswrong/components/users/UsersSingle.jsx
import { Components, registerComponent, Utils } from 'meteor/vulcan:core'; import React from 'react'; import { withRouter } from 'react-router'; import Users from "meteor/vulcan:users"; const UsersSingle = ({params, router}) => { const slug = Utils.slugify(params.slug); const canonicalUrl = Users.getProfileUrlFrom...
import { Components, registerComponent, Utils } from 'meteor/vulcan:core'; import React from 'react'; import { withRouter } from 'react-router'; import Users from "meteor/vulcan:users"; const UsersSingle = ({params, router}) => { const slug = Utils.slugify(params.slug); const canonicalUrl = Users.getProfileUrlFrom...
Comment about what router.replace does
Comment about what router.replace does
JSX
mit
Discordius/Telescope,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Telescope
--- +++ @@ -7,6 +7,9 @@ const slug = Utils.slugify(params.slug); const canonicalUrl = Users.getProfileUrlFromSlug(slug); if (router.location.pathname !== canonicalUrl) { + // A Javascript redirect, which replaces the history entry (so you don't + // have a redirector interfering with the back button). ...
d27b0a2433c8967bf3ef40b0aa843b33531c6754
src/components/languagechooser/languagechooser.jsx
src/components/languagechooser/languagechooser.jsx
var classNames = require('classnames'); var React = require('react'); var jar = require('../../lib/jar.js'); var languages = require('../../../languages.json'); var Form = require('../forms/form.jsx'); var Select = require('../forms/select.jsx'); /** * Footer dropdown menu that allows one to change their language. ...
var classNames = require('classnames'); var React = require('react'); var jar = require('../../lib/jar.js'); var languages = require('../../../languages.json'); var Form = require('../forms/form.jsx'); var Select = require('../forms/select.jsx'); /** * Footer dropdown menu that allows one to change their language. ...
Update language chooser for formsy
Update language chooser for formsy
JSX
bsd-3-clause
LLK/scratch-www,LLK/scratch-www
--- +++ @@ -34,7 +34,8 @@ <Select name="language" options={languageOptions} defaultValue={this.props.locale} - onChange={this.onSetLanguage} /> + onChange={this.onSetLanguage} + requ...
65668c0a8581980a5fe112cf1aa58403d1c381c7
src/js/components/OptionalVolumesComponent.jsx
src/js/components/OptionalVolumesComponent.jsx
import React from "react/addons"; import ContainerVolumesComponent from "../components/ContainerVolumesComponent"; import LocalVolumesComponent from "../components/LocalVolumesComponent"; var OptionalVolumesComponent = React.createClass({ displayName: "OptionalVolumesComponent", propTypes: { errorIndices...
import React from "react/addons"; import ContainerVolumesComponent from "../components/ContainerVolumesComponent"; import LocalVolumesComponent from "../components/LocalVolumesComponent"; import NetworkVolumesComponent from "../components/NetworkVolumesComponent"; var OptionalVolumesComponent = React.createClas...
Add network volumes component to volumes component
Add network volumes component to volumes component
JSX
apache-2.0
cribalik/marathon-ui,mesosphere/marathon-ui,mesosphere/marathon-ui,cribalik/marathon-ui
--- +++ @@ -4,6 +4,8 @@ from "../components/ContainerVolumesComponent"; import LocalVolumesComponent from "../components/LocalVolumesComponent"; +import NetworkVolumesComponent + from "../components/NetworkVolumesComponent"; var OptionalVolumesComponent = React.createClass({ displayName: "OptionalVolume...
50a27697fe854f66ce47d5d1097d578e570cd7eb
client/sections/profile/components/Description.jsx
client/sections/profile/components/Description.jsx
import React, { Component } from 'react'; class Description extends Component { render() { const { description, updateDescription } = this.props; return ( <div className="profile-section"> <div className="profile-title">About Me</div> <div contentEditable="true" cl...
import React, { Component } from 'react'; class Description extends Component { render() { const { description, updateDescription } = this.props; return ( <div className="profile-section"> <div className="profile-title">About Me</div> <div contentEditable="true" cl...
Change default behavior for enter key
Change default behavior for enter key
JSX
mit
VictoriousResistance/iDioma,VictoriousResistance/iDioma
--- +++ @@ -14,9 +14,12 @@ ref="description" onKeyUp={() => { updateDescription(this.refs.description.innerText); - console.log(this.refs.description.innerText); }} onKeyDown={(e) => { + if (e.which === 13) { + e.preventDefaul...
daca49dc15caa0da30559e26a8fa8317bc5f480e
src/renderer/modal/modalAutoUpdateConfirm/view.jsx
src/renderer/modal/modalAutoUpdateConfirm/view.jsx
import React from "react"; import { Modal } from "modal/modal"; import { Line } from "rc-progress"; import Link from "component/link/index"; const { ipcRenderer } = require("electron"); class ModalAutoUpdateConfirm extends React.PureComponent { render() { const { closeModal, declineAutoUpdate } = this.props; ...
import React from "react"; import { Modal } from "modal/modal"; import { Line } from "rc-progress"; import Link from "component/link/index"; const { ipcRenderer } = require("electron"); class ModalAutoUpdateConfirm extends React.PureComponent { render() { const { closeModal, declineAutoUpdate } = this.props; ...
Add release notes to auto update dialogs
Add release notes to auto update dialogs
JSX
mit
lbryio/lbry-app,lbryio/lbry-electron,lbryio/lbry-electron,lbryio/lbry-app,lbryio/lbry-electron
--- +++ @@ -31,6 +31,10 @@ 'Your LBRY update is ready. Restart LBRY now to use it!' )} </p> + <p className="meta text-center"> + {__('Want to know what has changed?')} See the{' '} + <Link label={__('release notes')} href="https://github.com/lbryio...
e22ad557e894506a7b9711e4dc78e912e0ad8cc5
src/js/components/RegistrationComponents/ConfirmCodeComponent.jsx
src/js/components/RegistrationComponents/ConfirmCodeComponent.jsx
/** * ConfirmCodeComponent.jsx * Created by Kyle Fox 12/11/15 **/ import React, { PropTypes } from 'react'; import Navbar from '../SharedComponents/NavigationComponents.jsx'; import TextInputComponent from '../SharedComponents/TextInputComponent.jsx'; import PasswordInputComponent from '../SharedComponents/PasswordInp...
/** * ConfirmCodeComponent.jsx * Created by Kyle Fox 12/11/15 **/ import React from 'react'; // An email input field that does basic validation for .mil and .gov emails export default class ConfirmCode extends React.Component { render() { return ( <h1>Confirm</h1> ); } }
Revert "Moving registration confirmation code into correct jsx based on routing."
Revert "Moving registration confirmation code into correct jsx based on routing." This reverts commit 6335b45612095a9fc7ea0cf4acd5c3f1a1c8e29f.
JSX
cc0-1.0
fedspendingtransparency/data-act-broker-web-app,fedspendingtransparency/data-act-broker-web-app
--- +++ @@ -3,29 +3,13 @@ * Created by Kyle Fox 12/11/15 **/ -import React, { PropTypes } from 'react'; -import Navbar from '../SharedComponents/NavigationComponents.jsx'; -import TextInputComponent from '../SharedComponents/TextInputComponent.jsx'; -import PasswordInputComponent from '../SharedComponents/Passwor...
31984488acd37f10b75b73d0c145c03e5b2fc83d
app-management/components/AppListing/AppListing.jsx
app-management/components/AppListing/AppListing.jsx
import React, { PropTypes } from 'react'; import LoadingSpinner from '../LoadingSpinner'; import ErrorAlert from '../ErrorAlert'; import AppPreview from './AppPreview'; import NewAppInstructions from '../NewAppPage/NewAppInstructions'; class AppListing extends React.Component { componentWillMount() { this.props....
import React, { PropTypes } from 'react'; import LoadingSpinner from '../LoadingSpinner'; import ErrorAlert from '../ErrorAlert'; import AppPreview from './AppPreview'; import NewAppInstructions from '../NewAppPage/NewAppInstructions'; class AppListing extends React.Component { componentWillMount() { this.props....
Hide new app instructions when showing app listing error
Hide new app instructions when showing app listing error
JSX
apache-2.0
sarraloew/developer.concur.com,HeathH-Concur/developer.concur.com,sarraloew/developer.concur.com,bhague1281/developer.concur.com,sarraloew/developer.concur.com,sarraloew/developer.concur.com,HeathH-Concur/developer.concur.com,sarraloew/developer.concur.com,concur/developer.concur.com,bhague1281/developer.concur.com,Hea...
--- +++ @@ -12,7 +12,7 @@ render () { const { isFetching, error, apps } = this.props; const content = apps.map(app => <AppPreview app={app} key={app.id} />); - const showNewAppInstructions = !isFetching && apps.length === 0; + const showNewAppInstructions = !isFetching && !error && apps.length === ...
ca99fba35eea1caf8289ee94d2b77429798cf578
src/app/components/simple-editable-list/SimpleEditableListItem.jsx
src/app/components/simple-editable-list/SimpleEditableListItem.jsx
import React, { Component } from 'react'; import PropTypes from 'prop-types'; const propTypes = { field: PropTypes.shape({ simpleListHeading: PropTypes.string.isRequired, simpleListDescription: PropTypes.string }), handleEditClick: PropTypes.func.isRequired, handleDeleteClick: PropTypes...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; const propTypes = { field: PropTypes.shape({ simpleListHeading: PropTypes.string.isRequired, simpleListDescription: PropTypes.string }), handleEditClick: PropTypes.func.isRequired, handleDeleteClick: PropTypes...
Use class name instead of inline style
Use class name instead of inline style
JSX
mit
ONSdigital/florence,ONSdigital/florence,ONSdigital/florence,ONSdigital/florence
--- +++ @@ -32,7 +32,7 @@ <p>{this.props.field.simpleListDescription}</p> </div> <div className="grid__col-lg-2"> - <p style={{"textAlign": "right"}}> + <p className="text-right"> <button type="button...
cf1e3d692be42c548299c76bf93f0421bde79929
js/search.jsx
js/search.jsx
const React = require('react') const ShowCard = require('./ShowCard') const data = require('../public/data') const Search = () => ( <div className='container'> <div className='shows'> {data.shows.map((show) => ( <ShowCard show={show} /> ))} </div> </div> ) module.exports = Search
const React = require('react') const ShowCard = require('./ShowCard') const data = require('../public/data') const Search = () => ( <div className='container'> <div className='shows'> {data.shows.map((show) => ( <ShowCard show={show} key={show.imdbID}/> ))} </div> </div> ) module.expor...
Fix the unique key prop error
Fix the unique key prop error
JSX
mit
michaeldumalag/ReactSelfLearning,michaeldumalag/ReactSelfLearning
--- +++ @@ -6,7 +6,7 @@ <div className='container'> <div className='shows'> {data.shows.map((show) => ( - <ShowCard show={show} /> + <ShowCard show={show} key={show.imdbID}/> ))} </div> </div>
55bdbdb19069301bfa2a30e19d39f9329a772e84
src/js/disability-benefits/components/ClaimsDecision.jsx
src/js/disability-benefits/components/ClaimsDecision.jsx
import React from 'react'; class ClaimsDecision extends React.Component { render() { return ( <div className="claim-decision-is-ready usa-alert usa-alert-info claims-no-icon"> <h4>Your claim decision is ready</h4> <p>VA sent you a claim decision by U.S mail. Please allow up to 8 business da...
import React from 'react'; class ClaimsDecision extends React.Component { render() { return ( <div className="claim-decision-is-ready usa-alert usa-alert-info claims-no-icon"> <h4>Your claim decision is ready</h4> <p>We sent you a packet by U.S. mail that includes details of the decision or...
Update content for your claim decision is ready alert
Update content for your claim decision is ready alert
JSX
cc0-1.0
department-of-veterans-affairs/vets-website,department-of-veterans-affairs/vets-website
--- +++ @@ -5,7 +5,7 @@ return ( <div className="claim-decision-is-ready usa-alert usa-alert-info claims-no-icon"> <h4>Your claim decision is ready</h4> - <p>VA sent you a claim decision by U.S mail. Please allow up to 8 business days for it to arrive.</p> + <p>We sent you a packet ...
58b3aef8777f14e26f334c3a3a63518f85cd1b70
app/javascript/app/pages/ndc-search/ndc-search-component.jsx
app/javascript/app/pages/ndc-search/ndc-search-component.jsx
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import Header from 'components/header'; import Intro from 'components/intro'; import AutocompleteSearch from 'components/autocomplete-search'; import ResultCard from 'components/result-card'; import NDCSearch...
import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import Sticky from 'react-stickynode'; import Header from 'components/header'; import Intro from 'components/intro'; import AutocompleteSearch from 'components/autocomplete-search'; import ResultCard from 'co...
Make the search map sticky
Make the search map sticky
JSX
mit
Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch
--- +++ @@ -1,6 +1,7 @@ import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; +import Sticky from 'react-stickynode'; import Header from 'components/header'; import Intro from 'components/intro'; @@ -33,7 +34,9 @@ <ResultCard key={result...
5f60504128ea68ef2fd0da1e22066121f7f586f6
src/components/controls/Range.jsx
src/components/controls/Range.jsx
// @flow import React from "react"; import s from "./styles.scss"; const Range = (props: { name: string, types: { range: [number, number] }, value: number, step: ?number, onSetFilterOption: (string, any) => {} }) => <div className={s.range}> <div className={s.label}> {props.name} </div> ...
// @flow import React from "react"; import s from "./styles.scss"; const Range = (props: { name: string, types: { range: [number, number] }, value: number, step: ?number, onSetFilterOption: (string, any) => {} }) => <div className={s.range}> <div className={s.label}> {props.name} </div> ...
Fix range control not handling decimal steps
Fix range control not handling decimal steps
JSX
mit
gyng/ditherer,gyng/ditherer,gyng/ditherer
--- +++ @@ -22,7 +22,8 @@ max={props.types.range[1]} value={props.value} step={props.step || 1} - onChange={e => props.onSetFilterOption(props.name, e.target.value)} + onChange={e => + props.onSetFilterOption(props.name, parseFloat(e.target.value))} /> ...
a27274e0cf16ad35b3281c5fafe1e996ad2d3810
src/index.jsx
src/index.jsx
/* eslint-disable no-shadow, import/no-extraneous-dependencies */ import 'babel-polyfill'; import React from 'react'; import reactDOM from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import store from './redux/store'; import Root from './containers/Root'; require('./style/style.scss'); const render ...
import 'babel-polyfill'; import React from 'react'; import reactDOM from 'react-dom'; import { AppContainer } from 'react-hot-loader'; // eslint-disable-line import/no-extraneous-dependencies import store from './redux/store'; import Root from './containers/Root'; import './style/style.scss'; const render = (Component...
Remove unused eslint disabled rule from indes.jsx
[Refactor] Remove unused eslint disabled rule from indes.jsx
JSX
isc
eddyerburgh/palette-picker,eddyerburgh/palette-picker
--- +++ @@ -1,12 +1,10 @@ -/* eslint-disable no-shadow, import/no-extraneous-dependencies */ import 'babel-polyfill'; import React from 'react'; import reactDOM from 'react-dom'; -import { AppContainer } from 'react-hot-loader'; +import { AppContainer } from 'react-hot-loader'; // eslint-disable-line import/no-ext...
592f6970d31180f878b418fa62eabcb462122547
docs/src/components/Components/Sliders/CustomRangeAndTicks.jsx
docs/src/components/Components/Sliders/CustomRangeAndTicks.jsx
import React from 'react'; import { Slider } from 'react-md'; const CustomRangeAndTicks = () => ( <div> <Slider id="custom-range-continuous-slider" label="Min = 1, Max = 3, Step = 0.5" min={1} max={3} step={0.5} /> <Slider id="disctete-ticks-slider" label="Discre...
import React from 'react'; import { Slider } from 'react-md'; const CustomRangeAndTicks = () => ( <div> <Slider id="custom-range-continuous-slider" label="Min = 1, Max = 3, Step = 0.5" min={1} max={3} step={0.5} /> <Slider id="custom-range-step-slider" label="Dis...
Update docs to demonstrate a step < 1 with a min value != 0
Update docs to demonstrate a step < 1 with a min value != 0
JSX
mit
mlaursen/react-md,mlaursen/react-md,mlaursen/react-md
--- +++ @@ -9,6 +9,15 @@ min={1} max={3} step={0.5} + /> + <Slider + id="custom-range-step-slider" + label="Discrete Min = 1, Max = 3, Step = 0.25" + min={1} + max={3} + step={0.25} + valuePrecision={2} + discrete /> <Slider id="disctete-t...
13015fa9d0e62775d7a84a61f194c3a30169979c
packages/lesswrong/components/common/NavigationEventSender.jsx
packages/lesswrong/components/common/NavigationEventSender.jsx
import React from 'react'; import { registerComponent, runCallbacks } from 'meteor/vulcan:core'; import { useLocation } from '../../lib/routeUtil'; let lastLocation = null; const NavigationEventSender = () => { const location = useLocation(); React.useEffect(() => { // Only handle navigation events on the ...
import React from 'react'; import { registerComponent, runCallbacks } from 'meteor/vulcan:core'; import { useSubscribedLocation } from '../../lib/routeUtil'; let lastLocation = null; const NavigationEventSender = () => { const location = useSubscribedLocation(); React.useEffect(() => { // Only handle navig...
Fix navigation events sometimes not sending
Fix navigation events sometimes not sending
JSX
mit
Discordius/Telescope,Discordius/Telescope,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Lesswrong2
--- +++ @@ -1,11 +1,11 @@ import React from 'react'; import { registerComponent, runCallbacks } from 'meteor/vulcan:core'; -import { useLocation } from '../../lib/routeUtil'; +import { useSubscribedLocation } from '../../lib/routeUtil'; let lastLocation = null; const NavigationEventSender = () => { - const l...
cfdfe21f8c8778ab3d02f0172758a17d16a0adc8
src/renderer/components/confim-modal.jsx
src/renderer/components/confim-modal.jsx
import React, { Component, PropTypes } from 'react'; export default class ServerModalForm extends Component { static propTypes = { onCancelClick: PropTypes.func.isRequired, onRemoveClick: PropTypes.func.isRequired, title: PropTypes.string.isRequired, message: PropTypes.string.isRequired, context...
import React, { Component, PropTypes } from 'react'; export default class ServerModalForm extends Component { static propTypes = { onCancelClick: PropTypes.func.isRequired, onRemoveClick: PropTypes.func.isRequired, title: PropTypes.string.isRequired, message: PropTypes.string.isRequired, context...
Add CSS hack for confirm modal stay at the top of the parent modal
Add CSS hack for confirm modal stay at the top of the parent modal
JSX
mit
sqlectron/sqlectron-gui,sqlectron/sqlectron-gui,sqlectron/sqlectron-gui,sqlectron/sqlectron-gui
--- +++ @@ -39,7 +39,7 @@ const { title, message } = this.props; return ( - <div className="ui modal" ref="confirmModal"> + <div className="ui modal" ref="confirmModal" style={{position: 'absolute'}}> <div className="header"> {title} </div>
d08e924abc2e81fde926e28254d13ddf10a3a317
client/src/components/HomePage.jsx
client/src/components/HomePage.jsx
import React from 'react'; import { Card, CardTitle } from 'material-ui/Card'; const HomePage = () => ( <Card className="container"> <CardTitle title="Welcome to Fridgr" subtitle="Tracking groceries got you stressed? Chill." /> </Card> ); export default HomePage;
import React from 'react'; import { Card, CardTitle } from 'material-ui/Card'; import Nav from './Nav.jsx'; class HomePage extends React.Component { constructor(props) { super(props); this.state = { page: 'home' }; } render() { if (localStorage.getItem('loggedIn') === 'true') { retu...
Change to class implementation to allows for conditional rendering of Nav bar if logged in
Change to class implementation to allows for conditional rendering of Nav bar if logged in
JSX
mit
SentinelsOfMagic/SentinelsOfMagic
--- +++ @@ -1,11 +1,40 @@ import React from 'react'; import { Card, CardTitle } from 'material-ui/Card'; +import Nav from './Nav.jsx'; +class HomePage extends React.Component { + constructor(props) { + super(props); -const HomePage = () => ( - <Card className="container"> - <CardTitle title="Welcome to ...
b3a8300a73e3e0029d4660a5fa8e177e28e14773
src/alert-transition.jsx
src/alert-transition.jsx
import React from "react"; import transitionStyles from "./transition-styles"; import { CSSTransition } from "react-transition-group"; import { ENTER_TIMEOUT, EXIT_TIMEOUT } from "./container"; import useSheet from "react-jss"; const timeout = { enter: ENTER_TIMEOUT, exit: EXIT_TIMEOUT }; const AlertTransition = ({ s...
import React from "react"; import transitionStyles from "./transition-styles"; import { CSSTransition } from "react-transition-group"; import { ENTER_TIMEOUT, EXIT_TIMEOUT } from "./container"; import useSheet from "react-jss"; const timeout = { enter: ENTER_TIMEOUT, exit: EXIT_TIMEOUT }; const AlertTransition = ({ s...
Fix broken dismissing of alerts
Fix broken dismissing of alerts This fixes #41 by reverting part of #40 which fixed #39. The CSSTransition needs the props passed down from the TransitionGroup. We just want to avoid passing down extraneous props to that element to avoid warnings in React v15.
JSX
mit
chadly/react-bs-notifier
--- +++ @@ -6,15 +6,9 @@ const timeout = { enter: ENTER_TIMEOUT, exit: EXIT_TIMEOUT }; -const AlertTransition = ({ sheet: { classes }, ...props }) => - props && props.children ? ( - <CSSTransition - timeout={timeout} - classNames={classes} - onExited={props.onExited} - > - {props.children} - </CSSTran...
fbc143aaafb15b3e10e833bc306444f66f0fdd68
src/renderer/modal/modalAutoUpdateDownloaded/view.jsx
src/renderer/modal/modalAutoUpdateDownloaded/view.jsx
import React from "react"; import { Modal } from "modal/modal"; import { Line } from "rc-progress"; import Link from "component/link/index"; const { ipcRenderer } = require("electron"); class ModalAutoUpdateDownloaded extends React.PureComponent { render() { const { closeModal, declineAutoUpdate } = this.props;...
import React from "react"; import { Modal } from "modal/modal"; import { Line } from "rc-progress"; import Link from "component/link/index"; const { ipcRenderer } = require("electron"); class ModalAutoUpdateDownloaded extends React.PureComponent { render() { const { closeModal, declineAutoUpdate } = this.props;...
Reword "Upgrade on Restart" to "Upgrade on Close"
Reword "Upgrade on Restart" to "Upgrade on Close"
JSX
mit
lbryio/lbry-electron,lbryio/lbry-electron,lbryio/lbry-electron,lbryio/lbry-app,lbryio/lbry-app
--- +++ @@ -15,7 +15,7 @@ type="confirm" contentLabel={__("Update Downloaded")} confirmButtonLabel={__("Use it Now")} - abortButtonLabel={__("Upgrade on Restart")} + abortButtonLabel={__("Upgrade on Close")} onConfirmed={() => { ipcRenderer.send("autoUpdate...
91885e41ba4b00c4be7daa7a247bb45a10f6f6b5
src/components/NotFound.jsx
src/components/NotFound.jsx
const React = window.React = require('react'); export default function NotFound() { return <div className="so-back islandBack"> <div className="island"> <div className="island__header"> Page not found </div> <div className="OfferTables island__sub"> <div className="OfferTables__...
const React = window.React = require('react'); export default function NotFound() { return <div className="so-back islandBack islandBack--t"> <div className="island"> <div className="island__header"> Page not found </div> <div className="OfferTables island__sub"> <div className=...
Add some padding to 404 page
Add some padding to 404 page
JSX
apache-2.0
irisli/stellarterm,irisli/stellarterm,irisli/stellarterm
--- +++ @@ -1,7 +1,7 @@ const React = window.React = require('react'); export default function NotFound() { - return <div className="so-back islandBack"> + return <div className="so-back islandBack islandBack--t"> <div className="island"> <div className="island__header"> Page not found
fd397323c46c27db98ccab3ed207427fd8647fe2
src/cred/vcode_input.jsx
src/cred/vcode_input.jsx
import React from 'react'; import InputWrap from './input_wrap'; import Icon from '../icon/icon'; import { isSmallScreen } from '../utils/media_utils'; export default class VcodeInput extends React.Component { constructor(props) { super(props); this.state = {}; } componentDidMount() { if (!isSmallSc...
import React from 'react'; import InputWrap from './input_wrap'; import Icon from '../icon/icon'; import { isSmallScreen } from '../utils/media_utils'; export default class VcodeInput extends React.Component { constructor(props) { super(props); this.state = {}; } componentDidMount() { if (!isSmallSc...
Use type="tel" for verification code input
Use type="tel" for verification code input
JSX
mit
mike-casas/lock,mike-casas/lock,auth0/lock-passwordless,mike-casas/lock,auth0/lock-passwordless,auth0/lock-passwordless
--- +++ @@ -25,7 +25,7 @@ return ( <InputWrap name="vcode" isValid={isValid} icon={<Icon name="vcode" />} focused={focused}> <input ref="input" - type="number" + type="tel" name="vcode" className="auth0-lock-input auth0-lock-input-code" autoComp...
a4e89b492ae93f23d84392f748d3e2b7b50acf26
client/src/components/manager/StatusSwitch.jsx
client/src/components/manager/StatusSwitch.jsx
import React from 'react'; const StatusSwitch = (props) => { return ( <div className="nav navbar-nav"> <a className="active">Status: {props.status === 'Open' ? 'Open' : 'Close'} for Queue</a> <button type="button" className="btn btn-primary navbar-btn" data-toggle="modal" data-target="#close-queue...
import React from 'react'; const StatusSwitch = (props) => { return ( <div className="nav navbar-nav"> <a className="active">Status: {props.status === 'Open' ? 'Open' : 'Close'}Queue</a> <button type="button" className="btn btn-primary navbar-btn" data-toggle="modal" data-target="#close-queue-warn...
Fix typos in manager client
Fix typos in manager client
JSX
mit
nehacp/q-dot,q-dot/q-dot,Pegaiur/q-dot,Lynne-Daniels/q-dot
--- +++ @@ -4,7 +4,7 @@ return ( <div className="nav navbar-nav"> - <a className="active">Status: {props.status === 'Open' ? 'Open' : 'Close'} for Queue</a> + <a className="active">Status: {props.status === 'Open' ? 'Open' : 'Close'}Queue</a> <button type="button" className="btn btn-prima...
f8b2c72e2ce6ed8adda8548d4129ec1dbe03c8c9
imports/ui/components/UserMenu.jsx
imports/ui/components/UserMenu.jsx
import React from 'react'; import { Link } from 'react-router'; import UserName from './UserName'; export default class UserMenu extends React.Component { logOut() { AccountsTemplates.logout(); this.context.router.push('/'); } renderLoggedIn() { const user = this.props.user; const userPagePath ...
import React from 'react'; import { Link } from 'react-router'; import UserName from './UserName'; export default class UserMenu extends React.Component { logOut(e) { e.preventDefault(); AccountsTemplates.logout(); this.context.router.push('/'); } renderLoggedIn() { const user = this.props.user...
Remove anchor in url after logout
Remove anchor in url after logout
JSX
agpl-3.0
Davidyuk/witcoin,Davidyuk/witcoin
--- +++ @@ -4,7 +4,8 @@ import UserName from './UserName'; export default class UserMenu extends React.Component { - logOut() { + logOut(e) { + e.preventDefault(); AccountsTemplates.logout(); this.context.router.push('/'); }
b2ae5dc7d45483d4ba73353f120a6aa633324ca7
client/src/components/customer/SelectedRestaurant.jsx
client/src/components/customer/SelectedRestaurant.jsx
import React from 'react'; import RestaurantLogoBanner from './RestaurantLogoBanner.jsx'; import CustomerInfoForm from './CustomerInfoForm.jsx'; import CustomerQueueInfo from './CustomerQueueInfo.jsx'; import RestaurantInformation from './RestaurantInformation.jsx'; class SelectedRestaurant extends React.Component { ...
import React from 'react'; import RestaurantLogoBanner from './RestaurantLogoBanner.jsx'; import CustomerInfoForm from './CustomerInfoForm.jsx'; import CustomerQueueInfo from './CustomerQueueInfo.jsx'; import RestaurantInformation from './RestaurantInformation.jsx'; class SelectedRestaurant extends React.Component { ...
Fix POST request for customer info to add to queue
Fix POST request for customer info to add to queue
JSX
mit
Lynne-Daniels/q-dot,Pegaiur/q-dot,nehacp/q-dot,q-dot/q-dot
--- +++ @@ -16,12 +16,11 @@ } customerInfoSubmitted(id, position) { - // this.setState({ - // infoSubmitted: true, - // queueId: id, - // queuePosition: position - // }) - console.log('SelectedRestaurant customerInfoSubmitted', id, position, this.props.groupSize) + this.setState({ +...
d93e0c3d392996bac8e41b93aadc74508dc44118
public/app/common/components/controls/switch/switch.jsx
public/app/common/components/controls/switch/switch.jsx
var React = require('react'); var styleMixin = require('mixins/style-mixin'); var SwitchControl = React.createClass({ mixins: [ styleMixin(require('./style.scss')) ], getInitialState: function getInitialState () { return { checked: this.props.value || false }; }, render: function render () { return (...
var React = require('react'); var styleMixin = require('mixins/style-mixin'); var cx = require('react/lib/cx'); var SwitchControl = React.createClass({ mixins: [ styleMixin(require('./style.scss')) ], getInitialState: function getInitialState () { return { checked: this.props.value || false }; }, render:...
Use React cx for the Switch control
Use React cx for the Switch control
JSX
mit
yetu/controlcenter,yetu/controlcenter,yetu/controlcenter
--- +++ @@ -1,5 +1,6 @@ var React = require('react'); var styleMixin = require('mixins/style-mixin'); +var cx = require('react/lib/cx'); var SwitchControl = React.createClass({ mixins: [ styleMixin(require('./style.scss')) ], @@ -9,13 +10,16 @@ }, render: function render () { + + var className = cx...
5373af395deb8933400969a48a245f4ba32ae56c
ui/js/component/NavMenu.jsx
ui/js/component/NavMenu.jsx
'use strict'; var React = require('react'); var MenuControl = require('mixin/MenuControl'); var NavMenu = React.createClass({ mixins : [ require('mixin/MenuControl') ], propTypes : { text : React.PropTypes.string.isRequired, icon : React.PropTypes.string }, render : function () { var disp...
'use strict'; var React = require('react'); var MenuControl = require('mixin/MenuControl'); var NavMenu = React.createClass({ mixins : [ require('mixin/MenuControl') ], propTypes : { text : React.PropTypes.string.isRequired, icon : React.PropTypes.string }, render : function () { var disp...
Remove the blur handler for now
Remove the blur handler for now Closing the menu on blur was preventing the click from actually opening the new URL. This will work as a solution for closing menus, but will need a little more work
JSX
agpl-3.0
unicef/rhizome,SeedScientific/polio,unicef/polio,unicef/polio,SeedScientific/polio,unicef/rhizome,unicef/rhizome,SeedScientific/polio,unicef/polio,unicef/polio,unicef/rhizome,SeedScientific/polio,SeedScientific/polio
--- +++ @@ -26,16 +26,6 @@ ); }, - componentDidUpdate : function () { - if (this.state.open) { - React.findDOMNode(this).focus(); - } - }, - - _onBlur : function () { - this.setState({ open : false }); - } - }); module.exports = NavMenu;
99b9cd616adc26b065225cdea14073b26f34bb59
app/assets/javascripts/components/common/rocket_chat.jsx
app/assets/javascripts/components/common/rocket_chat.jsx
import React from 'react'; import ChatActions from '../../actions/chat_actions.js'; import ChatStore from '../../stores/chat_store.js'; const RocketChat = React.createClass({ displayName: 'RocketChat', propTypes: { course: React.PropTypes.object }, mixins: [ChatStore.mixin], getInitialState() { re...
import React from 'react'; import ChatActions from '../../actions/chat_actions.js'; import ChatStore from '../../stores/chat_store.js'; const RocketChat = React.createClass({ displayName: 'RocketChat', propTypes: { course: React.PropTypes.object, current_user: React.PropTypes.object }, mixins: [ChatS...
Hide chat iframe unless user is logged in
Hide chat iframe unless user is logged in
JSX
mit
majakomel/WikiEduDashboard,alpha721/WikiEduDashboard,majakomel/WikiEduDashboard,sejalkhatri/WikiEduDashboard,alpha721/WikiEduDashboard,KarmaHater/WikiEduDashboard,sejalkhatri/WikiEduDashboard,sejalkhatri/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,WikiEducationFoundation/WikiEduDashboard,sejalkhatri/WikiE...
--- +++ @@ -6,19 +6,21 @@ displayName: 'RocketChat', propTypes: { - course: React.PropTypes.object + course: React.PropTypes.object, + current_user: React.PropTypes.object }, mixins: [ChatStore.mixin], getInitialState() { return { - authToken: ChatStore.getAuthToken() + au...
d11acab0a029151e9d1e1b3d03bdaa5551cb8cba
livedoc-ui-webjar/src/components/doc/types/complex/TypeFieldRow.jsx
livedoc-ui-webjar/src/components/doc/types/complex/TypeFieldRow.jsx
// @flow import * as React from 'react'; import type { ApiObjectFieldDoc } from '../../../../model/livedoc'; import { TypeRef } from '../../typeref/TypeRef'; export type TypeFieldRowProps = { field: ApiObjectFieldDoc, } export const TypeFieldRow = (props: TypeFieldRowProps) => { const field: ApiObjectFieldDoc = p...
// @flow import * as React from 'react'; import type { ApiObjectFieldDoc } from '../../../../model/livedoc'; import { TypeRef } from '../../typeref/TypeRef'; export type TypeFieldRowProps = { field: ApiObjectFieldDoc, } export const TypeFieldRow = (props: TypeFieldRowProps) => { const field: ApiObjectFieldDoc = p...
Add display of the field property format when present
Add display of the field property format when present
JSX
mit
joffrey-bion/livedoc,joffrey-bion/livedoc,joffrey-bion/livedoc,joffrey-bion/livedoc,joffrey-bion/livedoc
--- +++ @@ -9,10 +9,26 @@ export const TypeFieldRow = (props: TypeFieldRowProps) => { const field: ApiObjectFieldDoc = props.field; - + const desc = field.description && <p>{field.description}</p>; return <tr> <td><code>{field.name}</code></td> <td><TypeRef type={field.type}/></td> - <td>{field...
53143832e0d54c96ca9ec46328b12ae4b92b5686
app/assets/javascripts/components/user_navbar_dropdown.js.jsx
app/assets/javascripts/components/user_navbar_dropdown.js.jsx
/** @jsx React.DOM */ (function() { window.UserNavbarDropdown = React.createClass({ render: function() { return ( <ul className='dropdown-menu'> <li> <a href={this.props.userPath}> <span className="icon icon-user dropdown-glyph"></span> Profile ...
/** @jsx React.DOM */ (function() { window.UserNavbarDropdown = React.createClass({ render: function() { return ( <ul className='dropdown-menu'> <li> <a href={this.props.userPath}> <span className="icon icon-user dropdown-glyph"></span> Profile ...
Allow users to log out
Allow users to log out
JSX
agpl-3.0
assemblymade/meta,lachlanjc/meta,lachlanjc/meta,lachlanjc/meta,assemblymade/meta,assemblymade/meta,lachlanjc/meta,assemblymade/meta
--- +++ @@ -22,7 +22,7 @@ <li className='divider' /> <li> - <a href={this.destroyUserSessionPath} data-method='delete'> + <a href={this.props.destroyUserSessionPath} data-method='delete'> <span className='icon icon-logout dropdown-glyph'></span> ...
0bd885a977236568aec4d502a9686920d722a7a2
components/SiteNav/index.jsx
components/SiteNav/index.jsx
import React from 'react'; import { Link } from 'react-router'; import { prefixLink } from 'gatsby-helpers'; import './style.css'; class SiteNav extends React.Component { render() { return ( <nav className="blog-nav"> <ul> <li> <Link to={prefixLink('/')} activeClassName="curre...
import React from 'react'; import { Link } from 'react-router'; import { prefixLink } from 'gatsby-helpers'; import './style.css'; class SiteNav extends React.Component { render() { return ( <nav className="blog-nav"> <ul> <li> <Link to={prefixLink('/')} activeClassName="curre...
Add link to latex symbols page in left nav
Add link to latex symbols page in left nav
JSX
mit
lilac/lilac.github.io,lilac/lilac.github.io
--- +++ @@ -16,6 +16,9 @@ <Link to={prefixLink('/IconStudio/')} activeClassName="current">圖標工作室</Link> </li> <li> + <Link to={prefixLink('/latex-symbols/')} activeClassName="current" target="_blank">Latex符號表</Link> + </li> + <li> <Link to={p...
3aef4ae7a135d35d787d9a440a03f5d46361d36c
src/components/IntroPage.jsx
src/components/IntroPage.jsx
'use strict'; const React = require('react'); const Brand = require('./Brand.jsx'), Feed = require('./Feed.jsx'); const IntroPage = function (props) { const { isCollapsed } = props; let introClasses = 'wk-intro-page'; if (isCollapsed) { introClasses += ' wk-intro-page--collapsed'; } /* eslint-d...
'use strict'; const React = require('react'); const Brand = require('./Brand.jsx'), Feed = require('./Feed.jsx'); const IntroPage = function (props) { const { isCollapsed } = props; let introClasses = 'wk-intro-page'; if (isCollapsed) { introClasses += ' wk-intro-page--collapsed'; } /* eslint-d...
Fix caching issue with loading news.
Fix caching issue with loading news.
JSX
agpl-3.0
thenativeweb/wolkenkit-documentation,thenativeweb/wolkenkit-documentation
--- +++ @@ -14,7 +14,7 @@ } /* eslint-disable no-process-env */ - const newsUrl = process.env.NEWS_URL || 'https://www.wolkenkit.io/news.json'; + const newsUrl = process.env.NEWS_URL || `https://www.wolkenkit.io/news.json?_=${Date.now()}`; /* eslint-enable no-process-env */ return (