path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
js/components/RouteCard.js
mekto/brouter-online
import React from 'react'; import * as actions from '../actions'; import {km} from '../filters'; import {SVGImport, ElevationChart} from '.'; import {getRouteTrackLength} from '../reducers/routes'; export default class RouteCard extends React.Component { render() { const route = this.props.route; return ( ...
demo/demo.js
konsumer/react-sparklines
import React from 'react'; import { Sparklines, SparklinesBars, SparklinesLine, SparklinesNormalBand, SparklinesReferenceLine, SparklinesSpots } from '../src/Sparklines'; function boxMullerRandom () { let phase = false, x1, x2, w, z; return (function() { if (phase = !phase) { do {...
react/features/toolbox/components/web/ToolbarButton.js
bgrozev/jitsi-meet
/* @flow */ import Tooltip from '@atlaskit/tooltip'; import React from 'react'; import { Icon } from '../../../base/icons'; import AbstractToolbarButton from '../AbstractToolbarButton'; import type { Props as AbstractToolbarButtonProps } from '../AbstractToolbarButton'; /** * The type of the React {@code Compo...
app/javascript/mastodon/features/compose/components/character_counter.js
tootcafe/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { length } from 'stringz'; export default class CharacterCounter extends React.PureComponent { static propTypes = { text: PropTypes.string.isRequired, max: PropTypes.number.isRequired, }; checkRemainingText (diff) { if (diff < 0)...
LearnDemo/Login.js
TonyTong1993/Learn-React-Native
'use strict'; import React, { Component } from 'react'; import { StyleSheet, View, Text, Image, TextInput, Dimensions, PixelRatio, Button, TouchableHighlight, TouchableOpacity, } from 'react-native'; //获取屏幕的尺寸 var screen_width = Dimensions.get('window').width; class Login extends Component { ren...
src/@ui/VideoPlayer/VideoPlayer.stories.js
NewSpring/Apollos
import React from 'react'; import { storiesOf } from '@storybook/react-native'; import { View } from 'react-native'; import VideoPlayer from './'; const videoUrl = 'https://secure-cf-c.ooyala.com/lnN3RmZDE6A5wfMQi8_l0MTUipc8acil/DOcJ-FxaFrRg4gtDEwOjI5cDowODE7AZ'; storiesOf('VideoPlayer', module) .add('Default', ()...
client/components/button/index.js
yeoh-joer/synapse
/** * External dependencies */ import React from 'react' import PropTypes from 'prop-types' import { omit, uniq, compact } from 'lodash' /** * Internal dependencies */ import './style.scss' import classNames from 'client/lib/class-names' export default class Button extends React.PureComponent { static propTypes ...
packages/material-ui-icons/src/SwapVerticalCircle.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM6.5 9L10 5.5 13.5 9H11v4H9V9H6.5zm11 6L14 18.5 10.5 15H13v-4h2v4h2.5z" /></g> , 'SwapVerticalCircle');
src/icons/AndroidCompass.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class AndroidCompass extends React.Component { render() { if(this.props.bare) { return <g> <path d="M256,231.358c-13.442,0-24.643,11.2-24.643,24.642s11.2,24.643,24.643,24.643s24.643-11.2,24.643-24.643 S269.442,231...
webapp/src/app/availability/containers/InfoStaleState.js
cpollet/itinerants
import React from 'react'; import {connect} from 'react-redux'; class InfoStaleState extends React.Component { render() { return !this.props.stale ? null : ( <div style={{position: 'relative'}}> <div style={{ position: 'absolute', ...
js/components/tab/tabTwo.js
alaxa27/Lukeat
import React, { Component } from 'react'; import { Container, Content, Card, CardItem, Text, Body } from 'native-base'; import styles from './styles'; export default class TabTwo extends Component { // eslint-disable-line render() { // eslint-disable-line return ( <Content padder style={{ marginTop: 0 }}> ...
ui/layouts/_base-layout.js
sakulstra/firebase-nextjs-mobx
import React from 'react' import { Header, Footer } from '~/ui/generic' const BaseLayout = ({ children }) => ( <div className='site'> <style jsx>{` .site{ display: flex; min-height: 100vh; flex-direction: column; } .content { ...
client/components/ComputerNameGenerator/ComputerNameGenerator.js
vcu-lcc/nomad
/* Copyright (C) 2017 Darren Chan This program 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, or (at your option) any later version. This program is distribut...
src/components/invest/index.js
oraclesorg/ico-wizard
import React from 'react' import { attachToContract, checkNetWorkByID, checkTxMined, sendTXToContract } from '../../utils/blockchainHelpers' import { findCurrentContractRecursively, getAccumulativeCrowdsaleData, getContractStoreProperty, getCrowdsaleData, getCrowdsaleTargetDates, getCurrentRate, getJoined...
node_modules/react-router-dom/es/NavLink.js
yaolei/Samoyed
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _typeof = typeof Symbol === "function" && typeof Symbol.i...
jenkins-design-language/src/js/components/material-ui/svg-icons/image/rotate-right.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageRotateRight = (props) => ( <SvgIcon {...props}> <path d="M15.55 5.55L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45zM19.93 11c-.17-1.39-.72-2.73-1.62-3.89l-1.42 1.42c.54.75.88 ...
src/component/Mousetrap.js
georgeOsdDev/react-mousetrap-mixin
'use strict'; import React from 'react'; import MousetrapMixin from '../mixin/Mousetrap'; let Mousetrap = React.createClass({ mixins: [MousetrapMixin], propTypes: { mousetrap: React.PropTypes.object }, getMousetrap() { return { mousetrap: {} } }, render() { let element = this.prop...
ui/button/index.js
hakonhk/vaerhona
import React from 'react'; import styled from 'styled-components'; import is, { isNot } from 'styled-is'; import { lighten } from 'polished'; import { Spinner } from '../spinner'; import preventDoubleTapZoom from './preventDoubleTapZoom'; const themes = { primary: { default: ` background: #888; col...
client/modules/comments/components/.stories/create_comment.js
luki21213/tripIdeas
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import CreateComment from '../create_comment'; storiesOf('comments.CreateComment', module) .add('default view', () => { return ( <div className='comments'> <CreateComment postId='the-id' create={action('create comment...
stories/ui.js
maputnik/editor
import React from 'react'; export function Describe ({children}) { return ( <div style={{maxWidth: "600px", margin: "0.8em"}}> {children} </div> ) } export function Wrapper ({children}) { return ( <div style={{maxWidth: "260px", margin: "0.4em"}}> {children} </div> ); }; export f...
actor-apps/app-web/src/app/components/modals/CreateGroup.react.js
hzy87email/actor-platform
import React from 'react'; import CreateGroupActionCreators from 'actions/CreateGroupActionCreators'; import CreateGroupStore from 'stores/CreateGroupStore'; import CreateGroupForm from './create-group/Form.react'; import Modal from 'react-modal'; import { KeyCodes } from 'constants/ActorAppConstants'; const appEl...
src/svg-icons/image/iso.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageIso = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5.5 7.5h2v-2H9v2h2V9H9v2H7.5V9h-2V7.5zM19 19H5L19 5v14zm-2-2v-1.5h-5V17h5z"/> ...
client/src/components/JoinChannel.js
shamb0t/orbit
'use strict' import React from 'react' import TransitionGroup from "react-addons-css-transition-group" import 'styles/JoinChannel.scss' var initialStatusMessage = "This channel requires a password"; class JoinChannel extends React.Component { constructor(props) { super(props); this.state = { channe...
js/app/dashboard/handler.js
monetario/web
'use strict'; import React from 'react'; import {Router, Route, Link} from 'react-router' import Reflux from 'reflux'; import classNames from 'classnames'; import _ from 'lodash'; import Store from './store'; import Actions from './actions'; import Dashboard from './components'; var DashboardHandler = React.create...
src/Accordion.js
johanneshilden/react-bootstrap
import React from 'react'; import PanelGroup from './PanelGroup'; const Accordion = React.createClass({ render() { return ( <PanelGroup {...this.props} accordion={true}> {this.props.children} </PanelGroup> ); } }); export default Accordion;
frontend/advocate/Container.js
datoszs/czech-lawyers
import React from 'react'; import {Row, Col} from 'react-bootstrap'; import {Msg, RichText, SearchDisclaimer} from '../containers'; import {PageSubheader, Center} from '../components'; import {TimelineScroll} from '../components/timeline'; import {courts} from '../model'; import Header from './Header'; import Title fro...
app/javascript/mastodon/features/lists/components/new_list_form.js
clworld/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { changeListEditorTitle, submitListEditor } from '../../../actions/lists'; import IconButton from '../../../components/icon_button'; import { defineMessages, injectIntl } from 'react-intl'; const messages = def...
client/components/toolbar/Logo.js
yanigisawa/voting-tornado
import React from 'react'; const Logo = (props) => ( <svg viewBox="0 0 144 131" {...props}> <g> <path d="M118.954,87.235 C117.784,80.465 115.755,73.277 112.881,65.938 C115.756,58.592 117.784,51.398 118.952,44.624 C130.693,50.324 137.999,57.982 138,65.909 C138,73.901 130.708,81.552 118.954,87.235 L118.954,8...
imports/ui/components/messenger/newMsgPop.js
jiyuu-llc/jiyuu
import React from 'react'; import { Meteor } from 'meteor/meteor'; const NewMsgPop = () => ({ convoCreate(){ const un2 = $("#receiverSel").val(); const data = $("#message").val(); Meteor.call("convo.create",Meteor.userId(), un2, data); }, render() { return ( <div cl...
src/LightboxRenderer.js
aksonov/react-native-router-flux
/* @flow */ import React from 'react'; import { View } from 'react-native'; export default ({ navigation, descriptors }) => { const { state } = navigation; const descriptor = descriptors[state.routes[0].key]; // base component to render const Component = descriptor.getComponent(); const popupDescriptor = desc...
gatsby-strapi-tutorial/cms/plugins/content-type-builder/admin/src/components/EmptyContentTypeView/index.js
strapi/strapi-examples
/** * * EmptyContentTypeView * */ import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import Button from 'components/Button'; import Brush from '../../assets/images/paint_brush.svg'; import styles from './styles.scss'; class EmptyContentTypeView extends React....
docs/app/Layouts/BootstrapMigrationLayout.js
shengnian/shengnian-ui-react
import React from 'react' import { Button, Divider, Dropdown, Grid, Header, Icon, Image, Label, Menu, Message, Segment, Table, } from 'shengnian-ui-react' const BootstrapMigrationLayout = () => ( <Grid container style={{ padding: '5em 0em' }}> <Grid.Row> <Grid.Column> <Heade...
server/sonar-web/src/main/js/main/nav/component/component-nav-favorite.js
joansmith/sonarqube
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
src/components/HowToApp.react.js
andrewMuntyan/simple-how-to
import './__styles/common/common.scss'; import React from 'react'; import UserStore from './../stores/UserStore'; import UserActions from '../actions/UserActions'; import { Router, Route, Link, History } from 'react-router'; import FlatButton from 'material-ui/lib/flat-button'; import Avatar from 'material-ui/lib/avata...
examples/async/containers/Root.js
rmadsen/redux
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import configureStore from '../store/configureStore'; import AsyncApp from './AsyncApp'; const store = configureStore(); export default class Root extends Component { render() { return ( <Provider store={store}> {() ...
src/components/sidebar/Sidebar.js
RaymondBuckman/Turkey
import React, { Component } from 'react'; import ReactTooltip from 'react-tooltip'; import crescentstar from '../../img/crescent-star.png'; export default class Sidebar extends Component { render() { return( <div> <ul id="sidebar"> <li> <a h...
docs/app/Examples/modules/Embed/Usage/EmbedExampleSettings.js
koenvg/Semantic-UI-React
import React from 'react' import { Embed } from 'semantic-ui-react' const EmbedExampleSettings = () => ( <Embed autoplay={false} brandedUI={false} color='white' hd={false} id='D0WnZyxp_Wo' placeholder='http://semantic-ui.com/images/image-16by9.png' source='youtube' /> ) export default ...
src/svg-icons/image/adjust.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageAdjust = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3-8c0 1.66-1.34 3-3 3s-3-1.3...
src/components/settings.js
LaserWeb/LaserWeb4
import React from 'react'; import ReactDOM from 'react-dom' import { connect } from 'react-redux'; import stringify from 'json-stringify-pretty-compact'; import { FileStorage, LocalStorage } from '../lib/storages'; import update from 'immutability-helper'; import omit from 'object.omit'; import Validator from 'validat...
docs/app/animations/index.js
Sandreu/react-mf-modal
import React from 'react'; import ModalService from 'react-mf-modal'; import AnimatedContainer from './animated-container'; import AnimatedDialog from './animated-dialog'; import AnimatedSidebar from '!babel!../webpack/demo-loader!./animated-sidebar'; import AnimatedBackdrop from './animated-backdrop'; import animatio...
index.ios.js
wvicioso/dapr
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, } from 'react-native'; import Main from './app/main'; AppRegistry.registerComponent('Dapr', () => Main);
pootle/static/js/shared/components/FormSelectInput.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 Select from 'react-selec...
app/components/examples/ListItem/index.js
GuiaLa/guiala-web-app
import React from 'react'; import styles from './styles.css'; function ListItem(props) { return ( <li className={ props.className || styles.item }> <div className={ styles.itemContent }> { props.content } </div> </li> ); } export default ListItem;
src/common/containers/landing.js
canonical-websites/build.snapcraft.io
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Anchor } from '../components/vanilla-modules/button'; import { HeadingTwo, HeadingThree } from '../components/vanilla-modules/heading'; import { List, ListItem } from '../components/vanilla-mod...
src/components/onboarding/steps/Step3.js
golemfactory/golem-electron
import React from 'react'; import Lottie from 'react-lottie'; import animData from './../../../assets/anims/onboarding/requestor.json'; const defaultOptions = { loop: false, autoplay: true, animationData: animData, rendererSettings: { preserveAspectRatio: 'xMidYMid slice' } }; export defa...
src/components/RadioList/Radio.js
InsideSalesOfficial/insidesales-components
import PropTypes from 'prop-types'; import { transparentize } from 'polished'; import React from 'react'; import styled, { css } from 'styled-components'; import _ from 'lodash'; import { colors, typography, renderThemeIfPresentOrDefault, ifThemeInPropsIsPresentUse } from '../styles'; const size = 16; functi...
client/dev/components/listItems.js
tetondan/ReactReduxToDo
import React, { Component } from 'react'; import { connect } from 'react-redux'; import ListItem from './listItem'; class ListItems extends Component { render(){ let props = this.props return ( <ul className="listitems"> {props.items.map( (item, index) => { return <ListItem itemClic...
src/routes.js
KhaledSami/reactblog
import React from 'react'; import {Route, IndexRoute} from 'react-router'; import App from './components/app'; import PostIndex from './components/post-index'; import PostNew from './components/post-new'; import PostsShow from './components/posts-show'; export default ( <Route path="/" component={App}> <IndexRoute...
client/src/components/Home.js
gkovats/kidtracker
import React from 'react'; import { Link } from 'react-router-dom'; export class Home extends React.Component { componentWillMount() { console.log(this.props); } render() { return ( <div className="not-found"> <h1>HOME</h1> <p> <Link to="/">Go back to the main page</Link>...
docs/app/Examples/collections/Message/Types/MessageExampleMessageProps.js
koenvg/Semantic-UI-React
import React from 'react' import { Message } from 'semantic-ui-react' const MessageExampleMessageProps = () => ( <Message header='Changes in Service' content='We updated our privacy policy here to better service our customers. We recommend reviewing the changes.' /> ) export default MessageExampleMessageP...
src/components/Routes/Routes.js
zerkedev/zerke-app
import React from 'react'; import Loadable from 'react-loadable'; import LoadingComponent from '../../components/LoadingComponent/LoadingComponent'; import { RestrictedRoute } from '../../containers/RestrictedRoute'; import { Route, Switch } from 'react-router-dom'; function MyLoadable(opts, preloadComponent...
docs/src/examples/views/Feed/Content/FeedExampleImageLabelShorthand.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Feed } from 'semantic-ui-react' const FeedExampleImageLabelShorthand = () => ( <Feed> <Feed.Event image='/images/avatar/small/elliot.jpg' content='You added Elliot Fu to the group Coworkers' /> <Feed.Event> <Feed.Label image='/images/avatar/small/ellio...
src/svg-icons/action/check-circle.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCheckCircle = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/> </SvgIcon> ); ActionChec...
docs/pages/components/backdrop.js
lgollut/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'components/backdrop'; const requireDemo = require.context('docs/src/pages/components/backdrop', false, /\.(js|tsx)$/); const requ...
src/index.js
MrEliasen/react-boilderplate
/* * @Author: Mark Eliasen * @Date: 2017-03-01 17:45:14 * @Last Modified by: Mark Eliasen * @Last Modified time: 2017-06-08 14:48:37 */ import React from 'react'; import ReactDOM from 'react-dom'; import {AppContainer} from 'react-hot-loader'; import Routes from './routes'; // When building the app if (process.e...
react/reactRedux/redux-master/examples/counter/src/index.js
huxinmin/PracticeMakesPerfect
import React from 'react' import ReactDOM from 'react-dom' import { createStore } from 'redux' import Counter from './components/Counter' import counter from './reducers' const store = createStore(counter) const rootEl = document.getElementById('root') const render = () => ReactDOM.render( <Counter value={store...
example/src/index.js
Demi-IO/golden-type
import React from 'react'; import ReactDom from 'react-dom'; import App from './App'; ReactDom.render(<App/>, document.getElementById('root'));
packages/material-ui-icons/src/PowerSettingsNew.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M13 3h-2v10h2V3zm4.83 2.17l-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18...
assets/jqwidgets/demos/react/app/kanban/righttoleftlayout/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxKanban from '../../../jqwidgets-react/react_jqxkanban.js'; class App extends React.Component { render() { let fields = [ { name: 'id', type: 'string' }, { name: 'status', map: 'state', type: 'string' }, ...
templates/components/front/pages/home.js
wi2/sails-auto-admin
"use strict"; import React from 'react' import Layout from '../layout' export default class extends React.Component { render() { return ( <Layout {...this.props} {...this.state}> <h1>HomePage</h1> </Layout> ); } }
src/svg-icons/action/settings.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettings = (props) => ( <SvgIcon {...props}> <path d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l...
tests/react_modules/es6class-proptypes-callsite.js
jgrund/flow
/* @flow */ import React from 'react'; import Hello from './es6class-proptypes-module'; class HelloLocal extends React.Component<void, {name: string}, void> { defaultProps = {}; propTypes = { name: React.PropTypes.string.isRequired, }; render(): React.Element<*> { return <div>{this.props.name}</div>; ...
src/svg-icons/device/battery-charging-90.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryCharging90 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V8h5.47L13 7v1h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9L12...
packages/component/src/ConnectivityStatus/Assets/ErrorNotificationIcon.js
billba/botchat
import { hooks } from 'botframework-webchat-api'; import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; const { useDirection } = hooks; const ICON_SIZE_FACTOR = 16; const ErrorNotificationIcon = ({ className, size }) => { const [direction] = useDirection(); return (...
pet-projects/list-of-stuff/pages/login/login-page.js
oka-haist/codeHere
import React from 'react'; import { StyleSheet, TextInput, View, Button } from 'react-native'; export default class LoginPage extends React.Component { constructor(props) { super(props); this.state = { form: { username: '', password: '' } ...
src/LiturgicalDayProperties.js
OCMC-Translation-Projects/ioc-liturgical-react
import React from 'react'; import PropTypes from 'prop-types'; import axios from 'axios'; import server from './helpers/Server'; import {ControlLabel, DropdownButton, FormGroup, MenuItem} from 'react-bootstrap'; import DatePicker from 'react-bootstrap-date-picker' import Form from 'react-jsonschema-form'; import Respon...
geonode/contrib/monitoring/frontend/src/pages/software-performance/index.js
MapStory/geonode
import React from 'react'; import Header from '../../components/organisms/header'; import GeonodeAnalytics from '../../components/organisms/geonode-analytics'; import GeonodeLayersAnalytics from '../../components/organisms/geonode-layers-analytics'; import WSAnalytics from '../../components/organisms/ws-analytics'; imp...
04/EW/trding/trding/src/components/list/Pagination.js
rgllm/uminho
import React from 'react'; import PropTypes from 'prop-types'; import './Pagination.css'; const Pagination = (props) => { const { page, totalPages, handlePaginationClick} = props; return( <div className="Pagination"> <button className="Pagination-button" onClick={() => handlePaginationC...
yycomponent/timeline/Timeline.js
77ircloud/yycomponent
import React from 'react'; import { Timeline as _Timeline } from 'antd'; class Timeline extends React.Component{ constructor(props){ super(props); } render(){ return (<_Timeline {...this.props}/>); } } export default Timeline
docs/src/pages/components/tabs/IconLabelTabs.js
lgollut/material-ui
import React from 'react'; import Paper from '@material-ui/core/Paper'; import { makeStyles } from '@material-ui/core/styles'; import Tabs from '@material-ui/core/Tabs'; import Tab from '@material-ui/core/Tab'; import PhoneIcon from '@material-ui/icons/Phone'; import FavoriteIcon from '@material-ui/icons/Favorite'; imp...
test/integration/production-swcminify/pages/error-in-browser-render-status-code.js
zeit/next.js
import React from 'react' export default class ErrorInRenderPage extends React.Component { render() { if (typeof window !== 'undefined') { const error = new Error('An Expected error occurred') // This will be extracted by getInitialProps in the _error page, // which will result in a different er...
src/popover/popover-header.js
ricsv/react-leonardo-ui
import React from 'react'; import { luiClassName } from '../util'; const PopoverHeader = ({ className, children, nopad, ...extraProps }) => { const finalClassName = luiClassName('popover__header', { className, states: { nopad }, }); return ( <div className={finalClassName} {...extraProps}> ...
app/javascript/mastodon/components/status_content.js
RobertRence/Mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { isRtl } from '../rtl'; import { FormattedMessage } from 'react-intl'; import Permalink from './permalink'; import classnames from 'classnames'; export default class StatusContent extends ...
node_modules/react-bootstrap/es/ButtonToolbar.js
acalabano/get-committed
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 ...
src/svg-icons/hardware/cast-connected.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareCastConnected = (props) => ( <SvgIcon {...props}> <path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H5v1.63c3.96 1.28 7.09 4.41 8.37 8.37H19V7zM1 10v2c4.97 0 9 4.03 ...
chapter-12/express_server/src/Routes.js
mocheng/react-and-redux
import React from 'react'; import {Router, Route, IndexRoute, browserHistory} from 'react-router'; import {Provider} from 'react-redux'; import {combineReducers} from 'redux'; import {syncHistoryWithStore} from 'react-router-redux'; import App from './pages/App.js'; import store from './Store.js'; const createElemen...
src/container/DevTools.js
jerryshew/test-redux
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 /...
admin/client/components/Popout/PopoutListItem.js
Tangcuyu/keystone
import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; var PopoutListItem = React.createClass({ displayName: 'PopoutListItem', propTypes: { icon: React.PropTypes.string, iconHover: React.PropTypes.string, isSelected: React.PropTypes.bool, label: React.PropTypes.str...
example/src/components/Header.js
ethanselzer/react-lazy-tree
import React from 'react'; import { Navbar, Nav, NavItem } from 'react-bootstrap'; import npmLogo from '../images/npm-logo.png'; import githubLogo from '../images/github-logo.png'; import '../styles/header.css'; class Navigation extends React.Component { constructor(props) { super(props); this.s...
hapiApp/source/index.js
raydecastro/example-above-the-fold-hapijs
import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import configureStore from './store/configureStore'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import routes from './routes'; import './styles/styles.css'; import '../node_modules...
src/svg-icons/editor/strikethrough-s.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorStrikethroughS = (props) => ( <SvgIcon {...props}> <path d="M7.24 8.75c-.26-.48-.39-1.03-.39-1.67 0-.61.13-1.16.4-1.67.26-.5.63-.93 1.11-1.29.48-.35 1.05-.63 1.7-.83.66-.19 1.39-.29 2.18-.29.81 0 1.54.11 ...
examples/todos-with-undo/index.js
omnidan/redux
import React from 'react'; import { createStore } from 'redux'; import { Provider } from 'react-redux'; import App from './containers/App'; import todoApp from './reducers'; const store = createStore(todoApp); const rootElement = document.getElementById('root'); React.render( // The child must be wrapped in a funct...
src/containers/react-css-themr.js
steplov/storybook-addon-themr
import React from 'react'; import PropTypes from 'prop-types'; import { ThemeProvider } from 'react-css-themr'; import { EVENT_ID_INIT, EVENT_ID_DATA } from '../'; class ReactCSSThemr extends React.Component { constructor(props) { super(props); this.onReceiveData = this.onReceiveData.bind(this); this.st...
app/src/components/ControlPanel/Knob.js
civa86/electrophone
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import $ from 'jquery'; import knob from 'jquery-knob'; class Knob extends Component { componentDidMount () { const node = $(ReactDOM.findDOMNode(this)), { property, module, onUpdate } = this.props; ...
webpack/scenes/Subscriptions/components/SubscriptionsToolbar/SubscriptionsToolbar.js
cfouant/katello
import React from 'react'; import PropTypes from 'prop-types'; import { Row, Col, Form, FormGroup, Button } from 'patternfly-react'; import { LinkContainer } from 'react-router-bootstrap'; import { noop } from 'foremanReact/common/helpers'; import Search from '../../../../components/Search/index'; import TooltipButton...
src/parser/hunter/beastmastery/modules/features/AlwaysBeCasting.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import SpellLink from 'common/SpellLink'; import CoreAlwaysBeCasting from 'parser/shared/modules/AlwaysBeCasting'; class AlwaysBeCasting extends CoreAlwaysBeCasting { get suggestionThresholds() { ret...
packages/react-error-overlay/src/components/CodeBlock.js
Bogala/create-react-app-awesome-ts
/** * 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. */ /* @flow */ import React from 'react'; import { redTransparent, yellowTransparent } from '../styles'; const _preStyle = { display: 'b...
client/src/app/components/Footer.js
lefnire/jobs
import React from 'react'; import { Jumbotron } from 'react-bootstrap'; export default class Footer extends React.Component { render() { return ( <Jumbotron className="footer"> <ul className='footer-links'> <li> <a href="/blog.html">Blog</a> </li> <li> ...
src/svg-icons/hardware/laptop-chromebook.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareLaptopChromebook = (props) => ( <SvgIcon {...props}> <path d="M22 18V3H2v15H0v2h24v-2h-2zm-8 0h-4v-1h4v1zm6-3H4V5h16v10z"/> </SvgIcon> ); HardwareLaptopChromebook = pure(HardwareLaptopChromebook); Har...
src/main/app/scripts/views/Todo.js
ondrejhudek/pinboard
import React from 'react' import { connect } from 'react-redux' import AddTodo from '../containers/todo/AddTodo' import Todos from '../components/todo/Todos' import { fetchTodos } from '../actions/todos' let fetched = false class TodoView extends React.Component { constructor(props) { super(props) ...
src/parser/shared/modules/features/STAT.js
yajinni/WoWAnalyzer
import React from 'react'; import { Trans } from '@lingui/macro'; import HealthIcon from 'interface/icons/Health'; import StaminaIcon from 'interface/icons/Stamina'; import ManaIcon from 'interface/icons/Mana'; import StrengthIcon from 'interface/icons/Strength'; import AgilityIcon from 'interface/icons/Agility'; impo...
P/bucket/src/pages/Login.js
imuntil/React
import React from 'react' // import HomeLayout from '../layouts/HomeLayout' // import FormItem from '../components/FormItem' import {post} from '../utils/request' // import formProvider from '../utils/formProvider' import { Icon, Form, Input, Button, message } from 'antd' import styles from './Login.less' const FormIt...
src/svg-icons/maps/directions-bike.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsBike = (props) => ( <SvgIcon {...props}> <path d="M15.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM5 12c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3....
src/components/ContainerProgress.react.js
phnz/kitematic
import React from 'react'; /* Usage: <ContainerProgress pBar1={20} pBar2={70} pBar3={100} pBar4={20} /> */ var ContainerProgress = React.createClass({ render: function () { var pBar1Style = { height: this.props.pBar1 + '%' }; var pBar2Style = { height: this.props.pBar2 + '%' }; va...
examples/forms-material-ui/src/components/dialogs/Layout.js
lore/lore-forms
import React from 'react'; import createReactClass from 'create-react-class'; import { Drawer, AppBar } from 'material-ui'; import List from '../_common/List'; import PayloadStates from '../../constants/PayloadStates'; export default createReactClass({ displayName: 'Layout', componentDidMount: function() { wi...
src/modules/comments/components/CommentEditor/CommentersInput/CommentersInput.js
CtrHellenicStudies/Commentary
import React from 'react'; import { compose } from 'react-apollo'; import Select from 'react-select'; import autoBind from 'react-autobind'; import commentersQuery from '../../../../commenters/graphql/queries/list'; class CommentersInput extends React.Component { constructor(props) { super(props); this.state =...
node_modules/react-router/es6/RouteContext.js
captify-iolenchenko/leaderboard
import warning from './routerWarning'; import React from 'react'; var object = React.PropTypes.object; /** * The RouteContext mixin provides a convenient way for route * components to set the route in context. This is needed for * routes that render elements that want to use the Lifecycle * mixin to prevent trans...
src/SearchBar.js
umhan35/react-native-search-bar
import React from 'react'; import PropTypes from 'prop-types'; import { NativeModules, requireNativeComponent, findNodeHandle, } from 'react-native'; const RNSearchBar = requireNativeComponent('RNSearchBar', null); class SearchBar extends React.PureComponent { static propTypes = { placeholder: PropTypes.s...
src/home-component.js
Clemson-University-Energizer/energizer-app
import React from 'react'; const HomeComponent = () => ( <div className="row"> <div className="col text-center"><h2>Welcome to Energizer!</h2></div> </div> ); export default HomeComponent;
js/jqwidgets/demos/react/app/knob/infiniteknob/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxKnob from '../../../jqwidgets-react/react_jqxknob.js'; class App extends React.Component { componentDidMount() { let lastValue; let newValue = 0; let min = 0; let max = 100; this.refs.myKnob.on('change'...