path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
client/src/CompConfig/CompConfig.js
Nichsiciul/User-Friendly-CMS
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { Col, Form, FormControl, FormGroup, ControlLabel, Glyphicon, Button, Panel } from 'react-bootstrap'; import axios from 'axios'; import { SliderPicker } from 'react-color'; import ColorBullet from './../ColorBullet/ColorBullet.js'; impor...
src/svg-icons/av/av-timer.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvAvTimer = (props) => ( <SvgIcon {...props}> <path d="M11 17c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1-1 .45-1 1zm0-14v4h2V5.08c3.39.49 6 3.39 6 6.92 0 3.87-3.13 7-7 7s-7-3.13-7-7c0-1.68.59-3.22 1.58-4.42L12 13l1.41-...
app/javascript/mastodon/components/load_more.js
ikuradon/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; export default class LoadMore extends React.PureComponent { static propTypes = { onClick: PropTypes.func, disabled: PropTypes.bool, visible: PropTypes.bool, } static defaultProps = { vi...
stories/examples/AlertContent.js
reactstrap/reactstrap
import React from 'react'; import { Alert } from 'reactstrap'; const Example = (props) => { return ( <div> <Alert color="success"> <h4 className="alert-heading">Well done!</h4> <p> Aww yeah, you successfully read this important alert message. This example text is going t...
src/containers/Home/Home.js
yomolify/customer-webserver
import React, { Component } from 'react'; import { Link } from 'react-router'; import { CounterButton, GithubButton } from 'components'; import AppointmentViewer from '../../components/AppointmentViewer/AppointmentViewer'; import PractitionerAvatar from '../../components/AppointmentViewer/PractitionerComponents/Practit...
egghead.io/react_fundamentals/lessons/14-build-compiler/main.js
andrisazens/learning_react
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('app'));
client/routes.js
Gin-And-Tomic/tune-stream
/* eslint-disable global-require */ import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './modules/App/App'; // require.ensure polyfill for node if (typeof require.ensure !== 'function') { require.ensure = function requireModule(deps, callback) { callback(require); }; }...
src/propTypes/StyleSheetPropType.js
RealOrangeOne/react-native-mock
/** * https://github.com/facebook/react-native/blob/master/Libraries/StyleSheet/StyleSheetPropType.js */ import React from 'react'; import flattenStyle from './flattenStyle'; const { PropTypes } = React; function StyleSheetPropType(shape) { const shapePropType = PropTypes.shape(shape); return function (props, p...
src/server.js
th3hunt/observatory
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel-core/polyfill'; import path from 'path'; import express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import Router from './routes'; import Html from './components/Html'; import http from 'http'...
examples/real-world/routes.js
conorhastings/redux
import React from 'react' import { Route } from 'react-router' import App from './containers/App' import UserPage from './containers/UserPage' import RepoPage from './containers/RepoPage' export default ( <Route path="/" component={App}> <Route path="/:login/:name" component={RepoPage} /> <Route p...
docs/src/app/components/pages/components/Slider/ExampleSimple.js
owencm/material-ui
import React from 'react'; import Slider from 'material-ui/Slider'; /** * The `defaultValue` property sets the initial position of the slider. The slider * appearance changes when not at the starting position. */ const SliderExampleSimple = () => ( <div> <Slider /> <Slider defaultValue={0.5} /> <Slide...
src/components/sensor_temp.js
asommer70/mirror-pila
import React, { Component } from 'react'; import axios from 'axios'; export default class SensorTemp extends Component { constructor(props) { super(props); this.state = { outsideTemp: null, humidity: null, insideTemp: null } axios.get('/api/outside') .then((res) => { ...
app/containers/NotFoundPage/index.js
maxxafari/draftjs-comment-text
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
src/components/todo_group.js
dragonman225/TODO-React
import React from 'react'; import TodoGroupItem from './todo_group_item'; import TodoAddGroup from './todo_add_group'; const todoGroup = (props) => { const empty = (props.groups.length === 0); const error = (props.showErrMsg); const todoGroupItems = props.groups.map((item) => { return ( <TodoGroupItem ...
electron/app/containers/EditorLeftPanel.js
zindlerb/static
import React from 'react'; import { connect } from 'react-redux'; import FormLabel from '../components/forms/FormLabel'; import TextField from '../components/forms/TextField'; import ComponentTreeContainer from '../components/ComponentTreeContainer'; import HorizontalSelect from '../components/HorizontalSelect'; impor...
packages/veritone-widgets/src/widgets/EngineSelection/story.js
veritone/veritone-sdk
import React from 'react'; import { noop } from 'lodash'; import { storiesOf } from '@storybook/react'; import BaseStory from '../../shared/BaseStory'; import { EngineSelectionWidget } from './'; storiesOf('EngineSelectionWidget', module) .add('Base', () => { const props = { onSave: noop, onCancel: ...
app/javascript/mastodon/containers/status_container.js
riku6460/chikuwagoddon
import React from 'react'; import { connect } from 'react-redux'; import Status from '../components/status'; import { makeGetStatus } from '../selectors'; import { replyCompose, mentionCompose, directCompose, } from '../actions/compose'; import { reblog, favourite, unreblog, unfavourite, pin, unpin, }...
src/components/LatexMath.js
donjar/learn-latex
import React from 'react'; import { InlineMath, BlockMath } from 'react-katex'; class LatexMath extends React.Component { render() { if (this.props.display === "inline") { return (<InlineMath math={this.props.math} />); } else if (this.props.display === "block") { return (<BlockMath math={this.pr...
src/index.js
juandjara/ftunes-client
import React from 'react'; import ReactDOM from 'react-dom'; import Root from './Root'; ReactDOM.render( <Root />, document.getElementById('root') );
cheesecakes/plugins/content-manager/admin/src/components/VariableEditIcon/index.js
strapi/strapi-examples
/** * * VariableEditIcon */ import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; import styles from './styles.scss'; function VariableEditIcon({ onClick, withLongerHeight, ...rest }) { return ( <span className={cn(withLongerHeight ? styles.editIconLonger : styles...
static/js/login.js
wolendranh/movie_radio
import React from 'react'; import {auth} from './auth.jsx'; module.exports = React.createClass({ contextTypes: { router: React.PropTypes.object.isRequired }, handleSubmit: function(e) { e.preventDefault(); var username = this.refs.username.value; var pass = this.refs.pass...
web/src/index.js
impl21/budget-ui
import "../../modules/uikit/less/uikit.less" import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import configureStore from './store' import routes from './routes' import './index.less'; let store = configureStore(); ReactDOM.render(( <Provider store={store}> ...
packages/ringcentral-widgets-docs/src/app/pages/Styles/Buttons/index.js
u9520107/ringcentral-js-widget
import React from 'react'; import classnames from 'classnames'; import PrimaryButtonSpecs from '../../../assets/images/primary_button_specs.svg'; import PrimaryButtonPopupSpecs from '../../../assets/images/primary_button_popup_specs.svg'; import primaryButtonPageExample from '../../../assets/images/primary_button_in_pa...
src/svg-icons/hardware/keyboard-arrow-down.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardArrowDown = (props) => ( <SvgIcon {...props}> <path d="M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"/> </SvgIcon> ); HardwareKeyboardArrowDown = pure(HardwareKeyboardArrowDown); HardwareKey...
app/index.js
CaseyLeask/starting-again
import React from 'react'; export default (props) => <p>Hello World</p>;
src/Header.js
dmed256/website
import React from 'react'; import { Button, Toolbar, Typography, withStyles, } from 'material-ui'; import { getHistory } from './utils'; const MenuButton = ({ name, path }) => ( <Button color="inherit" onClick={() => { getHistory().push(path); }} > {name} </Button> ); const Header...
src/components/Footer/index.js
devrsi0n/React-2048-game
import React from 'react'; import PropTypes from 'prop-types'; import styles from './footer.scss'; import github from '../../assets/images/github.png'; // Footer, link to github repo and developer profile export default class Footer extends React.Component { static propTypes = { name: PropTypes.string.isRequired...
react/exercises/part_05/src/index.js
jsperts/workshop_unterlagen
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import '../node_modules/bootstrap/dist/css/bootstrap.min.css'; import './index.css'; import AppContainer from './containers/App'; import { getContacts } from './actions'; import store from './store'; store.dispatch(g...
examples/async/index.js
andreieftimie/redux
import 'babel-core/polyfill'; import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); render( <Provider store={store}> <App /> </Provider>, ...
frontend/src/AlbumStudio/AlbumStudioConnector.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { clearAlbums, fetchAlbums } from 'Store/Actions/albumActions'; import { saveAlbumStudio, setAlbumStudioFilter, setAlbumStudioSort } from 'Store/Actions/...
docs/src/index.js
Temzasse/react-buffet
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.scss'; ReactDOM.render( <App />, document.getElementById('root'), );
app/src/containers/MentorshipContainer/index.js
udacityalumni/udacity-alumni-fe
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as MentorshipActionCreators from './actions'; import cssModules from 'react-css-modules'; import styles from './index.module.scss'; import Heading from 'grommet-udacity/components/Headin...
examples/counter/index.js
edge/redux
import React from 'react' import ReactDOM from 'react-dom' import { createStore } from 'redux' import Counter from './components/Counter' import counter from './reducers' const store = createStore(counter) const rootEl = document.getElementById('root') function render() { ReactDOM.render( <Counter value={...
index.android.js
DreamCloudWalker/SoccerMap
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, } from 'react-native'; import DiscoveryPage from './js/discovery/discovery' AppRegistry.registerComponent('RNFirst', () => DiscoveryPage);
src/React/Widgets/ProxyEditorWidget/example/index.js
Kitware/paraviewweb
import 'normalize.css'; import React from 'react'; import ReactDOM from 'react-dom'; import ProxyEditorWidget from 'paraviewweb/src/React/Widgets/ProxyEditorWidget'; import source from 'paraviewweb/src/React/Widgets/ProxyEditorWidget/example/source-proxy.json'; import representation from 'paraviewweb/src/React/Widge...
packages/icons/src/md/av/FeaturedVideo.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdFeaturedVideo(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M42 6c2.2 0 4 1.8 4 4v28c0 2.2-1.8 4-4 4H6c-2.2 0-4-1.8-4-4V10c0-2.2 1.8-4 4-4h36zM24 24V10H6v14h18z" /> </IconBase> ); } export default...
blueocean-material-icons/src/js/components/svg-icons/hardware/devices-other.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const HardwareDevicesOther = (props) => ( <SvgIcon {...props}> <path d="M3 6h18V4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4v-2H3V6zm10 6H9v1.78c-.61.55-1 1.33-1 2.22s.39 1.67 1 2.22V20h4v-1.78c.61-.55 1-1.34 1-2.22s-.39-1.67-1-2.22V12zm-2 5.5c-.83 0-1.5-...
assets/jsx/views/services/components/consulting.js
Tjorriemorrie/besetfree
import React from 'react' import classNames from 'classnames' import ServiceBox from './serviceBox' class Consulting extends React.Component { constructor(props) { super(props); this.state = { cons: [ { img: '/static/img/con_individual.jpg', ...
src/scripts/app.js
IronNation/NCI-trial-search
import React from 'react' import ReactDOM from 'react-dom' import Backbone from 'backbone' import HomeView from './views/HomeView' import LoginView from './views/LoginView' import SearchView from './views/SearchView' import SearchResultsView from './views/SearchResultsView' import TrialDetailsView from './views/TrialDe...
src/svg-icons/social/person-outline.js
pancho111203/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...
website/src/components/common/InternalLink/index.js
jwngr/notreda.me
import React from 'react'; import {connect} from 'react-redux'; import {push} from 'connected-react-router'; function asInternalLink(WrappedComponent) { return class extends React.Component { handleClick(e) { const {href, onClick, navigateTo} = this.props; // Run the custom onClick method, if provid...
src/website/app/demos/Select/Select/examples/portal.js
mineral-ui/mineral-ui
/* @flow */ import React, { Component } from 'react'; import { pxToEm } from '../../../../../../library/styles'; import ScrollParent from '../../../Popover/common/ScrollBox'; import _Select from '../../../../../../library/Select'; import { basicData as data } from '../../common/selectData'; type Props = any; // Not a...
src/client/auth/index.react.js
gaurav-/este
import Component from '../components/component.react'; import DocumentTitle from 'react-document-title'; import Login from './login.react'; import React from 'react'; export default class Index extends Component { static propTypes = { msg: React.PropTypes.object.isRequired }; render() { const {msg} = t...
packages/core/tocco-ui/src/Button/RouterLinkButton.js
tocco/tocco-client
import PropTypes from 'prop-types' import React from 'react' import Icon from '../Icon' import {design} from '../utilStyles' import StyledRouterLinkButton from './StyledRouterLinkButton' const RouterLinkButton = React.forwardRef((props, ref) => { const {aria, icon, ink, label, iconOnly, children} = props return (...
client/src/components/instructor/InstructorStudentsList.js
yegor-sytnyk/contoso-express
import React from 'react'; import InstructorStudentRow from './InstructorStudentRow'; const InstructorStudentsList = ({enrollments, visible}) => { let style = visible ? {display: 'block'} : {display: 'none'}; return ( <div style={style}> <h3>Students Enrolled in Selected Course</h3> ...
src/svg-icons/communication/phonelink-erase.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPhonelinkErase = (props) => ( <SvgIcon {...props}> <path d="M13 8.2l-1-1-4 4-4-4-1 1 4 4-4 4 1 1 4-4 4 4 1-1-4-4 4-4zM19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0...
docs/app/Examples/collections/Form/Types/index.js
jcarbo/stardust
import React from 'react' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import { Message, Icon } from 'src' const FormTypesExamples = () => ( <ExampleSection title='Types'> <ComponentExample tit...
src/TabbedArea.js
erictherobot/react-bootstrap
import React from 'react'; import Tabs from './Tabs'; import TabPane from './TabPane'; import ValidComponentChildren from './utils/ValidComponentChildren'; import deprecationWarning from './utils/deprecationWarning'; const TabbedArea = React.createClass({ componentWillMount() { deprecationWarning( 'TabbedA...
src/components/App.js
mm-taigarevolution/tas_web_app
/* eslint-disable import/no-named-as-default */ import React from 'react'; import { Route } from 'react-router-dom'; import { AnimatedSwitch } from 'react-router-transition'; import AuctionsPage from './pages/AuctionsPage'; import AuctionDetailsPage from './pages/AuctionDetailsPage'; import AuthenticationPage from './p...
test/helpers/shallowRenderHelper.js
xiaolin00/gallery-by-react
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
packages/maps/examples/mongo-examples/GeoDistanceDropdown/src/index.js
appbaseio/reactivesearch
import React from 'react'; import ReactDOM from 'react-dom'; import { ReactiveBase } from '@appbaseio/reactivesearch'; import { GeoDistanceDropdown, ReactiveGoogleMap, ReactiveOpenStreetMap, } from '@appbaseio/reactivemaps'; import Dropdown from '@appbaseio/reactivesearch/lib/components/shared/Dropdown'; const prov...
src/work/components/ProjectCardItem.js
elailai94/elailai94.github.io
import React, { Component } from 'react'; import { Card, Image, } from 'semantic-ui-react'; import PropTypes from 'prop-types'; import ProjectCardHeading from './ProjectCardHeading'; import ProjectCardLabels from './ProjectCardLabels'; import ProjectCardDescription from './ProjectCardDescription'; import ProjectCa...
packages/cf-component-form/src/FormFieldError.js
mdno/mdno.github.io
import React from 'react'; import PropTypes from 'prop-types'; import { createComponent } from 'cf-style-container'; const styles = ({ theme }) => ({ position: theme.position, marginTop: theme.marginTop, padding: theme.padding, border: theme.border, fontSize: theme.fontSize, fontWeight: theme.fontWeight, ...
web/components/screens/onboarding/ZeroSum/index.fixture.js
skidding/flatris
// @flow import React from 'react'; import ZeroSum from '.'; export default <ZeroSum onNext={() => console.log('Next')} />;
src/components/Item.js
erikdesjardins/media-db
import React from 'react'; import ItemListCharacters from './ItemListCharacters'; import ItemListCreator from './ItemListCreator'; import ItemListGenres from './ItemListGenres'; import ItemListLength from './ItemListLength'; import ItemListNotes from './ItemListNotes'; import ItemListProductionStatus from './ItemListPr...
frontend/src/javascripts/stores/TokenStore.js
maru-3/notee
import React from 'react'; import assign from 'object-assign'; import request from 'superagent'; var EventEmitter = require('events').EventEmitter; // notee import NoteeDispatcher from '../dispatcher/NoteeDispatcher'; import Constants from '../constants/NoteeConstants'; // utils import EventUtil from '../utils/EventU...
crowdpact/static/js/apps/landing/components/LandingApp.js
joshmarlow/crowdpact
import React from 'react'; import LandingBanner from './LandingBanner'; import LandingHeader from './LandingHeader'; import LandingPacts from './LandingPacts'; import LandingStore from '../stores/LandingStore'; class LandingApp extends React.Component { constructor(...args) { super(...args); thi...
src/components/editor/editor.js
HendrikCrause/crossword-creator
import React from 'react' import { Table, TableBody, TableHeader } from 'material-ui/Table' import Row from './row' import ButtonRow from './buttonrow' import HeaderRow from './headerrow' import { narrowStyle, wordStyle, colStyle, actionsStyle } from './styles' import crosswordStore from '../../store/crosswordstore' ...
src/components/common/svg-icons/notification/airline-seat-recline-normal.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatReclineNormal = (props) => ( <SvgIcon {...props}> <path d="M7.59 5.41c-.78-.78-.78-2.05 0-2.83.78-.78 2.05-.78 2.83 0 .78.78.78 2.05 0 2.83-.79.79-2.05.79-2.83 0zM6 16V7H4v9c0 2.76 2.24 5...
views/Business/nwdAccount.js
leechuanjun/TLRNProjectTemplate
/** * Created by Bruce on Mon Jan 25 2016 23:28:33 GMT+0800 (CST). */ 'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, ScrollView, TouchableOpacity, } from 'react-native'; export default class NWDAccount extends Component { render(){ return ( <View styl...
hello world/1.6 - style/src/components/header.js
wumouren/react-demo
import React from 'react'; export default class Header extends React.Component { // state 演示 constructor(){ super() // 初始化 state 状态 let names = ['jack','tom','lili']; this.state = {name: names} } list(){ // 重新组装格式 let nameArr = []; this.state.name.map(function(it...
client/containers/AppContainer.js
chenfanggm/steven-react-starter-kit
import '../styles/main.scss' import React from 'react' import { BrowserRouter } from 'react-router-dom' class AppContainer extends React.Component { render() { const { routes } = this.props; return (<BrowserRouter children={routes} />) } } export default AppContainer
app/addons/documents/changes/components/ChangeRow.js
apache/couchdb-fauxton
// 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 by applicable law or agreed to in writing, software // distributed un...
packages/mineral-ui-icons/src/IconPool.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 IconPool(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps}> ...
app/components/ExerciseDetail/ExerciseDetail.js
sunnymis/Swoleciety
import React from 'react'; import PropTypes from 'prop-types'; require('./ExerciseDetail.scss'); ExerciseDetail.defaultProps = { type: '', value: 0, units: '', }; ExerciseDetail.propTypes = { type: PropTypes.string, value: PropTypes.number, units: PropTypes.string, }; function ExerciseDetail(props) { ...
examples/using-type-definitions/src/pages/page-2.js
ChristopherBiscardi/gatsby
import React from 'react' import { Link } from 'gatsby' import Layout from '../components/layout' import SEO from '../components/seo' const SecondPage = () => ( <Layout> <SEO title="Page two" /> <h1>Hi from the second page</h1> <p>Welcome to page 2</p> <Link to="/">Go back to the homepage</Link> <...
src/components/Menu.js
Greennav/greennav
import React, { Component } from 'react'; import { Tabs, Tab } from 'material-ui/Tabs'; import AutoComplete from 'material-ui/AutoComplete'; import Slider from 'material-ui/Slider'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; import IconButton from 'material-ui/...
src/components/Protein/Isoforms/Viewer/index.js
ProteinsWebTeam/interpro7-client
// @flow import React from 'react'; import T from 'prop-types'; import { format } from 'url'; import { createSelector } from 'reselect'; import loadData from 'higherOrder/loadData'; import descriptionToPath from 'utils/processDescription/descriptionToPath'; import NumberComponent from 'components/NumberComponent'; im...
example/src/screens/types/CustomButtonScreen.js
eeynard/react-native-navigation
import React from 'react'; import { View, StyleSheet, Text, TouchableOpacity, Button } from 'react-native'; import {Navigation} from 'react-native-navigation'; let navigator; const CustomButton = ({text}) => <TouchableOpacity style={[styles.buttonContainer]} onPress={() => navigator.pop()} > ...
Project 06 - Video background/src/containers/Home.js
DCKT/30DaysofReactNative
import React from 'react' import { View, StyleSheet, StatusBar, Image } from 'react-native' import { Button, Text as NText } from 'native-base' import SplashScreen from 'react-native-splash-screen' import Video from 'react-native-video' class Home extends React.Component { componentDidMount () { SplashScreen.hid...
app/javascript/mastodon/components/permalink.js
riku6460/chikuwagoddon
import React from 'react'; import PropTypes from 'prop-types'; export default class Permalink extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; static propTypes = { className: PropTypes.string, href: PropTypes.string.isRequired, to: PropTypes.string.isRequired, ...
src/components/Banner/Banner.react.js
HackCWRU/HackCWRU-Website
import React from 'react'; import styles from 'components/Banner/Banner.scss'; export default class Banner extends React.Component { render() { return ( <div className={styles.banner}> {this.props.children} </div> ) } }
app/MnmNavigationBarRouteMapper.js
alvaromb/mnm
/*global require, module*/ 'use strict'; import React from 'react' import { StyleSheet, Text, View, TouchableOpacity } from 'react-native' var NavigationBarRouteMapper = { LeftButton: function(route, navigator, index, navState) { if (index === 0) { return null; } ...
stories/size-and-position.js
bokuweb/react-rnd
/* eslint-disable */ import React from 'react'; import Rnd from '../src'; const style = { display: 'flex', alignItems: 'center', justifyContent: 'center', border: 'solid 1px #ddd', background: '#f0f0f0', }; export default class Example extends React.Component { constructor() { super(); this.stat...
docs/src/components/Docs/Usage/index.js
michalko/draft-wyswig
/* @flow */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { EditorState, convertToRaw, ContentState, Modifier } from 'draft-js'; import draftToHtml from 'draftjs-to-html'; import htmlToDraft from 'html-to-draftjs'; import { Editor } from 'react-draft-wysiwyg'; import Codemirror f...
packages/reactor-kitchensink/src/examples/Charts/Pie/Spie/Spie.js
sencha/extjs-reactor
import React, { Component } from 'react'; import { Container } from '@extjs/ext-react'; import { Polar } from '@extjs/ext-react-charts'; import ChartToolbar from '../../ChartToolbar'; export default class Spie extends Component { store = Ext.create('Ext.data.Store', { fields: ['os', 'data1', 'data2'], ...
src/components/article/title-row-above.js
hanyulo/twreporter-react
import { colors, componentMargin, globalColor, layout, typography } from '../../themes/common-variables' import { LINK_PREFIX } from '../../constants/index' import Link from 'react-router/lib/Link' import React from 'react' import { date2yyyymmdd } from '../../utils/index' import get from 'lodash/get' import { screen ...
src/routes/drawer/index.js
ChrisWC/MaterL
import React from 'react'; import DrawerRoute from './Drawer'; import fetch from '../../core/fetch'; export default { path: '/drawer', async action() { return <DrawerRoute />; }, };
src/parser/warlock/demonology/modules/pets/PetTimelineTab/TabComponent/KeyCastsRow.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SpellIcon from 'common/SpellIcon'; import Tooltip from 'common/Tooltip'; import { EventType } from 'parser/core/Events'; const KeyCastsRow = props => { const { className, events, start, totalWidth, secondWidth } = props; return ( <div class...
src/server/server.js
Coderockr/redux-skeleton
import path from 'path'; import express from 'express'; import webpack from 'webpack'; import webpackMiddleware from 'webpack-dev-middleware'; import webpackHotMiddleware from 'webpack-hot-middleware'; import config from '../../webpack.config.dev'; import cookieParser from 'cookie-parser'; import helmet from 'helmet'; ...
shared/app/Tms/components/Icons/Restart.js
pebie/react-universally-node-config
import PropTypes from 'prop-types'; import React from 'react'; /** * Restart icon * * @return {jsx} */ const Restart = ({ svgClass, pathClass }) => (<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" className={svgClass} aria-labelledby="title desc" tabIndex="0" role="img" > ...
examples/official-storybook/components/addon-a11y/Button.js
storybooks/storybook
import React from 'react'; import PropTypes from 'prop-types'; const styles = { button: { padding: '12px 6px', fontSize: '12px', lineHeight: '16px', borderRadius: '5px', }, ok: { backgroundColor: '#028402', color: '#ffffff', }, wrong: { color: '#ffffff', backgroundColor: '#4ca...
source/components/Value.js
cloud-walker/react-inspect
import React from 'react' const Component = ({children, type, theme}) => ( <span style={{ fontWeight: 'bold', color: (() => { switch (theme) { case 'gloom': { switch (type) { case 'string': return '#6DFEDF' case 'number': ...
src/parser/warlock/demonology/modules/azerite/UmbralBlaze.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import SPELLS from 'common/SPELLS'; import { formatThousands } from 'common/format'; import TraitStatisticBox from 'interface/others/TraitStatisticBox'; import ItemDamageDone from 'in...
src/layout/Toolbar.js
davidcostadev/react-todo
import React from 'react' import '~assets/toolbar.scss' const ToolBar = ({title}) => { return <header className="toolbar">{title}</header> } export default ToolBar
gxa/src/main/javascript/bundles/differential-expression/src/DifferentialRouter.js
gxa/atlas
import React from 'react' import PropTypes from 'prop-types' import ReactTooltipStyleClass from './tooltip/ReactTooltipStyleClass' import Results from './DifferentialResults' import Facets from './facets-tree/DifferentialFacetsTree' import UrlManager from './urlManager' /* TODO if Solr queries get fast enough that w...
react/features/e2ee/components/E2EELabel.js
gpolitis/jitsi-meet
// @flow import React, { Component } from 'react'; import { translate } from '../../base/i18n'; import { IconE2EE } from '../../base/icons'; import { Label } from '../../base/label'; import { COLORS } from '../../base/label/constants'; import { connect } from '../../base/redux'; import { Tooltip } from '../../base/to...
app/components/common/List.js
ariel-zplinux/data-extractor-mern
import React from 'react'; export default class List extends React.Component { render() { const ItemType = this.props.itemType; const items = this.props.items || []; const markupItems = this.createItemsMarkup(items, ItemType); return (<ul className="ui-list">{markupItems}</ul>); ...
myblog/src/components/MessageOptionNav/messageOptionNav.js
wuwzhang/koa2-react-blog-wuw
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchs as messageFetch, actions as messageAction } from '../Contact/' import { Popconfirm, message } from 'antd'; import { FormattedMessage } from 'react-intl'; class MessageOptionNav extends Component { constructor(props) ...
src/static/containers/Login/index.js
Seedstars/django-react-redux-base
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import classNames from 'classnames'; import { push } from 'react-router-redux'; import t from 'tcomb-form'; import PropTypes from 'prop-types'; import * as actionCreators from '../../actions/auth'; const Form...
app/config/routes.js
giojavi04/react-webpack-init
import React from 'react' import { Router, Route, hashHistory, IndexRoute } from 'react-router' import Main from '../components/Main' import Home from '../components/Home' import PromptContainer from '../containers/PromptContainer' import ConfirmBattleContainer from '../containers/ConfirmBattleContainer' import Results...
rallyboard-v1/src/server.js
tylerjw/rallyscores
"use strict"; import path from 'path'; import http from 'http'; import Express from 'express'; import React from 'react'; import { renderToString } from 'react-dom/server'; import { match, RouterContext } from 'react-router'; import routes from './routes'; import NotFoundPage from './components/NotFoundPage'; import S...
src/svg-icons/action/trending-down.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTrendingDown = (props) => ( <SvgIcon {...props}> <path d="M16 18l2.29-2.29-4.88-4.88-4 4L2 7.41 3.41 6l6 6 4-4 6.3 6.29L22 12v6z"/> </SvgIcon> ); ActionTrendingDown = pure(ActionTrendingDown); ActionTre...
src/js/index.js
dupengdl/kickoffredux
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import App from './containers/app'; import configureStore from './store/configureStore'; import '../sass/index.scss'; const store = configureStore(); render( <Provider store={store}> <App /> </Provider...
app/components/FileSystem.js
FermORG/FermionJS
import React, { Component } from 'react'; import { SortableTreeWithoutDndContext } from './src/index'; // 'react-sortable-tree'; import { connect } from 'react-redux'; import styles from './photon.scss'; import coreStyles from './Core.scss'; const path = require('path'); const dirTree = require('directory-tree'); cla...
app/react-icons/fa/hourglass.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaHourglass extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m36.6 35.7q0.3 0 0.5 0.2t0.2 0.5v2.9q0 0.3-0.2 0.5t-0.5 0.2h-32.9q-0.3 0-0...
scripts/stores/SearchBookStore.js
nverdhan/satticentre
import React from 'react'; import { register } from '../AppDispatcher'; import { createStore, mergeIntoBag, isInBag } from '../utils/StoreUtils'; import selectn from 'selectn'; const listBooks = [] // For Pagination, e.g. say In one Chuck 10 books are loaded const _books = {} const srchData = { pageNo : 1, srchStri...
src/main/index.js
liaofeijun/feijun
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
src/index.js
anagrius/robocode
import React from 'react'; import { render } from 'react-dom'; import { App } from './App'; render(<App />, document.getElementById('root'));
client/modules/App/components/TalentInput/PerformerSelect.js
aksm/refactored-palm-tree
import React from 'react'; import styles from '../../TalentInput.css'; import { Button } from 'react-bootstrap'; class PerformerSelect extends React.Component { constructor(props) { super(props); this.state = { type: '', option: 'comedian' }; this.handleChange = this.handleChan...