path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/containers/DataPage.js
wanyine/vr-store-frontend
import React from 'react' import LoginForm from '../components/LoginForm' import RoDialog from '../components/RoDialog' import RecordSummaryTable from '../components/RecordSummaryTable' import RecordDetailTable from '../components/RecordDetailTable' import { bindActionCreators } from 'redux'; import { connect } from '...
src/components/currentgraphcontrols/partitionsizer.js
jamjar919/bork
import React from 'react'; import PropTypes from 'prop-types'; import { Range } from 'rc-slider'; import 'rc-slider/assets/index.css'; function indexesToSizes(indexes) { const sizes = []; let lastVal = 0; for (let i = 0; i < indexes.length; i += 1) { sizes.push(indexes[i] - lastVal); lastV...
src/app/component/paragraph/paragraph.js
all3dp/printing-engine-client
import PropTypes from 'prop-types' import React from 'react' import propTypes from '../../prop-types' import cn from '../../lib/class-names' const Paragraph = ({ classNames, children, size = 'default', strong = false, minor = false, warning = false }) => ( <p className={cn('Paragraph', {[`size-${size}`]...
src/components/CustomIcons/ResistorIcon.js
wavicles/fossasia-pslab-apps
import React from 'react'; const ResistorIcon = ({ size = '1.5em', color = 'rgba(0, 0, 0, 0.38)' }) => { return ( <svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" width={size} height={size} x="0px" y="0px" viewBox="0 0 462.782 462.782" > ...
app/containers/App/index.js
andreasasprou/react-boilerplate-auth
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
src/containers/App.js
superphy/reactapp
import React, { Component } from 'react'; // Components from react-md import NavigationDrawer from 'react-md/lib/NavigationDrawers' import NavLink from '../containers/NavLink' import Avatar from 'react-md/lib/Avatars'; import logo from '../spfy.png' import { version } from '../middleware/api' // react-router import { w...
src/parser/monk/mistweaver/modules/talents/SpiritOfTheCrane.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { formatNumber } from 'common/format'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import Analyzer from 'parser/core/Analyzer'; import { STATISTIC_ORDER } from 'interface/others/S...
app/App.js
cmilfont/zonaextrema
import ReactDOM from 'react-dom'; import React, { Component } from 'react'; import { createStore, compose, combineReducers, applyMiddleware } from 'redux'; import { Provider } from 'react-redux'; import { Router, Route, IndexRedirect, browserHistory } from 'react-router'; import { syncHistoryWithStore, routerReducer } ...
src/components/Root.js
zebogen/film-bff-client
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Provider } from 'react-redux'; import routes from 'routes'; import { Router } from 'react-router'; export default class Root extends Component { render() { const { store, history } = this.props; return ( <Provider st...
src/svg-icons/image/crop-din.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropDin = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"/> </SvgIcon> ); ImageCropDin = pure(ImageCropDin); Image...
src/components/DisplayList/DisplayList.js
gReis89/sam-ovens-website
import React from 'react' import PropTypes from 'prop-types' import _map from 'lodash/map' export const DisplayList = ({ data }) => { const component = data.length ? ( <div className='display-list'> <ol> { _map(data, (item, i) => <li key={i}>{item}</li>) } </ol> </div>...
src/components/invest/index.js
15chrjef/ico-wizard
import React from 'react' import ReactCountdownClock from 'react-countdown-clock' import { checkTxMined, attachToContract, checkNetWorkByID, sendTXToContract } from '../../utils/blockchainHelpers' import { getCrowdsaleData, getCurrentRate, initializeAccumulativeData, getAccumulativeCrowdsaleData, getCrowdsaleTargetDate...
docs/app/Examples/elements/Step/States/StepExampleCompletedOrdered.js
shengnian/shengnian-ui-react
import React from 'react' import { Step } from 'shengnian-ui-react' const StepExampleCompletedOrdered = () => ( <Step.Group ordered> <Step completed> <Step.Content> <Step.Title>Billing</Step.Title> <Step.Description>Enter billing information</Step.Description> </Step.Content> </St...
ressources/components/svg-icons/SelectionIcon.js
thierryc/Sketch-Find-And-Replace
import React from 'react' const SelectionIcon = (props) => { const { theme, isActive } = props return ( <svg width='38px' height='32px' viewBox='0 0 38 32'> <g stroke='none' strokeWidth='1' fill='none' fillRule='evenodd' > <g transform='translate(6...
admin/src/components/PopoutBody.js
lojack/keystone
import blacklist from 'blacklist'; import classnames from 'classnames'; import React from 'react'; var PopoutBody = React.createClass({ displayName: 'PopoutBody', propTypes: { children: React.PropTypes.node.isRequired, scrollable: React.PropTypes.bool, }, render () { let className = classnames('Popout__body'...
src/svg-icons/image/navigate-next.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageNavigateNext = (props) => ( <SvgIcon {...props}> <path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/> </SvgIcon> ); ImageNavigateNext = pure(ImageNavigateNext); ImageNavigateNext.displayName = 'Ima...
content/gocms/src/base/router/routes.js
menklab/goCMS
import React from 'react' import {Route} from 'react-router' import BaseTemplate from '../base_tmpl' let injectedRoutes = []; let routes = <Route component={BaseTemplate}> {injectedRoutes} </Route>; export function injectRoutes(r) { injectedRoutes.push(r); } export function registeredRoutes...
src/svg-icons/hardware/security.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareSecurity = (props) => ( <SvgIcon {...props}> <path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"/> </SvgIcon> ); Hardwa...
js/ShowCard.js
PaquitoSoft/complete-intro-to-react
import React from 'react'; import { Link } from 'react-router'; const { shape, string } = React.PropTypes; const ShowCard = React.createClass({ propTypes: { show: shape({ imdbID: string.isRequired, poster: string.isRequired, title: string.isRequired, year: string.isRequired, descri...
reactjs/budget/client/components/LoginControl/UserGreeting.js
Kevin-Huang-NZ/notes
import React, { Component } from 'react'; class UserGreeting extends Component { render() { return ( <h1> Welcome back. </h1> ); } } export default UserGreeting;
actor-apps/app-web/src/app/components/modals/Contacts.react.js
amezcua/actor-platform
// // Deprecated // import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import ContactActionCreators from 'actions/ContactActionCreators'; import DialogActionCreators from 'actions/DialogActionCreators'; import ContactStore from 'stores/ContactStore'; import Modal from...
packages/material-ui/src/transitions/Zoom.js
cherniavskii/material-ui
// @inheritedComponent Transition import React from 'react'; import PropTypes from 'prop-types'; import Transition from 'react-transition-group/Transition'; import { duration } from '../styles/transitions'; import withTheme from '../styles/withTheme'; import { reflow, getTransitionProps } from './utils'; const styles...
public/js/src/index/view1.js
Lucifier129/isomorphism-react-file-system
import React from 'react' import Tile from '../component/Tile' import Breadcrumb from '../component/Breadcrumb' export default class View extends React.Component { render() { let tree = this.props.tree return (<div> <Breadcrumb path={tree.path} /> <div className="tile-wrap"> <Tile name="文件名" type="文件类型" ...
docs/src/examples/elements/Button/GroupVariations/ButtonExampleGroupLabeledIcon.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleGroupLabeledIcon = () => ( <Button.Group vertical labeled icon> <Button icon='play' content='Play' /> <Button icon='pause' content='Pause' /> <Button icon='shuffle' content='Shuffle' /> </Button.Group> ) export def...
old-or-not-typescript/learn-redux/real-world/index.js
janaagaard75/framework-investigations
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { browserHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import Root from './containers/Root' import configureStore from './store/configureStore' const store = configureStore() const hist...
src/svg-icons/image/flare.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFlare = (props) => ( <SvgIcon {...props}> <path d="M7 11H1v2h6v-2zm2.17-3.24L7.05 5.64 5.64 7.05l2.12 2.12 1.41-1.41zM13 1h-2v6h2V1zm5.36 6.05l-1.41-1.41-2.12 2.12 1.41 1.41 2.12-2.12zM17 11v2h6v-2h-6zm-5-...
packages/es-components/src/components/controls/buttons/PopoverLink.js
TWExchangeSolutions/es-components
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import LinkButton from './LinkButton'; import { useTheme } from '../../util/useTheme'; const StyledButton = styled(LinkButton)` text-underline-position: under; text-decoration-skip-ink: none; text-decoration: $...
nlyyAPP/component/随访管理/发送受试者短信统计/MLSMSStatisticsLB.js
a497500306/nlyy_APP
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, TouchableOpacity, Navigator, TextInput, ActivityIndicator, Alert, ListView } from 'react-native'; var MLTableCell = require('../../MLTableCell/MLTableCell'); var Dimensions = require('Dimensi...
src/components/forms/textarea.js
adrienhobbs/redux-glow
/* eslint-disable */ import React from 'react'; import Formsy from 'formsy-react'; const TextArea = React.createClass({ // Add the Formsy Mixin mixins: [Formsy.Mixin], changeValue (event) { this.setValue(event.currentTarget.value); }, render () { const className = this.showRequired() ? 'required' ...
src/components/login/canvas.js
liuweiGL/eastcoal_mgr_react
import React from 'react' import ReactDom from 'react-dom' import CanvasAnimation from '../../js/canvasAnimation' class Canvas extends React.Component { componentDidMount = () => { const canvas = ReactDom.findDOMNode( this.refs.canvas ); const { count, maxRadius, color, lineWeight, lineColor, isCli...
src/components/Garden/GardenPlot.js
KageEnterprises/weed-wizard
import PropTypes from 'prop-types'; import React from 'react'; import { Button, Card, CardActions, CardContent, CircularProgress, Grid, Typography } from '@material-ui/core'; import { withStyles } from '@material-ui/core/styles'; import { theme } from '../../Theme'; import { PLANT_GROWTH_PHASES } from '...
src/packages/@ncigdc/routes/ComponentsRoute.js
NCI-GDC/portal-ui
import React from 'react'; import * as ModernComponents from '@ncigdc/modern_components'; export default class extends React.Component { render() { const Component = ModernComponents[this.props.match.params.component]; return Component ? <Component /> : <h1>No matching component found.</h1>; } }
fields/components/Checkbox.js
brianjd/keystone
import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; import { darken, fade } from '../../admin/client/utils/color'; import E from '../../admin/client/constants'; var Checkbox = React.createClass({ displayName: 'Checkbox', propTypes: { checked: React.PropTypes.bool, c...
src/svg-icons/communication/stay-current-portrait.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStayCurrentPortrait = (props) => ( <SvgIcon {...props}> <path d="M17 1.01L7 1c-1.1 0-1.99.9-1.99 2v18c0 1.1.89 2 1.99 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/> </SvgIcon> );...
src/svg-icons/communication/no-sim.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationNoSim = (props) => ( <SvgIcon {...props}> <path d="M18.99 5c0-1.1-.89-2-1.99-2h-7L7.66 5.34 19 16.68 18.99 5zM3.65 3.88L2.38 5.15 5 7.77V19c0 1.1.9 2 2 2h10.01c.35 0 .67-.1.96-.26l1.88 1.88 1.27-1....
packages/cf-builder-card/src/CardBuilder.js
mdno/mdno.github.io
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Card, CardSection, CardContent, CardControl, CardDrawers, CardPropTypes } from 'cf-component-card'; import { DynamicContent } from 'cf-component-dynamic-content'; import markdown from 'cf-util-mark...
src/components/common/svg-icons/notification/event-busy.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationEventBusy = (props) => ( <SvgIcon {...props}> <path d="M9.31 17l2.44-2.44L14.19 17l1.06-1.06-2.44-2.44 2.44-2.44L14.19 10l-2.44 2.44L9.31 10l-1.06 1.06 2.44 2.44-2.44 2.44L9.31 17zM19 3h-1V1h-2v2H8V...
new-lamassu-admin/src/components/NotificationCenter/NotificationRow.js
naconner/lamassu-server
import { makeStyles } from '@material-ui/core/styles' import classnames from 'classnames' import prettyMs from 'pretty-ms' import * as R from 'ramda' import React from 'react' import { Label1, Label2, TL2 } from 'src/components/typography' import { ReactComponent as Wrench } from 'src/styling/icons/action/wrench/zodia...
app/components/FleetBody.js
Ruin0x11/fleet
import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './FleetBody.css'; import DeckListContainer from '../containers/DeckListContainer'; import NotifierContainer from '../containers/NotifierContainer'; import DockInfoContainer from '../containers/DockInfoContainer'; import F...
src/svg-icons/maps/local-drink.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalDrink = (props) => ( <SvgIcon {...props}> <path d="M3 2l2.01 18.23C5.13 21.23 5.97 22 7 22h10c1.03 0 1.87-.77 1.99-1.77L21 2H3zm9 17c-1.66 0-3-1.34-3-3 0-2 3-5.4 3-5.4s3 3.4 3 5.4c0 1.66-1.34 3-3 3zm6....
src/ButtonInput.js
leozdgao/react-bootstrap
import React from 'react'; import Button from './Button'; import FormGroup from './FormGroup'; import InputBase from './InputBase'; import childrenValueValidation from './utils/childrenValueInputValidation'; class ButtonInput extends InputBase { renderFormGroup(children) { let {bsStyle, value, ...other} = this.p...
frontend/js/components/organisms/AppLogo.js
Code4HR/okcandidate-platform
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import IconButton from './../molecules/IconButton'; class AppLogo extends Component { render() { return ( <section className="app-logo"> { this.props.displayMenuButton && <IconButton ...
src/pages/Editor/pages/MapEditor/pages/Upload/containers/DataUploadContainer/components/DataUploadLayout/components/DataUploadHeader/DataUploadHeader.js
caspg/datamaps.co
import React from 'react' import PropTypes from 'prop-types' import { grey300 } from '@src/styles/colors' import UploadSteps from './components/UploadSteps' import UploadInstructions from './components/UploadInstructions' const DataUploadHeader = (props) => { const { currentStep, columnIndexes, onSkipStep, onChang...
blueocean-material-icons/src/js/components/svg-icons/editor/border-left.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const EditorBorderLeft = (props) => ( <SvgIcon {...props}> <path d="M11 21h2v-2h-2v2zm0-4h2v-2h-2v2zm0-12h2V3h-2v2zm0 4h2V7h-2v2zm0 4h2v-2h-2v2zm-4 8h2v-2H7v2zM7 5h2V3H7v2zm0 8h2v-2H7v2zm-4 8h2V3H3v18zM19 9h2V7h-2v2zm-4 12h2v-2h-2v2zm4-4h2v-2h-2v2zm...
docs/client/routes.js
koaninc/draft-js-plugins
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/wrappers/App'; import Page from './components/wrappers/Page'; import NotFound from './components/pages/NotFound'; import Home from './components/pages/Home'; import Hashtag from './components/pages/Hashtag'; impo...
src/svg-icons/action/gif.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionGif = (props) => ( <SvgIcon {...props}> <path d="M11.5 9H13v6h-1.5zM9 9H6c-.6 0-1 .5-1 1v4c0 .5.4 1 1 1h3c.6 0 1-.5 1-1v-2H8.5v1.5h-2v-3H10V10c0-.5-.4-1-1-1zm10 1.5V9h-4.5v6H16v-2h2v-1.5h-2v-1z"/> </Svg...
examples/huge-apps/routes/Course/components/Nav.js
rkaneriya/react-router
import React from 'react' import { Link } from 'react-router' const styles = {} styles.nav = { borderBottom: '1px solid #aaa' } styles.link = { display: 'inline-block', padding: 10, textDecoration: 'none' } styles.activeLink = { ...styles.link, color: 'red' } class Nav extends React.Component { rende...
src/components/material-style/MaterialStyleSidebar.js
casesandberg/react-docs
'use strict' import React from 'react' import ReactCSS from 'reactcss' import MaterialStyleSidebarMenu from './MaterialStyleSidebarMenu' export class MaterialStyleSidebar extends ReactCSS.Component { classes() { return { 'default': { logo: { height: '64px', lineHeight: '64px'...
docs/src/app/components/pages/components/Slider/ExampleAxis.js
kittyjumbalaya/material-components-web
import React from 'react'; import Slider from 'material-ui/Slider'; const styles = { root: { display: 'flex', height: 124, flexDirection: 'row', justifyContent: 'space-around', }, }; /** * The orientation of the slider can be reversed and rotated using the `axis` prop. */ const SliderExampleAxis...
b_stateMachine/complex_templates/jsx/wizard/core/core_index_selection.js
Muzietto/react-playground
'use strict'; import React from 'react'; import ItemsList from '../../template/components/ItemsList'; export default function core_index_selection(props) { let chosenProperty = props.chosen_dataset_property; return ( <div className="core"> <p>This is the core index selection saying: {prop...
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
riagrawal/Smart_city_accident_prediction
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
ui/js/containers/Shell/Shell.js
NitorCreations/willow-ui
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { ShellTerminal } from 'components'; import createUuid from '../../util/uuid'; import './Shell.scss'; function terminalConfigurations(newUser, newHost) { return { user: newUser, host: newHost, rows: 30, maxCols: 1...
src/components/Home.js
BingbingYanYK/configuratorDemo
import React from 'react'; import Interactive from 'react-interactive'; import { Link } from 'react-router-dom'; import { Code } from '../styles/style'; import s from '../styles/home.style'; export default function Home() { const repoReadmeLink = text => ( <Interactive as="a" {...s.link} href="...
src/icons/FileUploadIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class FileUploadIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M18 32h12V20h8L24 6 10 20h8zm-8 4h28v4H10z"/></svg>;} };
src/containers/recipes/Listing/ListingView.js
npdat/Demo_React_Native
/** * Recipe Listing Screen * - Shows a list of receipes * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View, ListView, RefreshControl, } from 'react-native'; // Consts and Libs im...
app/components/shared/FormYAMLEditorField/index.js
buildkite/frontend
import React from 'react'; import PropTypes from 'prop-types'; import Loadable from 'react-loadable'; import Spinner from 'app/components/shared/Spinner'; const CODEMIRROR_BUFFER = 8; const CODEMIRROR_LINE_HEIGHT = 17; const CODEMIRROR_CONFIG = { lineNumbers: true, tabSize: 2, indentUnit: 2, indentWithTabs: ...
react/src/containers/MenuFormApp/index.js
sinfin/folio
import React from 'react' import { connect } from 'react-redux' import SortableTree, { changeNodeAtPath, removeNodeAtPath } from 'react-sortable-tree' import { Button } from 'reactstrap' import 'react-sortable-tree/style.css' import { menusSelector, addItem, updateItems, removeItem, MENU_ITEM_URL } from 'du...
client/index.js
heroku/create-render-4r-example
import 'babel-core/polyfill' import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import configureStore from '../common/store/configure-store' import App from '../common/containers/app' import { Router } from 'react-router' import { createHistory, useQueries } from 'histo...
src/components/BookSerachResultItem.js
pawelzysk1989/game-store
import React from 'react'; import PropTypes from 'prop-types'; const BookSerachResultItem = ({book, currency, priceOnSlider, addBook, index}) => { return ( <div className="book"> <div className="card"> <div className="card-image"> <img src={book.image}/> <span className="card-ti...
webui/pages/admin/holidays.js
stiftungswo/izivi_relaunch
import React from 'react'; import { Button, Container, Dropdown, Form, Header, Input, Segment, Table } from 'semantic-ui-react'; import App from '../../components/AppContainer'; const yearOptions = [ { text: '2015', value: '2015', }, { text: '2016', value: '2016', }, { text: '20...
packages/material-ui-icons/src/SignalWifi3BarSharp.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7L12 21.5 23.64 7z" /><path d="M3.53 10.95L12 21.5l8.47-10.55C20.04 10.62 16.81 8 12 8s-8.04 2.62-8.47 2.95z" /></R...
pootle/static/js/auth/components/EmailConfirmation.js
Jobava/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ 'use strict'; import React from 'react'; import { PureRen...
packages/ui-toolkit/src/styleguide/sectionHeading.js
yldio/joyent-portal
import React from 'react'; import styled from 'styled-components'; import cx from 'classnames'; import Styled from 'react-styleguidist/lib/rsg-components/Styled'; import remcalc from 'remcalc'; const styles = ({ color, fontFamily, fontSize }) => ({ heading: { color: color.base, fontFamily: fontFamily.base, ...
docs/src/PageFooter.js
mmartche/boilerplate-shop
import React from 'react'; import packageJSON from '../../package.json'; let version = packageJSON.version; if (/docs/.test(version)) { version = version.split('-')[0]; } const PageHeader = React.createClass({ render() { return ( <footer className="bs-docs-footer" role="contentinfo"> <div c...
packages/forms/src/deprecated/fields/StringField.js
Talend/ui
import React from 'react'; import PropTypes from 'prop-types'; import { getDefaultFormState, getWidget, getUiOptions, isSelect, optionsList, getDefaultRegistry, } from 'react-jsonschema-form/lib/utils'; function StringField(props) { const { schema, name, uiSchema, idSchema, formData, required, di...
webpack/__mocks__/foremanReact/components/common/ActionButtons/ActionButtons.js
theforeman/foreman-tasks
import React from 'react'; export const ActionButtons = props => <button>{JSON.stringify(props)}</button>;
src/svg-icons/image/add-a-photo.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageAddAPhoto = (props) => ( <SvgIcon {...props}> <path d="M3 4V1h2v3h3v2H5v3H3V6H0V4h3zm3 6V7h3V4h7l1.83 2H21c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V10h3zm7 9c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-...
src/svg-icons/social/people-outline.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPeopleOutline = (props) => ( <SvgIcon {...props}> <path d="M16.5 13c-1.2 0-3.07.34-4.5 1-1.43-.67-3.3-1-4.5-1C5.33 13 1 14.08 1 16.25V19h22v-2.75c0-2.17-4.33-3.25-6.5-3.25zm-4 4.5h-10v-1.25c0-.54 2.56-1.7...
imports/ui/pages/versions/EditVersion.js
KyneSilverhide/team-manager
import React from 'react'; import VersionEditor from '../../components/versions/VersionEditor.js'; const EditVersion = ({ version }) => ( <div className="EditVersion"> <h4 className="page-header">Edition de : "{ version.name }"</h4> <VersionEditor version={ version } /> </div> ); EditVersion.propTypes = {...
client/views/Root/index.js
shastajs/boilerplate
/* eslint react/forbid-prop-types: 0 */ import React from 'react' import { Provider, Component, PropTypes } from 'shasta' import { Router } from 'shasta-router' // styling globals import 'styles/global' import rebassStyles from 'styles/rebass' import reflexboxStyles from 'styles/reflexbox' export default class RootVi...
packages/arwes/src/Grid/Grid.js
romelperez/prhone-ui
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; export default function Grid(props) { const { theme, classes, row, nested, noGutter, noMargin, col, s, m, l, xl, offset, className, children, ...etc } = props; ...
frontend/node_modules/react-router/es/MemoryRouter.js
goodman001/20170927express
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
node_modules/react-bootstrap/es/Media.js
darklilium/Factigis_2
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 ...
app/templates/src/App/Components/MenuItem.js
luisrudge/generator-simple-react-browserify
import React from 'react'; import {Link} from 'react-router'; class MenuItem extends React.Component { render() { return ( <li> <Link to={this.props.route}> {this.props.text} </Link> </li> ); } } module.exports = MenuItem;
docs/app/Examples/elements/List/ContentVariations/ListExampleFloated.js
mohammed88/Semantic-UI-React
import React from 'react' import { Button, Image, List } from 'semantic-ui-react' const ListExampleFloated = () => ( <List divided verticalAlign='middle'> <List.Item> <List.Content floated='right'> <Button>Add</Button> </List.Content> <Image avatar src='http://semantic-ui.com/images/ava...
src/svg-icons/action/turned-in-not.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTurnedInNot = (props) => ( <SvgIcon {...props}> <path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"/> </SvgIcon> ); ActionTurnedInNot = pure(ActionTurnedInNo...
app/components/Home.js
jayteesanchez/project-4
import React from 'react'; import {Link} from 'react-router'; import HomeStore from '../stores/HomeStore' import HomeActions from '../actions/HomeActions'; class Home extends React.Component { constructor(props) { super(props); this.state = HomeStore.getState(); this.onChange = this.onChange.bind(this); ...
src/common/components/view-case/GovRec-recovery-view.js
ChrisWphoto/react-ccms
import React from 'react'; import {Button} from 'react-bootstrap'; var ViewGovRec = React.createClass({ getInitialState: function() { return { completedDate: null, dateVerified: null, }; }, componentWillReceiveProps: function (nextProps) { if (nextProps.theCase.completedDate) va...
node_modules/react-bootstrap/es/HelpBlock.js
okristian1/react-info
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 ...
admin/client/App/screens/List/components/UpdateForm.js
frontyard/keystone
import React from 'react'; import Select from 'react-select'; import { findDOMNode } from 'react-dom'; import assign from 'object-assign'; import { Fields } from 'FieldTypes'; import InvalidFieldType from '../../../shared/InvalidFieldType'; import { plural } from '../../../../utils/string'; import { BlankState, Button,...
app/components/Icons/icons/icon-info.js
code4romania/monitorizare-vot-votanti-client
import React from 'react'; function IconInfo() { return ( <svg version="1.1" id="icon-info" x="0px" y="0px" viewBox="-41 164.9 512 512"> <g> <g> <path d="M229.9,467.8c-10.6-14.9-27.5-24.1-45.7-24.8c-0.4,0-0.8-0.1-1.2-0.1c-23.1,0-42.3-17.5-44.9-39.9c6.7-4.9,12.8-11,18.3-18.4c11...
src/Pokemon.js
awayken/2016-Christmas-Card
import React, { Component } from 'react'; class Pokemon extends Component { render() { const pokemonClass = `pokemon pokemon--${this.props.stats.type}`; const typeClass = `pokemon--statvalue pokemon--${this.props.stats.type}text`; const portraitAlt = `Portrait of ${this.props.name}.`; ...
src/components/authInputs/authInputs.js
slaweet/lisk-nano
import React from 'react'; import PassphraseInput from '../passphraseInput'; import { extractPublicKey } from '../../utils/api/account'; class AuthInputs extends React.Component { componentDidMount() { if (this.props.account.secondSignature) { this.props.onChange('secondPassphrase', ''); } } onCha...
collect-webapp/frontend/src/scenes/Pages/Register.js
openforis/collect
import React, { Component } from 'react'; class Register extends Component { render() { return ( <div className="app flex-row align-items-center"> <div className="container"> <div className="row justify-content-center"> <div className="col-md-6"> <div className="...
src/studies/Entry/index.js
NewSpring/Apollos
import React from 'react'; import { compose, mapProps, pure, withProps } from 'recompose'; import { get } from 'lodash'; import withStudyEntry from '@data/withStudyEntry'; import BackgroundView from '@ui/BackgroundView'; import Header from '@ui/Header'; import SecondaryNav, { Like, Share } from '@ui/SecondaryNav'; imp...
dnim-client/src/components/ShowAll.js
zhangmingkai4315/DNIS-Project
import React from 'react'; export default class ShowAll extends React.Component { constructor(props) { super(props); } render() { return ( <div id="layout" className="content pure-g"> <div>Another router is here</div> </div> ); } }
src/index.js
Wingjam/Plex4Life
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; import * as firebase from 'firebase'; // Initialize Firebase var config = { apiKey: "AIzaSyBWp2Xv5jKO_JU-GzjonSE94XKUysD_AxY", authDomain: "plex-4...
src/svg-icons/hardware/keyboard-arrow-up.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardArrowUp = (props) => ( <SvgIcon {...props}> <path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/> </SvgIcon> ); HardwareKeyboardArrowUp = pure(HardwareKeyboardArrowUp); HardwareKeyboardAr...
packages/mineral-ui-icons/src/IconPortableWifiOff.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 IconPortableWifiOff(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...ic...
ChatsUP/App.js
michelmarcondes/ReactNativeStudies
import React, { Component } from 'react'; import { StyleSheet, View } from 'react-native'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import firebase from 'firebase'; //middleware da App // Permite q as funcoes asincronas funcionem no Redux // precisa do applyMiddlewa...
client/index.js
a-deal/dr-oogle
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, browserHistory, hashHistory } from 'react-router' import App from './Components/App'; import Reviews from './Components/Reviews'; import Review from './Components/Review'; import UrlInput from './Components/UrlInput'; ReactDOM.render(...
examples/js/manipulation/export-csv-table.js
opensourcegeek/react-bootstrap-table
'use strict'; import React from 'react'; import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table'; var products = []; function addProducts(quantity) { var startId = products.length; for (var i = 0; i < quantity; i++) { var id = startId + i; products.push({ id: id, name: "Item n...
src/svg-icons/image/camera-front.js
hai-cea/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-....
docs/src/app/components/pages/components/SelectField/ExampleCustomLabel.js
xmityaz/material-ui
import React from 'react'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; export default class SelectFieldExampleCustomLabel extends React.Component { constructor(props) { super(props); this.state = {value: 1}; } handleChange = (event, index, value) => t...
client/src/components/HamburgerIcon/index.js
steThera/react-mobx-koa
import React from 'react'; import classNames from 'classnames'; import './styles.less'; const HamburgerIcon = (props) => ( <div id={props.id} onClick={props.onClick} className={classNames( 'nav-icon', { open: props.open, back: props.back, } )} > <div className="nav-icon-bars"> <span></s...
src/SearchList.js
jenstitterness/pix
import https from 'https'; import React from 'react'; import ReactDOM from 'react-dom'; import List from 'material-ui/lib/lists/list'; import ListDivider from 'material-ui/lib/lists/list-divider'; import ListItem from 'material-ui/lib/lists/list-item'; import ThemeManager from 'material-ui/lib/styles/theme-manager'; im...
src/components/Timeline.js
neontribe/spool
import React, { Component } from 'react'; import Relay from 'react-relay'; import moment from 'moment'; import _ from 'lodash'; import { EntryContainer, Entry } from './Entry'; import Layout from './Layout'; import ButtonLink from './ButtonLink'; import { withRoles } from './wrappers.js'; import IconFilter from './Ico...
src/components/AddTask.js
saitodisse/task-cerebral
import React from 'react'; import {Decorator as Cerebral} from 'cerebral-react'; @Cerebral({ isSaving: ['isSaving'], newTaskTitle: ['newTaskTitle'] }) class AddTask extends React.Component { addTask(event) { event.preventDefault(); if(this.props.newTaskTitle.length === 0) { return; } this....
src/svg-icons/places/ac-unit.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesAcUnit = (props) => ( <SvgIcon {...props}> <path d="M22 11h-4.17l3.24-3.24-1.41-1.42L15 11h-2V9l4.66-4.66-1.42-1.41L13 6.17V2h-2v4.17L7.76 2.93 6.34 4.34 11 9v2H9L4.34 6.34 2.93 7.76 6.17 11H2v2h4.17l-3.2...
pootle/static/js/admin/general/staticpages.js
Yelp/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import LiveEditor from './comp...