path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/components/album/Album.js
primosdace/Mousie
import React from 'react'; import AlbumInfo from '../album-info/AlbumInfo'; const Album = props => ( <div className="Album"> <AlbumInfo author="Tame" title="The less" /> <h3>{props.children}</h3> </div> ); Album.propTypes = { children: React.PropTypes.string, }; Album.defaultProps = { children: null, }...
popup-study/screens/LoadingScreen.js
Morhaus/popupstudy
import React from 'react'; import { StyleSheet, Text, View, ActivityIndicator } from 'react-native'; export default class LoadingScreen extends React.Component { static route = { navigationBar: { visible: false, }, }; render() { return ( <View style={styles.container}> <View styl...
react/redux-start/react-redux-todos/src/components/App.js
kobeCan/practices
import React from 'react'; import AddTodo from '../containers/AddTodo'; import VisibleTodoList from '../containers/VisibleTodoList'; import Footer from './Footer'; const App = () => ( <div> <AddTodo /> <VisibleTodoList /> <Footer /> </div> ); export default App
src/Row.js
johanneshilden/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import CustomPropTypes from './utils/CustomPropTypes'; const Row = React.createClass({ propTypes: { /** * You can use a custom element for this component */ componentClass: CustomPropTypes.elementType }, getDefaultProps() { re...
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
dinushadev/angular-training
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/svg-icons/action/autorenew.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAutorenew = (props) => ( <SvgIcon {...props}> <path d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 ...
src/components/ListBox/__tests__/ListBoxMenu-test.js
jzhang300/carbon-components-react
import React from 'react'; import { mount } from 'enzyme'; import ListBox from '../'; describe('ListBoxMenu', () => { it('should render', () => { const wrapper = mount( <ListBox.Menu> <ListBox.MenuItem>Hello</ListBox.MenuItem> </ListBox.Menu> ); expect(wrapper).toMatchSnapshot(); })...
src/screens/FileOpenModal.js
mtacchino/JSCodeRun
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { StyleSheet, TextInput, Text, View, Modal, Button, Platform, Alert, FlatList, TouchableHighlight, TouchableOpacity, Image, ActivityIndicator, SafeAreaView } from 'react-native'; import fs from 'react-nat...
src/react.js
threepointone/glamor
import assign from 'object-assign' import PropTypes from 'prop-types' import React from 'react' import { isLikeRule, style, merge } from './index.js' export * from './index.js' // convenience // allows for elements to have a 'css' prop export function createElement(tag, allProps, ...children) { // todo - pull ids ...
src/PhpMob/ChangMinBundle/Resources/private/app/src/component/Badge.js
phpmob/changmin
import React, { Component } from 'react'; import PropTypes from 'prop-types'; export default class Badge extends Component { static propTypes = { data: PropTypes.object.isRequired, type: PropTypes.string, pill: PropTypes.bool, }; render() { const { type, data, pill } = this...
examples/counter/containers/Root.js
BayanGroup/redux
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import CounterApp from './CounterApp'; import configureStore from '../store/configureStore'; const store = configureStore(); export default class Root extends Component { render() { return ( <Provider store={store}> ...
react-ui/src/index.js
sebastienrohan/full-stack-react-heroku-starter
import React from 'react' import { render } from 'react-dom' import { BrowserRouter } from 'react-router-dom' import injectTapEventPlugin from 'react-tap-event-plugin' import WebFont from 'webfontloader' import getMuiTheme from 'material-ui/styles/getMuiTheme' import MuiThemeProvider from 'material-ui/styles/MuiThemePr...
src/svg-icons/hardware/headset.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareHeadset = (props) => ( <SvgIcon {...props}> <path d="M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h3c1.66 0 3-1.34 3-3v-7c0-4.97-4.03-9-9-9z"/> </SvgIcon> ...
src/svg-icons/editor/format-line-spacing.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatLineSpacing = (props) => ( <SvgIcon {...props}> <path d="M6 7h2.5L5 3.5 1.5 7H4v10H1.5L5 20.5 8.5 17H6V7zm4-2v2h12V5H10zm0 14h12v-2H10v2zm0-6h12v-2H10v2z"/> </SvgIcon> ); EditorFormatLineSpacing =...
node_modules/node_modules/recharts/demo/component/TextDemo.js
SerendpityZOEY/Solr-Search-React-UI
import React, { Component } from 'react'; import { Text } from 'recharts'; class TextDemo extends Component { state = { exampleText: 'This is really long text', x: 0, y: 0, width: 300, height: 200, angle: 0, scaleToFit: false, textAnchor: 'start', verticalAnchor: 'start', font...
app/client/components/startMap/goNorth.js
breakfast-mimes/cyber-mimes
import React from 'react'; import { Link } from 'react-router'; import messages from './messages' export default class goNorth extends React.Component { render(){ return( <div className='pointer' onClick={() => this.props.goNorthStart()}>Go {messages.goNorth[this.props.startMap.locationY]}</div> ) } ...
stories/components/icons/JobState.stories.js
buildkite/frontend
/* global module */ import React from 'react'; import { storiesOf } from '@storybook/react'; import { boolean } from '@storybook/addon-knobs'; import JobState from '../../../app/components/icons/JobState'; import JobStates from '../../../app/constants/JobStates'; const all = () => ( <table> <tbody> {Obje...
step6-serviceapi/node_modules/react-router/modules/Link.js
jintoppy/react-training
import React from 'react' import warning from './routerWarning' const { bool, object, string, func, oneOfType } = React.PropTypes function isLeftClickEvent(event) { return event.button === 0 } function isModifiedEvent(event) { return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey) } functio...
src/components/video_list.js
rahilka/ReactJS
// Component that will show the videos that the user searched for on the right side of the page // This component doesn't need state, it doesn't record any user intereactions, // it doesn't rerender itself, so we can make it functional component import React from 'react'; import VideoListItem from './video_list_item'...
App/components/material-ui/ListItem.js
araneforseti/caretaker-app
import React from 'react'; import { ThemeProvider } from 'react-native-material-ui'; import { ListItem as MaterialUiListItem } from 'react-native-material-ui'; import theme from '../../config/theme'; export default class ListItem extends React.Component { render() { return <ThemeProvider uiTheme={theme}><Materia...
tests/components/color-article-tests.js
Apercu/react-vis
import test from 'tape'; import React from 'react'; import {mount} from 'enzyme'; import { SensibleDefaults, ColorInXYPlot, ColorSpecificity, CategoryColorAtMarkLevel, CategoryColorAtMarkLevelCustomPalette, CategoryColorAtMarkLevelFixedStroke, GradientCharts, LinearColorAtMarkLevel, LinearColorAtMark...
src/client/components.js
phuedx/micro-device-lab
import React from 'react' import AppBar from 'material-ui/AppBar' import IconButton from 'material-ui/IconButton' import ActionCached from 'material-ui/svg-icons/action/cached' import Paper from 'material-ui/Paper' import { List, ListItem } from 'material-ui/List' import ActionTrendingDown from 'material-ui/svg-icons/a...
packages/material-ui-icons/src/SwitchCamera.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let SwitchCamera = props => <SvgIcon {...props}> <path d="M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 11.5V13H9v2.5L5.5 12 9 8.5V11h6V8.5l3.5 3.5-3.5 3....
src/components/DialogComponent.js
translationCoreApps/VerseCheck
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import {Dialog, CardHeader} from 'material-ui'; import {Glyphicon} from 'react-bootstrap'; import {getTranslatedParts} from '../helpers/localizationHelpers'; class DialogComponent extends Component { constructor(props) { super(props); ...
docs/app/Examples/elements/Button/Types/ButtonExampleLabeledProps.js
shengnian/shengnian-ui-react
import React from 'react' import { Button, Label } from 'shengnian-ui-react' const ButtonExampleLabeledProps = () => ( <div> <Button label={1048} icon='fork' labelPosition='left' /> <Button label='1,048' icon='fork' labelPosition='left' /> <Button label={{ content: '2,048' }} icon='heart' content='Like' ...
src/components/source/collection/CollectionSourceListContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import withAsyncData from '../../common/hocs/AsyncDataContainer'; import withCsvDownloadNotifyContainer from '../../common/hocs/CsvDownloadNotifyContainer'; import { fetchCollec...
src/Navigation.js
lakhman/react-native-navigation
/*eslint-disable*/ import React from 'react'; import {AppRegistry} from 'react-native'; import platformSpecific from './deprecated/platformSpecificDeprecated'; import Screen from './Screen'; import PropRegistry from './PropRegistry'; const registeredScreens = {}; function registerScreen(screenID, generator) { regi...
src/encoded/static/components/reference.js
T2DREAM/t2dream-portal
import React from 'react'; import _ from 'underscore'; export default function pubReferenceList(values) { // Render each of the links, with null for each value without an identifier property if (values && values.length) { const links = _.compact(values.map((value) => { if (value.identifier...
mapOverlay/generateUrl.js
wxtiles/mapbuilder
import React from 'react' import urlDialog from './urlDialog' class generateUrl extends React.Component { constructor() { super() this.state = {} this.state.isGeneratingUrl = false this.openDialog = this.openDialog.bind(this) this.closeDialog = this.closeDialog.bind(this) } componentWillMoun...
dev/components/molecules/addCodesPENDING.js
Thr1ve/Dispense
import React from 'react' import CodeInput from '../atoms/codeInput.js' import CodeOutput from '../atoms/codeOutput' // import AddCodesRequest from '../../models/addCodes.js' import Mui from 'material-ui' let { Paper, Snackbar, Dialog, FlatButton } = Mui // var log = require('bows')('addCodes.js') /* This is an a...
src/components/todoEntry.js
mweststrate/mobservable-react-todomvc
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import {observer} from 'mobx-react'; import {action} from 'mobx'; const ENTER_KEY = 13; @observer export default class TodoEntry extends React.Component { render() { return (<input ref="newField" className="new-t...
regulations/static/regulations/js/source/views/sidebar/definition-view.js
18F/regulations-site
import React from 'react'; import ReactDOM from 'react-dom'; import Definitions from './definitions'; const $ = require('jquery'); const Backbone = require('backbone'); const Helpers = require('../../helpers'); const Router = require('../../router'); const MainEvents = require('../../events/main-events'); const Sideba...
renderer/components/TabControl/PersistentTabControl.js
LN-Zap/zap-desktop
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import Tab from './Tab' const Container = styled.div` display: ${props => (props.isActive ? 'display' : 'none')}; ` const PersistentTabControl = ({ activeTab, children, className }) => ( <> {React.Children.map(...
fixtures/kitchensink/src/features/syntax/Promises.js
altiore/webpack-react
/** * 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() { return Promise.resolve([ { id: 1,...
lib/src/list.js
SerendpityZOEY/Fixr-RelevantCodeSearch
import React from 'react'; import Paper from 'material-ui/Paper'; import {Card, CardActions, CardHeader, CardText} from 'material-ui/Card'; import Cards from './card.js'; import {Grid, Row, Col} from 'react-flexbox-grid/lib/index'; import GraphCard from './graphcard.js'; const style = { paperstyle:{ width...
frontend/src/components/about.js
hai5nguy/akaamo_app
import React from 'react'; import Card from './expandable-card'; import info from '../assets/about-card-info.js'; import '../styles/card.scss'; class About extends React.Component { render () { const cards = info.map(card => (<Card info={card} />)); return (<div className="about-us"> <div className="content...
app/index.js
natac13/london-ontario-data
import React from 'react' import { render } from 'react-dom' import { Router, browserHistory } from 'react-router' import { Provider } from 'react-redux' import routes from './config/routes' import { Map } from 'immutable' import { syncHistoryWithStore } from 'react-router-redux' /** Global styles */ import './scss/se...
app/javascript/mastodon/features/ui/components/column_header.js
kagucho/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class ColumnHeader extends React.PureComponent { static propTypes = { icon: PropTypes.string, type: PropTypes.string, active: PropTypes.bool, onClick: PropTypes.func, hideOnMobile: PropTypes.bool, columnHeaderId: P...
src/TextInput.js
iegik/react-autocomplete
import React from 'react'; export default (props = {}) => { return ( <input {...{ type: 'text', ...props, autoComplete: 'off', }} /> ) };
test/center.spec.js
aush/react-center
import React from 'react'; import { shallow } from 'enzyme'; import { expect } from 'chai'; import Prefixer from 'inline-style-prefixer'; import Center from '../src/center'; describe('Center', () => { it('should exist', () => { expect(Center).to.be.ok; }); it('should render', () => { const wrapper = shallow(<...
test/test_helper.js
prexsa/m3specs
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/container/book-detail.js
tareq-rar/reduxReact
/** * Created by tareq on 18/11/17. */ import React, { Component } from 'react'; import { connect } from 'react-redux'; class BookDetail extends Component{ render() { if(!this.props.book){ return <div>Select a book to get start</div> } return( <div> ...
src/shared/components/teamCard/teamCard.js
sethbergman/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import styles from './teamCard.css'; const TeamCard = ({ name, role, slackUsername, email, isBoard, description, imageSrc }) => ( <div className={styles.teamCard}> {imageSrc && <img src={imageSrc} alt={`Headshot of ${name}`} />} <h6 className={...
app/util/short-aliases.js
igr-santos/bonde-client
import React from 'react' import { Route } from 'react-router' export const r = (path, component) => <Route path={path} component={component} />
src/routes/register/Register.js
jtiscione/redux-chess
/** * 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/client/main.js
itxd/hacker-menu
import React from 'react' import StoryBox from './story_box.js' React.render( <StoryBox />, document.getElementById('container') )
Veo/node_modules/react-native/Libraries/Components/TextInput/TextInput.js
JGMorgan/Veo
/** * 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. * * @provides...
react-native-life/ReactNativeLife/__tests__/index.android.js
CaMnter/front-end-life
import 'react-native'; import React from 'react'; import Index from '../index.android.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
Rosa_Madeira/Revendedor/src/components/vendas/ProdutoItem.js
victorditadi/IQApp
import React, { Component } from 'react'; import { Text, TouchableWithoutFeedback, View, Image } from 'react-native'; import { CardSection, Card, Button } from '../common/card_produto'; import { Icon } from 'native-base'; class ProdutoItem extends Component { render() { const { categoria, nome_produto, valor } ...
test/dialog-spec.js
vmaudgalya/material-ui
import React from 'react'; import Dialog from 'dialog'; import {spy} from 'sinon'; import TestUtils from 'react-addons-test-utils'; describe('Dialog', () => { it('appends a dialog to the document body', () => { let testClass = 'test-dialog-class'; TestUtils.renderIntoDocument( <Dialog open={tru...
client/modules/Poll/components/PollCreateModal/PollCreateModal.js
maicongil/fcc_voting_app
import React, { Component } from 'react'; import { Modal, Button, Form, Input } from 'semantic-ui-react'; import { Field, reduxForm } from 'redux-form'; import PollNameInput from './PollNameInput'; import PollOptionInput from './PollOptionInput'; class PollCreateModal extends Component{ constructor(props) { ...
src/server.js
gokberkisik/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel/polyfill'; import path from 'path'; import express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import Router from './routes'; import Html from './components/Html'; const server = global.serve...
src/scenes/home/header/burger/burger.js
alexspence/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import burger from 'images/icons/menu.svg'; import styles from './burger.css'; const Burger = (props) => { const { onClick } = props; const handleClick = (e) => { e.preventDefault(); onClick(); }; return ( <div className={styles.burge...
app/app.js
ayqy/ready-to-work
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { ConnectedRouter } from 'react-router-redux'; import { createMemoryHistory } from 'history'; import routes from './routes'; import configureStore from './store'; import * as ipcRenderer from './i...
client/reactApp.js
ingelity/react-start
import React from 'react'; import { render } from 'react-dom'; import { createStore, applyMiddleware, combineReducers } from 'redux'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import injectTapEventPlugin from 'react-tap-event-plugin'; import routes from './routes'; i...
client/src/components/app.js
ronniehedrick/scapeshift
import React, { Component } from 'react'; import HeaderTemplate from './template/header'; import FooterTemplate from './template/footer'; class App extends Component { render() { return ( <div> <HeaderTemplate logo="Your Site" /> <div className="container"> {this.props.children} ...
src/containers/App.js
stphnem/NBCUniversal_Assessment
import React, { Component } from 'react'; import './App.css'; import ShowCollection from './ShowCollection/ShowCollection'; class App extends Component { render() { return ( <div className="App"> <ShowCollection /> </div> ); } } export default App;
plugins/subschema-plugin-type-wizard/src/WizardMixin.js
jspears/subschema-devel
import React, { Component } from 'react'; import PropTypes from 'subschema-prop-types'; import UninjectedField from 'subschema-field'; import UninjectedFieldSet from 'subschema-fieldset'; import { flattenFields as fields } from 'subschema-utils'; function donner(d) { d && d(); } export default class WizardMixin e...
src/stories/2017-08-20-midsummer-in-helsinki.js
danpersa/remindmetolive-react
import React from 'react'; import PostImage from '../components/story/PostImage'; import TwoPostImages from '../components/story/TwoPostImages'; import StoryPage from '../components/story/StoryPage'; import StoryTextBlock from '../components/story/StoryTextBlock'; import StoryImages from '../components/story/StoryImage...
client/src/components/About/index.js
seripap/darkwire.io
/* eslint-disable */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import apiUrlGenerator from '../../api/generator'; import styles from './styles.module.scss'; class About extends Component { constructor(props) { super(props); this.state = { roomId: props.roomId, ...
test/App.js
michael-lowe-nz/NBA-battles
import React from 'react' import { createRenderer } from 'react-addons-test-utils' import createComponent from 'react-unit' import tape from 'tape' import addAssertions from 'extend-tape' import jsxEquals from 'tape-jsx-equals' const test = addAssertions(tape, {jsxEquals}) import Header from '../components/Header' co...
packages/react-scripts/fixtures/kitchensink/src/index.js
scyankai/create-react-app
/** * 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...
docs/app/Examples/modules/Dropdown/States/DropdownExampleActive.js
shengnian/shengnian-ui-react
import React from 'react' import { Dropdown } from 'shengnian-ui-react' const options = [ { key: 1, text: 'Choice 1', value: 1 }, { key: 2, text: 'Choice 2', value: 2 }, ] const DropdownExampleActive = () => ( <Dropdown text='Dropdown' options={options} open /> ) export default DropdownExampleActive
pootle/static/js/auth/components/SignUpForm.js
ta2-1/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 assign from 'object-assi...
src/LabelTitle/index.js
christianalfoni/ducky-components
import Icon from '../Icon'; import React from 'react'; import PropTypes from 'prop-types'; import Typography from '../Typography'; import Counter from '../Counter'; import classNames from 'classnames'; import styles from './styles.css'; function getTypographyType(size) { switch (size) { case 'small': return '...
app/Nav/NavIcon.js
arnef/ligatool-hamburg
import React from 'react'; import { Icon } from '../components'; export default function NavIcon(name, color) { return <Icon name={name} color={color} size={32} />; }
Example/__tests__/index.ios.js
CheragV/react-native-tinderlike-swiper
import 'react-native'; import React from 'react'; import Index from '../index.ios.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
src/icons/CloseRound.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class CloseRound extends React.Component { render() { if(this.props.bare) { return <g> <path d="M437.5,386.6L306.9,256l130.6-130.6c14.1-14.1,14.1-36.8,0-50.9c-14.1-14.1-36.8-14.1-50.9,0L256,205.1L125.4,74.5 c-14.1...
draft-js-undo-plugin/src/__test__/index.js
draft-js-plugins/draft-js-plugins-v1
import React from 'react'; import { shallow, mount } from 'enzyme'; import createUndoPlugin from '../index'; import { expect } from 'chai'; import { EditorState } from 'draft-js'; describe('UndoPlugin Config', () => { const onChange = () => undefined; let editorState; beforeEach(() => { editorState = Editor...
app/components/H3/index.js
daicas/react-boilerplate-examp
import React from 'react'; function H3(props) { return ( <h3 {...props} /> ); } export default H3;
7.0.2/examples/wizard/dist/bundle.js
erikras/redux-form-docs
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__e...
src/svg-icons/device/signal-cellular-no-sim.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularNoSim = (props) => ( <SvgIcon {...props}> <path d="M18.99 5c0-1.1-.89-2-1.99-2h-7L7.66 5.34 19 16.68 18.99 5zM3.65 3.88L2.38 5.15 5 7.77V19c0 1.1.9 2 2 2h10.01c.35 0 .67-.1.96-.26l1.88 1.88 ...
src/js/components/icons/base/Radial.js
kylebyerly-hp/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...
src/Tooltip.js
deerawan/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; const Tooltip = React.createClass({ mixins: [BootstrapMixin], propTypes: { /** * An html id attribute, necessary for accessibility * @...
components/RenderField/index.js
bmagic/acdh-client
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' const RenderField = (props) => { const { input, label, type, className, meta: { touched, error } } = props const passwordValidationClasses = classNames([ className, {'is-danger': touched && error} ]) retu...
src/layouts/index.js
aditirajagopal/TanglesHairExtensionsAndMore
import React from 'react' import PropTypes from 'prop-types' import Link from 'gatsby-link' import Helmet from 'react-helmet' import kellieLogo from '../images/kellie_logo.svg' import kellieSocials from '../images/kellie_socials.png' import './index.css' const TemplateWrapper = ({ children }) => <div> <Helmet ...
src/components/App.js
quyetvv/react-starter-kit
/** * 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/__tests__/ButtonToolbar.spec.js
reactstrap/reactstrap
import React from 'react'; import { shallow } from 'enzyme'; import { ButtonToolbar } from '../'; describe('ButtonToolbar', () => { it('should render children', () => { const wrapper = shallow(<ButtonToolbar>Ello world</ButtonToolbar>); expect(wrapper.text()).toBe('Ello world'); expect(wrapper.hasClass(...
client/components/map/bottombar/BottomChat.js
LintLions/Respondr
import React, { Component } from 'react'; import { View, Keyboard, Text, } from 'react-native'; import { connect } from 'react-redux'; import styles from '../../../styles/styles'; import HelpRequest from './HelpRequest'; import HelpRequestAccepted from './HelpRequestAccepted'; import { messages as testMessages } ...
app/jsx/files/RestrictedDialogForm.js
venturehive/canvas-lms
/* * Copyright (C) 2015 - 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...
ui/js/containers/finish_window.js
FujiHaruka/shakyo-programming
import React from 'react' import {connect} from 'react-redux' import {hideGameFinishWindow} from '../actions' import classnames from 'classnames' let FinishWindow = React.createClass({ propTypes: { display: React.PropTypes.bool, close: React.PropTypes.func }, render () { const s = this let {prop...
src/components/Toolbar/inputs/document.js
crossfield/react-drafts
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactDropzone from 'react-dropzone'; import { SUPPORTED_DOCUMENT_TYPES } from '../../../constants/file'; import Modal from '../../shared/modal'; import InputControls from './controls'; /* * Document upload/embed input. * Has two mai...
client/components/Omnichannel/Skeleton.js
VoiSmart/Rocket.Chat
import { Box, Skeleton } from '@rocket.chat/fuselage'; import React from 'react'; export const FormSkeleton = (props) => ( <Box w='full' pb='x24' {...props}> <Skeleton mbe='x8' /> <Skeleton mbe='x4' /> </Box> );
src/front-end/js/pages/Dashboard.js
aleksey-gonchar/emmofret
import React from 'react' import HelloWorld from '../components/HelloWorld.js' import TopNavbar from '../components/TopNavbar.js' class Dashboard extends React.Component { render () { return ( <div> <TopNavbar/> <div className='container-fluid'> <HelloWorld /> </div> ...
packages/material-ui/src/transitions/Slide.js
cherniavskii/material-ui
// @inheritedComponent Transition import React from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import EventListener from 'react-event-listener'; import debounce from 'lodash/debounce'; import Transition from 'react-transition-group/Transition'; import { polyfill } from 'react-lifecy...
docs/app/Examples/modules/Sidebar/index.js
shengnian/shengnian-ui-react
import React from 'react' import Overlay from './Overlay' import Push from './Push' import ScaleDown from './ScaleDown' import SlideAlong from './SlideAlong' import SlideOut from './SlideOut' import Uncover from './Uncover' const SidebarExamples = () => ( <div> <Overlay /> <Push /> <ScaleDown /> <Sl...
src/js/components/icons/base/Support.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...
server/sonar-web/src/main/js/components/shared/assignee-helper.js
vamsirajendra/sonarqube
import React from 'react'; import Avatar from './avatar'; export default class Assignee extends React.Component { render () { let avatar = this.props.user ? <span className="spacer-right"><Avatar email={this.props.user.email} size={16}/></span> : null; let name = this.props.user ? this.props.user.nam...
app/containers/ResultPanel.js
transparantnederland/browser
import _ from 'lodash'; import React from 'react'; import { connect } from 'react-redux'; import api from '../utils/api'; import StickyHeaderLayout from '../layouts/StickyHeaderLayout'; import Results from '../components/Results'; import Search from '../components/Search'; const WILDCARD = '*'; function loadData(pr...
src/svg-icons/image/filter-4.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter4 = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14...
actor-apps/app-web/src/app/components/common/Document.react.js
stonegithubs/actor-platform
import React from 'react'; import classnames from 'classnames'; class Document extends React.Component { static propTypes = { content: React.PropTypes.object.isRequired, className: React.PropTypes.string }; constructor(props) { super(props); } render() { const { content, className } = this....
site/components/StaticHTMLBlock.js
srajko/react-dnd
import React from 'react'; import CodeBlock from './CodeBlock'; export default class StaticHTMLBlock { static propTypes = { html: React.PropTypes.string.isRequired }; render() { const { html } = this.props; // Here goes a really hack-ish way to convert // areas separated by Markdown <hr>s into ...
example/src/screens/types/tabs/TabOne.js
eeynard/react-native-navigation
import React from 'react'; import {View, Text} from 'react-native'; class TabOne extends React.Component { render() { return ( <View> <Text>Tab One</Text> </View> ); } } export default TabOne;
blueprints/route/files/src/routes/__name__/components/__name__.js
youdeshi/single-page-app-best-practice-client
import React from 'react' import classes from './<%= pascalEntityName %>.scss' export const <%= pascalEntityName %> = () => ( <div className={classes['<%= pascalEntityName %>']}> <h4><%= pascalEntityName %></h4> </div> ) export default <%= pascalEntityName %>
httpdocs/theme/react/hooks-app/opendesktop-home/function/IntroductionDetailPersonal.js
KDE/ocs-webserver
import React from 'react'; function IntroductionDetailPersonal(props){ return( <div className="detail-personal detail"> <span class="arrow-down"></span> <div className="icon-container"> <a href="https://cloud.opendesktop.org/"> <div className="icon"></div> </a> </div> ...
src/views/np/NPRow.js
bostontrader/senmaker
// @flow import React from 'react' import {validateNP} from '../../data/Validator' //import NP from '../../data/np/NP' import NPActions from '../../data/np/NPActions' function NPRow(props:Object):Object { let {np} = props validateNP(np) const onClickEditNP = () => NPActions.onClickEditNP(np) ...
node_modules/react-router/es6/Route.js
signalcat/UIportfolio
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement } from './RouteUtils'; import { component, components } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var func = _React$PropTypes.func; /** * A <Route> is use...
pootle/static/js/admin/components/AdminController.js
phlax/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 Backbone from 'backbone'; import $ from 'jquery'; i...
src/about/index.js
thiagodebastos/react-future-stack
import React from 'react'; import Layout from '../../components/Layout'; import { title, html } from './index.md'; class AboutPage extends React.Component { componentDidMount() { document.title = title; } render() { return ( <Layout> <h1>{title}</h1> <div // eslint-disabl...
src/components/portfolio-header.js
relwiwa/fcc-portfolio-page
import React from 'react'; import '../styles/portfolio-header.scss'; class PortfolioHeader extends React.Component { constructor(props) { super(props); this.state = { showNavigation: false }; } toggleNavigation() { this.setState({ showNavigation: !this.state.showNavigation }); ...