path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
packages/lore-hook-forms-material-ui/src/blueprints/create/Wizard/forms/Step.js | lore/lore-forms | import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import _ from 'lodash';
import { result as _result } from 'lore-utils';
import { SchemaForm } from 'lore-react-forms';
import { RequestError } from 'lore-react-forms-material-ui';
import { CardTitle, Steppe... |
Tutorial/js/project/2.MeiTuan/Component/Mine/XMGMine.js | onezens/react-native-repo | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
ScrollView
} from 'react-native';
// 导入外部的组件
var MyCell = require('./XMGCommonMyCell');
var MineMiddleView = require('./XM... |
app/containers/PricePage.js | guigonc/client_app | import React from 'react'
import { connect } from 'react-redux'
import Price from '../components/Price'
export default connect()(Price)
|
test/utils/component.js | nofluxjs/noflux-react | import test from 'ava';
import React, { Component } from 'react';
import { isReactComponent, getComponentName } from '../../src/utils';
test('check component', t => {
class App extends Component {
render() {
return (
<h1>
hello, world
</h1>
);
}
}
t.truthy(isReactCom... |
tp-react/src/MessageList.js | detienne11/imie | import React, { Component } from 'react';
import Message from './Message';
class MessageList extends Component {
// constructor(props) {
// super(props);
// console.log("MessageList",this.props.messageList);
// }
renderMessage(messages) {
console.log("MessageList liste de messages :",messages);
if... |
src/index.js | colinmegill/react-d3-course | // React Core
import React from 'react';
import ReactDOM from 'react-dom';
// React Router
import { Router, Route, Link, IndexRoute, browserHistory } from 'react-router';
// React Redux
import { Provider, connect } from 'react-redux';
// Redux Devtools
import configureStore from "./store";
// controller view
import A... |
docs/src/app/components/pages/components/Snackbar/ExampleSimple.js | pomerantsev/material-ui | import React from 'react';
import Snackbar from 'material-ui/Snackbar';
import RaisedButton from 'material-ui/RaisedButton';
export default class SnackbarExampleSimple extends React.Component {
constructor(props) {
super(props);
this.state = {
open: false,
};
}
handleTouchTap = () => {
th... |
src/components/Chat/Markup/Italic.js | u-wave/web | import React from 'react';
import PropTypes from 'prop-types';
const Italic = ({ children, ...props }) => <i {...props}>{children}</i>;
Italic.propTypes = {
children: PropTypes.node.isRequired,
};
export default Italic;
|
mine-data/src/CategoryApiList/CategoryApiCardItem.js | BerlingskeMedia/nyhedsbreve | import React from 'react';
import PropTypes from 'prop-types';
import { Loading } from '../Loading/Loading';
import './CategoryApiCardItem.scss';
import classnames from 'classnames';
import { CategoryCard } from '../CategoryCard/CategoryCard';
const SubCategoryCard = ({className, children, ...props}) => <CategoryCard... |
app/components/AddCharacter.js | sachinmour/newedenfaces-react | import React from 'react';
import AddCharacterStore from '../stores/AddCharacterStore';
import AddCharacterActions from '../actions/AddCharacterActions';
class AddCharacter extends React.Component {
constructor(props) {
super(props);
this.state = AddCharacterStore.getState();
this.onChange = this.onChang... |
app/scripts/Mobilization/components/MobilizationList/MobilizationListItemHeader/MobilizationListItemHeaderCopyNumber.js | igr-santos/bonde-client | import React from 'react'
const MobilizationListItemHeaderCopyNumber = () => (
<div className="list-item-header-copy-number px3 col col-2">
Núm. Cópias
</div>
)
export default MobilizationListItemHeaderCopyNumber
|
packages/material-ui-icons/src/DoNotDisturbOn.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let DoNotDisturbOn = 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 2zm5 11H7v-2h10v2z" />
</SvgIcon>;
DoNotDisturbOn = pure(DoNotDisturbOn);
DoNotDi... |
src/components/ShipmentDetailsContainer/ShipmentStatusComponent.js | alexhawkins/trackingWidget | 'use strict';
import React from 'react';
import 'styles//ShipmentStatus.scss';
class ShipmentStatusComponent extends React.Component {
constructor(props) {
super(props);
}
render() {
let currentStatus = this.props.status.toLowerCase().replace('_',' ').split(' ');
currentStatus = currentStatus.map((... |
src/svg-icons/navigation/last-page.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationLastPage = (props) => (
<SvgIcon {...props}>
<path d="M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"/>
</SvgIcon>
);
NavigationLastPage = pure(NavigationLastPage);
NavigationLastPage.di... |
components/accounts/account.js | kylecarter/bank | import React from 'react'
import Head from 'next/head'
import underscore from 'underscore'
const _ = underscore;
export default class Account extends React.Component {
constructor( props ) {
super();
this.state = _.extend( {}, props );
}
render() {
return (<li className="panel panel-... |
app/client.js | hackerrdave/react-router-and-lazy-server-render | import React from 'react';
import { match, Router } from 'react-router';
import { render } from 'react-dom';
import { createHistory } from 'history';
import routes from './routes/RootRoute';
const { pathname, search, hash } = window.location;
const location = `${pathname}${search}${hash}`;
match({ routes, location },... |
app/components/Player/Controls/Controls.js | TriPSs/popcorn-time-desktop | // @flow
import React from 'react'
import classNames from 'classnames'
import * as PlayerConstants from 'api/Player/PlayerConstants'
import type { Props } from './ControlsTypes'
import classes from './Controls.scss'
export default ({ togglePlay, stop, playerStatus }: Props) => (
<div className={classes.container}>
... |
src/svg-icons/image/filter-b-and-w.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterBAndW = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16l-7-8v8H5l7-8V5h7v14z"/>
</SvgIcon>
);
ImageFilterBAndW = pure(Im... |
react/judo-heroes-2/src/routes.js | greganswer/devnotes | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import Layout from './components/Layout';
import IndexPage from './components/IndexPage';
import AthletePage from './components/AthletePage';
import NotFoundPage from './components/NotFoundPage';
const routes = (
<Route path="/" component={... |
Mr.Mining/MikeTheMiner/Santas_helpers/Sia_wallet/resources/app/plugins/Hosting/js/components/announce.js | patel344/Mr.Miner | import React from 'react'
const AnnounceDialogModal = ({ announceAddress, actions }) => {
const handleSettingInput = (e) => actions.updateModal('announceAddress', e.target.value)
const hideAnnounceDialog = (address) => actions.hideAnnounceDialog(address)
const closeAnnounceDialog = () => hideAnnounceDialog('')
con... |
client/react/frontpage/components/BlogPostPage.js | uclaradio/uclaradio | // BlogPostPage.js
// shows full description of post
import React from 'react';
import Loader from './Loader';
import moment from 'moment';
import './BlogPostPage.scss';
/**
Page content for individual post
Displays full description of a post.. everything
* */
const BlogPostsURL = '/getBlogPosts';
const BlogPostPag... |
modules/Redirect.js | kelsadita/react-router | import React from 'react'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { formatPattern } from './PatternUtils'
import { falsy } from './PropTypes'
var { string, object } = React.PropTypes
/**
* A <Redirect> is used to declare another URL path a client should be ... |
client/src/entrypoints/admin/wagtailadmin.js | kaedroho/wagtail | import React from 'react';
import ReactDOM from 'react-dom';
import {
Icon,
Portal,
initExplorer,
initFocusOutline,
initSubmenus,
initSkipLink,
initIE11Warning,
initUpgradeNotification,
} from '../..';
if (process.env.NODE_ENV === 'development') {
// Run react-axe in development only, so it does not ... |
src/app/components/UploadFile.js | meedan/check-web | import React from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import { QueryRenderer, graphql } from 'react-relay/compat';
import Dropzone from 'react-dropzone';
import { FormattedMessage } from 'react-intl';
import HighlightOffIcon from '@material-ui/icons/HighlightOff';
impor... |
src/mixins/style-propable.js | subjectix/material-ui | import React from 'react';
import ImmutabilityHelper from '../utils/immutability-helper';
import Styles from '../utils/styles';
// This mixin isn't necessary and will be removed
/**
* @params:
* styles = Current styles.
* props = New style properties that will override the current style.
*/
export default {
p... |
src/svg-icons/action/card-travel.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCardTravel = (props) => (
<SvgIcon {...props}>
<path d="M20 6h-3V4c0-1.11-.89-2-2-2H9c-1.11 0-2 .89-2 2v2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zM9 4h6v2H9V4zm11 15H... |
src/Main/LazyLoadStatisticBox.js | enragednuke/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import StatisticBox from './StatisticBox';
export { STATISTIC_ORDER } from './StatisticBox';
class LazyLoadStatisticBox extends React.PureComponent {
static propTypes = {
loader: PropTypes.func.isRequired,
value: PropTypes.node.isRequired,
};... |
src/IndexPage.js | WapGeaR/react-redux-boilerplate-auth | import React from 'react'
export default class IndexPage extends React.Component {
render() {
return (<div>It's main page</div>)
}
}
|
app/components/tables/tablesPage.js | imankit/dashboard-ui | /**
* Created by Darkstar on 1/4/2017.
*/
'use strict';
import React from 'react';
import {connect} from 'react-redux';
import Toolbar from './../toolbar/toolbar.js';
import Footer from './../footer/footer.jsx';
import Dashboardproject from '../dashboardproject/dashboardproject.jsx';
import TableList from './tableLi... |
client/src/templates/Challenges/components/PrismFormatted.js | jonathanihm/freeCodeCamp | import React, { Component } from 'react';
import Prism from 'prismjs';
import PropTypes from 'prop-types';
const propTypes = {
className: PropTypes.string,
text: PropTypes.string.isRequired
};
class PrismFormatted extends Component {
componentDidMount() {
// Just in case 'current' has not been created, thou... |
src/GodNamesLoadingFetch.js | Visovsiouk/smite-random-picker | import React from 'react';
import { Col } from 'react-bootstrap';
function shuffleArray(names, src, selsrc) {
let i = names.length - 1;
for (; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
const tempname = names[i];
names[i] = names[j];
names[j] = tempname;
const tempsrc = src[i];
src[i] =... |
src/svg-icons/device/brightness-low.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBrightnessLow = (props) => (
<SvgIcon {...props}>
<path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 ... |
src/App.js | juanesarango/github-battle | import React, { Component } from 'react';
import './App.css';
import Home from './components/Home';
import Battle from './components/Battle';
import Results from './components/Results';
import Popular from './components/Popular';
import Nav from './components/Nav';
import {
BrowserRouter as Router,
Route,
Switch
... |
app/components/Statistics.js | Toreant/monster_admin | /**
* Created by apache on 16-4-2.
*/
import React from 'react';
import StatisticsActions from '../actions/StatisticsActions';
import StatisticsStore from '../stores/StatisticsStore';
class Statistics extends React.Component {
constructor(props) {
super(props);
this.state = StatisticsStore.getSta... |
src/js/components/ProjectCard.js | lianwangtao/shanelian.com | import React from 'react';
import Card, { CardContent, CardMedia } from 'material-ui/Card';
import Typography from 'material-ui/Typography';
import ButtonMD from 'material-ui/Button';
import Image from 'grommet/components/Image';
export default function ProjectCard (props) {
const windowWidth = window.innerWidth;
... |
docs/tutorial/DO_NOT_TOUCH/03/src/components/App/index.js | idream3/cerebral | import React from 'react'
import {connect} from 'cerebral/react'
import {state} from 'cerebral/tags'
export default connect({
title: state`title`,
subTitle: state`subTitle`
},
function App (props) {
return (
<div className='o-container o-container--medium'>
<h1>{props.title}</h1>
<h3>{p... |
src/svg-icons/places/business-center.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesBusinessCenter = (props) => (
<SvgIcon {...props}>
<path d="M10 16v-1H3.01L3 19c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2v-4h-7v1h-4zm10-9h-4.01V5l-2-2h-4l-2 2v2H4c-1.1 0-2 .9-2 2v3c0 1.11.89 2 2 2h6v-2h4v2h6c1... |
website/core/WebPlayer.js | thotegowda/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
packages/neos-ui/src/apiExposureMap.js | dimaip/neos-ui | import React from 'react';
import ReactDOM from 'react-dom';
import Immutable from 'immutable';
import * as plow from 'plow-js';
import classnames from 'classnames';
import ImmutablePropTypes from 'react-immutable-proptypes';
import * as reactRedux from 'react-redux';
import * as reduxActions from 'redux-actions';
impo... |
clients/packages/admin-client/src/pages/admin/mobilizations/edit/preview/index.js | nossas/bonde-client | import React from 'react'
import ReactGA from 'react-ga'
// MOBILIZATION and external dependencies
import { Mobilization } from 'bonde-webpage'
import { PluggableWidget, FinishMessageCustom } from 'bonde-webpage/lib/ux'
import mobilizationConnect from './mobilization.connected'
// DRAFT PLUGIN and external dependencies... |
components/feed/LoadingAnimation.js | headwinds/bellwoods | /* eslint-disable */
import React from 'react';
import {TweenMax, Power2, TimelineLite} from "gsap";
//import * as d3 from "d3";
export default class LoadingAnimation extends React.Component {
constructor(props){
super(props);
this.draw = this.draw.bind(this);
this.animate = this.animate... |
public/js/config/routes.js | Wildhoney/Dory | import React from 'react';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import { identity } from 'ramda';
import Layout from '../containers/layout';
import Posts from '../containers/posts';
import Post from '../containers/post';
import NotFound from '../containers/not-found';
export defaul... |
client/node_modules/react-router-dom/es/NavLink.js | bourdakos1/Visual-Recognition-Tool | 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; };
var _typeof = typeof Symbol === "function" && typeof Symbol.i... |
src/svg-icons/social/people.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPeople = (props) => (
<SvgIcon {...props}>
<path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.... |
src/svg-icons/communication/import-contacts.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationImportContacts = (props) => (
<SvgIcon {...props}>
<path d="M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 2... |
packages/mcs-lite-ui/src/MobileHeader/MobileHeaderIcon.js | MCS-Lite/mcs-lite | import React from 'react';
import PropTypes from 'prop-types';
import R from 'ramda';
import styled from 'styled-components';
const omitProps = R.omit(['active']);
const BaseComponent = ({ component, children, ...otherProps }) =>
React.createElement(component, omitProps(otherProps), children);
BaseComponent.display... |
src/routes/register/index.js | kkdubey/gauri | /**
* 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 Layout from '../../co... |
app/javascript/flavours/glitch/components/link.js | vahnj/mastodon | // Inspired by <CommonLink> from Mastodon GO!
// ~ 😘 kibi!
// Package imports.
import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
// Utils.
import { assignHandlers } from 'flavours/glitch/util/react_helpers';
// Handlers.
const handlers = {
// We don't handl... |
manager/src/components/common/Header.js | haaswill/ReactNativeCourses | // Import libraries for making a component
import React from 'react';
import { Text, View } from 'react-native';
// Make a component
const Header = (props) => {
const { textStyle, viewStyle } = styles;
return (
<View style={viewStyle}>
<Text style={textStyle}>{props.headerText}</Text>
</View>
);
};... |
src/svg-icons/maps/local-grocery-store.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalGroceryStore = (props) => (
<SvgIcon {...props}>
<path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-... |
template/app/components/navbar/index.js | vgno/roc-template-web-react | import React from 'react';
import { IndexLink, Link } from 'react-router';
import styles from './style.scss';
export default class Navbar extends React.Component {
render() {
return (
<div className={styles.navbar}>
<div className="wrapper">
<ul>
... |
src/components/layer-list-item.js | bartvde/sdk | /*
* Copyright 2015-present Boundless Spatial Inc., http://boundlessgeo.com
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required ... |
src/openMarket/user_interface/product/list_products_low_stock/Container.js | UnexpectedSoftware/openMarket | // @flow
import React, { Component } from 'react';
import { Link } from 'react-router';
import ReactTable from 'react-table';
class Container extends Component {
constructor(props,context) {
super(props, context);
this.handlePageChanged = this.handlePageChanged.bind(this);
this.columns = [{
Header... |
blueprints/route/files/src/routes/__name__/components/__name__.js | aurel-tackoen/spencer.io | import React from 'react'
import classes from './<%= pascalEntityName %>.scss'
export const <%= pascalEntityName %> = () => (
<div className={classes['<%= pascalEntityName %>']}>
<h4><%= pascalEntityName %></h4>
</div>
)
export default <%= pascalEntityName %>
|
src/InputBase.js | erictherobot/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import FormGroup from './FormGroup';
import Glyphicon from './Glyphicon';
class InputBase extends React.Component {
getInputDOMNode() {
return React.findDOMNode(this.refs.input);
}
getValue() {
if (this.props.type === 'static') {
retu... |
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Alert.js | Akkuma/npm-cache-benchmark | import _Object$values from 'babel-runtime/core-js/object/values';
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-... |
src/svg-icons/av/mic-none.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvMicNone = (props) => (
<SvgIcon {...props}>
<path d="M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm-1.2-9.1c0-.66.54-1.2 1.2-1.2.66 0 1.2.54 1.2 1.2l-.01 6.2c0 .66-.53 ... |
lib/react/components/S3Explorer/index.js | bwyap/ptc-amazing-g-race | import React from 'react';
import PropTypes from 'prop-types';
import autobind from 'core-decorators/es/autobind';
import DateFormat from 'dateformat';
import { Menu, MenuItem, Spinner } from '@blueprintjs/core';
const style = {
display: 'flex',
alignItems: 'center',
border: 'solid 1px lightgray',
padding: '0 0.5... |
node_modules/react-router-dom/node_modules/react-router/es/Prompt.js | ddigioia/react_router_practice_1 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
src/components/Feedback/Feedback.js | JosephArcher/KappaKappaKapping | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback extends Component {
render() {
return (
<div className="Feedback... |
client/src/index.js | teamyudin/GraphQL | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
components/ui/nav.js | bannik/hole | import React from 'react';
import Base from './Base';
import ReactDOM from 'react-dom';
class Nav extends Base{
render(){
let customClass = this.props.customClass ? this.props.customClass : null;
let classes = ["nav", customClass];
return (
<ul className={ classes } >
... |
src/editable/html/forms/InputDropdown.js | webcerebrium/ec-react15-lib | import React from 'react';
import { Dropdown } from './../../../components';
import { triggerAction } from './../../../services/DocumentAction';
import { Logger, setValue, getValue, getWritableValue, getStyling } from './../../../services';
export const InputDropdown = ({ section, index, props, context, pos, childInde... |
js/BaseComponents/AttentionCatcher.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... |
src/views/components/ThermostatServiceDetails.js | physiii/home-gateway | import React from 'react';
import PropTypes from 'prop-types';
import {Switch, Redirect, withRouter} from 'react-router-dom';
import {compose} from 'redux';
import {connect} from 'react-redux';
import {thermostatSetHoldTemp, thermostatSetPower, thermostatSetSchedule, thermostatSetMode, thermostatSetHold, thermostatFanO... |
app/javascript/mastodon/features/list_adder/components/list.js | pso2club/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import IconButton from '../../../components/icon_button';
import { defineMessages, inject... |
src/svg-icons/social/person-outline.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPersonOutline = (props) => (
<SvgIcon {...props}>
<path d="M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C... |
src/client/pages/todos.react.js | terakilobyte/socketreact | import Buttons from '../todos/buttons.react';
import Component from '../components/component.react';
import DocumentTitle from 'react-document-title';
import List from '../todos/list.react';
import NewTodo from '../todos/newtodo.react';
import React from 'react';
import ToCheck from './tocheck.react';
import immutable ... |
src/browser/index.js | choujimmy/refly | /* @flow */
import React from 'react'
import ReactDOM from 'react-dom'
import { rehydrate } from 'glamor'
import Root from './Root'
import configureStore from '../common/store/configureStore'
rehydrate(window.__STYLE_IDS__)
const store = configureStore(window.__STORE_STATE__)
const container = document.getElementById... |
src/components/custom/User/UserInfoBox.js | NE-SmallTown/React-QuietWater | /**
* v0.0.1
*
* Copyright (c) 2017
*
* Date: 2017/5/9 by Heaven
*/
import React from 'react';
import PropTypes from 'prop-types';
import UserLink from './UserLink';
import './UserInfoBox.css';
export default class UserInfoBox extends React.PureComponent {
static propTypes = {
avatarUrl: PropTypes.string... |
packages/ringcentral-widgets-docs/src/app/pages/Components/MessageInput/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/entypo/Minus.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--Minus';
let EntypoMinus = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M16,10c0,0.553-0.048,1-0.601,1H4.601C4.049,11,4,10.553,4,10c0-0.553,0.049-1,0.601-1h10.799C15.952,9,16,... |
packages/icon-builder/tpl/SvgIcon.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '{{{ muiRequireStmt }}}';
let {{className}} = (props) => (
<SvgIcon {...props}>
{{{paths}}}
</SvgIcon>
);
{{className}} = pure({{className}});
{{className}}.displayName = '{{className}}';
{{className}}.muiName = 'SvgIcon';
expor... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | asimauchi/simauchiPrintingRevamp | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/image/Controls/AddImage.js | sanchesking9/image_builder | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Button from '../components/button';
if (process.env.WEBPACK) require('./css/AddImage.scss');
@connect((state) => {
const {image} = state;
return {image};
})
export default class AddImage extends Component {
_handleImageChange... |
src/components/song-store/song-store-list-container.js | philholden/omysoul | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { List } from '../layouts/list'
import ItemInSongStoresContainer
from './item-in-song-stores-container'
const SongStoreList = ({
songStores
}) => {
return (
<List>
{ songStores.map(({ id }... |
src/components/topic/controlbar/timespans/TimespanSelectorContainer.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import { filterByTimespan, toggleTimespanControls, setTimespanVisiblePeriod }
from '../../../../actions/topicActions';
import TimespanSelector from './TimespanSelector';
const TimespanSelectorContainer = (props) => ... |
src/components/GameSelection.js | Julzso23/player.me-one-click-share | import React from 'react';
import Error from './Error';
import Spinner from './Spinner';
import request from 'superagent';
import '../styles/games.css';
import 'font-awesome/css/font-awesome.css';
export default class GameSelection extends React.Component {
constructor(props) {
super(props);
this.... |
docs/src/app/components/pages/components/IconButton/ExampleSize.js | pancho111203/material-ui | import React from 'react';
import IconButton from 'material-ui/IconButton';
import ActionHome from 'material-ui/svg-icons/action/home';
const styles = {
smallIcon: {
width: 36,
height: 36,
},
mediumIcon: {
width: 48,
height: 48,
},
largeIcon: {
width: 60,
height: 60,
},
small: {
... |
src/svg-icons/maps/streetview.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsStreetview = (props) => (
<SvgIcon {...props}>
<path d="M12.56 14.33c-.34.27-.56.7-.56 1.17V21h7c1.1 0 2-.9 2-2v-5.98c-.94-.33-1.95-.52-3-.52-2.03 0-3.93.7-5.44 1.83z"/><circle cx="18" cy="6" r="5"/><path d... |
env/src/index.js | eyesofkids/react-compositionevent | import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
ReactDOM.render(
<App />,
document.getElementById('root'))
|
packages/benchmarks/src/implementations/react-fela/Provider.js | css-components/styled-components | /* eslint-disable react/prop-types */
import React from 'react';
import { createRenderer } from 'fela';
import { Provider as FelaProvider } from 'react-fela';
import View from './View';
const renderer = createRenderer();
class Provider extends React.Component {
render() {
return (
<FelaProvider renderer={... |
frontend-web-v2/src/containers/MasterContainer.js | ClubCedille/jardiniot | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Master from '../components/Master';
class MasterContainer extends Component {
render() {
return (
<Master>
<div className="page-content">
{this.props.children}
</div>
</Master>
);
}... |
src/components/_archive/_api/Google/components/index.js | mgoodenough/estimator | 'use strict';
/*
* Module Definition
*
*/
import React from 'react';
import Autocomplete from './GoogleAutocomplete';
import Map from './GoogleMap';
import Marker from './GoogleMarker';
import GeoCoder from '../utils/GoogleGeoCoder';
import GeoLocation from '../utils/GoogleGeoLocation';
/*
* Class Definition
*... |
src/svg-icons/action/grade.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionGrade = (props) => (
<SvgIcon {...props}>
<path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/>
</SvgIcon>
);
ActionGrade = pure(ActionGrade);
ActionGrade.... |
src/website/app/pages/Color/index.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import styled from '@emotion/styled';
import { type Color as ColorType } from '../../../../library/themes/generated/palette';
import Markdown from '../../Markdown';
import ColorRamp from './ColorRamp';
import RampLegend from './RampLegend';
import Variants from './Variants';
impor... |
Js/Core/Lib/Ui/Menu.js | Webiny/Webiny | import React from 'react';
import Component from './../Core/Component';
class Menu extends Component {
}
Menu.defaultProps = {
id: null,
label: null,
icon: null,
order: 100,
role: null,
route: null,
level: 0,
overwriteExisting: false,
apps: []
};
export default Menu; |
modules/RouteUtils.js | nottombrown/react-router | import React from 'react'
import warning from 'warning'
function isValidChild(object) {
return object == null || React.isValidElement(object)
}
export function isReactChildren(object) {
return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild))
}
function checkPropTypes(componentName, p... |
docs/app/Examples/elements/Button/Types/ButtonExampleContentProp.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleContentProp = () => (
<Button content='Click Here' />
)
export default ButtonExampleContentProp
|
client/components/Issue/Note.js | Mignon-han/issue-processing | import React, { Component } from 'react';
import marked from 'marked';
import SimpleMDE from 'react-simplemde-editor';
import './css/mdedit.css'
import './css/style.css'
import CollapsiblePanel from '../Common/CollapsiblePanel'
import { Button, Tabs, Tab } from 'react-bootstrap';
class Note extends Component {
co... |
app/react-icons/fa/medium.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaMedium extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m13.3 9.4v26.2q0 0.5-0.3 0.9t-0.8 0.4q-0.3 0-0.7-0.2l-10.4-5.2q-0.5-0.2-0.8-0... |
src/components/UI/ScreenWrapper.js | lgrqvst/ravr | import React from 'react';
import styled from 'styled-components';
const ScreenWrapper = ({ children }) => {
return <ScreenWrapperElement>{children}</ScreenWrapperElement>;
};
const ScreenWrapperElement = styled.div`
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
text... |
src/components/Header/Header.js | townmi/bis | import React from 'react'
import { IndexLink, Link } from 'react-router'
import './Header.scss'
export const Header = () => (
<div>
<h1>React Starter Kit ---- <a href='https://bodyno.com' target='_blank'>bodyno</a></h1>
<IndexLink to='/' activeClassName='route--active'>
Home
</IndexLink>
{' · '... |
scripts/src/pages/rooms.js | Twogether/just-meet-frontend | import ReactDOM from 'react-dom';
import React from 'react';
import { Link } from 'react-router';
import Api from '../utils/api';
import view from './views/rooms';
import menu from '../utils/menu';
class Rooms extends React.Component {
constructor(props) {
super(props);
this.props = props;
... |
src/cms/preview-templates/CaseStudyPostPreview.js | fathomlondon/fathomlondon.github.io | import React from 'react';
import PropTypes from 'prop-types';
import { PostBody } from '../../components/PostBody';
const CaseStudyPostPreview = ({ entry, widgetFor }) => (
<PostBody
isPreview
html={widgetFor('body')}
title={entry.getIn(['data', 'title'])}
subtitle={entry.getIn(['data', 'subtitle'])}
type=... |
src/components/controls/play/Play.js | acorn421/react-html5video-subs | import React from 'react';
import Icon from './../../icon/Icon';
var Play = React.createClass({
propTypes: {
copyKeys: React.PropTypes.object,
togglePlay: React.PropTypes.func,
paused: React.PropTypes.bool
},
/**
* As controls receive all props for extensibility, we do a quic... |
src/server.js | soupnasty/techheroes-web | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
import ApiC... |
src/components/Link/Link.js | 24v/player-sankey | /**
* 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-... |
packages/mineral-ui-icons/src/IconDirectionsCar.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconDirectionsCar(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...icon... |
examples/js/remote/remote-delete-row.js | prajapati-parth/react-bootstrap-table | import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
export default class RemoteDeleteRow extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<BootstrapTable data={ this.props.data }
remote={ true... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.