path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
lib/components/TabView/index.js
gmtDevs/atom-ethereum-interface
'use babel' // Copyright 2018 Etheratom Authors // This file is part of Etheratom. // Etheratom is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any la...
website/src/components/common/StatsSection/index.js
jwngr/notreda.me
import React from 'react'; import PropTypes from 'prop-types'; import {StatsSectionTitle, StatsSectionWrapper, StatsChildrenWrapper} from './index.styles'; class StatsSection extends React.Component { render() { const {title, style, children, ...rest} = this.props; return ( <StatsSectionWrapper style=...
src/components/Footer/Footer.js
mcfa77y/isla_de_pescua
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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 withStyles from 'isomorp...
lib/components/SpeakerRow.js
bwestergard/takestack
import React from 'react' import R from 'ramda' import { speechDuration, speechesTotalDuration } from '../time.js' module.exports = React.createClass({ render: function () { const { speaker, maxFloorTime, currentTime, takeFloor, hasFloor } = this.props const barStyle = {width: `${100 * speechesTotalDuration...
web/components/Reports/Entries.js
earaujoassis/watchman
import React from 'react'; import { Link } from 'react-router-dom'; import moment from 'moment'; import { SpinningSquare } from '@common/UI'; const fromNow = (updatedAt) => { return moment.utc(updatedAt, 'YYYY-MM-DD HH:mm:ss UTC').startOf('minute').fromNow(); }; export const Entries = ({ server, reportsTopics, loa...
geonode/contrib/monitoring/frontend/src/pages/home/index.js
kartoza/geonode
import React from 'react'; import HoverPaper from '../../components/atoms/hover-paper'; import Map from '../../components/atoms/map'; import Header from '../../components/organisms/header'; import Stats from '../../components/organisms/stats'; import SoftwarePerformance from '../../components/organisms/software-perform...
src/hero_container.js
kylefdoherty/ipsum-generator
import React from 'react'; const HeroContainer = () => ( <div className='hero-container row'> <div className="hero-text col s12 m6"> <h4>Our Presidential Candidates</h4> <h4>haven't been acting</h4> <h4>or sounding</h4> <h4>very presidentail</h4> </div> <div className="center-alig...
imports/ui/components/SearchBar/SearchBar.js
hwillson/meteor-solr-demo
/* eslint-disable react/prefer-es6-class, react/no-string-refs */ import React from 'react'; import classNames from 'classnames'; import { _ } from 'meteor/underscore'; const SearchBar = React.createClass({ propTypes: { searchParams: React.PropTypes.object.isRequired, handleSearchParamsUpdate: React.PropTy...
carbon-sample-v2/src/main/javascript/spa/src/error/NotFoundContainer.js
ShotaOd/Carbon
import React, { Component } from 'react'; export default class NotFoundContainer extends Component { render() { return (<div> <h2> ページが見つかりません。 </h2> </div>); } }
examples/react-redux/src/components/ui/Alert.js
rangle/redux-segment
import React from 'react'; const componentColor = { info: 'bg-blue white', warning: 'bg-yellow black', success: 'bg-green black', error: 'bg-red white', }; const Alert = ({ children, isVisible, status = 'info', className = '', style = {}}) => { const visibleClass = isVisible ? 'block' : 'hide'; return ( ...
js/components/loaders/ProgressBar.ios.js
rebiz/diveprint
import React from 'react'; import {ProgressViewIOS} from 'react-native'; import NativeBaseComponent from 'native-base/Components/Base/NativeBaseComponent'; export default class ProgressBarNB extends NativeBaseComponent { render() { const getColor = () => { if (this.props.color) { return this.prop...
actor-apps/app-web/src/app/components/dialog/MessagesSection.react.js
cnbin/actor-platform
import React from 'react'; import _ from 'lodash'; import VisibilityStore from 'stores/VisibilityStore'; import MessageActionCreators from 'actions/MessageActionCreators'; import MessageItem from 'components/common/MessageItem.react'; let _delayed = []; let flushDelayed = () => { _.forEach(_delayed, (p) => { ...
src/@ui/CashAmountIndicator/index.js
NewSpring/Apollos
import React from 'react'; import { View } from 'react-native'; import PropTypes from 'prop-types'; import styled from '@ui/styled'; import { H1, H2, H3, H4, H5, H6, H7 } from '@ui/typography'; const Typography = { StyledH1: styled(({ theme }) => ({ color: theme.colors.text.primary, }))(H1), StyledH2: styl...
src/index.js
MGrin/mgr-pdf-viewer-react
import React from 'react'; import PropTypes from 'prop-types'; import PDF from 'react-pdf-js'; import Navigation from './Navigation'; const mgrpdfStyles = {}; mgrpdfStyles.wrapper = { textAlign: 'center' }; class PDFViewer extends React.Component { state = { pages: 0, page: 1, } componentWillMount(...
client/src/components/Draftail/blocks/MediaBlock.js
mixxorz/wagtail
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { Icon } from 'draftail'; import Tooltip from '../Tooltip/Tooltip'; import Portal from '../../Portal/Portal'; import { SelectionState, EditorState } from 'draft-js'; // Constraints the maximum size of the tooltip. const OPTIONS_MAX_W...
src/svg-icons/device/signal-wifi-4-bar.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi4Bar = (props) => ( <SvgIcon {...props}> <path d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/> </SvgIcon> ); DeviceSignalWifi4Bar = pure(Devic...
packages/wix-style-react/src/VerticalTabsItem/VerticalTabsItem.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import Text from '../Text'; import TextButton from '../TextButton'; import { st, classes } from './VerticalTabsItem.st.css'; import { FontUpgradeContext } from '../FontUpgrade/context'; import VerticalTabsContext from '../VerticalTabs/VerticalTabsContext'; ...
app/pages/initPage.js
Laastine/lukkarimaatti
import React from 'react' import {renderToString} from 'react-dom/server' import App from './app' const googleAnalytics = process.env.NODE_ENV === 'production' ? `<script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject'] = r;i[r]=i[r]||function(){(i[r].q = i[r].q || []).push(arguments)},i[r].l=1*new Date();a=s....
src/index.js
piisuke2/react-app-first-step
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; import 'bootstrap/dist/css/bootstrap.css'; import 'bootstrap/dist/css/bootstrap-theme.css'; import 'react-data-grid/dist/react-data-grid.css'; ReactDOM.render( <App />, document.getElementById('root') );
example/src/components/Row.js
eeynard/react-native-navigation
import React from 'react'; import PropTypes from 'prop-types'; import {StyleSheet, View, Text, TouchableHighlight, Platform} from 'react-native'; function Row({title, onPress, platform, testID}) { if (platform && platform !== Platform.OS) { return <View />; } return ( <TouchableHighlight onPress={...
frontend/src/components/collection/EditModal/index.js
webrecorder/webrecorder
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Button, Col, Form } from 'react-bootstrap'; import { defaultCollDesc } from 'config'; import { collection as collectionErr } from 'helpers/userMessaging'; import { LoaderIcon } from 'components/icons'; import Modal from 'component...
src/presentation/Audio/Audio.js
BenzLeung/private-music-client-web
/** * @file audio标签控制 * @author BenzLeung(https://github.com/BenzLeung) * @date 2017/7/3 * Created by JetBrains PhpStorm. * * 每位工程师都有保持代码优雅的义务 * each engineer has a duty to keep the code elegant */ import React, { Component } from 'react'; class Audio extends Component { constructor(props) { supe...
src/svg-icons/editor/insert-link.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertLink = (props) => ( <SvgIcon {...props}> <path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3...
react/features/salesforce/components/native/RecordItem.js
jitsi/jitsi-meet
// @flow import React from 'react'; import { useTranslation } from 'react-i18next'; import { View, Text, TouchableHighlight } from 'react-native'; import { Icon } from '../../../base/icons'; import { RECORD_TYPE } from '../../constants'; import styles from './styles'; /** * The type of the React {@code Component} ...
src/svg-icons/action/label-outline.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLabelOutline = (props) => ( <SvgIcon {...props}> <path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16zM16 17H5V7h11l...
src/svg-icons/communication/speaker-phone.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationSpeakerPhone = (props) => ( <SvgIcon {...props}> <path d="M7 7.07L8.43 8.5c.91-.91 2.18-1.48 3.57-1.48s2.66.57 3.57 1.48L17 7.07C15.72 5.79 13.95 5 12 5s-3.72.79-5 2.07zM12 1C8.98 1 6.24 2.23 4.25 ...
src/components/SubtitleHeading/SubtitleHeading.js
TekkenChicken/t7-chicken-native
import React, { Component } from 'react'; import { View, Text, StyleSheet } from 'react-native'; export default class SubtitleHeading extends Component { constructor() { super(); } render() { return ( <View style={Styles.background}> <Text style={Styles.text}>{this.props.subtitle}<...
tests/Rules-isAlphanumeric-spec.js
yesmeck/formsy-react
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import Formsy from './..'; import { InputFactory } from './utils/TestInput'; const TestInput = InputFactory({ render() { return <input value={this.getValue()} readOnly/>; } }); const TestForm = React.createClass({ render() { re...
examples/react-todomvc/containers/App.js
Mavrin/component-inspector
import React, { Component } from 'react'; import TodoApp from './TodoApp'; import { createStore, combineReducers, compose } from 'redux'; import { Provider } from 'react-redux'; import * as reducers from '../reducers'; const reducer = combineReducers(reducers); const store = createStore(reducer); export default class...
src/Therapists/ui/TherapistChosen.js
techmsi/mental-health-app
import React from 'react'; import { findById } from 'util/helpers'; import { Heading } from 'styles/Layout'; import { ThankYouShell } from 'Therapists/ui/styles-Therapist'; import { TherapistCardImage } from 'Therapists/ui/dynamicRoutes'; export const TherapistChosen = ({ match: { params: { therapistId } }, ...
2-alpha/src/Tutorials/content/index.js
saturninoharris/primer-design
import React from 'react' export default { "welcome": { title: "Get started", content: ( <div> </div> ) }, "what-is-pcr": { title: "What is PCR", content: ( <div> We have two primers which anneal to a target sequence. Polymerase can then attach to the double...
src/components/wordlist/index.js
enguerran/dicodigital-web
import React from 'react'; import fetch from 'node-fetch'; import WordGrid from '../wordgrid'; export default React.createClass ({ getInitialState() { return { words: [] }; }, fetch(url) { fetch(url).then(response => { return response.json(); }).then(json => this.setState({ words: json.results,...
src/components/Header/Header.js
Nexapp/react-starter-kit
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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 withStyles from 'isomorp...
src/components/chapter/ChapterEdit.js
Beardles/novelizr
import React from 'react' import { Button, Header, Icon, Modal } from 'semantic-ui-react' import ChapterForm from './ChapterForm' const ChapterEdit = ({ open, selectedChapter, updateSelectedChapter, handleCreateComplete, handleEditComplete, handleEditCancel }) => { if (selectedChapter === null) { return nu...
src/svg-icons/action/swap-vert.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSwapVert = (props) => ( <SvgIcon {...props}> <path d="M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z"/> </SvgIcon> ); ActionSwapVert = pure(ActionSwapVert); ActionSwapVert.displa...
app/components/switch/index.ios.js
it-surya/hack-jeninvest
import React from 'react'; import { Switch, } from 'react-native'; import {RkComponent} from 'react-native-ui-kitten' export class RkSwitch extends RkComponent { componentName = 'RkSwitch'; typeMapping = { container: { onColor: 'onColor', offColor: 'offColor' }, main: {} }; selectedT...
client/components/Main.js
dimitardanailov/reduxstagram
import React from 'react'; import { Link } from 'react-router'; const Main = React.createClass({ render() { return ( <div> <h1> <Link to="/">Reduxstragram</Link> </h1> {React.cloneElement(this.props.children, this.props)} </div> ); } }); export default Main;
app/containers/NotFoundPage/index.js
rajeshbhatt/shopping-cart-redux
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route */ import React from 'react'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; import messages from './messages'; export default function NotFound() { return ( <article> ...
src/svg-icons/device/network-cell.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceNetworkCell = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/><path d="M17 7L2 22h15z"/> </SvgIcon> ); DeviceNetworkCell = pure(DeviceNetworkCell); DeviceNetworkCell.displayNam...
react/JobFunctionIcon/JobFunctionIcon.js
seekinternational/seek-asia-style-guide
import svgMarkup from './JobFunctionIcon.svg'; import React from 'react'; import Icon from '../private/Icon/Icon'; export default function JobFunctionIcon(props) { return <Icon markup={svgMarkup} {...props} />; } JobFunctionIcon.displayName = 'JobFunctionIcon';
src/components/Header.js
lukebelliveau/aclu-matchers
import React from 'react'; import { StyleSheet, css } from 'aphrodite'; import { whitespace } from '../styles/shared'; const style = StyleSheet.create({ mb0: whitespace.margins.mb0, header: { backgroundSize: '100%' }, title: { color: '#33373A', margin: '0.8rem 0', fontSize: '1.5rem', textAl...
src/components/TextCard/index.js
simpaa/s-andersson-site
import React from 'react'; const style = { backgroundColor: '#fff', maxWidth: '700px', margin: '20px auto', color: '#4c4c4c', padding: '15px', borderRadius: '4px', boxShadow: '0px 0px 8px #4c4c4c' } const TextCard = ({ children }) => ( <article style={style}> {children} </article> ); ex...
packages/core/admin/admin/src/content-manager/pages/EditSettingsView/components/RowsLayout.js
wistityhq/strapi
import React from 'react'; import PropTypes from 'prop-types'; import { Grid } from '@strapi/design-system/Grid'; import RowItemsLayout from './RowItemsLayout'; const RowsLayout = ({ row, onRemoveField, rowIndex }) => { return ( <Grid> {row.rowContent.map((rowItem, index) => { return ( <R...
components/pages/ContactPage.js
LestaD/electron-react
import React from 'react'; class ContactPage extends React.Component { render() { return ( <div>Contact Page</div> ); } } export default ContactPage;
example/main.js
jakubzloczewski/react-steps
"use strict"; import React from 'react'; import {render} from 'react-dom'; import Steps from 'react-steps'; var json = [ { "text": "First finished step", "isActive": false, "isDone": true }, { "text": "Second finished step", "isActive": false, "isDone": true...
lib/cli/src/frameworks/react/js/Header.js
kadirahq/react-storybook
import React from 'react'; import PropTypes from 'prop-types'; import { Button } from './Button'; import './header.css'; export const Header = ({ user, onLogin, onLogout, onCreateAccount }) => ( <header> <div className="wrapper"> <div> <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://...
src/index.js
skywindzz/higher-order-component
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { Router, Route, browserHistory} from 'react-router'; import requireAuth from './components/require_auth'; import App from './components/app'; import Resourc...
src/containers/ListOfPosts.js
numieco/patriot-trading
import React from 'react' import Logo from './../components/Logo' import Loading from './../components/Loading' import SinglePost from '../components/SinglePost' import SinglePostArticle from '../components/SinglePostArticle' import SideBar from './../components/SideBar' import Footer from './../components/Footer' im...
docs/client.js
collinwu/react-bootstrap
import 'bootstrap/less/bootstrap.less'; import './assets/docs.css'; import './assets/style.css'; import './assets/carousel.png'; import './assets/logo.png'; import './assets/favicon.ico'; import './assets/thumbnail.png'; import './assets/thumbnaildiv.png'; import 'codemirror/mode/htmlmixed/htmlmixed'; import 'codemir...
front-end/src/App.js
AuthEceSoftEng/npm-miner
import React, { Component } from 'react'; import Header from './Header'; import Footer from './Footer'; import NotFound from './screens/NotFound'; import About from './screens/About'; import Stats from './screens/Stats'; import Main from './screens/Main'; import Search from './screens/Search'; import Package from './sc...
analysis/demonhunterhavoc/src/modules/talents/ImmolationAura.js
anom0ly/WoWAnalyzer
import { t } from '@lingui/macro'; import { formatThousands, formatPercentage } from 'common/format'; import SPELLS from 'common/SPELLS'; import { SpellLink } from 'interface'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import STATISTIC_ORDER from 'parser/...
app/app.js
simon-johansson/PB-labz
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; require('smoothscroll-polyfill').polyfill(); /* eslint-disable import/no-unresolved */ // Load the favicon, the manifest.json file and the .ht...
weather/src/index.js
titusjin/reduxExp
<<<<<<< HEAD import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import ReduxPromise from 'redux-promise'; import App from './components/app'; import reducers from './reducers'; ======= import React from "react"; imp...
stories/index.js
qualitydixon/react-kickstart
import React from 'react'; import { storiesOf, configure } from '@storybook/react'; import { Welcome } from '@storybook/react/demo'; const req = require.context('../src/components', true, /\.stories\.js$/); function loadStories() { req.keys().forEach(filename => req(filename)); } storiesOf('Welcome', module).add(...
src/components/common/icons/ResetIcon.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; const ResetIcon = props => ( <div className="app-icon app-icon-medium app-icon-reset" style={{ backgroundColor: props.backgroundColor }}> <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" x="...
src/Parser/Druid/Guardian/Modules/Spells/Pulverize.js
enragednuke/WoWAnalyzer
import React from 'react'; import { formatPercentage } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Com...
app/containers/NotFoundPage/index.js
Zurico/t7
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route */ import React from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import messages from './messages'; import { FormattedMessage } from 'react-intl'; import Button from ...
src/components/App.js
cristovao-trevisan/react-onsenui-minimal
import React from 'react' import { Page, Toolbar } from 'react-onsenui' import MessageList from '../containers/MessageList' const renderToolbar = () => ( <Toolbar> <div className='center'>React Onsen (with Redux) Minimal List</div> </Toolbar> ) const App = () => ( <Page renderToolbar={renderToolbar}> <M...
src/scripts/student-profile/js/app/components/test-results/TestResults.js
IronCountySchoolDistrict/student-profile
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { loadTestResults } from '../../data-source'; import ResultList from './ResultList'; export default class TestResults extends Component { constructor(props, context) { super(props, context); this.state = { testResults...
frontend/src/components/toolbar/view-mode-toolbar.js
miurahr/seahub
import React from 'react'; import PropTypes from 'prop-types'; import { gettext } from '../../utils/constants'; const propTypes = { currentMode: PropTypes.string.isRequired, switchViewMode: PropTypes.func.isRequired, }; class ViewModeToolbar extends React.Component { switchViewMode = (e) => { e.preventDefa...
react/CalendarIcon/CalendarIcon.iconSketch.js
seekinternational/seek-asia-style-guide
import React from 'react'; import CalendarIcon from './CalendarIcon'; export const symbols = { 'CalendarIcon': <CalendarIcon /> };
actor-apps/app-web/src/app/index.js
alessandrostone/actor-platform
import crosstab from 'crosstab'; import React from 'react'; import Router from 'react-router'; import Raven from 'utils/Raven'; // eslint-disable-line import injectTapEventPlugin from 'react-tap-event-plugin'; import Deactivated from 'components/Deactivated.react'; import Login from 'components/Login.react'; import ...
node_modules/rebass/src/Checkbox.js
HasanSa/hackathon
import React from 'react' import classnames from 'classnames' import Base from './Base' import Label from './Label' import config from './config' /** * Checkbox input with label */ const Checkbox = ({ label, name, checked, children, backgroundColor, theme, inverted, rounded, stacked, style, m...
src/Parser/Druid/Restoration/Modules/Items/T20_2Set.js
hasseboulen/WoWAnalyzer
import React from 'react'; import { formatPercentage } from 'common/format'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import HealingDone...
node_modules/react-router/es6/RoutingContext.js
save-password/save-password.github.io
import React from 'react'; import RouterContext from './RouterContext'; import warning from './routerWarning'; var RoutingContext = React.createClass({ displayName: 'RoutingContext', componentWillMount: function componentWillMount() { process.env.NODE_ENV !== 'production' ? warning(false, '`RoutingContext` has...
src/elements/Input/Input.js
moo-dal/spoon-web
/* External dependencies */ import React from 'react' import classNames from 'classnames' /* Internal dependencies */ import styles from './Input.scss' class Input extends React.Component { constructor() { super() this.inputRef = null } componentDidMount() { if (this.props.autoFocus) { this....
TextAdventureGauntlet/game/ui/utils/basics/button.js
coryandrew1988/Text-Adventure-Gauntlet
import React, { Component } from 'react'; import { TouchableNativeFeedback, View } from 'react-native'; export default class Button extends Component { render() { return <TouchableNativeFeedback onPress={this.props.onPress}> <View {...this.props}> {this.props.children} </View> </Touch...
packages/material-ui-icons/src/KeyboardArrowRight.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z" /></g> , 'KeyboardArrowRight');
public/client/routes/inviteUser/containers/inviteUser.js
nearform/concorda-dashboard
'use strict' import React from 'react' import {connect} from 'react-redux' import {reduxForm} from 'redux-form' import {sendInviteUser} from '../../../modules/user/actions/index' import {validateInviteUser} from '../../../lib/validations' export let InviteUser = React.createClass({ propTypes: { handleSubmit:...
src/docs/examples/EyeIcon/Example.js
emanualjade/react-jade
import React from 'react'; import EyeIcon from 'ps-react/EyeIcon'; export default function EyeIconExample() { return <EyeIcon /> }
components/Loading.js
hellobrian/carbon-components-react
import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; class Loading extends React.Component { static propTypes = { active: PropTypes.bool, className: PropTypes.string, withOverlay: PropTypes.bool, small: PropTypes.bool, }; static defaultProps = { ...
app/components/SelectableSlot.js
experimentalDataAesthetics/play-splom
import React from 'react'; import TextSelect from 'react-textselect'; /** * Display and select which datasource a selectable slot * is getting it's data from. * * These are used to map fixed dataset statistics to sound parameters. * * css is included in app.global.css * * sources[slot] datasource * * action ...
packages/cf-component-icon/src/reactsvgs/Help.js
jroyal/cf-ui
import React from 'react'; import PropTypes from 'prop-types'; const Help = ({ className, label }) => ( <svg className={className} aria-label={label} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" > <path d="M8,.831A7.169,7.169,0,1,0,15.169,8,7.169,7.169,0,0,0,8,.831ZM7.6,12.854a.979.97...
src/svg-icons/av/web-asset.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvWebAsset = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm0 14H5V8h14v10z"/> </SvgIcon> ); AvWebAsset = pure(AvWebAsset); AvWebAss...
test/test_helper.js
tskapo/client_auth
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
src/components/publisher/PublisherHeader.js
Atypon-OpenSource/wayf-admin
import React from 'react'; import { Grid } from 'react-bootstrap'; export default class PublisherHeader extends React.Component { render() { return ( <h1>Welcome to the WAYF Publisher Portal!</h1> ); } }
FrontEnd/src/router/index.js
liu599/BlogUpgrade
import React from 'react'; import CreateArticle from '@/components/create-article/create-article'; import ArticleList from '@/components/article-list/article-list'; import {Route, Switch} from 'react-router-dom'; const errPage = () => { return ( <div className="content-block"> <p>Probably you enter a wron...
client/page/options/donation.js
johngodley/search-regex
/** * External dependencies */ import React from 'react'; import { translate as __ } from 'i18n-calypso'; import PropTypes from 'prop-types'; /** * Internal dependencies */ import { Table, TableRow } from 'wp-plugin-components'; import './donation.scss'; const MIN = 16; const MAX = 100; class Donation extends R...
cms/gatsby/src/components/header.js
fishjar/gabe-study-notes
import React from 'react' import Link from 'gatsby-link' const Header = ({ siteTitle }) => ( <div style={{ background: 'rebeccapurple', marginBottom: '1.45rem', }} > <div style={{ margin: '0 auto', maxWidth: 960, padding: '1.45rem 1.0875rem', }} > ...
src/encoded/static/components/dbxref.js
T2DREAM/t2dream-portal
import React from 'react'; import PropTypes from 'prop-types'; // DbxrefList // ========== // Display comma-separated list of linked external IDs/dbxrefs. For simplicity, I'll just call // these "dbxrefs" from now. This uses a global array (dbxrefPrefixMap below) of possible dbxref // URL patterns based on dbxref pre...
src/shared/components/authenticatedRoute/authenticatedRoute.js
sethbergman/operationcode_frontend
import React from 'react'; import SocialLogin from 'shared/components/socialLogin/socialLogin'; import PropTypes from 'prop-types'; import { Route, Redirect } from 'react-router-dom'; const AuthenticatedRoute = (props) => { if (!props.isAuth) { return <Redirect to={{ pathname: '/login', state: { referrer: props....
client/src/app/components/chat/components/AsideChat.js
zraees/sms-project
import React from 'react' import {bindActionCreators} from 'redux' import {connect} from 'react-redux' import * as ChatActions from '../ChatActions' import classnames from 'classnames' import AsideChatUser from './AsideChatUser' class AsideChatWidget extends React.Component { state = { open: false, filt...
src/interface/others/LazyLoadStatisticBox.js
fyruna/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import StatisticBox from './StatisticBox'; export { STATISTIC_ORDER } from './StatisticBox'; /** * @deprecated Use `interface/statistic/Statistic` instead. */ class LazyLoadStatisticBox extends React.PureComponent { static propTypes = { loader: P...
src/components/stories/Card.js
radekzz/netlify-cms-test
import React from 'react'; import { Card } from '../UI'; import { storiesOf } from '@kadira/storybook'; const styles = { footer: { color: '#aaa', backgroundColor: '#555', textAlign: 'center', marginTop: 5, padding: 10 } }; storiesOf('Card', module) .add('Default View', () => ( <Card> ...
fields/components/columns/IdColumn.js
Adam14Four/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var IdColumn = React.createClass({ displayName: 'IdColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, list: React.PropTypes.obje...
static/src/components/LoginView.js
agelarry/online_quiz
/* eslint camelcase: 0, no-underscore-dangle: 0 */ import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; import Paper from 'material-ui/Paper'; import * as actionC...
src/app/screens/Anonymous/screens/Pricing/components/Pricing.js
docgecko/react-alt-firebase-starter
/*! React Alt Firebase Starter */ import './Pricing.less'; import React from 'react'; export default class Pricing extends React.Component { render() { return ( <div className='pricing'> <h1>Pricing</h1> <p>here will be the list of pricing levels</p> </div> ); } }
frontend/src/Components/Page/Sidebar/Messages/Message.js
lidarr/Lidarr
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import Icon from 'Components/Icon'; import { icons } from 'Helpers/Props'; import styles from './Message.css'; function getIconName(name) { switch (name) { case 'ApplicationUpdate': return icons.RESTART; ...
app/src/assets/js/components/global/league-table.js
Huskie/ScottishPremiershipData
import React from 'react'; import firebaseApp from '../../modules/firebase'; import { Link } from 'react-router'; import getClubAcronym from '../../modules/utilities/get-club-acronym'; import slugify from '../../modules/utilities/slugify'; class LeagueTableComponent extends React.Component { constructor (props) ...
utils/typography.js
dearwish/gatsby-starter-clean
import ReactDOM from 'react-dom/server' import React from 'react' import Typography from 'typography' import { GoogleFont } from 'react-typography' import CodePlugin from 'typography-plugin-code' const options = { googleFonts: [ { name: 'Roboto', styles: [ '400', '400i', ...
src/views/components/searchBar/index.js
raycent/ARWM_Exercise_Redux
import React from 'react'; import { browserHistory } from 'react-router'; import { Form, Label } from 'semantic-ui-react'; export class SearchBar extends React.Component { constructor(props) { super(props); this.state = { ticker: location.pathname.split('/')[1], error: '' }; this.handle...
app/components/Gpsbutton/index.js
ScoutingIJsselgroep/Jotihunt
/** * * Gpsbutton * */ import React from 'react'; import { Link } from 'react-router'; // import styled from 'styled-components'; function Gpsbutton({ latitude, longitude }) { return ( <Link target={'_blank'} to={`https://www.google.com/maps/search/?api=1&query=${latitude},${longitude}`} ...
src/App.js
patrickfatrick/audio-book-react
import React from 'react'; import PropTypes from 'prop-types'; import { hot } from 'react-hot-loader/root'; import Reader from './components/Reader'; function App({ bookId, }) { return ( <Reader bookId={bookId} /> ); } App.propTypes = { bookId: PropTypes.string.isRequired, }; export default hot(App);
admin/client/views/home.js
mikaoelitiana/keystone
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import { Container } from 'elemental'; import xhr from 'xhr'; import { plural } from '../utils'; import Footer from '../components/Footer'; import MobileNavigation from '../components/MobileNavigation'; import PrimaryNavigation from '../compone...
src/components/Navbar/Navbar.js
jorgehmv/redux-algorithms
import React from 'react'; import Navbar from 'react-bootstrap/lib/Navbar'; import Nav from 'react-bootstrap/lib/Nav'; import NavItem from 'react-bootstrap/lib/NavItem'; import NavDropdown from 'react-bootstrap/lib/NavDropdown'; import MenuItem from 'react-bootstrap/lib/MenuItem'; import config from '../../config'; ...
src/components/DebounceInput.js
creditornot/wolt-web-common
import React from 'react'; import PropTypes from 'prop-types'; import DebounceInput from 'react-debounce-input'; import cx from 'classnames'; import styles from './DebounceInput.css'; const CustomDebounceInput = ({ className, debounceTimeout, minLength, ...rest }) => ( <DebounceInput className={cx(className, st...
src/components/navigation/LoginRegisterNav.js
belaczek/BeerCheese-client
import React, { Component } from 'react'; import { Nav, Row, Col, NavItem, NavLink, } from 'reactstrap'; import { Link } from 'react-router'; import localizedTexts from '../../text_localization/LocalizedStrings'; import { connect } from 'react-redux'; import { openModal } from '../../actions/openMod...
client/App/Events/index.js
JohannesAnd/SKWebsite
import React from 'react'; import UserLanguage from 'common/UserLanguage'; import { Wrapper, Header, EventsList, Admin } from './elements'; export default function Events({ className }) { return ( <UserLanguage> {t => ( <Wrapper className={className}> <Header>{t('events.events')}</Heade...
src/components/label.js
isao/labelr
import React from 'react' import ampersandReactMixin from 'ampersand-react-mixin' export default React.createClass({ mixins: [ampersandReactMixin], getInitialState () { const {color, name} = this.props.label return {color, name} }, onEditClick (e) { e.preventDefault() c...
src/views/Main/routes.js
kryptnostic/gallery
import React from 'react'; import { IndexRedirect, IndexRoute, Route } from 'react-router'; import Lattice from 'lattice'; import AuthService from '../../utils/AuthService'; import Container from './Container'; import Login from './Login/Login'; import HomeComponent from '../../containers/home/HomeComponent'; import Vi...