path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
stories/card.stories.js
VulcanJS/Vulcan
import React from 'react'; import { storiesOf } from '@storybook/react'; import { dataSampleCollection } from './dataSample/dummyCollection'; import { Components } from 'meteor/vulcan:core'; /* Card */ const card = storiesOf('Core/Card', module); const cardProps = { collection: dataSampleCollection, document:...
example/examples/MarkerTypes.js
palexs/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, } from 'react-native'; import MapView from 'react-native-maps'; import flagBlueImg from './assets/flag-blue.png'; import flagPinkImg from './assets/flag-pink.png'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = w...
spec/javascripts/jsx/gradebook-history/GradebookHistoryAppSpec.js
djbender/canvas-lms
/* * Copyright (C) 2017 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
src/spa/dev/js/components/Feed.js
MoimHossain/netcore-microservice-tutorial
import React from 'react'; const Feed = () => ( <div className="ui feed"> <div className="event"> <div className="label"> <img src="https://semantic-ui.com/images/avatar/small/elliot.jpg"></img> </div> <div className="content"> <div className...
src/App.js
ralmidani/react-my-reads
import React from 'react'; import './App.css'; import {getAll, update} from './BooksAPI'; import {Route} from 'react-router-dom'; import Search from './components/Search'; import BookShelves from './components/BookShelves'; class App extends React.Component { state = { books: [] } shelves = [ {apiTitle:...
app/components/ConfigOptions.js
FermORG/FermionJS
// @flow import React, { Component } from 'react'; import styles from './photon.scss'; import coreStyles from './Core.scss'; import panelStyles from './Panels.scss'; import ColorPicker from './ColorPicker'; // returns renderable config Panel options. export default function ConfigOption(props) { const { activeCompon...
src/components/App.js
rsimmons/immersion-player
import React, { Component } from 'react'; import { BrowserRouter as Router, Link, NavLink, Switch, Route, Redirect } from 'react-router-dom'; import { ScrollContext } from 'react-router-scroll-4'; import { extractAudioFromVideo, extractFrameImageFromVideo } from '../library'; import './App.css'; import WidthWrapper ...
web/src/content/projects/earning-insight/EarningInsightStories.js
ajmalafif/ajmalafif.com
import React from 'react' import Stories from 'react-insta-stories' import { getImage, GatsbyImage } from 'gatsby-plugin-image' import tw, { css, theme } from 'twin.macro' export const EarningInsightStories = props => { const figure1 = <GatsbyImage alt="Earning Insight exploration A" image={getImage(props.assets[0]...
client/containers/App/index.js
andreiconstantinescu/project-viper
import React from 'react' import { connect } from 'react-redux' import RandomNumber from 'components/RandomNumber' import RoundImage from 'components/RoundImage' import { Actions as GenerateNumberActions } from 'redux/RandomNumber.redux' import { Actions as SetMessageActions } from 'redux/Message.redux' import { Types ...
popup/src/scripts/components/search/HashtagSearchList.js
CaliAlec/ChromeIGStory
import React, { Component } from 'react'; import {connect} from 'react-redux'; import Tooltip from '@material-ui/core/Tooltip'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; import ListItemText from '@material-ui/core/ListItemText'; import ListItemAvatar from '@material-u...
app/containers/LocaleToggle/index.js
54vanya/ru-for-you-front
/* * * LanguageToggle * */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import Toggle from 'components/Toggle'; import Wrapper from './Wrapper'; import messages from './messages'; import { appLocales } from '../../i18n'; import { changeLocale } from ...
src/screens/App/screens/About/index.js
savitri/savitri-web
import React from 'react'; export default class About extends React.Component { render() { return ( <div> <h2>About</h2> <p>About Savitri.</p> </div> ); } }
src/components/atoms/Atom/index.stories.js
SIB-Colombia/dataportal_v2_frontend
import React from 'react' import { storiesOf } from '@kadira/storybook' import Atom from '.' storiesOf('Atom', module) .add('default', () => ( <Atom>Hello</Atom> )) .add('reverse', () => ( <Atom reverse>Hello</Atom> ))
examples/with-firebase-functions/src/App.js
jaredpalmer/razzle
import './App.css'; import React from 'react'; const App = () => <div>Welcome to Razzle.</div>; export default App;
admin/client/App/screens/Item/components/FooterBar.js
matthieugayon/keystone
import React from 'react'; import blacklist from 'blacklist'; import assign from 'object-assign'; var FooterBar = React.createClass({ propTypes: { style: React.PropTypes.object, }, getDefaultProps () { return { style: {}, }; }, getInitialState () { return { position: 'relative', width: 'auto', ...
src/Tab/index.js
reactivers/react-mcw
/** * Created by muratguney on 28/03/2017. */ import React from 'react'; import PropTypes from 'prop-types'; import Button from '../Button' import WaveEffect from '../WaveEffect' import generateId from '../utils/generateId'; class Tabs extends React.Component { constructor(props) { super(props); ...
src/routes.js
jhines2k7/react-starter-one
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import Router from 'react-routing/src/Router'; import http from './core/HttpClient'; import App from './components/App'; import ContentPage from './components/ContentPage'; import ContactPage from './components/ContactP...
gxa/src/main/javascript/bundles/differential-expression/src/DifferentialResults.js
gxa/atlas
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import URI from 'urijs' import EbiSpeciesIcon from 'react-ebi-species' import DisplayLevelsButton from './DisplayLevelsButton' import DifferentialDownloadButton from './DifferentialDownloadButton' import DifferentialF...
src/App.js
PaulMill/myline_life
import React, { Component } from 'react'; import './App.css'; import NavBar from './components/navBar/NavBar.component' import axios from 'axios' import logo from './logo.svg' // import { browserHistory } from 'react-router' class App extends Component { constructor(props) { super(props) this.state = { ...
geonode/contrib/monitoring/frontend/src/index.js
timlinux/geonode
import React from 'react'; import { render } from 'react-dom'; import Root from './containers/root'; import injectTapEventPlugin from 'react-tap-event-plugin'; // Needed for onTouchTap // http://stackoverflow.com/a/34015469/988941 injectTapEventPlugin(); const spinner = document.getElementById('spinner'); spinner.st...
pootle/static/js/admin/duedates/components/DueDateContainer.js
evernote/zing
/* * Copyright (C) Zing contributors. * * This file is a part of the Zing 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 DueDateAPI from 'api/DueDat...
src/components/common/detailsList/DetailsListItem.js
zainxyz/react-reads
import isEmpty from 'lodash/isEmpty'; import PropTypes from 'prop-types'; import React from 'react'; /** * Render a single details list item * @param {string} options.label The label for the list item * @param {string} options.value The value for the list item * @param {Object} options The props for the D...
src/components/widget/RawWidget.js
metasfresh/metasfresh-webui-frontend
import Moment from 'moment'; import React, { Component } from 'react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import { connect } from 'react-redux'; import classnames from 'classnames'; import { List as ImmutableList } from 'immutable'; import { RawWidgetPropTypes, RawWidgetDefaultPro...
src/components/Header/Header.js
sjackson212/A6DotCom
import React from 'react'; import root from 'window-or-global'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Header.css'; import Link from '../Link'; import Navigation from '../Navigation'; import logoUrl from './A6-logo.svg'; class Header extends React.Component { render() { ...
src/modules/search/components/WorksSearchTermButton/WorksSearchTermButton.js
CtrHellenicStudies/Commentary
import React from 'react'; import { withRouter } from 'react-router'; import PropTypes from 'prop-types'; import FontIcon from 'material-ui/FontIcon'; import qs from 'qs-lite'; import autoBind from 'react-autobind'; // lib import { parseValueUrn } from '../../../cts/lib/parseUrn'; import serializeUrn from '../../../ct...
pootle/static/js/admin/components/Project/ProjectController.js
claudep/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 Search from '../Search'...
src/CollapsibleMixin.js
zerkms/react-bootstrap
import React from 'react'; import TransitionEvents from './utils/TransitionEvents'; import deprecationWarning from './utils/deprecationWarning'; let warned = false; const CollapsibleMixin = { propTypes: { defaultExpanded: React.PropTypes.bool, expanded: React.PropTypes.bool }, getInitialState(){ l...
dashboard/app/components/app.js
benjaminjt/polyatomic
import React, { Component } from 'react'; import Hello from './hello'; class App extends Component { render() { return ( <div> <Hello /> </div> ); } } export default App
src/client/assets/js/nodes/datastores/plug/node.js
me-box/databox-sdk
import React from 'react'; import Textfield from 'components/form/Textfield'; import Select from 'components/form/Select'; import Cell from 'components/Cell'; import Cells from 'components/Cells'; class Node extends React.Component { render() { const {selected,values,updateNode} = this.props;...
react-app/src/components/ParentHome.js
floodfx/gma-village
import React from 'react'; import { Link } from 'react-router'; const ParentHome = ({user}) => ( <div> <div className="pv3 ph4 gma-orange-border"> <h1 className="lh-title f1 serif gma-orange">Welcome {user.first_name}!</h1> <p className="lh-copy f3"> We are looking forward to supporting you ...
packages/material-ui-icons/src/SpeakerNotesOff.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let SpeakerNotesOff = props => <SvgIcon {...props}> <path d="M10.54 11l-.54-.54L7.54 8 6 6.46 2.38 2.84 1.27 1.73 0 3l2.01 2.01L2 22l4-4h9l5.73 5.73L22 22.46 17.54 18l-7-7zM8 14H6v-2h2v2zm-2-3V9l2 2H6zm14-9H4...
client/src/components/dashboard/Profile/Preferences/common/RepoContainer.js
FCC-Alumni/alumni-network
import { connectScreenSize } from 'react-screen-size'; import { mapScreenSizeToProps } from '../../../Community/UserCard'; import propTypes from 'prop-types'; import React from 'react'; import repoHosts from '../../../../../assets/dropdowns/repoHosts'; import RepoInput from './RepoInput'; import RepoListItem from './Re...
techCurriculum/ui/solutions/2.7/src/index.js
jennybkim/engineeringessentials
/** * Copyright 2017 Goldman Sachs. * 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 writ...
packages/material-ui-icons/src/Battery80TwoTone.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V9h10V5.33z" /><path d="M7 9v11.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V9H7z" /></React.F...
lib/ActionSheetIOS.js
beefe/react-native-actionsheet
/** * Wrap ActionSheetIOS Api as a component. * @see http://facebook.github.io/react-native/docs/actionsheetios.html */ import React from 'react' import { ActionSheetIOS } from 'react-native' import optionsSchema from './options' class ActionSheet extends React.Component { // shold not update whenever, because n...
src/components/KFPNavbar.js
KidsFirstProject/KidsFirstProject.github.io
import React from 'react'; import { Navbar, Nav, NavDropdown, Container } from 'react-bootstrap'; import { Link } from 'react-router-dom'; import { LinkContainer } from 'react-router-bootstrap'; import logo from '../assets/images/logo.png'; import './KFPNavbar.css'; const { Brand, Toggle, Collapse } = Navbar; const K...
actor-apps/app-web/src/app/components/dialog/TypingSection.react.js
winiceo/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import classNames from 'classnames'; import DialogStore from 'stores/DialogStore'; export default React.createClass({ mixins: [PureRenderMixin], getInitialState() { return { typing: null, show: false }; }, compon...
RN HotUpdate/SmartHomeII/SmartHome/Community/Community.js
HarrisLee/React-Native-Express
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { StyleSheet, Text, View, Navigator, Platform, WebView, } from 'react-native'; const DEFAULT_URL_COMMUNITY = 'https://sale.suning.com/znjj2/sns/1/sns.html?source=smart';...
js/src/modals/AddContract/types.js
BSDStudios/parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any lat...
website-prototyping-tools/RelayPlayground.js
almasakchabayev/relay
/** * Copyright 2013-2015, 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. */ /* eslint-disable...
src/components/app.js
JairoHernandez/WeatherApp
import React, { Component } from 'react'; import SearchBar from '../containers/search_bar'; import WeatherList from '../containers/weather_list'; export default class App extends Component { render() { return ( <div> <SearchBar /> <WeatherList /> </div> ); } }
src/mobile/public/components/ProfileCarousel/index.js
Perslu/rerebrace
import React from 'react'; import NukaCarousel from 'nuka-carousel' import R from 'ramda'; import './styles.css'; const profileToProfileListItem = profile => { return <img key={profile.email} src={profile.picture.large}/> }; const log = text => what => { console.log(text, what); return what; }; const objectToLi...
src/components/App.js
jonscottclark/mlb-scoreboard
import React, { Component } from 'react'; import { RouteHandler } from 'react-router'; import Header from './Header.js'; import Scoreboard from './Scoreboard.js'; class App extends Component { constructor(props) { super(props); } render() { return ( <div> <Header /> <RouteHandler ...
app/javascript/mastodon/features/direct_timeline/components/conversation.js
pointlessone/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import StatusContainer from '../../../containers/status_container'; export default class Conversation extends ImmutablePureComp...
blueocean-material-icons/src/js/components/svg-icons/device/dvr.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const DeviceDvr = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12zm-2-9H8v2h11V8zm0 4H8v2h11v-2zM7 8H5v2h2V8zm0 4H5v2h2v-2z"/> </SvgIcon> ); De...
stories/decorators/CenterDecorator.js
suranartnc/react-universal-starter-kit
import React from 'react' const style = { display: 'flex', justifyContent: 'center', alignItems: 'center', height: 'calc(100vh - 16px)' } export default (story) => ( <div style={style}> {story()} </div> )
src/components/Login/login.js
ChronoBank/ChronoWAVES
import React from 'react'; import {connect} from 'react-redux'; import {Paper, RaisedButton, TextField} from 'material-ui'; import styles from './styles'; import {loginSuccessAction} from '../../redux/userActions'; import {blockchain} from '../../blockchain'; class Login extends React.Component { constructor(props)...
examples/js/remote/remote-store-search.js
neelvadgama-hailo/react-bootstrap-table
import React from 'react'; import RemoteSearch from './remote-search'; function getProducts() { const products = []; const startId = products.length; for (let i = 0; i < 12; i++) { const id = startId + i; products.push({ id: id, name: 'Item name ' + id, price: Math.floor((Math.random() ...
src/svg-icons/action/visibility.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionVisibility = (props) => ( <SvgIcon {...props}> <path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-...
packages/material-ui-icons/src/ZoomIn.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let ZoomIn = props => <SvgIcon {...props}> <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4...
app/javascript/mastodon/features/account/components/header.js
honpya/taketodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import IconButton from '../../../components/icon_button'; import Motion from '../../ui/util/optional_motion'; import sprin...
src/hoc/with-xpath-validation.js
InseeFr/Pogues
/* eslint-disable react/prop-types */ import React from 'react'; import { validateXpath } from '../../jison'; /** * High order component * * @param ComponentToWrap * @returns <div><ComponentToWrap props.meta.warning=validateXPath(input.value) /></div> */ const withXPathValidation = ComponentToWrap => props => { ...
2017/Cati/React/apresentacao2/projeto1/react-notes/src/components/Board.js
LorhanSohaky/UFSCar
import React from 'react'; import Note from './Note'; const Board=({notes,handleUpdate})=>( <div id="columns"> {notes.map((note,index)=>{ return <Note note={note} id={index} handleUpdate={handleUpdate}/> })} </div> ) export default Board;
app/react-app/src/index.js
spara/atsea-sample-shop-app
import React from 'react' import { render } from 'react-dom' import { createStore, applyMiddleware } from 'redux' import { Provider } from 'react-redux' import { Router, Route, hashHistory } from 'react-router' import { createLogger } from 'redux-logger' import thunkMiddleware from 'redux-thunk' import promiseMiddlewar...
wrappers/yaml.js
alonsogodinez/AlamedaWebPageGatsby
import React from 'react' import yaml from 'js-yaml' import Helmet from 'react-helmet' import { config } from 'config' module.exports = React.createClass({ propTypes () { return { route: React.PropTypes.object, } }, render () { const data = this.props.route.page.data return ( <div> ...
src/interface/report/Results/Timeline/Casts.js
yajinni/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { Trans } from '@lingui/macro'; import Tooltip from 'interface/Tooltip'; import { formatDuration } from 'common/format'; import Icon from 'interface/Icon'; import SpellLink from 'interface/SpellLink'; import CASTS_THAT_ARENT_CASTS from 'parser/core/...
app/jsx/developer_keys/NewKeyTrigger.js
djbender/canvas-lms
/* * Copyright (C) 2018 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
integration/azure/authentication/ms-identity-v2/implicit-grant/ClientApp/src/containers/WorkflowGenProfileContainer.js
advantys/workflowgen-templates
import React, { Component } from 'react'; import WorkflowGenProfileComponent from '../components/WorkflowGenProfileComponent'; import { GraphQLContext, GQLFactory } from '../models/GraphQL'; class WorkflowGenProfileContainer extends Component { constructor (props) { super(props); this.state = { error...
stories/menu/index.js
lanyuechen/dh-component
import React from 'react'; import { storiesOf, action, linkTo } from '@kadira/storybook'; import MenuDemo from './menu' import withReadme from 'storybook-readme/with-readme'; const options = { inline: true, propTables: false } storiesOf('Menu 导航', module) .addWithInfo('默认列表', () => ( <div> <MenuDemo /> ...
src/js/components/routes/Game.react.js
teamUndefined/creativity
import React from 'react'; import Canvas from './Canvas.react.js'; import Chat from '../partials/Chat.react'; import UserStore from '../../stores/UserStore'; import { Paper, Avatar } from 'material-ui'; var Game = React.createClass({ componentDidMount() { this.props.socket.on('err', function() { window.locati...
app/demos/CandleStick.js
chunghe/React-Native-Stock-Chart
import React, { Component } from 'react'; import { TouchableOpacity, View, Text, Dimensions, ScrollView, StyleSheet } from 'react-native'; import Svg, { G, Text as SvgText, Rect, Path } from 'react-native-svg'; import * as d3Scale from 'd3-scale'; import T from '../components/T'; const deviceWidth = Dimensions.get...
client/modules/User/components/LogInDialog/LoginDialog.js
XuHaoJun/tiamat
import React from 'react'; import PropTypes from 'prop-types'; import Dialog from '@material-ui/core/Dialog'; import DialogActions from '@material-ui/core/DialogActions'; import DialogContent from '@material-ui/core/DialogContent'; import Button from '@material-ui/core/Button'; import LogInForm from '../LogInForm'; ...
src/components/Combatant.js
kristyjy/battleplan
import React from 'react'; import { ListGroupItem, Badge, ButtonGroup, Button, Tooltip, Input } from 'reactstrap'; import './Combatant.scss'; import classNames from 'classnames'; class Combatant extends React.Component { constructor(props, context) { super(props, context); this.updateInitiative = this.upda...
src/components/AudioDetails/components/AudioDetails.js
altarit/cloudpolis-react
import React from 'react' import PropTypes from 'prop-types' import Draggable from 'react-draggable' import {Link} from 'react-router-dom' import Input from '../../Input' import './AudioDetails.scss' import {requestLyrics, updateLyrics} from "../modules/audioDetails" export class AudioDetails extends React.Component...
geonode/monitoring/frontend/src/index.js
mcldev/geonode
import React from 'react'; import { render } from 'react-dom'; import Root from './containers/root'; import injectTapEventPlugin from 'react-tap-event-plugin'; // Needed for onTouchTap // http://stackoverflow.com/a/34015469/988941 injectTapEventPlugin(); const spinner = document.getElementById('spinner'); spinner.st...
demo/component/ComposedChart.js
thoqbk/recharts
import React from 'react'; import { ResponsiveContainer, ComposedChart, Line, Bar, Area, XAxis, YAxis, ReferenceLine, ReferenceDot, Tooltip, Legend, CartesianGrid, Brush } from 'recharts'; const data = [ { name: 'Page A', uv: 590, pv: 800, amt: 1400 }, { name: 'Page B', uv: 868, pv: 967, amt: 1506 }, { name: '...
src/EdgeShapes.js
dunnock/react-sigma
// @flow import React from 'react' import '../sigma/edges' type Props = { default?: Sigma$Edge$Shapes, sigma?: Sigma }; /** EdgeShapes component, interface for customEdgeShapes sigma plugin. It supposes that sigma graph is already in place, therefore component should not be mounted until graph is available. It ca...
app/javascript/mastodon/features/explore/components/story.js
maa123/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Blurhash from 'mastodon/components/blurhash'; import { accountsCountRenderer } from 'mastodon/components/hashtag'; import ShortNumber from 'mastodon/components/short_number'; import Skeleton from 'mastodon/components/skeleton'; import classNames from...
app/javascript/mastodon/components/avatar.js
masto-donte-com-br/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class Avatar extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, size: PropType...
test/test_helper.js
LucasCaixeta/ReduxBlog
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
js/components/Header/5.js
LetsBuildSomething/vmag_mobile
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Container, Header, Title, Content, Button, Icon, Left, Right, Body, Text } from 'native-base'; import { Actions } from 'react-native-router-flux'; import { actions } from 'react-native-navigation-redux-helpers'; import { openDra...
node_modules/react-router/es6/RoutingContext.js
tousif101/YouTube-Clone-React
import React from 'react'; import RouterContext from './RouterContext'; import warning from './routerWarning'; var RoutingContext = React.createClass({ displayName: 'RoutingContext', componentWillMount: function componentWillMount() { process.env.NODE_ENV !== 'production' ? warning(false, '`RoutingContext` has...
app/components/LoadingIndicator/index.js
joegattnet/joegatt.net-client
import React from 'react'; import Circle from './Circle'; import Wrapper from './Wrapper'; const LoadingIndicator = () => ( <Wrapper> <Circle /> <Circle rotate={30} delay={-1.1} /> <Circle rotate={60} delay={-1} /> <Circle rotate={90} delay={-0.9} /> <Circle rotate={120} delay={-0.8} /> <Cir...
src/footer/ReactGridFooter.js
josebalius/react-grid
import React from 'react'; import ReactGridFooterStatus from './ReactGridFooterStatus'; import ReactGridFooterPagination from './ReactGridFooterPagination'; class ReactGridFooter extends React.Component { render() { return ( <div className="row"> <div className="col-md-6"> ...
src/svg-icons/places/free-breakfast.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesFreeBreakfast = (props) => ( <SvgIcon {...props}> <path d="M20 3H4v10c0 2.21 1.79 4 4 4h6c2.21 0 4-1.79 4-4v-3h2c1.11 0 2-.9 2-2V5c0-1.11-.89-2-2-2zm0 5h-2V5h2v3zM4 19h16v2H4z"/> </SvgIcon> ); PlacesFre...
js/components/QuestionTypes/CompleteForm.js
ecohealthalliance/GoodQuestion
import React from 'react'; import { Text, View, } from 'react-native'; import Styles from '../../styles/Styles'; import Color from '../../styles/Color'; import Button from 'apsl-react-native-button'; import Icon from 'react-native-vector-icons/FontAwesome'; const CompleteForm = React.createClass({ getInitialStat...
examples/NavigationPlayground/js/SimpleStack.js
half-shell/react-navigation
/** * @flow */ import React from 'react'; import { Button, ScrollView, } from 'react-native'; import { StackNavigator, } from 'react-navigation'; import SampleText from './SampleText'; const MyNavScreen = ({ navigation, banner }) => ( <ScrollView> <SampleText>{banner}</SampleText> <Button onPr...
example/examples/BugMarkerWontUpdate.js
hzdg/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, TouchableOpacity, } from 'react-native'; import MapView from 'react-native-maps'; import MyLocationMapMarker from './MyLocationMapMarker'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LA...
packages/ringcentral-widgets-docs/src/app/pages/Components/ActiveCallDialPad/Demo.js
ringcentral/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import ActiveCallDialPad from 'ringcentral-widgets/components/ActiveCallDialPad'; const props = {}; props.onChange = () => null; props.hiddenDialPad = () => null; props.onHangup = () => null; props.currentLocale = 'en-US'; /** * A example of `ActiveCallDialPad` ...
example/src/DeepLink.js
PlexChat/mobx-navigation
import React from 'react'; import { Button, Text, View } from 'react-native'; import { observer } from 'mobx-react' import { scene } from '../..'; import UniqueScene from './Unique'; @scene('SceneOne') class SceneOne extends React.Component { static navConfig = { tabAffinity: '3', navBarVisible: true...
src/components/containers/shen-wen-suo-trading-particulars-container.js
HuangXingBin/goldenEast
import React from 'react'; import { Button, AutoComplete ,DatePicker } from 'antd'; import './user-list-container.css'; import UserListTable from '../views/trading-particulars-list'; import { connect } from 'react-redux'; import store from '../../store'; import { updateChuanShangBoardMarketSearch } from '../../actions/...
packages/arwes/src/Puffs/sandbox.js
romelperez/prhone-ui
import React from 'react'; import Puffs from './index'; export default () => ( <Puffs> <div style={{ width: '100%', height: 500 }} /> </Puffs> );
frontend/src/Settings/ImportLists/ImportLists/AddImportListModalContentConnector.js
Radarr/Radarr
import _ from 'lodash'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { fetchImportListSchema, selectImportListSchema } from 'Store/Actions/settingsActions'; import AddImportListModalContent from './...
client/src/components/LoadingSpinner/LoadingSpinner.js
jnns/wagtail
import React from 'react'; import { STRINGS } from '../../config/wagtailConfig'; import Icon from '../../components/Icon/Icon'; /** * A loading indicator with a text label next to it. */ const LoadingSpinner = () => ( <span> <Icon name="spinner" className="c-spinner" /> {` ${STRINGS.LOADING}`} </span> );...
framework-examples/react/src/index.js
pgbross/material-components-web
/** * Copyright 2016 Google Inc. All Rights Reserved. * * 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 appli...
src/client/index.js
cyrillegin/Aquaponics
import React from 'react'; import ReactDOM from 'react-dom'; import App from './routes/App'; document.querySelector('.loader').parentElement.removeChild(document.querySelector('.loader')); ReactDOM.render( <App />, document.getElementById('root'), // eslint-disable-line );
src/BoardContainer.js
svangordon/react-chessdiagram
/* MIT License Copyright (c) 2016 Judd Niemann Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, ...
packages/components/src/VirtualizedList/CellTitle/CellTitleInput.component.js
Talend/ui
import PropTypes from 'prop-types'; import React from 'react'; import keycode from 'keycode'; import theme from './CellTitle.scss'; /** * Title input mode. * - It initializes the input value * - It adds handlers on form submit, ESC (cancel) and blur (submit) events */ export default class CellTitleInput extends Re...
ui/js/components/Text.js
ericsoderberg/pbc-web
import React from 'react'; import PropTypes from 'prop-types'; import Markdown from 'markdown-to-jsx'; const Text = (props) => { const { backgroundColor, className, text } = props; const classes = ['text']; if (className) { classes.push(className); } const textContent = text || props.children || ''; /...
index.android.js
ravicpn/ReactNativeAppStoreClient
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ 'use strict'; import React, { Component } from 'react'; import { AppRegistry, View, } from 'react-native'; import AppStore from './components/views/AppStore' class ReactNativeAppStoreClient extends Component { render() { ...
src/components/PayoutAddress/PayoutAddress.js
deluxe-pig/cloud-farmer
// PayoutAddress.js import React, { Component } from 'react'; import styles from './PayoutAddress.css'; import { Link } from 'react-router'; export default class PayoutAddress extends Component { render() { return ( <div> <div className={styles.payoutContainer}> <h1> Payout Address: </h1>...
demo/components/datepicker/DatePickerDemo.js
ctco/rosemary-ui
import React from 'react'; import {DatePicker, Button, MonthPicker, Input, IconInput} from '../../../src'; import DemoWithSnippet from '../../layout/DemoWithSnippet'; export default class DatePickerDemo extends React.Component { constructor(props) { super(props); this.state = { control...
public/systemjs/app/pages/component/generic.js
snowkeeper/keystonejs-site
import React from 'react'; /** * A generic container * expects a html prop * */ class Generic extends React.Component { constructor(props) { super(props) this.displayName = 'Generic ' this.state = { html: props.html || props.response } this.props = props }, componentWillReceiveProps(props) { ...
packages/arwes/src/Heading/Heading.js
romelperez/ui
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; export default function Heading(props) { const { theme, classes, node, className, children, ...etc } = props; const cls = cx(classes.root, className); return React.createElement(node, { className: cls, ...etc }, children)...
client/my-sites/invites/controller.js
mmmavis/mofo-calypso
/** * External Dependencies */ import ReactDom from 'react-dom'; import React from 'react'; import store from 'store'; import page from 'page'; /** * Internal Dependencies */ import i18n from 'lib/mixins/i18n'; import titleActions from 'lib/screen-title/actions'; import InviteAccept from 'my-sites/invites/invite-a...
src/components/SelectionPills/SelectionPill/SelectionPill.js
instacart/Snacks
import React from 'react' import Radium from '@instacart/radium' import PropTypes from 'prop-types' import { themePropTypes } from '../../../styles/themer/utils' import withTheme from '../../../styles/themer/withTheme' import { getStyles } from './styles' const NoOp = () => {} // eslint-disable-line no-empty-function ...
src/svg-icons/maps/directions-railway.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsRailway = (props) => ( <SvgIcon {...props}> <path d="M4 15.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h12v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V5c0-3.5-3.58-4-8-4s-8 .5-8 4v10.5zm8 1.5c-1.1 0-2-.9-2-2s.9-2 2...
packages/wix-style-react/src/CalendarPanel/test/CalendarPanel.visual.js
wix/wix-style-react
import React from 'react'; import { storiesOf } from '@storybook/react'; import CalendarPanel from '../CalendarPanel'; const tests = [ { describe: 'CalendarPanel', its: [ { it: 'no presets', props: { presets: [], value: new Date(1990, 3, 29), footer: false...
generators/app/templates/src/core/container/RetrieveExample.js
fobbyal/generator-scalable-react-redux
import React from 'react' import { connect } from 'react-redux' import { Button, Container } from 'semantic-ui-react' import R from 'ramda' import { retrieveDummyData } from '../actions' import { getDummyData } from '../selectors' import { fromNullable, Just, Nothing } from 'data.mayb...
examples/src/components/CustomComponents.js
serkanozer/react-select
import React from 'react'; import createClass from 'create-react-class'; import PropTypes from 'prop-types'; import Select from 'react-select'; import Gravatar from 'react-gravatar'; const USERS = require('../data/users'); const GRAVATAR_SIZE = 15; const GravatarOption = createClass({ propTypes: { children: PropTy...