path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/icons/LaptopWindowsIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class LaptopWindowsIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M40 36v-2c2.21 0 3.98-1.79 3.98-4L44 10c0-2.21-1.79-4-4-4H8c-2.21 0-4 1.79-4 4v20c0 2.21 1.79 4 4 4v... |
src/containers/Admin/Alerts/detail/index.js | EncontrAR/backoffice | import React from 'react';
import LayoutWrapper from '../../../../components/utility/layoutWrapper';
import Box from '../../../../components/utility/box';
import { Button, Col, Row } from 'antd';
import Moment from 'react-moment';
import alertActions from '../../../../redux/alert/actions';
import { connect } from 'reac... |
examples/huge-apps/routes/Course/routes/Grades/components/Grades.js | tmbtech/react-router | import React from 'react';
class Grades extends React.Component {
//static loadProps (params, cb) {
//cb(null, {
//assignments: COURSES[params.courseId].assignments
//});
//}
render () {
//var { assignments } = this.props;
var assignments = COURSES[this.props.params.courseId].assignments... |
src/components/VideoPlayer/Dash/Player.js | matmoi/react-adaptive-streaming | import dashjs from 'dashjs'
import React from 'react'
import PropTypes from 'prop-types'
import DashInfo from './Info.js'
import DashTimeSeries from './TimeSeries.js'
import DashOverallMetrics from './OverallMetrics.js'
import { Col, Row } from 'react-bootstrap'
import ControlBar from './ControlBar.js'
export default ... |
public/js/cat_source/es6/components/review_extended/ReviewExtendedTranslationIssuesSideButton.js | matecat/MateCat | import React from 'react'
import SegmentActions from '../../actions/SegmentActions'
import Shortcuts from '../../utils/shortcuts'
import SegmentUtils from '../../utils/segmentUtils'
class ReviewExtendedTranslationIssuesSideButton extends React.Component {
getIssueCount() {
let issue_count = 0
if (this.props... |
client/src/components/TenantOrPMChoice.js | codefordenver/Circular | import React from 'react';
import { Grid, Row, Col } from 'react-bootstrap';
import { Link } from 'react-router';
const TenantOrPMChoice = () => (
<Grid className="tenant-or-pm-section">
<Row>
<Col xs={12} lg={10} lgOffset={1}>
<div>
<h2>Ready? Let's improve recycling together!</h2>
... |
examples/counter/devTools.js | memee/ng-redux-lite | import { createDevTools} from 'redux-devtools';
import { render } from 'react-dom';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
import React from 'react'
import { Provider } from 'react-redux';
const DevTools = createDevTools(
<DockMonitor toggleVisibil... |
client/src/containers/BulkDeleteConfirmation/BulkDeleteConfirmation.js | silverstripe/silverstripe-asset-admin | import React from 'react';
import { compose } from 'redux';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { withApollo } from 'react-apollo';
import { inject, injectGraphql } from 'lib/Injector';
import * as confirmDeletionActions from 'state/confirmDeletion/ConfirmDeletionActions';
... |
app/containers/HomePage/index.js | svangordon/latrones-cli | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*/
import React from 'react';
import Helmet from 'react-helmet';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
// import {
// makeSelectRe... |
examples/todomvc/index.js | muffinresearch/redux | import React from 'react';
import App from './containers/App';
import 'todomvc-app-css/index.css';
React.render(
<App />,
document.getElementById('root')
);
|
client/src/javascript/components/torrent-list/Action.js | jfurrow/flood | import classnames from 'classnames';
import React from 'react';
import Tooltip from '../general/Tooltip';
export default class Action extends React.Component {
render() {
const {clickHandler, icon, label, slug} = this.props;
const classes = classnames('action tooltip__wrapper', {
[`action--${slug}`]: ... |
src/svg-icons/action/polymer.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPolymer = (props) => (
<SvgIcon {...props}>
<path d="M19 4h-4L7.11 16.63 4.5 12 9 4H5L.5 12 5 20h4l7.89-12.63L19.5 12 15 20h4l4.5-8z"/>
</SvgIcon>
);
ActionPolymer = pure(ActionPolymer);
ActionPolymer.d... |
examples/SideNavBasic.js | mattBlackDesign/react-materialize | import React from 'react';
import Button from '../src/Button';
import SideNavItem from '../src/SideNavItem';
import SideNav from '../src/SideNav';
export default
<SideNav
trigger={<Button>SIDE NAV DEMO</Button>}
options={{ closeOnClick: true }}
>
<SideNavItem userView
user={{
background: 'img/office.... |
app/components/TeamListItemRenderer/TeamListItemRenderer.js | tenhaus/bbwelding | import React from 'react';
import Radium from 'radium';
import AltActions from '../../actions/AltActions';
import Style from './_TeamListItemRenderer.style';
class TeamListItemRenderer extends React.Component {
constructor() {
super();
this.onClick = this.onClick.bind(this);
}
onClick() {
AltActi... |
native.js | tqc/react-native-web-components | import React, { Component } from 'react';
import PropTypes from "prop-types";
import { View, WebView } from 'react-native';
import { connect } from "react-redux";
import {WebWrapper} from "./index";
let config = {
useCombinedScript: true,
mainBundleUrl: "http://localhost:8081/index.ios.bundle?platform=ios&d... |
frontend/src/screens/history/widgets/select-date/select-date.js | linea-it/qlf | import React from 'react';
import Proptypes from 'prop-types';
import TextField from '@material-ui/core/TextField';
import moment from 'moment';
const styles = {
container: {
display: 'flex',
flexDirection: 'row',
justifyContent: 'left',
},
space: {
paddingLeft: '2vw',
},
label: {
color: ... |
src/react/GAWrapper.js | laundree/laundree | // @flow
import ReactGA from 'react-ga'
import React from 'react'
import type { Location } from 'react-router'
import type { State } from 'laundree-sdk/lib/redux'
import { connect } from 'react-redux'
type GAWrapperProps = {
currentUser: ?string,
children: *,
location: Location
}
class GAWrapper extends React.C... |
packages/ringcentral-widgets-docs/src/app/pages/Components/ConversationPanel/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import { parse } from 'react-docgen';
import CodeExample from '../../../components/CodeExample';
import ComponentHeader from '../../../components/ComponentHeader';
import PropTypeDescription from '../../../components/PropTypeDescription';
import Demo from './Demo';
// eslint-disable-next-lin... |
src/icons/StrokeCopy.js | ipfs/webui | import React from 'react'
const StrokeCopy = props => (
<svg viewBox='0 0 100 100' {...props}>
<path d='M67.36 30.73H29.1a3.92 3.92 0 0 0-3.91 3.91V72.9a3.92 3.92 0 0 0 3.91 3.91h38.26a3.92 3.92 0 0 0 3.91-3.91V34.64a3.91 3.91 0 0 0-3.91-3.91zm1.31 42.17a1.31 1.31 0 0 1-1.31 1.31H29.1a1.31 1.31 0 0 1-1.31-1.31V3... |
modules/Route.js | arusakov/react-router | import React from 'react'
import warning from 'warning'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { component, components } from './PropTypes'
const { string, bool, func } = React.PropTypes
/**
* A <Route> is used to declare which components are rendered to t... |
packages/wix-style-react/src/FloatingNotification/FloatingNotification.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import isEmpty from 'lodash/isEmpty';
import Text from '../Text';
import TextButton from '../TextButton';
import Button from '../Button';
import CloseButton from '../CloseButton/CloseButton';
import { TYPES, dataHooks } from './constants';
import { st, clas... |
views/blocks/Quest/QuestContainer.js | AlSoEdit/team5 | import React from 'react';
import sender from './../Sender/Sender';
import Quest from './Quest';
import QuestSender from './QuestSender';
import messageStrings from '../../constants/messages';
const QuestWithSending = sender(Quest);
export default class QuestContainer extends React.Component {
constructor(props) ... |
src/components/SingUp/SingUp.js | stanxii/laiico | /**
* 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/Component.js | nkbt/react-motion-loop | import React from 'react';
import PropTypes from 'prop-types';
import {Motion} from 'react-motion';
export class ReactMotionLoop extends React.Component {
static propTypes = {
// eslint-disable-next-line react/forbid-prop-types
styleFrom: PropTypes.object.isRequired,
// eslint-disable-next-line react/fo... |
node_modules/antd/es/transfer/operation.js | prodigalyijun/demo-by-antd | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import Button fro... |
lib/shared/screens/admin/shared/components/page-builder-menu/tabs/link/index.js | relax/relax | import * as pbActions from 'actions/page-builder';
import Component from 'components/component';
import bind from 'decorators/bind';
import elements from 'elements';
import getLinksPropertiesMap from 'helpers/page-builder/get-links-properties-map';
import isContextEqual from 'helpers/page-builder/is-context-equal';
imp... |
src/svg-icons/editor/title.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorTitle = (props) => (
<SvgIcon {...props}>
<path d="M5 4v3h5.5v12h3V7H19V4z"/>
</SvgIcon>
);
EditorTitle = pure(EditorTitle);
EditorTitle.displayName = 'EditorTitle';
export default EditorTitle;
|
src/components/NavLink.js | rapind/grokphoto | import React from 'react'
import { Link } from 'react-router'
export default React.createClass({
render () {
return <Link {...this.props} activeClassName='active'/>
}
})
|
app/javascript/mastodon/components/display_name.js | MastodonCloud/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
export default class DisplayName extends React.PureComponent {
static propTypes = {
account: ImmutablePropTypes.map.isRequired,
};
render () {
const displayNameHtml = { __html: this.props.account.get('display_name_ht... |
client/modules/App/components/Timer/Timer.js | russjwells/sittingweb | import React, { Component } from 'react';
import styles from './Timer.css';
class Timer extends Component {
constructor(props){
super(props);
this.state = {
mouseOver: false
};
}
pad(n, width, z) {
z = z || '0';
n = n + '';
return n.length >= width ? n : new Array(width - n.length... |
vendor/htmlburger/carbon-fields/assets/js/fields/components/radio-image/index.js | FolsomCreative/storynav | /**
* The external dependencies.
*/
import React from 'react';
import PropTypes from 'prop-types';
import { setStatic } from 'recompose';
/**
* The internal dependencies.
*/
import Field from 'fields/components/field';
import { enhance } from 'fields/components/radio';
import { TYPE_RADIO_IMAGE } from 'fields/cons... |
examples/webpack-example/src/app/app.js | nathanmarks/material-ui | import React from 'react';
import ReactDOM from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import Main from './Main'; // Our custom react component
//Needed for onTouchTap
//Can go away when react 1.0 release
//Check this repo:
//https://github.com/zilverline/react-tap-event-plugin
injectT... |
frontend/src/App.js | HansellKopp/PHP-Slim-Pdo-Restful | import React from 'react';
import {
BrowserRouter as Router,
Route,
Link,
} from 'react-router-dom';
import { Layout,
Header,
Navigation,
Content,
Drawer,
Footer,
} from 'react-mdl';
import Home from './components/Home';
import Company from './components/Compan... |
frontend/component/TopicEditor.js | ghkk/node_dataguru | import React from 'react';
import jQuery from 'jquery';
import MarkdownEditor from './MarkdownEditor';
export default class TopicEditor extends React.Component {
constructor(props){
super(props);
this.state = props.topic;
this.interval = setInterval(() => {
if (!this.state.titl... |
src/components/Charts/Pie/index.js | ascrutae/sky-walking-ui | /**
* 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... |
src/components/common/MetadataCheckboxFieldArray.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import { reduxForm, FieldArray, Field, propTypes } from 'redux-form';
import { injectIntl } from 'react-intl';
import { FETCH_SUCCEEDED } from '../../lib/fetchConstants';
import withIntlForm from './hocs/IntlForm';
imp... |
src/styles/withStyles.js | AndriusBil/material-ui | // @flow weak
import React from 'react';
import type { ComponentType } from 'react';
import PropTypes from 'prop-types';
import warning from 'warning';
import hoistNonReactStatics from 'hoist-non-react-statics';
import wrapDisplayName from 'recompose/wrapDisplayName';
import createEagerFactory from 'recompose/createEa... |
classic/src/scenes/mailboxes/src/Scenes/SettingsScene/Accounts/Sections/MailboxSettingsSection/MailboxLinkSettings/MailboxLinkNoMatchRule.js | wavebox/waveboxapp | import PropTypes from 'prop-types'
import React from 'react'
import { accountStore, accountActions } from 'stores/account'
import { settingsStore } from 'stores/settings'
import SettingsListItem from 'wbui/SettingsListItem'
import shallowCompare from 'react-addons-shallow-compare'
import MailboxReducer from 'shared/Alt... |
src/components/NavBar.js | wescleymatos/iRango | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import firebase from '../config/firebase';
class NavBar extends Component {
constructor(props) {
super(props);
this.state = {
user: {}
};
this.logoutUser = this.logoutUser.bind(this);
}
getUserLogged() {
... |
public/components/tehtPage/tabsComponents/reusables/Pelastus.js | City-of-Vantaa-SmartLab/kupela | import React from 'react';
import Showcase from './templates/Showcase';
const Pelastus = (props) => (
<div className="pelastussuunnitelma">
<p><b>Pelastussuunnitelma:</b></p>
{props.rescueplans.map((plan) =>
<a onClick={props.selectSubItem(plan.nameId, plan, 'noLayer', 'none')}>
... |
src/modules/Components/User/SearchBox.js | rtellez700/MESA_Connect_2.0 | import React, { Component } from 'react';
class SearchBox extends Component {
render() {
return (
<div className="container">
<div className="row">
<div className="col-md-12">
<input
type="text"
className="form-control input-lg"
placeholder="Search . . ."
... |
src/routes/home/Home.js | louisukiri/react-starter-kit | /**
* 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 PropTypes from 'prop-... |
services/components/Facebook/FacebookLoginButton.js | jasorod/react-native-authentication-services | import React from 'react';
import { View, Image, Text, TouchableHighlight } from 'react-native';
import Facebook from './Facebook.js';
import EStyleSheet from 'react-native-extended-stylesheet';
class FacebookLoginButton extends React.Component {
static defaultProps = {
underlayColor: '#fff'
}
sta... |
app/javascript/mastodon/features/ui/components/image_loader.js | MastodonCloud/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { LoadingBar } from 'react-redux-loading-bar';
import ZoomableImage from './zoomable_image';
export default class ImageLoader extends React.PureComponent {
static propTypes = {
alt: PropTypes.string,
s... |
app/modules/NOAADash/index.js | phosphene/react-fullstack-d3-demo | import React, { Component } from 'react';
import NOAAWrapper from './components/NOAAWrapper';
import { ThemeSwitcher} from 'react-bootstrap-theme-switcher';
import '../ThrashDash/css/dc.css';
/* This file can serve as the index for this level of component namespace
* it is currently being used that way as a convenient... |
assets/js/components/LoadingBody.js | basarevych/webfm | import React from 'react';
import { FaCog } from 'react-icons/lib/fa';
class LoadingBody extends React.PureComponent {
render() {
return (
<div className="body disabled">
<h1>
<FaCog className="rotating" />
</h1>
</div>
);
}
}
export default LoadingBody;
|
wrap-root-element.js | dannyphillips/dannyphillips.github.io | import React from 'react'
import { MDXProvider } from '@mdx-js/react'
import { preToCodeBlock } from 'mdx-utils'
import { Code } from './src/components'
// components is its own object outside of render so that the references to
// components are stable
const components = {
pre: preProps => {
const prop... |
web-react/src/index.js | kenahrens/iot-laundry | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
// If you want your app to work offline and load faster, you can change
// unregister() to register()... |
app/components/List/index.js | FlorianVoct/monPropreMix | import React from 'react';
import Ul from './Ul';
import Wrapper from './Wrapper';
function List(props) {
const ComponentToRender = props.component;
let content = (<div></div>);
// If we have items, render them
if (props.items) {
content = props.items.map((item, index) => (
<ComponentToRender key={... |
src/routes/Tasks/components/TasksView.js | JSChecker/JSChecker-WebClient | import React from 'react'
import { Link } from 'react-router'
import './TasksView.scss'
import ApiView from '../../../components/ApiView'
import CreateButton from '../../../components/CreateButton'
/* CREATE */
export class TaskCreateView extends ApiView {
constructor (props) {
super(props)
}
render () {
... |
src/components/Path.js | gorgias/gorgias-docs | import React from 'react'
import {JSONTree} from './JsonTree'
import {Table} from 'reactstrap'
import ReactMarkdown from 'react-markdown'
import {Code, examplify, getDefinitionProperties} from './../utils'
import slug from 'slug'
/**
* Handle generating all the doc for a completed endpoint
* @param uri the URI of ... |
frontend/src/components/popup/EditCustomerAdmin.js | jirkae/BeerCheese | import React from 'react';
import { Modal, ModalBody, Container, Row } from 'reactstrap';
export default props => {
return (
<Modal isOpen={true} toggle={props.hideModals}>
<ModalBody>
<Container>
<Row>
edit customer {props.data.id}
</Row>
</Container>
... |
src/index.js | cataclyst/archivist-ui | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
import { reducer } from "./store/reducers/reducer";
import { createStore } from "redux";
import { Provider } from "react-redux";
import './semantic/dist/semanti... |
src/client/todos/list.react.js | terakilobyte/socketreact | import Component from '../components/component.react';
import React from 'react';
import Todo from './todo.react';
import immutable from 'immutable';
import {msg} from '../intl/store';
class List extends Component {
render() {
const todos = this.props.todos;
if (!todos.size)
return (
<p>{msg(... |
0011-proptypes/app/src/index.js | davidwparker/programmingtil-react | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/shared/views/plugins/DeepZoom/DeepZoomRoute.js | in-depth/indepth-demo | import React from 'react'
import { connect } from 'react-redux'
// import DeepZoom from './DeepZoom'
import DeepZoom from './osd'
import styles from './DeepZoom.css'
const DeepZoomRoute = (props) => {
if (!props.deepzoomAssets || props.deepzoomAssets.length === 0) {
return <div><h2>No deep zoom images found.</... |
stories/examples/PopoverFocus.js | reactstrap/reactstrap | /* eslint react/no-multi-comp: 0, react/prop-types: 0 */
import React from 'react';
import { Button, UncontrolledPopover, PopoverHeader, PopoverBody } from 'reactstrap';
const Example = (props) => {
return (
<div>
<Button id="PopoverFocus" type="button">
Launch Popover (Focus)
</Button>
... |
node_modules/react-router/modules/RouterContextMixin.js | kevinsimper/isomorphic-apps-presentation | import React from 'react';
import invariant from 'invariant';
import { stripLeadingSlashes, stringifyQuery } from './URLUtils';
var { func, object } = React.PropTypes;
function pathnameIsActive(pathname, activePathname) {
if (stripLeadingSlashes(activePathname).indexOf(stripLeadingSlashes(pathname)) === 0)
retu... |
src/React/Widgets/ColorPickerWidget/index.js | Kitware/paraviewweb | import React from 'react';
import PropTypes from 'prop-types';
import style from 'PVWStyle/ReactWidgets/ColorPickerWidget.mcss';
import swatchURL from './defaultSwatches.png';
/**
* This React component expect the following input properties:
* - color:
* Expect an array [r,g,b] of the initial color to sho... |
test/templates/RadioButton.snap.js | sullenor/teatime-test-utils | import Radio from 'teatime-components/component/Radio';
import React from 'react';
export default () => (
<Radio
name='radio-control'
options={[
{label: 'Ducati', value: 'ducati'},
{label: 'Honda', value: 'honda'},
{label: 'Jawa', value: 'jawa'},
]}
theme='button'/>
);
|
app/main.js | michaelBenin/webpack-express-boilerplate | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App.js';
ReactDOM.render(<App />, document.getElementById('root'));
|
client/src/App.js | LlamasLTD/llamagator | import React, { Component } from 'react';
import { connect } from 'react-redux';
class App extends Component {
render() {
return (
<h1>Here I come to save the day</h1>
);
}
}
const mapStateToProps = (state) => {
return state;
}
export default connect(
mapStateToProps
)(Ap... |
src/main/frontend/app/components/auth/require-auth.js | santhp/trade-away | import React, { Component } from 'react';
import { connect } from 'react-redux';
export default function(ComposedComponent) {
class Authentication extends Component {
static contextTypes = {
router: React.PropTypes.object
}
componentWillMount() {
if(!this.props.auth... |
fields/components/DateInput.js | mikaoelitiana/keystone | import moment from 'moment';
import DayPicker from 'react-day-picker';
import React from 'react';
import ReactDOM from 'react-dom';
import Popout from '../../admin/client/components/Popout';
import { FormInput } from 'elemental';
let lastId = 0;
module.exports = React.createClass({
displayName: 'DateInput',
propT... |
app/javascript/mastodon/features/public_timeline/index.js | kirakiratter/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader fro... |
node_modules/native-base/Components/Widgets/Checkbox.js | paulunits/tiptap | /* @flow */
'use strict';
import React from 'react';
import {View, Platform} from 'react-native';
import NativeBaseComponent from '../Base/NativeBaseComponent';
import Icon from "./Icon";
export default class CheckBox extends NativeBaseComponent {
getInitialStyle() {
return {
checkbox: {
... |
node_modules/react-router/es6/RouteUtils.js | caughtclean/but-thats-wrong-blog | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
import React from 'react';
function isValidChild(object) {
... |
assets/jqwidgets/demos/react/app/splitter/integrationwithjqxgrid/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxSplitter from '../../../jqwidgets-react/react_jqxsplitter.js';
import JqxInput from '../../../jqwidgets-react/react_jqxinput.js';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
import JqxGrid from '../../../jqwidgets-react/re... |
wail-ui/components/collections/selectCollection/collectionCard/noCollectionMatches.js | N0taN3rd/wail | import React from 'react'
import PropTypes from 'prop-types'
import Card from 'material-ui/Card/Card'
import CardText from 'material-ui/Card/CardText'
import { collectionCard } from '../../../../constants/uiStrings'
function NoCollectionMatches ({search}) {
return (
<Card>
<CardText>
{collectionCar... |
imports/ui/components/AthleteInfo.js | scimusmn/sports-run | import React from 'react';
export class AthleteInfo extends React.Component {
constructor(props) {
super(props);
}
render() {
return <div className={this.props.className} style={{pointerEvents: 'none'}}>
<div className='athlete-info'>
<h3 className='name'>... |
app/modules/common/publishes/buttons/index.js | theseushu/funong-web | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { actions, selectors } from 'api/publishes/ducks';
import ApiButtonWithIcon from 'modules/common/buttons/ApiButtonWithIcon';
import ApiIconButton from 'modules/common/buttons/ApiIconButton';
import confi... |
react-router-nb/react-router/modules/RouterContext.js | zhangfaliang/learnReact | import invariant from 'invariant'
import React from 'react'
import getRouteParams from './getRouteParams'
import { ContextProvider } from './ContextUtils'
import { isReactChildren } from './RouteUtils'
const { array, func, object } = React.PropTypes
/**
* A <RouterContext> renders the component tree for a given rou... |
app-registration/src/Navbar.js | IoanAlexandru/React-Redux-with-Hot-Loading-and-tcomb-forms | import React, { Component } from 'react';
import {Link} from 'react-router';
export default class Navbar extends Component {
constructor(){
super();
}
render(){
return <div>
<ul className="nav navbar-nav">
<li>
<a href="/">Home</a>
</li>
<li>
<Link to="/">Registration</Lin... |
src/svg-icons/content/remove.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentRemove = (props) => (
<SvgIcon {...props}>
<path d="M19 13H5v-2h14v2z"/>
</SvgIcon>
);
ContentRemove = pure(ContentRemove);
ContentRemove.displayName = 'ContentRemove';
ContentRemove.muiName = 'SvgIcon... |
src/views/list/index.js | STMU1320/dedao-demo | import React from 'react'
import { ListView } from 'components'
// import { config } from 'utils'
function generateArray (length) {
let index = 0
const arr = []
while (index < length) {
arr[index++] = {
title: `title${index}`,
detail: `item-detail-${index}`,
}
}
return arr
}
class List ... |
blueocean-material-icons/src/js/components/svg-icons/editor/format-bold.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const EditorFormatBold = (props) => (
<SvgIcon {...props}>
<path d="M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3v-3zm3.5 9H... |
src/components/footer/footer.js | PolexRufous/FarmReactUI | import React from 'react';
import {FormattedMessage} from 'react-intl';
export default class Footer extends React.Component {
render() {
return (
<div className="footer-wrapper">
<h4>
<FormattedMessage id='CONTACT_US_HEADER' />
</h4>
... |
frontend/jqwidgets/jqwidgets-react/react_jqxgauge.js | yevgeny-sergeyev/nexl-js | /*
jQWidgets v5.7.2 (2018-Apr)
Copyright (c) 2011-2018 jQWidgets.
License: https://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxGauge extends React.Component {
componentDidMount() {
let options = this.manageAt... |
docs/src/app/components/pages/components/Checkbox/Page.js | ngbrown/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import checkboxReadmeText from './README';
import checkboxCode from '!raw!materi... |
src/containers/DevTools.js | alexeyryzhikov/kanjitesto | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
export default createDevTools(<LogMonitor />);
|
srcjs/components/AuthorForm.js | wlainer/react-redux-tutorial | import React from 'react'
import { addAuthorResult, updateAuthorResult, loadAuthor, deleteAuthorResult } from '../actions/authors'
import { showSuccessNotification, showErrorNotification } from '../actions/notification'
import { submittingChanged } from '../actions'
import { reduxForm } from 'redux-form';
import { rou... |
client/src/components/App.js | apologeticcookie/apologeticcookie | import React from 'react';
import HomePage from './HomePage';
import Container from './Container';
class App extends React.Component {
constructor(props) {
super(props);
this.state = {
showHomePage: true
};
this.toggleDemo = this.toggleDemo.bind(this);
}
toggleDemo() {
this.setState({... |
cm19/ReactJS/your-first-react-app-exercises-master/exercise-15/friend-detail/FriendFlipper.js | Brandon-J-Campbell/codemash | import React from 'react';
import styles from './FriendFlipper.css';
export default class FriendFlipper extends React.Component {
state = {
flipped: false,
};
handleFlipped = () => {
this.setState(prevProps => {
return {
flipped: !prevProps.flipped,
};
});
};
render() {
... |
examples/huge-apps/routes/Course/components/Dashboard.js | runlevelsix/react-router | import React from 'react';
class Dashboard extends React.Component {
render () {
return (
<div>
<h3>Course Dashboard</h3>
</div>
);
}
}
export default Dashboard;
|
src/step-2/client/HelloMessage.js | DJCordhose/react-intro-live-coding | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as Actions from './actions';
class HelloMessage extends React.Component {
render() {
const { greeting, updateGreeting, resetGreeting } = this.props;
return <div>
<input onChange={eve... |
packages/framework/easywebpack-js/example/react-common-lib/test/src/react-mobx.js | hubcarl/easywebpack | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';
class App extends Component {
render() {
return <h1>React MobX Common Lib Test</h1>
}
}
ReactDOM.render(
EASY_ENV_IS_DEV ? <AppContainer><App /></AppContainer> : <App />,
document.... |
src/components/UsersList.js | raghudevan/DotADorK | import React from 'react';
class UsersList extends React.Component {
render() {
return (
<div style={this.props.style}>
<label>{this.props.label}</label>
<ul>
{
this.props.connectedUsers.map((item, index) => {
return(
<li key={index}>
{item}
</li>
);
})
... |
app/src/cases/CaseDetail.js | codefordc/cfsa-referral | import React from 'react';
import { connect } from 'react-redux';
import CaseCard from './components/CaseCard';
import {
Row,
Col,
Button
} from 'reactstrap';
import translation from 'translation';
import { push } from 'react-router-redux';
const CaseDetail = ({ selectedCase, person, handleBackToResults, h... |
src/svg-icons/maps/local-hospital.js | kittyjumbalaya/material-components-web | 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... |
src/components/video-list.js | ThatCrazyIrishGuy/youtube-react | import React from 'react';
import VideoListItem from './video-list-item';
const VideoList = (props) => {
const videoItems = props.videos.map((video) => {
return(
<VideoListItem onVideoSelect={props.onVideoSelect} key={video.etag} video={video} />
);
})
return (
<div className="col s12 m4 l4 vi... |
app/js/components/content/ImageComponent.js | theappbusiness/tab-hq | 'use strict';
import React from 'react';
import DropFileComponent from './DropFileComponent';
import PageComponentActions from './PageComponentActions';
import ReorderMixin from '../../mixins/ReorderMixin';
import ComponentActionCreators from '../../actions/ComponentActionCreators';
const ImageComponent = React.creat... |
actor-apps/app-web/src/app/components/modals/AppCacheUpdate.react.js | darioajr/actor-platform | import React from 'react';
import Modal from 'react-modal';
//import pureRender from 'pure-render-decorator';
import { Styles, FlatButton } from 'material-ui';
import AppCacheStore from 'stores/AppCacheStore';
import AppCacheActionCreators from 'actions/AppCacheActionCreators';
import { KeyCodes } from 'constants/Act... |
src/components/Counter/Counter.js | okmttdhr/aupa | import React from 'react'
import classes from './Counter.scss'
export const Counter = (props) => (
<div>
<h2 className={classes.counterContainer}>
Counter:
{' '}
<span className={classes['counter--green']}>
{props.counter}
</span>
</h2>
<button className='btn btn-default' ... |
examples/huge-apps/routes/Course/routes/Grades/components/Grades.js | nhunzaker/react-router | /*globals COURSES:true */
import React from 'react'
class Grades extends React.Component {
render() {
let { assignments } = COURSES[this.props.params.courseId]
return (
<div>
<h3>Grades</h3>
<ul>
{assignments.map(assignment => (
<li key={assignment.id}>{assignment... |
WeddingPlannerApp/login.js | hinteadan/wapp | import React, { Component } from 'react';
import axios from 'axios';
import {
StyleSheet,
Text,
TextInput,
View,
Image,
Button,
Dimensions,
Alert,
} from 'react-native';
let screen = {
w: Dimensions.get('window').width,
h: Dimensions.get('window').height,
minLength: () => s... |
spec/javascripts/jsx/gradebook/individual-gradebook/components/GradebookSelectorSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
client.js | JolsonZhu/live-polling-app | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, IndexRoute, Redirect, hashHistory } from 'react-router';
import App from './components/App.jsx';
import Audience from './components/Audience.jsx';
import Board from './components/Board.jsx';
import Speaker from './components/Speaker.j... |
view/apimodule/course23.js | leechuanjun/TLReactNativeProject | /**
* Course 23
* React Native API模块之`Alert`及第三方库`react-native-sk-toast`弹出框详解及使用
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Alert,
TouchableHighlight,
} from 'react-native';
import Util from '../utils';
import ToastIOS from 'react-native-sk-toast';
class CustomButton ex... |
src/ButtonInput.js | nickuraltsev/react-bootstrap | import React from 'react';
import Button from './Button';
import FormGroup from './FormGroup';
import InputBase from './InputBase';
import childrenValueValidation from './utils/childrenValueInputValidation';
class ButtonInput extends InputBase {
renderFormGroup(children) {
let {bsStyle, value, ...other} = this.p... |
ide/static/js/app.js | Cloud-CV/IDE | import React from 'react';
import Content from './content';
export default function () { // eslint-disable-line
return (
<div className="app">
<Content />
</div>
);
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.