path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/scripts/components/import/searchResult.js
bluedaniel/Kakapo-app
import React from 'react'; import { FormattedMessage, FormattedNumber } from 'react-intl'; import { push } from 'connected-react-router'; import { soundActions } from 'actions/'; export default ({ i, service, sound, dispatch }) => { const handleClick = () => { let actionParams; if (service === 'youtube') { ...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/antd/es/input-number/index.js
bhathiya/test
import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
frontend/src/App.js
Muhiz/filmfinder
import React from 'react'; import {render} from 'react-dom'; import axios from 'axios'; import ShowsList from './ShowsList.js'; let apiBase = 'https://filmfinder-api.herokuapp.com/api'; let theatres = []; let shows = []; let Loader = function(props){ if(!props.isReady){ return (<div className="loader"...
react/L3/src/index.js
luolisave/starters
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import { createStore, applyMiddleware } from 'redux'; import thunk from 'redux-thunk'; import rootReducer from './rootReducer'; import { composeWithDevTools } from 'redux-devtools-extension'; import { Provider } ...
index.ios.js
ColdForge/icebox
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class iceboxiOS extends Component { render() { return ( <View style={styles.container}> <Tex...
public/javascripts/modules/App.js
McLemore/ant
/* eslint-disable import/no-extraneous-dependencies */ import React from 'react'; import Nav from './Nav'; import util from '../common/util'; import '../../stylesheets/modules/App.less'; class App extends React.Component { render() { let items = [{ key: 'home', to: '/', icon: 'home', name...
ReactApp/screens/first.load.ios.js
johnsiwicki/tbsrn
/** * First Load * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ 'use strict'; /* ============================== Initialise Component =============================== */ // React import React, { Component } from 'react'; import { StyleSheet, View, Text, ...
framework/react-native/meituan/src/RootScene.js
huajianmao/learning
import React, { Component } from 'react'; import { StyleSheet, Text, View, StatusBar } from 'react-native'; import { Router, Scene, Actions } from 'react-native-router-flux'; import HomeScene from './scene/home/index' import NearbyScene from './scene/nearby/index' import DiscoverScene from './scene/discover/index' im...
Libraries/Components/WebView/WebView.ios.js
ptomasroos/react-native
/** * 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...
src/client/app/footer.react.js
skaldo/este
import Component from '../components/component.react'; import React from 'react'; import {FormattedHTMLMessage} from 'react-intl'; export default class Footer extends Component { static propTypes = { msg: React.PropTypes.object.isRequired } render() { const {msg: {app: {footer}}} = this.props; ret...
actor-apps/app-web/src/app/utils/require-auth.js
nguyenhongson03/actor-platform
import React from 'react'; import LoginStore from 'stores/LoginStore'; export default (Component) => { return class Authenticated extends React.Component { static willTransitionTo(transition) { if (!LoginStore.isLoggedIn()) { transition.redirect('/auth', {}, {'nextPath': transition.path}); }...
src/main.js
avidreder/monmach-client
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import AppContainer from './containers/AppContainer' // ======================================================== // Store Instantiation // ======================================================== const initialState...
Frontend/src/search-bar.js
fabiofernandesx/kbArticle
import React, { Component } from 'react'; class SearchBar extends Component { constructor(props){ super(props); this.state={ term: '' }; } render() { return( <div className="form-group"> <label>Start to typing for articles search</label> <input type="text" className="form-control" plac...
ui/js/dfv/src/components/field-wrapper/field-error-boundary.js
pods-framework/pods
/** * External dependencies */ import React from 'react'; import PropTypes from 'prop-types'; class FieldErrorBoundary extends React.Component { constructor( props ) { super( props ); this.state = { hasError: false, error: null, }; } static getDerivedStateFromError( error ) { return { hasError:...
examples/tree-view/index.js
joaomilho/redux
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import Node from './containers/Node' import configureStore from './store/configureStore' import generateTree from './generateTree' const tree = generateTree() const store = configureStore(tree) ...
app/components/link/index.js
MakersLab/farm-client
import React from 'react'; const Link = (href, a) => (<a href={href}>{a}</a>); export default Link;
src/Textfield/Helptext.js
kradio3/react-mdc-web
import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; const propTypes = { children: PropTypes.node, focused: PropTypes.bool, helptextPersistent: PropTypes.bool, helptextValidation: PropTypes.bool, invalid: PropTypes.bool, }; const ROOT = 'mdc-text-field-helper-t...
mxcube3/ui/containers/PleaseWaitDialog.js
mguijarr/mxcube3
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { Modal, ProgressBar, Button } from 'react-bootstrap'; import { setLoading } from '../actions/general'; export class PleaseWaitDialog extends React.Component { constructor(props) { super(props); ...
src/components/buttons/Button.js
ProAI/react-essentials
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import BaseTouchable from '../../utils/rnw-compat/BaseTouchable'; import { BUTTON_COLORS, SIZES } from '../../utils/constants'; import useAction, { ActionPropTypes } from '../../hooks/useAction'; import useTrigger, { TriggerProp...
app/javascript/flavours/glitch/components/display_name.js
im-in-space/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { autoPlayGif } from 'flavours/glitch/util/initial_state'; export default class DisplayName extends React.PureComponent { static propTypes = { ac...
src/routes/user/Filter.js
tigaly/antd-admin
import React from 'react' import PropTypes from 'prop-types' import moment from 'moment' import { FilterItem } from '../../components' import { Form, Button, Row, Col, DatePicker, Input, Cascader, Switch } from 'antd' import city from '../../utils/city' const Search = Input.Search const { RangePicker } = DatePicker c...
src/Enterbutton.js
RuiGeng/interview_test
import React from 'react' export default React.createClass({ render: function() { return( <div className = "row" > <button type="button" className = "mainlogin mainlogin__nextbtn main--center" onClick={this.props.validateUser}>{this.props.text}</button> </div> ...
docs/src/Root.js
zerkms/react-bootstrap
import React from 'react'; import Router from 'react-router'; const Root = React.createClass({ statics: { /** * Get the list of pages that are renderable * * @returns {Array} */ getPages() { return [ 'index.html', 'introduction.html', 'getting-started.html',...
src/docs/components/samples/ConfirmationForm.js
grommet/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Box from 'grommet/components/Box'; import Form from 'grommet/components/Form'; import FormFields from 'grommet/components/FormFields'; import FormField from 'grommet...
src/components/PageControl.js
jacklam718/react-native-carousel-component
// @flow import React, { Component } from 'react'; import type { ReactElement } from 'react'; import { View, StyleSheet } from 'react-native'; const CIRCLE_SIZE = 4; const styles = StyleSheet.create({ container: { alignItems: 'center', justifyContent: 'center', }, innerContainer: { flexDirection: '...
src/components/LoginForm.js
brianyamasaki/rideshare
import React, { Component } from 'react'; import { TouchableWithoutFeedback, Image } from 'react-native'; import { connect } from 'react-redux'; import { Actions } from 'react-native-router-flux'; import { Card, CardSection, InputNoLabel, Button, Spinner, AnchorText, ErrorMessage } from './common'...
src/browser/app/Header.js
TheoMer/Gyms-Of-The-World
// @flow import type { State, User } from '../../common/types'; import React from 'react'; import linksMessages from '../../common/app/linksMessages'; import { Box } from '../../common/components'; import { FormattedMessage } from 'react-intl'; import { Link } from '../components'; import { compose } from 'ramda'; impo...
util/ReadJSON.js
xeejp/xee_double_auction
import React from 'react' export function ReadJSON() { if (typeof ReadJSON.text === 'undefined') ReadJSON.text = require('./language.json') return ReadJSON.text } export function LineBreak(text) { var regex = /(\n)/g return text.split(regex).map(function (line) { if (line.match(regex)) { return Reac...
src/components/slide.js
waywaaard/spectacle
/* eslint-disable no-invalid-this */ import React from 'react'; import PropTypes from 'prop-types'; import isUndefined from 'lodash/isUndefined'; import { getStyles } from '../utils/base'; import Radium from 'radium'; import { addFragment } from '../actions'; import { Transitionable, renderTransition } from './transiti...
src/routes/adminNew/index.js
oct16/Blog-FE
import React from 'react'; import Layout from 'components/Layout'; import New from './New'; const title = 'New Post'; export default { path: '/admin/new', name: 'new', action() { return { title, component: <Layout><New title={title} /></Layout>, }; }, };
core/src/plugins/access.ajxp_conf/res/js/AdminPlugins/updater/UpdaterDashboard.js
pydio/pydio-core
/* * Copyright 2007-2017 Charles du Jeu - Abstrium SAS <team (at) pyd.io> * This file is part of Pydio. * * Pydio 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, either version 3 of the License, o...
Hebrides/SmartHome/Global/Constant.js
HarrisLee/React-Native-Express
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { Platform, Dimensions } from 'react-native'; const {height,width} = Dimensions.get('window'); // 第一种设置全局变量的方法 // export default { // nameExport : '全局变量', // screen_width ...
src/svg-icons/action/touch-app.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTouchApp = (props) => ( <SvgIcon {...props}> <path d="M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74zm9.84 4.63l-4....
src/svg-icons/content/next-week.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentNextWeek = (props) => ( <SvgIcon {...props}> <path d="M20 7h-4V5c0-.55-.22-1.05-.59-1.41C15.05 3.22 14.55 3 14 3h-4c-1.1 0-2 .9-2 2v2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2...
docs-src/js/components/options/CloseButton.js
gomo/react-calcpicker
import React from 'react' import {CalcPicker, Rect, Action} from '../../../../dist/react-calcpicker' import SyntaxHighlighter from 'react-syntax-highlighter' import { tomorrowNightEighties } from 'react-syntax-highlighter/dist/styles' export default class CloseButton extends React.Component { constructor(props) { ...
src/components/Footer/Footer.js
jhlav/mpn-web-app
/** * 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 withStyles from 'isom...
examples/RaisedButton.js
chris-gooley/react-materialize
import React from 'react'; import Button from '../src/Button'; import Icon from '../src/Icon'; export default <div> <Button waves='light'>button</Button> <Button waves='light'>button<Icon left>cloud</Icon></Button> <Button waves='light'>button<Icon right>cloud</Icon></Button> </div>;
react/src/components/ThumbnailSizes/ThumbnailSize/index.js
sinfin/folio
import React from 'react' import Scroller from './Scroller' import { RawPicture } from 'components/Picture' class ThumbnailSize extends React.Component { constructor (props) { super(props) this.state = { editing: false } } save = (offset) => { this.props.updateThumbnail(this.props.thumbKey, offset...
src/plugins/ConsolePlugin/ConsolePanel.js
whinc/xConsole
import React from 'react' import './ConsolePanel.css' import {ErrorBoundary, MessageBox} from './components' export default class ConsolePanel extends React.Component { constructor (props) { super(props) this.state = { messages: [], // flag indicate if setting panel visble isSetti...
src/ColorPicker/color-picker-hsb.js
skyiea/wix-style-react
import React from 'react'; import {object, func} from 'prop-types'; import color from 'color'; import clamp from 'lodash/clamp'; import WixComponent from '../BaseComponents/WixComponent'; import {getBoundingRect} from './utils'; import css from './color-picker-hsb.scss'; export default class ColorPickerHsb extends W...
app/containers/EditStudents/EditStudents.js
klpdotorg/tada-frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import get from 'lodash.get'; import isEmpty from 'lodash.isempty'; import { connect } from 'react-redux'; import { EditStudentsView } from '../../components/EditStudents'; import { getBoundariesEntities, getLanguages } from '../../actions';...
generators/app/templates/src/index.js
jonidelv/generator-create-redux-app
import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import store from './store' import Routes from './routes' import './styles/globalStyles.css' import * as serviceWorker from './utils/serviceWorker' render( <Provider store={store}> <Routes /> </Provider>, docu...
js/src/NoAccess.js
syslo/file_publisher
import React from 'react' export default class NoAccess extends React.Component { render() { return ( <div> <p>You have no access!</p> </div> ) } }
Example/src/TagInputExample.js
jwohlfert23/react-native-tag-input
import React, { Component } from 'react'; import { Text, View, Platform, } from 'react-native'; import TagInput from 'react-native-tag-input'; const inputProps = { keyboardType: 'default', placeholder: 'email', autoFocus: true, style: { fontSize: 14, marginVertical: Platform.OS == 'ios' ? 10 : -2...
src/views/Activity/MiddleTitle.js
daxiangaikafei/QBGoods
import React from 'react' import classNames from 'classnames' import styles from './channelEntry.less' import CSSModules from 'react-css-modules' const MiddleTitle = ({ title, className, today }) => { return ( <div styleName={classNames('middle-title', className, { 'today': today })}> {today ? <span styleN...
plugins/react/server/__test__/components/otherComponents/ComponentD.js
carteb/carte-blanche
import React from 'react'; export default () => <div></div>;
app/javascript/mastodon/components/domain.js
kirakiratter/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import IconButton from './icon_button'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; const messages = defineMessages({ unblockDomain: { id: 'account.unblock_domain', default...
src/svg-icons/hardware/laptop.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareLaptop = (props) => ( <SvgIcon {...props}> <path d="M20 18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"/> </SvgIcon> ); HardwareLaptop = pure(Hardwa...
src/app/components/common/OpenMobileAppButton/index.stories.js
GolosChain/tolstoy
import React from 'react'; import { storiesOf } from '@storybook/react'; import OpenMobileAppButton from './index'; storiesOf('OpenMobileAppButton', module).add('button', () => ( <div> <OpenMobileAppButton onClick={noop} onHide={noop} onHideForever={noop} /> ...
app/client/src/components/ShiftScheduler/ShiftScheduler.js
uprisecampaigns/uprise-app
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import moment from 'moment'; import DatePicker from 'material-ui/DatePicker'; import TimePicker from 'material-ui/TimePicker'; import Divider from 'material-ui/Divider'; import AddCircle from 'material-ui/svg-icons/content/add-circle'; import...
react-flux-mui/js/material-ui/src/svg-icons/image/photo-size-select-large.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoSizeSelectLarge = (props) => ( <SvgIcon {...props}> <path d="M21 15h2v2h-2v-2zm0-4h2v2h-2v-2zm2 8h-2v2c1 0 2-1 2-2zM13 3h2v2h-2V3zm8 4h2v2h-2V7zm0-4v2h2c0-1-1-2-2-2zM1 7h2v2H1V7zm16-4h2v2h-2V3zm0 16h2...
src/svg-icons/toggle/star.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleStar = (props) => ( <SvgIcon {...props}> <path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/> </SvgIcon> ); ToggleStar = pure(ToggleStar); ToggleStar.disp...
src/containers/DevTools/DevTools.js
chihungyu1116/perk-saga
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="ctrl-H" changePositionKey="ctrl-Q"> <LogMonitor /> </DockMonit...
examples/BadgeCollections.js
react-materialize/react-materialize
import React from 'react'; import Badge from '../src/Badge'; import Collection from '../src/Collection'; import CollectionItem from '../src/CollectionItem'; export default <Collection> <CollectionItem href="#!"> Alan <Badge>1</Badge> </CollectionItem> <CollectionItem href="#!"> Alan <Badge newIcon>4</Bad...
src/app/Steps/Contact/Contact.js
isaacjoh/foreseehome-test
import React from 'react'; import Formsy from 'formsy-react'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import Paper from 'material-ui/Paper'; import RaisedButton from 'material-ui/RaisedButton'; import { FormsyCheckbox, FormsyDate, For...
src/app/app.js
dpmramesh/cockpit-gluster
import React from 'react' import { render } from 'react-dom' import { Router, useRouterHistory } from 'react-router' import routes from './routes/routes.jsx' import '../../node_modules/patternfly/dist/css/patternfly.css' import '../../node_modules/patternfly/dist/css/patternfly-additions.css' import { createHashHistory...
src/desktop/apps/categories/components/FeaturedGene.js
kanaabe/force
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import { avantgarde } from 'reaction/Assets/Fonts' const propTypes = { title: PropTypes.string, href: PropTypes.string, image: PropTypes.object, } const Container = styled.div` position: relative; width: 95%;...
components/forms/subscribe.js
react-ui-kit/base
import React from 'react'; import PropTypes from 'prop-types'; import Button from 'core/button'; import 'sass/forms/forms'; import 'sass/forms/subscribe'; export default class Subscribe extends React.Component { static displayName = 'Subscribe' static propTypes = { className: PropTypes.string, subscribeTe...
src/components/article/index.js
timludikar/component-library
import React from 'react'; const Article = ({ children, style = {} }) => ( <article style={{ ...style }} > {children} </article> ); Article.propTypes = { children: React.PropTypes.node.isRequired, style: React.PropTypes.object, }; export default Article;
EvergreenApp/components/Weather/WeatherScreen.js
tr3v0r5/evergreen
import React, { Component } from 'react'; import { ActivityIndicator, AppRegistry, StyleSheet, Text, TextInput, View, Alert, Button,ScrollView, Dimensions ,AsyncStorage} from 'react-native'; import { FormLabel, FormInput,FormValidationMessage } from 'react-native-elements' import Carousel from 'react-native-snap-caro...
example.js
jainvabhi/PWD
/* eslint new-cap: "off" */ import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { ReactInput, parseDigit } from 'input-format'; import { parse, format, asYouType, isValidNumber } from 'libphonenumber-js'; class DemoComponent extends Component { constructor(props) { super(props); ...
app/javascript/mastodon/features/public_timeline/components/column_settings.js
lynlynlynx/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage } from 'react-intl'; import SettingToggle from '../../notifications/components/setting_toggle'; export default @injectIntl class ColumnSettings extends React....
docs/src/examples/elements/Image/Variations/ImageExampleFloated.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Segment, Image } from 'semantic-ui-react' const src = '/images/wireframe/image-text.png' const ImageExampleFloated = () => ( <Segment> <Image src={src} size='small' floated='left' /> <p> Te eum doming eirmod, nominati pertinacia argumentum ad his. Ex eam alia f...
webpack/components/WithOrganization/withOrganization.js
Katello/katello
/* eslint-disable react/jsx-indent */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { translate as __ } from 'foremanReact/common/I18n'; import { get } from 'lodash'; import SetOrganization from '....
src/js/app.js
touchstonejs/touchstonejs-starter
import React from 'react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import ReactDOM from 'react-dom'; import { Container, createApp, UI, View, ViewManager } from 'touchstonejs'; // App Config // ------------------------------ const PeopleStore = require('./stores/people') const pe...
SwipComponent/DynamicExample.js
MisterZhouZhou/ReactNativeLearing
import React from 'react'; import { Text, TouchableHighlight, } from 'react-native'; import TimerMixin from 'react-timer-mixin'; import ScrollableTabView, { ScrollableTabBar, } from './ScrollalbeTabComponent'; const Child = React.createClass({ onEnter() { console.log('enter: ' + this.props.i); // eslint-disa...
app/javascript/mastodon/features/getting_started/index.js
ashfurrow/mastodon
import React from 'react'; import Column from '../ui/components/column'; import ColumnLink from '../ui/components/column_link'; import ColumnSubheading from '../ui/components/column_subheading'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import Prop...
src/svg-icons/editor/insert-link.js
skarnecki/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...
src/svg-icons/action/touch-app.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTouchApp = (props) => ( <SvgIcon {...props}> <path d="M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74zm9.84 4.63l-4....
app/src/App.js
larsthorup/js-fullstack-sandbox
import React from 'react'; import logo from './logo.svg'; import './App.css'; import DreamList from './DreamList'; function App() { return ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <p> Edit <code>src/App.js</code> an...
src/svg-icons/action/system-update-alt.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSystemUpdateAlt = (props) => ( <SvgIcon {...props}> <path d="M12 16.5l4-4h-3v-9h-2v9H8l4 4zm9-13h-6v1.99h6v14.03H3V5.49h6V3.5H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2z"/> ...
src/entypo/FlickrWithCircle.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--FlickrWithCircle'; let EntypoFlickrWithCircle = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M10,0.4c-5.302,0-9.6,4.298-9.6,9.6s4.298,9.6,9.6,9.6s9.6-4.298,9.6-9.6S15.302,0.4...
docs/app/Examples/elements/Label/Variations/LabelExampleCircular.js
clemensw/stardust
import React from 'react' import { Label } from 'semantic-ui-react' const colors = [ 'red', 'orange', 'yellow', 'olive', 'green', 'teal', 'blue', 'violet', 'purple', 'pink', 'brown', 'grey', 'black', ] const LabelExampleCircular = () => ( <div> {colors.map(color => <Label circular color={color} key={color}>...
src/PageItem.js
yickli/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const PageItem = React.createClass({ propTypes: { href: React.PropTypes.string, target: React.PropTypes.string, title: React.PropTypes.string, disabled: React.PropTypes.bool, previous: React.PropTypes.bool, next: React.PropTypes...
src/react/index.js
gouegd/redux-devtools
import React from 'react'; import createDevTools from '../createDevTools'; export const DevTools = createDevTools(React); export { default as LogMonitor } from './LogMonitor'; export { default as DebugPanel } from './DebugPanel';
app/common/components/ToolbarButtonPopover/index.js
cerebral/cerebral-reference-app
import React from 'react'; import {Decorator as Cerebral} from 'cerebral-view-react'; import ToolbarButton from 'common/components/ToolbarButton'; import classNames from 'classnames'; import styles from './styles.css'; @Cerebral() class ToolbarButtonPopover extends React.Component { onArrowBoxClick(e) { e.stopPr...
blueocean-dashboard/src/main/js/components/CreatePipelineLink.js
jenkinsci/blueocean-plugin
import React from 'react'; import { Link } from 'react-router'; import { i18nTranslator, AppConfig } from '@jenkins-cd/blueocean-core-js'; import creationUtils from '../creation/creation-status-utils'; const t = i18nTranslator('blueocean-dashboard'); export default function CreatePipelineLink() { if (creationUti...
src/routes/about/About.js
jaruesink/ruesinkdds
/** * 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-...
step7-flux/app/js/config/routes.js
jintoppy/react-training
import React from 'react'; import Main from '../components/Main'; import Home from '../components/Home'; import { Route, IndexRoute } from 'react-router'; export default ( <Route path="/" component={Main}> <IndexRoute component={Home} /> </Route> );
examples/src/ControlledComponent/ControlledComponent.js
brennanerbz/react-autosuggest
require('./ControlledComponent.less'); import React, { Component } from 'react'; import utils from '../utils'; import Autosuggest from '../../../src/Autosuggest'; import SourceCodeLink from '../SourceCodeLink/SourceCodeLink'; import suburbs from 'json!../suburbs.json'; function getSuggestions(input, callback) { con...
src/routes/Products/components/components/DroppableCard/DroppableCard.js
TheModevShop/craft-app
import React from 'react'; import {findDOMNode} from 'react-dom'; import _ from 'lodash'; import { DropTarget } from 'react-dnd'; import {Link} from 'react-router'; const Types = { card: 'card' }; /** * Specifies the drop target contract. * All methods are optional. */ const chessSquareTarget = { canDrop(props...
src/Index.js
WhiteBlue/bilibili-react
import React from 'react'; import { render } from 'react-dom'; import { Router, Route } from 'react-router'; import App from './components/App'; import Sort from './components/Sort'; import SortList from './components/SortList'; import About from './components/About'; import Video from './components/Video'; import Se...
src/containers/hocs/withUser.js
niekert/soundify
import React from 'react'; import PropTypes from 'prop-types'; import { Redirect } from 'react-router-dom'; import { OK, DONE } from 'app-constants'; import { connect } from 'react-redux'; const withUser = (ComposedComponent, { redirect = true } = {}) => { const EnhanceUser = ({ user, status, ...props }) => { if...
.history/src/instacelebs_20170930234329.js
oded-soffrin/gkm_viewer
import React from 'react'; import {render} from 'react-dom'; import { Provider } from 'react-redux'; import configureStore from './store/configureStore'; require('./favicon.ico'); // Tell webpack to load favicon.ico import './styles/styles.scss'; // Yep, that's right. You can import SASS/CSS files too! Webpack will r...
src/services/DocumentSelector.js
webcerebrium/ec-react15-lib
// this module is used so far to run // import React from 'react'; // import { Logger } from './Logger'; export const findDocumentElements = (selector, doc) => { if (!selector || !doc) return null; return doc.querySelector(selector); }; export default { findDocumentElements };
app/pages/reservation/reservation-information/ReservationInformationNotification.js
fastmonkeys/respa-ui
import React from 'react'; import PropTypes from 'prop-types'; const ReservationInformationNotification = ({ children, labelText }) => { return ( <div className="hds-notification hds-notification--warning"> <div className="hds-notification__label"> <span aria-hidden="true" className="hds-icon hds-i...
webpack/components/Content/Details/ContentDetailInfo.js
Katello/katello
import React from 'react'; import PropTypes from 'prop-types'; import { Table } from 'react-bootstrap'; // using Map to preserve order const createRows = (details, mapping) => { const rows = []; /* eslint-disable no-restricted-syntax, react/jsx-closing-tag-location */ for (const key of mapping.keys()) { row...
client/containers/Utils/Loading.js
Mignon-han/issue-processing
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Loading from '../../components/Utils/Loading'; const mapStateToProps = (state) => ({ loading:state.root.loading }); export default connect( mapStateToProps, null )(Loading);
src/components/device-list/no-devices.js
octoblu/intel-drink-bot
import React from 'react'; const NoDevice = () => ( <div className="NoDevice"> <p>There are currently no devices in your organization.</p> </div> ); export default NoDevice
webpack/components/TemplateSyncResult/components/SyncedTemplate/IconInfoItem.js
mmoll/foreman_templates
import React from 'react'; import { Icon } from 'patternfly-react'; import PropTypes from 'prop-types'; import InfoItem from './InfoItem'; import { itemIteratorId } from './helpers'; const IconInfoItem = ({ template, attr, iconName, tooltipText }) => ( <InfoItem itemId={itemIteratorId(template, attr)} tooltipText={...
src/routes/post/index.js
yunqiangwu/kmadmin
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'dva' import { Tabs } from 'antd' import { routerRedux } from 'dva/router' import List from './List' const TabPane = Tabs.TabPane const EnumPostStatus = { UNPUBLISH: 1, PUBLISHED: 2, } const Index = ({ post, dispatch, loading, ...
src/client/app.js
nemecec/base
'use strict'; import React from 'react'; import Router from 'react-router'; import routes from './routes.js'; function run() { Router.run(routes, Router.HistoryLocation, function (Handler) { React.render(<Handler/>, document.body); }); } Promise.all([ new Promise((resolve) => { if (window.addEventListe...
example/index.ios.js
shoumma/react-native-off-canvas-menu
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class OffCanvasMenu extends Component { render() { return ( <View style={styles.container}> ...
src/svg-icons/content/filter-list.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentFilterList = (props) => ( <SvgIcon {...props}> <path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"/> </SvgIcon> ); ContentFilterList = pure(ContentFilterList); ContentFilterList.displayName = 'Con...
node_modules/generator-react-fullstack/react-starter-kit/src/components/Header/Header.js
jdl031/FHIR-test-app
/** * 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, { Component } from 'react'; import s from '....
webpack/move_to_foreman/components/common/table/components/TableSelectionCell.js
cfouant/katello
import React from 'react'; import PropTypes from 'prop-types'; import { Table } from 'patternfly-react'; import { noop } from 'foremanReact/common/helpers'; const TableSelectionCell = ({ id, before, after, label, checked, onChange, ...props }) => ( <Table.SelectionCell> {before} <Table.Checkbox id={i...
src/MenuItem.js
mattBlackDesign/react-materialize
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; // This should be used within any component that has a menu like interface class MenuItem extends Component { render () { const { href, breadcrumbItem, children, className, ...props } = this.props; let ...
fields/types/location/LocationFilter.js
Redmart/keystone
import React from 'react'; import { FormField, FormInput, FormRow, SegmentedControl } from 'elemental'; const TOGGLE_OPTIONS = [ { label: 'Matches', value: false }, { label: 'Does NOT Match', value: true }, ]; function getDefaultValue () { return { inverted: TOGGLE_OPTIONS[0].value, street: undefined, city:...
demo/components/DemoHOCItem.js
jasonslyvia/react-anything-sortable
import React from 'react'; import { sortable } from '../../src/index.js'; @sortable class DemoHOCItem extends React.Component { render() { return ( <div {...this.props}> {this.props.children} </div> ); } } export default DemoHOCItem;
assets/jqwidgets/demos/react/app/datatable/pinnedfrozencolumn/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: "xml", dataFields: [ { name: 'Ship...