path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/encoded/static/components/item-pages/components/ItemHeader.js
4dn-dcic/fourfront
'use strict'; import React from 'react'; import _ from 'underscore'; import url from 'url'; import queryString from 'query-string'; import { console, object, schemaTransforms, memoizedUrlParse } from '@hms-dbmi-bgm/shared-portal-components/es/components/util'; import { LocalizedTime } from '@hms-dbmi-bgm/shared-porta...
src/app/App.js
petersn-github/azeroth
import React from 'react'; import axios from 'axios'; import './App.css'; // es6 的类和继承是语法糖,js的继承还是基于原型的继承 // 统一 js 驼峰命名方式 class App extends React.Component { constructor(props) { super(props); this.state = { docs:[] // 查询结果 }; this.handleKeyDown = this.handleKeyDown.bind(this); } handl...
modules/TransitionHook.js
darul75/react-router
import React from 'react'; import warning from 'warning'; var { object } = React.PropTypes; var TransitionHook = { contextTypes: { router: object.isRequired }, componentDidMount() { warning( typeof this.routerWillLeave === 'function', 'Components that mixin TransitionHook should have a rou...
docs/src/pages/components/avatars/IconAvatars.js
lgollut/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import { green, pink } from '@material-ui/core/colors'; import Avatar from '@material-ui/core/Avatar'; import FolderIcon from '@material-ui/icons/Folder'; import PageviewIcon from '@material-ui/icons/Pageview'; import AssignmentIcon from ...
src/components/Resume.js
slkjse9/slkjse9.github.io
import React from 'react'; class Resume extends React.Component { render() { return ( <div className="content-resume"> <h2>This is Resume.</h2> </div> ); } } export default Resume;
tests/react/createElementRequiredProp_string.js
AgentME/flow
// @flow import React from 'react'; class Bar extends React.Component<{test: number}> { render() { return ( <div> {this.props.test} </div> ) } } class Foo extends React.Component<{}> { render() { const Cmp = Math.random() < 0.5 ? 'div' : Bar; return (<Cmp/>); } }
lib/src/detailcard.js
SerendpityZOEY/Solr-Search-React-UI
/** * Created by yue on 2/9/17. */ import React from 'react'; import {List, ListItem, NestedList} from 'material-ui/List'; import {BarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend} from 'recharts'; import FlatButton from 'material-ui/FlatButton'; import FontIcon from 'material-ui/FontIcon'; import Lines fr...
src/components/VideoPlayer/Videojs/Info.js
matmoi/react-adaptive-streaming
import React from 'react' import PropTypes from 'prop-types' import JSONTree from 'react-json-tree' import videojs from 'video.js' import { OverlayTrigger, Button, Popover, ButtonGroup } from 'react-bootstrap' export default class VideojsInfo extends React.Component { render() { const { player, playerread...
src/Well.js
deerawan/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Well = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'well' }; }, render() { let classes = this.getBsClassSet(); return ( <di...
src/components/ValidatedInput.js
ericyd/surfplotjs
/** * ValidatedInput provides a controlled input element that is validated * against a validator prop before calling the handleChange prop. * * This pattern is used for inputs which must meet certain criteria before * their values are passed up the state chain and shared with sibling components. * * They are rel...
src/MusicPlayer.js
alickzhang/react-responsive-music-player
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Progress from './components/Progress'; import './MusicPlayer.scss'; const formatTime = time => { /* eslint no-restricted-globals: off */ if (isNaN(time) || time === 0) { return ''; } co...
docs/app/Examples/elements/Button/GroupVariations/ButtonGroupOrSizeExample.js
jcarbo/stardust
import React from 'react' import { Button } from 'stardust' const ButtonGroupOrSizeExample = () => ( <Button.Group size='large'> <Button>One</Button> <Button.Or /> <Button>Three</Button> </Button.Group> ) export default ButtonGroupOrSizeExample
docs/app/Examples/elements/Header/Content/HeaderExampleImage.js
shengnian/shengnian-ui-react
import React from 'react' import { Header, Image } from 'shengnian-ui-react' const HeaderExampleImage = () => ( <Header as='h2'> <Image circular src='/assets/images/avatar/large/patrick.png' /> {' '}Patrick </Header> ) export default HeaderExampleImage
project/vip/frontend/src/components/head/index.js
webLeeSun/webleesun.github.io
import React, { Component } from 'react'; import './index.less'; import ev from '../../ev'; class head extends Component { static propTypes = { }; constructor(props) { super(props); } render() { return ( <div id="head"> <a className="logo" href="https://m.panda.tv"> <img src="https://i....
React_Router_tutorial/index.js
luongthomas/React-Portfolio
import React from 'react'; import { render } from 'react-dom'; import { Router, Route, browserHistory, IndexRoute } from 'react-router'; // import routes and pass them into <Router /> import routes from './modules/routes'; render(( <Router routes={routes} history={browserHistory} /> ), document.getElementById('app...
src/components/App.js
airtame/gooey
import React from 'react'; import '../scss/main.scss'; import ButtonDemo from './demos/Button'; import CheckboxDemo from './demos/Checkbox'; import CollapserDemo from './demos/Collapser'; import ModalDemo from './demos/Modal'; import DialogDemo from './demos/Dialog'; import RadioGroupDemo from './demos/RadioGroup'; im...
src/svg-icons/social/cake.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialCake = (props) => ( <SvgIcon {...props}> <path d="M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2zm4.6 9.99l-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l...
app/components/shared/RevealButton.js
buildkite/frontend
import React from 'react'; import PropTypes from 'prop-types'; import Button from './Button'; class RevealButton extends React.Component { static propTypes = { caption: PropTypes.node, children: PropTypes.node }; static defaultProps = { caption: 'Reveal' }; state = { revealed: false }; ...
app/containers/Dashboard/index.js
monkeyzealer/Andrew-Duesler
/* * * Dashboard * */ import React from 'react'; import Helmet from 'react-helmet'; import {Link} from 'react-router'; import TextField from 'material-ui/TextField'; import {orange500, blue500, brown500, brown900, brown700,} from 'material-ui/styles/colors'; import Responsive from 'react-responsive'; impor...
server/sonar-web/src/main/js/main/nav/global/global-nav-user.js
joansmith/sonarqube
/* * 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/Modals/ModalTemplate.js
klpdotorg/tada-frontend
import React from 'react'; import PropTypes from 'prop-types'; import Modal from 'react-modal'; import { modalStyle as customStyles } from '../../styles'; const ModalTemplate = (props) => { const { contentLabel, isOpen, onCloseModal, title, canSubmit, submitForm, cancelBtnLabel, subm...
src/parser/druid/balance/modules/talents/azeritetraits/HighNoon.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import { formatNumber, formatPercentage } from 'common/format'; import { calculateAzeriteEffects } from 'common/stats'; import HIT_TYPES from 'game/HIT_TYPES'; import Analyzer from 'parser/core/Analyzer'; import AzeritePowerStatistic from 'interface/statis...
mobile/src/app.js
sradevski/homeAutomate
import React, { Component } from 'react'; import { Provider} from 'react-redux'; import {createStore} from 'redux'; import rootReducer from './state/rootReducer'; import RootContainer from './rootContainer'; GLOBAL.XMLHttpRequest = GLOBAL.originalXMLHttpRequest || GLOBAL.XMLHttpRequest; function configApp() { //Thi...
packages/bonde-admin-canary/src/components/Form/FormGraphQL.js
ourcities/rebu-client
import React from 'react' import { Mutation } from 'react-apollo' import { Form, SubmissionError } from './' const FormGraphQL = ({ children, mutation, update, onSubmit, ...props }) => ( <Mutation mutation={mutation} update={update}> {(mutationFunc) => ( <Form onSubmit={(values) => { ...
chrome/app/inject/index.js
omega-prime/omega
import React from 'react'; window.addEventListener('load', () => { let injectDOM = document.createElement('div'); injectDOM.className = 'inject-react-example'; injectDOM.style.margin = '0 auto'; injectDOM.style.width = '1200px'; injectDOM.style.height = '800px'; document.body.appendChild(injectDOM); let...
src/index.js
low-ghost/react-rx-elm-architecture
import React from 'react'; import { render } from 'react-dom'; import StartApp, { composeUpdate } from './startApp'; import { logger, subLogger } from './middleware/logging'; import { init, update, View } from './RandomGifPair'; const composedUpdate = composeUpdate(logger, subLogger)(update); render( <StartApp ...
src/svg-icons/communication/contact-mail.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationContactMail = (props) => ( <SvgIcon {...props}> <path d="M21 8V7l-3 2-3-2v1l3 2 3-2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3...
jenkins-design-language/src/js/components/material-ui/svg-icons/hardware/toys.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const HardwareToys = (props) => ( <SvgIcon {...props}> <path d="M12 12c0-3 2.5-5.5 5.5-5.5S23 9 23 12H12zm0 0c0 3-2.5 5.5-5.5 5.5S1 15 1 12h11zm0 0c-3 0-5.5-2.5-5.5-5.5S9 1 12 1v11zm0 0c3 0 5.5 2.5 5.5 5.5S15 23 12 23V12z"/> </SvgIcon> ); Hardware...
node_modules/react-sparklines/__tests__/fixtures.js
aleksandrsmolin/react-redux-weather
// This file is auto-updated by ../bootstrap-tests.js import React from 'react'; import { Sparklines, SparklinesBars, SparklinesLine, SparklinesCurve, SparklinesNormalBand, SparklinesReferenceLine, SparklinesSpots } from '../src/Sparklines'; import { sampleData, sampleData100 } from './sampleData'; export default { ...
styletron-react/button.js
MicheleBertoli/css-in-js
import React from 'react'; import { render } from 'react-dom'; import { styled, StyletronProvider } from 'styletron-react'; import Styletron from 'styletron-client'; const Container = styled('div', { textAlign: 'center', }); const Button = styled('button', { backgroundColor: '#ff0000', width: '320px', padding...
react/features/video-quality/components/VideoQualitySlider.web.js
jitsi/jitsi-meet
// @flow import { withStyles } from '@material-ui/core/styles'; import clsx from 'clsx'; import React, { Component } from 'react'; import type { Dispatch } from 'redux'; import { createToolbarEvent, sendAnalytics } from '../../analytics'; import { setAudioOnly } from '../../base/audio-only'; import { translate } from ...
ui/header/index.js
DannyvanderJagt/portfolio
import React from 'react'; import Telescope from 'telescope'; import Config from '../../../portfolio.config'; import Button from '../button'; class Header extends Telescope.Component{ render(){ let image; if(this.props.image){ image = <img className='background-image' src={this.props.image}/> } ...
5.ParentChildComunication/app.js
hiren2728/ReactDemo
import React from 'react'; import ReactDom from 'react-dom'; import WelCome from './src/WelCome'; import Header from './src/Header'; class App extends React.Component { constructor(props){ super(props); this.state = { alertMsg : "" }; } render(){ return <div> ...
src/components/plural/index.js
aruberto/globalize-webpack-test
import React, { Component } from 'react'; import Globalize from 'globalize'; const basicPluralFormatter = Globalize.pluralGenerator(); const ordinalPluralFormatter = Globalize.pluralGenerator({ type: 'ordinal' }); export default class PluralPage extends Component { render() { return ( <div> <h3>Gl...
docs/app/Examples/collections/Form/States/FormExampleError.js
shengnian/shengnian-ui-react
import React from 'react' import { Button, Form, Message } from 'shengnian-ui-react' const FormExampleError = () => ( <Form error> <Form.Input label='Email' placeholder='joe@schmoe.com' /> <Message error header='Action Forbidden' content='You can only sign up for an account once with a give...
app/javascript/mastodon/containers/account_container.js
tri-star/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { makeGetAccount } from '../selectors'; import Account from '../components/account'; import { followAccount, unfollowAccount, blockAccount, unblockAccount, muteAc...
src/components/examples/exampleProgressBar.js
Jguardado/HiRproject
import React, { Component } from 'react'; class ProgressBar extends Component { constructor(props) { super(props); //the level of the completed bar is currently represent by this.state.completed. //this can be changed easily but sitting it to a prop value this.state = { completed: 0, col...
app/javascript/mastodon/features/getting_started/index.js
maa123/mastodon
import React from 'react'; import Column from '../ui/components/column'; import ColumnLink from '../ui/components/column_link'; import ColumnSubheading from '../ui/components/column_subheading'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import Prop...
MobileApp/node_modules/react-native/local-cli/templates/HelloNavigation/views/welcome/WelcomeText.ios.js
VowelWeb/CoinTradePros.com
'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; export default class WelcomeText extends Component { render() { return ( <View style={styles.container}> <Text style={styles.welcome}> Welcome to React Native! </...
src/public/js/components/Home/index.js
Natinux/ironsource-test
import React from 'react'; import { connect } from 'react-redux'; import Home from './presenter'; export default connect(null)(Home);
src/components/ShareModalButtons/index.js
iris-dni/iris-frontend
import React from 'react'; import styles from './share-modal-buttons.scss'; import ButtonLink from 'components/ButtonLink'; import ButtonIcon from 'components/ButtonIcon'; const ShareButtons = React.createClass({ render () { const { openPopup, buttons = [] } = this.props; return ( <ul className={styles...
src/parser/monk/windwalker/modules/spells/azeritetraits/IronFists.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import { calculateAzeriteEffects } from 'common/stats'; import { formatNumber, formatPercentage } from 'common/format'; import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox'; c...
src/svg-icons/device/airplanemode-active.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceAirplanemodeActive = (props) => ( <SvgIcon {...props}> <path d="M10.18 9"/><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/...
ui/src/screens/dashboard/index.js
indraneel/sustainability-dashboard
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import style from './dashboard-style.js'; import RaisedButton from 'material-ui/RaisedButton'; import LinearProgress from 'material-ui/LinearProgress'; import Divider from 'material-ui/Divider';...
products/mobile/index.android.js
MykolaGolubyev/whats-happening
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class mobile extends Component { render() { return ( <View style={styles.container}> <Text style={styles.welcome}> Welcome to React Native! </Text> ...
examples/counter/containers/CounterApp.js
mrblueblue/redux
import React, { Component } 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 extend...
src/server/common/routes/index.js
chrishelgert/mediathek
import path from 'path'; import React from 'react'; import {renderToStaticMarkup} from 'react-dom/server'; import {match, RouterContext} from 'react-router'; import {STATIC, UPLOAD, BUILD} from '../../config/folders'; import Page from '../components/Page'; import indexRoutes from '../../../shared/common/routes'; imp...
src/svg-icons/action/group-work.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionGroupWork = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM8 17.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5...
app/components/organization/AgentsCount.js
buildkite/frontend
import React from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay/classic'; import throttle from 'throttleit'; import { seconds } from 'metrick/duration'; import PusherStore from 'app/stores/PusherStore'; import CentrifugeStore from 'app/stores/CentrifugeStore'; import { formatNumber } fro...
src/js/Containers/EventsContainer.js
RoyalSix/Eagle-Connect
/** * @file This is the container for the actual component * This file should handle the business logic of the component * There should be no styling/css properties in this file * In this way we can have a separation of concerns handle * will allow for easier testing * {@link https://medium.com/@dan_abramov...
test/kitchensink/src/features/webpack/SassInclusion.js
egoist/poi
import React from 'react' import './assets/sass-styles.sass' export default () => <p id="feature-sass-inclusion">We love useless text.</p>
src/svg-icons/content/text-format.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentTextFormat = (props) => ( <SvgIcon {...props}> <path d="M5 17v2h14v-2H5zm4.5-4.2h5l.9 2.2h2.1L12.75 4h-1.5L6.5 15h2.1l.9-2.2zM12 5.98L13.87 11h-3.74L12 5.98z"/> </SvgIcon> ); ContentTextFormat = pure(C...
src/shared/components/form/formTextArea/formTextArea.js
OperationCode/operationcode_frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styles from './formTextArea.css'; class FormTextArea extends Component { state = { value: '' }; handleChange = (event) => { this.setState({ value: event.target.value }, () => { if (this.props.onChange) { t...
pootle/static/js/admin/components/Language/LanguageController.js
Finntack/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 Search from '../Search'...
stories/TopBarMenu.story.js
byte-foundry/prototypo
import React from 'react'; import {storiesOf} from '@storybook/react'; import LocalClient from '../app/scripts/stores/local-client.stores'; import LocalServer from '../app/scripts/stores/local-server.stores'; import {TopBarMenuRaw} from '../app/scripts/components/topbar/top-bar-menu.components'; import TopBarMenuItem ...
client/app/libs/testHelper.js
phosphene/react-on-rails-cherrypick
/* eslint-disable import/no-extraneous-dependencies */ import React from 'react'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai from 'chai'; import chaiImmutable from 'chai-immutable'; const doc = jsdom.jsdom('<!doctype html><html><body></body></html>'); const win = doc.defaul...
examples/react/src/App.js
ragingwind/firebase-hackernews
import React, { Component } from 'react'; import firebase from 'firebase' import hackernews from 'firebase-hackernews' import logo from './logo.svg'; import './App.css'; class App extends Component { constructor() { super(); this.state = { top: [] }; this.hnservice = hackernews.init(firebase)...
client/component/http-check/response.js
johngodley/redirection
/** * External dependencies */ import React from 'react'; import { useSelector } from 'react-redux'; import { translate as __ } from 'i18n-calypso'; import classnames from 'classnames'; /** * Internal dependencies */ import { Spinner } from 'wp-plugin-components'; import HttpDetails from './details'; import { STA...
docs/src/app/components/pages/components/AutoComplete/ExampleDataSources.js
w01fgang/material-ui
import React from 'react'; import AutoComplete from 'material-ui/AutoComplete'; import MenuItem from 'material-ui/MenuItem'; const dataSource1 = [ { text: 'text-value1', value: ( <MenuItem primaryText="text-value1" secondaryText="&#9786;" /> ), }, { text: 'text-value2'...
Ethereum-based-Roll4Win/node_modules/react-bootstrap/es/Nav.js
brett-harvey/Smart-Contracts
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose"; import classNames from 'classnames'; import all from 'prop-types-extra/lib/all'; import R...
app/components/SignUpPageComponent.js
cdillon85/the-art-store
import React from 'react' import RaisedButton from 'material-ui/RaisedButton' export default function SignUpPageComponent (props) { const nameHandleChange = props.nameHandleChange const emailHandleChange = props.emailHandleChange const passwordHandleChange = props.passwordHandleChange const confirmationPassChange ...
index.js
Yutenko/stories360
import "babel-polyfill" import injectTapEventPlugin from 'react-tap-event-plugin' import "./client/css/style.css" import "./node_modules/animate.css/animate.min.css" import "./node_modules/react-dropzone-component/styles/filepicker.css" import "./node_modules/dropzone/dist/min/dropzone.min.css" import "./node_module...
src/auth/Login/LoginView.js
elarasu/roverz-chat
/** * Login Screen */ import React, { Component } from 'react'; import { AsyncStorage, View, TouchableOpacity, KeyboardAvoidingView, StatusBar, Image, StyleSheet, ScrollView, Keyboard, } from 'react-native'; import FormValidation from 'tcomb-form-native'; import { Actions } from 'react-native-router...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestParameters.js
liamhu/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, { Component } from 'react'; import PropTypes from 'prop-types'; function load({ id = 0, ...rest }) { return [ { id:...
client/analytics/components/partials/filter/FilterItems.js
Haaarp/geo
import React from 'react'; import { connect } from 'react-redux'; import {RegionListId, ChartConfigutratorId, RoutesListId, TimeFrameId, WSHLFrameId, SwitchListId, AddNewFilterId, AnalysisTypeId, AxelXId, AxelYId} from './../../../constants/filterItemId'; import { ListGroup } from 'react-bootstrap'; import { ChartTyp...
examples/js/basic/scroll-table.js
prajapati-parth/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/svg-icons/maps/local-play.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalPlay = (props) => ( <SvgIcon {...props}> <path d="M20 12c0-1.1.9-2 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2zm-4....
client/src/components/App.js
dalazaca/proyecto2
import React, { Component } from 'react'; import Buscador from "./Buscador"; import BandasList from "./BandasList"; import ReactModal from 'react-modal'; import '../css/App.css'; class App extends Component { constructor(props) { super(props); this.state= { bandas:[ ], ...
packages/node_modules/@webex/react-component-add-file-button/src/index.js
ciscospark/react-ciscospark
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Icon, {ICONS} from '@webex/react-component-icon'; import styles from './styles.css'; const propTypes = { onChange: PropTypes.func }; const defaultProps = { onChange: () => {} }; function AddFileButton(prop...
examples/query-params/app.js
yongxu/react-router
import React from 'react'; import { Router, Route, Link } from 'react-router'; var User = React.createClass({ render() { var { query } = this.props.location; var age = query && query.showAge ? '33' : ''; var { userID } = this.props.params; return ( <div className="User"> <h1>User id: {u...
src/Enigma/UI/Component/PlugBoard/NewPlugBoardWiring.js
minkiele/EnigmaUI
import React from 'react'; import {getLetter, getIndex, normalizeInput} from 'enigma-minkiele/dist/Utils'; import EventEmitter from 'events'; import Col from 'react-bootstrap/lib/Col'; import Row from 'react-bootstrap/lib/Row'; import Button from 'react-bootstrap/lib/Button'; import FormGroup from 'react-bootstrap/lib/...
app/javascript/mastodon/containers/status_container.js
NS-Kazuki/mastodon
import React from 'react'; import { connect } from 'react-redux'; import Status from '../components/status'; import { makeGetStatus } from '../selectors'; import { replyCompose, mentionCompose, directCompose, } from '../actions/compose'; import { reblog, favourite, unreblog, unfavourite, pin, unpin, }...
src/icons/SyncIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class SyncIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M24 8V2l-8 8 8 8v-6c6.63 0 12 5.37 12 12 0 2.03-.51 3.93-1.39 5.61l2.92 2.92C39.08 30.05 40 27.14 40 24c0-8.8...
fields/types/url/UrlColumn.js
vokal/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var UrlColumn = React.createClass({ displayName: 'UrlColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue () { va...
client/ssr/ssr.js
Canner/coren
import React from 'react'; import hoistStatic from 'hoist-non-react-statics'; import shortid from 'shortid'; import hook from '../../shared/ssrHook'; export default WrappedComponent => { const corenID = shortid.generate(); class Hoc extends React.Component { constructor(props) { super(props); hook....
src/svg-icons/action/description.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDescription = (props) => ( <SvgIcon {...props}> <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"/> </SvgIcon> ); A...
src/components/categories_icons.js
tomfloresa/Furni
import React, { Component } from 'react'; import ProductIcon from './product_icon'; class CategoriesIcons extends Component { render() { return ( <div className="container mar-top-100"> <div className="row"> <div className="col-md-3"> <ProductIcon source={"img/icons/table.svg"...
shared/components/HTML/index.js
sergiokopplin/react-universally
/* eslint-disable react/no-danger */ /* eslint-disable jsx-a11y/html-has-lang */ import React from 'react'; import PropTypes from 'prop-types'; /** * The is the HTML shell for our React Application. */ function HTML(props) { const { htmlAttributes, headerElements, bodyElements, appBodyString } = props; return ...
client/src/components/log-viewer/LogTable.js
peachy-manasis/log-file-viewer
import React from 'react' import { Table } from 'reactstrap'; const LogTable = ({lines}) => { let rows = lines.map((line) => { return ( <tr key={line.number}> <th scope="row">{line.number}</th> <td>{line.text}</td> </tr> ...
packages/forms/src/UIForm/fields/CheckBox/CheckBox.component.js
Talend/ui
import PropTypes from 'prop-types'; import React from 'react'; import SimpleCheckBox from './SimpleCheckBox.component'; import FieldTemplate from '../FieldTemplate'; import { generateDescriptionId, generateErrorId } from '../../Message/generateId'; export default function CheckBox(props) { const { id, isValid, errorM...
src/svg-icons/maps/local-mall.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalMall = (props) => ( <SvgIcon {...props}> <path d="M19 6h-2c0-2.76-2.24-5-5-5S7 3.24 7 6H5c-1.1 0-1.99.9-1.99 2L3 20c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-7-3c1.66 0 3 1.34 3 3H9c0-1.66 1.3...
src/app.js
hpdmitriy/Bjj4All
/** * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Image, } from 'react-native'; import codePush from "react-native-code-push"; export default class codepushSample extends Component { componentDidMount(){ var updateDialogOptions = { upda...
docs/src/app/components/pages/components/SvgIcon/ExampleIcons.js
hai-cea/material-ui
import React from 'react'; import ActionHome from 'material-ui/svg-icons/action/home'; import ActionFlightTakeoff from 'material-ui/svg-icons/action/flight-takeoff'; import FileCloudDownload from 'material-ui/svg-icons/file/cloud-download'; import HardwareVideogameAsset from 'material-ui/svg-icons/hardware/videogame-as...
src/components/FormInputs/Checkbox.js
JSLancerTeam/crystal-dashboard
import React, { Component } from 'react'; import cx from 'classnames'; import uncheckImage from 'assets/images/checkbox-1.svg'; import checkImage from 'assets/images/checkbox-2.svg'; class Checkbox extends Component { render() { let { input, label, type, meta: { touched, error, warning }...
src/client.js
Alexoner/alexoner.github.com
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import createStore from './redux/create'; import ApiClient from './helpers/ApiClient'; // import io from 'socket.io-client'; imp...
generators/app/templates/app/assets/javascript/components/pageNotFound.js
ajaykumaryadav/react-bootstrap
import React, { Component } from 'react'; import { Link, browserHistory } from 'react-router'; class pageNotFound extends Component { cancel() { browserHistory.goBack() } render() { return ( <div className="container text-center"> <div className="page-header"> <h1><i className="...
cheesecakes/plugins/content-type-builder/admin/src/containers/Form/index.js
strapi/strapi-examples
/* * * Form * */ import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { camelCase, compact, concat, findIndex, filter, get, has, includes, isEmpty, isObject, isUndefined, map, size, split, take, toLower, toNumber, r...
src/components/__tests__/TableTest.js
GriddleGriddle/Griddle
import React from 'react'; import test from 'ava'; import { shallow } from 'enzyme'; import Table from '../Table'; test('renders', (t) => { const wrapper = shallow(<Table visibleRows={5} />); t.true(wrapper.matchesElement(<table />)); }); test('renders with style', (t) => { const style = { backgroundColor: '#...
src/pages/ContactPage.js
UtainW/simple-react-boilerplate
import React from 'react'; const Contact = () => { return ( <div> <h1>Contacts Component</h1> </div> ); } export default Contact;
frontend/src/InteractiveImport/Folder/RecentFolderRow.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import IconButton from 'Components/Link/IconButton'; import RelativeDateCellConnector from 'Components/Table/Cells/RelativeDateCellConnector'; import TableRowCell from 'Components/Table/Cells/TableRowCell'; import TableRowButton from 'Compone...
src/components/Layout/Layout.js
kevinchau321/TReactr
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
src/components/timer-viewer.js
SawyerHood/pomodoro-redux
import React from 'react' import LinearProgress from 'material-ui/lib/linear-progress' import IconButton from 'material-ui/lib/icon-button' import { displayTime } from '../constants' const TimerViewer = ({timerLength, timeLeft, toggleConfig}) => { return ( <div> <h2> <IconButton iconClassName='mate...
javascript/containers/locations-page.js
kdoran/moriana-react
import React from 'react' import { connect } from 'react-redux' import {getShipments, filterShipmentsByLocation} from 'store/shipments' import ShipmentsTable from 'components/shipments-table' import download from 'utils/download' import h from 'utils/helpers' export class LocationsPage extends React.Component { sta...
src/components/icons/LinkedinAlternate.js
lmammino/loige.co
import React from 'react' const LinkedinAlternate = props => ( <svg aria-hidden="true" data-prefix="fab" data-icon="linkedin-in" className="svg-inline--fa fa-linkedin-in fa-w-14" viewBox="0 0 448 512" width="1em" height="1em" {...props} > <path fill="currentColor" d=...
src/components/Header/Header.js
k2data/react-redux-starter-kit
// @flow import React from 'react' import Logo from 'components/Logo' import UserMenu from 'components/UserMenu' import styles from './Header.css' const Header = () => ( <header className={styles['header']}> <Logo /> <UserMenu /> </header> ) export default Header
src/app.js
crisson/crabapple
import reactTapEventPlugin from 'react-tap-event-plugin' import React from 'react' import Reflux from 'reflux' import Bluebird from 'bluebird' reactTapEventPlugin() Reflux.setPromise(Bluebird) import Homepage from '@crabapple/Homepage.jsx' React.render( < Homepage / > , document.querySelector('#app'))
app/scripts/modules/core/src/pipeline/config/stages/baseProviderStage/baseProviderStage.js
duftler/deck
'use strict'; import { module } from 'angular'; import React from 'react'; import ReactDOM from 'react-dom'; import { AccountService } from 'core/account/AccountService'; import { Registry } from 'core/registry'; import { SETTINGS } from 'core/config/settings'; import { StageConfigWrapper } from '../StageConfigWrapp...
client/app/components/SearchResults/index.js
katharosada/bus-shaming
import React from 'react'; import { Link } from 'react-router-dom'; import './styles.less'; export function RouteSearchResults(props) { return <div> <p className="result-count">{ props.resultCount } { props.resultCount === 1 ? 'result' : 'results' }</p> { props.searchResults.map((result) => { ...
docs/server.js
chilts/react-bootstrap
/* eslint no-console: 0 */ import 'colors'; import React from 'react'; import express from 'express'; import path from 'path'; import Router from 'react-router'; import routes from './src/Routes'; import httpProxy from 'http-proxy'; import metadata from './generate-metadata'; import ip from 'ip'; const development =...
src/components/Settings.js
JoeScho/ClusterBomb
import React, { Component } from 'react'; import { StyleSheet, AsyncStorage, View, Button, Alert } from 'react-native'; import { NavigationActions } from 'react-navigation' export class SettingsScreen extends Component { render () { const { navigate } = this.props.navigation; return ( <View ...