path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/server.js
masterfung/Reactful-Flux-Store
/* * React.js Starter Kit * Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import _ from 'lodash'; import fs from 'fs'; import path from 'path'; import express from...
app/components/Footer/index.js
IntAlert/chatplayer
/** * * Footer * */ import React from 'react'; // import styled from 'styled-components'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; var style = { backgroundColor: "#F8F8F8", borderTop: "1px solid #E7E7E7", textAlign: "center", padding: "20px", position: "fi...
docs/src/app/components/pages/components/Card/ExampleWithoutAvatar.js
ruifortes/material-ui
import React from 'react'; import {Card, CardActions, CardHeader, CardText} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; const CardExampleWithoutAvatar = () => ( <Card> <CardHeader title="Without Avatar" subtitle="Subtitle" actAsExpander={true} showExpandableB...
themes/frontend/assets/vendor/node_modules/react-toolbox/components/input/Input.js
fonea/velon
import React from 'react'; import classnames from 'classnames'; import { themr } from 'react-css-themr'; import { INPUT } from '../identifiers.js'; import InjectedFontIcon from '../font_icon/FontIcon.js'; const factory = (FontIcon) => { class Input extends React.Component { static propTypes = { children: R...
src/components/TrackerOutput.js
KE-NIA/CircularitySolver
import React from 'react'; export default class TrackerOutput extends React.Component{ constructor(props){ super(props); } render(){ return( <div id="output_area"/> ); } }
src/js/components/cart/app-cart-item.js
SteveHoggNZ/react-flux-shopping-cart
import React from 'react'; import CartButton from './app-cart-button'; import AppActions from '../../actions/app-actions'; export default (props) => { return ( <tr> <td> <CartButton txt="x" handler={ AppActions.removeItem.bind(null, props.item) } /> </td> <td...
src/demos/building-a-geospatial-app/2-scatterplot-overlay/src/index.js
uber-common/vis-academy
import React from 'react'; import ReactDOM from 'react-dom'; import App from './app'; ReactDOM.render(<App />, document.getElementById('app')); module.hot.accept();
src/svg-icons/editor/format-bold.js
igorbt/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...
app/index.js
timothyvanderaerden/React-TMDb
/* -- Core -- */ import React from 'react'; import { render } from 'react-dom'; import configureStore from './store/configureStore'; import { AppContainer } from 'react-hot-loader'; import { syncHistoryWithStore } from 'react-router-redux'; import { createBrowserHistory } from 'history'; import injectTapEventPlugin fro...
docs/app/Examples/collections/Menu/Content/MenuExampleButtons.js
aabustamante/Semantic-UI-React
import React from 'react' import { Button, Menu } from 'semantic-ui-react' const MenuExampleButtons = () => { return ( <Menu> <Menu.Item> <Button primary>Sign up</Button> </Menu.Item> <Menu.Item> <Button>Log-in</Button> </Menu.Item> </Menu> ) } export default MenuE...
admin/src/layout-components/ExampleWrapperSeamless/index.js
servinglynk/servinglynk-hmis
import React, { Component } from 'react'; export default class ExampleWrapperSeamless extends Component { render() { return ( <div className="example-card-seamless mb-5"> <h5 className="display-4 mb-4 font-weight-bold"> {this.props.sectionHeading} </h5> {this.props.childre...
internals/templates/containers/HomePage/index.js
andyzeli/Bil
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
src/__tests__/fixtures/component_18.js
reactjs/react-docgen
import React from 'react'; import PropTypes from 'prop-types'; import extendStyles from 'enhancers/extendStyles'; type Props = $ReadOnly<{| color?: ?string, |}>; const ColoredView = React.forwardRef((props: Props, ref) => ( <div ref={ref} style={{backgroundColor: props.color}} /> )); ColoredView.displayName = '...
client/components/basic/Logo.stories.js
iiet/iiet-chat
import React from 'react'; import Logo from './Logo'; export default { title: 'components/basic/Logo', component: Logo, }; export const AsPlaceholder = () => <Logo />;
src/js/components/icons/base/Trash.js
odedre/grommet-final
/** * @description Trash SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @prop...
src/Book.js
ehjay/bookworm-frontend
import React, { Component } from 'react'; import axios from 'axios'; import './Book.css'; class Book extends Component { constructor(props) { super(props); this.loadBooks = props.loadBooks; } deleteBook(id) { axios.delete(`http://localhost:8080/book/${id}`) .then(() => { this.loadBooks(...
src/shared/components/NotificationIcon.js
devteamreims/4me.react
import React from 'react'; import Badge from 'material-ui/Badge'; import { info, warning, critical, } from '../theme/colors'; const badgeStyles = { info: { backgroundColor: info, fontWeight: 'bold', }, warning: { backgroundColor: warning, fontWeight: 'bolder', }, critical: { backg...
client/src/components/ViewCampaign/SignCampaign/SignatureCheckbox.js
codefordenver/Circular
import React from 'react'; import PropTypes from 'prop-types'; import { FormGroup } from 'react-bootstrap'; const SignatureCheckbox = ({ className, keepMeUpdated, keepMeUpdatedLabel, toggleKeepMeUpdatedCheckbox }) => ( <FormGroup key={keepMeUpdatedLabel} className="text-center"> <h4> <div className...
src/routes/main/account/Account.js
labzero/lunch
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import Button from 'react-bootstrap/lib/Button'; import Col from 'react-bootstrap/lib/Col'; import ControlLabel from 'react-bootstrap/lib/ControlLabel'; import FormControl from ...
src/components/GlobalNavBar.js
IUnknown68/karma-live-reporter
import React, { Component } from 'react'; import classNames from 'classnames'; import attachListener from 'attachListener'; import { DOC_CLICK } from 'ui-messages'; import {get, set} from 'LocalSettings'; import {DDCheckbox, A, Icon} from 'components/Html'; export default class GlobalNavBar extends Component { stati...
src/svg-icons/av/fast-rewind.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFastRewind = (props) => ( <SvgIcon {...props}> <path d="M11 18V6l-8.5 6 8.5 6zm.5-6l8.5 6V6l-8.5 6z"/> </SvgIcon> ); AvFastRewind = pure(AvFastRewind); AvFastRewind.displayName = 'AvFastRewind'; AvFastRewin...
src/Components/DatePicker/TimeView.js
sqhtiamo/zaro
import React from 'react'; import createClass from 'create-react-class'; import assign from 'object-assign'; import onClickOutside from 'react-onclickoutside'; /* eslint-disable */ const DOM = React.DOM; const DateTimePickerTime = onClickOutside(createClass({ getInitialState() { return this.calculateState(this.p...
js/components/layout/customRow.js
ChiragHindocha/stay_fit
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Button, Icon, Left, Right, Body } from 'native-base'; import { Grid, Row } from 'react-native-easy-grid'; import { Actions } from 'react-n...
src/components/Footer.js
cape-io/acf-client
import React from 'react' function Footer() { return ( <footer id="footer" className="sticky"> <div className="copyright"> <div className="container"> <ul className="pull-right nomargin list-inline mobile-block"> <li><a href="https://composersforum.org/terms-service">Terms &am...
src/svg-icons/image/looks-one.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooksOne = (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-2zm-5 14h-2V9h-2V7h4v10z"/> </SvgIcon> ); ImageLooksOne = pure(ImageLooksOn...
examples/MediaBox.js
jareth/react-materialize
import React from 'react'; import MediaBox from '../src/MediaBox'; export default <MediaBox src="assets/sample-1.jpg" caption="A demo media box1" width="650"/>;
components/Run.js
Haroenv/monumentrun
// @flow import React, { Component } from 'react'; import { MapView } from 'expo'; import type { StyleObj } from 'react-native/Libraries/StyleSheet/StyleSheetTypes'; import { customMapStyle } from '../helpers/map'; import { isNear } from '../helpers/location'; import type { LatLng } from '../helpers/location'; import...
src/scenes/home/scholarshipApplication/success/success.js
sethbergman/operationcode_frontend
import React from 'react'; import { Link } from 'react-router-dom'; import Section from 'shared/components/section/section'; import FormButton from 'shared/components/form/formButton/formButton'; import styles from './success.css'; const Success = () => ( <Section title="Success!" theme="white"> <span className=...
src/svg-icons/maps/local-parking.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalParking = (props) => ( <SvgIcon {...props}> <path d="M13 3H6v18h4v-6h3c3.31 0 6-2.69 6-6s-2.69-6-6-6zm.2 8H10V7h3.2c1.1 0 2 .9 2 2s-.9 2-2 2z"/> </SvgIcon> ); MapsLocalParking = pure(MapsLocalParking...
src/svg-icons/action/home.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHome = (props) => ( <SvgIcon {...props}> <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/> </SvgIcon> ); ActionHome = pure(ActionHome); ActionHome.displayName = 'ActionHome'; ActionHome.muiName = 'SvgIcon...
src/Col.js
snadn/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import styleMaps from './styleMaps'; import CustomPropTypes from './utils/CustomPropTypes'; const Col = React.createClass({ propTypes: { /** * The number of columns you wish to span * * for Extra small devices Phones (<768px) * ...
dash/dash-renderer/src/AccessDenied.react.js
plotly/dash
import React from 'react'; import {mergeRight, once} from 'ramda'; import PropTypes from 'prop-types'; import * as styles from './styles/styles.js'; import * as constants from './constants/constants.js'; /* eslint-disable-next-line no-console */ const logWarningOnce = once(console.warn); function AccessDenied(props) ...
frontend/src/lib/AutoCompleteComponent.js
GAumala/Facturacion
import React from 'react'; import AutoComplete from 'material-ui/AutoComplete'; /** * Componente para AutoComplete. Cada vez que el usario escribe en el TextField, * se hace un query al servidor para tratar de completar lo que ingreso el usuario * * El metod asincrono para hacer el query tiene que ser provisto con el...
app/javascript/mastodon/features/public_timeline/components/column_settings.js
Ryanaka/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage } from 'react-intl'; import SettingToggle from '../../notifications/components/setting_toggle'; export default @injectIntl class ColumnSettings extends React....
src/components/Tabs/StaticContainer.js
lebra/lebra-components
import React from 'react'; import PropTypes from 'prop-types'; const propTypes = { shouldUpdate:PropTypes.bool } const defaultProps = { shouldUpdate: true } export class StaticContainer extends React.Component{ shouldComponentUpdate(nextProps){ return !!nextProps.shouldUpdate; } render() { const ...
views/components/FormInputUi.js
gvaldambrini/madam
import React from 'react'; // A form input presentational component. export default React.createClass({ propTypes: { handleChange: React.PropTypes.func.isRequired, handleSubmit: React.PropTypes.func, name: React.PropTypes.string.isRequired, label: React.PropTypes.string.isRequired, value: React....
app/javascript/mastodon/features/lists/components/new_list_form.js
Ryanaka/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { changeListEditorTitle, submitListEditor } from '../../../actions/lists'; import IconButton from '../../../components/icon_button'; import { defineMessages, injectIntl } from 'react-intl'; const messages = def...
fluent-react/test/localized_change_test.js
zbraniecki/fluent.js
import React from 'react'; import assert from 'assert'; import { shallow } from 'enzyme'; import { FluentBundle, FluentResource } from '../../fluent-bundle/src'; import ReactLocalization from '../src/localization'; import { Localized } from '../src/index'; suite('Localized - change bundles', function() { test('reloc...
packages/react-native-renderer/src/ReactNativeComponent.js
rickbeerendonk/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow * @format */ import type { MeasureInWindowOnSuccessCallback, MeasureLayoutOnSuccessCallback, MeasureOnSuccessCallb...
assets/careeropportunity/components/Job.js
dotKom/onlineweb4
import React from 'react'; import { Col } from 'react-bootstrap'; import { Link } from 'react-router-dom'; import jobPropTypes from '../propTypes/job'; // Accepts a list of locations and returns a comma-separated list of locations // with 'og' inserted before the last element, and 'Ikke spesifisert' if no // locations...
src/components/base/Header.js
GHImplementationTeam/FrontEnd
import AppBar from 'material-ui/AppBar'; import IconButton from 'material-ui/IconButton'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import {white} from 'material-ui/styles/colors'; import Menu from 'material-ui/svg-icons/navigation/menu'; import MoreVertIcon from 'materia...
src/containers/AppContainer.js
benkeen/invoice-editor
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { browserHistory, Router } from 'react-router'; import { Provider } from 'react-redux'; class AppContainer extends Component { static propTypes = { routes: PropTypes.object.isRequired, store: PropTypes.object.isRequired };...
src/components/MusicPlayer/SongDetails.js
TonCoder/react-music-player
import React from 'react'; export default function SongDetails(props){ return( <div className="col-xs-12"> <div className="card-text"> <span className="songPlayingTitle">{props.songPlayingName || "No song playing"}</span> <br/> <span className="ar...
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/NavbarHeader.js
Akkuma/npm-cache-benchmark
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/App.js
ImpactON/impacton
import React, { Component } from 'react'; import './style/agency.less'; import './style/variables.less'; import './style/mixins.less'; import 'font-awesome-webpack'; import NavBarComponent from './Components/NavBar' import Video from './Components/Video' import Description from './Components/Description' import Desafi...
src/js/components/Accordion/stories/Multiple.js
grommet/grommet
import React from 'react'; import { Accordion, AccordionPanel, Box } from 'grommet'; export const Multiple = () => ( // Uncomment <Grommet> lines when using outside of storybook // <Grommet theme={...}> <Box> <Accordion multiple> <AccordionPanel label="Panel 1"> <Box background="light-2" overf...
client/src/app/routes/forms/components/bootstrap-validation/TogglingForm.js
zraees/sms-project
import React from 'react' import BootstrapValidator from '../../../../components/forms/validation/BootstrapValidator' const validatorOptions = { feedbackIcons: { valid: 'glyphicon glyphicon-ok', invalid: 'glyphicon glyphicon-remove', validating: 'glyphicon glyphicon-refresh' }, fields: { firstNa...
tools/testData.js
stowball/react-accessible-tabs
import React from 'react'; const data = [ { label: 'Tab 1', content: <p>Tab 1 content</p> }, { label: 'Tab 2', content: '<p>Tab 2 content</p>' }, { label: 'Tab 3', content: [ <p>Tab 3 content 1</p>, '<p>Tab 3 content 2</p>' ...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/react-router-dom/es/HashRouter.js
bhathiya/test
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 &...
app/addons/fauxton/notifications/reducers.js
apache/couchdb-fauxton
// Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
client/src/components/Payments.js
IonutMorariu/feedback-system
import React, { Component } from 'react'; import StripeCheckout from 'react-stripe-checkout'; import StripeImage from '../stripe-image.png'; import { connect } from 'react-redux'; import * as actions from '../actions'; class Payments extends Component { render() { return ( <StripeCheckout image={St...
example/index.ios-ajax.js
olofd/react-native-photos-framework
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Image } from 'react-native'; import RNPhotosFramework from './react-native-photos-framework'; import {postAsset, postAssets} from './react-nati...
examples/counter/containers/CounterApp.js
quangbuule/redux
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'redux/react'; import Counter from '../components/Counter'; import * as CounterActions from '../actions/CounterActions'; @connect(state => ({ counter: state.counter })) export default class CounterApp { render() { co...
src/svg-icons/av/library-music.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvLibraryMusic = (props) => ( <SvgIcon {...props}> <path d="M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 5h-3v5.5c0 1.38-1.12 2.5-2.5 2.5S10 13.88 10 12.5s1.12-2.5 2.5-2.5c.57...
src/views/ClientDashboard/ClientDashboard.js
NathanLewis/surefair
import React, { Component } from 'react'; import ClientPositions from './ClientPositions'; import ClientQuotes from './ClientQuotes'; import BuyPolicy from '../../Components/BuyPolicy/'; class ClientDashboard extends Component { render() { return ( < div className = "animated fadeIn" > ...
client/modules/comments/components/.stories/comment_list.js
kjetilge/mantra-material-ui-kickstarter
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import CommentList from '../comment_list'; storiesOf('comments.CommentList', module) .add('no comments', () => { return ( <CommentList comments={[]}/> ); }) .add('with comments', () => { const comments = [ {...
src/modules/Components/Form/FormItem.js
rtellez700/MESA_Connect_2.0
import React from 'react'; class FormItem extends React.Component { render() { return ( <div className="FormItem"> <label htmlFor={this.props.itemId}>{this.props.title}</label> <input type="text" className="form-control input-lg" id={this.props.itemId} placeholder={this.props.placeholder} /> <...
hello world/1.5 - refs/src/js/index.js
wumouren/react-demo
import React from 'react'; import ReactDom from 'react-dom'; import Header from '../components/header'; import Main from '../components/main'; import Footer from '../components/footer'; import Binding from '../components/binding' // 双向数据绑定 class Index extends React.Component { constructor() { super(); ...
app/components/card-deck.js
mattgrannary/wd-monitor
import React from 'react'; import PieChart from './pie-chart'; import Uptime from './uptime'; export default class CardDeck extends React.Component { render() { return ( <div className='row'> <div className='card-deck-wrapper col-xs-12'> <div className='card-deck'> <PieChart...
src/component/station/searchBar.js
simors/yjbAdmin
/** * Created by lilu on 2017/9/19. */ import React from 'react' import {connect} from 'react-redux' import {withRouter} from 'react-router-dom' import {Button} from 'antd' export default class searchBar extends React.Component { constructor(props) { super(props) } render() { return ( <div ...
frontend/src/index.js
linea-it/qlf
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; require('dotenv').config(); ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
app/app/common/components/snackbar.js
inquisive/simpledocs
import React from 'react'; import Snackbar from 'material-ui/lib/snackbar'; import TextField from 'material-ui/lib/text-field'; import RaisedButton from 'material-ui/lib/raised-button'; import debugging from 'debug'; let debug = debugging('epg:app:common:components:snackbar'); class SnackbarExampleSimple extends React...
src/components/language-selector/language-modal/LanguageModal.js
ipfs/webui
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'redux-bundler-react' import i18n, { localesList } from '../../../i18n' // Components import { Modal, ModalBody, ModalActions } from '../../modal/Modal' import SpeakerIcon from '../../../icons/StrokeSpeaker' import Button from '../../...
src-client/modules/workspace/containers/SaveDefaultModelModal/index.js
ipselon/structor
/* * Copyright 2017 Alexander Pustovalov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
app/components/Body/body.js
mitchbox/react-seed
'use strict'; import './_body.scss'; import React from 'react'; class Body extends React.Component { renderItem(item) { return ( <li key={item.id}>{item.label}</li> ); } render() { return ( <div className="body jumbotron"> <div className="panel-body"> <h1>React Seed</...
client/src/Assistant/SectionPicture.js
ciex/mietlimbo
// @flow import React from 'react' import Coins from '../Graphics/Coins.png' import Contract from '../Graphics/Contract.png' import Legal from '../Graphics/Legal.png' import Bath from '../Graphics/Bath.png' import Kitchen from '../Graphics/Kitchen.png' import Apartment from '../Graphics/Apartment.png' import Building...
examples/js/column-filter/text-filter.js
rolandsusans/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
src/index.js
hzdg/react-imageloader
import React from 'react'; import PropTypes from 'prop-types'; const Status = { PENDING: 'pending', LOADING: 'loading', LOADED: 'loaded', FAILED: 'failed', }; export default class ImageLoader extends React.Component { static propTypes = { wrapper: PropTypes.func, className: PropTypes.string, st...
src/component/userdialog.js
ftmatsumoto/crss
import React, { Component } from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; /* * Dialog with action buttons. The actions are passed in as an array of React objects, * in this example [FlatButtons](/#/components/flat-button). * * You can also close this dialog...
frontend/src/Artist/Index/Menus/ArtistIndexViewMenu.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React from 'react'; import MenuContent from 'Components/Menu/MenuContent'; import ViewMenu from 'Components/Menu/ViewMenu'; import ViewMenuItem from 'Components/Menu/ViewMenuItem'; import { align } from 'Helpers/Props'; function ArtistIndexViewMenu(props) { const { view...
frontend/src/App.js
jirkae/BeerCheese
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import './App.css'; import { createRoutes } from './createRoutes'; class App extends Component { render() { const { store } = this.props; const routes = createRoutes(store)...
fields/types/numberarray/NumberArrayFilter.js
jstockwin/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import { FormField, FormInput, FormRow, FormSelect } from 'elemental'; const MODE_OPTIONS = [ { label: 'Exactly', value: 'equals' }, { label: 'Greater Than', value: 'gt' }, { label: 'Less Than', value: 'lt' }, { label: 'Between', value: 'between'...
app/components/Work/BriefSection/index.js
yasserhennawi/yasserhennawi
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'utils/styled-components'; import WorkSection from '../WorkSection'; const Paragraph = styled.p` margin-bottom: 5px; `; const ParagraphsWrapper = styled.div` display: flex; flex-direction: column; & > p:last-child { margin-bo...
src/routes.js
koliatest/shop
import React from 'react'; import {IndexRoute, Route, BrowserHistory} from 'react-router'; import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth'; import { App, Home, About, Login, Signup, LoginSuccess, NotFound, Profile, Cart, Checkout, Orders, V...
docs/src/pages/CardsPage.js
mattBlackDesign/react-materialize
import React from 'react'; import Row from 'Row'; import Col from 'Col'; import ReactPlayground from './ReactPlayground'; import PropTable from './PropTable'; import Samples from './Samples'; import CardCode from '!raw-loader!Card'; import imageCard from '../../../examples/CardImage'; import revealCard from '../../../...
dungeon-maker/src/components/EntityForm.js
sgottreu/dungeoneering
import React, { Component } from 'react'; import {Variables} from '../lib/Variables'; import {Powers} from '../lib/Powers'; import * as Entity from '../lib/Entity'; import * as entitiesApi from '../api/entities-api'; import PowersForm from './PowersForm'; import SortByKey from '../lib/SortByKey'; import EntityChooser ...
node_modules/react-error-overlay/lib/components/CloseButton.js
oiricaud/horizon-education
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import Rea...
src/svg-icons/av/add-to-queue.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvAddToQueue = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-7v2h-3v3h-2v-3H8v-2h3V7h2v3h3z"/> ...
src/class/history-sync/ViewingActivityApp.js
tegon/traktflix
import 'material-design-lite'; import React from 'react'; import BrowserStorage from '../BrowserStorage'; import NetflixApiUtils from '../NetflixApiUtils'; import Select from '../Select'; import TmdbImageContainer from '../tmdb/TmdbImageContainer'; import ActivityList from './ActivityList'; import ActivityStore from '....
src/components/Home/Live/Views/Mobile/tpl.js
HopeUA/tv.hope.ua-react
/** * [IL] * Library Import */ import React from 'react'; /** * [IS] * Style Import */ import Styles from './Styles/main.scss'; /** * [IA] * Assets Import */ import PlaySmall from 'components/Assets/Icons/PlaySmall'; import Palette from 'components/Assets/Palette'; function Mobile() { return ( <...
pages/fractal_subdivision.js
mvasilkov/mvasilkov.ovh
import React from 'react' import Article from '../app/article' import Canvas from '../app/canvas' import * as shapes from '../programs/basic/imprecise_shapes' export const pagePath = 'fractal_subdivision' export const pageTitle = 'Fractal subdivision' export default class extends React.Component { constructor(pr...
frontend/src/App.js
b00lduck/raspberry_soundboard
import React, { Component } from 'react'; import './App.css'; import SoundTabs from './SoundTabs.js'; class App extends Component { render() { return ( <div className="App"> <SoundTabs /> </div> ); } } export default App;
src/molecules/MobileMenu/index.js
policygenius/athenaeum
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import Icon from 'atoms/Icon'; import Text from 'atoms/Text'; import styles from './mobile_menu.module.scss'; function MobileMenu(props) { const { className, tabs, onClick, } = props; const classes = ...
tests/lib/rules/vars-on-top.js
gcochard/eslint
/** * @fileoverview Tests for vars-on-top rule. * @author Danny Fritz * @author Gyandeep Singh * @copyright 2014 Danny Fritz. All rights reserved. * @copyright 2014 Gyandeep Singh. All rights reserved. */ "use strict"; //------------------------------------------------------------------------------ // Requiremen...
app/components/overall_results.js
blehr/pinewoodRaceDay
import React from 'react'; import OverallResultsContainer from '../containers/overall_results_container'; export default () => { return ( <div className="row pageContentHeight"> <div className="col-sm-12"> <OverallResultsContainer /> </div> </div> ); };
src/Parser/Hunter/Marksmanship/Modules/Abilities.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Wrapper from 'common/Wrapper'; import ITEMS from 'common/ITEMS'; import CoreAbilities from 'Parser/Core/Modules/Abilities'; class Abilities extends CoreAbilities { spellbook() { return [ { ...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Create/FormComponents/Select.js
lakmali/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
views/components/Resume/resume_cn.js
KochiyaOcean/www.kochiyaocean.org
import React from 'react' export default [ { title: '履历', contents: [ { title: '学士 @ 复旦大学', subtitle: 'Sep 2013 - Jul 2017', contents: '信息科学与工程学院 通信工程', }, { title: '软件工程师 (实习) @ 微软上海', subtitle: 'Jul 2016 - Sep 2016', contents: '用于分析日志并通过 Pow...
packages/icons/src/md/image/ExposurePlus1.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdExposurePlus1(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M20 15h-4v8H8v4h8v8h4v-8h8v-4h-8v-8zm20 22h-4V15.75l-6 2.05v-3.4l9.4-3.4h.6v26z" /> </IconBase> ); } export default MdExposurePlus1;
examples/ChartsExplorer/components/Line.js
Jpadilla1/react-native-ios-charts
import React, { Component } from 'react'; import { StyleSheet } from 'react-native'; import { LineChart } from 'react-native-ios-charts'; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'stretch', backgroundColor: 'transparent' } }); export default ...
src/App.js
redian/weather-mate
import React, { Component } from 'react'; import Header from './components/Header'; import Loader from './components/Loader'; import SearchForm from './components/SearchForm'; import DaysTable from './components/DaysTable'; import './App.css'; class App extends Component { constructor() { super(); this.stat...
src/svg-icons/maps/directions-subway.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsSubway = (props) => ( <SvgIcon {...props}> <path d="M12 2c-4.42 0-8 .5-8 4v9.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h12v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V6c0-3.5-3.58-4-8-4zM7.5 17c-.83 0-1.5-.67-1.5...
packages/mineral-ui-icons/src/IconHighlight.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 IconHighlight(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProp...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/StateInferred.js
samwgoldman/flow
// @flow import React from 'react'; class MyComponent extends React.Component { props: Props; state = {}; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component { props: Props; state = {}; defaul...
packages/wix-style-react/src/DragAndDrop/docs/Styles/examples/List.js
wix/wix-style-react
import React from 'react'; import { dndStyles } from 'wix-style-react'; export default () => ( <div className={dndStyles.list}> <div>a simple item</div> <div>a simple item</div> </div> );
shared/components/SubComponents/Question/Radio.js
KCPSoftware/KCPS-React-Starterkit
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { saveQuestion } from '../../../actions/questionActions'; import Validation from '../../../utils/validation/Validation'; import InputValidation from '../../../utils/validation/InputValidation'; import { TooltipTrigger } from 'pui-re...
app/javascript/mastodon/features/ui/components/column_subheading.js
esetomo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const ColumnSubheading = ({ text }) => { return ( <div className='column-subheading'> {text} </div> ); }; ColumnSubheading.propTypes = { text: PropTypes.string.isRequired, }; export default ColumnSubheading;
modules/RouteUtils.js
upraised/react-router
import React from 'react' import warning from 'warning' function isValidChild(object) { return object == null || React.isValidElement(object) } export function isReactChildren(object) { return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild)) } function checkPropTypes(componentName, p...
src/explorer/Search/Results/Row.js
neontribe/gbptm
import React from 'react'; import uniq from 'lodash/uniq'; import TableRow from '@material-ui/core/TableRow'; import TableCell from '@material-ui/core/TableCell'; import { Link } from 'react-router-dom'; import Chip from '@material-ui/core/Chip'; import Avatar from '@material-ui/core/Avatar'; import PeopleIcon from '@...
src/svg-icons/action/payment.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPayment = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"/> </SvgIcon> ); ActionPay...