path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/topic/list/TopicListContainer.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 { Row } from 'react-flexbox-grid/lib'; import { setTopicFavorite } from '../../../actions/topicActions'; import TabSelector from '../../common/TabSelector'; import { upda...
src/renderer/components/main.js
ka2n/retro-twitter-client
import { HOME_TIMELINE_CHANNEL, SEARCH_CHANNEL } from '../libraries/constants' import Editor from './editor' import React from 'react' import Tweets from './tweets' export default class Main extends React.Component { getTweets() { switch (this.props.channelId) { case HOME_TIMELINE_CHANNEL: return this....
src/utils/createContextWrapper.js
jamon/react-bootstrap
import React from 'react'; /** * Creates new trigger class that injects context into overlay. */ export default function createContextWrapper(Trigger, propName) { return function (contextTypes) { class ContextWrapper extends React.Component { getChildContext() { return this.props.context; }...
src/client.js
ridibooks/simple-notifier
/* global window document */ import React from 'react'; import ReactDOM from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import App from './component/App'; import './style/common.scss'; const appState = window.state; ReactDOM.render( <AppContainer><App {...appState} /></AppContainer>, document...
packages/node_modules/@ciscospark/widget-message-meet/src/data-api.js
Altocloud/alto-react-ciscospark
import React from 'react'; import ReactDOM from 'react-dom'; import Root from './root'; import {initStore} from './store'; import '@ciscospark/react-component-spark-fonts'; import {attachWidgetInit} from '@ciscospark/widget-base'; attachWidgetInit(`messageMeetWidget`, initMessageMeetWidget, removeMessageMeetWidget);...
admin/client/components/FooterBar.js
Redmart/keystone
import React from 'react'; import blacklist from 'blacklist'; var FooterBar = React.createClass({ propTypes: { style: React.PropTypes.object, }, getDefaultProps () { return { style: {}, }; }, getInitialState () { return { position: 'relative', width: 'auto', height: 'auto', top: 0 }; }, ...
ReduxDemo/home.js
MisterZhouZhou/ReactNativeLearing
import React, { Component } from 'react'; import { StyleSheet, Text, View, TouchableOpacity } from 'react-native'; import { connect } from 'react-redux'; import { increase, decrease, reset } from './actions'; class Home extends Component { _onPressReset() { this.props.dispatch(reset()); } _onPressIn...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/ScssInclusion.js
mangomint/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import './assets/scss-styles.scss'; export default () => <p id="feature-scss-inclusion">We love useless text...
pages/bfs.js
skidding/illustrated-algorithms
import React from 'react'; import Page from '../components/page'; import bfs from '../algorithms/bfs'; import RawData from '../components/illustrations/raw-data'; import computeBfsLayout from '../layout/bfs'; import computeRawDataFrame from '../frame/raw-data'; const graph = { you: ['alice', 'bob', 'claire'], bob:...
app/javascript/mastodon/features/ui/components/video_modal.js
d6rkaiz/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Video from 'mastodon/features/video'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { FormattedMessage } from 'react-intl'; import classNames from 'classnames';...
src/index.js
Bigbrd/Colorrelation
/* eslint-disable import/default */ import React from 'react'; import { render } from 'react-dom'; import { browserHistory } from 'react-router'; import { AppContainer } from 'react-hot-loader'; import Root from './components/Root'; import configureStore from './store/configureStore'; require('./favicon.ico'); // Tel...
node_modules/recharts/demo/component/Legend.js
SerendpityZOEY/Solr-Search-React-UI
import React from 'react'; import { Surface, Legend } from 'recharts'; const data = [ { value: 'Apple', color: '#ff7300' }, { value: 'Samsung', color: '#bb7300' }, { value: 'Huawei', color: '#887300' }, { value: 'Sony', color: '#667300' }, ]; const data2 = [ { value: 'Apple', type: 'scatter', color: '#ff730...
frontend/js/components/organisms/SocialMediaIcons.js
Code4HR/okcandidate-platform
'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import CopyToClipboard from 'react-copy-to-clipboard'; import IconButton from './../molecules/IconButton'; class SocialMediaIcons extends Component { constructor(props) { super(props); this.state = { ...
src/smif/app/src/components/Simulation/ConfigSummary.js
willu47/smif
import React from 'react' import PropTypes from 'prop-types' const ModelRunSummary = (props) => ( <dl className="row"> <dt className="col-sm-3">Name</dt> <dd className="col-sm-9">{props.ModelRun.name}</dd> <dt className="col-sm-3">Description</dt> <dd className="col...
client/apps/web/components/organisms/Footer/index.js
defe266/keystone-starter
import React from 'react'//, { PropTypes } import { connect } from 'react-redux' import { Link, IndexLink } from 'react-router' import Icon from 'client/components/atoms/Icon'; import Row from 'client/components/atoms/Row'; import Col from 'client/components/atoms/Col'; import Firma from './Firma'; import './index.c...
app/javascript/mastodon/components/setting_text.js
Craftodon/Craftodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; export default class SettingText extends React.PureComponent { static propTypes = { settings: ImmutablePropTypes.map.isRequired, settingKey: PropTypes.array.isRequired, label: PropT...
src/esm/components/graphics/icons/waiting-icon/index.js
KissKissBankBank/kitten
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["color", "title"]; import React from 'react'; import PropTypes from 'prop-types'; export var WaitingIcon = function WaitingIcon(_ref) { var color = _...
static/src/containers/App/index.js
pyalwin/redux
import React from 'react'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; /* application components */ import { Header } from '../../components/Header'; import { Footer } from '../../components/Footer'; /* global styles for app */ import ...
src/Endgame.js
Heurlinius/maxi-yatzy
import React from 'react'; export function ResultScreen(props) { const result = props.players.length === 1 ? <SingleplayerResult player={props.players[0]}/> : <MultiplayerResult players={props.players}/>; return ( <div className='endgame-area'> <div className='game-result'> <h1>Game has ended!</h1> ...
src/containers/SyncWarning.js
ayastreb/money-tracker
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Message } from 'semantic-ui-react'; import { Link } from 'react-router-dom'; import { dismissSyncWarning } from '../actions/ui/sync'; import { isSignedIn } from 'features/user/state/User.selector'; class Sync...
webpack/JobWizard/steps/CategoryAndTemplate/CategoryAndTemplate.js
adamruzicka/foreman_remote_execution
import React from 'react'; import PropTypes from 'prop-types'; import { Text, TextVariants, Form, Alert } from '@patternfly/react-core'; import { translate as __ } from 'foremanReact/common/I18n'; import { SelectField } from '../form/SelectField'; import { GroupedSelectField } from '../form/GroupedSelectField'; import ...
src/svg-icons/av/fast-forward.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFastForward = (props) => ( <SvgIcon {...props}> <path d="M4 18l8.5-6L4 6v12zm9-12v12l8.5-6L13 6z"/> </SvgIcon> ); AvFastForward = pure(AvFastForward); AvFastForward.displayName = 'AvFastForward'; AvFastForw...
src/components/app.js
SiAdcock/gecko-o-meter
import React, { Component } from 'react'; import request from 'superagent'; import { currencies } from '../constants'; import Dial from './dial'; import Scale from './scale'; import getRotation from '../lib/getRotation'; export default class App extends Component { constructor(props) { super(props); this.sta...
js/jqwidgets/demos/react/app/menu/loadmenufromarray/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxMenu from '../../../jqwidgets-react/react_jqxmenu.js'; class App extends React.Component { render() { let source = [ { html: "<img src='../../images/mailIcon.png'/><span style='position: relative; left: 3px;...
src/containers/NotFound/NotFound.js
staszekj/react-redux-universal
import React from 'react'; export default function NotFound() { return ( <div className="container"> <h1>Doh! 404!</h1> <p>These are <em>not</em> the droids you are looking for!</p> </div> ); }
node_modules/native-base/src/basic/Actionsheet.js
odapplications/WebView-with-Lower-Tab-Menu
/* @flow */ import React, { Component } from 'react'; import { View, Modal, Platform, ActionSheetIOS, TouchableOpacity } from 'react-native'; import { connectStyle } from '@shoutem/theme'; import { Text } from './Text'; import { Button } from './Button'; import { ViewNB } from './View'; import { Icon } from './Icon';...
server/sonar-web/src/main/js/store/utils/withStore.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
app/components/layouts/FrontPageLayout.js
ramsaylanier/ApolloPress
import React from 'react'; import Page from '../pages/page.js'; import PostContent from '../posts/PostContent'; import { connect } from 'react-apollo'; class FrontPageLayout extends React.Component{ render(){ console.log('front page render'); const { loading } = this.props.page; if (loading){ retu...
react-client/src/components/users/EditPasswordForm.js
danieluy/radiocero_premios
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { updateUserPassword } from '../../radiocero-api' import session from '../../session' import styles from '../../assets/styles' import Dialog from 'material-ui/Dialog'; import TextField from 'material-ui/TextField'; import RaisedButt...
src/components/Toaster/Toaster.js
hellofresh/janus-dashboard
import React from 'react' import { object } from 'prop-types' import block from '../../helpers/bem-cn' import Icon from '../Icon/Icon' import './Toaster.css' const b = block('j-toaster') const propTypes = { toaster: object.isRequired } const Toaster = props => { const handleCloseToaster = () => props.closeT...
webapp/app/components/SaveHistory/Table/index.js
EIP-SAM/SAM-Solution-Server
// // Table page save // import React from 'react'; import { Table } from 'react-bootstrap'; import SaveHistoryDeletionScheduledSaveModal from 'containers/SaveHistory/Table/ModalDeletionScheduledSave'; import SaveHistoryInstantSaveModal from 'containers/SaveHistory/Table/ModalInstantSave'; import SaveHistoryInstantRes...
src/app/components/Footer.js
skratchdot/audio-editor
import React, { Component } from 'react'; import { Row, Col } from 'react-bootstrap'; import { connect } from 'react-redux'; class Footer extends Component { render() { const fullYear = (new Date()).getFullYear(); return ( <footer> <Row> <Col md={12}><div className="main-seperator"></div></Col> ...
source/patterns/02-organisms/navigation/nav-secondary/docs/nav-secondary.example.js
apparena/patterns
import React from 'react'; import {Button, NavSecondary} from 'apparena-patterns-react'; export default function NavSecondaryExample() { return ( <NavSecondary> <Button> I am number 2 </Button> </NavSecondary> ); }
src/components/Backgrounds/index.js
codex49/icon-generator
import React from 'react'; import Background from './components/Background'; import BackgroundUpload from './components/BackgroundUpload'; import CustomGradient from './components/CustomGradient'; import TitleCategory from '../TitleCategory'; import uploadIcon from '../../public/assets/img/icons/upload.png'; const r...
website/src/App.js
dmorden/N-Web
import React, { Component } from 'react'; import TextField from 'material-ui/TextField'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; import Avatar from 'material-ui/Avatar'; import Chip from 'material-ui/Chip'; import SvgIconFace from 'material-ui/svg-icons/act...
frontend/component/Login.js
honggzb/practise_node
import React from 'react'; import jQuery from 'jquery'; import {Link} from 'react-router'; import {login} from '../lib/client'; import {redirectURL} from '../lib/utils'; export default class Login extends React.Component { constructor(props) { super(props); this.state = {}; } handleChange(name, e) { ...
src/components/molecules/Form/Fetch/_astories.js
ygoto3/artwork-manager
import React from 'react'; module.exports = stories => ( stories .addWithInfo( 'normal', 'A button with a text label', () => ( <p>Fetch</p> ) ) );
server/server.js
codejunky/neda
import Express from 'express'; import compression from 'compression'; import mongoose from 'mongoose'; import bodyParser from 'body-parser'; import path from 'path'; // Webpack Requirements import webpack from 'webpack'; import config from '../webpack.config.dev'; import webpackDevMiddleware from 'webpack-dev-middlewa...
src/DropdownButton.js
AlexKVal/react-bootstrap
import React from 'react'; import BootstrapMixin from './BootstrapMixin'; import Dropdown from './Dropdown'; import NavDropdown from './NavDropdown'; import CustomPropTypes from './utils/CustomPropTypes'; import deprecationWarning from './utils/deprecationWarning'; import omit from 'lodash/object/omit'; class Dropdown...
packages/material-ui-benchmark/src/server.js
lgollut/material-ui
/* eslint-disable no-console */ import express from 'express'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; import { SheetsRegistry } from 'jss'; import { createMuiTheme } from '@material-ui/core/styles'; import { styled as materialStyled, StylesProvider, ThemeProvider, createGenera...
Mr.Mining/MikeTheMiner/dist/Santas_helpers/Sia_wallet/resources/app/plugins/Files/js/components/searchbutton.js
patel344/Mr.Miner
import React from 'react' const SearchButton = ({path, actions}) => { const handleClick = () => { actions.toggleSearchField() actions.setSearchText('', path) } return ( <div onClick={handleClick} className="search-button"> <i className="fa fa-search fa-2x" /> <span> Search Files </span> </div> ) } e...
examples/ant-design-demo/src/Root/modules/Test/UI/ProgressControllable.ui.js
homkai/deef
/** * Created by DOCer on 2017/7/11. */ import React from 'react'; import {Progress, Button} from 'antd'; const ButtonGroup = Button.Group; export default ({percent, ...callbacks}) => { const {onIncrease, onDecline} = callbacks; return ( <div style={{textAlign: 'center'}}> <Progress type...
6.ReactRouter/src/schedule.js
vishaljadav94/ReactBasic
import React from 'react' const Schedule = () => ( <div> <ul> <li>6/5 @ Evergreens</li> <li>6/8 vs Kickers</li> <li>6/14 @ United</li> </ul> </div> ); export default Schedule
packages/icons/src/md/image/RotateRight.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdRotateRight(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M31.1 14.1L22 5v6.14c-7.89.98-14 7.7-14 15.86s6.11 14.88 14 15.86v-4.04c-5.67-.95-10-5.88-10-11.82s4.33-10.87 10-11.82V23l9.1-8.9zM39.86 25c-.34-...
src/mixins/helpers.js
lPadier/react-slick
'use strict'; import React from 'react'; import {getTrackCSS, getTrackLeft, getTrackAnimateCSS} from './trackHelper'; import assign from 'object-assign'; var helpers = { initialize: function (props) { var slideCount = React.Children.count(props.children); var listWidth = this.getWidth(this.refs.list.getDOMN...
src/svg-icons/image/camera-front.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCameraFront = (props) => ( <SvgIcon {...props}> <path d="M10 20H5v2h5v2l3-3-3-3v2zm4 0v2h5v-2h-5zM12 8c1.1 0 2-.9 2-2s-.9-2-2-2-1.99.9-1.99 2S10.9 8 12 8zm5-8H7C5.9 0 5 .9 5 2v14c0 1.1.9 2 2 2h10c1.1 0 2-....
src/components/forms/NewPollForm/filesArray.js
bshevchenko/ChronoMint
import React from 'react' import {Field, FieldArray} from 'redux-form/immutable' import {FlatButton} from 'material-ui' import FileSelect from '../../common/IPFSFileSelect' import globalStyles from '../../../styles' const renderFiles = ({fields, meta: {touched, error}}) => ( <div> {fields.map((file, index) => ...
src/utils/children.js
gobadiah/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...
code/fluxible-client-enterjs/components/HelloMessage.js
DJCordhose/react-playground
import React from 'react'; import {connectToStores, provideContext} from 'fluxible/addons'; import MessageStore from '../stores/MessageStore'; import messageAction from '../actions/messageAction'; import MessageDisplay from './MessageDisplay'; import ResetButton from './ResetButton'; class HelloMessage extends React.C...
docs/src/components/Docs/Props/HashtagProp/index.js
jpuri/react-draft-wysiwyg
import React from 'react'; import Codemirror from 'react-codemirror'; export default () => ( <div> <h3>Enabling hashtag</h3> <div className="docs-desc"> Hashtag can be enabled in the editor as showed in example below. separator is character that separates a mention from word preceding it, defaul...
examples/active-links/app.js
meraki/react-router
import React from 'react' import { render } from 'react-dom' import { Router, Route, IndexRoute, Link, IndexLink, browserHistory } from 'react-router' const ACTIVE = { color: 'red' } class App extends React.Component { render() { return ( <div> <h1>APP!</h1> <ul> <li><Link t...
src/components/ContainerDetailsSubheader.react.js
nevercast/kitematic
import _ from 'underscore'; import React from 'react'; import shell from 'shell'; import metrics from '../utils/MetricsUtil'; import ContainerUtil from '../utils/ContainerUtil'; import classNames from 'classnames'; import containerActions from '../actions/ContainerActions'; import dockerMachineUtil from '../utils/Docke...
client/app/src/components/PlacesList.js
gk95/nightlux
import React from 'react' import { graphql } from 'react-apollo'; import gql from 'graphql-tag'; import { Link } from 'react-router-dom'; import { Button, Icon, Image as ImageComponent, Item, Label } from 'semantic-ui-react'; export default function PlacesList({ services }) { return ( <Item.Group divided> ...
client/app/main.js
feedhenry/snapscreen
import React from 'react'; import { Platform } from 'react-native'; import { StackNavigator } from 'react-navigation'; import LoadingScreen from './screens/Loading'; import LoginScreen from './screens/Login'; import InviteListScreen from './screens/InviteList'; import InviteDetailScreen from './screens/InviteDetail'; ...
src/parser/druid/guardian/modules/features/GalacticGuardian.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import { formatPercentage } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS';...
src/svg-icons/av/note.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvNote = (props) => ( <SvgIcon {...props}> <path d="M22 10l-6-6H4c-1.1 0-2 .9-2 2v12.01c0 1.1.9 1.99 2 1.99l16-.01c1.1 0 2-.89 2-1.99v-8zm-7-4.5l5.5 5.5H15V5.5z"/> </SvgIcon> ); AvNote = pure(AvNote); AvNote....
view/zero-cola/src/pages/admin/AdminPostListPage.js
xuzhenyang/ZeroCola
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { Table, Divider } from 'antd'; import { request } from '../../common'; import { tokenKey } from '../../config'; import AdminLayout from '../../components/AdminLayout'; class AdminPostListPage extends Component { constructor(...
react-flux-mui/js/material-ui/src/svg-icons/editor/border-inner.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderInner = (props) => ( <SvgIcon {...props}> <path d="M3 21h2v-2H3v2zm4 0h2v-2H7v2zM5 7H3v2h2V7zM3 17h2v-2H3v2zM9 3H7v2h2V3zM5 3H3v2h2V3zm12 0h-2v2h2V3zm2 6h2V7h-2v2zm0-6v2h2V3h-2zm-4 18h2v-2h-2v2zM13 ...
src/svg-icons/hardware/tv.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareTv = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12z"/> </SvgIcon> ); HardwareTv = pure(Hardwar...
src/svg-icons/device/location-disabled.js
manchesergit/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/server.js
21echoes/my-react-starter-kit
import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; import httpProxy from 'http-proxy'; import path from 'path'; import createStore from './redux/create'; import ApiC...
src/svg-icons/content/backspace.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentBackspace = (props) => ( <SvgIcon {...props}> <path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 12.59L17.59 17 14 13.41 10.41 17 9 15.59 12...
src/containers/FormattedMsg/index.js
IDEOorg/steps-guide-builder
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { getTranslation } from '../../globals/utils'; const FormattedMsg = (props) => { const translatedValue = getTranslation(props.children, props.language); return ( <span> { translatedValue } </spa...
src/page_views/Home.js
max-su/max-su.github.io
import React from 'react'; import Header from 'src/page_views/shared/Header'; import NavBarWrapper from 'src/page_views/shared/NavBarWrapper'; import FooterWrapper from 'src/page_views/shared/FooterWrapper'; import Main from 'src/page_views/Main'; // export function Home({ match }) { export function Home() { return ...
src/package/components/modal/ModalButton.js
abobwhite/slate-editor
import React from 'react' // FIXME: Needs to handle assets files to work with SSR if (require('exenv').canUseDOM) require('./ModalButton.css') const Container = ({ children }) => ( <div className="modal-button--container"> {children} </div> ) const Primary = ({ text, type = 'button', onClick }) => ( <butto...
examples/huge-apps/routes/Messages/components/Messages.js
cgrossde/react-router
import React from 'react'; class Messages extends React.Component { render () { return ( <div> <h2>Messages</h2> </div> ); } } export default Messages;
code/web/node_modules/react-bootstrap/es/SplitButton.js
zyxcambridge/RecordExistence
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from...
wrappers/json.js
rileyjshaw/crypto.christmas
import React from 'react' import Helmet from 'react-helmet' import {config} from 'config' module.exports = React.createClass({ propTypes () { return { route: React.PropTypes.object, } }, render () { const data = this.props.route.page.data; return <div> <Helmet title={`${config.siteTitle} | ${data...
packages/icons/src/md/editor/InsertLink.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdInsertLink(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M7.8 24c0-3.42 2.78-6.2 6.2-6.2h8V14h-8C8.48 14 4 18.48 4 24s4.48 10 10 10h8v-3.8h-8c-3.42 0-6.2-2.78-6.2-6.2zm8.2 2h16v-4H16v4zm18-12h-8v3.8h8c3....
src/mixins/style-propable.js
jtollerene/material-ui
import React from 'react'; import warning from 'warning'; let hasWarned; const warn = () => { warning(hasWarned, 'The \'material-ui/lib/mixins/style-propable.js\' mixin has been deprecated.' + ' Please do not use this mixin as it will be removed in an upcoming release.'); hasWarned = true; }; export const mer...
example/src/pages/DetectedEnvironmentChanged.js
ethanselzer/react-cursor-position
import React, { Component } from 'react'; import { Col, Grid, Jumbotron, Row } from 'react-bootstrap'; import Helmet from 'react-helmet'; import DetectedEnvironmentChanged from '../components/DetectedEnvironmentChanged'; import Header from '../components/Header'; import 'bootstrap/dist/css/bootstrap.c...
.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/ReportSystem/resources/js/indexEntry.js
LittleLazyCat/TXEY
import React from 'react'; import ReactDOM from 'react-dom'; import Index from './components/index/index'; import { Router, Route, Link, hashHistory, IndexRoute } from 'react-router'; import SiderMenu from './components/common/sidermenu' import AreaStack from './components/echarts/areastack' import UserMgt from './comp...
src/scenes/UserConsole/scenes/WeatherStations/AllWeatherStationsContainer.js
adeira/connector-frontend
import React from 'react'; import {connect} from 'react-redux'; import WeatherStationPreview from './WeatherStationPreview'; import WeatherStationForm from './WeatherStationForm'; import Paper from 'material-ui/Paper'; import {loadAllWeatherStations, createWeatherStation} from 'actions/WeatherStation'; export const Al...
index.ios.js
mkgilbert/ispy
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class ispy extends Component { render() { return ( <View style={styles.container}> ...
src/containers/Asians/TabControls/PreliminaryRounds/CreateRooms/7_VenueAllocationSetting/Navigation/index.js
westoncolemanl/tabbr-web
import React from 'react' import Button from 'material-ui/Button' export default ({ onBack, onNext }) => <div className={'flex flex-row justify-end mt3'} > <Button onTouchTap={onBack} children={'BACK'} /> <Button variant={'raised'} color={'primary'} onTouchTap={on...
pages/archive.js
KyleAMathews/proving-contraries
import React from 'react' import { Container } from 'react-responsive-grid' import filter from 'lodash/filter' import sortBy from 'lodash/sortBy' import moment from 'moment' import { Link } from 'react-router' import { rhythm } from 'utils/typography' class Archive extends React.Component { render () { let posts...
src/common/Logo.js
nashvail/zulip-mobile
/* @flow */ import React from 'react'; import { Image, StyleSheet } from 'react-native'; import logoImg from '../../static/img/logo.png'; const styles = StyleSheet.create({ logo: { width: 40, height: 40, margin: 20, alignSelf: 'center', }, }); export default () => <Image style={styles.logo} sourc...
docs/src/app/components/pages/components/Divider/ExampleForm.js
barakmitz/material-ui
import React from 'react'; import Divider from 'material-ui/Divider'; import Paper from 'material-ui/Paper'; import TextField from 'material-ui/TextField'; const style = { marginLeft: 20, }; const DividerExampleForm = () => ( <Paper zDepth={2}> <TextField hintText="First name" style={style} underlineShow={fal...
app/containers/HomePage.js
santomegonzalo/GalaNews
// @flow import React, { Component } from 'react'; import Home from '../components/Home'; export default class HomePage extends Component { render() { return ( <Home /> ); } }
src/client/src/Components/Table/TableRow/index.js
severnsc/brewing-app
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' const FlexTableRow = styled.tr` display:flex; flex-direction:row; position:relative; border-bottom:1px solid rgb(224, 224, 224); margin-top:5px; &:hover button { opacity: 1 } ` const TableCell = style...
src/FormsyDate/FormsyDate.spec.js
st-andrew/formsy-mui
import 'jsdom-global/register'; import React from 'react'; import PropTypes from 'prop-types'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import Formsy, {Form} from 'formsy-react-2'; import Enzyme, { mount } from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; import test from 'tape'; import...
pages/index.js
bmealhouse/next-redux-saga
import React from 'react' import Layout from '../components/layout' function Home() { return <Layout /> } export default Home
node_modules/react-bootstrap/es/DropdownMenu.js
mohammed52/door-quote-automator
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _Array$from from 'babel-runtime/core-js/array/from'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtim...
src/ModalBody.js
zanjs/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalBody extends React.Component { render() { return ( <div {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> {this.props.children} </div> ); } } ModalBody.prop...
React-todo/src/containers/AddTodo.js
FillInjava/react-redux-webpack
import React from 'react' import { connect } from 'react-redux' import { addTodo } from '../actions/actions' let AddTodo = ({dispatch})=>{ let input; return ( <div> <form onSubmit={e => { e.preventDefault(); if(!input.value.trim()){ return } dispatch(addTodo(input.value)); inp...
docs/app/Examples/elements/Header/Content/HeaderExamplePlugIcon.js
clemensw/stardust
import React from 'react' import { Header, Icon } from 'semantic-ui-react' const HeaderExamplePlugIcon = () => ( <Header as='h2'> <Icon name='plug' /> <Header.Content> Uptime Guarantee </Header.Content> </Header> ) export default HeaderExamplePlugIcon
src/svg-icons/social/share.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialShare = (props) => ( <SvgIcon {...props}> <path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0...
app/javascript/mastodon/features/notifications/components/clear_column_button.js
hugogameiro/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; export default class ClearColumnButton extends React.PureComponent { static propTypes = { onClick: PropTypes.func.isRequired, }; render () { return ( <button className='text-btn column-he...
src/routes/notFound/index.js
bigearth/www.clone.earth
import React from 'react'; import Layout from '../../components/Layout'; import NotFound from './NotFound'; const title = 'Page Not Found'; export default { path: '*', action() { return { title, component: <Layout><NotFound title={title} /></Layout>, status: 404, }; }, };
src/parser/demonhunter/vengeance/modules/statistics/SoulFragmentsConsume.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import StatisticBox from 'interface/others/StatisticBox'; import { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import SPELLS from 'common/SPELLS/index'; import SpellIcon from 'common/SpellIcon'; import SoulFragmentsTracker from '../fe...
index.android.js
TheOne1006/TheOne1006-theone-io-app
/** * @flow */ import React, { Component } from 'react'; import { Provider } from 'react-redux'; import { AppRegistry, BackAndroid } from 'react-native'; import { NavigationActions } from 'react-navigation'; import store from './src/redux/store'; import AppViewContainer from './src/modules/AppViewContainer'; class t...
src/routes/app/routes/ui/routes/menus/components/Menu.js
ahthamrin/kbri-admin2
import React from 'react'; import Paper from 'material-ui/Paper'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; import Divider from 'material-ui/Divider'; import RemoveRedEye from 'material-ui/svg-icons/image/remove-red-eye'; import PersonAdd from 'material-ui/svg-icons/social/perso...
react-boilerplate/app/components/LoadingIndicator/Circle.js
Sakuyakun/Yorha-Experiment
import React from 'react'; import PropTypes from 'prop-types'; import styled, { keyframes } from 'styled-components'; const circleFadeDelay = keyframes` 0%, 39%, 100% { opacity: 0; } 40% { opacity: 1; } `; const Circle = (props) => { const CirclePrimitive = styled.div` width: 100%; heig...
src/components/app.js
AmmarCloudtech/Simple-Blog
import React, { Component } from 'react'; export default class App extends Component { render() { return ( <div> {this.props.children} </div> ); } }
src/routes/App/layout/Bread.js
pmg1989/dva-admin
import React from 'react' import PropTypes from 'prop-types' import { Breadcrumb, Icon } from 'antd' import { Helmet } from 'react-helmet' import { Link } from 'dva/router' import { menu } from 'utils' import styles from './Bread.less' let pathSet = [] const getPathSet = function (menuArray, parentPath) { parentPat...
src/ui/pages/_dashboard.js
e-Ray/web_platform
import React, { Component } from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import { Chart } from '../components/generic'; import { Link } from 'react-router'; import { firebaseAuth } from '../../api/Auth/_constants'; import { ref } from '../../api/Auth/_constants'; import { observer } from 'mobx-rea...
src/common/components/table/RowItem.js
vassar-cogscilab/turing-machine
import React from 'react'; import { findDOMNode } from 'react-dom' import IconButton from 'material-ui/IconButton'; import Avatar from 'material-ui/Avatar'; import DeleteRowButton from '../../containers/table/DeleteRowButtonContainer'; import SwitchDirectionButton from '../../containers/table/SwitchDirectionButtonConta...
src/oneTwoThreeApp/components/Four.js
yosuzuk/react-playground
import React from 'react'; const Four = () => ( <span>Four!</span> ); export default Four;
src/svg-icons/content/redo.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentRedo = (props) => ( <SvgIcon {...props}> <path d="M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/> </Sv...
src/MessageStoreSnackBar.js
mindhivenz/mui-components
import React from 'react' import Snackbar from 'material-ui/Snackbar' import compose from 'recompose/compose' import { observer } from 'mobx-react' import { app } from '@mindhive/di' import WindowSize from './responsiveUi/WindowSize' import withStyles from './theme/withStyles' const MessageStoreSnackBar = ({ messa...