path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
webpack/scenes/RedHatRepositories/components/SearchBar.js
mccun934/katello
/* eslint-disable import/no-extraneous-dependencies */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { Form, FormGroup } from 'react-bootstrap'; import { translate as __ } from 'foremanReact/common/I18n'; import { selectOrganizationProducts...
src/components/seo.js
JoshBarr/joshbarr.github.io
import React from 'react' import PropTypes from 'prop-types' import Helmet from 'react-helmet' import { StaticQuery, graphql } from 'gatsby' function SEO({ description, lang, meta, keywords, title, thumbnail }) { return ( <StaticQuery query={detailsQuery} render={data => { const metaDescripti...
src/components/wrapper.js
brucecham/redux-saga
import React from 'react' export default function (WrappedComponent) { return class Wrapper extends WrappedComponent { render () { const ele = super.render() const eleProps = ele.props let newProps = {} console.log('brucecham', ele) if (ele && eleProps['data-testid'] === undefined) {...
packages/react-scripts/fixtures/kitchensink/src/features/env/FileEnvVariables.js
IamJoseph/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; export default () => ( <span> <span id="feature-file-env-original-1"> {process.env.REACT_APP_ORI...
app/index.js
SoufianeAbid/reactStarter
import React from 'react'; import ReactDOM from 'react-dom'; var {Route, Router, IndexRoute, hashHistory, browserHistory} = require('react-router'); // import Router from 'react-router'; import Home from './components/Home'; import Nav from './components/Nav'; ReactDOM.render( <Router history={brow...
js/jqwidgets/demos/react/app/treegrid/localization/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTreeGrid from '../../../jqwidgets-react/react_jqxtreegrid.js'; class App extends React.Component { componentDidMount() { this.refs.myTreeGrid.expandRow(2); } render () { let getLocalization = () => { let loc...
src/components/views/dialogs/ChatCreateOrReuseDialog.js
aperezdc/matrix-react-sdk
/* Copyright 2017 Vector Creations Ltd Copyright 2018 New Vector Ltd 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 la...
components/UI/Header/MainMenu.js
Dadidam/gladiator
import React from 'react'; import { Menu, Icon } from 'antd'; import { connect } from 'react-redux'; import { setActiveTab } from '../../../actions'; const menu = [{ key: 1, icon: 'key', title: 'Quests' },{ key: 2, icon: 'flag', title: 'Arena' },{ key: 3, icon: 'shop', title: 'Shop'...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/CssInclusion.js
mailtoharshit/Reactor
/** * 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...
node_modules/react-bootstrap/es/FormControlStatic.js
newphew92/newphew92.github.io
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 ...
examples/huge-apps/app.js
darul75/react-router
import React from 'react'; import HashHistory from 'react-router/lib/HashHistory'; import { Router } from 'react-router'; import AsyncProps from 'react-router/lib/experimental/AsyncProps'; import stubbedCourses from './stubs/courses'; var rootRoute = { path: '/', childRoutes: [ require('./routes/Calendar'), ...
src/svg-icons/navigation/apps.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationApps = (props) => ( <SvgIcon {...props}> <path d="M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"/> </SvgIcon> ...
src/native/main.js
TheoMer/este
// @flow import type { Action } from '../common/types'; import FBSDK from 'react-native-fbsdk'; import React from 'react'; import ReactNativeI18n from 'react-native-i18n'; import Root from './app/Root'; import configureStorage from '../common/configureStorage'; import configureStore from '../common/configureStore'; imp...
src/Questions/ui/UnansweredList.js
techmsi/mental-health-app
import React from 'react'; import { Link } from 'react-router-dom'; import { UnderlineButton } from 'styles/Layout'; import { UnansweredListShell } from 'Questions/ui/styles-Questions'; export const UnansweredList = ({ unanswered }) => ( <UnansweredListShell> <h3 className='header'>Unanswered</h3> {unanswer...
src/components/form-inputs/text.js
aichbauer/redux-valid-form
import React from 'react'; import PropTypes from 'prop-types'; import Input from '../../containers/input'; const Text = (props) => ( <Input type={props.type} data-form-id={props['data-form-id']} className={props.className} id={props.id} max={props.max} min={props.min} placeholder={prop...
src/client.js
oToUC/the-scratch
/** * 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 BrowserHistory from 'react-router/lib/BrowserHistory'; import Location from 'react-router/lib/Location'; import queryString from 'query-string'; import cre...
Realization/frontend/czechidm-core/src/content/notification/NotificationRecipientCell.js
bcvsolutions/CzechIdMng
import React from 'react'; // import NotificationRecipient from './NotificationRecipient'; /** * Renders cell with notification recipient content */ const NotificationRecipientCell = ({rowIndex, data, property, identityOnly}) => { // return ( <NotificationRecipient recipient={data[rowIndex][property]} identi...
src/routes.js
sergey-shulyak/simple-quote
import React from 'react'; import { Route, Switch } from 'react-router-dom'; import HomePage from './components/HomePage'; import BookListPageContainer from './containers/BookListPageContainer'; import BookPageContainer from './containers/BookPageContainer'; import QuoteListPageContainer from './containers/QuoteListPag...
client/components/Error/ErrorComponent.js
Nexters/flass
import React, { Component } from 'react'; import { Wrapper, Icon, ErrorResponseCode, ErrorText } from './ErrorStyled'; import ErrorIcon from './icons/error-icon@3x.png'; class ErrorComponent extends Component { render() { return ( <Wrapper> <Icon srcSet={ ErrorIcon } /> <ErrorRespon...
src/routes/Root.js
ArtyomVolkov/music-search
import React from 'react'; import { Provider } from 'react-redux'; import { Router, Route, IndexRedirect, browserHistory } from 'react-router'; // web components import Header from '../components/layout/Header'; import Footer from '../components/layout/Footer'; import Page from '../components/layout/Page'; // pages imp...
node_modules/rc-form/es/createBaseForm.js
prodigalyijun/demo-by-antd
import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _extends from 'babel-runtime/helpers/extends'; import _toConsumableArray from 'babel-runtime/helpers/toConsumableArray'; import React from 'react'; import createReactClass from 'create-react-class'; import AsyncValidator from 'async-validator'; ...
src/svg-icons/device/signal-wifi-off.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifiOff = (props) => ( <SvgIcon {...props}> <path d="M23.64 7c-.45-.34-4.93-4-11.64-4-1.5 0-2.89.19-4.15.48L18.18 13.8 23.64 7zm-6.6 8.22L3.27 1.44 2 2.72l2.05 2.06C1.91 5.76.59 6.82.36 7l11.63 14.4...
www/src/components/navigation/About.js
cygwin255/SimpleSurvey
import React from 'react' const About = () => ( <div> About Page </div> ) export default About
docs/app/Examples/views/Comment/Content/CommentExampleReplyFormOuter.js
shengnian/shengnian-ui-react
import React from 'react' import { Button, Comment, Form } from 'shengnian-ui-react' const CommentExampleReplyFormOuter = () => ( <Comment.Group> <Comment> <Comment.Avatar as='a' src='/assets/images/avatar/small/joe.jpg' /> <Comment.Content> <Comment.Author>Joe Henderson</Comment.Author> ...
src/scotch-night/app/components/GrowingTextInput.js
SeattleScotchSociety/ScotchNight
import React from 'react'; import { TextInput, View } from 'react-native'; // Try it: https://snack.expo.io/ByW4CFPx- export default class GrowingTextInput extends React.Component { static defaultProps = { minHeight: 30 }; constructor(props, context) { super(props, context); this....
examples/form-validation/src/components/TextBox/index.sketch.js
weaintplastic/react-sketchapp
/* @flow */ import React from 'react'; import { View, Text } from 'react-primitives'; import styles from './style'; type Props = { label: string, value: string, children?: React$Element<any> }; const TextBox = ({ label, value, children }: Props) => ( <View style={styles.formElement}> <Text style={styles.l...
src/svg-icons/action/settings-overscan.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsOverscan = (props) => ( <SvgIcon {...props}> <path d="M12.01 5.5L10 8h4l-1.99-2.5zM18 10v4l2.5-1.99L18 10zM6 10l-2.5 2.01L6 14v-4zm8 6h-4l2.01 2.5L14 16zm7-13H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18...
frontend/modules/main/components/dev-tools.js
boo1ean/wtftm
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey='H' changePositionKey='Q'> <LogMonitor /> </DockMonitor> );
src/svg-icons/action/perm-identity.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermIdentity = (props) => ( <SvgIcon {...props}> <path d="M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9...
src/examples/react/src/editors/InputGender.js
nikospara/egkyron
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Form from 'react-bootstrap/Form'; import { makeMessages, simpleShouldComponentUpdate } from 'controls/utils'; export default class InputGender extends Component { _handlers = { handleChange: null }; constructor(props) { super...
App/Containers/PassphraseModalContainer.js
bretth18/PresidioWallet
'use strict'; /* container binds action creators and inject state/dispatchers as props */ import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import PassphraseModal from '../Components/PassphraseModal'; import * as HomeActions from '../Actions/h...
src/svg-icons/action/assignment-late.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssignmentLate = (props) => ( <SvgIcon {...props}> <path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-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-6 15h-2v-2h2v2zm0...
lib/loader/RippleLoader.js
wangdicoder/react-native-indicator
import React from 'react'; import PropTypes from 'prop-types'; import { Animated } from 'react-native'; import { Surface } from '@react-native-community/art'; import AnimatedCircle from '../animated/AnimatedCircle'; import { color } from '../const'; export default class RippleLoader extends React.PureComponent { sta...
js/components/pages/HomePage.react.js
vijaychauhanssn/login-reactjs
/* * HomePage * * This is the first thing users see of the app * Route: / * */ import React, { Component } from 'react'; import { Link } from 'react-router'; import Nav from '../Nav.react'; import { connect } from 'react-redux'; class HomePage extends Component { render() { const dispatch = this.props.disp...
src/js/components/icons/base/PlatformMandriva.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
examples/with-apollo/lib/withData.js
nahue/next.js
import 'isomorphic-fetch' import React from 'react' import { ApolloProvider, getDataFromTree } from 'react-apollo' import { initClient } from './initClient' export default (Component) => ( class extends React.Component { static async getInitialProps (ctx) { const headers = ctx.req ? ctx.req.headers : {} ...
src/components/PageBuilder/index.js
iris-dni/iris-frontend
import React from 'react'; import { assign } from 'lodash/object'; import PageHeader from 'components/PageHeader'; import LogosGrid from 'components/LogosGrid'; import Hero from 'components/Hero'; import ContentGrid from 'components/ContentGrid'; import ContentBlock from 'components/ContentBlock'; import PetitionGroup ...
src-example/components/atoms/Input/index.stories.js
SIB-Colombia/biodiversity_catalogue_v2_frontend
import React from 'react' import { storiesOf } from '@kadira/storybook' import Input from '.' storiesOf('Input', module) .add('default', () => ( <Input /> )) .add('reverse', () => ( <Input reverse /> )) .add('height', () => ( <Input height={100} /> )) .add('invalid', () => ( <Input invali...
app/scripts/CollapsePanel.js
hms-dbmi/higlass
/* jshint esnext: true */ import React from 'react'; import PropTypes from 'prop-types'; import { Collapse, ControlLabel, Panel } from 'react-bootstrap'; const CollapsePanel = (props) => ( <div> <ControlLabel> <a className={`collapse-toggle-icon ${props.collapsedClass( props.collapsed, ...
src/components/structures/SearchBox.js
martindale/vector
/* Copyright 2015, 2016 OpenMarket Ltd 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, sof...
docs/src/app/components/pages/customization/StylesOverridingCssExample.js
ichiohta/material-ui
import React from 'react'; import Checkbox from 'material-ui/Checkbox'; const StylesOverridingCssExample = () => ( <Checkbox name="StylesOverridingCssExample" label="Checked the mail" className="styles-overriding-css-example" /> ); export default StylesOverridingCssExample;
examples/static-data/app.js
christianvuerings/react-autocomplete
import React from 'react' import { getStates, matchStateToTerm, sortStates, styles } from '../utils' import Autocomplete from '../../lib/index' let App = React.createClass({ render () { return ( <div> <h1>Basic Example with Static Data</h1> <p> When using static data, you use the...
packages/react-scripts/fixtures/kitchensink/src/index.js
maletor/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById(...
node_modules/react-icons/ti/folder-add.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const TiFolderAdd = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m30 10h-10c0-1.8-1.5-3.3-3.3-3.3h-6.7c-2.8 0-5 2.2-5 5v16.6c0 2.8 2.2 5 5 5h20c2.8 0 5-2.2 5-5v-13.3c0-2.8-2.2-5-5-5z m0 20h-20c-0.9 0-1.7-0.7-1.7-1.7v-11.6h6.7c0.5...
examples/todomvc/containers/Root.js
iansinnott/redux
import React, { Component } from 'react'; import TodoApp from './TodoApp'; import { createStore, combineReducers } from 'redux'; import { Provider } from 'react-redux'; import rootReducer from '../reducers'; const store = createStore(rootReducer); export default class Root extends Component { render() { return ...
src/components/common/svg-icons/file/folder-open.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileFolderOpen = (props) => ( <SvgIcon {...props}> <path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"/> </SvgIcon> ); FileFolderOpen = pure(F...
generators/app/templates/index.js
dothanhlam/generator-react-redux-es6-webpack
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import configureStore from './stores'; import App from './app'; const store = configureStore(); render( <Provider store={store}> <App /> </Provider>, document.getElementById('app') );
javascript/admin/shipment-restore.js
kdoran/moriana-react
import React from 'react' import h from 'utils/helpers' import {buildHref} from 'components/shipment-link' export default class extends React.Component { render () { const {shipment, shipmentIndex, onClickRestore, dbName} = this.props return ( <div> <h5 className='text-capitalize'> <a...
src/hint/DefaultHint.js
ethanselzer/react-image-magnify
import React from 'react'; import PropTypes from 'prop-types'; function DefaultHint({ isTouchDetected, hintTextMouse, hintTextTouch }) { return ( <div style={{ width: '100%', display: 'flex', justifyContent: 'center', position: 'absolute', bottom:...
src/components/HomePage.js
sergey-shulyak/simple-quote
import React from 'react'; const HomeView = () => ( <div id="home-page" className="ui three columns vertical masthead center aligned stackable grid"> <div className="right aligned two wide column"> <i className="quote left huge icon"></i> </div> <div className="column"> <h1 className="ui huge...
docs/app/Examples/collections/Breadcrumb/Content/BreadcrumbExampleDivider.js
mohammed88/Semantic-UI-React
import React from 'react' import { Breadcrumb } from 'semantic-ui-react' const BreadcrumbExampleDivider = () => ( <Breadcrumb> <Breadcrumb.Section link>Home</Breadcrumb.Section> <Breadcrumb.Divider>/</Breadcrumb.Divider> <Breadcrumb.Section link>Registration</Breadcrumb.Section> <Breadcrumb.Divider>/...
frontend/src/components/dialog/sysadmin-dialog/sysadmin-repo-transfer-dialog.js
miurahr/seahub
import React from 'react'; import PropTypes from 'prop-types'; import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap'; import { gettext } from '../../../utils/constants'; import UserSelect from '../../user-select'; const propTypes = { repoName: PropTypes.string.isRequired, toggle: PropType...
examples/redirect-using-index/app.js
rkaneriya/react-router
import React from 'react' import { createHistory, useBasename } from 'history' import { Router, Route, IndexRoute, Link } from 'react-router' const history = useBasename(createHistory)({ basename: '/redirect-using-index' }) class App extends React.Component { render() { return ( <div> {this.prop...
src/components/footer.js
basvandriel/WWW
import React from 'react'; import { Container } from 'react-bootstrap'; import theme from '../theme'; import styled from 'styled-components'; const StyledFooter = styled.footer` padding: 20px; align-items: center; min-height: 75px; `; const StyledContainer = styled(Container)` display: flex; fle...
src/components/Layout.js
limal/wolnik
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import { StaticQuery, graphql } from 'gatsby'; import '../assets/sass/main.scss'; import Footer from './Footer'; import SideBar from './Sidebar'; class Layout extends Component { constructor(props) { ...
app/components/ConsoleToolbar.js
alihalabyah/fil
import React from 'react'; import {connect} from 'react-redux'; import {setPreference} from 'actions/preferences'; import {getExtension} from 'helpers'; import {byExtension} from 'interpreters'; class ConsoleToolbar extends React.Component { handleRunButton(event) { event.preventDefault(); this.props.onRun(...
src/components/auth/Password.js
GustavoKatel/franz
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { observer, PropTypes as MobxPropTypes } from 'mobx-react'; import { defineMessages, intlShape } from 'react-intl'; import Form from '../../lib/Form'; import { required, email } from '../../helpers/validation-helpers'; import Input fr...
examples/huge-apps/routes/Calendar/components/Calendar.js
albertolacework/react-router
import React from 'react'; class Calendar extends React.Component { render () { var events = [{ id: 0, title: 'essay due' }]; return ( <div> <h2>Calendar</h2> <ul> {events.map(event => ( <li key={event.id}>{event.title}</li> ))} </ul> ...
assets/jqwidgets/demos/react/app/datatable/serversorting/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDataTable from '../../../jqwidgets-react/react_jqxdatatable.js'; class App extends React.Component { render() { let source = { dataType: 'json', dataFields: [ { name: 'Shi...
docs/src/app/components/pages/components/Tabs/ExampleControlled.js
matthewoates/material-ui
import React from 'react'; import {Tabs, Tab} from 'material-ui/Tabs'; const styles = { headline: { fontSize: 24, paddingTop: 16, marginBottom: 12, fontWeight: 400, }, }; export default class TabsExampleControlled extends React.Component { constructor(props) { super(props); this.state =...
src/svg-icons/image/exposure-zero.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageExposureZero = (props) => ( <SvgIcon {...props}> <path d="M16.14 12.5c0 1-.1 1.85-.3 2.55-.2.7-.48 1.27-.83 1.7-.36.44-.79.75-1.3.95-.51.2-1.07.3-1.7.3-.62 0-1.18-.1-1.69-.3-.51-.2-.95-.51-1.31-.95-.36-.44...
src/docs/components/tiles/TilesDoc.js
grommet/grommet-docs
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Tiles from 'grommet/components/Tiles'; import Tile from 'grommet/components/Tile'; import Anchor from 'grommet/components/Anchor'; import Button from 'grommet/components/Button'; import DocsArticle fro...
client/src/svgs/_/Logo--old.js
allansachsambia/jytr
import React from 'react'; const ScriptLogo = () => <svg className="logo" viewBox="0 0 100 50"> <g transform="matrix(0.210914,0,0,0.339628,-116.267,-185.939)"> <g transform="matrix(2.85706,0,0,1.55172,-1110.51,-302.777)"> <path d="M630.15,586.13C630.662,586.386 630.998,586.754 631.158,587.234C631.3...
examples/huge-apps/components/App.js
brenoc/react-router
/*globals COURSES:true */ import React from 'react' import Dashboard from './Dashboard' import GlobalNav from './GlobalNav' class App extends React.Component { render() { return ( <div> <GlobalNav /> <div style={{ padding: 20 }}> {this.props.children || <Dashboard courses={COURSES...
website/src/containers/Behavior.js
DTU-R3/ArloBot
import React, { Component } from 'react'; import { Collapse, Card, CardBody, CardHeader, CardTitle } from 'reactstrap'; class Behavior extends Component { constructor(props) { super(props); this.state = { isOpen: false, textToSpeak: '', askRobot: '', }; this.handleTextToSpeakChange...
src/routes/notFound/NotFound.js
egut/react-docker-demo
/** * 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/renderer/components/MapFilter/ObservationDialog/TextField.js
digidem/ecuador-map-editor
// @flow import React from 'react' import MuiTextField from '@material-ui/core/TextField' type Props = { value: string | void, onChange?: (string | void) => any } const TextField = ({ onChange, value, ...otherProps }: Props) => { const handleChange = event => onChange && onChange(event.target.value) return ( ...
src/routes/notFound/index.js
rowinf/robertirwin.me-v2
/** * 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 NotFound from './NotFoun...
src/svg-icons/action/alarm-off.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAlarmOff = (props) => ( <SvgIcon {...props}> <path d="M12 6c3.87 0 7 3.13 7 7 0 .84-.16 1.65-.43 2.4l1.52 1.52c.58-1.19.91-2.51.91-3.92 0-4.97-4.03-9-9-9-1.41 0-2.73.33-3.92.91L9.6 6.43C10.35 6.16 11.16 6...
src/power-sheet/PowerSheet.js
Synchro-TEC/apollo-11
import React from 'react'; import ReactDOM from 'react-dom'; import Proptypes from 'prop-types'; import update from 'immutability-helper'; import ReactList from 'react-list'; import axios from 'axios'; import nanoid from 'nanoid'; import sift from 'sift'; import _get from 'lodash/get'; import _sortBy from 'lodash/sortB...
src/icons/Battery50Icon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class Battery50Icon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path fillOpacity=".3" d="M34 10.67C34 9.19 32.81 8 31.33 8H28V4h-8v4h-3.33C15.19 8 14 9.19 14 10.67V26h20V10.67z...
src/components/switch-box.js
chaserx/reaction
import React from 'react'; export default class SwitchBox extends React.Component { constructor() { super(); this.state = { hasStarted: false, isComplete: false, hasClicked: false }; this.startTime = null; this.stopTime = null; } componentWillMount() { // setTimeout((...
fields/types/html/editor/audio/audio-editing-block.js
nickhsine/keystone
'use strict'; import AudioSelector from '../../../../../admin/client/components/AudioSelector'; import React, { Component } from 'react'; class AudioEditingBlock extends Component { constructor (props) { super(props); } render () { const { apiPath, onToggle, toggleModal, selectionLimit, isModalOpen } = this.pr...
docs/src/app/components/pages/components/Dialog/ExampleDialogDatePicker.js
rhaedes/material-ui
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; import DatePicker from 'material-ui/DatePicker'; /** * Dialogs can be nested. This example opens a Date Picker from within a Dialog. */ export defa...
classic/src/scenes/mailboxes/src/Scenes/UpdatesScene/CheckingUpdatesScene/CheckingUpdatesSceneContent.js
wavebox/waveboxapp
import React from 'react' import PropTypes from 'prop-types' import shallowCompare from 'react-addons-shallow-compare' import { DialogContent, DialogActions, Button, LinearProgress } from '@material-ui/core' import { updaterStore } from 'stores/updater' import UpdateModalTitle from '../Common/UpdateModalTitle' import {...
blueocean-material-icons/src/js/components/svg-icons/navigation/menu.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const NavigationMenu = (props) => ( <SvgIcon {...props}> <path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/> </SvgIcon> ); NavigationMenu.displayName = 'NavigationMenu'; NavigationMenu.muiName = 'SvgIcon'; export default NavigationMenu;
react/private/FieldMessage/FieldMessage.js
seekinternational/seek-asia-style-guide
import styles from './FieldMessage.less'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ErrorIcon from '../../ErrorIcon/ErrorIcon'; import TickCircleIcon from '../../TickCircleIcon/TickCircleIcon'; import Text from '../../Text/Text'; export default class FieldMessage extends C...
src/svg-icons/communication/stop-screen-share.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStopScreenShare = (props) => ( <SvgIcon {...props}> <path d="M21.22 18.02l2 2H24v-2h-2.78zm.77-2l.01-10c0-1.11-.9-2-2-2H7.22l5.23 5.23c.18-.04.36-.07.55-.1V7.02l4 3.73-1.58 1.47 5.54 5.54c.61-.33 1...
src/svg-icons/maps/directions-subway.js
ngbrown/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...
source/components/Iframe/index.js
everydayhero/impact-board
import React from 'react' import Heading from '../Heading' import Section from '../Section' const Iframe = (props) => ({ props, componentDidMount () { if (global.iFrameResize) { global.iFrameResize() } }, render () { const { title, url } = this.props return ( <Section> {...
src/js/bundles/menubar.js
rscarvalho/build-status
import React from 'react'; import ReactDOM from 'react-dom'; import MenubarWindow from '../containers/MenubarWindow'; ReactDOM.render( <MenubarWindow/>, document.getElementById('react-root') );
app/components/StoreStockBadge.js
Byte-Code/lm-digitalstore
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import glamorous from 'glamorous'; import CheckIcon from 'material-ui/svg-icons/navigation/check'; import BlockIcon from 'material-ui/svg-icons/navigation/close'; import { getStockLabel } from '.....
src/js/components/ui/LocationInput/LocationInput.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Geosuggest from 'react-geosuggest'; import styles from './LocationInput.scss'; import Input from "../Input/Input"; import {action} from "@storybook/addon-actions"; export default class LocationInput extends Component { static pro...
github-projects/src/router.js
xrlin/xrlin.github.io
import React from 'react'; import { Router, Route } from 'dva/router'; import ProjectList from './routes/ProjectList'; function RouterConfig({ history }) { return ( <Router history={history}> <Route path="/" component={ProjectList} /> </Router> ); } export default RouterConfig;
app/javascript/mastodon/features/ui/components/tabs_bar.js
koba-lab/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { NavLink, withRouter } from 'react-router-dom'; import { FormattedMessage, injectIntl } from 'react-intl'; import { debounce } from 'lodash'; import { isUserTouching } from '../../../is_mobile'; import Icon from 'mastodon/components/icon'; import No...
client/src/Views/LogoutCallback.js
deepankarmalhan/fd-website
import React, { Component } from 'react'; import rp from 'request-promise'; export default class LogoutCallback extends Component { componentWillMount() { var endpoint; endpoint = (process.env.NODE_ENV === 'development') ? 'http://localhost:50001/api/auth/logout' : 'https://fd-website.herokuapp.com/api/auth/...
app/javascript/mastodon/containers/compose_container.js
Ryanaka/mastodon
import React from 'react'; import { Provider } from 'react-redux'; import PropTypes from 'prop-types'; import configureStore from '../store/configureStore'; import { hydrateStore } from '../actions/store'; import { IntlProvider, addLocaleData } from 'react-intl'; import { getLocale } from '../locales'; import Compose f...
src/components/ListBox/ListBoxField.js
carbon-design-system/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import { settings } from 'carbon-components'; import PropTypes from 'prop-types'; import ListBoxMenuIcon from './L...
components/Hero/HeroList.js
Dadidam/gladiator
import React from 'react'; import { Button, Table } from 'antd'; import { connect } from 'react-redux'; import { columns } from './heroListTableColumns'; import { setActiveTab, updatePlayer, changeHero } from '../../actions'; class HeroList extends React.Component { constructor(props) { super(props); ...
spec/javascripts/jsx/gradezilla/default_gradebook/components/SubmissionTraySpec.js
venturehive/canvas-lms
/* * Copyright (C) 2017 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
examples/server.js
AnSavvides/radium
/** * The examples provided by Formidable Labs are for non-commercial testing and * evaluation purposes only. Formidable Labs reserves all rights not expressly * granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHA...
src/common/label/InfoLabel.js
fastmonkeys/respa-ui
import React from 'react'; import PropTypes from 'prop-types'; import Label from 'react-bootstrap/lib/Label'; const InfoLabel = ({ labelStyle, labelText }) => { return ( <div className="app-InfoLabel"> <Label bsStyle={labelStyle}> { labelText } </Label> </div> ); }; InfoLabel.propTypes...
docs/app/Examples/elements/Button/Groups/ButtonExampleGroupIcon.js
koenvg/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleGroupIcon = () => ( <div> <Button.Group> <Button icon='align left' /> <Button icon='align center' /> <Button icon='align right' /> <Button icon='align justify' /> </Button.Group> {' '} <But...
docs/app/Examples/collections/Grid/Variations/GridExampleRelaxedVery.js
shengnian/shengnian-ui-react
import React from 'react' import { Grid, Image } from 'shengnian-ui-react' const GridExampleRelaxedVery = () => ( <Grid relaxed='very' columns={4}> <Grid.Column> <Image src='/assets/images/wireframe/image.png' /> </Grid.Column> <Grid.Column> <Image src='/assets/images/wireframe/image.png' /> ...
views/status_line.js
JimLiu/black-screen
import React from 'react'; export default React.createClass({ render() { return ( <div className="status-line"> <CurrentDirectory currentWorkingDirectory={this.props.currentWorkingDirectory}/> <VcsData data={this.props.vcsData}/> </div> ) ...
src/svg-icons/device/signal-wifi-1-bar.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi1Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" 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"/><path d="M6.67 14.86L12 21.49v.01...
client/src/components/General/ConfirmModal.js
patteri/slave-cardgame
import React from 'react'; import PropTypes from 'prop-types'; import { Modal, Button } from 'react-bootstrap'; import './style.css'; const ConfirmModal = props => ( <Modal className="Slave-modal Confirm-modal" show={props.show} backdrop={'static'}> <Modal.Header closeButton> <Modal.Title>{props.title}</Mo...
client/common/components/error-retrieving.js
jmeas/finance-app
import React from 'react'; export default function ErrorRetrieving({resourceName, retry}) { return ( <div className="emptyResourceList"> <div className="emptyResourceList-message"> Oops – there was an error while fetching {resourceName}. </div> <div className="emptyResourceList-explanat...
functional-tests/app/client/redux-hooks/components/Header.js
reimagined/resolve
import React from 'react' import { connectStaticBasedUrls } from '@resolve-js/redux' import { connect } from 'react-redux' import { Helmet } from 'react-helmet' const Header = ({ title, css, favicon }) => { const stylesheetLinks = css.map((href) => ({ rel: 'stylesheet', href })) const faviconLink = { rel: 'icon', ...
examples/src/views/App.js
LayGit/layui
import React from 'react' export default class App extends React.Component { render () { return ( <div> {this.props.children} </div> ) } } module.exports = exports['default']