path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
website/src/react-native/index.js
DanielMSchmidt/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. */ 'use strict...
src/utils/bundle.js
brucecham/redux-saga
import React from 'react' /* * 代码分割模型,调用该模型的方式如下。 * import SearchContainer from 'bundle-loader?lazy!./containers/Search/searchContainer'; * * const Search = () => ( * <Bundle load={SearchContainer}> * {(Search) => <Search />} * </Bundle> * ) */ export default class Bundle extends React...
local-cli/templates/HelloNavigation/components/KeyboardSpacer.js
lprhodes/react-native
'use strict'; /* @flow */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Platform, View, Keyboard, LayoutAnimation, UIManager, } from 'react-native'; type Props = { offset?: number, } type State = { keyboardHeight: number } // Consider contributing this to the ...
src/components/EventsLane/EventsLane.js
vogelino/design-timeline
import React from 'react'; import PropTypes from 'prop-types'; import { combineCssClasses } from '../../helpers/styleHelper'; import EventsLaneItem from './EventsLaneItem'; const EventsLane = ({ events, className, classNamePrefix, width, }) => ( <div className={combineCssClasses({ 'events-lane': true, [`$...
app/javascript/flavours/glitch/features/compose/components/text_icon_button.js
im-in-space/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const iconStyle = { height: null, lineHeight: '27px', width: `${18 * 1.28571429}px`, }; export default class TextIconButton extends React.PureComponent { static propTypes = { label: PropTypes.string.isRequired, title: PropTypes.string, ...
viewer/core/static/js/app/components/containers/chart-menu-container.js
openjck/distribution-viewer
import React from 'react'; import { connect } from 'react-redux'; import ChartMenu from '../views/chart-menu'; function ChartMenuContainer(props) { return ( <ChartMenu whitelistedMetricIds={props.whitelistedMetricIds} intentionallySelectedNoMetrics={props.intentionallySelectedNoMetrics} metad...
src/index.js
CharlesMangwa/Redux-tasks
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import routes from './routes' import store from './store/create' import { Router, Route, browserHistory } from 'react-router' const Kernel = () => ( <Provider store={store}> <Router history={browserHistory} ...
frontend/src/components/login/azureLogin.js
unicef/un-partner-portal
import React from 'react'; import Button from 'material-ui/Button'; import Typography from 'material-ui/Typography'; import Card from '../common/cardLogin'; import PaddedContent from '../common/paddedContent'; const messages = { title: 'UN Partner Portal', login: 'Login via Active Directory', signIn: 'Sign in', ...
src/images/SsSearchAvancedBiblicalInitial.js
OCMC-Translation-Projects/ioc-liturgical-react
import React from 'react' import screenShot from './graphics/ScreenShotBiblicalOptions.jpg' export default React.createClass({ render() { return <img role="presentation" src={screenShot} height="100%" width="100%"/> } })
imports/ui/components/surveyBuilder/formFields/QuestionPickerField.js
ctagroup/home-app
import React from 'react'; import Modal from 'react-modal'; import connectField from 'uniforms/connectField'; import { stringContains } from '/imports/api/utils'; const customStyles = { content: { top: '50%', left: '50%', right: 'auto', bottom: 'auto', marginRight: '-50%', transform: 'transla...
webapp/src/components/Graph/index.js
pablo-moreno/iot_weather_station
import React, { Component } from 'react'; import { Line } from 'react-chartjs-2'; import moment from 'moment'; import { measuresEndpoint } from '../../config'; import { humidityGraphOptions, temperatureGraphOptions, graphOptions } from './config'; import { onPostMeasure, emit } from '../../socketio'; class Gr...
src/svg-icons/av/mic-none.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvMicNone = (props) => ( <SvgIcon {...props}> <path d="M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm-1.2-9.1c0-.66.54-1.2 1.2-1.2.66 0 1.2.54 1.2 1.2l-.01 6.2c0 .66-.53 ...
fixtures/fiber-debugger/src/index.js
with-git/react
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
pathfinder/vtables/csmservices/src/Table.js
leanix/leanix-custom-reports
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; import TableUtilities from './common/TableUtilities'; class Table extends Component { constructor(props) { super(props); } render() { return ( <BootstrapT...
pages/blog/test-article-one.js
trungtin/mymy
import React, { Component } from 'react'; export default class extends Component { render() { return ( <div> <h1>Test Article 1</h1> <p>Coming soon.</p> </div> ); } }
react/features/base/media/components/web/AudioTrack.js
gpolitis/jitsi-meet
// @flow import React, { Component } from 'react'; import { createAudioPlayErrorEvent, createAudioPlaySuccessEvent, sendAnalytics } from '../../../../analytics'; import { connect } from '../../../redux'; import logger from '../../logger'; /** * The type of the React {@code Component} props of {@link AudioTrack}. *...
packages/wix-style-react/src/ModalPreviewLayout/NavigationButton/NavigationButton.js
wix/wix-style-react
import React from 'react'; import IconButton from '../../IconButton'; import Tooltip from '../../Tooltip'; import Text from '../../Text'; import ChevronLeft from 'wix-ui-icons-common/ChevronLeft'; import ChevronRight from 'wix-ui-icons-common/ChevronRight'; import { arrowsDirection, dataHooks } from '../constants'; imp...
js/components/HeaderLoggedOut.js
ChrisMLee/relay-mongoose-plair
import React from 'react'; import Relay from 'react-relay'; import storage from '../libs/storage'; export default class HeaderLoggedOut extends React.Component { constructor(props){ super(props); this.state = {userId: ''}; } componentDidMount(){ //console.log('the beginning', this.props.actions.setSon...
node_modules/react-navigation/lib-rn/views/HeaderBackButton.js
gunaangs/Feedonymous
import React from 'react'; import { I18nManager, Image, Text, View, Platform, StyleSheet } from 'react-native'; var babelPluginFlowReactPropTypes_proptype_Style = require('../TypeDefinition').babelPluginFlowReactPropTypes_proptype_Style || require('prop-types').any; var babelPluginFlowReactPropTypes_proptype_LayoutEv...
stories/components/youtubeVideo/index.js
sethbergman/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import YouTube from 'shared/components/youtubeVideo/youtubeVideo'; storiesOf('shared/components/youtubeVideo', module) .add('Default', () => ( <YouTube id="edMC6Wc3nsg" height="390" width="640" /> ));
src/layouts/PageLayout/PageLayout.js
crssn/funfunapp
import React from 'react' import { IndexLink, Link } from 'react-router' import PropTypes from 'prop-types' import './PageLayout.scss' export const PageLayout = ({ children }) => ( <div className='container text-center'> <h1>React Redux Starter Kit</h1> <IndexLink to='/' activeClassName='page-layout__nav-ite...
examples/with-shallow-routing/pages/index.js
arunoda/next.js
import React from 'react' import Link from 'next/link' import Router from 'next/router' import { format } from 'url' let counter = 1 export default class Index extends React.Component { static getInitialProps ({ res }) { if (res) { return { initialPropsCounter: 1 } } counter++ return { ...
components/collapse/index.js
bebeanan/monkey-ui
import RcCollapse from 'rc-collapse'; import React from 'react'; export default class Collapse extends React.Component { // static Panel = RcCollapse.Panel; // static defaultProps = { // prefixCls: 'ant-collapse', // } render() { return <RcCollapse {...this.props} />; } } Collapse.Panel=RcCollapse...
docs/src/app/components/pages/components/Avatar/Page.js
verdan/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import avatarReadmeText from './README'; import AvatarExampleSimple from './Exam...
src/views/About.js
JoJoChilly/joexp-react
import React, { Component } from 'react'; export default class About extends Component { render() { return ( <div> <div style={{ paddingTop: '30px' }}> <h2>Yes, finally I made it.</h2> <p>做一个网站并不那么简单,尤其是对于拖延症晚期患者来说。</p> ...
app/app.js
krzkaczor/react-webpack-boilerplate
import React from 'react' import Router, {Route} from 'react-router' require('bootstrap-webpack'); require('font-awesome-webpack'); class App extends React.Component { render() { return( <div> <h1><i className="fa fa-hand-peace-o"/> {'Hello World'}</h1> {this.pr...
src/scripts/Loader.js
lmacsen/yoda
'use strict'; import React from 'react'; import Join from 'react/lib/joinClasses'; export default React.createClass({ getDefaultProps() { return { size: 32, stroke: 6, direction: 'col', message: 'Loading...' }; }, renderSpinner(props) { let spinClass = Join('spinner-containe...
src/searching/ProductTable.js
nikunjagarwal1/react-make-notes
import React, { Component } from 'react'; import ProductCategoryRow from './ProductCategoryRow'; import ProductRow from './ProductRow'; class ProductTable extends Component{ constructor(){ super(); } render(){ var rows=[]; var lastCategory = null; this.props.products.forEach((product) =>{ if...
src/svg-icons/communication/location-off.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationLocationOff = (props) => ( <SvgIcon {...props}> <path d="M12 6.5c1.38 0 2.5 1.12 2.5 2.5 0 .74-.33 1.39-.83 1.85l3.63 3.63c.98-1.86 1.7-3.8 1.7-5.48 0-3.87-3.13-7-7-7-1.98 0-3.76.83-5.04 2.15l3.19 ...
examples/counter/containers/App.js
wescravens/redux-devtools
import React, { Component } from 'react'; import CounterApp from './CounterApp'; import { createStore, applyMiddleware, combineReducers, compose } from 'redux'; import { devTools, persistState } from 'redux-devtools'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; import thunk from 'redux-...
src/app/containers/App.js
skratchdot/audio-editor
import React, { Component } from 'react'; import { Grid } from 'react-bootstrap'; import pathGet from 'object-path-get'; import Header from '../components/Header'; import Footer from '../components/Footer'; import GithubCorner from 'react-github-corner'; import stringToCssName from '../helpers/stringToCssName'; class ...
src/svg-icons/social/cake.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialCake = (props) => ( <SvgIcon {...props}> <path d="M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2zm4.6 9.99l-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l...
components/Toggle/Toggle.js
ISMAELMARTINEZ/linkuk
import React from 'react' import s from './Toggle.css' const Toggle = (props) => ( <div className={`${s.switch} ${props.disabled ? s.disabled : ''}`} tabIndex="0" onMouseUp={(e) => props.onMouseUp && props.onMouseUp(e)} > <div className={s.mask}> <div className={`${s.container} ${props.on ? s...
gitweb/public/js/components/github-panel.js
alanctgardner/gitweb
import React from 'react'; import {http} from 'http' import bus from 'fluxed/bus'; import Router from 'react-router'; import github from 'github'; var { Navigation } = Router; import classNames from 'classnames'; var RepoListItem = React.createClass({ mixins: [Navigation], onClick(e) { if (e.ctrlKey || e.shif...
src/components/topic/versions/homepages/TopicVersionErrorStatusContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { injectIntl, FormattedMessage } from 'react-intl'; import AppButton from '../../../common/AppButton'; import Permissioned from '../../../common/Permissioned'; import { PERMISSION_ADMIN } from '../../../../lib/auth'; import messages from '../../../.....
src/components/Search/Search.js
carbon-design-system/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React, { Component } from 'react'; import classNames from 'classnames'; import Search16 from '@car...
src/web/components/FilterListItem.js
faalsh/LamaDesktop
import React from 'react' import { StyleSheet, css } from 'aphrodite' class FilterListItem extends React.Component { handleOnClick() { const {memberId, actions} = this.props actions.filterByMember(memberId) } render(){ const {memberId, member, memberFilter} = this.props const styles = StyleShee...
src/client/components/SensorNavMenu/SensorNavMenu.js
cyrillegin/Aquaponics
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; import ListItemIcon from '@material-ui/core/ListItemIcon'; import ListItemText from '@materia...
src/components/views/messages/MVideoBody.js
aperezdc/matrix-react-sdk
/* Copyright 2015, 2016 OpenMarket Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
app/components/H3/index.js
dbrelovsky/react-boilerplate
import React from 'react' function H3 (props) { return ( <h3 {...props} /> ) } export default H3
src/components/Home.js
sankhadeeproy007/react-football-app
import React, { Component } from 'react'; import { connect } from "react-redux"; import { Link } from 'react-router'; import {List, ListItem} from 'material-ui/List'; import Subheader from 'material-ui/Subheader'; import { fetchCompetitions, setCompetitionName } from "../actions/competitionsActions"; import '../style...
app/javascript/mastodon/components/status_list.js
rutan/mastodon
import { debounce } from 'lodash'; import React from 'react'; import { FormattedMessage } from 'react-intl'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import StatusContainer from '../containers/status_container'; import ImmutablePureComponent from 'react-immutable-p...
client/scripts/components/user/entities/entity/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. 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 Lic...
static/src/authorize.js
detailyang/cas-server
/** * @Author: BingWu Yang <detailyang> * @Date: 2016-03-13T22:17:03+08:00 * @Email: detailyang@gmail.com * @Last modified by: detailyang * @Last modified time: 2016-04-21T00:25:11+08:00 * @License: The MIT License (MIT) */ import 'antd/dist/antd.css'; import './index.scss'; import React from 'react'; import Re...
src/native/notfound/NotFoundPage.js
TheoMer/este
// // @flow // import React from 'react'; // import messages from '../../common/notfound/messages'; // import theme from '../app/themes/initial'; // import { CenteredContainer, FormattedMessage, Link } from '../app/components'; // import { StyleSheet } from 'react-native'; // // const styles = StyleSheet.create({ // ...
node_modules/react-router/es6/RouteContext.js
andrit/VideoListReact
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/js/components/TextInput/stories/WithTags.js
HewlettPackard/grommet
import React from 'react'; import { FormClose } from 'grommet-icons'; import { Box, Button, Grommet, Keyboard, Text, TextInput } from 'grommet'; import { grommet } from 'grommet/themes'; const allSuggestions = ['sony', 'sonar', 'foo', 'bar']; const Tag = ({ children, onRemove, ...rest }) => { const tag = ( <Bo...
app/components/TabsNav/index.js
delmaroi/tododemo
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; const TabsNav = (props) => { const { hasBorder } = props; const tabsClass = classNames( 'tabs__nav', { 'tabs__nav--has-border': hasBorder, }, ); return ( <ul className={tabsClass}> ...
stories/containers/channels/channel-balance.stories.js
LN-Zap/zap-desktop
import React from 'react' import { storiesOf } from '@storybook/react' import { number } from '@storybook/addon-knobs' import { ChannelBalance } from 'components/Channels' import { Provider } from '../../Provider' storiesOf('Containers.Channels', module) .addDecorator(story => <Provider story={story()} />) .addWit...
src/containers/recipes/Card/CardContainer.js
jeanlescure/detox-react-native-demo
/** * Individual Recipe Card Container * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Actions } from 'react-native-router-flux'; // Actions import * ...
src/common/route.js
yusinto/movie-time
import React from 'react'; import {Route, IndexRedirect} from 'react-router'; import App from './component/appComponent'; import {homeQueries} from './query'; import Home from './container/homeContainer'; import Contact from './container/contactContainer'; import Loader from './component/loaderComponent'; const setDef...
packages/react-scripts/fixtures/kitchensink/src/index.js
TondaHack/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...
src/website/app/pages/Styling/index.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Button from '../../../../library/Button'; import Callout from '../../Callout'; import Markdown from '../../Markdown'; import content from './styling.md'; type Props = {}; export default function Styling(props: Props) { return ( <Markdown scope={{ Button, Callout }} ...
src/components/Book/Book.js
rkdavidson/tangentially-reading
require('normalize.css'); require('./Book.scss'); var marked = require('marked'); import React from 'react'; export default class Book extends React.Component { rawDescription() { if ( this.props.description ) { var rawDescription = marked(this.props.description.toString(), { sanitize: false }...
app/components/ToggleOption/index.js
itimofeev/hustledb-ui
/** * * ToggleOption * */ import React from 'react'; import { injectIntl, intlShape } from 'react-intl'; const ToggleOption = ({ value, message, intl }) => ( <option value={value}> {intl.formatMessage(message)} </option> ); ToggleOption.propTypes = { value: React.PropTypes.string.isRequired, message: Rea...
blueocean-material-icons/src/js/components/svg-icons/device/battery-charging-50.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const DeviceBatteryCharging50 = (props) => ( <SvgIcon {...props}> <path d="M14.47 13.5L11 20v-5.5H9l.53-1H7v7.17C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V13.5h-2.53z"/><path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v8....
frontend/component/NewTopic.js
wangmuming/node-forum
import React from 'react'; import jQuery from 'jquery'; import {addTopic} from '../lib/client'; import {redirectURL} from '../lib/utils'; import TopicEditor from './TopicEditor'; export default class NewTopic extends React.Component{ constructor(pros){ super(pros); this.state = {}; } render(){ retu...
templates/project/src/javascripts/index.js
kyleholzinger/regen-cli
import App from '@components/App'; import React from 'react'; import { render } from 'react-dom'; import { createStore } from 'redux'; import { Provider } from 'react-redux'; import reducer from '@reducers'; const store = createStore(reducer); render( <Provider store={store}> <App /> </Provider>, document.que...
src/routes.js
moje-skoly/web-app
import React from 'react'; import {IndexRoute, Route} from 'react-router'; import { App, About, Home, How, Detail, Comparison, Contact, Filter, NotFound, SchoolPreview, } from './pages'; export default () => { /** * Please keep routes in alphabetical order */ return ...
src/js/components/sidenav/sidenav.js
working-minds/realizejs
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import PropTypes from '../../prop_types'; import $ from 'jquery'; import { mixin } from '../../utils/decorators'; import CssClassMixin from '../../mixins/css_class_mixin'; import Menu from '../../components/menu/menu'; @mixin(CssClassMixin) ...
src-rx/src/components/EasyModeCard.js
ioBroker/ioBroker.admin
import React from 'react'; import { Card, CardMedia, } from "@material-ui/core"; import { withStyles } from '@material-ui/core/styles'; import clsx from 'clsx'; import PropTypes from "prop-types"; const boxShadow = '0 2px 2px 0 rgba(0, 0, 0, .14),0 3px 1px -2px rgba(0, 0, 0, .12),0 1px 5px 0 rgba(0, 0, 0, .2)'; const ...
client/src/server/server.js
Pitzcarraldo/spring-react-redux-universal-example
import express from 'express'; import webpack from 'webpack'; import webpackConfig from '../../webpack.config'; import webpackDevMiddleware from 'webpack-dev-middleware'; import webpackHotMiddleware from 'webpack-hot-middleware'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; import { Routi...
packages/ui/src/components/ErrorAlert.js
dino-dna/donut
import React from 'react' import PropTypes from 'prop-types' import '../css/ErrorAlert.css' const ErrorAlert = ({ message, onClick }) => ( <div className='ErrorAlert' role='alert' > <span aria-hidden='true' aria-label='Bomb emoji' role='img' > 💣 </span> {message} ...
src/Link/LinkModal.js
ship-components/ship-components-texteditor
/** * @file Modal for link editing * @author Isaac Suttell <isaac@isaacsuttell.com> */ // Modules import React, { Component } from 'react'; import PropTypes from 'prop-types'; // Components import { Confirm } from 'ship-components-dialog'; import TextInput from 'ship-components-textinput'; export default class Lin...
actor-apps/app-web/src/app/components/Deactivated.react.js
akingyin1987/actor-platform
import React from 'react'; class Deactivated extends React.Component { render() { return ( <div className="deactivated row center-xs middle-xs"> <div className="deactivated__window"> <h2>Tab deactivated</h2> <p> Oops, you have opened another tab with Actor, so we had...
src/client/components/Comments/Comment.js
busyorg/busy
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { Link } from 'react-router-dom'; import { injectIntl, FormattedRelative, FormattedDate, FormattedTime, FormattedMessage, } from 'react-intl'; import { Tag, message } from 'antd'; import BTooltip from '....
src/containers/discover/thoughtworks-books/ThoughtworksBooks.js
phodal/growth-ng
import React, { Component } from 'react'; import { FlatList, ScrollView } from 'react-native'; import { List, ListItem } from 'react-native-elements'; import AppStyle from '../../../theme/styles'; import Launch from '../../../components/discover/Launch'; const BOOKS = [ { name: '编程实践', path: 'practical' }, { name:...
public/js/components/admin/Cards.react.js
rajikaimal/Coupley
/** * Created by Isuru 1 on 21/01/2016. */ import React from 'react'; import { Link } from 'react-router'; import Tabs from './graphs/tab.react'; import CustomerGraph from './graphs/customers.react'; import PieGraph from './graphs/pieChartCustomers.react'; import GraphActions from './../../actions/admin/GraphActions'...
src/svg-icons/maps/local-bar.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalBar = (props) => ( <SvgIcon {...props}> <path d="M21 5V3H3v2l8 9v5H6v2h12v-2h-5v-5l8-9zM7.43 7L5.66 5h12.69l-1.78 2H7.43z"/> </SvgIcon> ); MapsLocalBar = pure(MapsLocalBar); MapsLocalBar.displayName ...
src/routes/not-found/NotFound.js
ben-miller/adddr.io
/** * adddr (https://www.adddr.io/) * * 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-types'; import withStyl...
app/javascript/mastodon/features/favourites/index.js
riku6460/chikuwagoddon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchFavourit...
src/client.js
nathanielks/universal-redux
import React from 'react'; import ReactDOM from 'react-dom'; import createStore from './shared/create'; import { render as renderDevtools } from './client/devtools'; // dependencies of external source. these resolve via webpack aliases // as assigned in merge-configs.js import middleware from 'universal-redux/middlew...
src/routes/User/User.js
townmi/DOM
/** * */ import React, { Component } from 'react'; import axios from 'axios'; import { Link } from 'react-router'; import ListCell from '../../components/ListCell'; import './user.scss'; class User extends Component { constructor(props) { super(props); this.state = { userInfo: null...
src/components/EntityTree/EntityTreeContext.js
jsreport/jsreport-studio
import React from 'react' const EntityTreeContext = React.createContext({}) export default EntityTreeContext
www/windows/terminalWindow/components/TabManager/TabButton.js
AlmirKadric-org/exTerm-electron
import React from 'react'; import classNames from 'classnames'; import { observer } from 'mobx-react'; export default observer( class TabButton extends React.Component { render() { const tab = this.props.tab; const tabIndex = tab.getIndex(); const btnClasses = classNames('tabButton', this.props.className); ...
src/FormControls/Static.js
insionng/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import InputBase from '../InputBase'; import childrenValueValidation from '../utils/childrenValueInputValidation'; class Static extends InputBase { getValue() { const {children, value} = this.props; return children ? children : value; } ren...
app/javascript/mastodon/components/dropdown_menu.js
tootsuite/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import IconButton from './icon_button'; import Overlay from 'react-overlays/lib/Overlay'; import Motion from '../features/ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; imp...
app/views/STF/Dashboard/Budgeting/SubTable/SubTable.js
RcKeller/STF-Refresh
import React from 'react' import PropTypes from 'prop-types' import _ from 'lodash' import { Row, Col, Table } from 'antd' const currency = number => number.toLocaleString('en-US', { style: 'currency', currency: 'USD' }) const manifestColumns = [ { title: 'Name', dataIndex: 'name...
packages/components/src/Dialog/Dialog.stories.js
Talend/ui
import React from 'react'; import { action } from '@storybook/addon-actions'; import Dialog from './Dialog.component'; const defaultProps = { show: true, }; const headerProps = { header: 'Hello world', show: true, }; const actionProps = { show: true, header: 'Hello world', action: { label: 'OK', onClick: ac...
test/react-native-cli/features/fixtures/rn0_67_hermes/App.js
bugsnag/bugsnag-js
import React from 'react'; import Bugsnag from "@bugsnag/react-native"; import { SafeAreaView, StyleSheet, ScrollView, View, Text, StatusBar, Button, NativeModules } from 'react-native'; import { Colors } from 'react-native/Libraries/NewAppScreen'; function jsNotify() { try { // execute crashy code ...
frontend/src/Settings/Indexers/Indexers/EditIndexerModalContent.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React from 'react'; import Form from 'Components/Form/Form'; import FormGroup from 'Components/Form/FormGroup'; import FormInputGroup from 'Components/Form/FormInputGroup'; import FormLabel from 'Components/Form/FormLabel'; import ProviderFieldFormGroup from 'Components/Form/P...
Lumino/js/screens/ControllersScreen.js
evonove/lumino
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Button, StatusBar, View } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; import isEqual from 'lodash.isequal'; import GradientHeader from '../components/GradientHeader/GradientHea...
node_modules/react-router/modules/IndexRedirect.js
WatkinsSoftwareDevelopment/HowardsBarberShop
import React from 'react' import warning from './warning' import invariant from 'invariant' import Redirect from './Redirect' import { falsy } from './PropTypes' const { string, object } = React.PropTypes /** * An <IndexRedirect> is used to redirect from an indexRoute. */ const IndexRedirect = React.createClass({ ...
staticfiles/js/components/LoadingPage/LoadingPage.ace22d98c29f.js
alemneh/negativity-purger
import React from 'react'; import styles from './LoadingPage.css'; const Loading = () => { return ( <div className={styles.wrapper}> <div className={styles.focus}> purging </div> <div className={styles.mask}> <div className={styles.text}>purging</div> </div> ...
src/app.js
bentaylor2/react-redux-grid-generator
import { render } from 'react-dom'; import React from 'react'; import './styles/base.scss'; // redux import createStore from './redux/createStore'; // components import Root from './components/Root' const store = createStore(); render( <Root store={store} />, document.getElementById('app') );
analysis/warlockdestruction/src/modules/talents/Eradication.js
anom0ly/WoWAnalyzer
import { t } from '@lingui/macro'; import { formatPercentage, formatThousands, formatNumber } from 'common/format'; import SPELLS from 'common/SPELLS'; import { SpellLink } from 'interface'; import { TooltipElement } from 'interface'; import UptimeIcon from 'interface/icons/Uptime'; import Analyzer, { SELECTED_PLAYER }...
admin/client/components/ListFiltersAddForm.js
mikaoelitiana/keystone
import React from 'react'; import ReactDOM from 'react-dom'; import CurrentListStore from '../stores/CurrentListStore'; import filters from '../filters'; import Popout from './Popout'; var ListFiltersAddForm = React.createClass({ propTypes: { field: React.PropTypes.object.isRequired, maxHeight: React.PropTypes.n...
react-ui/src/crafts/react/Cuisine Colors/Main.react.js
simonlimon/varsncrafts
import React from 'react'; import Axios from 'axios'; import Chroma from 'chroma-js'; import ColorWheel from './ColorWheel.react'; import Select from 'react-select'; import { Loader } from 'semantic-ui-react'; // Styles for select button: import 'react-select/dist/react-select.css'; // List of cuisines import CUISINE...
fields/components/columns/CloudinaryImageSummary.js
riyadhalnur/keystone
import React from 'react'; // import CloudinaryImage from 'react-cloudinary-img'; import ItemsTableValue from '../../../admin/client/components/ItemsTableValue'; const IMAGE_SIZE = 18; const linkStyle = { marginRight: 8, }; const boxStyle = { borderRadius: 3, display: 'inline-block', height: IMAGE_SIZE, overflow...
entry_types/scrolled/package/src/frontend/__stories__/tooltip-stories.js
codevise/pageflow
import React from 'react'; import {storiesOf} from '@storybook/react'; import {Tooltip} from '../Tooltip'; const stories = storiesOf('Frontend/Tooltip', module); stories.add( 'Tooltip', () => { return ( <div style={{width: '100%', height: '100vh', background: '#fff', margin: 100}}> <Tooltip fix...
node_modules/react-bootstrap/es/NavItem.js
hsavit1/gosofi_webpage
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/components/Chart.js
Greynight/Exercises
import React from 'react'; import { Line } from 'react-chartjs-2'; const style = { textAlign: 'center' }; const Chart = (props) => { const users = props.users; const activeExerciseId = props.activeExerciseId; const activeParamId = props.activeParamId; const params = props.params; let data = [...props.data...
src/svg-icons/social/sentiment-satisfied.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSentimentSatisfied = (props) => ( <SvgIcon {...props}> <circle cx="15.5" cy="9.5" r="1.5"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S1...
src/index.js
fbarbare/blog-sites
import 'babel-polyfill'; import './client/google'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { BrowserRouter, Route } from 'react-router-dom'; import { store } from './client/store'; import App from './client/app'; import 'bootstrap-4-grid/css/grid.cs...
src/ParticipationListMobile/RenderBottomFiveList.js
christianalfoni/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import ChallengeMeta13 from '../ChallengeMeta13'; import LeaderboardSeparator1 from '../LeaderboardSeparator1'; function RenderBottomFiveList(props) { const lastIndex = props.sortedList.length - 1; const firstIndex = lastIndex - 4; return ( <div...
views/resetpassword_page.js
SpaceyRezum/react-trivia-game
import React from 'react'; import firebase from 'firebase'; import { Link } from 'react-router'; class ResetPasswordPage extends React.Component { constructor() { super(); this.state = { email: '', emailSent: false, error: '' }; this.resetPassword = this.resetPassword.bind(this); } render() { co...
04/EW/trding/trding/src/components/myassets/MyAssets.js
rgllm/uminho
import React from 'react'; import ReactDOM from 'react-dom'; import { handleResponse } from '../../helpers'; import './MyAssets.css'; import { API_URL } from '../../config'; import TransactionTable from './TransactionTable' import Loading from '../common/Loading'; import Pagination from '../list/Pagination' import {Use...
server/sonar-web/src/main/js/app/components/nav/component/ComponentNav.js
Builders-SonarSource/sonarqube-bis
/* * 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...
docs/app/Examples/views/Comment/Variations/index.js
ben174/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const CommentVariations = () => ( <ExampleSection title='Variations'> <ComponentExample title='Threaded' description...
pages/products.js
elliotec/LnL
import React from 'react'; import Product from 'components/Product/Product'; import SeasonalProducts from 'components/SeasonalProducts/SeasonalProducts'; import BundleProducts from 'components/BundleProducts/BundleProducts'; import AllProducts from 'components/AllProducts/AllProducts'; import { connect } from 'react-re...