path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/Search/Search.js | liuweiGL/eastcoal_mgr_react | import React from 'react'
import PropTypes from 'prop-types'
import ReactDOM from 'react-dom'
import styles from './Search.less'
import { Input, Select, Button, Icon } from 'antd'
class Search extends React.Component {
state = {
clearVisible: false,
selectValue: (this.props.select && this.props.selectProps) ... |
ReactNative/node_modules/react-native-safe-area-view/index.js | tahashahid/cloud-computing-2017 | import React, { Component } from 'react';
import {
DeviceInfo,
Dimensions,
InteractionManager,
NativeModules,
Platform,
StyleSheet,
Animated,
} from 'react-native';
import withOrientation from './withOrientation';
// See https://mydevice.io/devices/ for device dimensions
const X_WIDTH = 375;
const X_HEIG... |
src/containers/HomePage.js | mathieulesniak/react-starter-kit | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import * as actions from '../actions/myAppActions';
class HomePage extends Component {
constructor(props) {
super(props);
this.triggerCounterIncrease = this.triggerCounterIncrease.bind(this)... |
client/node_modules/react-redux/lib/hooks/useReduxContext.js | Dans-labs/dariah | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.useReduxContext = useReduxContext;
var _react = require("react");
var _invariant = _interopRequireDefault(require("invariant"));
var _Context = require("../components/Context");
/... |
src/app/core/atoms/icon/icons/reload.js | blowsys/reservo | import React from 'react'; const Reload = (props) => <svg {...props} viewBox="0 0 24 24"><g><g><path d="M7.41709042,14 C8.18919313,15.7639252 9.95060762,17 12,17 C14.0461471,17 15.810251,15.7659048 16.5831263,14 L18.7094958,14 C17.8472523,16.8914889 15.1645682,19 12,19 C9.45367486,19 7.22489715,17.6370052 6,15.6040919 ... |
client/components/main/gallery/index.js | jasonf7/memories-of-harambe | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import { IndexLink } from 'react-router';
import {GridList, GridTile} from 'material-ui/GridList';
import IconButton from 'material-ui/IconButton';
import Subheader from 'material-ui/Subheader';
import St... |
examples/counter/containers/CounterApp.js | iam4x/redux | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'redux/react';
import Counter from '../components/Counter';
import * as CounterActions from '../actions/CounterActions';
@connect(state => ({
counter: state.counter
}))
export default class CounterApp extend... |
src/components/block-quote.js | lowsky/spectacle | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { getStyles } from '../utils/base';
import styled from 'react-emotion';
const StyledBlockQuote = styled.blockquote(props => props.styles);
export default class BlockQuote extends Component {
render() {
const styles = [
th... |
components/nav.js | Digital-Sandwich/ghibli-api-next | import React from 'react'
import Link from 'next/link';
export default class Nav extends React.Component {
render() {
let linkStyleLeft = {
textAlign: 'left',
float: 'left',
paddingRight: '1em',
paddingLeft: '1em',
verticalAlign: 'middle',
lineHeight: '30px',
};
let linkStyleRight = {
textAl... |
fields/types/textarray/TextArrayFilter.js | benkroeger/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import {
FormField,
FormInput,
FormSelect,
} from '../../../admin/client/App/elemental';
const MODE_OPTIONS = [
{ label: 'Contains', value: 'contains' },
{ label: 'Exactly', value: 'exactly' },
{ label: 'Begins with', value: 'beginsWith' },
{ ... |
src/index.js | pd4d10/chrome-ui | import React from 'react'
import ReactDOM from 'react-dom'
import { createStore, applyMiddleware, compose } from 'redux'
import { Provider } from 'react-redux'
import thunk from 'redux-thunk'
import { v4 } from 'uuid'
import App from './containers/app'
import reducers from './reducers'
const ids = [v4(), v4(), v4()]
... |
admin/client/App/shared/Portal.js | andrewlinfoot/keystone | /**
* Used by the Popout component and the Lightbox component of the fields for
* popouts. Renders a non-react DOM node.
*/
import React from 'react';
import ReactDOM from 'react-dom';
module.exports = React.createClass({
displayName: 'Portal',
portalElement: null, // eslint-disable-line react/sort-comp
compone... |
geonode/monitoring/frontend/src/pages/error-details/index.js | mcldev/geonode | import React from 'react';
import PropTypes from 'prop-types';
import Header from '../../components/organisms/header';
import ErrorDetails from '../../components/organisms/error-detail';
import styles from './styles';
class Error extends React.Component {
static propTypes = {
params: PropTypes.object.isRequired... |
src/index.js | mimccio/Mbtn-site | import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
ReactDOM.render(
<App />,
document.getElementById('root')
)
|
assets/jqwidgets/demos/react/app/tree/loadondemandwithxhr/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxTree from '../../../jqwidgets-react/react_jqxtree.js';
class App extends React.Component {
componentDidMount() {
this.refs.myTree.selectItem(document.getElementById('home'));
this.refs.myTree.expandItem(document.getElementById(... |
demos/demo/src/components/LangSelector/index.js | idream3/cerebral | import React from 'react'
import {connect} from 'cerebral/react'
import {signal, state} from 'cerebral/tags'
import translations from '../../common/computed/translations'
import * as LANGS from '../../common/translations'
const LANG_OPTS = Object.keys(LANGS).map(lang => (
[lang, LANGS[lang].language]
))
export defa... |
app/SnackBar/SnackBarContainer.js | RyanWangGit/WhatsNear | import React from 'react';
import { connect } from 'react-redux';
import Snackbar from 'material-ui/Snackbar';
import { closeSnackbar } from './SnackBarAction';
const mapStateToProps = (state) => {
return {
message: state.snackBar.snackBarText,
open: state.snackBar.isSnackBarOpen,
autoHideD... |
app/javascript/mastodon/components/icon_button.js | MitarashiDango/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon from 'mastodon/components/icon';
import AnimatedNumber from 'mastodon/components/animated_number';
export default class IconButton extends React.PureComponent {
static propTypes = {
className: PropTyp... |
admin/client/App/screens/List/components/ListControl.js | Adam14Four/keystone | import React from 'react';
import classnames from 'classnames';
var ListControl = React.createClass({
propTypes: {
dragSource: React.PropTypes.func,
onClick: React.PropTypes.func,
type: React.PropTypes.oneOf(['check', 'delete', 'sortable']).isRequired,
},
renderControl () {
var icon = 'octicon octicon-';
... |
test/helpers/shallowRenderHelper.js | codinglobster/PHOTO-GALLERY | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
src/svg-icons/maps/local-hospital.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalHospital = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 11h-4v4h-4v-4H6v-4h4V6h4v4h4v4z"/>
</SvgIcon>
);
MapsLocal... |
admin/src/App.js | teohhanhui/api-platform | import React from 'react';
import { HydraAdmin } from '@api-platform/admin';
export default () => <HydraAdmin entrypoint={process.env.REACT_APP_API_ENTRYPOINT}/>;
|
public/systemjs/app/pages/fetch/jade.js | inquisive/keystonejs-site | import React from 'react'
import jade from 'jade/lib/runtime'
import jadeTemplates from '../../html/templates'
import api from '../../html/markedApi'
import _ from 'lodash'
import {languages, routes, config} from '../../config'
import {baseRoute, cleanPath, getFileName} from '../../common/util'
import Debug from 'debug... |
public/js/recent-games-list.js | telrikk/ask-zilean | import React from 'react';
import RecentGame from 'recent-game';
export default function RecentGamesList(props) {
const gameNodes = props.recentGames.map(game =>
(
<RecentGame key={game.id} game={game} />
)
);
if (props.recentGames.length === 0) {
return null;
}
return (
<div className="recen... |
src/modules/forms/plugins/CircuitBreaker/CircuitBreakerPlugin.js | hellofresh/janus-dashboard | import React from 'react'
import PropTypes from 'prop-types'
import { Field } from 'redux-form'
import block from '../../../../helpers/bem-cn'
import parse from '../../../../helpers/parse-value'
import Row from '../../../Layout/Row/Row'
import Label from '../../../../components/Label/Label'
import Input from '../../.... |
smsgw/static/js/outbox/list.react.js | VojtechBartos/smsgw | 'use strict';
import React from 'react';
import {Table, DropdownButton, MenuItem} from 'react-bootstrap';
import moment from 'moment';
import * as actions from './actions';
import * as store from './store';
import Component from '../components/component.react';
import Spinner from '../components/spinner.react';
import... |
src/scenes/home/gala/gala.js | miaket/operationcode_frontend | import React from 'react';
import Section from 'shared/components/section/section';
const Gala = () => (
<div>
<Section title="Operation Code Gala" theme="white">
<div>
<p>The Operation Code Gala has been postponed. More information is forthcoming.</p>
<p> We appreciate your patience and co... |
doc/src/pages/examples/extend-fly-controls.js | mapillary/mapillary-js | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import React from 'react';
import Layout from '@theme/Layout';
import {Code} from '../../js/components/Code';
import... |
src/svg-icons/image/rotate-left.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageRotateLeft = (props) => (
<SvgIcon {...props}>
<path d="M7.11 8.53L5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47zM6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.... |
apps/jest/src/counterList/counterList.js | aruns07/Playground | import React from 'react';
import Counter from '../counter/counter';
export default class CounterList extends React.Component {
constructor(props) {
super(props);
this.state = {
count: 1
};
this.addCounter = this.addCounter.bind(this);
}
addCounter() {
t... |
app/javascript/mastodon/features/compose/components/search_results.js | ashfurrow/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
import AccountContainer from '../../../containers/account_container';
import StatusContainer from '../../../containers/sta... |
webapp/display/changes/utils.js | bowlofstew/changes | import React from 'react';
import * as utils from 'es6!utils/utils';
var cx = React.addons.classSet;
/* A variety of changes-specific functions:
* 1. Some formatters, e.g. creating a shorter name from a repository url
*
* 2. Things that seemed too small to be worth making into tags, e.g. taking an
* author objec... |
index.android.js | Matzielab/imagination-react-native | // @flow
import React, { Component } from 'react';
import {AppRegistry} from 'react-native';
import Start from './components/Start'
export default class Imagination extends Component {
render() {
return (
<Start />
);
}
}
AppRegistry.registerComponent('Imagination', () => Imagination);
|
src/components/TabList.js | mzabriskie/react-tabs | import PropTypes from 'prop-types';
import React from 'react';
import cx from 'clsx';
const defaultProps = {
className: 'react-tabs__tab-list',
};
const propTypes = {
children: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
className: PropTypes.oneOfType([
PropTypes.string,
PropTypes.array,
... |
js/fw/LessonHelper.js | leftstick/react-lesson | 'use strict';
import React from 'react';
class LessonHelper extends React.Component {
constructor(props) {
super(props);
}
shouldComponentUpdate(nextProps, nextState) {
return this.props.text !== nextProps.text;
}
render() {
return (
<div style={ styles.helpe... |
src/views/YearsView.js | YouCanBookMe/react-datetime | import React from 'react';
import ViewNavigation from '../parts/ViewNavigation';
export default class YearsView extends React.Component {
static defaultProps = {
renderYear: ( props, year ) => <td { ...props }>{ year }</td>,
};
render() {
return (
<div className="rdtYears">
<table>
<thead>
{ ... |
tests/react_native_tests/test_data/native_code/Scrollview/app/components/UserConnect_2/index.js | ibhubs/sketch-components | /**
* @flow
*/
import React from 'react'
import PropTypes from 'prop-types'
import { observer } from 'mobx-react/native'
import styles from './styles'
import UserConnect_2 from './component'
@observer
class UserConnect_2Wrapper extends React.Component {
render() {
return (
<UserConnect_2
{...thi... |
node_modules/react-bootstrap/es/Well.js | NathanBWaters/jb_club | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/components/SendControls.js | jhkmjnhamster/vcash-electron | import React from 'react'
import { translate } from 'react-i18next'
import { action, observable } from 'mobx'
import { inject, observer } from 'mobx-react'
import { Button, Popconfirm, Switch, Tooltip } from 'antd'
@translate(['wallet'], { wait: true })
@inject('rates', 'send', 'wallet')
@observer
class Send extends R... |
client/src/components/recipe/Form.js | noinc/SimpleStorefront | import React, { Component } from 'react';
import { Field, reduxForm } from 'redux-form';
import PropTypes from 'prop-types';
class Form extends Component {
static propTypes = {
handleSubmit: PropTypes.func.isRequired,
error: PropTypes.string
};
renderField = data => {
data.input.className = 'form-co... |
docs/src/sections/FormSection.js | egauci/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function FormSection() {
return (
<div className="bs-docs-section">
<h1 className="page-header">
<Anch... |
client/src/components/SignInPage.js | fmoliveira/rexql-boilerplate | import React from 'react'
import { Link } from 'react-router'
import { FormatMessage } from 'react-easy-intl'
import Hero from './Hero'
import SignInFormContainer from '../containers/SignInFormContainer'
export default () => (
<section className='hero is-fullheight is-dark is-bold'>
<div className='hero-body'>
... |
app/containers/HomePage/Header.js | rapicastillo/beautifulrising-client | /**
*
* ToolListItem
*
*/
import React from 'react';
import styled from 'styled-components';
import { FormattedMessage, injectIntl } from 'react-intl';
import messages from './messages';
import Link from 'components/Link';
import TypeMenu from 'components/TypeMenu';
import ToolTypeArea from 'components/ToolTypeArea';... |
src/components/NotFoundPage.js | Oliboy50/oliver-thebault-front | import React from 'react';
const NotFoundPage = () => {
return (
<div>
<h1>404 Page Not Found</h1>
</div>
);
};
export default NotFoundPage;
|
components/DeviceListItem.js | siarhei-luskanau/react-native-iot-doorbell | 'use strict';
import React from 'react';
import ReactNative, { View, TouchableHighlight, Text } from 'react-native';
class DeviceListItem extends React.Component {
render() {
return (
<TouchableHighlight onPress={this.props.onPress}>
<View>
<Text>{this.props.item}</Text>
</View>
... |
components/Foam.js | KCN8/Raspberry-Pint |
import React, { Component } from 'react';
import {StyleSheet, Image, View, } from 'react-native'
import * as Animatable from 'react-native-animatable';
import { Container, Title, Content, Item, FooterTab, Footer, Button, Left, Right, Body, Icon, Text } from 'native-base';
export default class Foam extends Component ... |
src/js/CounterSign.js | merlox/dapp-transactions | import React from 'react'
import Header from './Header'
import './../stylus/index.styl'
import './../stylus/countersign.styl'
class CounterSign extends React.Component {
constructor(props) {
super(props)
}
render() {
return (
<div style={{width: '100%'}}>
<h1 className="sign-... |
ui/src/main/js/components/InstanceViz.js | apache/aurora | import React from 'react';
import { Link } from 'react-router-dom';
export default function InstanceViz({ instances, jobKey }) {
const {job: {role, environment, name}} = jobKey;
const className = (instances.length > 1000)
? 'small'
: (instances.length > 100) ? 'medium' : 'big';
return (<ul className={`i... |
web/app/source/tags.js | seanhess/serials | // @flow
import React from 'react'
import Select from 'react-select'
import {words, uniq} from 'lodash'
import {TagCount} from '../model/source'
(require : any)('react-select/dist/default.css')
// I need to load the available tags
export class TagsInput extends React.Component {
props: {
value: Array<string>... |
app/containers/Input/index.js | dreamdojo/converter | import React from 'react';
import styled from 'styled-components';
import Papa from 'papaparse';
const Input = styled.input`
height: 100px;
width: 300px;
background-color: #fff;
border: deeppink 5px solid;
line-height: 100px;
text-align: center;
`;
const Shell = styled.div`
text-align: center;
width: ... |
client/src/app/components/spinner.js | jhuntoo/starhackit | import React from 'react';
import CircularProgress from 'material-ui/lib/circular-progress';
export default React.createClass( {
render() {
return (
<CircularProgress size={0.4}/>
);
}
} );
|
src/icons/BuildIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class BuildIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M45.4 37.9L27.1 19.6c1.8-4.6.8-10.1-2.9-13.8-4-4-10-4.8-14.8-2.5l8.7 8.7-6.1 6.1-8.7-8.7C1 14.2 1.8 20.2 5.8... |
src/client/react/user/views/TeamDashboard/TeamPointsPanel.js | bwyap/ptc-amazing-g-race | import React from 'react';
import PropTypes from 'prop-types';
import autobind from 'core-decorators/es/autobind';
import { graphql } from 'react-apollo';
import { getTeam } from '../../../../graphql/team'
import { Button, Intent } from '@blueprintjs/core';
import NotificationToaster from '../../../components/Notificat... |
src/components/run.js | rkdavidson/tangentially-reading | import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import configureStore from '../stores/configureStore';
import {renderDevTools} from '../utils/devTools';
import TangentiallyReadingApp from './TangentiallyReadingApp/TangentiallyReadingApp';
const store = configureStore... |
app/javascript/mastodon/features/ui/components/drawer_loading.js | Craftodon/Craftodon | import React from 'react';
const DrawerLoading = () => (
<div className='drawer'>
<div className='drawer__pager'>
<div className='drawer__inner' />
</div>
</div>
);
export default DrawerLoading;
|
src/PageHeader.js | lzcmaro/react-ratchet | import React from 'react';
import {classesDecorator} from './utils/componentDecorators';
import classnames from 'classnames';
import ratchetUtils from './utils/ratchetUtils';
import NavBar from './NavBar';
@classesDecorator('header')
class PageHeader extends React.Component {
render() {
return (
<div
{...t... |
react-components/src/library/components/stem-finder-result.js | concord-consortium/rigse | import React from 'react'
import Component from '../helpers/component'
import { MakeTeacherEditionLink } from '../helpers/make-teacher-edition-links'
import GradeLevels from './grade-levels'
import StemFinderResultStandards from './stem-finder-result-standards'
import RelatedResourceResult from './related-resource-resu... |
front-end/react/components/filesystem/treebeard/src/components/node.js | Sparkx120/ESA | 'use strict';
import React from 'react';
import {VelocityTransitionGroup} from 'velocity-react';
import NodeHeader from './header';
class TreeNode extends React.Component {
constructor(props){
super(props);
this.onClick = this.onClick.bind(this);
}
onClick(){
let toggled = !this.p... |
actor-apps/app-web/src/app/components/common/AvatarItem.react.js | Havi4/actor-platform | import React from 'react';
import classNames from 'classnames';
class AvatarItem extends React.Component {
static propTypes = {
className: React.PropTypes.string,
image: React.PropTypes.string,
placeholder: React.PropTypes.string.isRequired,
size: React.PropTypes.string,
title: React.PropTypes.st... |
search_frontend/search-app/src/app/index.js | CRAWLZSTAGE/infra | import React from 'react';
import { render } from 'react-dom';
import { Header } from "./components/Header";
import { Input } from "./components/Input";
import { Results } from "./components/Results";
class App extends React.Component {
constructor(props) {
super(props);
this.state = {
... |
src/component/ContentLayout/index.js | Goblinlordx/cv-gen | import React from 'react';
import styles from 'styles';
import './style.css';
const {mui} = styles;
const style = {
container: {
position: 'relative',
minHeight: '100%',
margin: `${styles.decoVerticalPadding}px ${styles.decoHorizontalPadding}px`,
padding: `${styles.decoVerticalPadding}px ${styles.de... |
js/components/list/list-icon.js | bengaara/simbapp |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Platform } from 'react-native';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Icon, ListItem, Text, Badge, Left, Right, Body, Switch, Radio, Picker, Separator... |
src/components/TeamView.js | dggriffin/noteworthee | require('styles/index.css');
import styles from 'styles/TeamView.css'
import React from 'react';
import Rebase from 're-base';
import NoteboardContainer from 'containers/NoteboardContainer';
import NoteDialogContainer from 'containers/NoteDialogContainer';
import AddTagDialogContainer from 'containers/AddTagDialogCont... |
src/components/RichField/index.js | stackscz/re-app | /* eslint-disable react/prop-types */
import React from 'react';
import ErrorMessages from 'components/ErrorMessages';
import blissComponent from 'decorators/blissComponent';
/**
* Add enhance redux-form field component with error messages and label
*
*/
const RichField = ({
component: Component,
input: {
label... |
app/javascript/mastodon/features/standalone/hashtag_timeline/index.js | abcang/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { expandHashtagTimeline } from 'mastodon/actions/timelines';
import Masonry from 'react-masonry-infinite';
import { List as ImmutableList } from 'immut... |
geonode/monitoring/frontend/src/components/atoms/hr/index.js | ppasq/geonode | import React from 'react';
import PropTypes from 'prop-types';
import styles from './styles';
class HR extends React.Component {
static propTypes = {
children: PropTypes.node,
style: PropTypes.object,
}
render() {
return (
<hr style={styles.hr} />
);
}
}
export default HR;
|
client/pages/user/UpdatePost.js | collectiveidea/rails_relay_authentication | import React from 'react'
import PropTypes from 'prop-types'
import { routerShape } from 'found/lib/PropTypes'
import { createFragmentContainer, graphql } from 'react-relay'
import Formsy from 'formsy-react'
import { FormsyText } from 'formsy-material-ui'
import RaisedButton from 'material-ui/RaisedButton'
import Imag... |
src/components/common/FavoriteToggler.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { injectIntl } from 'react-intl';
import { FavoriteButton, FavoriteBorderButton } from './IconButton';
import messages from '../../resources/messages';
const FavoriteToggler = (props) => {
const { isFavorited, onSetFavorited } = props;
const { f... |
src/app/common/UserInterface/components/Time.js | toxzilla/app | import React from 'react';
import shallowCompare from 'react-addons-shallow-compare';
import Text from './Text';
import {fromMS} from './utils/dateMath';
export default class Time extends React.Component {
static displayName = 'Time'
static propTypes = {
date: function (props, propName) {
if (!(props[... |
admin/client/components/PopoutHeader.js | Redmart/keystone | import React from 'react';
import Transition from 'react-addons-css-transition-group';
var PopoutHeader = React.createClass({
displayName: 'PopoutHeader',
propTypes: {
leftAction: React.PropTypes.func,
leftIcon: React.PropTypes.string,
title: React.PropTypes.string.isRequired,
transitionDirection: React.Prop... |
client/pages/post/Posts.js | collectiveidea/rails_relay_authentication | import React from 'react'
import PropTypes from 'prop-types'
import { routerShape } from 'found/lib/PropTypes'
import { createPaginationContainer, graphql } from 'react-relay'
import PostList from '../../components/post/PostList'
export const POST_COUNT = 6
const Posts = ({ viewer, router, relay }) => (
<div>
... |
pootle/static/js/browser/components/FailingChecks.js | evernote/zing | /*
* Copyright (C) Zing contributors.
*
* This file is a part of the Zing project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import { t } from 'utils/i18n';
i... |
packages/material-ui-icons/src/GroupWork.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let GroupWork = props =>
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM8 17.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zM9.... |
node_modules/react-router/es/IndexRoute.js | manojadd/bob-demo | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { component, components, falsy } from './InternalPropTypes';
var func = React.PropTypes.func;
/**
* An <IndexRoute> i... |
src/svg-icons/navigation/arrow-drop-down-circle.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowDropDownCircle = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 12l-4-4h8l-4 4z"/>
</SvgIcon>
);
NavigationArrowDropDownCircle =... |
docs/src/examples/addons/Radio/States/RadioExampleChecked.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Radio } from 'semantic-ui-react'
const RadioExampleChecked = () => (
<Radio label='This radio comes pre-checked' defaultChecked />
)
export default RadioExampleChecked
|
Faw.Web.Client/src/components/Headers/LoginHeader/LoginHeader.js | Demenovich-A-J/Family-s-adventure-world | import React from 'react'
import FawLogo from 'assets/FawLogo.png'
import './LoginHeader.scss'
export const LoginHeader = () => (
<div>
<img src={FawLogo} />
</div>
)
export default LoginHeader
|
src/ui/board.js | josmardias/tic-tac-toe | import React from 'react'
import chunk from 'lodash.chunk'
import Tile from './tile'
import './board.css'
const noop = () => {}
const Board = ({
onClick = noop,
grid = [],
symbol = { 0: '', 1: 'X', 2: 'O' },
}) => (
<div className="board">
{ chunk(grid || [], 3).map((row, gridIndex) => (
<div class... |
examples/PreloaderCircular.js | chris-gooley/react-materialize | import React from 'react';
import Row from '../src/Row';
import Col from '../src/Col';
import Preloader from '../src/Preloader';
export default
<Row>
<Col s={4}>
<Preloader size='big'/>
</Col>
<Col s={4}>
<Preloader flashing/>
</Col>
<Col s={4}>
<Preloader size='small'/>
</Col>
</Row>;
|
src/parser/deathknight/unholy/modules/features/AlwaysBeCasting.js | sMteX/WoWAnalyzer | import React from 'react';
import CoreAlwaysBeCasting from 'parser/shared/modules/AlwaysBeCasting';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import SpellLink from 'common/SpellLink';
class AlwaysBeCasting ex... |
examples/js/sort/default-sort-table.js | neelvadgama-hailo/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
index.ios.js | zhongzhu/aizengshu | /**
* 爱赠书:断舍离的时候把旧书扔掉,倒不如看看或许别人正好需要这本书?
*
* https://github.com/zhongzhu/aizengshu
*
* @zhongzhu
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TabBarIOS,
WebView
} from 'react-native';
import AllBooks from './ios_views/allBooks';
import DonateBookNavigator... |
src/containers/App.js | yyssc/ssc_web-boilerplate | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import Top from '../components/Top';
import Footer from '../components/Footer';
import Sidebar from '../components/Sidebar';
class App extends React.Component {
render()... |
src/esm/components/action/button/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["children", "modifier", "size", "className", "rounded", "borderRadius", "disabled", "tag", "as", "fit", "mobileFit", "active"];
import React from 'reac... |
app/containers/LocaleToggle/index.js | mmaedel/react-boilerplate | /*
*
* LanguageToggle
*
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import Toggle from 'components/Toggle';
import Wrapper from './Wrapper';
import messages from './messages';
import { appLocales } from '../../i18n';
import { changeLocale } from ... |
src/routes/Items/components/Items.js | michaelgu95/ZltoReduxCore | import React, { Component } from 'react';
import { Link } from 'react-router';
import functional from 'react-functional';
import Modal from 'boron/DropModal';
import _ from 'lodash';
import Spinner from 'react-spinkit';
const modalStyle = {
width: 'inherit',
height: 'inherit'
};
export function Item({item}) {... |
lens-ui/app/components/CubeTreeComponent.js | sushrutikhar/grill | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... |
Realization/frontend/czechidm-core/src/content/identity/IdentityDelegations.js | bcvsolutions/CzechIdMng | import React from 'react';
import { connect } from 'react-redux';
//
import * as Basic from '../../components/basic';
import { IdentityManager, DelegationDefinitionManager } from '../../redux';
import SearchParameters from '../../domain/SearchParameters';
import DelegationDefinitionTable from '../delegation/DelegationD... |
app/components/variable-type-select.js | paulsonnentag/qwery-me | import React from 'react';
import {VARIABLE} from '../types';
import {addVariable} from '../actions';
import store from '../store';
export default class VariableTypeSelect extends React.Component {
addVariable (type) {
store.dispatch(
addVariable({
type,
name: getVariableName(type)
}... |
docs/src/app/components/pages/components/DatePicker/ExampleInline.js | pradel/material-ui | import React from 'react';
import DatePicker from 'material-ui/DatePicker';
const DatePickerExampleInline = () => (
<div>
<DatePicker hintText="Portrait Inline Dialog" container="inline" />
<DatePicker hintText="Landscape Inline Dialog" container="inline" mode="landscape" />
</div>
);
export default DateP... |
node_modules/enzyme/src/Utils.js | NathanBWaters/jb_club | /* eslint no-use-before-define:0 */
import isEqual from 'lodash/isEqual';
import React from 'react';
import is from 'object-is';
import {
isDOMComponent,
findDOMNode,
childrenToArray,
} from './react-compat';
import {
REACT013,
REACT15,
} from './version';
function internalInstanceKey(node) {
return Object... |
lib-module-node7/layout/Body.js | turacojs/fody | import React from 'react';
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
/* eslint-disable jsx-a11y/html-has-lang */
export default ((_ref) => ... |
ChatsUP/src/components/chats.js | michelmarcondes/ReactNativeStudies | import React, { Component } from 'react';
import { View, Text, FlatList, TouchableOpacity } from 'react-native';
import { connect } from 'react-redux';
import { Actions } from 'react-native-router-flux';
import _ from 'lodash';
import { userChatsHistoryList } from '../actions/appActions';
class Chats extends Componen... |
yycomponent/mention/Nav.js | 77ircloud/yycomponent | import React from 'react';
import { Mention } from 'antd';
class Nav extends React.Component{
constructor(props){
super(props);
}
render(){
return (<Mention.Nav {...this.props}/>);
}
}
export default Nav
|
components/frontend/src/widgets/ItemBreadcrumb.js | ICTU/quality-time | import React from 'react';
import { Breadcrumb } from '../semantic_ui_react_wrappers';
export function ItemBreadcrumb(props) {
return (
<Breadcrumb size={props.size || 'small'}>
<Breadcrumb.Section>{props.report}</Breadcrumb.Section>
{props.subject &&
<>
... |
src/components/Pagination/index.js | NE-SmallTown/React-QuietWater | /**
* v0.0.1
*
* Copyright (c) 2017
*
* Date: 2017/5/18 by Heaven
*/
import React from 'react';
import PropTypes from 'prop-types';
import RcPagination from 'rc-pagination';
import * as paginationLanguages from './languages';
import './index.css';
export default class Pagination extends React.PureComponent {... |
src/components/Feedback/Feedback.js | takahashik/todo-app | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import withStyles from 'isom... |
src/Icon/Icon.js | react-fabric/react-fabric | import React from 'react'
import cx from 'classnames'
import { glyphType } from '../propTypes'
import fabricComponent from '../fabricComponent'
import style from './Icon.scss'
const Icon = ({ glyph, ...props }) => (
<i data-fabric="Icon"
{...props}
styleName={cx('ms-Icon', `ms-Icon--${glyph}`)} />
)
Icon.d... |
src/svg-icons/navigation/fullscreen.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationFullscreen = (props) => (
<SvgIcon {...props}>
<path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/>
</SvgIcon>
);
NavigationFullscreen = pure(NavigationFullscre... |
src/components/Hello.story.js | loremtest/skb5-with-storybook | import React from 'react'
module.exports = ({ storiesOf, action }) => {
return storiesOf('Hello', module)
.add('world', () => {
return <div>
Hello world
</div>
})
.add('onClick', () => {
return <div onClick={action('onClick')}>
Hello onClick world
</div>
})
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.