path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/category_frequency.js
xuan6/admin_dashboard_local_dev
import React from 'react'; import ReactDOM from 'react-dom'; var SimpleTooltipStyle = require('react-d3-tooltip').SimpleTooltip; var BarGroupTooltip = require('react-d3-tooltip').BarGroupTooltip; //category by frequency const CategoryFre = ({data}) => { //activity trend by departments var generalCha...
docs/app/components/navigation/index.js
VACO-GitHub/vaco-components-library
import React from 'react'; import { Link } from 'react-router'; const Navigation = (props) => { return ( <nav className={props.className}> <ul> <li><Link activeClassName={props.activeClassName} to='/install'>Installation</Link></li> <li><Link activeClassName={props.activeClassName} to='/com...
api/src/pages/router.js
svagi/httptest
import React from 'react' import { Provider } from 'react-redux' import { render } from 'react-dom' import { renderToStaticMarkup } from 'react-dom/server' import history from 'react-router/lib/browserHistory' import IndexRoute from 'react-router/lib/IndexRoute' import match from 'react-router/lib/match' import Route f...
lib/encoding/EscapeSummary.js
waynecraig/encoding-present
require('./css/tree.css'); import React, { Component } from 'react'; import d3tree from './d3tree'; export default class Slide extends Component { render() { return ( <div id='escape-tree' onClick={(e)=>e.stopPropagation()}> </div> ) } componentDidMount() { d3tree('escape-tree', data); } } const data ...
client/components/new-words/index.js
wordupapp/wordup
import React from 'react'; import { Router, Route, Switch } from 'react-router'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { Header, Container, Menu, Icon } from 'semantic-ui-react'; import history from '../../history'; import LevelWordView from './LevelWords'; import Ohte...
shared/components/DemoApp/AsyncCounterRoute/CounterRoute.js
ctrlplusb/react-universally
/* eslint-disable react/no-unescaped-entities */ import React, { Component } from 'react'; class CounterRoute extends Component { constructor(props) { super(props); this.incrementCounter = this.incrementCounter.bind(this); this.state = { counter: 0 }; } incrementCounter() { this.setState({ count...
packages/xo-web/src/xo-app/backup/restore/index.js
vatesfr/xo-web
import _ from 'intl' import ActionButton from 'action-button' import ButtonLink from 'button-link' import Component from 'base-component' import Icon from 'icon' import React from 'react' import SortedTable from 'sorted-table' import { addSubscriptions, formatSize, noop } from 'utils' import { confirm } from 'modal' im...
react-flux-mui/js/material-ui/src/svg-icons/device/gps-fixed.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceGpsFixed = (props) => ( <SvgIcon {...props}> <path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.1...
src/components/streams/StreamList.js
streamr-app/streamr-web
import React from 'react' export default ({ children, className = '', streams, ...rest }) => ( <div className={`stream-list ${className}`} {...rest}> {children} </div> )
admin/client/components/ConfirmationDialog.js
Redmart/keystone
import React from 'react'; import { Modal, ModalBody, ModalFooter, Button } from 'elemental'; module.exports = React.createClass({ displayName: 'ConfirmationDialog', propTypes: { body: React.PropTypes.string, cancelLabel: React.PropTypes.string, confirmationLabel: React.PropTypes.string, confirmationType: Re...
ReactRouter+ReduxForm-Blog/src/components/postsShow.js
vivekbharatha/ModernReactWithReduxCourseUdemy
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { Field, reduxForm } from 'redux-form'; import { connect } from 'react-redux'; import { getPost, deletePost } from './../actions'; class PostsShow extends Component { componentDidMount() { if (!this.props.posts) { co...
src/layouts/CoreLayout/CoreLayout.js
GovReady/GovReady-Agent-Client
import React from 'react'; import { PropTypes as PT } from 'prop-types'; import SiteList from 'views/SiteState/SiteList'; import Footer from 'components/Footer'; import '../../styles/bootstrap-partial.scss'; import '../../styles/core.scss'; // Note: Stateless/function components *will not* hot reload! // react-transf...
src/components/goods/goodsRow.js
yunhuduan/react-scaffold
import React from 'react'; export default class GoodsRow extends React.Component{ componentDidMount(){ console.log('GoodsRow componentWillmount'); console.dir(this.props) } render(){ return ( <tr> <td>{this.props.row.id}</td> <td>{this...
src/UncontrolledAlert.js
reactstrap/reactstrap
import React, { Component } from 'react'; import Alert from './Alert'; class UncontrolledAlert extends Component { constructor(props) { super(props); this.state = { isOpen: true }; this.toggle = this.toggle.bind(this); } toggle() { this.setState({ isOpen: !this.state.isOpen }); } render() ...
src/docs/components/sun-burst/SunBurstDoc.js
grommet/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import SunBurst from 'grommet/components/SunBurst'; import Box from 'grommet/components/Box'; import Legend from 'grommet/components/Legend'; import Value from 'grommet/components/Value'; import Button from '...
src/main/react/index.js
pesan/service-spy
import React from 'react'; import ReactDOM from 'react-dom'; import {BrowserRouter} from 'react-router-dom' import {JssProvider} from 'react-jss' import registerServiceWorker from './registerServiceWorker'; import {createMuiTheme, MuiThemeProvider} from '@material-ui/core/styles'; import Main from 'Main'; import CssBa...
lib/components/admin-job-dashboard.js
conveyal/analysis-ui
import { Accordion, AccordionItem, AccordionHeader, AccordionPanel, AccordionIcon, Badge, Box, Flex, Progress, Stack, Stat, StatHelpText, StatGroup, StatLabel, StatNumber, Text } from '@chakra-ui/react' import format from 'date-fns/format' import formatDistanceToNow from 'date-fns/format...
src/components/common/ListItem/ListItem.js
harpreetkhalsagtbit/url-manager
import React from 'react'; // import PropTypes from 'prop-types'; // ES6 import { Button, Item } from 'semantic-ui-react' import './ListItem.css'; import $ from 'jquery'; const ListItemForURL = ({listdata = [], showEditModalHandler, deleteURLHandler, label, onChange, placeHolder, value, error}) => { let wrapperClass...
widgets/ListItem.js
sqvcnet/react-native-libvr-demo
/** * Created by cluo on 16/10/24. */ 'use strict'; import React, { Component } from 'react'; import { Image, StyleSheet, Text, TouchableOpacity, ToastAndroid, View, Alert, Dimensions } from 'react-native'; class ListItem extends Component { render() { var winSize = Dime...
app/scripts/main.js
Angelwang51/react-fireblog
import React from 'react'; import Router from 'react-router'; import routes from './routes'; Router.run(routes, Handler => React.render(<Handler />, document.body));
src/svg-icons/communication/clear-all.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationClearAll = (props) => ( <SvgIcon {...props}> <path d="M5 13h14v-2H5v2zm-2 4h14v-2H3v2zM7 7v2h14V7H7z"/> </SvgIcon> ); CommunicationClearAll = pure(CommunicationClearAll); CommunicationClearAll.di...
src/components/Footer/Footer.js
wwwfreedom/FreeCodeCamp
import React from 'react' import sty from './Footer.scss' export default function Footer () { return ( <div className={sty.container}> <p> Built using React.js. Check out the source <a href="https://github.com/wwwfreedom/FreeCodeCamp" target='_blank'> here. </a> &copy; {new Date()....
src/widgets/NaviIntro/index.js
mydearxym/mastani
/* * * NaviIntro * */ import React from 'react' import T from 'prop-types' import { buildLog } from '@/utils/logger' import { Wrapper, Logo, Digest, Title, Desc } from './styles' /* eslint-disable-next-line */ const log = buildLog('c:NaviIntro:index') const NaviIntro = ({ title, desc, iconSrc, testid }) => { ...
WorldMoodTracker/js/index.js
kavithaenair/kavithaenair.github.io
import React from 'react'; import ReactDOM from 'react-dom'; import WorldMoodTracker from './components/WorldMoodTracker.js'; export const host = 'http://api.loklak.org'; ReactDOM.render( <WorldMoodTracker/>, document.getElementById('app') );
src/index.js
alickzhang/react-gallery
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/components/Topics.js
uxlayouts/spidermonkey
import React from 'react' import { Route, Link } from 'react-router-dom' import Topic from './Topic'; const Topics = ({ match }) => ( <div className="container-fluid padding-top-3 padding-bottom-3"> <h2>Topics</h2> <ul> <li> <Link to={`${match.url}/rendering`}> Rendering with Reac...
app/index.js
jenyckee/electron-virtual-midi
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, hashHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import routes from './routes'; import configureStore from './store/configureStore'; import './app.global.s...
src/index.js
one-stop-team/ripta-app
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import 'bootstrap/dist/css/bootstrap.min.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/svg-icons/hardware/keyboard-voice.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardVoice = (props) => ( <SvgIcon {...props}> <path d="M12 15c1.66 0 2.99-1.34 2.99-3L15 6c0-1.66-1.34-3-3-3S9 4.34 9 6v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 15 6.7 12H5c0 3.42 2.72 6....
components/SongList.js
calvinmikael/Radio
/** * @flow */ import React from 'react'; import { Text, View, } from 'react-native'; import moment from 'moment'; import styles from './styles'; import Timestamp from './Timestamp'; const SongList = ({ title, songs, error, errorText, force }) => ( <View style={styles.songListView}> <View style={styles.so...
src/components/widgets/primitives/slide.js
abbr/ShowPreper
import React from 'react' var DisplayableComponent = require('../displayableComponent') import classNames from 'classnames' let TextBox = class extends React.Component { render() { let componentsView = this.props.component.components.map( (component, index) => { return <DisplayableComponent compone...
todo-app/src/index.js
iproduct/course-node-express-react
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; // import App from './App'; // import Hello from './Hello'; import Timer from './Timer'; import * as serviceWorker from './serviceWorker'; ReactDOM.render(<Timer name="Trayan" />, document.getElementById('root')); // If you want your a...
src/parser/priest/holy/modules/spells/azeritetraits/PromiseOfDeliverance.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import TraitStatisticBox from 'interface/others/TraitStatisticBox'; import SPELLS from 'common/SPELLS'; import { calculateAzeriteEffects } from 'common/stats'; import { formatNumber, formatPercentage } from 'common/format'; import ItemHealingDone ...
client/layouts/CoreLayout.js
andersem/react-redux-starter-kit
import React from 'react'; import 'styles/core.scss'; export default class CoreLayout extends React.Component { static propTypes = { children : React.PropTypes.element } constructor () { super(); } render () { return ( <div className='page-container'> <div className='view-containe...
packages/netlify-cms-ui-default/src/AuthenticationPage.js
netlify/netlify-cms
import React from 'react'; import PropTypes from 'prop-types'; import styled from '@emotion/styled'; import Icon from './Icon'; import { buttons, shadows } from './styles'; import GoBackButton from './GoBackButton'; const StyledAuthenticationPage = styled.section` display: flex; flex-flow: column nowrap; align-...
assets/jqwidgets/demos/react/app/formattedinput/righttoleftlayout/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxFormattedInput from '../../../jqwidgets-react/react_jqxformattedinput.js'; class App extends React.Component { render() { return ( <JqxFormattedInput width={250} height={25} radix={'binary'} rtl={true} ...
information/blendle-frontend-react-source/app/modules/stories/components/StoryTile/index.js
BramscoChill/BlendleParser
/* eslint-disable react/prop-types */ // Disable proptypes because it's a false positive since recompose is used import React from 'react'; import { string, number, func, oneOf, bool } from 'prop-types'; import classNames from 'classnames'; import { CheckIcon } from '@blendle/lego'; import { compose, onlyUpdateForProp...
src/Select.js
ygkee/React-select
import React from 'react'; import ReactDOM from 'react-dom'; import Input from 'react-input-autosize'; import classNames from 'classnames'; import stripDiacritics from './utils/stripDiacritics'; import Async from './Async'; import Option from './Option'; import Value from './Value'; function stringifyValue (value) {...
src/svg-icons/image/healing.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageHealing = (props) => ( <SvgIcon {...props}> <path d="M17.73 12.02l3.98-3.98c.39-.39.39-1.02 0-1.41l-4.34-4.34c-.39-.39-1.02-.39-1.41 0l-3.98 3.98L8 2.29C7.8 2.1 7.55 2 7.29 2c-.25 0-.51.1-.7.29L2.25 6.63c-...
app/javascript/mastodon/features/ui/util/react_router_helpers.js
TheInventrix/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { Switch, Route } from 'react-router-dom'; import ColumnLoading from '../components/column_loading'; import BundleColumnError from '../components/bundle_column_error'; import BundleContainer from '../containers/bundle_container'; // Small wrapper t...
node_modules/react-slick/src/track.js
maty21/statistisc
'use strict'; import React from 'react'; import assign from 'object-assign'; import classnames from 'classnames'; var getSlideClasses = (spec) => { var slickActive, slickCenter, slickCloned; var centerOffset, index; if (spec.rtl) { index = spec.slideCount - 1 - spec.index; } else { index = spec.index...
examples/counter/containers/CounterApp.js
sapegin/redux-devtools
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Counter from '../components/Counter'; import * as CounterActions from '../actions/CounterActions'; class CounterApp extends Component { render() { const { counter, dispatch } = this...
docs/src/app/components/pages/components/IconButton/ExampleSimple.js
mmrtnz/material-ui
import React from 'react'; import IconButton from 'material-ui/IconButton'; const IconButtonExampleSimple = () => ( <div> <IconButton iconClassName="muidocs-icon-custom-github" /> <IconButton iconClassName="muidocs-icon-custom-github" disabled={true} /> </div> ); export default IconButtonExampleSimple;
src/index.js
bpa/cyborg-rally
import React from 'react'; import ReactDOM from 'react-dom'; //import './index.css'; import Client from './Client'; //import * as serviceWorker from './serviceWorker'; ReactDOM.render(<Client />, document.getElementById('root')); // If you want your app to work offline and load faster, you can change // unregister() ...
packages/example-phone/src/scripts/components/incoming-call-alert-list/incoming-call-alert-list.js
Josh-Dykstra/spark-js-sdk
import React from 'react'; import IncomingCallAlert from './incoming-call-alert'; export default function IncomingCallAlertList({calls, ...rest}) { if (!calls) { return null; } return ( <div> <IncomingCallAlert call={calls[0]} {...rest} /> </div> ); } IncomingCallAlertList.propTypes = { c...
src/VBox.story.js
prometheusresearch/react-ui
/** * @flow */ import React from 'react'; import {storiesOf} from '@kadira/storybook'; import VBox from './VBox'; function Box(props) { return ( <VBox {...props} border={{width: 1, style: 'solid', color: 'red'}} padding={10} /> ); } storiesOf('<VBox />', module) .add('Simple', () => ( <Box> <Bo...
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js
tonyxiao/segment-debugger
import React from 'react' import { reduxForm } from 'redux-form' export const fields = [] const validate = (values) => { const errors = {} return errors } type Props = { handleSubmit: Function, fields: Object, } export class <%= pascalEntityName %> extends React.Component { props: Props; defaultProps = ...
blueocean-material-icons/src/js/components/svg-icons/action/face.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionFace = (props) => ( <SvgIcon {...props}> <path d="M9 11.75c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zm6 0c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zM12 2C6.4...
docs/app/Examples/elements/Label/Types/LabelExampleBasic.js
clemensw/stardust
import React from 'react' import { Icon, Label } from 'semantic-ui-react' const LabelExampleBasic = () => ( <Label> <Icon name='mail' /> 23 </Label> ) export default LabelExampleBasic
github/src/components/Text.js
changjianhong/react-native-redux
/** * Copyright (c) 2017-present, Liu Jinyong * All rights reserved. * * https://github.com/huanxsd/MeiTuan * @flow */ import React from 'react'; import ReactNative, { StyleSheet, Dimensions, Text ,ReactElement} from 'react-native' import color from '../common/color' export function HeadingBig({style, ...props}...
react/features/chat/components/native/ChatMessageGroup.js
gpolitis/jitsi-meet
// @flow import React, { Component } from 'react'; import { FlatList } from 'react-native'; import { MESSAGE_TYPE_LOCAL, MESSAGE_TYPE_REMOTE } from '../../constants'; import ChatMessage from './ChatMessage'; type Props = { /** * The messages array to render. */ messages: Array<Object> } /** * Implement...
samples/react/internals/templates/containers/NotFoundPage/index.js
IntelliSearch/search-client
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
src/containers/productsPage.js
CatDaVinci/wiser-react-redux
import React, { Component } from 'react'; import { Grid, Row, Col } from 'react-bootstrap'; import { connect } from 'react-redux'; import { loadProducts } from '../actions'; import { bindActionCreators } from 'redux'; import ProductsTable from '../components/productsTable'; import ProductsPagination from '../componen...
static/src/components/TakeQuizView.js
agelarry/online_quiz
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import TextField from 'material-ui/TextField'; import { Step, Stepper, StepLabel, } from 'material-ui/Stepper'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/Fla...
app/containers/NotFoundPage/index.js
ajfuller/react-casestudy
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route */ import React from 'react'; import messages from './messages'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; export default function NotFound() { return ( <article> ...
packages/react/src/components/forms/Form/index.js
massgov/mayflower
/** * Form module. * @module @massds/mayflower-react/Form * @requires module:@massds/mayflower-assets/scss/01-atoms/forms * @requires module:@massds/mayflower-assets/scss/04-templates/form-page */ import React from 'react'; import PropTypes from 'prop-types'; import { FormContext } from 'MayflowerReactForms/Input/...
src/svg-icons/communication/dialer-sip.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationDialerSip = (props) => ( <SvgIcon {...props}> <path d="M17 3h-1v5h1V3zm-2 2h-2V4h2V3h-3v3h2v1h-2v1h3V5zm3-2v5h1V6h2V3h-3zm2 2h-1V4h1v1zm0 10.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.01.24l-2.2 ...
packages/xo-web/src/xo-app/host/tab-storage.js
vatesfr/xo-web
import _ from 'intl' import Link from 'link' import map from 'lodash/map' import React from 'react' import SortedTable from 'sorted-table' import StateButton from 'state-button' import Tooltip from 'tooltip' import { confirm } from 'modal' import { connectPbd, disconnectPbd, deletePbd, deletePbds, editSr, isSrShared } ...
src/routes/cauhoithuonggap/index.js
luanlv/comhoavang
import React from 'react'; import Home from './Home'; import fetch from '../../core/fetch'; import needFetch from '../../core/needFetch'; import Layout from '../../components/Layout'; import {setData} from '../../actions/data' export default { path: '/cau-hoi-thuong-gap', async action({ store, query, path }) { ...
src/StorySelectors/StorySelectors.js
amysimmons/a-guide-to-the-care-and-feeding-of-new-devs
import React from 'react'; import Story from '../Story/Story' require("./StorySelectors.css"); var Selector = React.createClass({ handleClick(e){ this.props.selectStory(this.props.story); }, setSelectorIconClasses(){ var userIconClasses = ""; switch(this.props.story["Gender"]){ case "M": userIcon...
src/containers/Dashboard/components/ChartHeader.js
aastein/crypto-trader
import React, { Component } from 'react'; import ReactModal from 'react-modal'; import Dropdown from '../../../components/Dropdown'; import Select from '../../../components/Select'; import Input from '../../../components/Input'; import FetchButton from '../../../components/FetchButton'; import ObjectForm from '../../....
src/features/games/DefaultPage.js
thehig/arpggio-firebase-client
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import * as actions from './redux/actions'; export class DefaultPage extends Component { static propTypes = { games: PropTypes.object.isRequired, ac...
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js
ustccjw/react-router
import React from 'react'; import { Link } from 'react-router'; export default class AnnouncementsSidebar extends React.Component { render () { var announcements = COURSES[this.props.params.courseId].announcements; return ( <div> <h3>Sidebar Assignments</h3> <ul> {announcemen...
src/routes/index.js
loganfreeman/react-is-fun
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import App from '../components/...
contracts/src/js/Header.js
merlox/dapp-transactions
import React from 'react' import { Link } from 'react-router-dom' import '../stylus/header.styl' import LINKS from './utils.js' class Header extends React.Component { constructor(props){ super(props) this.state = { currentSection: window.location.pathname.split('/')[1] } } render(...
src/pages/components/ContextExample.js
js22gz/myteiching
import React, { Component } from 'react'; import { LoginLink } from 'react-stormpath'; export default class ContextExample extends React.Component { static contextTypes = { authenticated: React.PropTypes.bool, user: React.PropTypes.object }; render() { if (!this.context.authenticated) { conso...
frontend/Fetching/FetchingIndicator.js
fdemian/Morpheus
import React from 'react'; import CircularProgress from 'material-ui/CircularProgress'; const FetchingIndicator = () => { return( <div> <CircularProgress size={60} thickness={5} /> </div> ); } export default FetchingIndicator;
src/chat/ui/room/SupportGroup.js
elarasu/roverz-chat
import React from 'react'; import { View, Text, } from 'react-native'; // import { Actions } from 'react-native-router-flux'; import RoomView from './RoomView'; import { AppStyles, AppSizes } from '../../../theme/'; import Network from '../../../network'; import t from '../../../i18n'; export default class Suppor...
modules/gui/src/app/home/map/staticMap.js
openforis/sepal
import {compose} from 'compose' import {withMapsContext} from './maps' import React from 'react' import styles from './staticMap.module.css' class _StaticMap extends React.Component { map = React.createRef() render() { const {children} = this.props return ( <React.Fragment> ...
src/svg-icons/places/golf-course.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesGolfCourse = (props) => ( <SvgIcon {...props}> <circle cx="19.5" cy="19.5" r="1.5"/><path d="M17 5.92L9 2v18H7v-1.73c-1.79.35-3 .99-3 1.73 0 1.1 2.69 2 6 2s6-.9 6-2c0-.99-2.16-1.81-5-1.97V8.98l6-3.06z"/> ...
src/components/OrgCard/stories.js
envisioning/tdb-storybook
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import OrgCard from './'; import { getCloudinaryPath, getCardUrl} from '../../utils/cloudinary_url' storiesOf('Organization Card', module) .add('default', () => ( <OrgCard style={{width: 300}} _id={'abc'} type={'g...
demo/DemoItem.js
xadn/react-x-list
import React from 'react'; import Chance from 'chance'; const chance = new Chance(); const style = { border: '1px solid black', }; class DemoItem extends React.Component { constructor(props) { super(props); this.state = { text: chance.sentence({words: chance.natural({min: 1, max: 40})}) }; } ...
fields/types/code/CodeField.js
naustudio/keystone
import _ from 'lodash'; import CodeMirror from 'codemirror'; import Field from '../Field'; import React from 'react'; import { findDOMNode } from 'react-dom'; import { FormInput } from '../../../admin/client/App/elemental'; import classnames from 'classnames'; /** * TODO: * - Remove dependency on lodash */ // See ...
examples/FormView.js
MichaelCereda/react-native-form-generator
/* This is a view i use in a test app, very useful to list all the use cases */ import React from 'react'; import { AppRegistry, StyleSheet, Text, View,ScrollView,TouchableHighlight, Modal } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; import { Form, Separator,InputField, L...
public/src/agent/Login.js
jschairb/ctc-poc
import React from 'react'; import Card from './Card'; import * as state from './state'; class Login extends React.Component { constructor(props) { super(props); this.state = { value: '' }; this.handleChange = this.handleChange.bind(this); this.handleSubmit = this.handleSubmit.bin...
app/containers/PrivacyPolicy/index.js
theterra/newsb
import React from 'react'; import PrivacyStyle from './PrivacyStyle'; import logo from '../../Assets/privacylogo.png'; class PrivacyPolicy extends React.Component { render() { return ( <PrivacyStyle> <div className="parallax"></div> <div className="pr-header"> <a href="http://seasonboy.co...
src/demos/custom-layers/starting-code/root.js
uber-common/vis-academy
import React from 'react'; import {render} from 'react-dom'; import App from './src/app'; const element = document.getElementById('root'); render(<App />, element); if (module.hot) { module.hot.accept('./src/app', () => { const Next = require('./src/app').default; render(<Next />, element); }); }
src/docs/ComponentPage.js
emanualjade/react-jade
import React from 'react'; import PropTypes from 'prop-types'; import Example from './Example'; import Props from './Props'; const ComponentPage = ({component}) => { const {name, description, props, examples} = component; return ( <div className="componentpage"> <h2>{name}</h2> <p>{description}</p...
app/src/components/Graph/Graph.js
civa86/electrophone
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import cytoscape from 'cytoscape'; import { ActionHandler } from '../../components/ActionHandler'; //Graph Service import GraphService from './GraphService' const graph = GraphService(cytoscape, window); class Graph extends Component { ...
packages/ringcentral-widgets-docs/src/app/pages/Components/TextInput/index.js
ringcentral/ringcentral-js-widget
import React from 'react'; import { parse } from 'react-docgen'; import CodeExample from '../../../components/CodeExample'; import ComponentHeader from '../../../components/ComponentHeader'; import PropTypeDescription from '../../../components/PropTypeDescription'; import Demo from './Demo'; // eslint-disable-next-lin...
SpriteComponent/Sprite.js
williamngan/react-native-sprite
// Sprite component bridged with native component (react-native 0.29) // By William Ngan, 7/2016 import React, { Component } from 'react'; import { requireNativeComponent, NativeModules, findNodeHandle } from 'react-native'; // refers to Sprite.swift we have in XCode const SpriteNative = requireNativeComponent('Sprit...
docs/app/Examples/modules/Popup/Variations/PopupExampleOffset.js
koenvg/Semantic-UI-React
import React from 'react' import { Icon, Popup } from 'semantic-ui-react' const PopupExampleOffset = () => ( <div> <Popup trigger={<Icon size='large' name='heart' circular />} content='Way off to the left' offset={50} position='left center' /> <Popup trigger={<Icon size='lar...
day.js
limelights/react-dejt
import React, { Component } from 'react'; import classnames from 'classnames'; export default (props) => { const cls = classnames( 'DatePicker__day', { 'DatePicker__day--selected': props.isSelected } ); return <div className={cls} onClick={props.onClick}>{ props.children }</div>; }
maodou/customers/client/components/admin/index.js
wuyang910217/meteor-react-redux-base
import React from 'react'; export default (props) => { return ( <div className="admin-package-wrapper"> {props.children} </div> ); }
Libraries/Utilities/throwOnWrongReactAPI.js
gitim/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/routes/Home/components/HomeView.js
anitu/NextFlick
import React from 'react' import classes from './HomeView.scss' export const HomeView = () => ( <div className={'center-block'}> <img alt='This is a duck, because Redux!' className={classes.duck} /> <p className={'help-block'}>What will you watch next?</p> <form> <div className={'fo...
src/containers/AddTodo.js
vallacodec/react-scaff
import React from 'react' import { connect } from 'react-redux' import { addTodo } from '../actions' let AddTodo = ({ dispatch }) => { let input return ( <div> <form onSubmit={e => { e.preventDefault() if (!input.value.trim()) { return } dispatch(addTodo(input.v...
pages/about.js
Tgy31/welcom-react
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; export default class extends Component { render() { return ( <div> <h1>About Us</h1> <p>Coming s...
src/app/components/shell/LeftNav.js
omrilitov/react-universal
import React from 'react'; import { AppBar, Drawer, MenuItem, Divider, IconButton } from 'material-ui'; import ArrowBack from 'material-ui/svg-icons/navigation/arrow-back'; import UserIcon from 'material-ui/svg-icons/social/person'; const styles = { container: { display: 'flex', flexDirection: 'co...
src/frontend/index.js
pcarion/graphql-relay-authentication
import React from 'react'; import { render } from 'react-dom'; import { Router, Route } from 'react-router'; // componets for the application import App from './components/App'; import Login from './components/Login'; import Logout from './components/Logout'; import Dashboard from './components/Dashboard'; import Abou...
packages/eslint-config-universe/__tests__/fixtures/web-native-02.js
exponent/exponent
import React from 'react'; export default class Example extends React.Component { componentDidUpdate() {} render() { return null; } componentDidMount() {} static getInitialProps() {} }
app/imports/ui/client/components/Traceability/index.js
valcol/ScrumNinja
import React, { Component } from 'react'; import { Session } from 'meteor/session'; import { createContainer } from 'meteor/react-meteor-data'; import { Collections } from '../../../../api/common/collections.js'; import {Meteor} from 'meteor/meteor'; import UserStoriesList from './UserStoriesList.js'; import Feedback...
docs/app/Examples/collections/Grid/Variations/GridExamplePaddedHorizontally.js
vageeshb/Semantic-UI-React
import React from 'react' import { Grid, Image } from 'semantic-ui-react' const GridExamplePaddedHorizontally = () => ( <div> <p>The following grid has horizontal gutters.</p> <Grid columns={2} padded='horizontally'> <Grid.Column> <Image src='http://semantic-ui.com/images/wireframe/paragraph.p...
index.js
ben-scully/eMazon-Me
import React from 'react' import { render } from 'react-dom' import { Router, Route, Link, browserHistory } from 'react-router' import App from './components/App' import HomePage from './components/HomePage' import Store from './components/Store' import Item from './components/Item' render(( <Router history={browse...
src/svg-icons/image/brightness-1.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrightness1 = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="12" r="10"/> </SvgIcon> ); ImageBrightness1 = pure(ImageBrightness1); ImageBrightness1.displayName = 'ImageBrightness1'; ImageBrightnes...
app/src/components/Button/Button.stories.js
WoundedPixels/us-population
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { linkTo } from '@storybook/addon-links'; import Button from './Button'; storiesOf('Button', module) .add('with text', () => <Button onClick={action('clicked')}>Hello Button</Butto...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
theBru/llc-prototypes
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
node_modules/react-navigation/lib-rn/navigators/TabNavigator.js
RahulDesai92/PHR
import React from 'react'; import { Platform } from 'react-native'; import createNavigator from './createNavigator'; import createNavigationContainer from '../createNavigationContainer'; import TabRouter from '../routers/TabRouter'; import TabView from '../views/TabView/TabView'; import TabBarTop from '../views/TabVie...
src/components/Main.js
Crazywolfovo/gallery-by-react
require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; import ReactDOM from 'react-dom'; //let yeomanImage = require('../images/yeoman.png'); //get picture datas,利用自执行函数, prop name transform url var imageDatas = require('../data/imageDatas.json'); (function genImageURL(imageD...
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-router/4.1.1/es/Route.js
JamieMason/npm-cache-benchmark
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; }; function _classCallCheck(instance, Constructor) { if (!(insta...