path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/order/index.js
Wenqer/food-proto
import React from 'react' import Item from './item2' document.body.style.margin = 0 const ordersMock = [ { // title: 'Жареная курица в панировке Торикацу', title: 'Жареная курица в япoнской панировке Торикацу', price: 87, }, { title: 'Лимонад классический с мятой', price: 20.02, }, { ...
src/components/LoginForm/LoginForm.js
cyberid41/simple-blog-react
import React, { Component } from 'react'; import { reduxForm, Field, propTypes } from 'redux-form'; import loginValidation from './loginValidation'; @reduxForm({ form: 'login', validate: loginValidation }) export default class LoginForm extends Component { static propTypes = { ...propTypes } renderInput...
src/client/pages/tocheckitem.react.js
jaegerpicker/GLDice
import Component from '../components/component.react'; import React from 'react'; import {FormattedHTMLMessage} from 'react-intl'; class ToCheckItem extends Component { static propTypes = { item: React.PropTypes.object.isRequired }; render() { return ( <li> <FormattedHTMLMessage message={...
app/javascript/mastodon/components/icon_button.js
unarist/mastodon
import React from 'react'; import Motion from '../features/ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class IconButton extends React.PureComponent { static propTypes = { className: PropTypes.stri...
components/tree/demo/line.js
TDFE/td-ui
import React from 'react'; import Tree from '../index'; const TreeNode = Tree.TreeNode; export default class Line extends React.Component { onSelect = (selectedKeys, info) => { console.log('selected', selectedKeys, info); } render() { return ( <Tree showLine defaultExpandedKeys={['0...
src/svg-icons/places/room-service.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesRoomService = (props) => ( <SvgIcon {...props}> <path d="M2 17h20v2H2zm11.84-9.21c.1-.24.16-.51.16-.79 0-1.1-.9-2-2-2s-2 .9-2 2c0 .28.06.55.16.79C6.25 8.6 3.27 11.93 3 16h18c-.27-4.07-3.25-7.4-7.16-8.21z"...
frontend/src/components/Home.js
mqklin/results
import React from 'react'; class ArticleRow extends React.Component { render() { return ( <tr> <td>{this.props.article.author}</td> <td><a href={this.props.article.url} target="_blank">{this.props.article.description}</a></td> <td>{this.props.article.categories.join(', ')}</td> ...
client/lib/clickableItem.js
VoiSmart/Rocket.Chat
import { css } from '@rocket.chat/css-in-js'; import colors from '@rocket.chat/fuselage-tokens/colors'; import React from 'react'; const clickable = css` cursor: pointer; border-bottom: 2px solid ${colors.n300} !important; &:hover, &:focus { background: ${colors.n100}; } `; // TODO remove border from here exp...
client/src/app/redux/rootView.js
Einsteinish/DumbNode
import React from 'react'; import { Provider } from 'react-redux' import Routes from '../routes' import Debug from 'debug'; let debug = new Debug("rootView"); export default function RootView(store, parts){ debug('init'); const routes = Routes(store, parts) const Intl = parts.core.containers.intl(); c...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
BerniceChua/landr
import React from 'react'; // 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'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/components/AddPeer.js
awentzonline/doppelchat
import React from 'react'; import {TextField} from 'material-ui'; import PeerActions from 'peers/PeerActions'; class AddPeerComponent extends React.Component { constructor(props) { super(props); this.state = { peerId: '' }; } render() { return ( <div className="addPeer"> <fo...
index.ios.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);
app/user/profile/EditableProfileSkillListItem.js
sagnikm95/internship-portal
import React from 'react'; import { Label, Icon } from 'semantic-ui-react'; import PropTypes from 'prop-types'; export default class EditableProfileSkillListItem extends React.Component { constructor() { super(); this.handleClick = (event, data) => { console.log(data.children[1]); this.props.remo...
examples/react-es6/CheckboxWithLabel.js
createbang/jest
import React from 'react'; class CheckboxWithLabel extends React.Component { constructor(props) { super(props); this.state = {isChecked: false}; // since auto-binding is disabled for React's class model // we can prebind methods here // http://facebook.github.io/react/blog/2015/01/27/react-v0.1...
codes/chapter06/src/containers/AddTodo.js
atlantis1024/react-step-by-step
import React from 'react' import { connect } from 'react-redux' import { addTodo } from '../actions' let AddTodo = ({ dispatch }) => { let input return ( <div> <form onSubmit={e => { e.preventDefault() if (!input.value.trim()) { return } dispatch(addTodo(input.v...
src/components/app.js
mdunnegan/ReactFrontEndAuthentication
import React, { Component } from 'react'; import Header from './header'; export default class App extends Component { render() { return ( <div> <Header /> {this.props.children} </div> ); } }
src/components/Root.js
guiconti/Buildev
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Provider } from 'react-redux'; import routes from '../routes'; import { Router } from 'react-router'; export default class Root extends Component { render() { const { store, history } = this.props; return ( <Provider...
frontend/components/statistics/BigStatistics.js
datoszs/czech-lawyers
import React from 'react'; import PropTypes from 'prop-types'; import {Statistics} from '../../model'; import StatisticsColumn from './StatisticsColumn'; import styles from './BigStatistics.less'; const BigStatistics = ({statistics, msgPositive, msgNegative, msgNeutral}) => { const max = Math.max(statistics.positi...
src/components/TodoList.js
SaKKo/react-redux-todo-boilerplate
import React from 'react'; import { connect } from 'react-redux'; import Todo from './Todo'; import { toggleTodo } from '../actions/actions'; import { SHOW_ALL, SHOW_COMPLETED, SHOW_ACTIVE } from '../constants/ActionTypes'; const TodoList = ({ todos, onTodoClick }) => ( <ul> {todos.map(todo => <To...
docs/src/SupportPage.js
bvasko/react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; export default class Page extends React.Component { render() { return ( <div> <NavMain activePage="support" /> <PageHeader title="Nee...
src/components/routes/Author/Author.js
sievins/sarahs-footsteps
import React from 'react' import profile from 'images/profile.png' import ImageAndTextTemplate from '../ImageAndTextTemplate' import AboutTheAuthor from './AboutTheAuthor' const Author = () => ( <ImageAndTextTemplate img={{ src: profile, alt: 'author' }} Text={AboutTheAuthor} /> ) export default Author
docs/src/app/components/pages/components/LinearProgress/ExampleSimple.js
frnk94/material-ui
import React from 'react'; import LinearProgress from 'material-ui/LinearProgress'; const LinearProgressExampleSimple = () => ( <LinearProgress mode="indeterminate" /> ); export default LinearProgressExampleSimple;
src/svg-icons/social/notifications-none.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialNotificationsNone = (props) => ( <SvgIcon {...props}> <path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l...
packages/shared/forks/object-assign.umd.js
chenglou/react
/** * 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. * * @flow */ import React from 'react'; const ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; export d...
js/webui/src/columns_settings.js
hyperblast/beefweb
import React from 'react'; import PropTypes from 'prop-types' import { SortableContainer, SortableElement, SortableHandle } from 'react-sortable-hoc'; import { bindHandlers } from './utils'; import { Button, Icon } from './elements'; import ReactModal from 'react-modal'; import { ConfirmDialog, DialogButton } from './d...
app/containers/LanguageProvider/index.js
adityaanupindi/reactapp
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
modules/frontend/src/js/components/widgets/Paginator.js
fleximaps/fleximaps
import styles from './Paginator.css'; import React from 'react'; import CSSModules from 'react-css-modules'; class Paginator extends React.Component { render() { return ( <div styleName='paginator'> <ol styleName='paginatorList'> {this._getNumbers()} ...
server/src/main/components/shelves.react.js
madureira/hybrid-frontend
import React from 'react'; import Shelf from './shelf.react'; class Shelves extends React.Component { constructor(props) { super(props); this.items = props.items; this.addToOrder = props.addToOrder; } render() { let shelves = this.items.map((shelf, index) => { return (<Shelf key={index} pr...
front/js/containers/History/index.js
henrypoon/stockoverflow
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import RecordTable from '../../components/RecordTable'; import { bounce } from 'react-animations'; import Radium, {StyleRoot} from 'radium'; import { Header, Icon } from 'semantic-ui-react'; import './History.css'; @c...
src/views/HomeView/HomeView.js
Rkiouak/react-redux-python-stocks
/* @flow */ import React from 'react' export class HomeView extends React.Component { render () { return ( <div> <h1>Your New Project</h1> </div> ) } } export default HomeView
src/svg-icons/action/rowing.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRowing = (props) => ( <SvgIcon {...props}> <path d="M8.5 14.5L4 19l1.5 1.5L9 17h2l-2.5-2.5zM15 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 20.01L18 24l-2.99-3.01V19.5l-7.1-7.09c-.31.05-.61.07-.91.07v-...
src/components/Home/banner.js
pritchardtw/ReactPersonalSite
import React, { Component } from 'react'; export default class Banner extends Component { render() { return( <div className="Banner"> Thomas Pritchard </div> ) } }
src/svg-icons/device/signal-cellular-connected-no-internet-2-bar.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularConnectedNoInternet2Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M14 22V10L2 22h12zm6-12v8h2v-8h-2zm0 12h2v-2h-2v2z"/> </SvgIcon> ); Devi...
tasks/scaffolding/templates/app/frontend/page.js
latteware/marble-seed
import React from 'react' import PageComponent from '~base/page-component' class {{ reactClassName }} extends PageComponent { constructor (props) { super(props) this.state = { ...this.baseState } } render () { const basicStates = super.getBasicStates() if (basicStates) { return basicSt...
utils/typography.js
conversataal/conversataal.github.io
// import ReactDOM from 'react-dom/server'; // import React from 'react'; // import Typography from 'typography'; // import { GoogleFont } from 'react-typography'; // import CodePlugin from 'typography-plugin-code'; // // const options = { // googleFonts: [ // { // name: 'Roboto', // styles: [...
src/assets/scripts/routes/About.js
SnowShock/Runew0lf
import React from 'react'; export default class About extends React.Component { render () { return( <div className="about"> <section id="about" className='section'> <div className="container"> <h3 className="section-heading">Who's This Handsome Fella?</h3> <div cla...
src/tests.js
Sawtaytoes/Ghadyani-Framework-Webpack-React-Redux
import React from 'react' import { AppContainer } from 'react-hot-loader' import { render } from 'react-dom' import getTestFiles, { isValidTestFile } from 'utils/getTestFiles' import TestsRoot from 'components/root/TestsRoot' const testFiles = getTestFiles() const testName = window.__TESTNAME__ const isWildcard = te...
app/javascript/mastodon/components/loading_indicator.js
riku6460/chikuwagoddon
import React from 'react'; import { FormattedMessage } from 'react-intl'; const LoadingIndicator = () => ( <div className='loading-indicator'> <div className='loading-indicator__figure' /> <FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' /> </div> ); export default LoadingIndicat...
client/app/Upgrade.js
li-cai/folio2
import React, { Component } from 'react'; import classnames from 'classnames'; class Upgrade extends Component { constructor() { super(); this.state = { accountType: 'Basic', }; } componentDidMount() { sendAjax('GET', '/accountType', null, function(data) { if (data.accountType) { ...
ui/js/components/ImageField.js
ericsoderberg/pbc-web
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import FormField from './FormField'; export default class ImageField extends Component { render() { const { formState, help, label, name, property } = this.props; const image = formState.object[property]; let result; if (...
actor-apps/app-web/src/app/components/modals/CreateGroup.react.js
liqk2014/actor-platform
import React from 'react'; import CreateGroupActionCreators from 'actions/CreateGroupActionCreators'; import CreateGroupStore from 'stores/CreateGroupStore'; import CreateGroupForm from './create-group/Form.react'; import Modal from 'react-modal'; import { KeyCodes } from 'constants/ActorAppConstants'; const appEl...
src/main/resources/static/bower_components/jqwidgets/jqwidgets-react/react_jqxrating.js
dhawal9035/WebPLP
/* jQWidgets v4.5.0 (2017-Jan) Copyright (c) 2011-2017 jQWidgets. License: http://jqwidgets.com/license/ */ import React from 'react'; let jqxRating = React.createClass ({ getInitialState: function () { return { value: '' }; }, componentDidMount: function () { let options = this.manageAttributes(); ...
actor-apps/app-web/src/app/components/modals/CreateGroup.react.js
JamesWatling/actor-platform
import React from 'react'; import CreateGroupActionCreators from '../../actions/CreateGroupActionCreators'; import CreateGroupStore from '../../stores/CreateGroupStore'; import CreateGroupForm from './create-group/Form.react'; import Modal from 'react-modal'; import { KeyCodes } from '../../constants/ActorAppConsta...
src/svg-icons/editor/insert-emoticon.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertEmoticon = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm...
src/client/components/smalllogo.react.js
sljuka/portfulio
import Component from '../components/component.react' import React from 'react' export default class SmallLogo extends Component { render() { return ( <div className='small-logo'> <span className='light-text'>David Šljukić - </span> <span className='mediterano'>portfolio</span> </di...
app/components/views/room-list.js
erisalke/react-playground
import React from 'react'; import CreateRoomButton from './create-room-button' import { Link } from 'react-router'; import { emitEvent } from '../../api/websockets'; export default function(props) { return ( <div> <h2>Available game rooms</h2> <ul className="list-group"> { props.ro...
client/modules/Kanban/Kanban.js
mraq1234/mod11
import React from 'react'; import propTypes from 'prop-types'; import Lanes from '../Lane/Lanes'; import styles from '../Kanban/Kanban.css'; import DevTools from '../App/components/DevTools'; const Kanban = (props) => <div> <DevTools /> <div> <button className={styles.AddLane} onClick={...
app/src/components/Tag/RenameModal.js
GetStream/Winds
import React from 'react'; import PropTypes from 'prop-types'; import ReactModal from 'react-modal'; import { Img } from 'react-image'; import { renameTag } from '../../api/tagAPI'; import saveIcon from '../../images/icons/save.svg'; import exitIcon from '../../images/buttons/exit.svg'; class RenameModal extends Reac...
app/containers/TodoInput/index.js
iPhaeton/todo-list
/* * * TodoInput * */ import React from 'react'; import { connect } from 'react-redux'; import selectTodoInput from './selectors'; import { defaultAction } from './actions'; export class TodoInput extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function render() { return ( ...
react/features/authentication/components/native/WaitForOwnerDialog.js
gpolitis/jitsi-meet
// @flow import React, { Component } from 'react'; import type { Dispatch } from 'redux'; import { ConfirmDialog } from '../../../base/dialog'; import { translate } from '../../../base/i18n'; import { connect } from '../../../base/redux'; import { cancelWaitForOwner } from '../../actions.native'; import LoginDialog ...
docs/src/app/pages/components/ColorPicker/ExampleColorPickerSelected.js
GetAmbassador/react-ions
import React from 'react' import ColorPicker from 'react-ions/lib/components/ColorPicker' const ExampleColorPickerSelected = () => ( <div> <ColorPicker value='#3c97d3'/> </div> ) export default ExampleColorPickerSelected
demo/components/textarea/TextAreaOptions.js
ctco/rosemary-ui
import React from 'react'; import {TextArea} from '../../../src'; import OptionsTable from '../../helper/OptionsTable'; export default () => { let propDescription = { }; return ( <OptionsTable component={TextArea} propDescription={propDescription} /> ); };
src/views/exams/edit.js
foysalit/react-mcq
import React, { Component } from 'react'; import AuthActions from '../../actions/auth'; import AppActions from '../../actions/app'; import QuestionStore from '../../stores/question'; import QuestionActions from '../../actions/question'; import ExamActions from '../../actions/exam'; import ExamStore from '../../stores/e...
src/Affix.js
xsistens/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import AffixMixin from './AffixMixin'; const Affix = React.createClass({ mixins: [AffixMixin], render() { let holderStyle = { top: this.state.affixPositionTop, // we don't want to expose the `style` property ...this.props.style...
src/svg-icons/navigation/fullscreen-exit.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationFullscreenExit = (props) => ( <SvgIcon {...props}> <path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/> </SvgIcon> ); NavigationFullscreenExit = pure(NavigationF...
webapp/imports/ui/components/AuthenticatedNavigation.js
clinical-meteor/meteor-on-fhir
import {ToolbarGroup, ToolbarTitle} from 'material-ui/Toolbar'; import ActionAccountCircle from 'material-ui/svg-icons/action/account-circle'; import ActionExitToApp from 'material-ui/svg-icons/action/exit-to-app'; import AvVideoCall from 'material-ui/svg-icons/av/video-call'; import { CardText } from 'material-ui/Car...
src/components/Main.js
wbhniwanl/generator-react-webpack
'use strict'; require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; import ReactDOM from 'react-dom'; //获取图片相关的数据 var imageDatas = require('../data/imageData.json'); //利用自执行函数,将图片信息转化为URl信息 imageDatas = ((imageDatasArr)=>{ for (var i = 0; i < imageDatasArr.length; i++) {...
src/routes/index.js
mauphes/own-git-project
import React from 'react'; import App from '../components/App'; // Child routes import home from './home'; import learn from './learn'; import content from './content'; import error from './error'; export default { path: '/', // keep in mind, routes are evaluated in order children: [ home, learn, ...
o2web/source/x_component_appstore_application/src/App.js
o2oa/o2oa
import './App.css'; import React from 'react'; import AppBase from './components/AppBase.js'; import AppDescribe from './components/AppDescribe.js'; import AppInstallSteps from './components/AppInstallSteps.js'; import AppVideo from './components/AppVideo.js'; import {o2, component, lp} from '@o2oa/component'; export...
client/modules/questions/components/newSession.js
johngonzalez/abcdapp
import React from 'react'; import {Button} from 'react-bootstrap'; const NewSession = ({error, create, classId}) => ( <div> {error ? <p style={{color: 'red'}}>{error}</p> : null} <Button bsStyle="default" bsSize="large" block onClick={e => create(e, classId)}> Inicia esta clase! </Button> </div> ...
src/index.js
kristingreenslit/react-redux-weather-browser
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import ReduxPromise from 'redux-promise'; import App from './components/app'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware(...
docs/src/app/components/pages/components/Stepper/VerticalNonLinearStepper.js
pradel/material-ui
import React from 'react'; import { Step, Stepper, StepButton, StepContent, } from 'material-ui/Stepper'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; /** * A basic vertical non-linear implementation */ class VerticalNonLinear extends React.Component {...
src/utils/children.js
subjectix/material-ui
import React from 'react'; import createFragment from 'react-addons-create-fragment'; export default { create(fragments) { let newFragments = {}; let validChildrenCount = 0; let firstKey; //Only create non-empty key fragments for (let key in fragments) { const currentChild = fragments[key...
fixtures/packaging/systemjs-builder/dev/input.js
cpojer/react
import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( React.createElement('h1', null, 'Hello World!'), document.getElementById('container') );
src/svg-icons/device/airplanemode-active.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceAirplanemodeActive = (props) => ( <SvgIcon {...props}> <path d="M10.18 9"/><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/...
client/components/WebRating.js
Jakeyrob/chill
import React from 'react'; import ReactDOM from 'react-dom'; const WebRating = ({rating}) => { let stars = ""; if (rating > 0) { for (var i = 0; i < rating; i++) { stars += "*"; } } return <div classname='stars'>{stars}</div>; }; module.exports = WebRating;
src/components/MultiTrack.js
bostonjukebox/boston-jukebox-reactjs
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import Track from './Track' import vocals from '../img/icon-vocals.svg' import guitar from '../img/icon-guitar.svg' import drums from '../img/icon-drums.svg' const Container = styled.section` margin-top: 1em; ...
src/svg-icons/device/location-disabled.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceLocationDisabled = (props) => ( <SvgIcon {...props}> <path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06c-1.13.12-2.19.46-3.16.97l1.5 1.5C10.16 5.19 11.06 5 12 5c3.87 0 7 3.13 7 7 0 .94-.19 1.84-.5...
src/components/App.js
Daweo93/weather-forecast-app
import React, { Component } from 'react'; import SearchBar from '../containers/searchBar'; import WeatherList from '../containers/weatherList'; class App extends Component { render() { return ( <div> <SearchBar /> <WeatherList /> </div> ); } } export default App;
app/javascript/mastodon/features/ui/components/media_modal.js
summoners-riftodon/mastodon
import React from 'react'; import ReactSwipeableViews from 'react-swipeable-views'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Video from '../../video'; import ExtendedVideoPlayer from '../../../components/extended_video_player'; import classNames from 'classn...
components/forms/LoginForm.js
jebeck/nefelion
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { Field, propTypes as reduxFormPropTypes, reduxForm } from 'redux-form'; import { Form, Message, Segment } from 'semantic-ui-react'; import styled from ...
src/components/app.js
SRosenshein/react-auth-client
import React, { Component } from 'react'; import Header from './header'; export default class App extends Component { render() { return ( <div> <Header /> {this.props.children} </div> ); } }
docs/src/app/components/pages/components/Card/ExampleExpandable.js
hwo411/material-ui
import React from 'react'; import {Card, CardActions, CardHeader, CardText} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; const CardExampleExpandable = () => ( <Card> <CardHeader title="Without Avatar" subtitle="Subtitle" actAsExpander={true} showExpandableButt...
src/svg-icons/maps/directions-bus.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsBus = (props) => ( <SvgIcon {...props}> <path d="M4 16c0 .88.39 1.67 1 2.22V20c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h8v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1.78c.61-.55 1-1.34 1-2.22V6c0-3.5-3.58-4-8...
app/src/components/Intro/Intro.js
RyanCCollins/ryancollins.io
import React from 'react'; import './Intro.scss'; import DownChevron from '../DownChevron/DownChevron'; import IntroImage from './IntroImage'; import * as Constants from '../../constants'; const Intro = () => ( <section className="intro"> <div className="intro-header"> <div className="intro-header__content...
lib/login-fb/index.js
andyfen/react-native-UIKit
import React from 'react'; import { StyleSheet, TouchableOpacity, Image, } from 'react-native'; import { gutter } from '../variables'; const LoginFb = ({ onPress, style }) => ( <TouchableOpacity onPress={onPress} style={[ styles.outer, style ]}> <Image source={require('./assets/fb-login-button.png')}/> ...
src/components/Login/Login.js
Angular-Toast/habitat
import React, { Component } from 'react'; import{ StyleSheet, View, Image, Text, TouchableOpacity, Button, AsyncStorage } from 'react-native'; import axios from 'axios'; import LoginForm from './LoginForm'; import { onSignIn } from '../auth.js' export default class Login extends Component { constructor(props) { ...
src/components/spaces/cards/index.js
getguesstimate/guesstimate-app
import React from 'react' import Icon from'react-fa' import * as navigationActions from 'gModules/navigation/actions' import * as Space from 'gEngine/space' import * as User from 'gEngine/user' import * as Organization from 'gEngine/organization' import {formatDescription, formatDate} from 'gComponents/spaces/share...
web/src/components/home/Navbar.js
fmiglianico/HaveYouMet
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { withRouter, Redirect, Link } from 'react-router-dom'; import FacebookLogin from '../FacebookLogin'; import FacebookPicture from '../FacebookPicture'; import FacebookLogout from "../FacebookLogout"; import ProfileActionCreator fr...
src/work/components/ProjectCardLinks.js
elailai94/elailai94.github.io
import React, { Component } from 'react'; import { Button } from 'semantic-ui-react'; import PropTypes from 'prop-types'; import ProjectCardLinkItem from './ProjectCardLinkItem'; class ProjectCardLinks extends Component { render() { const { links } = this.props; return ( <Button.Group fluid> ...
src/client/components/footer.js
fk1blow/repeak
import React from 'react'; export default class Footer extends React.Component { render() { return ( <footer id="footer" className="w-100 center phl dn-xs pvm-ns bt b--light-gray gray bg-white"> <div className="f5 db tc lh-copy"> footer contents here </div> </footer> );...
app/containers/DevTools.js
q191201771/chef_blog
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' export default createDevTools( <DockMonitor toggleVisibilityKey="H" changePositionKey="W" > <LogMonitor /> </DockMonito...
app/shared/availability-view/timeline-groups/timeline-group/availability-timeline/ReservationSlot.js
fastmonkeys/respa-ui
import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; import moment from 'moment'; import injectT from '../../../../../i18n/injectT'; import ReservationPopover from '../../../../reservation-popover/ReservationPopover'; import utils from '../utils'; export class Uninjected...
app/plugins/core/settings/index.js
KELiON/cerebro
import React from 'react' import { search } from 'cerebro-tools' import Settings from './Settings' import icon from '../icon.png' // Settings plugin name const NAME = 'Cerebro Settings' // Settings plugins in the end of list const order = 9 // Phrases that used to find settings plugins const KEYWORDS = [ NAME, '...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArraySpread.js
sigmacomputing/create-react-app
/** * 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. */ import Rea...
src/components/ArticleActions.js
feedreaderco/web
import React from 'react'; import LabelButton from './LabelButton'; import style from '../styles/articleActions'; function isLabelled(labels, hash, label) { return labels[label] && labels[label].indexOf(hash) > -1; } export default ({ labels, hash }) => <div style={style}> <LabelButton hash={hash} label...
blueocean-material-icons/src/js/components/svg-icons/notification/confirmation-number.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const NotificationConfirmationNumber = (props) => ( <SvgIcon {...props}> <path d="M22 10V6c0-1.11-.9-2-2-2H4c-1.1 0-1.99.89-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2s.9-2 2-2zm-9 7.5h-2v-2h2v2zm0-4....
src/components/CircleWidget/CircleWidget.js
marinbgd/coolbeer
import React from 'react'; import PropTypes from 'prop-types'; import Paper from 'material-ui/Paper'; import './CircleWidget.scss'; import ReactTooltip from 'react-tooltip'; const style = { display: 'inline-block', position: 'relative', height: 150, width: 150, margin: 20, }; const CircleWidget = (props) => ( ...
src/components/ChatApp/Settings/Settings.react.js
madhavrathi/chat.susi.ai
import React, { Component } from 'react'; import Paper from 'material-ui/Paper'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem'; import PropTypes from 'prop-types'; imp...
src/docs/examples/TextInput/ExampleError.js
ebirito/ps-react-ebirito
import React from 'react'; import TextInput from 'ps-react-ebirito/TextInput'; /** Required TextBox with error */ export default class ExampleError extends React.Component { render() { return ( <TextInput htmlId="example-optional" label="First Name" name="firstname" onChange...
node-siebel-rest/siebel_claims_demo/src/Component/Data/FilterClaims.js
Pravici/node-siebel
import React, { Component } from 'react'; import Claims from './Claims'; import SearchBar from './SearchBar'; class FilterClaims extends Component { constructor(props) { super(props); this.state = { filterText: '' }; this.onFilterTextChange = this.onFilterTextChange.bind(this); } ...
src/svg-icons/maps/tram.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsTram = (props) => ( <SvgIcon {...props}> <path d="M19 16.94V8.5c0-2.79-2.61-3.4-6.01-3.49l.76-1.51H17V2H7v1.5h4.75l-.76 1.52C7.86 5.11 5 5.73 5 8.5v8.44c0 1.45 1.19 2.66 2.59 2.97L6 21.5v.5h2.23l2-2H14l2 2h...
src/components/slider/SliderSwatch.js
socialtables/react-color
'use strict' /* @flow */ import React from 'react' import ReactCSS from 'reactcss' import shallowCompare from 'react-addons-shallow-compare' export class SliderSwatch extends ReactCSS.Component { shouldComponentUpdate = shallowCompare.bind(this, this, arguments[0], arguments[1]) classes(): any { return { ...
app/javascript/mastodon/features/account_timeline/components/header.js
pinfort/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import InnerHeader from '../../account/components/header'; import ImmutablePureComponent from 'react-immutable-pure-component'; import MovedNote from './moved_note'; import { FormattedMessage } fro...
src/components/RadioField.js
founderlab/fl-react-utils
import _ from 'lodash' // eslint-disable-line import React from 'react' import PropTypes from 'prop-types' import Inflection from 'inflection' import {Field} from 'redux-form' import {FormGroup, ControlLabel, HelpBlock} from 'react-bootstrap' import {validationState} from '../validation' export default class RadioFiel...
react-starter/examples/UnigridExample4.js
yoonka/unigrid
/* Copyright (c) 2018, Grzegorz Junka All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following...
src/svg-icons/device/bluetooth-searching.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBluetoothSearching = (props) => ( <SvgIcon {...props}> <path d="M14.24 12.01l2.32 2.32c.28-.72.44-1.51.44-2.33 0-.82-.16-1.59-.43-2.31l-2.33 2.32zm5.29-5.3l-1.26 1.26c.63 1.21.98 2.57.98 4.02s-.36 2.82-.9...
components/Revue.js
vasco3/Apollo
/** * Created by cuadraman on 11/12/16. */ /* @flow */ import React from 'react' export default () => { return ( <div id="revue-embed"> <form action="https://www.getrevue.co/profile/cuadraman/add_subscriber" method="post" id="revue-form" name="revue-form" target="_blank"> <div class...
js/ClientApp.js
daninmotion/react-02
import React from 'react' import {render} from 'react-dom' import {BrowserRouter} from 'react-router' import App from './App' render(<BrowserRouter><App /></BrowserRouter>, document.getElementById('app'))
app/components/LotGDNavigator.js
lotgd/client-react-native
// @flow 'use strict'; import React, { Component } from 'react'; import { View } from 'react-native'; import { StackNavigator } from 'react-navigation'; import util from 'util'; import Login from './Login'; import CharacterCreate from './CharacterCreate'; import UserCreate from './UserCreate'; import Home from './Hom...