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 |
|---|---|---|---|---|---|---|---|---|---|---|
f56cd39ff561a735d9e73191e6eb1d9906704dce | src/renderer/components/server-list.jsx | src/renderer/components/server-list.jsx | import React, { Component, PropTypes } from 'react';
import ServerListItem from './server-list-item.jsx';
import LoadingPage from './loading.jsx';
export default class ServerList extends Component {
static propTypes = {
servers: PropTypes.array.isRequired,
onEditClick: PropTypes.func.isRequired,
onConne... | import React, { Component, PropTypes } from 'react';
import ServerListItem from './server-list-item.jsx';
import LoadingPage from './loading.jsx';
export default class ServerList extends Component {
static propTypes = {
servers: PropTypes.array.isRequired,
onEditClick: PropTypes.func.isRequired,
onConne... | Change code to not need use “else” statement | Change code to not need use “else” statement | JSX | mit | sqlectron/sqlectron-gui,sqlectron/sqlectron-gui,sqlectron/sqlectron-gui,sqlectron/sqlectron-gui | ---
+++
@@ -20,12 +20,11 @@
const data = { id: index, server: item };
const position = Math.floor(index / itemsPerRow);
- if (rows[position]) {
- rows[position].push(data);
- } else {
- rows[position] = [data];
+ if (!rows[position]) {
+ rows[position] = [];
... |
2b2be1879ea52c6bf0de9a2c2f56876baf3900b4 | src/_shared/PickerBase.jsx | src/_shared/PickerBase.jsx | import { PureComponent } from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import DomainPropTypes from '../constants/prop-types';
/* eslint-disable react/sort-comp */
export default class PickerBase extends PureComponent {
static propTypes = {
value: DomainPropTypes.date,
onChang... | import { PureComponent } from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import DomainPropTypes from '../constants/prop-types';
/* eslint-disable react/sort-comp */
export default class PickerBase extends PureComponent {
static propTypes = {
value: DomainPropTypes.date,
onChang... | Fix not updating picker by changing value outside | Fix not updating picker by changing value outside
| JSX | mit | mui-org/material-ui,mui-org/material-ui,dmtrKovalenko/material-ui-pickers,oliviertassinari/material-ui,mbrookes/material-ui,callemall/material-ui,rscnt/material-ui,oliviertassinari/material-ui,oliviertassinari/material-ui,mbrookes/material-ui,mui-org/material-ui,rscnt/material-ui,rscnt/material-ui,dmtrKovalenko/materia... | ---
+++
@@ -28,6 +28,12 @@
date: this.getValidDateOrCurrent(),
}
+ componentDidUpdate = (prevProps) => {
+ if (this.props.value !== prevProps.value) {
+ this.setState({ date: this.getValidDateOrCurrent() });
+ }
+ }
+
handleAccept = () => {
const dateToReturn = this.props.returnMoment
... |
6feae2ae38d41c4ff628aa2b371f063fc03e739c | client/routes/category-details/index.jsx | client/routes/category-details/index.jsx | import './styles.scss';
import GroceryItem from '../../components/grocery-item';
import React, { Component } from 'react';
class CategoryDetails extends Component {
constructor(props) {
super(props);
this.state = {
groceryItems: this.props.groceryItemStore.itemsForCategory(this.props.match.params.id)
... | import './styles.scss';
import GroceryItem from '../../components/grocery-item';
import React, { Component } from 'react';
class CategoryDetails extends Component {
constructor(props) {
super(props);
this.state = {
groceryItems: []
};
}
_updateGroceryItems() {
this.props.groceryItemStore.i... | Fix rendering error for category details screen | Fix rendering error for category details screen
| JSX | bsd-3-clause | mike-north/pwa-fundamentals,mike-north/pwa-fundamentals,mike-north/pwa-fundamentals | ---
+++
@@ -7,13 +7,17 @@
constructor(props) {
super(props);
this.state = {
- groceryItems: this.props.groceryItemStore.itemsForCategory(this.props.match.params.id)
+ groceryItems: []
};
+ }
+ _updateGroceryItems() {
+ this.props.groceryItemStore.itemsForCategory(this.props.match.para... |
12b73fb52a7d311a187033299d504f07d04c4407 | src/containers/gui.jsx | src/containers/gui.jsx | const React = require('react');
const VM = require('scratch-vm');
const vmListenerHOC = require('../lib/vm-listener-hoc.jsx');
const GUIComponent = require('../components/gui/gui.jsx');
class GUI extends React.Component {
componentDidMount () {
this.props.vm.loadProject(this.props.projectData);
t... | const React = require('react');
const VM = require('scratch-vm');
const vmListenerHOC = require('../lib/vm-listener-hoc.jsx');
const GUIComponent = require('../components/gui/gui.jsx');
class GUI extends React.Component {
componentDidMount () {
this.props.vm.loadProject(this.props.projectData);
t... | Make Compatibility Mode on By Default | Make Compatibility Mode on By Default | JSX | bsd-3-clause | cwillisf/scratch-gui,cwillisf/scratch-gui,cwillisf/scratch-gui,LLK/scratch-gui,LLK/scratch-gui | ---
+++
@@ -8,6 +8,7 @@
class GUI extends React.Component {
componentDidMount () {
this.props.vm.loadProject(this.props.projectData);
+ this.props.vm.setCompatibilityMode(true);
this.props.vm.start();
}
componentWillReceiveProps (nextProps) { |
6826f178518052772a65c6764f7ed9024e6d1b9d | app/assets/javascripts/components/chat_typing_label.js.jsx | app/assets/javascripts/components/chat_typing_label.js.jsx |
(function(){
var ChatTypingLabel = React.createClass({
propTypes: {
usernames: React.PropTypes.array
},
render: function() {
return <div>
<span className="text-small gray-2">{this.message()}</span>
</div>
},
message: function() {
var len = this.props.usernames.l... |
(function(){
var ChatTypingLabel = React.createClass({
propTypes: {
usernames: React.PropTypes.array
},
render: function() {
return <div>
<span className="text-small gray-2">{this.message()}</span>
</div>
},
message: function() {
var len = this.props.usernames.l... | Use triple equals for comparing numbers | Use triple equals for comparing numbers
| JSX | agpl-3.0 | lachlanjc/meta,assemblymade/meta,lachlanjc/meta,lachlanjc/meta,lachlanjc/meta,assemblymade/meta,assemblymade/meta,assemblymade/meta | ---
+++
@@ -14,9 +14,9 @@
message: function() {
var len = this.props.usernames.length
- if (len == 1) {
+ if (len === 1) {
return <span><strong>{this.props.usernames[0]}</strong> is typing</span>
- } else if (len == 2) {
+ } else if (len === 2) {
return <span>
... |
61aa443888a695559c8ec8a5e0d63b48a5917a88 | app/scripts/views/login.jsx | app/scripts/views/login.jsx | import React from 'react';
import auth from '../authentication/auth.js';
export default class Login extends React.Component {
constructor(props) {
super(props);
this.state = {
error: false
};
}
componentDidMount() {
this.refs.username.focus();
}
handle... | import React from 'react';
import auth from '../authentication/auth.js';
export default class Login extends React.Component {
constructor(props) {
super(props);
this.state = {
error: false
};
}
handleSubmit(event) {
event.preventDefault();
const user =... | Remove autofocus and add tabindex | Remove autofocus and add tabindex
| JSX | mit | benct/tomlin-web,benct/tomlin-web | ---
+++
@@ -8,10 +8,6 @@
this.state = {
error: false
};
- }
-
- componentDidMount() {
- this.refs.username.focus();
}
handleSubmit(event) {
@@ -36,11 +32,11 @@
render() {
return (
- <form ref="form" onSubmit={this.handleSubmit.bind(thi... |
966f65306c4817289b4edfc46b5aed56389ba377 | app/assets/javascripts/components/news_feed/news_feed_item_post.js.jsx | app/assets/javascripts/components/news_feed/news_feed_item_post.js.jsx | var Markdown = require('../markdown.js.jsx');
var NewsFeedItemModalMixin = require('../../mixins/news_feed_item_modal_mixin');
module.exports = React.createClass({
displayName: 'NewsFeedItemPost',
propTypes: {
title: React.PropTypes.string.isRequired,
body: React.PropTypes.string.isRequired,
url: Reac... | var Markdown = require('../markdown.js.jsx');
var NewsFeedItemModalMixin = require('../../mixins/news_feed_item_modal_mixin');
module.exports = React.createClass({
displayName: 'NewsFeedItemPost',
propTypes: {
title: React.PropTypes.string.isRequired,
body: React.PropTypes.string.isRequired,
url: Reac... | Fix font sizes on posts | Fix font sizes on posts
| JSX | agpl-3.0 | assemblymade/meta,assemblymade/meta,lachlanjc/meta,lachlanjc/meta,assemblymade/meta,assemblymade/meta,lachlanjc/meta,lachlanjc/meta | ---
+++
@@ -16,11 +16,11 @@
var target = this.props.target;
return (
- <a className="h3 block mt0 mb3" href={this.props.url} onClick={this.handleClick}>
+ <a className="block mt0 mb3" href={this.props.url} onClick={this.handleClick}>
<div className="p3">
- {this.props.title}
+ ... |
aa1b6697ecccc690b3d5b4773b82d5cb22bc3689 | src/components/Footer.jsx | src/components/Footer.jsx | import React from 'react'
import Paper from 'material-ui/Paper'
const style = {
fontFamily: "'Roboto', sans-serif",
fontSize: '0.75em',
textAlign: 'center'
}
export default function Footer () {
return <footer style={style}><Paper zDepth={0}>
<p>
Copyright © 2017 <a href='https://github.com/KSXGitHub... | import React from 'react'
import Paper from 'material-ui/Paper'
const style = {
fontFamily: "'Roboto', sans-serif",
fontSize: '0.75em',
textAlign: 'center'
}
export default function Footer () {
return <footer style={style}><Paper zDepth={0}>
<section>
Copyright © 2017 <a href='https://github.com/KSX... | Use section to avoid white gaps | Use section to avoid white gaps
| JSX | mit | KSXGitHub/react-hello-world,KSXGitHub/react-hello-world,KSXGitHub/react-hello-world | ---
+++
@@ -9,10 +9,10 @@
export default function Footer () {
return <footer style={style}><Paper zDepth={0}>
- <p>
+ <section>
Copyright © 2017 <a href='https://github.com/KSXGitHub'>Hoàng Văn Khải</a>
<br />
All rights reserved.
- </p>
+ </section>
</Paper></footer>
} |
22f019a17e63b3af13f3a3d41be055fb10c46363 | client/app/components/UseCaseDialog.jsx | client/app/components/UseCaseDialog.jsx | /** @jsx h */
import { h } from 'preact'
import { translate } from '../plugins/preact-polyglot'
import { withRouter } from 'react-router'
const CloseButton = withRouter(({ router }) => (
<button role='close' onClick={router.goBack}>Close</button>
))
const UseCaseDialog = ({ t, item }) => (
<div role='dialog'>
... | /** @jsx h */
import { h } from 'preact'
import { translate } from '../plugins/preact-polyglot'
import { withRouter } from 'react-router'
import AccountItem from './AccountItem'
const CloseButton = withRouter(({ router }) => (
<button role='close' onClick={router.goBack}>Close</button>
))
const UseCaseDialog = ({ t... | Add use case dialog main content | [feat] Add use case dialog main content
| JSX | agpl-3.0 | nono/konnectors,poupotte/konnectors,nono/konnectors,clochix/konnectors,clochix/konnectors,poupotte/konnectors,cozy-labs/konnectors,cozy-labs/konnectors,cozy-labs/konnectors,clochix/konnectors,nono/konnectors,poupotte/konnectors | ---
+++
@@ -2,23 +2,37 @@
import { h } from 'preact'
import { translate } from '../plugins/preact-polyglot'
import { withRouter } from 'react-router'
+import AccountItem from './AccountItem'
const CloseButton = withRouter(({ router }) => (
<button role='close' onClick={router.goBack}>Close</button>
))
-co... |
bb6ab380bd07939dff64464542b9fa394cea7edf | src/components/post-attachment-image.jsx | src/components/post-attachment-image.jsx | import React from 'react';
import numeral from 'numeral';
export default (props) => {
const formattedFileSize = numeral(props.fileSize).format('0.[0] b');
const formattedImageSize = (props.imageSizes.o ? `, ${props.imageSizes.o.w}×${props.imageSizes.o.h}px` : '');
const nameAndSize = props.fileName + ' (' + form... | import React from 'react';
import numeral from 'numeral';
export default (props) => {
const formattedFileSize = numeral(props.fileSize).format('0.[0] b');
const formattedImageSize = (props.imageSizes.o ? `, ${props.imageSizes.o.w}×${props.imageSizes.o.h}px` : '');
const nameAndSize = props.fileName + ' (' + form... | Add "srcset" with Retina-ready thumbnail | [retina-thumbnails] Add "srcset" with Retina-ready thumbnail
| JSX | mit | clbn/freefeed-gamma,clbn/freefeed-gamma,clbn/freefeed-gamma | ---
+++
@@ -8,8 +8,14 @@
const removeAttachment = () => props.removeAttachment(props.id);
+ let srcSet;
+ if (props.imageSizes.t2 && props.imageSizes.t2.url) {
+ srcSet = props.imageSizes.t2.url + ' 2x';
+ }
+
const imageAttributes = {
src: props.imageSizes.t && props.imageSizes.t.url || props.th... |
6ed9edb26bb13ddeb3f2b8e8a01b38ace7837370 | dist/js/toolbar-group.jsx | dist/js/toolbar-group.jsx | /**
* @jsx React.DOM
*/
var React = require('react'),
mui = require('mui'),
Classable = require('./mixins/classable.js');
var ToolbarGroup = React.createClass({
propTypes: {
key: React.PropTypes.number.isRequired,
float: React.PropTypes.string,
groupItems: React.PropTypes.array
},
mixins... | /**
* @jsx React.DOM
*/
var React = require('react'),
Classable = require('./mixins/classable.js');
var ToolbarGroup = React.createClass({
propTypes: {
key: React.PropTypes.number.isRequired,
float: React.PropTypes.string,
groupItems: React.PropTypes.array
},
mixins: [Classable],
getIniti... | Update to latest mui components | Update to latest mui components
| JSX | mit | tan-jerene/material-ui,alex-dixon/material-ui,mui-org/material-ui,oliverfencott/material-ui,milworm/material-ui,baiyanghese/material-ui,marwein/material-ui,b4456609/pet-new,lgollut/material-ui,pancho111203/material-ui,sanemat/material-ui,hybrisCole/material-ui,shadowhunter2/material-ui,zuren/material-ui,XiaonuoGantan/m... | ---
+++
@@ -3,7 +3,6 @@
*/
var React = require('react'),
- mui = require('mui'),
Classable = require('./mixins/classable.js');
var ToolbarGroup = React.createClass({ |
8d8f409aa16dac2109547b7fa5d5db2eefd8d40d | web/static/js/components/lower_third.jsx | web/static/js/components/lower_third.jsx | import React from "react"
import IdeaGenerationLowerThirdContent from "./idea_generation_lower_third_content"
import VotingLowerThirdContent from "./voting_lower_third_content"
import LowerThirdAnimationWrapper from "./lower_third_animation_wrapper"
import stageConfigs from "../configs/stage_configs"
import * as AppP... | import React from "react"
import IdeaGenerationLowerThirdContent from "./idea_generation_lower_third_content"
import VotingLowerThirdContent from "./voting_lower_third_content"
import LowerThirdAnimationWrapper from "./lower_third_animation_wrapper"
import stageConfigs from "../configs/stage_configs"
import * as AppP... | Remove default prop value for currentUser in LowerThird | Remove default prop value for currentUser in LowerThird
- this default has been set in a component at the top of the heirarchy
| JSX | mit | stride-nyc/remote_retro,stride-nyc/remote_retro,stride-nyc/remote_retro | ---
+++
@@ -29,12 +29,8 @@
)
}
-LowerThird.defaultProps = {
- currentUser: { is_facilitator: false },
-}
-
LowerThird.propTypes = {
- currentUser: AppPropTypes.presence,
+ currentUser: AppPropTypes.presence.isRequired,
ideas: AppPropTypes.ideas.isRequired,
retroChannel: AppPropTypes.retroChannel.isReq... |
7ed1697a3de05225bfa2bed2501401d894a01e5e | src/Datamap.jsx | src/Datamap.jsx | import React from 'react';
import Datamap from 'datamaps';
export default React.createClass({
displayName: 'Datamap',
propTypes: {
height: React.PropTypes.number,
scope: React.PropTypes.oneOf(['usa', 'world']),
width: React.PropTypes.number
},
getDefaultProps() {
return {
height: 300,
scope: 'worl... | import React from 'react';
import Datamap from 'datamaps';
export default React.createClass({
displayName: 'Datamap',
propTypes: {
arc: React.PropTypes.array,
arcOptions: React.PropTypes.object,
bubbles: React.PropTypes.array,
bubblesOptions: React.PropTypes.object,
graticule: React.PropTypes.bool,
lab... | Support arcs, bubbles, graticule, and labels | Support arcs, bubbles, graticule, and labels
| JSX | mit | btmills/react-datamaps | ---
+++
@@ -6,17 +6,12 @@
displayName: 'Datamap',
propTypes: {
- height: React.PropTypes.number,
- scope: React.PropTypes.oneOf(['usa', 'world']),
- width: React.PropTypes.number
- },
-
- getDefaultProps() {
- return {
- height: 300,
- scope: 'world',
- width: 500
- };
+ arc: React.PropTypes.array,
... |
e6e460f00d93b42a979d5480e59a7b6a9cc845f4 | app/javascript/app/components/circular-chart/circular-chart-component.jsx | app/javascript/app/components/circular-chart/circular-chart-component.jsx | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import styles from './circular-chart-styles.scss';
class CircularChart extends PureComponent {
// eslint-disable-line react/prefer-stateless-function
render() {
const { value } = this.props;
return (
<div className={sty... | import React from 'react';
import PropTypes from 'prop-types';
import { COUNTRY_COMPARE_COLORS } from 'data/constants';
import styles from './circular-chart-styles.scss';
const radius = index => (100 + index * 20) / (3.14159 * 2); // eslint-disable-line no-mixed-operators
const diameter = index => radius(index) * 2;
c... | Change path for circle on circular chart | Change path for circle on circular chart
| JSX | mit | Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch | ---
+++
@@ -1,34 +1,40 @@
-import React, { PureComponent } from 'react';
+import React from 'react';
import PropTypes from 'prop-types';
+import { COUNTRY_COMPARE_COLORS } from 'data/constants';
import styles from './circular-chart-styles.scss';
-class CircularChart extends PureComponent {
- // eslint-disable-li... |
00df8fc5f9514b64f23571ab3de1753eaad76de3 | web-server/app/assets/javascripts/components/updates/updates-component.jsx | web-server/app/assets/javascripts/components/updates/updates-component.jsx | define(function(require) {
var React = require('react'),
Router = require('react-router'),
Fluxbone = require('../../mixins/fluxbone'),
SotaDispatcher = require('sota-dispatcher');
var Updates = React.createClass({
mixins: [
Fluxbone.Mixin("Store", "sync")
],
componentDidMount:... | define(function(require) {
var React = require('react'),
Router = require('react-router'),
Fluxbone = require('../../mixins/fluxbone'),
SotaDispatcher = require('sota-dispatcher');
var Updates = React.createClass({
mixins: [
Fluxbone.Mixin("Store", "sync")
],
componentDidMount:... | Refactor updates to use a table | Refactor updates to use a table
| JSX | mpl-2.0 | PDXostc/rvi_sota_server,PDXostc/rvi_sota_server,PDXostc/rvi_sota_server | ---
+++
@@ -13,24 +13,73 @@
this.props.Store.fetch();
},
render: function() {
- var updates = this.props.Store.models.map(function(update) {
+ var rows = this.props.Store.models.map(function(update) {
return (
- <Router.Link to='update' params={{id: update.get('id'), Model... |
de635db62c02ce4785373b3f4a076c3d1059420b | packages/lesswrong/components/alignment-forum/AlignmentForumHome.jsx | packages/lesswrong/components/alignment-forum/AlignmentForumHome.jsx | import { Components, registerComponent, withCurrentUser } from 'meteor/vulcan:core';
import React from 'react';
import { Link } from 'react-router';
import Users from "meteor/vulcan:users";
const AlignmentForumHome = ({currentUser}) => {
let recentPostsTerms = {view: 'new', limit: 10, af: true, forum: true}
const... | import { Components, registerComponent, withCurrentUser } from 'meteor/vulcan:core';
import React from 'react';
import { Link } from 'react-router';
import Users from "meteor/vulcan:users";
const AlignmentForumHome = ({currentUser}) => {
let recentPostsTerms = {view: 'new', limit: 10, af: true, forum: true}
const... | Change AI Alignment Forum title | Change AI Alignment Forum title
| JSX | mit | Discordius/Lesswrong2,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Telescope,Discordius/Telescope,Discordius/Lesswrong2,Discordius/Telescope,Discordius/Lesswrong2 | ---
+++
@@ -18,7 +18,7 @@
return (
<div className="alignment-forum-home">
- <Components.Section title="Alignment Posts"
+ <Components.Section title="AI Alignment Posts"
titleComponent={renderRecentPostsTitle()}>
<Components.PostsList terms={recentPostsTerms} showHeader={false} />... |
c3260902ee84b0fc7f05cf671d157d108498e055 | imports/ui/measure-view/measure-editor/expressions/expressions.jsx | imports/ui/measure-view/measure-editor/expressions/expressions.jsx | import React, { PropTypes } from 'react';
import { Button, ButtonToolbar } from 'react-bootstrap';
import attribute from './attribute.jsx';
import measure from './measure.jsx';
import operator from './operator.jsx';
import func from './func.jsx';
import openingBracket from './opening-bracket.jsx';
import closingBracket... | import React, { PropTypes } from 'react';
import { Button, ButtonToolbar } from 'react-bootstrap';
import attribute from './attribute.jsx';
import measure from './measure.jsx';
import operator from './operator.jsx';
import func from './func.jsx';
import openingBracket from './opening-bracket.jsx';
import closingBracket... | Decrease padding of expression buttons | Decrease padding of expression buttons
| JSX | mit | minden/data-furnace,minden/data-furnace | ---
+++
@@ -31,6 +31,8 @@
const buttonStyle = {
border: 'none',
+ paddingLeft: '6px',
+ paddingRight: '6px',
};
Expressions.propTypes = { |
46b41cd9d5066434156c14eb2278456e24688996 | lib/src/utils/MuiPickersUtilsProvider.jsx | lib/src/utils/MuiPickersUtilsProvider.jsx | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
const { Consumer, Provider } = React.createContext();
export const MuiPickersContextConsumer = Consumer;
export default class MuiPickersUtilsProvider extends PureComponent {
static propTypes = {
/* eslint-disable react/no-unused-p... | import React, { Component } from 'react';
import PropTypes from 'prop-types';
const { Consumer, Provider } = React.createContext();
export const MuiPickersContextConsumer = Consumer;
export default class MuiPickersUtilsProvider extends Component {
static propTypes = {
/* eslint-disable react/no-unused-prop-type... | Make MuiPickerUtilsProvider component to make it works with Router HOC | Make MuiPickerUtilsProvider component to make it works with Router HOC
| JSX | mit | callemall/material-ui,mui-org/material-ui,oliviertassinari/material-ui,dmtrKovalenko/material-ui-pickers,oliviertassinari/material-ui,rscnt/material-ui,callemall/material-ui,callemall/material-ui,oliviertassinari/material-ui,dmtrKovalenko/material-ui-pickers,rscnt/material-ui,mbrookes/material-ui,mbrookes/material-ui,m... | ---
+++
@@ -1,10 +1,10 @@
-import React, { PureComponent } from 'react';
+import React, { Component } from 'react';
import PropTypes from 'prop-types';
const { Consumer, Provider } = React.createContext();
export const MuiPickersContextConsumer = Consumer;
-export default class MuiPickersUtilsProvider extends ... |
fbc1d1bff4896fe7b30c5b860eb7ebac8a3474eb | components/PageNotFound.jsx | components/PageNotFound.jsx | import React from 'react';
function PageNotFound(props) {
return (
<p>
Page not found - the path did not match any react-router routes.
</p>
);
}
export default PageNotFound;
| import React from 'react';
function PageNotFound({ location }) {
return (
<p>
Page not found - the path, {location.pathname}, did not match any
React Router routes.
</p>
);
}
export default PageNotFound;
| Add pathname to page not found | Add pathname to page not found
| JSX | mit | rafrex/react-github-pages,ambershen/ambershen.github.io,ambershen/ambershen.github.io,rafrex/react-github-pages | ---
+++
@@ -1,9 +1,10 @@
import React from 'react';
-function PageNotFound(props) {
+function PageNotFound({ location }) {
return (
<p>
- Page not found - the path did not match any react-router routes.
+ Page not found - the path, {location.pathname}, did not match any
+ React Router routes... |
31f0114ae7e1abea1e284b453e3e09ee040bc4a0 | examples/painter/app/views/row.jsx | examples/painter/app/views/row.jsx | import React from 'react'
import withIntent from '../../../../src/addons/with-intent'
const Cell = function ({ x, y, active, onClick }) {
const color = active ? 'black' : 'white'
return (
<rect x={x} y={y} onClick={onClick} fill={color} width="1" height="1"/>
)
}
export default withIntent(function Row ({ c... | import React from 'react'
import withIntent from '../../../../src/addons/with-intent'
function Cell ({ x, y, active, onClick }) {
const color = active ? 'black' : 'white'
return (
<rect x={x} y={y} onClick={onClick} fill={color} width="1" height="1"/>
)
}
export default withIntent(function Row ({ cells, y,... | Revert Cell assignment to function name | Revert Cell assignment to function name
| JSX | mit | vigetlabs/microcosm,leobauza/microcosm,leobauza/microcosm,vigetlabs/microcosm,leobauza/microcosm,vigetlabs/microcosm | ---
+++
@@ -1,7 +1,7 @@
import React from 'react'
import withIntent from '../../../../src/addons/with-intent'
-const Cell = function ({ x, y, active, onClick }) {
+function Cell ({ x, y, active, onClick }) {
const color = active ? 'black' : 'white'
return ( |
e07717e6cd875a0234c70ed8f7b2ee822728e2dd | src/request/components/request-view.jsx | src/request/components/request-view.jsx | var React = require('react'),
User = require('./request-user-view.jsx'),
Filter = require('./request-filter-view.jsx'),
Entry = require('./request-entry-view.jsx');
module.exports = React.createClass({
render: function() {
return (
<div className="container-fluid">
<div className=... | var React = require('react'),
User = require('./request-user-view.jsx'),
Filter = require('./request-filter-view.jsx'),
Entry = require('./request-entry-view.jsx');
module.exports = React.createClass({
render: function() {
return (
<div className="container-fluid">
<div className=... | Fix sizing of filter column vs request column | Fix sizing of filter column vs request column
| JSX | unknown | avanderhoorn/Glimpse.Client.Prototype,Glimpse/Glimpse.Client.Prototype,avanderhoorn/Glimpse.Client.Prototype,Glimpse/Glimpse.Client.Prototype,Glimpse/Glimpse.Client.Prototype | ---
+++
@@ -11,10 +11,10 @@
<div className="col-md-2 request-user-holder-outer">
<User />
</div>
- <div className="col-md-7 request-entry-holder-outer">
+ <div className="col-md-8 request-entry-holder-outer">
<En... |
52808f0c63ba631602fda266017e292f76f580c0 | app/src/components/filterEntities/containers/filterEntitiesURLContainer.jsx | app/src/components/filterEntities/containers/filterEntitiesURLContainer.jsx | import { Component } from 'react';
import PropTypes from 'prop-types';
import isEqual from 'fast-deep-equal';
import { connectRouter, debounce } from 'common/utils';
import { collectFilterEntities, createFilterQuery } from './utils';
@connectRouter(
(query) => ({
entities: collectFilterEntities(query),
}),
{... | import { Component } from 'react';
import PropTypes from 'prop-types';
import isEqual from 'fast-deep-equal';
import { connectRouter, debounce } from 'common/utils';
import { defaultPaginationSelector, PAGE_KEY } from 'controllers/pagination';
import { collectFilterEntities, createFilterQuery } from './utils';
@connec... | Reset page filter to 1, on entities filter submit | EPMRPP-38320: Reset page filter to 1, on entities filter submit
| JSX | apache-2.0 | reportportal/service-ui,reportportal/service-ui,reportportal/service-ui | ---
+++
@@ -2,14 +2,16 @@
import PropTypes from 'prop-types';
import isEqual from 'fast-deep-equal';
import { connectRouter, debounce } from 'common/utils';
+import { defaultPaginationSelector, PAGE_KEY } from 'controllers/pagination';
import { collectFilterEntities, createFilterQuery } from './utils';
@connec... |
8c70a78c65711f6640b0a1430959c9dda43180d2 | src/renderer/components/footer.jsx | src/renderer/components/footer.jsx | import React, { PropTypes } from 'react';
import shell from 'shell';
import UpdateChecker from './update-checker.jsx';
const STYLE = {
footer: { minHeight: 'auto' },
status: { paddingLeft: '0.5em' },
};
function onGithubClick(event) {
event.preventDefault();
shell.openExternal('https://github.com/sqlectron/... | import React, { PropTypes } from 'react';
import shell from 'shell';
import UpdateChecker from './update-checker.jsx';
const STYLE = {
footer: { minHeight: 'auto' },
status: { paddingLeft: '0.5em' },
};
function onGithubClick(event) {
event.preventDefault();
shell.openExternal('https://github.com/sqlectron/... | Replace keyboard shortcut label with an icon | Replace keyboard shortcut label with an icon
It is much more beautiful with an icon :)
| JSX | mit | sqlectron/sqlectron-gui,sqlectron/sqlectron-gui,sqlectron/sqlectron-gui,sqlectron/sqlectron-gui | ---
+++
@@ -28,8 +28,10 @@
<div className="item">
<UpdateChecker />
</div>
- <a href="#" className="item" onClick={onShortcutsClick}>Keyboard Shortcuts</a>
<a href="#" className="item" onClick={onGithubClick}>Github</a>
+ <a href="#" className="item" title="Keyboard... |
c9afdf510cd6a755482729d658651046e1b3cc52 | js/auth.jsx | js/auth.jsx | export const Auth = {
login(email, pass, cb) {
cb = arguments[arguments.length - 1]
if (localStorage.token) {
if (cb) {
cb(true);
this.onChange(true);
return
}
}
pretendRequest(email, pass, (res) => {
if (res.authenticated) {
localStorage.token = res.t... | export const Auth = {
login(email, pass, cb) {
cb = arguments[arguments.length - 1]
if (localStorage.token) {
if (cb) {
cb(true);
this.onChange(true);
return
}
}
pretendRequest(email, pass, (res) => {
if (res.authenticated) {
localStorage.token = res.t... | Add email in localStorage on login, and getEmail() helper function | Add email in localStorage on login, and getEmail() helper function
| JSX | bsd-3-clause | codeignition/muzzle,codeignition/muzzle | ---
+++
@@ -11,6 +11,7 @@
pretendRequest(email, pass, (res) => {
if (res.authenticated) {
localStorage.token = res.token
+ localStorage.email = email
if (cb) {
cb(true);
this.onChange(true);
@@ -26,6 +27,10 @@
getToken() {
return localStorage.token
... |
f7e602b62e54b2d0027b419a0af51a1f0c8628f4 | src/ext/aws/components/Instances.jsx | src/ext/aws/components/Instances.jsx | var React = require('react');
var Reflux = require('reflux');
var _ = require('lodash');
var ApiConsumerMixin = require('./../../../core/mixins/ApiConsumerMixin');
var Instances = React.createClass({
mixins: [
Reflux.ListenerMixin,
ApiConsumerMixin
],
ge... | var React = require('react');
var Reflux = require('reflux');
var _ = require('lodash');
var ApiConsumerMixin = require('./../../../core/mixins/ApiConsumerMixin');
var Instances = React.createClass({
mixins: [
Reflux.ListenerMixin,
ApiConsumerMixin
],
ge... | Add ability to filter AWS instances on their name on AWS instances widget | Add ability to filter AWS instances on their name on AWS instances widget
| JSX | mit | danielw92/mozaik,tlenclos/mozaik,backjo/mozaikdummyfork,michaelchiche/mozaik,codeaudit/mozaik,juhamust/mozaik,codeaudit/mozaik,danielw92/mozaik,beni55/mozaik,michaelchiche/mozaik,backjo/mozaikdummyfork,plouc/mozaik,tlenclos/mozaik,plouc/mozaik,beni55/mozaik,juhamust/mozaik | ---
+++
@@ -22,6 +22,11 @@
},
onApiData(instances) {
+ // if we have an available filter on instance name, apply it
+ if (this.props.nameFilter) {
+ instances = _.where(instances, instance => this.props.nameFilter.test(instance.name));
+ }
+
this.setState({
... |
d594dfa20c027ed4f62d3075452c8971a6438d6e | src/FacebookLoading.jsx | src/FacebookLoading.jsx | import React, { PropTypes } from 'react';
import styles from './FacebookLoading.styl';
const FacebookLoading = (props) => {
let { style, duration, zoom } = props;
if (typeof duration === 'number') {
duration += 's';
}
return (
<div
className={styles.loading}
st... | import React, { PropTypes } from 'react';
import styles from './FacebookLoading.styl';
const FacebookLoading = (props) => {
let { style, duration, zoom } = props;
if (typeof duration === 'number') {
duration += 's';
}
return (
<div
className={styles.loading}
st... | Fix a bug of invalid prop types | Fix a bug of invalid prop types
| JSX | mit | cheton/react-facebook-loading | ---
+++
@@ -24,7 +24,7 @@
};
FacebookLoading.propTypes = {
- duration: PropTypes.oneOf([
+ duration: PropTypes.oneOfType([
PropTypes.number,
PropTypes.string
]), |
5deb9de889cc9f5a763e08c61d8a9a76e4118280 | app/javascript/lca/components/pages/welcomePage.jsx | app/javascript/lca/components/pages/welcomePage.jsx | import React from 'react'
export default function WelcomePage() {
return(<div className="welcomePage">
<h1>Lot-Casting Atemi</h1>
<p>
<strong>Type:</strong> Reflexive,
<strong> Cost:</strong> 15m, 1wp
</p>
<p>
The Solar Exalted have achieved such heights of skill that even their
... | import React from 'react'
export default function WelcomePage() {
return(<div className="welcomePage">
<h1>Lot-Casting Atemi</h1>
<p>
<strong>Cost:</strong> 15m, 1wp, <strong>Mins:</strong> Essence 2<br />
<strong>Type:</strong> Simple<br />
<strong>Keywords:</strong> None<br />
<stro... | Fix up Charm text on welcome page | Fix up Charm text on welcome page
| JSX | agpl-3.0 | makzu/lotcastingatemi,makzu/lotcastingatemi,makzu/lotcastingatemi,makzu/lotcastingatemi,makzu/lotcastingatemi | ---
+++
@@ -4,8 +4,10 @@
return(<div className="welcomePage">
<h1>Lot-Casting Atemi</h1>
<p>
- <strong>Type:</strong> Reflexive,
- <strong> Cost:</strong> 15m, 1wp
+ <strong>Cost:</strong> 15m, 1wp, <strong>Mins:</strong> Essence 2<br />
+ <strong>Type:</strong> Simple<br />
+ <s... |
cc5717720bb9d34af87353e390ecd6305aba6ffa | src/drive/web/modules/upload/UploadButton.jsx | src/drive/web/modules/upload/UploadButton.jsx | import React from 'react'
import { Icon } from 'cozy-ui/react'
const styles = {
parent: {
position: 'relative',
width: '100%',
boxSizing: 'border-box'
},
input: {
position: 'absolute',
top: 0,
left: 0,
opacity: 0,
width: '100%',
height: '100%',
zIndex: 1,
cursor: 'poin... | import React from 'react'
import { Icon } from 'cozy-ui/react'
const styles = {
parent: {
position: 'relative',
overflow: 'hidden'
},
input: {
position: 'absolute',
top: 0,
left: 0,
opacity: 0,
width: '100%',
height: '100%',
zIndex: 1
}
}
const UploadButton = ({ label, disa... | Revert "Fix. Upload Item has the right size and svg icon is aligned" | Revert "Fix. Upload Item has the right size and svg icon is aligned"
This reverts commit ded9138999e0d1d9fa4a8dddf982f116b5ba0c11 as this is not needed anymore and buggy as well
| JSX | agpl-3.0 | cozy/cozy-files-v3,y-lohse/cozy-drive,nono/cozy-files-v3,y-lohse/cozy-drive,y-lohse/cozy-drive,nono/cozy-files-v3,y-lohse/cozy-drive,cozy/cozy-files-v3,cozy/cozy-files-v3,y-lohse/cozy-files-v3,nono/cozy-files-v3,y-lohse/cozy-files-v3,y-lohse/cozy-files-v3,nono/cozy-files-v3,cozy/cozy-files-v3 | ---
+++
@@ -4,8 +4,7 @@
const styles = {
parent: {
position: 'relative',
- width: '100%',
- boxSizing: 'border-box'
+ overflow: 'hidden'
},
input: {
position: 'absolute',
@@ -14,8 +13,7 @@
opacity: 0,
width: '100%',
height: '100%',
- zIndex: 1,
- cursor: 'pointer'
+ ... |
6e43f520a6e40feedc98213b436dafd07bb9b77a | src/index.dev.jsx | src/index.dev.jsx | import React from 'react';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import App from './app-factory.js';
ReactDOM.render(<AppContainer><App /></AppContainer>,
document.getElementById('root'));
module.hot.accept('./app-factory.js', () => {
// eslint-disable-n... | import React from 'react';
import ReactDOM from 'react-dom';
// eslint-disable-next-line import/no-extraneous-dependencies
import { AppContainer } from 'react-hot-loader';
import App from './app-factory.js';
ReactDOM.render(<AppContainer><App /></AppContainer>,
document.getElementById('root'));
modul... | Exclude react-hot-loader from no-extraneous-dependencies lint rule | Exclude react-hot-loader from no-extraneous-dependencies lint rule
It's only used in index.dev.jsx.
| JSX | mit | NiGhTTraX/react-test-buffet,NiGhTTraX/react-test-buffet,NiGhTTraX/react-test-buffet | ---
+++
@@ -1,5 +1,6 @@
import React from 'react';
import ReactDOM from 'react-dom';
+// eslint-disable-next-line import/no-extraneous-dependencies
import { AppContainer } from 'react-hot-loader';
import App from './app-factory.js';
|
1260cb2af08154bb864e57fcf463fc721afd52f9 | client/packages/bulma-dashboard-theme-worona/src/dashboard/elements/RootContainer/index.jsx | client/packages/bulma-dashboard-theme-worona/src/dashboard/elements/RootContainer/index.jsx | import React from 'react';
import { connect } from 'react-redux';
import { capitalize } from 'lodash';
import Helmet from 'react-helmet';
import AsideMenu from '../AsideMenu';
import MobilePreview from '../MobilePreview';
import * as deps from '../../deps';
const RootContainer = ({ children, mobilePreview, packageNice... | import React from 'react';
import { connect } from 'react-redux';
import { capitalize } from 'lodash';
import Helmet from 'react-helmet';
import AsideMenu from '../AsideMenu';
import MobilePreview from '../MobilePreview';
import * as deps from '../../deps';
const RootContainer = ({ children, mobilePreview, packageNice... | Remove bulma content from root class. | Remove bulma content from root class.
| JSX | mit | worona/worona,worona/worona,worona/worona-core,worona/worona-core,worona/worona-dashboard,worona/worona-dashboard,worona/worona | ---
+++
@@ -10,7 +10,7 @@
<div className="columns is-mobile" >
<Helmet title={`Worona Dashboard - ${capitalize(service)} - ${packageNiceName}`} />
<AsideMenu />
- <div className="column content">
+ <div className="column">
{children}
</div>
{mobilePreview && <MobilePreview />} |
4675ab51ca87948621bd49aa4e0e74602ae3eef3 | src/components/Konnector.jsx | src/components/Konnector.jsx | import React, { Component } from 'react'
import { connect } from 'react-redux'
import { withRouter } from 'react-router-dom'
import flow from 'lodash/flow'
import { Routes as HarvestRoutes } from 'cozy-harvest-lib'
import { getKonnector } from 'ducks/konnectors'
import { getTriggersByKonnector } from 'reducers'
impor... | import React, { Component } from 'react'
import { connect } from 'react-redux'
import { withRouter } from 'react-router-dom'
import flow from 'lodash/flow'
import { Routes as HarvestRoutes } from 'cozy-harvest-lib'
import { getKonnector } from 'ducks/konnectors'
import { getTriggersByKonnector } from 'reducers'
impor... | Use import from cozy-client root | refactor: Use import from cozy-client root
| JSX | agpl-3.0 | cozy/cozy-home,cozy/cozy-home,cozy/cozy-home | ---
+++
@@ -7,13 +7,12 @@
import { getKonnector } from 'ducks/konnectors'
import { getTriggersByKonnector } from 'reducers'
-import { withClient } from 'cozy-client/dist/hoc'
+import { withClient } from 'cozy-client'
class Konnector extends Component {
render() {
const { konnector, history, triggers } ... |
01d9ca9d752d0b4cfa0495246464e0d44510b11e | client/src/components/Nav.jsx | client/src/components/Nav.jsx | import React from 'react';
class Nav extends React.Component {
constructor(props) {
super(props);
this.state = {
};
}
render() {
return (
<div>
<button id="my-shopping-list">My Shopping List</button>
<button id="house-inventory">House Inventory</button>
</div>
... | import React from 'react';
import { Link } from 'react-router-dom';
const Nav = (props) => {
return (
<div>
<button id="my-shopping-list"><Link to={'/shop'}>My Shopping List</Link></button>
<button id="house-inventory"><Link to={'/inventory'}>House Inventory</Link></button>
</div>
);
};
export... | Add redirect functionality to /shop and /inventory | Add redirect functionality to /shop and /inventory
| JSX | mit | SentinelsOfMagic/SentinelsOfMagic | ---
+++
@@ -1,24 +1,13 @@
import React from 'react';
+import { Link } from 'react-router-dom';
-class Nav extends React.Component {
- constructor(props) {
- super(props);
-
- this.state = {
-
- };
- }
-
-
-
- render() {
- return (
- <div>
- <button id="my-shopping-list">My Shopping List<... |
cb61719d55b5a78b7f694ab946925bd7c2426358 | app/pages/admin/user-settings/properties.jsx | app/pages/admin/user-settings/properties.jsx | import React from 'react';
import AutoSave from '../../../components/auto-save';
import handleInputChange from '../../../lib/handle-input-change';
const UserProperties = (props) => {
const handleChange = handleInputChange.bind(props.user);
return (
<div>
<ul>
<li>
<input type="checkbo... | import React from 'react';
import AutoSave from '../../../components/auto-save';
import handleInputChange from '../../../lib/handle-input-change';
const UserProperties = (props) => {
const handleChange = handleInputChange.bind(props.user);
return (
<div>
<ul>
<li>
<input type="checkbo... | Fix usage of this.props after merging in master | Fix usage of this.props after merging in master
| JSX | apache-2.0 | amyrebecca/Panoptes-Front-End,zooniverse/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,jelliotartz/Panoptes-Front-End,amyrebecca/Panoptes-Front-End | ---
+++
@@ -28,8 +28,8 @@
</AutoSave>
</li>
<li>
- <AutoSave resource={this.props.user}>
- <input type="checkbox" name="banned" checked={this.props.user.banned} onChange={handleChange} />{' '}
+ <AutoSave resource={props.user}>
+ <input type="checkb... |
50035cdb5aeb61584a49ff77c84bdff41adbe146 | src/components/home-feed.jsx | src/components/home-feed.jsx | import React from 'react'
import FeedPost from './feed-post'
export default (props) => {
const feed_posts = props.feed.map(post => {
return (<FeedPost {...post}
key={post.id}
user={props.user}
showMoreComments={props.showMoreComments}
showMoreLikes={props.s... | import React from 'react'
import FeedPost from './feed-post'
export default (props) => {
const feed_posts = props.feed.map(post => {
return (<FeedPost {...post}
key={post.id}
user={props.user}
showMoreComments={props.showMoreComments}
showMoreLikes={props.s... | Add attachment to post in the feed (not just on single-post page) | Add attachment to post in the feed (not just on single-post page)
| JSX | mit | ujenjt/freefeed-react-client,davidmz/freefeed-react-client,FreeFeed/freefeed-react-client,davidmz/freefeed-react-client,clbn/freefeed-react-client,clbn/freefeed-gamma,clbn/freefeed-react-client,FreeFeed/freefeed-html-react,clbn/freefeed-gamma,clbn/freefeed-gamma,FreeFeed/freefeed-html-react,kadmil/freefeed-react-client... | ---
+++
@@ -12,6 +12,7 @@
cancelEditingPost={props.cancelEditingPost}
saveEditingPost={props.saveEditingPost}
deletePost={props.deletePost}
+ addAttachmentResponse={props.addAttachmentResponse}
toggleCommenting={props.toggleCommenting}
... |
a90d9f65538268c997845d8ac5d896e5a4f16e9a | src/components/TopBar/ProjectPicker.jsx | src/components/TopBar/ProjectPicker.jsx | import map from 'lodash/map';
import partial from 'lodash/partial';
import PropTypes from 'prop-types';
import React from 'react';
import ProjectPreview from '../../containers/ProjectPreview';
import ProjectPickerButton from './ProjectPickerButton';
import createMenu, {MenuItem} from './createMenu';
const ProjectPicke... | import map from 'lodash/map';
import partial from 'lodash/partial';
import PropTypes from 'prop-types';
import React from 'react';
import ProjectPreview from '../../containers/ProjectPreview';
import ProjectPickerButton from './ProjectPickerButton';
import createMenu, {MenuItem} from './createMenu';
const ProjectPicke... | Remove unused second argument to createMenu | Remove unused second argument to createMenu
| JSX | mit | popcodeorg/popcode,outoftime/learnpad,jwang1919/popcode,popcodeorg/popcode,jwang1919/popcode,popcodeorg/popcode,jwang1919/popcode,popcodeorg/popcode,jwang1919/popcode,outoftime/learnpad | ---
+++
@@ -24,7 +24,7 @@
</MenuItem>
));
},
-})(ProjectPickerButton, ProjectPreview);
+})(ProjectPickerButton);
ProjectPicker.propTypes = {
currentProjectKey: PropTypes.string, |
c21800ff9f4bfbd5bc18aba4375f12b46975d1ea | src/components/atoms/Img/ImgPreload.jsx | src/components/atoms/Img/ImgPreload.jsx | import React, { PureComponent } from 'react';
import { object, string } from 'prop-types';
import { Img, Loader as DefaultLoader } from 'components';
export default class PreloadImage extends PureComponent {
static propTypes = {
loader: object,
src: string.isRequired,
};
static defaultPro... | import React, { PureComponent } from 'react';
import { object, string } from 'prop-types';
import { Img, Loader as DefaultLoader } from 'components';
export default class PreloadImage extends PureComponent {
static propTypes = {
loader: object,
src: string.isRequired,
};
state = {
... | Move DefaultLoader to optional assignment in render | Move DefaultLoader to optional assignment in render
defaultProps was breaking this for some reason.
| JSX | mit | MadeInHaus/react-redux-webpack-starter,MadeInHaus/react-redux-webpack-starter,MadeInHaus/react-redux-webpack-starter | ---
+++
@@ -7,10 +7,6 @@
static propTypes = {
loader: object,
src: string.isRequired,
- };
-
- static defaultProps = {
- loader: <DefaultLoader />,
};
state = {
@@ -47,13 +43,13 @@
};
render() {
- const { loader } = this.props;
+ const { loader... |
b41ca07189f66f14e32d82eee0274385ef394c48 | app/jsx/dashboard_card/CourseActivitySummaryStore.jsx | app/jsx/dashboard_card/CourseActivitySummaryStore.jsx | define([
'react',
'underscore',
'jsx/shared/helpers/createStore',
'jquery',
'compiled/backbone-ext/DefaultUrlMixin',
'compiled/fn/parseLinkHeader',
], (React, _, createStore, $, DefaultUrlMixin) => {
var CourseActivitySummaryStore = createStore({streams: {}})
CourseActivitySummaryStore.getStateForCour... | define([
'react',
'underscore',
'jsx/shared/helpers/createStore',
'jquery',
'compiled/backbone-ext/DefaultUrlMixin',
'compiled/fn/parseLinkHeader',
], (React, _, createStore, $, DefaultUrlMixin) => {
var CourseActivitySummaryStore = createStore({streams: {}})
CourseActivitySummaryStore.getStateForCour... | Reduce unnecessary activity stream XHR fetches | Reduce unnecessary activity stream XHR fetches
On a the dashboard page for a user with multiple courses,
duplicate XHR fetches are sent. For example with 12 cards shown,
there will be 78 fetches (12+11+10...+1) rather than 12.
Since all of the DashboardCard React views share a single
CourseActivitySummaryStore, any u... | JSX | agpl-3.0 | fronteerio/canvas-lms,matematikk-mooc/canvas-lms,roxolan/canvas-lms,venturehive/canvas-lms,djbender/canvas-lms,fronteerio/canvas-lms,matematikk-mooc/canvas-lms,roxolan/canvas-lms,fronteerio/canvas-lms,HotChalk/canvas-lms,djbender/canvas-lms,djbender/canvas-lms,sfu/canvas-lms,matematikk-mooc/canvas-lms,sfu/canvas-lms,Sw... | ---
+++
@@ -15,6 +15,7 @@
if (_.has(CourseActivitySummaryStore.getState()['streams'], courseId)) {
return CourseActivitySummaryStore.getState()['streams'][courseId]
} else {
+ CourseActivitySummaryStore.getState()['streams'][courseId] = {}
CourseActivitySummaryStore._fetchForCourse(course... |
0b0be95f48b2883fbb35f29344c96169f6c12dd9 | src/client.jsx | src/client.jsx | import 'bootstrap/dist/css/bootstrap.css';
import './assets/styles/styles.css';
import {AppContainer} from 'react-hot-loader';
import React from 'react';
import ReactDOM from 'react-dom';
import RouterWrapper from './RouterWrapper';
import ProviderService from './services/ProviderService';
const initialState = {
... | import 'bootstrap/dist/css/bootstrap.css';
import './assets/styles/styles.css';
import {AppContainer as ReactHotLoader} from 'react-hot-loader';
import React from 'react';
import ReactDOM from 'react-dom';
import RouterWrapper from './RouterWrapper';
import ProviderService from './services/ProviderService';
const ini... | Rename AppContainer to ReactHotLoader. Rename render to renderApp | Rename AppContainer to ReactHotLoader. Rename render to renderApp
| JSX | mit | codeBelt/hapi-react-hot-loader-example,codeBelt/hapi-react-hot-loader-example | ---
+++
@@ -1,7 +1,7 @@
import 'bootstrap/dist/css/bootstrap.css';
import './assets/styles/styles.css';
-import {AppContainer} from 'react-hot-loader';
+import {AppContainer as ReactHotLoader} from 'react-hot-loader';
import React from 'react';
import ReactDOM from 'react-dom';
import RouterWrapper from './Rou... |
96b290923703c20868c4898ff3a81b580078bf05 | src/components/Chassis.jsx | src/components/Chassis.jsx | // react
import React from 'react';
import Navigation from './Navigation.jsx';
class Chassis extends React.Component {
render() {
return (
<div>
<Navigation />
<div className="container">
<div className="row">
{this.pr... | // react
import React from 'react';
import Navigation from './Navigation.jsx';
class Chassis extends React.Component {
render() {
return (
<div>
<Navigation />
<div className="container container--primary">
<div className="row">
... | Add unique classname to primary container | Add unique classname to primary container
| JSX | cc0-1.0 | acusti/primal-multiplication,acusti/primal-multiplication | ---
+++
@@ -8,7 +8,7 @@
<div>
<Navigation />
- <div className="container">
+ <div className="container container--primary">
<div className="row">
{this.props.children}
</div> |
71d69790b6834bffda584f6f3521b015070bc98b | src/helpers/StaticContainer.jsx | src/helpers/StaticContainer.jsx | var React = require('react');
var Component = require('../component');
module.exports = Component({
name: 'StaticContainer',
propTypes: {
children: React.PropTypes.element.isRequired
},
getDefaultProps() {
return {
update: false
};
},
shouldComponentUpdate(nextProps) {
return nextP... | var React = require('react');
var Component = require('../component');
module.exports = Component({
name: 'StaticContainer',
propTypes: {
children: React.PropTypes.element.isRequired
},
getDefaultProps() {
return {
update: false
};
},
shouldComponentUpdate(nextProps) {
return nextP... | Fix for static container, instead of using componentProps(), now using this.props for props reference. | Fix for static container, instead of using componentProps(), now using this.props for props reference.
| JSX | mit | reapp/reapp-ui | ---
+++
@@ -24,7 +24,7 @@
this.addStyles('fullscreen');
return (
- <div {...this.props}>
+ <div {...this.componentProps()} {...props}>
{this.props.children}
</div>
); |
73b18c40e8df30d2a6a2714af36a3ab366ef3293 | src/jsx/components/Footer.jsx | src/jsx/components/Footer.jsx | import React from 'react';
import Copyright from './Copyright';
export default SiteFooter(props) {
return (
<footer id="bottom" className="centered-text fine-print">
<ul className="list-inline--delimited">
<li><Copyright /></li>
<li><a href="https://github.com/vocksel/my-website">Website S... | import React from 'react';
import Copyright from './Copyright';
export default Footer(props) {
return (
<footer id="bottom" className="centered-text fine-print">
<ul className="list-inline--delimited">
<li><Copyright /></li>
<li><a href="https://github.com/vocksel/my-website">Website Sourc... | Rename to match file name | Rename to match file name
| JSX | mit | VoxelDavid/voxeldavid-website,vocksel/my-website,VoxelDavid/voxeldavid-website,vocksel/my-website | ---
+++
@@ -2,7 +2,7 @@
import Copyright from './Copyright';
-export default SiteFooter(props) {
+export default Footer(props) {
return (
<footer id="bottom" className="centered-text fine-print">
<ul className="list-inline--delimited"> |
4e5ccb6609d849e8467a1fad4a6e3ffb6bf7c229 | ClientExample.jsx | ClientExample.jsx | import Guacamole from 'guacamole-common-js';
import React from 'react';
import encrypt from './encrypt.js';
class GuacamoleStage extends React.Component {
constructor(props) {
super(props);
this.myRef = React.createRef();
this.token = encrypt({
connection: {
type: 'rdp',
settings: ... | import Guacamole from 'guacamole-common-js';
import React from 'react';
import encrypt from './encrypt.js';
class GuacamoleStage extends React.Component {
constructor(props) {
super(props);
this.myRef = React.createRef();
this.token = encrypt({
connection: {
type: 'rdp',
settings: ... | Fix typo in Client object creation | Fix typo in Client object creation | JSX | apache-2.0 | vadimpronin/guacamole-lite | ---
+++
@@ -24,7 +24,7 @@
});
this.tunnel = new Guacamole.WebSocketTunnel('ws://localhost:8080/');
- this.client = new Guacmole.Client(this.tunnel);
+ this.client = new Guacamole.Client(this.tunnel);
}
componentDidMount() { |
4424fcad2105659fef73ef078855c4c8aae0cbba | src/components/product-list/product-list.jsx | src/components/product-list/product-list.jsx | import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import Layout from 'components/layout/layout';
import CategoryHeader from 'components/category-header/category-header';
import ProductListItem from 'components/product-list-item/product-list-item';
import { getCategoryItems } from 'act... | import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import Layout from 'components/layout/layout';
import CategoryHeader from 'components/category-header/category-header';
import ProductListItem from 'components/product-list-item/product-list-item';
import { getCategoryItems } from 'act... | Fix issue with wrong margin | Fix issue with wrong margin
| JSX | mit | JutIgor/Shop-react,JutIgor/Shop-react | ---
+++
@@ -22,6 +22,7 @@
<Layout>
<CategoryHeader
category={category}
+ titleClassName='category-header__title--no-margin-bottom'
>
<span className='category-header__subtitle'>(16 items)</span>
</CategoryHeader> |
abad2d7a6a27eda930ebadc8215b3461d0bff14d | public/js/components/feature/Feature.jsx | public/js/components/feature/Feature.jsx | var React = require('react');
var FeatureForm = require('./FeatureForm');
var Feature = React.createClass({
getInitialState: function() {
return {
editMode: false
};
},
toggleEditMode: function() {
this.setState({editMode: !this.state.editMode});
},
saveFeature... | var React = require('react');
var FeatureForm = require('./FeatureForm');
var Feature = React.createClass({
getInitialState: function() {
return {
editMode: false
};
},
toggleEditMode: function() {
this.setState({editMode: !this.state.editMode});
},
saveFeature... | Support long descriptions on feature page | Support long descriptions on feature page
| JSX | apache-2.0 | finn-no/unleash,finn-no/unleash,Unleash/unleash,Unleash/unleash,Unleash/unleash,Unleash/unleash,finn-no/unleash | ---
+++
@@ -43,7 +43,7 @@
{this.props.feature.name}
</td>
- <td className='opaque smalltext truncate'>
+ <td className='opaque smalltext word-break' width="600">
{this.props.feature.description || '\u00a0'}
</t... |
41cf11074aa9902a40db6e7e9d071b4ab9cef0cd | client/src/app/main.jsx | client/src/app/main.jsx | import util from './lib/util';
import React from 'react/addons';
import injectTapEventPlugin from 'react-tap-event-plugin';
import routes from './routes.jsx';
import Router from 'react-router';
import mui from 'material-ui';
var ThemeManager = new mui.Styles.ThemeManager();
var {Colors} = mui.Styles;
//Needed for Rea... | import util from './lib/util';
import React from 'react/addons';
import injectTapEventPlugin from 'react-tap-event-plugin';
import routes from './routes.jsx';
import Router from 'react-router';
import mui from 'material-ui';
var ThemeManager = new mui.Styles.ThemeManager();
var {Colors} = mui.Styles;
//Needed for Rea... | Move paper bgcolor to blueGrey 50 | Move paper bgcolor to blueGrey 50
| JSX | agpl-3.0 | lefnire/jobpig,lefnire/jobs,lefnire/jobpig,lefnire/jobs,lefnire/jobs,lefnire/jobpig | ---
+++
@@ -20,6 +20,11 @@
ThemeManager.setPalette({
accent1Color: Colors.cyan700,
primary1Color: Colors.blueGrey500
+ })
+ ThemeManager.setComponentThemes({
+ paper: {
+ backgroundColor: Colors.blueGrey50,
+ }
});
},
getChildContext() { |
34fc45ab52f245942f8592044ea6f737dae16513 | src/components/cards/card-factory.jsx | src/components/cards/card-factory.jsx | import React from 'react';
import Card from './card';
import {connect} from 'react-redux';
import {updateEditedFlags} from './helpers';
const CardFactory = (headerUi, blockUi, options = {}) => {
const GenericCard = ({
selectionId, item, items, isFetching}) => {
return (
<Card
selectionId={selec... | import React from 'react';
import Card from './card';
import {connect} from 'react-redux';
import {updateEditedFlags, itemIsEditedWithinCard} from './helpers';
const CardFactory = (headerUi, blockUi, options = {}) => {
const GenericCard = ({
selectionId, item, items, isFetching}) => {
return (
<Card
... | Use item to pass more info to callbacks | Use item to pass more info to callbacks
All callbacks expect an item, but their impl may
require more info.
| JSX | mit | jlenoble/wupjs,jlenoble/wupjs | ---
+++
@@ -1,7 +1,7 @@
import React from 'react';
import Card from './card';
import {connect} from 'react-redux';
-import {updateEditedFlags} from './helpers';
+import {updateEditedFlags, itemIsEditedWithinCard} from './helpers';
const CardFactory = (headerUi, blockUi, options = {}) => {
const GenericCard =... |
5af0a19f407d0bf4e7b84b444efc008bde64afea | src/stories/HexagonStoryLocal.jsx | src/stories/HexagonStoryLocal.jsx | import React from 'react'
import Hexagon from '../map/layer/Hexagon'
import alces from '../../data/sample/artskart_48103.json'
import readGeoJsonPoints from '../translate/GeoJson.js'
import ramp from '../graphics/ramps/'
const viewport = {
width: 900,
height: 800,
longitude: 9,
latitude: 64,
zoom: 4,
pitch... | import React from 'react'
import Hexagon from '../map/layer/Hexagon'
import alces from '../../data/sample/artskart_48103.json'
import readGeoJsonPoints from '../translate/GeoJson.js'
import ramp from '../graphics/color/ramps/'
const viewport = {
width: 900,
height: 800,
longitude: 9,
latitude: 64,
zoom: 4,
... | Fix Can't resolve '../graphics/ramps/' in '/home/travis/build/Artsdatabanken/ecomap/src/stories' | Fix Can't resolve '../graphics/ramps/' in '/home/travis/build/Artsdatabanken/ecomap/src/stories'
| JSX | mit | Artsdatabanken/ecomap,bjornreppen/ecomap,bjornreppen/ecomap,Artsdatabanken/ecomap | ---
+++
@@ -2,7 +2,7 @@
import Hexagon from '../map/layer/Hexagon'
import alces from '../../data/sample/artskart_48103.json'
import readGeoJsonPoints from '../translate/GeoJson.js'
-import ramp from '../graphics/ramps/'
+import ramp from '../graphics/color/ramps/'
const viewport = {
width: 900, |
1971a3223c65f409d4b3afc3c1d227e24eea0e07 | woodstock/src/components/Home.jsx | woodstock/src/components/Home.jsx | import React, {Component} from 'react';
class Home extends Component {
render() {
return (
<div>
HOME
</div>
)
}
}
export default Home;
| import React from 'react';
const Home = () => {
return (
<div>
HOME
</div>
);
};
export default Home;
| Use functional style of home presentational component | Use functional style of home presentational component
| JSX | apache-2.0 | solairerove/woodstock,solairerove/woodstock,solairerove/woodstock | ---
+++
@@ -1,13 +1,11 @@
-import React, {Component} from 'react';
+import React from 'react';
-class Home extends Component {
- render() {
- return (
- <div>
- HOME
- </div>
- )
- }
-}
+const Home = () => {
+ return (
+ <div>
+ HOME
+ ... |
184d1d004d37d0d07651a0e82ee7a33029594307 | src/components/PageCard/Heading/index.jsx | src/components/PageCard/Heading/index.jsx | import styles from './style.postcss';
import React from 'react';
import pure from 'recompose/pure';
import classnames from 'classnames';
import is from 'is_js';
import PropTypes from 'prop-types';
import testClass from 'domain/testClass';
const PageCardHeading = (props) => {
const { className, text } = props;
con... | import styles from './style.postcss';
import React from 'react';
import pure from 'recompose/pure';
import classnames from 'classnames';
import is from 'is_js';
import PropTypes from 'prop-types';
const PageCardHeading = (props) => {
const { className, text } = props;
return <header className={classnames(styles.... | Revert "[automation] add test a className for pageCard" | Revert "[automation] add test a className for pageCard"
This reverts commit 65fb68f08e96f3ea78ed42d78496e77cfd204739.
| JSX | mit | e1-bsd/omni-common-ui,e1-bsd/omni-common-ui | ---
+++
@@ -5,16 +5,12 @@
import classnames from 'classnames';
import is from 'is_js';
import PropTypes from 'prop-types';
-import testClass from 'domain/testClass';
const PageCardHeading = (props) => {
const { className, text } = props;
- const textAbbr = is.string(text) &&
- text.replace(/\s+/g, '-').r... |
e95e5b3d467209e283e9492139c7cdf690a35f52 | client/components/Nav.jsx | client/components/Nav.jsx | import React from 'react';
import { Link } from 'react-router';
export default class Nav extends React.Component {
constructor(props) {
super(props);
this.state = {
showText: false,
};
}
handleClick() {
this.setState({
showText: true,
});
}
render() {
return (
<div... | import React from 'react';
import { Link } from 'react-router';
export default class Nav extends React.Component {
constructor(props) {
super(props);
this.state = {
showText: false,
};
}
render() {
return (
<div>
{
this.props.onLandingPage ? <Link to="profile">Profi... | Add onClick handler on Link to '/' to set onLandingPage to true | Add onClick handler on Link to '/' to set onLandingPage to true
| JSX | mit | nonchalantkettle/SpeechDoctor,nonchalantkettle/SpeechDoctor,alexxisroxxanne/SpeechDoctor,alexxisroxxanne/SpeechDoctor | ---
+++
@@ -9,19 +9,13 @@
};
}
- handleClick() {
- this.setState({
- showText: true,
- });
- }
-
render() {
return (
<div>
{
this.props.onLandingPage ? <Link to="profile">Profile</Link> :
<div>
- <Link to="/">Home</Link>
+ ... |
effb03d9a855e665b9075ebd406dafefd084bdb0 | src/components/pages/Notes.jsx | src/components/pages/Notes.jsx | import React from 'react';
import NoteForm from '../notes/NoteForm';
import NotesWrapper from '../notes/NotesWrapper';
import UpdateModal from '../notes/UpdateModal';
export default class Notes extends React.Component {
constructor() {
super();
this.state = { modal: false, };
}
dismissModal() { this.set... | import React from 'react';
import NoteForm from '../notes/NoteForm';
import NotesWrapper from '../notes/NotesWrapper';
import UpdateModal from '../notes/UpdateModal';
export default class Notes extends React.Component {
constructor() {
super();
this.state = { modal: false, };
}
dismissModal() { this.set... | Move alert handling to App | Move alert handling to App
| JSX | mit | emyarod/refuge,emyarod/refuge | ---
+++
@@ -13,36 +13,17 @@
displayModal(note) { this.setState({ modal: true, note, }); }
- handleAlert(alert) { this.refs.alerts.addAlert(alert) }
-
- // FIXME: hard code alert to test
- componentDidMount() {
- const alerts = [
- {
- type: 'success',
- message: 'Note successfully crea... |
71560192fb85548f5bbf8c1f55fbba9fdb501992 | app/assets/javascripts/components/events/event_items.js.jsx | app/assets/javascripts/components/events/event_items.js.jsx | var EventItems = React.createClass({
getInitialState: function() {
return {items: this.props.items};
},
handleAdd: function( e ) {
e.preventDefault();
this.state.items.push({id: new Date().getTime()})
this.setState({items: this.state.items});
},
handleDelete: function( index ) {
this.sta... | var EventItems = React.createClass({
getInitialState: function() {
return {items: this.props.items};
},
handleAdd: function( e ) {
e.preventDefault();
this.state.items.push({key: new Date().getTime()})
this.setState({items: this.state.items});
},
handleDelete: function( index ) {
this.st... | Fix - react key 問題 | Fix - react key 問題
| JSX | mit | jiunjiun/pickone,jiunjiun/pickone,jiunjiun/pickone | ---
+++
@@ -5,7 +5,7 @@
handleAdd: function( e ) {
e.preventDefault();
- this.state.items.push({id: new Date().getTime()})
+ this.state.items.push({key: new Date().getTime()})
this.setState({items: this.state.items});
},
@@ -20,7 +20,7 @@
render: function() {
var item = this.state.it... |
d453036757a02a7fb826079c6de0e6856b218261 | app/js/components/home/Hero.jsx | app/js/components/home/Hero.jsx | import React from 'react';
import SmoothImageDiv from 'components/general/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 'components/general/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,
... | Make handlImageLoad in hero component an arrow function. | Make handlImageLoad in hero component an arrow function.
| JSX | mit | rit-sse/OneRepoToRuleThemAll | ---
+++
@@ -10,11 +10,9 @@
img1Loaded: false,
img2Loaded: false,
};
-
- this.handleImageLoad = this.handleImageLoad.bind(this);
}
- handleImageLoad(key) {
+ handleImageLoad = (key) => {
this.setState({
[key]: true,
}); |
f4fe35a47bf96fcc4cc5ee857fe91aafa5738312 | blueprints/component/files/__name__.jsx | blueprints/component/files/__name__.jsx | import React from 'react';
class __name__ extends React.Component {
__defaultprops__
render() {
return (
);
}
}
__proptypes__
export default __name__;
| import React from 'react';
class __name__ extends React.Component {
__defaultprops__
render() {
return (
<div/>
);
}
}
__proptypes__
export default __name__;
| Make the render method valid in case anybody tries to run it | Make the render method valid in case anybody tries to run it
| JSX | mit | reactcli/react-cli,reactcli/react-cli | ---
+++
@@ -4,7 +4,7 @@
__defaultprops__
render() {
return (
-
+ <div/>
);
}
} |
66e394b43e61dee22b014c355b3e2b49f3a98b5e | client/app/components/Input/__tests__/InputLocation.spec.jsx | client/app/components/Input/__tests__/InputLocation.spec.jsx | // @flow
import { shallow } from 'enzyme';
import React from 'react';
import { InputLocation } from '../InputLocation';
describe('InputLocation', () => {
describe('handle location input', () => {
it('updates the value of the input', () => {
const wrapper = shallow(
<InputLocation placeholder="Locat... | // @flow
import { shallow } from 'enzyme';
import React from 'react';
import { InputLocation } from '../InputLocation';
describe('InputLocation', () => {
describe('has no initialized value', () => {
it('updates the value of the input', () => {
const wrapper = shallow(
<InputLocation placeholder="Lo... | Add missing test for InputLocation | Add missing test for InputLocation
| JSX | agpl-3.0 | cartothemax/ifme,cartothemax/ifme,julianguyen/ifme,julianguyen/ifme,julianguyen/ifme,cartothemax/ifme,cartothemax/ifme,julianguyen/ifme | ---
+++
@@ -4,17 +4,37 @@
import { InputLocation } from '../InputLocation';
describe('InputLocation', () => {
- describe('handle location input', () => {
+ describe('has no initialized value', () => {
it('updates the value of the input', () => {
const wrapper = shallow(
- <InputLocation place... |
d9d3378ad29be7251256e7d3f932916f39d598a5 | src/kart/GeoJsonLayer.jsx | src/kart/GeoJsonLayer.jsx | import React from 'react'
import { Source, Layer, GeoJSONLayer } from 'react-mapbox-gl'
// import elg from './elg.json'
const circleLayout = { visibility: 'visible' }
const linePaint = { 'line-color': '#000000',
'line-width':2,
'line-blur': 0,
'line-opacity': 0.4
}
const lineLayout = { visibility: 'visible' }
const ci... | import React from 'react'
import { GeoJSONLayer } from 'react-mapbox-gl'
// import elg from './elg.json'
const circleLayout = { visibility: 'visible' }
const linePaint = { 'line-color': '#000000',
'line-width':2,
'line-blur': 0,
'line-opacity': 0.4
}
const lineLayout = { visibility: 'visible' }
const circlePaint = { '... | Fix failing build: Layer is defined but never used no-unused-vars | Fix failing build: Layer is defined but never used no-unused-vars
| JSX | mit | bjornreppen/ecomap,Artsdatabanken/ecomap,Artsdatabanken/ecomap,bjornreppen/ecomap | ---
+++
@@ -1,5 +1,5 @@
import React from 'react'
-import { Source, Layer, GeoJSONLayer } from 'react-mapbox-gl'
+import { GeoJSONLayer } from 'react-mapbox-gl'
// import elg from './elg.json'
const circleLayout = { visibility: 'visible' } |
7fc0b6fb9524ea05e424ae145603e85df3da3407 | app/scripts/containers/Application.jsx | app/scripts/containers/Application.jsx | import React from 'react'
import { connect } from 'react-redux'
import PubSub from 'pubsub-js'
// import Auth from 'j-toker'
import $ from 'jquery'
import '../../styles/main.scss'
import '../../../node_modules/font-awesome/scss/font-awesome.scss'
// Auth.configure({
// apiUrl: process.env.BASE_URL,
// handleToken... | import React from 'react'
import { connect } from 'react-redux'
import PubSub from 'pubsub-js'
import $ from 'jquery'
import '../../styles/main.scss'
import '../../../node_modules/font-awesome/scss/font-awesome.scss'
export default class Application extends React.Component {
render() {
return(
<div>
... | Remove j-toker code from Applciation component | Remove j-toker code from Applciation component
| JSX | agpl-3.0 | nossas/bonde-client,nossas/bonde-client,nossas/bonde-client | ---
+++
@@ -1,53 +1,16 @@
import React from 'react'
import { connect } from 'react-redux'
import PubSub from 'pubsub-js'
-// import Auth from 'j-toker'
import $ from 'jquery'
import '../../styles/main.scss'
import '../../../node_modules/font-awesome/scss/font-awesome.scss'
-// Auth.configure({
-// apiUrl:... |
9d33b3760129ba3ebfc0bd45d9dfdc3b36ce68dd | client/index.jsx | client/index.jsx | import React from 'react';
import ReactDOM from 'react-dom';
<<<<<<< cd44f6c8950214440c103a69513dd189bbdc8b4c
import { createStore, applyMiddleware } from 'redux';
import thunkMiddleware from 'redux-thunk';
import createLogger from 'redux-logger';
import { Provider } from 'react-redux';
import platoApp from './plato';... | import React from 'react';
import ReactDOM from 'react-dom';
import { createStore, applyMiddleware } from 'redux';
import thunkMiddleware from 'redux-thunk';
import createLogger from 'redux-logger';
import { Provider } from 'react-redux';
import platoApp from './plato';
const loggerMiddleware = createLogger();
const... | Complete single file Redux implementation of basic features | Complete single file Redux implementation of basic features
| JSX | mit | enchanted-spotlight/Plato,enchanted-spotlight/Plato | ---
+++
@@ -1,6 +1,5 @@
import React from 'react';
import ReactDOM from 'react-dom';
-<<<<<<< cd44f6c8950214440c103a69513dd189bbdc8b4c
import { createStore, applyMiddleware } from 'redux';
import thunkMiddleware from 'redux-thunk';
import createLogger from 'redux-logger';
@@ -10,14 +9,6 @@
const loggerMiddlew... |
f9557ef86947ac733645e8c012df4d221411fdd6 | apollos/core/blocks/discover/Input.jsx | apollos/core/blocks/discover/Input.jsx |
const Input = ({ searchSubmit, cancel, showCancel }) => (
<section className="soft-double-ends background--light-primary">
{() => {
if (showCancel) {
return (
<button onClick={cancel} className="locked-right push-right push-half-top">
<small>Cancel</small>
</button>... |
const getDefault = ({ searchSubmit, cancel, showCancel }) => (
<section className="soft-double-ends background--light-primary">
{() => {
if (showCancel) {
return (
<button onClick={cancel} className="locked-right push-right push-half-top">
<small>Cancel</small>
</bu... | Make the search for discover match the header | Make the search for discover match the header
| JSX | mit | NewSpring/apollos-core | ---
+++
@@ -1,5 +1,5 @@
-const Input = ({ searchSubmit, cancel, showCancel }) => (
+const getDefault = ({ searchSubmit, cancel, showCancel }) => (
<section className="soft-double-ends background--light-primary">
{() => {
@@ -25,6 +25,40 @@
</div>
</form>
</section>
-)
+);
+
+const getApp = ... |
9d47bf4637147326949c5a681949ebd2588eec6f | web/static/js/components/email_opt_in_toggle.jsx | web/static/js/components/email_opt_in_toggle.jsx | import React from "react"
import * as AppPropTypes from "../prop_types"
import styles from "./css_modules/email_opt_in_toggle.css"
const EmailOptInToggle = props => {
const { actions, currentUser } = props
return (
<div className="thirteen wide mobile eight wide tablet four wide computer column">
<div c... | import React from "react"
import * as AppPropTypes from "../prop_types"
import styles from "./css_modules/email_opt_in_toggle.css"
const EmailOptInToggle = props => {
const { actions, currentUser } = props
return (
<div className="thirteen wide mobile eight wide tablet four wide computer column">
<div c... | Copy updates; strip new line in email toggle prompt | Copy updates; strip new line in email toggle prompt
| JSX | mit | stride-nyc/remote_retro,stride-nyc/remote_retro,stride-nyc/remote_retro | ---
+++
@@ -10,10 +10,7 @@
<div className={styles.wrapper}>
<p>
Would you like to receive occasional emails from RemoteRetro
- and Stride Consulting?
- </p>
- <p>
- You can opt out any time. <a href="/privacy">Privacy Policy</a>
+ and Stride Consulti... |
689aaef5f1fb7c50e7bf222d944ead0c1d12a4a2 | client/src/index.jsx | client/src/index.jsx | import React from 'react';
import ReactDOM from 'react-dom';
import HouseInventory from './components/houseInventory.jsx';
import CreateUser from './components/CreateUser.jsx';
import dummyData from '../../database/dummyData.js'; // moved from houseInventory.jsx
class App extends React.Component {
constructor(props)... | import React from 'react';
import ReactDOM from 'react-dom';
import HouseInventory from './components/HouseInventory.jsx';
import CreateUser from './components/CreateUser.jsx';
import dummyData from '../../database/dummyData.js'; // moved from houseInventory.jsx
class App extends React.Component {
constructor(props)... | Change filename to align with new filename | Change filename to align with new filename
| JSX | mit | SentinelsOfMagic/SentinelsOfMagic | ---
+++
@@ -1,6 +1,6 @@
import React from 'react';
import ReactDOM from 'react-dom';
-import HouseInventory from './components/houseInventory.jsx';
+import HouseInventory from './components/HouseInventory.jsx';
import CreateUser from './components/CreateUser.jsx';
import dummyData from '../../database/dummyData.j... |
63cc1b3a485f8e1c8e66cbf3d3ddf700ebd05e24 | app/assets/javascripts/components/list_item.jsx | app/assets/javascripts/components/list_item.jsx | var ListItem = React.createClass({
render: function() {
return (
<li className="ListItem-title">{ this.props.item.title }</li>
);
}
});
| var ListItem = React.createClass({
inputChange: function(event) {
this.state.hasChanged = true;
this.setState({ value: event.target.value });
},
saveData: function() {
if(this.state.hasChanged) {
this.state.item.title = this.state.value;
var stringData = JSON.stringify(this.state.item);
... | Add ajax save to list item. | Add ajax save to list item.
| JSX | mit | kirillis/mytopten,kirillis/mytopten,krisimmig/mytopten,krisimmig/mytopten,krisimmig/mytopten,kirillis/mytopten | ---
+++
@@ -1,7 +1,43 @@
var ListItem = React.createClass({
+ inputChange: function(event) {
+ this.state.hasChanged = true;
+ this.setState({ value: event.target.value });
+ },
+ saveData: function() {
+ if(this.state.hasChanged) {
+ this.state.item.title = this.state.value;
+ var stringData =... |
6e4b240f27ae885b4baa3047973b3ff9217b02ea | app/src/controllers/filter/withFilter.jsx | app/src/controllers/filter/withFilter.jsx | import { Component } from 'react';
import PropTypes from 'prop-types';
import { connectRouter } from 'common/utils';
const FILTER_KEY = 'filter.cnt.name';
const debounce = (callback, time) => {
let interval;
return (...args) => {
clearTimeout(interval);
interval = setTimeout(() => {
interval = null;... | import { Component } from 'react';
import PropTypes from 'prop-types';
import { PAGE_KEY } from 'controllers/pagination';
import { connectRouter } from 'common/utils';
const FILTER_KEY = 'filter.cnt.name';
const debounce = (callback, time) => {
let interval;
return (...args) => {
clearTimeout(interval);
i... | Reset page number on filter expression change | EPMRPP-34250: Reset page number on filter expression change
| JSX | apache-2.0 | reportportal/service-ui,reportportal/service-ui,reportportal/service-ui | ---
+++
@@ -1,5 +1,6 @@
import { Component } from 'react';
import PropTypes from 'prop-types';
+import { PAGE_KEY } from 'controllers/pagination';
import { connectRouter } from 'common/utils';
const FILTER_KEY = 'filter.cnt.name';
@@ -21,7 +22,7 @@
filter: query[filterKey],
}),
{
- updateF... |
935ff31c9935db89ee050889618e65fca92b6ce0 | src/components/home/FindYourBallot.jsx | src/components/home/FindYourBallot.jsx | import React, { PropTypes } from 'react'
import styles from './find-your-ballot.scss'
export default class FindYourBallot extends React.Component {
render () {
const { fetching, onChange, onKeyPress, value, onSubmitHandler } = this.props
return (
<div className={styles['container']}>
<div cla... | import React, { PropTypes } from 'react'
import styles from './find-your-ballot.scss'
export default class FindYourBallot extends React.Component {
render () {
const { fetching, onChange, onKeyPress, value, onSubmitHandler } = this.props
return (
<div className={styles['container']}>
<div cla... | Update find your ballot placeholder text | Update find your ballot placeholder text
| JSX | mit | axelson/hawaii-power-ballot,axelson/hawaii-power-ballot | ---
+++
@@ -16,7 +16,7 @@
<input
className={styles['input']}
type='text'
- placeholder="Type your address here to get YOUR Power Ballot"
+ placeholder="Type your address (street address, city, state, zip) here to get YOUR Power Ballot"
... |
b3f4ae9ffe8e0ce4f8b1c780665e574ffcf131a2 | src/components/expertise/lightbulb.jsx | src/components/expertise/lightbulb.jsx | import React from 'react';
import Target from 'global/target.jsx';
export default class LightBulb extends React.PureComponent{
render(){
return (
<div class={'lightbulb ' + this.props.placement}>
<div class='icon'>
<div class='bulb' data-aos='fade-down'>
<Target shape='circle' position={{bot... | import React from 'react';
import Target from 'global/target.jsx';
export default class LightBulb extends React.PureComponent{
render(){
return (
<div class={'lightbulb ' + this.props.placement}>
<div class='icon'>
<div class='bulb' data-aos='fade-down'>
<Target shape='circle' color='blue' t... | Add translate feature for the target component | Add translate feature for the target component
| JSX | mit | radencode/radencode.com,radencode/radencode.com | ---
+++
@@ -7,7 +7,7 @@
<div class={'lightbulb ' + this.props.placement}>
<div class='icon'>
<div class='bulb' data-aos='fade-down'>
- <Target shape='circle' position={{bottom: '-21px', left: '39px'}}/>
+ <Target shape='circle' color='blue' translate={true} position={{bottom: '-21px', left... |
b15f007597176be4acab46b7576df4432bfd0a52 | resources/js/Pages/Flags/_FlagCurrent.jsx | resources/js/Pages/Flags/_FlagCurrent.jsx | import React, { useMemo } from "react";
import { InertiaLink } from "@inertiajs/inertia-react";
import clsx from "clsx";
import FlagStatus from "../../Components/_FlagStatus";
export default function FlagCurrent({ flag, url = null, hideBuild = false }) {
const Component = useMemo(() => (url ? InertiaLink : "div"),... | import React, { useMemo } from "react";
import { InertiaLink } from "@inertiajs/inertia-react";
import clsx from "clsx";
import FlagStatus from "../../Components/_FlagStatus";
export default function FlagCurrent({ flag, url = null, hideBuild = false }) {
const Component = useMemo(() => (url ? InertiaLink : "div"),... | Update FlagCurrent with new design | Update FlagCurrent with new design
| JSX | agpl-3.0 | ChangeWindows/ChangeWindows,ChangeWindows/ChangeWindows,ChangeWindows/ChangeWindows | ---
+++
@@ -10,13 +10,16 @@
const mainProps = useMemo(() => ({ href: url }), ["url"]);
return (
- <Component {...mainProps} className={clsx("event px-2")}>
- <div className="revision">{flag.feature_name}</div>
+ <Component {...mainProps} className="flag">
+ <div className="flag-name">{flag.fea... |
5599a24ba23d5381f16b3e76f77963732a98333a | apps/authentication/static/js/components/App.jsx | apps/authentication/static/js/components/App.jsx | var React = require('react');
var Login = require('./Login.jsx');
var Register = require('./Register.jsx');
var App = React.createClass({
render: function () {
return (
<div>
<div className="split-page left">
<Login />
</div>
<div className="split-page right">
<... | var React = require('react');
var Login = require('./Login.jsx');
var Register = require('./Register.jsx');
var App = React.createClass({
render: function () {
return (
<div>
<div className="split-page left">
<hgroup>
<h1>Sign in</h1>
<Login />
</hgroup>... | Add headers for the two forms | Add headers for the two forms
| JSX | mit | microserv/microauth,microserv/microauth,microserv/microauth | ---
+++
@@ -8,10 +8,16 @@
return (
<div>
<div className="split-page left">
- <Login />
+ <hgroup>
+ <h1>Sign in</h1>
+ <Login />
+ </hgroup>
</div>
<div className="split-page right">
- <Register />
+ <hgroup>
+ ... |
42d3c64f8cfb836986d0f9e4e302dc9a2c5e8807 | imports/ui/AddContact.jsx | imports/ui/AddContact.jsx | import {Meteor} from 'meteor/meteor'
import React from 'react'
import {Button, Container, Form, FormGroup, Input, Jumbotron} from 'reactstrap'
const getSecureRandom = () => {
const array = new Uint32Array(1)
window.crypto.getRandomValues(array)
return array[0]
}
const onSubmit = senderDid => async e => {
e.pr... | import {Meteor} from 'meteor/meteor'
import React from 'react'
import {Button, Container, Form, FormGroup, Input, Jumbotron} from 'reactstrap'
const getSecureRandom = () => {
const array = new Uint32Array(1)
window.crypto.getRandomValues(array)
return array[0]
}
const onSubmit = senderDid => async e => {
e.pr... | Remove auto capitalizaion/completion/correction from add DID contact form | Remove auto capitalizaion/completion/correction from add DID contact form
| JSX | mit | SpidChain/spidchain-btcr,SpidChain/spidchain-btcr | ---
+++
@@ -34,12 +34,16 @@
Insert a friends's DID here, he will receive a confirmation request
</p>
</Jumbotron>
- <Form onSubmit={onSubmit(did)}>
+ <Form
+ autoCorrect='off'
+ autoComplete='off'
+ onSubmit={onSubmit(did)}>
<FormGroup>
<In... |
5b46a51e76394e18407e6b43785c320332140553 | shared/components/TodosView.jsx | shared/components/TodosView.jsx | import React from 'react';
import { PropTypes } from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
export default class TodosView extends React.Component {
static propTypes = {
todos: ImmutablePropTypes.list.isRequired,
editTodo: PropTypes.func.isRequired,
deleteTo... | import React from 'react';
import { PropTypes } from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
export default class TodosView extends React.Component {
static propTypes = {
todos: ImmutablePropTypes.list.isRequired,
editTodo: PropTypes.func.isRequired,
deleteTo... | Remove `data-` attribute because it's an antipattern in this case. | Remove `data-` attribute because it's an antipattern in this case.
| JSX | mit | isogon/isomorphic-redux-plus,Dattaya/isomorphic-redux-plus,terribleplan/isomorphic-redux-plus | ---
+++
@@ -10,14 +10,11 @@
user: PropTypes.string
}
- handleDelete = (e) => {
- const id = Number(e.target.dataset.id);
-
+ handleDelete = (id) => {
this.props.deleteTodo(id);
}
- handleEdit = (e) => {
- const id = Number(e.target.dataset.id);
+ handleEdit = (id) => {
... |
deb413c07d51cfb2f4eb0d3c46fd76e5a8658798 | src/Page/PageCanvas.spec.jsx | src/Page/PageCanvas.spec.jsx | import React from 'react';
import { mount } from 'enzyme';
import { PageCanvasInternal as PageCanvas } from './PageCanvas';
import failingPage from '../../__mocks__/_failing_page';
import { makeAsyncCallback, muteConsole, restoreConsole } from '../../test-utils';
/* eslint-disable comma-dangle */
describe('PageCan... | import React from 'react';
import { mount } from 'enzyme';
import { pdfjs } from '../entry.jest';
import { PageCanvasInternal as PageCanvas } from './PageCanvas';
import failingPage from '../../__mocks__/_failing_page';
import {
loadPDF, makeAsyncCallback, muteConsole, restoreConsole,
} from '../../test-utils';
... | Add unit test for onRenderSuccess in PageCanvas | Add unit test for onRenderSuccess in PageCanvas
| JSX | mit | wojtekmaj/react-pdf,wojtekmaj/react-pdf,wojtekmaj/react-pdf | ---
+++
@@ -1,16 +1,59 @@
import React from 'react';
import { mount } from 'enzyme';
+
+import { pdfjs } from '../entry.jest';
import { PageCanvasInternal as PageCanvas } from './PageCanvas';
import failingPage from '../../__mocks__/_failing_page';
-import { makeAsyncCallback, muteConsole, restoreConsole } ... |
d2563e018c96cbeef26c1d3dcbba867b650ee5a4 | app/javascript/app/pages/country-compare/country-compare-component.jsx | app/javascript/app/pages/country-compare/country-compare-component.jsx | import React, { PureComponent } from 'react';
import compareScreenshot from 'assets/screenshots/compare-screenshot';
import Teaser from 'components/teaser';
class CountryCompare extends PureComponent {
// eslint-disable-line react/prefer-stateless-function
render() {
return (
<Teaser
screenshot={... | import React from 'react';
import PropTypes from 'prop-types';
import Sticky from 'react-stickynode';
// import { } from 'data/SEO';
// import { MetaDescription, SocialMetadata } from 'components/seo';
// import { TabletLandscape } from 'components/responsive';
import Header from 'components/header';
import Intro fro... | Add header and anchorlinks to layout | Add header and anchorlinks to layout
| JSX | mit | Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch,Vizzuality/climate-watch | ---
+++
@@ -1,18 +1,46 @@
-import React, { PureComponent } from 'react';
-import compareScreenshot from 'assets/screenshots/compare-screenshot';
-import Teaser from 'components/teaser';
+import React from 'react';
+import PropTypes from 'prop-types';
+import Sticky from 'react-stickynode';
-class CountryCompare ext... |
fdd47ebef08f83efe3a46ce9d10b9b15c3afea41 | src/client/scripts/components/share.jsx | src/client/scripts/components/share.jsx | import React, { Component } from 'react';
import { connect } from 'react-redux';
import '../../styles/share.scss';
const mapStateToProps = state => ({
itinerary: state.itinerary,
});
class Share extends Component {
createMessageBody(itinerary) {
const newline = '%0A%0A';
const lineBreak = '%0A';
con... | import React, { Component } from 'react';
import { connect } from 'react-redux';
import '../../styles/share.scss';
const mapStateToProps = state => ({
itinerary: state.itinerary,
});
const lineBreak = '%0A';
const indent = '%20%20';
const newline = '%0A%0A';
const dash = '%2D%20';
class Share extends Component {
... | Fix '&' bug in email populating function | Fix '&' bug in email populating function
| JSX | mit | theredspoon/trip-raptor,Tropical-Raptor/trip-raptor | ---
+++
@@ -7,19 +7,26 @@
itinerary: state.itinerary,
});
+const lineBreak = '%0A';
+const indent = '%20%20';
+const newline = '%0A%0A';
+const dash = '%2D%20';
+
class Share extends Component {
+ populateDetails(string) {
+ if (string !== undefined && string.length > 0) {
+ console.log('encodeURICo... |
6fae32990285e4b1eff6e8780408a1f552939e2f | imports/ui/components/Modal.jsx | imports/ui/components/Modal.jsx | import React from 'react';
export default class ProfilePage extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="overlay-background">
{this.props.children}
</div>
);
}
}
| import React from 'react';
export default class Modal extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="overlay-background">
{this.props.children}
</div>
);
}
}
| Fix typo in name of modal component. | Fix typo in name of modal component.
| JSX | mit | howlround/worldtheatremap,howlround/worldtheatremap | ---
+++
@@ -1,6 +1,6 @@
import React from 'react';
-export default class ProfilePage extends React.Component {
+export default class Modal extends React.Component {
constructor(props) {
super(props);
} |
9c2cfc65de916b3daca31f7addd3da8ee0ee682c | client/containers/MemeViewer.jsx | client/containers/MemeViewer.jsx | import React from "react";
import Velocity from 'velocity-animate';
import Board from "../components/Board";
import Thread from "../components/Thread";
import ContentOptions from "../components/ContentOptions";
export default class MemeViewer extends React.Component {
constructor(props) {
super(props);
... | import React from "react";
import Velocity from 'velocity-animate';
import Board from "../components/Board";
import Thread from "../components/Thread";
import ContentOptions from "../components/ContentOptions";
export default class MemeViewer extends React.Component {
constructor(props) {
super(props);
... | Fix state typo + add ContentOptions | Fix state typo + add ContentOptions
| JSX | mit | AdamSalma/Lurka,AdamSalma/Lurka | ---
+++
@@ -9,7 +9,7 @@
constructor(props) {
super(props);
this.state = {
- provider: "chan",
+ provider: "4chan",
menuIsOpen: false
}
this.toggleMenu = this.toggleMenu.bind(this)
@@ -21,6 +21,7 @@
return (
<div>
... |
2287df829b67527a061105a05186887b761ce8c8 | app/assets/javascripts/components/quilleditor.js.jsx | app/assets/javascripts/components/quilleditor.js.jsx | var QuillEditor = React.createClass({
componentDidMount: function() {
let self = this;
Quill.prototype.getHtml = function() {
return this.container.querySelector('.ql-editor').innerHTML;
};
this.initQuillEditor();
this.quill.clipboard.dangerouslyPasteHTML(this.p... | var QuillEditor = React.createClass({
componentDidMount: function () {
let self = this;
Quill.prototype.getHtml = function () {
return this.container.querySelector('.ql-editor').innerHTML;
};
this.initQuillEditor();
this.quill.clipboard.dangerouslyPasteHTML(this.props.text);
this.quil... | Add id to quilleditor element. | Add id to quilleditor element.
| JSX | mit | krisimmig/mytopten,kirillis/mytopten,kirillis/mytopten,krisimmig/mytopten,kirillis/mytopten,krisimmig/mytopten | ---
+++
@@ -1,40 +1,40 @@
var QuillEditor = React.createClass({
- componentDidMount: function() {
- let self = this;
- Quill.prototype.getHtml = function() {
- return this.container.querySelector('.ql-editor').innerHTML;
- };
+ componentDidMount: function () {
+ let self = this... |
e836f8544ba52d29541b0046f0e96fdbf45fc8db | src/client/components/status.jsx | src/client/components/status.jsx | import React, { Component } from 'react';
import Loader from './loader';
/**
*
* @returns {string}
*/
function randomTip() {
const tips = [
'Use ARROW keys to move',
'Hold down SHIFT to sprint',
'Press SPACE to attack',
'Run over a flag to tag it',
'Tag flags to receive more points',
'Play... | import React, { Component } from 'react';
import Loader from './loader';
/**
*
* @returns {string}
*/
function randomTip() {
const tips = [
'Use ARROW keys to move',
'Hold down SHIFT to sprint',
'Press SPACE to attack',
'Run over a flag to tag it',
'Tag flags to receive more points',
'Play... | Fix bug that caused the tip to be empty | Fix bug that caused the tip to be empty
| JSX | mit | crisu83/ctf-game,crisu83/ctf-game | ---
+++
@@ -16,7 +16,7 @@
'Tell your friends to join for more fun'
];
- const tipIndex = Math.round(Math.random() * tips.length);
+ const tipIndex = Math.round(Math.random() * (tips.length - 1));
return tips[tipIndex];
} |
5d22c6cc4e6161192822827c44f11b9fd73f86a8 | app/src/script/component/VoteRadioButtons.jsx | app/src/script/component/VoteRadioButtons.jsx | var React = require('react');
var ReactBootstrap = require('react-bootstrap');
var ReactIntl = require('react-intl');
var classNames = require('classnames');
var Title = require('./Title');
var Button = ReactBootstrap.Button;
var VoteRadioButtons = React.createClass({
mixins: [
ReactIntl.IntlMixin
]... | var React = require('react');
var ReactBootstrap = require('react-bootstrap');
var ReactIntl = require('react-intl');
var classNames = require('classnames');
var Title = require('./Title');
var Button = ReactBootstrap.Button;
var VoteRadioButtons = React.createClass({
mixins: [
ReactIntl.IntlMixin
]... | Disable validation button until a choice is made. | Disable validation button until a choice is made.
| JSX | mit | promethe42/cocorico,promethe42/cocorico,promethe42/cocorico,promethe42/cocorico,promethe42/cocorico | ---
+++
@@ -20,8 +20,19 @@
};
},
+ getInitialState() {
+ return {
+ ballotValue: null,
+ }
+ },
+
render: function() {
var labels = this.props.vote.labels;
+
+ var button_opts = {};
+ if (this.state.ballotValue == null) {
+ button_o... |
42c5ed02f711fee73a2a1193d21f647c9f288337 | src/request/components/request-detail-panel-messages.jsx | src/request/components/request-detail-panel-messages.jsx | 'use strict';
var _ = require('lodash');
var React = require('react');
var PanelGeneric = require('./request-detail-panel-generic');
module.exports = React.createClass({
render: function () {
return (
<div>
<div><h3>Message Count - {_.size(this.props.data.payload)}</h3></div>
... | 'use strict';
var _ = require('lodash');
var React = require('react');
var PanelGeneric = require('./request-detail-panel-generic');
module.exports = React.createClass({
render: function () {
return (
<div>
<div><h3>Message Count - {_.size(this.props.data.payload)}</h3></div>
... | Remove abstract and index from display | Remove abstract and index from display
| JSX | unknown | avanderhoorn/Glimpse.Client.Prototype,Glimpse/Glimpse.Client.Prototype,Glimpse/Glimpse.Client.Prototype,Glimpse/Glimpse.Client.Prototype,avanderhoorn/Glimpse.Client.Prototype | ---
+++
@@ -12,17 +12,11 @@
<table>
<tbody>
{_.map(this.props.data.payload, function (item) {
- var index = item.indices && !_.isEmpty(item.indices) ? <PanelGeneric payload={item.indices} /> : '--';
- var abstra... |
b3e47282e9fd47644c9149009f32196deabce014 | client/src/components/UserData.jsx | client/src/components/UserData.jsx | import React from 'react';
class UserData extends React.Component {
constructor(props) {
super(props);
this.state = {username: 'Enter User', password: 'Enter Password', preferences: 'Italian', location: '94016'};
}
render() {
return (
<div>
<p>Username</p>
<input name="usernam... | import React from 'react';
class UserData extends React.Component {
constructor(props) {
super(props);
// this.state = {username: 'Enter User', password: 'Enter Password', preferences: 'Italian', location: '94016'};
}
render() {
return (
<div>
<p>Username</p>
<input disabled n... | Disable the username & password fields | Disable the username & password fields
| JSX | mit | Sibilant-Siblings/sibilant-siblings,Sibilant-Siblings/sibilant-siblings | ---
+++
@@ -3,7 +3,7 @@
class UserData extends React.Component {
constructor(props) {
super(props);
- this.state = {username: 'Enter User', password: 'Enter Password', preferences: 'Italian', location: '94016'};
+ // this.state = {username: 'Enter User', password: 'Enter Password', preferences: 'Italia... |
78de3c9630be888c023fc73d135304b7aa867ae1 | src/components/documents_detail/related_topics.jsx | src/components/documents_detail/related_topics.jsx | "use strict";
var React = require('react')
module.exports = React.createClass({
displayName: 'DocumentRelatedTopics',
render: function () {
var topics = this.props.topics;
return (
<div>
<h2>Related topics</h2>
<div className="related-topics">
{
topics.s... | "use strict";
var React = require('react')
module.exports = React.createClass({
displayName: 'DocumentRelatedTopics',
render: function () {
var topics = this.props.topics;
return (
<div>
<h2>Related topics</h2>
<div className="related-topics">
{
topics.s... | Add keys to related topics in document component | Add keys to related topics in document component
| JSX | agpl-3.0 | editorsnotes/editorsnotes-renderer | ---
+++
@@ -14,7 +14,7 @@
topics.size === 0 ?
<p>There are no topics related to this document.</p> :
topics.map(topic =>
- <li>
+ <li key={topic.hashCode()}>
<a href={topic.get('url')}>{topic.get('preferred_name')}... |
3f164b3e4ec84c925a9d63d911476798e486d2b9 | waartaa/client/app/containers/chat/ChannelChatContainer.jsx | waartaa/client/app/containers/chat/ChannelChatContainer.jsx | import React, {Component} from 'react';
import {List, ListItem} from 'material-ui/List';
import Drawer from 'material-ui/Drawer';
import Subheader from 'material-ui/Subheader';
import withWidth, {MEDIUM, LARGE} from 'material-ui/utils/withWidth';
class ChannelChatContainer extends Component {
constructor(props, co... | import React, {Component} from 'react';
import {List, ListItem} from 'material-ui/List';
import Drawer from 'material-ui/Drawer';
import Subheader from 'material-ui/Subheader';
import withWidth, {MEDIUM, LARGE} from 'material-ui/utils/withWidth';
import ChannelChatLogContainer from './ChannelChatLogContainer.jsx';
c... | Fix the position of the right side drawer | Fix the position of the right side drawer
| JSX | mit | waartaa/waartaa,waartaa/waartaa,waartaa/waartaa | ---
+++
@@ -5,14 +5,27 @@
import Subheader from 'material-ui/Subheader';
import withWidth, {MEDIUM, LARGE} from 'material-ui/utils/withWidth';
+import ChannelChatLogContainer from './ChannelChatLogContainer.jsx';
class ChannelChatContainer extends Component {
- constructor(props, context) {
+ constructor(pro... |
f44df5e2cbf787eb9911ead2ddd67b067272fda6 | src/app/components/load-data.jsx | src/app/components/load-data.jsx | import React from 'react';
import InitialData from './../data/initial-data.json';
export default class LoadData extends React.Component {
constructor(props) {
super(props);
this.handleSampleData = this.handleSampleData.bind(this);
}
handleSampleData() {
this.props.dispatch({
type: 'LOAD_DATA',
... | import React from 'react';
import InitialData from './../data/initial-data.json';
export default class LoadData extends React.Component {
constructor(props) {
super(props);
this.handleSampleData = this.handleSampleData.bind(this);
this.handleLoadFile = this.handleLoadFile.bind(this);
}
handleSampleDa... | Add Load data from file | Add Load data from file
| JSX | mit | jkrayer/summoner,jkrayer/summoner | ---
+++
@@ -5,12 +5,27 @@
constructor(props) {
super(props);
this.handleSampleData = this.handleSampleData.bind(this);
+ this.handleLoadFile = this.handleLoadFile.bind(this);
}
handleSampleData() {
this.props.dispatch({
type: 'LOAD_DATA',
monsters: InitialData
});
+ }
+ ... |
78a60620a7f38a4a73a989d227329a5aac8443d5 | app/scripts/views/login.jsx | app/scripts/views/login.jsx | import React from 'react';
import auth from '../lib/auth.js';
export default class Login extends React.Component {
constructor(props) {
super(props);
this.state = {
error: false
};
}
handleSubmit(event) {
event.preventDefault();
const user = this.refs.... | import React from 'react';
import auth from '../lib/auth.js';
export default class Login extends React.Component {
constructor(props) {
super(props);
this.state = {
error: false
};
}
handleSubmit(event) {
event.preventDefault();
auth.login(this.usernam... | Use new react refs syntax | Use new react refs syntax
| JSX | mit | benct/tomlin-web,benct/tomlin-web | ---
+++
@@ -13,10 +13,7 @@
handleSubmit(event) {
event.preventDefault();
- const user = this.refs.username.value;
- const pass = this.refs.password.value;
-
- auth.login(user, pass, (loggedIn) => {
+ auth.login(this.username.value, this.password.value, (loggedIn) => {
... |
b2ed9e902bc0eeadf3941afb4498b6b4c734c88e | src/sentry/static/sentry/app/views/groupDetails/eventTags.jsx | src/sentry/static/sentry/app/views/groupDetails/eventTags.jsx | import React from "react";
import PropTypes from "../../proptypes";
var GroupEventTags = React.createClass({
propTypes: {
group: PropTypes.Group.isRequired,
event: PropTypes.Event.isRequired
},
render() {
var children = this.props.event.tags.map((tag, tagIdx) => {
var key = tag[0];
var v... | import React from "react";
import PropTypes from "../../proptypes";
var GroupEventTags = React.createClass({
propTypes: {
group: PropTypes.Group.isRequired,
event: PropTypes.Event.isRequired
},
render() {
var children = [];
var value;
for (var key in this.props.event.tags) {
value = th... | Correct tag rendering on event details | Correct tag rendering on event details
| JSX | bsd-3-clause | fotinakis/sentry,JackDanger/sentry,looker/sentry,JamesMura/sentry,looker/sentry,hongliang5623/sentry,beeftornado/sentry,Natim/sentry,alexm92/sentry,kevinlondon/sentry,fuziontech/sentry,songyi199111/sentry,jean/sentry,JamesMura/sentry,imankulov/sentry,ngonzalvez/sentry,jean/sentry,BuildingLink/sentry,nicholasserra/sentr... | ---
+++
@@ -8,15 +8,16 @@
},
render() {
- var children = this.props.event.tags.map((tag, tagIdx) => {
- var key = tag[0];
- var value = tag[1];
- return (
- <li key={tagIdx}>
+ var children = [];
+ var value;
+ for (var key in this.props.event.tags) {
+ value = this.prop... |
cc75eba7294a56e9c2275c13e8b7149c25694da0 | js/components/LoginForm.jsx | js/components/LoginForm.jsx | import React from 'react';
import PropTypes from 'prop-types';
import {Button} from 'react-bootstrap';
import TextInput from './TextInput';
function onTextChange(field, value) {
this.setState({[field]: value});
}
function login() {
this.props.doLogin(this.state.email, this.state.password);
}
class LoginForm exte... | import React from 'react';
import PropTypes from 'prop-types';
import {Button} from 'react-bootstrap';
import TextInput from './TextInput';
function onTextChange(field, value) {
this.setState({[field]: value});
}
function login(event) {
event.preventDefault();
this.props.doLogin(this.state.email, this.state.pas... | Add login on enter for loginform | Add login on enter for loginform
| JSX | mit | mapster/tdl-frontend | ---
+++
@@ -7,7 +7,8 @@
this.setState({[field]: value});
}
-function login() {
+function login(event) {
+ event.preventDefault();
this.props.doLogin(this.state.email, this.state.password);
}
@@ -22,10 +23,10 @@
render() {
return (
- <form>
+ <form onSubmit={login.bind(this)}>
... |
d554da2a5b9ade9e06303cbd5d3ada10d608c98a | src/components/EventAvailabilityChip/EventAvailabilityChip.jsx | src/components/EventAvailabilityChip/EventAvailabilityChip.jsx | import React from 'react';
import PropTypes from 'prop-types';
import { Chip, Icon, Avatar } from '@material-ui/core';
const EventAvailabilityChip = ({ event, className, color = 'primary' }) => (
(!event.times || !event.times.date || event.times.date.toDate() < new Date()) ? (
<Chip
className={ className ... | import React from 'react';
import PropTypes from 'prop-types';
import { Chip, Icon, Avatar } from '@material-ui/core';
import { withStyles } from '@material-ui/styles';
// FIXME: remove when released MUI with https://github.com/mui-org/material-ui/pull/17469
import clsx from 'clsx';
const styles = {
avatar: {
... | Fix prod build Avatar in Chip | Fix prod build Avatar in Chip
| JSX | mit | tumido/malenovska,tumido/malenovska | ---
+++
@@ -2,21 +2,40 @@
import PropTypes from 'prop-types';
import { Chip, Icon, Avatar } from '@material-ui/core';
+import { withStyles } from '@material-ui/styles';
-const EventAvailabilityChip = ({ event, className, color = 'primary' }) => (
+// FIXME: remove when released MUI with https://github.com/mui-o... |
95731862c10a1854b9aff77f7dfb7ca8bfcde30b | src/redirects.jsx | src/redirects.jsx | // Redirect desktop urls to mobile-web urls.
const SORTS = ['hot', 'new', 'rising', 'controversial', 'top', 'gilded'];
function redirectSort (ctx, sort, subreddit) {
var url = `?sort=${sort}`;
if (subreddit) {
url = `/r/${subreddit}${url}`;
} else {
url = `/${url}`;
}
ctx.redirect(url);
}
function... | // Redirect desktop urls to mobile-web urls.
const SORTS = ['hot', 'new', 'rising', 'controversial', 'top', 'gilded'];
function redirectSort (ctx, sort, subreddit) {
var url = `?sort=${sort}`;
if (subreddit) {
url = `/r/${subreddit}${url}`;
} else {
url = `/${url}`;
}
ctx.redirect(url);
}
function... | Update the routes to match subreddit urls less aggressively | Update the routes to match subreddit urls less aggressively
Match /r/:subreddit/hot, etc directly instead of /r/:subreddit:sort,
which was catching /r/:subreddit/search and such.
| JSX | mit | madbook/reddit-mobile,uzi/reddit-mobile,DogPawHat/reddit-mobile,DogPawHat/reddit-mobile,uzi/reddit-mobile,madbook/reddit-mobile,curioussavage/reddit-mobile,madbook/reddit-mobile,curioussavage/reddit-mobile,uzi/reddit-mobile | ---
+++
@@ -14,15 +14,13 @@
}
function routes(app) {
- app.router
- .param('sort', function *(sort, next) {
- redirectSort(this, sort, this.params.subreddit);
- })
- .get('/r/:subreddit/:sort');
-
SORTS.forEach(function(sort) {
app.router.get(`/${sort}`, function *(next) {
redirectSo... |
c5eda373bb0031430cb195a84e1f04195c676638 | client/src/index.jsx | client/src/index.jsx | /** @jsx React.DOM */
var $ = require('jquery');
var React = window.React = require('react');
var CommentBox = require('./app/components/comment-box');
$(function() {
React.renderComponent(
<CommentBox url="/api/comments" pollInterval={3000} />,
document.getElementById('content')
);
});
| /** @jsx React.DOM */
var $ = require('jquery');
var React = window.React = require('react');
var CommentBox = require('./app/components/comment-box');
$(function() {
React.render(
<CommentBox url="/api/comments" pollInterval={3000} />,
document.getElementById('content')
);
});
| Update deprecated React render syntax | Update deprecated React render syntax | JSX | mit | brentertz/react-tutorial-gulp-webpack | ---
+++
@@ -5,7 +5,7 @@
var CommentBox = require('./app/components/comment-box');
$(function() {
- React.renderComponent(
+ React.render(
<CommentBox url="/api/comments" pollInterval={3000} />,
document.getElementById('content')
); |
56ed099a631435e0fe594d05b93caf962b26d478 | src/components/UserList.jsx | src/components/UserList.jsx | var React = require('react');
import User from './User.jsx';
export default class UserList extends React.Component {
render() {
var userNodes = this.props.data.map(function (user) {
return (
<User key={user.key} name={user.name} count={user.count} />
);
});
... | var React = require('react');
import User from './User.jsx';
export default class UserList extends React.Component {
render() {
var data = this.props.data;
data.sort(function (a, b) {
return (a.count < b.count) ? 1 : -1;
});
var userNodes = data.map(function (user) {
... | Sort users by play count | Sort users by play count
| JSX | mit | xxdavid/lastfm-friends-who-listen | ---
+++
@@ -4,7 +4,11 @@
export default class UserList extends React.Component {
render() {
- var userNodes = this.props.data.map(function (user) {
+ var data = this.props.data;
+ data.sort(function (a, b) {
+ return (a.count < b.count) ? 1 : -1;
+ });
+ var userN... |
0eb064a473ab24eb3ee1d5d38c7f119466e2ceff | client/components/admin/includes/Notification.jsx | client/components/admin/includes/Notification.jsx | import React from 'react';
import moment from 'moment'
const Notification = ({message, time}) => {
const newTime = moment(time).format('MMMM Do YYYY, h:mm:ss a');
return (
<div>
<ul className="collection">
<li className="collection-item avatar" id="collection-item">
<i className="material-icons circle ... | import React from 'react';
import moment from 'moment'
const Notification = ({message, time}) => {
const newTime = moment(time).format('MMMM Do YYYY, h:mm a');
return (
<div>
<ul className="collection">
<li className="collection-item avatar" id="collection-item">
<i className="material-icons circle gre... | Hide seconds from displaying in notification time | bug(Fix-Notificatoon-Time): Hide seconds from displaying in notification time
| JSX | mit | nosisky/Hello-Books,nosisky/Hello-Books | ---
+++
@@ -2,7 +2,7 @@
import moment from 'moment'
const Notification = ({message, time}) => {
- const newTime = moment(time).format('MMMM Do YYYY, h:mm:ss a');
+ const newTime = moment(time).format('MMMM Do YYYY, h:mm a');
return (
<div>
<ul className="collection"> |
915387d1d117e1682d3a3b43eb785273c847f271 | src/components/Spinner/Spinner.jsx | src/components/Spinner/Spinner.jsx | import React from 'react';
import CircularProgress from 'material-ui/CircularProgress';
export default ({ size = 59.5, color = '#00BCD4' }) => (
<div style={{ textAlign: 'center' }}>
<CircularProgress size={size} color={color} />
</div>
);
| import React from 'react';
import CircularProgress from 'material-ui/CircularProgress';
export default ({ size = 59.5, color = '#00BCD4' }) => (
<div style={{ textAlign: 'center' }}>
<CircularProgress size={Math.max(size, 4)} color={color} />
</div>
);
| Fix spinner's error (again hehe) | Fix spinner's error (again hehe)
| JSX | mit | odota/ui,zya6yu/ui,coreymaher/ui,coreymaher/ui,zya6yu/ui,mdiller/ui,mdiller/ui,odota/ui,odota/ui,zya6yu/ui,mdiller/ui | ---
+++
@@ -3,6 +3,6 @@
export default ({ size = 59.5, color = '#00BCD4' }) => (
<div style={{ textAlign: 'center' }}>
- <CircularProgress size={size} color={color} />
+ <CircularProgress size={Math.max(size, 4)} color={color} />
</div>
); |
16001ff538b581d6ed989db96455d8f3114139f5 | widgets/timeline.jsx | widgets/timeline.jsx | /** @jsx React.DOM */
fresh.widgets.Timeline = React.createClass({
/**
* Input: {
* widget: 'Timeline',
* item: 'Author',
* data: 'http://localhost/static/users.json'
* }
*/
mixins: [fresh.mixins.SetIntervalMixin,
fresh.mixins.DataManagerMixin],
render: function() {
return ... | /** @jsx React.DOM */
fresh.widgets.List = React.createClass({
/**
* Input: {
* widget: 'List',
* data: 'http://localhost/static/users.json'
* }
*/
mixins: [fresh.mixins.SetIntervalMixin,
fresh.mixins.DataManagerMixin],
render: function() {
return (
<ul className="List">
... | Rename Timeline widget to List | Rename Timeline widget to List
| JSX | mit | kidaa/cosmos,skidding/react-cosmos,cef62/cosmos,Patreon/cosmos,react-cosmos/react-cosmos,gdi2290/cosmos,pekala/cosmos,cef62/cosmos,Patreon/cosmos,skidding/cosmos,skidding/cosmos,bbirand/cosmos,rrarunan/cosmos,rrarunan/cosmos,skidding/react-cosmos,bbirand/cosmos,pekala/cosmos,kwangkim/cosmos,gdi2290/cosmos,kwangkim/cosm... | ---
+++
@@ -1,10 +1,9 @@
/** @jsx React.DOM */
-fresh.widgets.Timeline = React.createClass({
+fresh.widgets.List = React.createClass({
/**
* Input: {
- * widget: 'Timeline',
- * item: 'Author',
+ * widget: 'List',
* data: 'http://localhost/static/users.json'
* }
*/
@@ -12,7 +11,7 @... |
08a6f1dfb9fe9a20ce2c91c889af154c3efe7561 | src/web/components/Space/Space.jsx | src/web/components/Space/Space.jsx | import React from 'react';
import PropTypes from 'prop-types';
const Space = ({ componentClass: Component, width, ...props }) => {
props.style = {
display: 'inline-block',
width: width,
...props.style
};
return (
<Component {...props} />
);
};
Space.propTypes = {
co... | import React from 'react';
import PropTypes from 'prop-types';
const Space = ({ componentClass: Component, width, ...props }) => {
if ((typeof width === 'string') && width.match(/^\d+$/)) {
width += 'px';
}
props.style = {
display: 'inline-block',
width: width,
...props.sty... | Add unit (px) to a numeric string | Add unit (px) to a numeric string
| JSX | mit | cheton/cnc,cheton/cnc.js,cheton/cnc.js,cncjs/cncjs,cncjs/cncjs,cheton/cnc,cheton/piduino-grbl,cheton/piduino-grbl,cheton/cnc.js,cheton/cnc,cncjs/cncjs,cheton/piduino-grbl | ---
+++
@@ -2,6 +2,10 @@
import PropTypes from 'prop-types';
const Space = ({ componentClass: Component, width, ...props }) => {
+ if ((typeof width === 'string') && width.match(/^\d+$/)) {
+ width += 'px';
+ }
+
props.style = {
display: 'inline-block',
width: width,
@@ -17,7 +... |
4736c4b55b06f55e6dd1ff55d07598dedd520f73 | app/layout/Layout.jsx | app/layout/Layout.jsx | import React from 'react'
import Header from './Header.jsx'
import Menu from './Menu.jsx'
let Layout = React.createClass({
render: function(){
return (
<div>
<Menu />
<div id="main" role="main">
{this.props.children}
</div>
... | import React from 'react'
import Navbar from './Navbar.jsx'
import Header from './Header.jsx'
import Menu from './Menu.jsx'
let Layout = React.createClass({
render: function(){
return (
<div>
<Navbar />
<Menu />
<div id="main" rol... | Add navigation bar to layout | Add navigation bar to layout
| JSX | agpl-3.0 | mbrossard/go-experiments,mbrossard/go-experiments,mbrossard/go-experiments | ---
+++
@@ -1,12 +1,14 @@
import React from 'react'
+import Navbar from './Navbar.jsx'
import Header from './Header.jsx'
import Menu from './Menu.jsx'
let Layout = React.createClass({
render: function(){
return (
<div>
- <Menu />
+ <Navbar />
+ ... |
4b9843cd37d2531f9b9fbc5dddec0b38e5efd047 | app/scripts/components/CapturedPieces.jsx | app/scripts/components/CapturedPieces.jsx | import React from 'react';
class CapturedPieces extends React.Component {
render() {
return (
<div className="panel panel-default">
<div className="panel-heading"><strong>Captured Pieces</strong></div>
<div className="panel-body" style={{height: '200px'}}></div>
</div>
);
}
}
e... | import React from 'react';
import GameStore from '../stores/GameStore';
class CapturedPieces extends React.Component {
constructor() {
super();
this.state = {
pieces: GameStore.getGameFEN().split(' ')[0].replace(/[\d\/]/g,'')
};
}
capturedPieces(pieces) {
var captures = '';
for (var p ... | Implement captured pieces; @TODO: fix captures for pawn promotion | Implement captured pieces; @TODO: fix captures for pawn promotion
| JSX | mit | gnidan/foodtastechess-client,gnidan/foodtastechess-client | ---
+++
@@ -1,11 +1,49 @@
import React from 'react';
+import GameStore from '../stores/GameStore';
class CapturedPieces extends React.Component {
+ constructor() {
+ super();
+ this.state = {
+ pieces: GameStore.getGameFEN().split(' ')[0].replace(/[\d\/]/g,'')
+ };
+ }
+
+ capturedPieces(pieces) ... |
d377f44618cbb6e477792a2736c20a8d022d8179 | src/client/components/Dashboard.jsx | src/client/components/Dashboard.jsx | import PropTypes from 'prop-types'
import React from 'react'
import CompanyLists from './CompanyLists'
import ReferralList from './ReferralList'
import TabNav from './TabNav'
const Dashboard = ({ id }) => (
<TabNav
id={`${id}.TabNav`}
label="Dashboard"
selectedIndex={0}
tabs={[
{
label... | import PropTypes from 'prop-types'
import React from 'react'
import styled from 'styled-components'
import { GREY_2 } from 'govuk-colours'
import CompanyLists from './CompanyLists'
import ReferralList from './ReferralList'
import TabNav from './TabNav'
const StyledDiv = styled('div')`
border-top: 4px solid ${GREY_2... | Add new container to replace dashboard section | Add new container to replace dashboard section
| JSX | mit | uktrade/data-hub-fe-beta2,uktrade/data-hub-frontend,uktrade/data-hub-frontend,uktrade/data-hub-frontend,uktrade/data-hub-fe-beta2 | ---
+++
@@ -1,26 +1,35 @@
import PropTypes from 'prop-types'
import React from 'react'
+import styled from 'styled-components'
+import { GREY_2 } from 'govuk-colours'
import CompanyLists from './CompanyLists'
import ReferralList from './ReferralList'
import TabNav from './TabNav'
+const StyledDiv = styled('d... |
a634669b7c2cb132715a96618144d88cad3b4048 | app/features/feedback/classifier/components/feedback-modal.jsx | app/features/feedback/classifier/components/feedback-modal.jsx | import PropTypes from 'prop-types';
import React from 'react';
import Translate from 'react-translate-component';
import counterpart from 'counterpart';
import SubjectViewer from '../../../../components/subject-viewer';
import ModalFocus from '../../../../components/modal-focus';
/* eslint-disable max-len */
counterpa... | import PropTypes from 'prop-types';
import React from 'react';
import Translate from 'react-translate-component';
import counterpart from 'counterpart';
import SubjectViewer from '../../../../components/subject-viewer';
import ModalFocus from '../../../../components/modal-focus';
/* eslint-disable max-len */
counterpa... | Fix proptype error in feedback modal when not passed any subject viewer props | Fix proptype error in feedback modal when not passed any subject viewer props
| JSX | apache-2.0 | zooniverse/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,amyrebecca/Panoptes-Front-End,amyrebecca/Panoptes-Front-End | ---
+++
@@ -55,7 +55,10 @@
FeedbackModal.propTypes = {
messages: PropTypes.arrayOf(PropTypes.string),
- subjectViewerProps: PropTypes.object
+ subjectViewerProps: PropTypes.oneOfType([
+ PropTypes.object,
+ PropTypes.bool
+ ])
};
export default FeedbackModal; |
716b73ccd5d08d14d045a3d98bc53161a459fc48 | app/components/elements/Tooltip.jsx | app/components/elements/Tooltip.jsx | import React from 'react';
import {LinkWithTooltip} from 'react-foundation-components/lib/global/tooltip';
export default ({children, t}) => {
//return (<LinkWithTooltip tooltipContent={t} tooltipPosition="top" tooltipIndicator={false}>
// {children}
//</LinkWithTooltip>);
return <span title={t}>{ch... | import React from 'react';
import {LinkWithTooltip} from 'react-foundation-components/lib/global/tooltip';
export default ({children, t}) => {
//return (<LinkWithTooltip tooltipContent={t} tooltipPosition="top" tooltipIndicator={false}>
// {children}
//</LinkWithTooltip>);
return <span style={{curso... | Use 'help' cursor to indicate tooltips | Use 'help' cursor to indicate tooltips
| JSX | mit | steemit/steemit.com,enisey14/platform,TimCliff/steemit.com,TimCliff/steemit.com,steemit-intl/steemit.com,GolosChain/tolstoy,enisey14/platform,steemit/steemit.com,steemit-intl/steemit.com,steemit/steemit.com,GolosChain/tolstoy,GolosChain/tolstoy,TimCliff/steemit.com | ---
+++
@@ -5,5 +5,5 @@
//return (<LinkWithTooltip tooltipContent={t} tooltipPosition="top" tooltipIndicator={false}>
// {children}
//</LinkWithTooltip>);
- return <span title={t}>{children}</span>;
+ return <span style={{cursor: "help"}} title={t}>{children}</span>;
} |
e92e124ed118aabfb5be1c7ebae092187adc1c0c | src/frontend/RightColumn.jsx | src/frontend/RightColumn.jsx | import React from 'react';
import Twitter from './Twitter';
const RightColumn = React.createClass({
render() {
return (
<div className="right-column">
<Twitter path="hashtag/gbgtech" id="690568248279109633">#gbgtech tweets</Twitter>
</div>
);
}
});
ex... | import React from 'react';
import Twitter from './Twitter';
const RightColumn = React.createClass({
render() {
return (
<div className="right-column">
<Twitter path="search?q=%23gbgtech%20-RT" id="696282839873093633">#gbgtech tweets</Twitter>
</div>
);
... | Remove retweets from twitter feed | Remove retweets from twitter feed
| JSX | mit | gbgtech/gbgtechWeb,gbgtech/gbgtechWeb | ---
+++
@@ -8,7 +8,7 @@
render() {
return (
<div className="right-column">
- <Twitter path="hashtag/gbgtech" id="690568248279109633">#gbgtech tweets</Twitter>
+ <Twitter path="search?q=%23gbgtech%20-RT" id="696282839873093633">#gbgtech tweets</Twitter>
... |
2195a02625273e928d786974a7154d35f764b73d | src/sentry/static/sentry/app/views/settings/team/allTeamsList.jsx | src/sentry/static/sentry/app/views/settings/team/allTeamsList.jsx | import PropTypes from 'prop-types';
import React from 'react';
import {Link} from 'react-router';
import SentryTypes from '../../../proptypes';
import Panel from '../components/panel';
import AllTeamsRow from './allTeamsRow';
import {tct} from '../../../locale';
class AllTeamsList extends React.Component {
static ... | import PropTypes from 'prop-types';
import React from 'react';
import {Link} from 'react-router';
import SentryTypes from '../../../proptypes';
import Panel from '../components/panel';
import AllTeamsRow from './allTeamsRow';
import {tct} from '../../../locale';
class AllTeamsList extends React.Component {
static ... | Use correct settings link for create team | fix(teams): Use correct settings link for create team
| JSX | bsd-3-clause | mvaled/sentry,mvaled/sentry,ifduyue/sentry,looker/sentry,beeftornado/sentry,looker/sentry,looker/sentry,mvaled/sentry,mvaled/sentry,beeftornado/sentry,beeftornado/sentry,ifduyue/sentry,mvaled/sentry,looker/sentry,ifduyue/sentry,looker/sentry,mvaled/sentry,ifduyue/sentry,ifduyue/sentry | ---
+++
@@ -36,11 +36,13 @@
return <Panel>{teamNodes}</Panel>;
}
+ // TODO(jess): update this link to use url prefix when create team
+ // has been moved to new settings
return tct(
"You don't have any teams for this organization yet. Get started by [link:creating your first team].",
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.