path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
Js/Ui/Components/Data/index.js
Webiny/Webiny
import React from 'react'; import _ from 'lodash'; import Webiny from 'webiny'; /** * @i18n.namespace Webiny.Ui.Data */ class Data extends Webiny.Ui.Component { constructor(props) { super(props); this.autoRefreshInterval = null; // Ony when 'autoRefresh' prop is used this.state = { ...
stories/index.js
sm-react/storybook-chapters
/* eslint-disable import/no-extraneous-dependencies */ /* eslint-disable react/jsx-filename-extension */ import React from 'react'; import { storiesOf, getStorybook } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { withKnobs, text } from '@storybook/addon-knobs'; import { jumpTo } ...
examples/huge-apps/routes/Course/routes/Assignments/routes/Assignment/components/Assignment.js
nauzethc/react-router
import React from 'react'; class Assignment extends React.Component { render () { var { courseId, assignmentId } = this.props.params; var { title, body } = COURSES[courseId].assignments[assignmentId] return ( <div> <h4>{title}</h4> <p>{body}</p> </div> ); } } export d...
packages/material-ui-icons/src/NetworkLocked.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M19.5 10c.17 0 .33.03.5.05V1L1 20h13v-3c0-.89.39-1.68 1-2.23v-.27c0-2.48 2.02-4.5 4.5-4.5zm2.5 6v-1.5c0-1.38-1.12-2.5-2.5-2.5S17 13.12 17 14.5V16c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h5c.55 0 1-.45 1-1...
template/src/components/Hello.js
phonegap/phonegap-template-react-hot-loader
import React from 'react'; import Tappable from 'react-tappable'; import '../css/hello.css'; import Message from './Message'; const Hello = React.createClass({ displayName: 'Hello', getInitialState() { return { message: '', }; }, sayHello(msg) { // CSSTransitionGroup will fade this in ...
generators/app/templates/_app/_app.js
sajal50/generator-reactredux
import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import store from './store/store.js'; ReactDOM.render( <Provider store = {store}> <div> Create something awesome. </div> </Provider> ,document.getElementById('app'));
src/components/Label.js
robwalkerco/caerurfapugs
import React from 'react' import styled from 'styled-components' export default styled.label` display: block; `
packages/watif-tutorial/src/index.js
jwillesen/watif
import React from 'react' export function initialize(universe) { universe.addLogEntry( <text> Now that you're here, you're not sure whether it was a good idea to house sit for a week, but here you are, standing in front of the house. </text> ) universe.setStateOf('player', {location: 'front-...
src/components/lmap.js
opsukka/fantasy-map
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { Map, TileLayer, Marker, Popup, ZoomControl, PropTypes as MapPropTypes } from 'react-leaflet'; import L from 'leaflet'; import { db } from '../firebase/firebase.js'; import data from './markers.json'; const MyPopupMarker = ({ chil...
docs/src/app/components/pages/components/FlatButton/ExampleSimple.js
verdan/material-ui
import React from 'react'; import FlatButton from 'material-ui/FlatButton'; const FlatButtonExampleSimple = () => ( <div> <FlatButton label="Default" /> <FlatButton label="Primary" primary={true} /> <FlatButton label="Secondary" secondary={true} /> <FlatButton label="Disabled" disabled={true} /> </...
src/layers/LayerGroup.js
FourwingsY/react-sketch-viewer
import React from 'react' import PropTypes from 'prop-types' import Color from '../data/Color' import {getPositionStyle} from '../utils/layerUtils' class LayerGroup extends React.Component { static propTypes = { layer: PropTypes.object, } static contextTypes = { renderLayer: PropTypes.func, } render() { ...
src/components/TextInput.js
MeMark2/sample-react-project
import React from 'react' import ReactDOM from 'react-dom' export default React.createClass({ focusText() { ReactDOM.findDOMNode(this.refs.textArea).focus() }, render() { let type = 'text' if (this.props.password) { type = 'password' } return ( <div className='textInput' onClick...
src/Label.js
tonylinyy/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Label = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'label', bsStyle: 'default' }; }, render() { let classes = this.getBsClassSe...
app/components/Searchahead/index.js
ninjaref/ninjaref
import React from 'react'; import PropTypes from 'prop-types'; import { Form, FormGroup, Label } from 'reactstrap'; import { withRouter } from 'react-router'; import Select from 'react-select'; import axios from 'axios'; class Searchahead extends React.Component { static propTypes = { history: PropTypes.object.i...
storybook/stories/bar-chart/index.js
JesperLekland/react-native-svg-charts
import React from 'react' import { storiesOf } from '@storybook/react-native' import Standard from './standard' import Horizontal from './horizontal' import Grouped from './grouped' import GroupedHorizontal from './horizontal-grouped' import WithGradient from './with-gradient' import WithYMinMax from './with-y-min-max...
src/svg-icons/action/perm-scan-wifi.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermScanWifi = (props) => ( <SvgIcon {...props}> <path d="M12 3C6.95 3 3.15 4.85 0 7.23L12 22 24 7.25C20.85 4.87 17.05 3 12 3zm1 13h-2v-6h2v6zm-2-8V6h2v2h-2z"/> </SvgIcon> ); ActionPermScanWifi = pure(A...
src/svg-icons/communication/phonelink-erase.js
pradel/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...
src/primitives/container/flex-container/index.js
mpigsley/sectors-without-number
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import './style.scss'; export default function FlexContainer({ align, className, justify, direction, children, wrap, scroll, flex, shrink, style, ...rest }) { const containerStyle = flex !== nul...
src/components/Touchable/index.js
r1cebank/react-native-boilerplate
import React from 'react'; import { TouchableHighlight, TouchableNativeFeedback, Platform } from 'react-native'; function F8TouchableIOS(props) { return ( <TouchableHighlight accessibilityTraits="button" underlayColor="#3C5EAE" {...props} /> ); } const F8Touchable = Pla...
app/app.js
castlemilk/nutry-web
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import 'babel-polyfill'; /* eslint-disable import/no-unresolved, import/extensions */ // Load the manifest.json file and the .htaccess file import 'bootstrap/dist/css/bootstrap.css'; import 'bootstrap/dist/css/boot...
src/components/RectangleManipulationControls.js
tmpaul06/gathering-client
import React from 'react'; export default class RectangleManipulationControls extends React.Component { constructor(props) { super(props); this.state = { initialX: 0, initialY: 0, rotate: 0 }; this.handleKeyDown = this.handleKeyDown.bind(this); } componentWillMount() { docum...
shorten_my_link/client/components/link_list.js
saitai0802/meteor-basic
import React, { Component } from 'react'; import { createContainer } from 'meteor/react-meteor-data'; import { Links } from '../../imports/collections/links'; class LinkList extends Component { renderRows() { return this.props.links.map(link => { const { url, clicks, token } = link; // I created thi...
actor-apps/app-web/src/app/components/sidebar/ContactsSection.react.js
Ajunboys/actor-platform
import _ from 'lodash'; import React from 'react'; import { Styles, RaisedButton } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import ContactStore from 'stores/ContactStore'; import ContactActionCreators from 'actions/ContactActionCreators'; import AddContactStore from 'stores/AddContactStore'...
modules/Lifecycle.js
bs1180/react-router
import React from 'react' import invariant from 'invariant' const { object } = React.PropTypes /** * The Lifecycle mixin adds the routerWillLeave lifecycle method to a * component that may be used to cancel a transition or prompt the user * for confirmation. * * On standard transitions, routerWillLeave receives ...
client/index.js
sergiokopplin/react-universally
/* eslint-disable global-require */ import React from 'react'; import { render } from 'react-dom'; import BrowserRouter from 'react-router-dom/BrowserRouter'; import asyncBootstrapper from 'react-async-bootstrapper'; import { AsyncComponentProvider } from 'react-async-component'; import './polyfills'; import ReactHo...
stories/index.js
yuchi/react-faceted-token-input
import React, { Component } from 'react'; import { storiesOf } from '@kadira/storybook'; import * as TokenTypes from './types'; import { RESULTS } from './types/result-field-token-type'; import FacetedTokenInput from '../src/FacetedTokenInput'; const componentClasses = { wrapper: 'test1', input: 'test2', token...
www/imports/mapPage/shortlist/attrAdd.js
terraswat/hexagram
// addAttr.js // This allows the user to add new dynamic attributes to the current map. import React, { Component } from 'react'; import { render } from 'react-dom'; import DialogHex from '/imports/common/DialogHex'; import Layer from '/imports/mapPage/longlist/Layer'; import { ReadFile } from '/imports/component/Rea...
client/src/components/shared/StateDropdown.js
wolnewitz/raptor-ads
import React from 'react'; import { Dropdown } from 'semantic-ui-react'; import stateOptions from '../helpers/stateOptions'; const StateDropdown = ({ onChange }) => <div className="field"> <label htmlFor="state">State</label> <Dropdown placeholder="State" options={stateOptions} search ...
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js
Jeremy-Meng/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; import ActorClient from 'utils/ActorClient'; import { Styles, FlatButton } from 'material-ui'; import { KeyCodes } from 'constants/ActorAppConstant...
actor-apps/app-web/src/app/components/common/State.react.js
hmoraes/actor-platform
import React from 'react'; import { MessageContentTypes } from 'constants/ActorAppConstants'; class State extends React.Component { static propTypes = { message: React.PropTypes.object.isRequired }; render() { const { message } = this.props; if (message.content.content === MessageContentTypes.SERVI...
src/components/common/mediaPicker/results/FeaturedFavoriteGeoSearchResultsContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import withAsyncData from '../../hocs/AsyncDataContainer'; import { selectMediaPickerQueryArgs, fetchMediaPickerFeaturedCollections, fetchFavoriteCollections, fetchFavoriteSourc...
examples/tree-view/containers/Node.js
tappleby/redux
import React from 'react' import { Component } from 'react' import { connect } from 'react-redux' import * as actions from '../actions' export class Node extends Component { constructor(props) { super(props) this.handleIncrementClick = this.handleIncrementClick.bind(this) this.handleRemoveClick = this.ha...
docs/src/pages/components/tree-view/ControlledTreeView.js
lgollut/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import TreeView from '@material-ui/lab/TreeView'; import ExpandMoreIcon from '@material-ui/icons/ExpandMore'; import ChevronRightIcon from '@material-ui/icons/ChevronRight'; import TreeItem from '@material-ui/lab/TreeItem'; const useStyl...
src/components/SliderTransparency.js
ekatzenstein/three.js-live
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 SliderTransparency = (props) => ( <Slider defaultValue={props.transparency} onChange={props.up...
src/ButtonGroup.js
omerts/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; const ButtonGroup = React.createClass({ mixins: [BootstrapMixin], propTypes: { vertical: React.PropTypes.bool, justified: React.PropTypes.b...
src/svg-icons/editor/format-bold.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatBold = (props) => ( <SvgIcon {...props}> <path d="M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1...
docs/app/Examples/modules/Checkbox/States/CheckboxExampleChecked.js
aabustamante/Semantic-UI-React
import React from 'react' import { Checkbox } from 'semantic-ui-react' const CheckboxExampleChecked = () => ( <Checkbox label='This checkbox comes pre-checked' defaultChecked /> ) export default CheckboxExampleChecked
src/svg-icons/device/battery-std.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryStd = (props) => ( <SvgIcon {...props}> <path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"/> </SvgIcon> ); D...
website/irulez/src/components/SideBar.js
deklungel/iRulez
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { withStyles } from '@material-ui/core/styles'; import Drawer from '@material-ui/core/Drawer'; import CssBaseline from '@material-ui/core/CssBaseline'; import AppBar from '@material-ui/core/AppBar'; import Toolbar...
src-admin/src/Components/CustomModal.js
ioBroker/ioBroker.admin
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Button from '@material-ui/core/Button'; import { Dialog } from '@material-ui/core'; import PropTypes from 'prop-types'; const useStyles = makeStyles((theme) => ({ modalContentWrapper: { margin: '20px 0', paddin...
examples/real-world/containers/Root.js
idolize/redux
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import { Router, Route } from 'react-router'; import configureStore from '../store/configureStore'; import App from './App'; import UserPage from './UserPage'; import RepoPage from './RepoPage'; const store = configureStore(); export de...
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
KevinKhieu/PeaceDashboard
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/components/PrevButton.js
CodeDraken/ES-Library
import React from 'react'; import {Link} from 'react-router-dom'; const PrevButton = ({url}) => { let prevPage = ''; if (url) { const i = (url).lastIndexOf('/'); if (i !== -1) { // end of the url const thisPage = (url).substr(i, 0) + url.substr(i); // take out the last /x part pr...
public/js/cat_source/es6/components/common/InputField.js
Ostico/MateCat
import React from 'react' import PropTypes from 'prop-types' const styleInput = { fontFamily: 'calibri, Arial, Helvetica, sans-serif', fontSize: '16px', padding: '10px 20px', borderRadius: '40px', outlineColor: '#e5e9f1', border: 'unset', boxShadow: '0px 0px 0px 1px rgba(34, 36, 38, 0.25) inset', displ...
src/components/Page2.js
theJoeBiz/react-boilerplate
import React, { Component } from 'react'; class Page2 extends Component { render() { return ( <div>Page 2</div> ); } } export default Page2;
8-React-Basic-Crud/src/app/index_.js
ekaaditiac/React-Basic-API
import React from 'react'; import ReactDOM from 'react-dom'; import Request from 'superagent'; import _ from 'lodash'; const data = [ { author: "MadDog", text: "Papah bangga sama kamu nak", src:"https://2.bp.blogspot.com/-cD3bhrzhTSg/VKkI3PKXOoI/AAAAAAAAAes/YCsThXgLUXA/s400/gereget%2B(mad%2Bdog).jpg"...
docs/src/shared/components/ReactMD/autocompletes/index.js
lwhitlock/grow-tracker
import React from 'react'; import MenuAutocomplete from './MenuAutocomplete'; import MenuAutocompleteRaw from '!!raw!./MenuAutocomplete'; import InlineAutocomplete from './InlineAutocomplete'; import InlineAutocompleteRaw from '!!raw!./InlineAutocomplete'; import AjaxAutocomplete from './AjaxAutocomplete'; import Aj...
NewCardModal.js
jasonlarue/react-native-flashcards
import React from 'react'; import { StyleSheet, Text, Modal, View, TextInput, TouchableHighlight } from 'react-native'; export default class NewCardModal extends React.Component { state = { newTermInput: '', newDefinitionInput: '' } render() { return ( <Modal animati...
src/iron-components/index.stories.js
jonniespratley/px-components-react
import React from 'react'; import { storiesOf } from '@storybook/react'; //addons import { action } from '@storybook/addon-actions'; import { withInfo } from '@storybook/addon-info'; import { withKnobs, text, array, object, boolean, number } from '@storybook/addon-knobs'; //component import IronCollapse from './iron-...
app/scripts/partials/PageHeader.react.js
darbio/auth0-roles-permissions-dashboard-sample
import React from 'react'; import BS from 'react-bootstrap'; export default class PageHeader extends React.Component { render() { return ( <div className="row page-header"> <div className="col-md-6"> <h2>{this.props.title}</h2> </div> <div className="col-md-6"> {...
docs/app/Examples/elements/Segment/Variations/SegmentExampleInverted.js
mohammed88/Semantic-UI-React
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentExampleInverted = () => ( <Segment inverted> Inverted content. </Segment> ) export default SegmentExampleInverted
react-dev/containers/posts_index.js
DeryLiu/DeryLiu.github.io
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { PostIndexItem } from '../components/post_index_item'; import { fetchPosts, fetchSiteInfo } from '../actions/index'; class PostsIndex extends Component { componentWillMount() { this.props.fetchPosts(); this.props.fetc...
app/stem/components/StemProfile.js
Jawnkuin/electron-618-im
import React from 'react'; import { Button, Icon } from 'antd'; import PropTypes from 'prop-types'; import styles from './StemProfile.less'; import dummyimage from '../../utils/dummyimage'; const StemProfile = ({ userInfo }) => ( <div className={styles.ProfileContainer}> <div className={styles.ImgBox}> <i...
frontend/src/containers/Replay/Replay.js
webrecorder/webrecorder
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { Helmet } from 'react-helmet'; import { asyncConnect } from 'redux-connect'; import { batchActions } from 'redux-batched-actions'; import { Tab, Tabs, TabList, TabPanel } from 'react-tabs'; import...
src/routes.js
rjbernaldo/lines
import React from 'react'; import { Switch, Route } from 'react-router-dom'; import App from './components/App'; const routes = () => ( <Switch> <Route path="/" component={App} /> </Switch> ); export default routes;
webapp/js/components/app/NavigationBar.js
Stevenah/dhis2-datastore-application
import React, { Component } from 'react'; import { Toolbar, ToolbarTitle } from 'material-ui/Toolbar'; import Theme from 'utils/theme'; const imageStyle = { height: '20px', }; const toolBarStyle = { alignItems: 'center', backgroundColor: Theme.palette.primary1Color, color: Theme.palette.alternateTextC...
src/containers/list-group.js
drifterz28/drizzle-maker
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { saveZones } from 'actions/save'; import DaysList from 'components/days-list'; import styles from 'scss/list-group.scss'; class ListGroup extends Co...
dist/lib/carbon-fields/assets/js/fields/components/textarea/index.js
ArtFever911/statrer-kit
/** * The external dependencies. */ import React from 'react'; import PropTypes from 'prop-types'; import { compose, withHandlers, setStatic } from 'recompose'; /** * The internal dependencies. */ import Field from 'fields/components/field'; import withStore from 'fields/decorators/with-store'; import withSetup fr...
src/containers/Todo.js
cyrfer/firestarter
import React from 'react' import PropTypes from 'prop-types' const Todo = ({ onClick, completed, text }) => ( <li onClick={onClick} style={{ textDecoration: completed ? 'line-through' : 'none' }} > {text} </li> ) Todo.propTypes = { onClick: PropTypes.func.isRequired, completed: PropTyp...
src/interface/icons/PatreonTiny.js
fyruna/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; // From the Patreon branding page const Icon = ({ colored, ...other }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 96" className="icon" {...other}> <g fillRule="evenodd"> <path fill={colored ? '#ffffff' : undefined} d="M64.110...
node_modules/react-bootstrap/es/Checkbox.js
mohammed52/door-quote-automator
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
docs/src/NotFoundPage.js
xuorig/react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; const NotFoundPage = React.createClass({ render() { return ( <div> <NavMain activePage="" /> <PageHeader title="404" subT...
docs/Documentation/IconTogglePage.js
reactivers/react-mcw
/** * Created by muratguney on 29/03/2017. */ import React from 'react'; import {Card, CardHeader,IconToggle,Table, TableRow, TableHeaderColumn, TableHeader, TableRowColumn, TableBody} from '../../lib'; import HighLight from 'react-highlight.js' export default class CardPage extends React.Component { render() {...
app/components/molecules/TitleBlock/presenter.js
altiore/webpack_config_example
import React from 'react' import FlatButton from 'material-ui/FlatButton' import { NavLink } from 'react-router-dom' import './style.scss' const Title = () => ( <div className='l-header-title'> <div className='b-header-title'> <FlatButton className='b-header-title__button' hoverColor='#fff...
src/elements/Container/Container.js
Semantic-Org/Semantic-UI-React
import cx from 'clsx' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, customPropTypes, getElementType, getUnhandledProps, SUI, useKeyOnly, useTextAlignProp, } from '../../lib' /** * A container limits content to a maximum width. */ function Container(props) { con...
content/theme/components/Stats/items.js
typesettin/NativeCMS
import React, { Component } from 'react'; import { StyleSheet, Text, View, Platform, ListView, Image, Dimensions, } from 'react-native'; import styles from '../../../../app/components/Styles/shared'; import layoutStyles from '../../../../app/components/Styles/layout'; import Icons from '../../../../app/components/Icons...
lib/ui/src/modules/ui/routes.js
shilman/storybook
import React from 'react'; import ReactDOM from 'react-dom'; import Layout from './containers/layout'; import LeftPanel from './containers/left_panel'; import DownPanel from './containers/down_panel'; import ShortcutsHelp from './containers/shortcuts_help'; import SearchBox from './containers/search_box'; export defau...
src/svg-icons/hardware/developer-board.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareDeveloperBoard = (props) => ( <SvgIcon {...props}> <path d="M22 9V7h-2V5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-2h2v-2h-2v-2h2v-2h-2V9h2zm-4 10H4V5h14v14zM6 13h5v4H6zm6-6h4...
Components/Loader.js
webismymind/Mycelium
import React from 'react'; import Component from './Component'; import { Easing, StyleSheet, Text, View, Animated } from 'react-native'; import Icon from 'react-native-vector-icons/FontAwesome'; export default class extends Component { constructor(props) { super(props); this.state = { ...
actor-apps/app-web/src/app/index.js
wangkang0627/actor-platform
import crosstab from 'crosstab'; import React from 'react'; import Router from 'react-router'; import Raven from 'utils/Raven'; // eslint-disable-line import isMobile from 'utils/isMobile'; import ReactMixin from 'react-mixin'; import Intl from 'intl'; // eslint-disable-line import LocaleData from 'intl/locale-data/j...
src/components/Main.js
linxiuquan/gallery-by-react
require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; // let yeomanImage = require('../images/yeoman.png'); // 获取图片相关的数据 let imageDatas = require('../data/imageDatas.json'); // 利用自执行函数, 将图片名信息转成图片URL路径信息 imageDatas = ((imageDatasArr) => { for(let i = 0, j = imageDatasArr.le...
src/frontend/components/forms/GCPhoneField.js
al3x/ground-control
import React from 'react'; import {TextField} from 'material-ui'; import {BernieText} from '../styles/bernie-css'; import GCFormField from './GCFormField'; export default class GCPhoneField extends GCFormField { render() { let phone = this.props.value let formattedValue = `(${phone.slice(0, 3)}) ${phone.sli...
src/svg-icons/action/lock-open.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLockOpen = (props) => ( <SvgIcon {...props}> <path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 ...
www/src/index.js
ggerrietts/lemons
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import Dashboard from './components/Dashboard'; import reportWebVitals from './reportWebVitals'; import 'bootstrap/dist/css/bootstrap.min.css'; ReactDOM.render( <React.StrictMode> <link rel="stylesheet" href="https://m...
src/features/IntroModal/Description.js
erhathaway/cellular_automata
import React from 'react'; import styled from 'react-emotion'; const Container = styled('p')` display: flex; justify-content: center; align-items: center; text-align: center; font-size: 15px; color: #7c842a; line-height: 28px; letter-spacing: 5px; text-transform: uppercase; width: 90vw; font-size...
src/App.js
luiscspinho/twitterManage
import React from 'react'; class App extends React.Component { render(){ let cat = this.props.cat return ( <div> <Title text="Text" /> <NestedH1>Hello World and cat {cat} with Component heart <Heart /> bla bla</NestedH1> </div> ) } } const T...
webapp/src/components/__tests__/dropdowns/ExpandableMenuItem.spec.js
unicef/rhizome
import React from 'react' import _ from 'lodash' import { expect } from 'chai' import { render, shallow } from 'enzyme' import ExpandableMenuItem from '../../dropdown/ExpandableMenuItem' import sinon from 'sinon' describe ('ExpandableMenuItem', () => { let mockExpandableMenuItem beforeEach (() => { mockExpanda...
src/index.js
domark0721/Redux-TodoList-Official
import React from 'react' import { render } from 'react-dom' import { createStore } from 'redux' import { Provider } from 'react-redux' import App from './containers/App' import todoApp from './reducers/reducers' // create a store let store = createStore(todoApp) let rootElement = document.getElementById('root'); re...
frontend/src/components/Dialogs/CreatePostDialog.js
kiok46/Readable
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; class CreatePostDialog extends Component { state= { open: false, } openEditDialog = () => { }; openDeleteDialog = () => { };...
src/web/containers/HomePage/index.js
lukemarsh/react-redux-boilerplate
/* * HomePage * * This is the first thing users see of our App, at the '/' route */ import React from 'react'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import messages from 'core/HomePage/messages'; import { createStructuredSelector } from 'reselect'; import { selectRepos, se...
src/svg-icons/action/shop.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionShop = (props) => ( <SvgIcon {...props}> <path d="M16 6V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H2v13c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6h-6zm-6-2h4v2h-4V4zM9 18V9l7.5 4L9 18z"/> </SvgIcon> ); Action...
components/Notification/components/List/Item.js
yabeow/sinhvienuit
import React from 'react'; import PropTypes from 'prop-types'; import { Card, CardItem, Text, Button, Icon, Badge, Left, Right, Body } from 'native-base'; import Navigator from '../../../Navigator/Action'; const renderSource = (source) => { if (source === 'DAA') { return ( <Badge primary> <Text>DAA...
react-fundamentals-es6/lessons/05-owner-ownee/main.js
wandarkaf/React-Bible
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('app'));
src/templates/index-template.js
renegens/blog
// @flow strict import React from 'react'; import { graphql } from 'gatsby'; import Layout from '../components/Layout'; import Sidebar from '../components/Sidebar'; import Feed from '../components/Feed'; import Page from '../components/Page'; import Pagination from '../components/Pagination'; import { useSiteMetadata }...
django/webcode/webcode/frontend/node_modules/react-bootstrap/es/Well.js
OpenKGB/webcode
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/svg-icons/image/assistant-photo.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageAssistantPhoto = (props) => ( <SvgIcon {...props}> <path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"/> </SvgIcon> ); ImageAssistantPhoto = pure(ImageAssistantPhoto); ImageAssistantPhoto.displayName = 'Image...
docs/app/Examples/collections/Table/Variations/TableExampleBasic.js
ben174/Semantic-UI-React
import React from 'react' import { Table } from 'semantic-ui-react' const TableExampleBasic = () => { return ( <Table basic> <Table.Header> <Table.Row> <Table.HeaderCell>Name</Table.HeaderCell> <Table.HeaderCell>Status</Table.HeaderCell> <Table.HeaderCell>Notes</Table....
webapp/src/ViewGame.js
erwannT/go-dart
import React, { Component } from 'react'; import logo from './logo.svg'; import Player from './Player'; import NewPlayerButton from './NewPlayerButton'; import NowPlaying from './NowPlaying'; import PlayerList from './PlayerList'; import NextPlayerButton from './NextPlayerButton' import Congratulation from './Congratul...
client/src/components/Pagination.js
EspelhoPolitico/espelhopolitico
import { Icon, Menu } from 'semantic-ui-react'; import React from 'react'; export default class Pagination extends React.Component { constructor(props) { super(props); this.handleItemClick = this.handleItemClick.bind(this); this.handleGoToPage = this.handleGoToPage.bind(this); } handleItemClick(e, ...
src/svg-icons/hardware/videogame-asset.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareVideogameAsset = (props) => ( <SvgIcon {...props}> <path d="M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-10 7H8v3H6v-3H3v-2h3V8h2v3h3v2zm4.5 2c-.83 0-1.5-.67-1.5-1.5s.67-...
actor-apps/app-web/src/app/components/Login.react.js
VikingDen/actor-platform
import _ from 'lodash'; import React from 'react'; import classNames from 'classnames'; import { Styles, RaisedButton, TextField } from 'material-ui'; import { AuthSteps } from 'constants/ActorAppConstants'; import Banner from 'components/common/Banner.react'; import LoginActionCreators from 'actions/LoginActionCre...
packages/wix-style-react/src/MessageModalLayout/docs/index.story.js
wix/wix-style-react
import React from 'react'; import { header, tabs, tab, description, importExample, title, divider, example, playground, api, testkit, } from 'wix-storybook-utils/Sections'; import { storySettings } from '../test/storySettings'; import MessageModalLayout from '..'; import Checkbox from '../../Che...
app/javascript/mastodon/features/compose/components/privacy_dropdown.js
pfm-eyesightjp/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, defineMessages } from 'react-intl'; import IconButton from '../../../components/icon_button'; const messages = defineMessages({ public_short: { id: 'privacy.public.short', defaultMessage: 'Public' }, public_long: { id: 'privacy.pub...
fields/types/select/SelectField.js
udp/keystone
import _ from 'underscore'; import Field from '../Field'; import React from 'react'; import Select from 'react-select'; import { FormInput } from 'elemental'; /** * TODO: * - Remove dependency on underscore * - Custom path support */ module.exports = Field.create({ displayName: 'SelectField', valueChanged (ne...
src/parser/warrior/arms/modules/talents/SecondWind.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import { formatThousands } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import SpellLink from 'common/SpellLink'; import StatisticListBoxItem from 'interface/others/Sta...
src/elements/rail.js
jessy1092/react-semantify
import React from 'react'; import filter from '../filter'; import Div from '../commons/div'; const defaultClassName = 'ui rail'; const componentName = 'Rail'; const Rail = new filter(Div) .classGenerator(defaultClassName) .getComposeComponent(componentName); export default Rail;
src/svg-icons/image/crop-portrait.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropPortrait = (props) => ( <SvgIcon {...props}> <path d="M17 3H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7V5h10v14z"/> </SvgIcon> ); ImageCropPortrait = pure(ImageCropP...
app/components/Sidebar/Sidebar.js
stephencorwin/stephencorwin.me
import React from 'react'; import PropTypes from 'prop-types'; import RouteShape from '../../prop-types/Route'; import { Header } from './styles'; import A from '../A'; export const Sidebar = ({ headerRoute, className, children }) => ( <aside className={className}> <If condition={headerRoute}> <Header> <A h...
client/src/components/recipe/Create.js
noinc/SimpleStorefront
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link, Redirect } from 'react-router-dom'; import PropTypes from 'prop-types'; import Form from './Form'; import { create, reset } from '../../actions/recipe/create'; class Create extends Component { static propTypes = { err...
storybook/stories/HomeTermBarStory.js
ujwalramesh/REHU-discourse
/* @flow */ 'use strict' import React from 'react' import { View } from 'react-native' import { storiesOf } from '@kadira/react-native-storybook' import HomeTermBar from '../../js/components/home/HomeTermBar' storiesOf('HomeTermBar') .addDecorator((story) => ( <View style={{marginTop: 20}}>{story()}</View> ))...