path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
indico/modules/events/editing/client/js/management/tags/index.js
pferreir/indico
// This file is part of Indico. // Copyright (C) 2002 - 2021 CERN // // Indico is free software; you can redistribute it and/or // modify it under the terms of the MIT License; see the // LICENSE file for more details. import dashboardURL from 'indico-url:event_editing.dashboard'; import React from 'react'; import {...
client/router/index.js
wheelcomplex/go-starter-kit
import React from 'react'; import { render } from 'react-dom'; import Router from 'react-router'; import { Provider } from 'react-redux'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; import { createHistory } from 'history'; import toString from './toString'; import { Promise } from 'when...
node_modules/react-select/examples/src/components/CustomRender.js
rblin081/drafting-client
import React from 'react'; import createClass from 'create-react-class'; import PropTypes from 'prop-types'; import Select from 'react-select'; import Highlighter from 'react-highlight-words'; var DisabledUpsellOptions = createClass({ displayName: 'DisabledUpsellOptions', propTypes: { label: PropTypes.string, }, ...
app/javascript/mastodon/features/bookmarked_statuses/index.js
abcang/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { fetchBookmarkedStatuses, expandBookmarkedStatuses } from '../../actions/bookmarks'; import Column from '../ui/components/column'; import ColumnHeader...
src/index.js
SamanthaJ/theotherfoot
import '../styles.scss' import React from 'react'; import { render } from 'react-dom'; import { App } from './App'; render(<App />, document.getElementById('root'));
app/javascript/mastodon/features/account_timeline/containers/header_container.js
honpya/taketodon
import React from 'react'; import { connect } from 'react-redux'; import { makeGetAccount } from '../../../selectors'; import Header from '../components/header'; import { followAccount, unfollowAccount, blockAccount, unblockAccount, unmuteAccount, } from '../../../actions/accounts'; import { mentionCompose } ...
src/Glyphicon.js
Sipree/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const Glyphicon = React.createClass({ propTypes: { /** * bootstrap className * @private */ bsClass: React.PropTypes.string, /** * An icon name. See e.g. http://getbootstrap.com/components/#glyphicons */ glyph: Re...
app/components/Home.js
echohubio/hubber
// @flow import React from 'react'; import { Jumbotron, Button } from 'react-bootstrap'; import { shell } from 'electron'; // eslint-disable-line import/no-extraneous-dependencies // import styles from './Home.css'; // <div className={styles.container} const Home = () => ( <Jumbotron> <h1>EchoHub - Hubber</h1> ...
src/svg-icons/action/shopping-cart.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionShoppingCart = (props) => ( <SvgIcon {...props}> <path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11...
src/Parser/Hunter/Marksmanship/Modules/Talents/ExplosiveShot.js
enragednuke/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import SPELLS from 'common/SPELLS'; import SpellIcon from "common/SpellIcon"; import SpellLink from 'common/SpellLink'; import ItemDamageDone from 'Main/ItemDamageDone'; /* * Fires a slow...
new-lamassu-admin/src/components/Uptime.js
naconner/lamassu-server
import { makeStyles } from '@material-ui/core' import Chip from '@material-ui/core/Chip' import * as R from 'ramda' import React from 'react' import { secondaryColorLighter, secondaryColorDarker, offErrorColor, errorColor, offColor, inputFontWeight, smallestFontSize, inputFontFamily, spacer } from 's...
src/components/modal/AddPost.js
TimothyBom/react-redux-instagram
import React from 'react' import request from 'superagent' class AddPost extends React.Component { constructor(props) { super(props) this.state = { public_id: '', image_url: '', caption: '', token: localStorage.jwtToken ? localStorage.jwtToken : '' ...
react-js/browser-history-production/src/index.js
vanyaland/react-demos
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { Router, Route, browserHistory } from 'react-router'; import App from './components/app'; import UsersList from './components/child'; import reducers from '...
fields/types/url/UrlColumn.js
concoursbyappointment/keystoneRedux
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var UrlColumn = React.createClass({ displayName: 'UrlColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue () { va...
Example/index.android.js
nerdyfactory/things-notification
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Alert, PermissionsAndroid, TouchableOpacity, AppState, Image } from 'react-native'; import Notification from 'things-notification'; const PERMISSION = PermissionsAndroid.PERMISSIONS.READ_PHONE_STATE; export default class Notificat...
stories/Durations.js
TeaBough/react-big-calendar
import React from 'react' import { storiesOf } from '@storybook/react' import moment from 'moment' import { Calendar, Views, DragableCalendar } from './helpers' storiesOf('Event Durations', module) .add('Daylight savings starts', () => { return ( <DragableCalendar defaultView={Views.DAY} m...
node_modules/react-router/es6/RoutingContext.js
lzm854676408/big-demo
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...
src/Typography/Subheading1.js
kradio3/react-mdc-web
import React from 'react'; import TypographyElement from './TypographyElement'; const defaultProps = { component: 'h4', }; const Subheading1 = props => ( <TypographyElement modificator="subheading1" {...props} /> ); Subheading1.defaultProps = defaultProps; export default Subheading1;
examples/react/src/async/Text.stories.js
oblador/loki
import React from 'react'; import './ShrikhandFont.css'; export default { title: 'Text', }; export const WithExternalFont = () => ( <span style={{ fontFamily: 'Shrikhand, cursive' }}>Hello CursiveText</span> );
src/views/components/content-header/index.js
zerubeus/sawt
import React from 'react'; import PropTypes from 'prop-types'; function ContentHeader({section, title}) { return ( <header className="content-header"> <div className="g-row g-cont"> <div className="g-col"> <div className="content-header__section">{section} /</div> <h1 className=...
src/example/index.js
nkbt/geovis
import React from 'react'; import ReactDOM from 'react-dom'; import {createStore, combineReducers, applyMiddleware} from 'redux'; import {Provider} from 'react-redux'; import './reset.css'; import '../../geovis.css'; import {App} from '../App'; import {attacks} from '../attacks/reducer'; import {controls} from '../c...
app/javascript/mastodon/features/ui/components/columns_area.js
SerCom-KC/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ReactSwipeableViews from 'react-swipeable-views'; import { link...
src/components/charts/HashRateChart.js
whphhg/vcash-electron
import React from 'react' import { translate } from 'react-i18next' import { inject, observer } from 'mobx-react' import { AreaChart, Area, CartesianGrid, ResponsiveContainer, Tooltip, XAxis, YAxis, defs, linearGradient, stop } from 'recharts' /** Components */ import { CustomTick, CustomTooltip } ...
src/routes/adminCoupons/adminCoupons.js
goldylucks/adamgoldman.me
// @flow import React from 'react' import axios from 'axios' import { isAdam, isProd } from '../../utils' import history from '../../history' type Props = {} class AdminCoupons extends React.Component { state = { coupons: [], isFetchingCoupons: true, newCoupon: '', newProduct: '', } componentDi...
src/components/TrendAnalysis/SelectedSites.js
wrleskovec/thoughtcrime
import React from 'react'; export default class SelectedSites extends React.Component { constructor(props) { super(props); } render() { const { selectedSites, removeSite } = this.props; return ( <div className="col-md-6"> <div className="input-group selected-sites"> {selectedS...
frontend/src/App.js
loicbaron/nutrition
import React from 'react'; import './App.css'; import { IntlProvider } from 'react-intl'; import { createTheme, ThemeProvider } from '@mui/material/styles'; import en from './translations/en.json'; import fr from './translations/fr.json'; import Page from './components/Layout/Page'; import AppRouter from './AppRouter'...
app/javascript/mastodon/components/timeline_hint.js
gol-cha/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; const TimelineHint = ({ resource, url }) => ( <div className='timeline-hint'> <strong><FormattedMessage id='timeline_hint.remote_resource_not_displayed' defaultMessage='{resource} from other servers are ...
app/assets/javascripts/scores/libraries/index.js
HackPurdue/purdue-ironhacks
// Dependencies import React from 'react'; import Actions from 'bloggify/actions'; export default class App extends React.Component { constructor (props) { super(props); let params = new URLSearchParams(document.location.search.substring(1)); let owner = params.get('x'); this.state = { currentU...
src/svg-icons/device/location-searching.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceLocationSearching = (props) => ( <SvgIcon {...props}> <path d="M20.94 11c-.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.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-...
techCurriculum/ui/solutions/5.3/src/App.js
tadas412/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...
_viewlayers/react-router/app/components/router/Router.js
mjanssen/graduation-frontend-setups
import React from 'react'; import { BrowserRouter as Router, Switch, Route, } from 'react-router-dom'; import * as Routes from './Routes'; const AppRouter = () => ( <Router> <Switch> <Route exact path="/" component={Routes.Home} /> <Route path="/about" component={Routes.About} /> </Switch...
renderer/components/Home/WalletLauncher.js
LN-Zap/zap-desktop
import React from 'react' import PropTypes from 'prop-types' import config from 'config' import { compose } from 'redux' import { FormattedMessage, injectIntl } from 'react-intl' import { withRouter } from 'react-router-dom' import { Box, Flex } from 'rebass/styled-components' import styled from 'styled-components' imp...
app/components/Form/Field.js
vollmerr/app-hub
import React from 'react'; import PropTypes from 'prop-types'; import { Field as ReactField } from 'react-final-form'; import styled from 'styled-components'; const { bool, string, arrayOf, func } = PropTypes; export const composeValidators = (...validators) => (value) => ( validators.reduce((error, validator) => ...
example/simple.js
TaiwanStat/react-leaflet
import React, { Component } from 'react'; import { Map, TileLayer, Marker, Popup } from 'react-leaflet'; export default class SimpleExample extends Component { constructor() { super(); this.state = { lat: 51.505, lng: -0.09, zoom: 13, }; } render() { const position = [this.stat...
fields/types/datetime/DatetimeField.js
efernandesng/keystone
import DateInput from '../../components/DateInput'; import Field from '../Field'; import moment from 'moment'; import React from 'react'; import { Button, FormField, FormInput, FormNote, InputGroup } from 'elemental'; module.exports = Field.create({ displayName: 'DatetimeField', focusTargetRef: 'dateInput', // d...
code/workspaces/web-app/src/PrivateApp.js
NERC-CEH/datalab
import { Redirect, Route, Switch } from 'react-router-dom'; import React from 'react'; import { permissionTypes } from 'common'; import ModalRoot from './containers/modal/ModalRoot'; import NavigationContainer from './containers/app/NavigationContainer'; import ProjectNavigationContainer from './containers/app/ProjectN...
client/desktop/app/components/Profile.js
shanemcgraw/thumbroll
import React from 'react' import {Route, RouteHandler, Link, Button} from 'react-router' import api from './../utils/api' import auth from './../utils/auth' class Profile extends React.Component { constructor(props){ super(props); this.state = { teacherData: { name: '', email: '', ...
react-skeleton/src/index.js
chrisakakay/project-depot
import React from 'react'; import ReactDOM from 'react-dom'; import App from './Components/App'; import store from './store'; import { Provider } from 'react-redux'; ReactDOM.render( <Provider store={store}> <App /> </Provider>, document.getElementById('app-container') );
src/svg-icons/action/flight-land.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFlightLand = (props) => ( <SvgIcon {...props}> <path d="M2.5 19h19v2h-19zm7.18-5.73l4.35 1.16 5.31 1.42c.8.21 1.62-.26 1.84-1.06.21-.8-.26-1.62-1.06-1.84l-5.31-1.42-2.76-9.02L10.12 2v8.28L5.15 8.95l-.93-2...
src/js/components/output.js
limardo/Console
import React from 'react'; import Config from '../config'; import Preload from './preload'; import CommandStore from '../stores/commands'; class Output extends React.Component { constructor(props) { super(props); this.state = {command: props.command}; this._onChange = this._onChange.bind(th...
src/client/components/modals/Modal/Modal.component.js
DBCDK/content-first
import React from 'react'; import T from '../../base/T'; import Button from '../../base/Button'; import Text from '../../base/Text'; import Title from '../../base/Title'; import Icon from '../../base/Icon'; import './Modal.css'; export default class Modal extends React.Component { render() { const { clas...
public/app/components/base/icon-file-button.js
vincent-tr/mylife-home-studio
'use strict'; import React from 'react'; import * as mui from 'material-ui'; const IconFileButton = ({ onFileSelected, children, ...props }) => { let fileInput; const handler = (e) => { e.stopPropagation(); const file = e.target.files[0]; e.target.value = ''; if(!file) { return; } onFileSele...
src/interface/others/Feeding.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Icon from 'common/Icon'; import { TooltipElement } from 'common/Tooltip'; // import Toggle from 'react-toggle'; function formatThousands(number) { return (`${Math.round...
client/components/Markdown/elements/_hr.js
LetAmericaVote/strikeout
import React from 'react'; const hr = (props) => { return ( <hr /> ); }; export default hr;
app/javascript/mastodon/features/ui/components/compose_panel.js
tri-star/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import SearchContainer from 'mastodon/features/compose/containers/search_container'; import ComposeFormContainer from 'mastodon/features/compose/containers/compose_form_container'; import NavigationContainer from 'mast...
client/routes.js
Akayeshmantha/TestReactApp
/* eslint-disable global-require */ import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './modules/App/App'; // require.ensure polyfill for node if (typeof require.ensure !== 'function') { require.ensure = function requireModule(deps, callback) { callback(require); }; }...
app/javascript/mastodon/features/compose/components/search_results.js
masarakki/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage, defineMessages, injectIntl } from 'react-intl'; import AccountContainer from '../../../containers/account_container'; import StatusContainer from '../../../containers/sta...
docs/app/Examples/addons/Radio/Variations/RadioExampleFitted.js
shengnian/shengnian-ui-react
import React from 'react' import { Radio, Segment } from 'shengnian-ui-react' const RadioExampleFitted = () => ( <div> <Segment compact> <Radio /> </Segment> <Segment compact> <Radio slider /> </Segment> <Segment compact> <Radio toggle /> </Segment> </div> ) export defaul...
information/blendle-frontend-react-source/app/modules/issue/components/TilesIssue.js
BramscoChill/BlendleParser
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Tile from 'components/Tile'; import TilePane from 'components/TilePane'; import ItemTile from 'components/tiles/ItemTile'; import Measure from 'react-measure'; import BrowserEnvironment from 'instances/browser_environment'; import Popu...
features/home/index.js
nlambert/checkin
import React from 'react'; import { Card, CardTitle, CardActions } from 'material-ui/Card'; import ActionCheckCircle from 'material-ui/svg-icons/action/check-circle'; import {List, ListItem} from 'material-ui/List'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Router } from '../.....
src/parser/deathknight/blood/modules/spells/azeritetraits/EternalRuneWeapon.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import { calculateAzeriteEffects } from 'common/stats'; import RESOURCE_TYPES from 'game/RESOURCE_TYPES'; import Analyzer from 'parser/core/Analyzer'; import TraitStatisticBox, { STATISTIC_ORDER } from 'int...
internals/templates/containers/LanguageProvider/index.js
thuantrinh/math_is_hard
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
app/containers/ArtistContainer.js
AlienStream/experimental-frontend
import React from 'react'; class ArtistContainer extends React.Component { render() { return ( <div> ArtistContainer </div> ); } } export default ArtistContainer
app/components/dashboardproject/upgrade.js
ritishgumber/dashboard-ui
/** * Created by Darkstar on 12/5/2016. */ import React from 'react'; import {connect} from 'react-redux'; import Check from 'material-ui/svg-icons/navigation/check'; import CreditCard from 'material-ui/svg-icons/action/credit-card'; import {grey500} from 'material-ui/styles/colors'; import planList from '../../fakeA...
src/components/UserSettings/PasswordInput.js
nambawan/g-old
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage, defineMessages } from 'react-intl'; import { passwordValidation, passwordAgainValidation, } from '../../core/validation'; import FormField from '../FormField'; import Box from '../Box'; import Button from '../Button'; import F...
public/js/src/components/status.js
alexgibson/monosyn
import React from 'react'; export default React.createClass({ render: function() { return ( <div id="status">Connection: <span id="indicator" className={this.props.status}></span></div> ); } });
app/javascript/mastodon/features/keyboard_shortcuts/index.js
Nyoho/mastodon
import React from 'react'; import Column from '../ui/components/column'; import ColumnBackButtonSlim from '../../components/column_back_button_slim'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-co...
app/redux/containers/requireAuth.js
amrit92/educron-ssr
import React from 'react'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {pushState, hashHistory, browserHistory} from 'react-router'; import {checkToken} from '../actions/AuthAction'; import Auth from '../../api/auth/index'; import configureStore from "../store/configureStore"; ...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/react-router/es/withRouter.js
bhathiya/test
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 _objectWithoutProperties(obj, keys) { var target = {...
docs/app/Examples/elements/List/Variations/ListExampleVeryRelaxed.js
ben174/Semantic-UI-React
import React from 'react' import { Image, List } from 'semantic-ui-react' const ListExampleVeryRelaxed = () => ( <List relaxed='very'> <List.Item> <Image avatar src='http://semantic-ui.com/images/avatar/small/daniel.jpg' /> <List.Content> <List.Header as='a'>Daniel Louise</List.Header> ...
site/demos/gitxplore-dark/src/components/Results.js
appbaseio/reactivesearch
import React from 'react'; import { ReactiveList } from '@appbaseio/reactivesearch'; import PropTypes from 'prop-types'; import Topic from './Topic'; import ResultItem, { resultListContainer, resultCardHeader } from '../styles/ResultItem'; import Flex, { FlexChild } from '../styles/Flex'; import Link from '../styles/...
versions/2-react/1-sum/client/src/App.js
hamczu/techsummit-web2016
import React from 'react' import Counter from './Counter' import Result from './Result' export default class App extends React.Component { constructor(props) { super(props) this.state = { counters: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], } this.handleClick = i => { this.setState(prevState => { ...
src/components/MessageLine.js
HeliumLau/Hoop-react
import React from 'react'; import './MessageLine.less'; export default class MessageLine extends React.Component { constructor(props) { super(props); } render() { let info = this.props.info; return ( <li className="message-item"> <img src={info.avator} ...
bo/src/app/components/Home.js
jilion107/WebBoilerplate
/** * Created by jilion.chen on 3/1/2017. */ import React from 'react'; import { Layout } from 'antd'; import './main.less'; import HeaderPage from './HeaderPage'; import SiderPage from './SiderPage'; const { Header, Footer, Sider } = Layout; class Home extends React.Component { constructor(props) { sup...
src/svg-icons/editor/vertical-align-top.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorVerticalAlignTop = (props) => ( <SvgIcon {...props}> <path d="M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"/> </SvgIcon> ); EditorVerticalAlignTop = pure(EditorVerticalAlignTop); EditorVerticalAlignTop.dis...
misc/webgui/src/pages/Layout.js
ChainsAutomation/chains
import React from 'react'; import { Match, Link, BrowserRouter } from 'react-router'; import Nav from '../components/Nav'; import Footer from '../components/Footer'; // import ProfileDetail from '../containers/profile-detail'; import Dashboard from './Dashboard'; import Services from './Services'; import ServiceInfo f...
src/Index.js
kfbow/CouponApp
/** @flow */ 'use strict'; import React, { Component } from 'react'; import { View, Text, ListView, Modal, ActivityIndicator, StatusBar } from 'react-native'; import { Map } from 'immutable'; import List from './List'; import Detail from './Detail'; import Home from './Home'; import NavigationB...
src/routes/Login/components/LoginView.js
gabrielmf/SIR-EDU-2.0
import React from 'react'; import './LoginView.scss'; import LoadingSpinner from 'components/LoadingSpinner'; import { Link } from 'react-router' export default class Login extends React.Component { constructor(props) { super(props); this.state = { email: '', password: '' }; ...
index.android.js
hsubox76/kitapp
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry } from 'react-native'; import KitApp from './src/KitApp.js'; const Main = () => ( <KitApp /> ); AppRegistry.registerComponent('kitapp', () => Main);
src/svg-icons/communication/call-made.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCallMade = (props) => ( <SvgIcon {...props}> <path d="M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z"/> </SvgIcon> ); CommunicationCallMade = pure(CommunicationCallMade); CommunicationCallMade.displ...
actor-apps/app-web/src/app/index.js
tsdl2013/actor-platform
import crosstab from 'crosstab'; import React from 'react'; import Router from 'react-router'; import Raven from 'utils/Raven'; // eslint-disable-line import injectTapEventPlugin from 'react-tap-event-plugin'; import Deactivated from 'components/Deactivated.react'; import Login from 'components/Login.react'; import ...
docs/public/static/examples/v35.0.0/accelerometer.js
exponent/exponent
import React, { Component } from 'react'; import { StyleSheet, Text, TouchableOpacity, View } from 'react-native'; import { Accelerometer } from 'expo-sensors'; export default class AccelerometerSensor extends Component { state = { accelerometerData: {}, }; componentDidMount() { this._toggle(); } c...
index.js
dburles/react-tiny-state
import React, { Component } from 'react'; export default function State(initialState, setterHandler = value => value) { const subscriptions = []; let shouldUpdate = true; let state = initialState; function subscribe(fn) { subscriptions.push(fn); return function() { subscriptions.splice(subscript...
css-modules-demo/demo01/components/App.js
zhangjunhd/react-examples
import React from 'react'; import style from './App.css'; export default () => { return ( <h1 className={style.title}> Hello World </h1> ); };
react-vr/v4-bouncing-text/index.vr.js
nikgraf/webvr-experiments
import React from 'react'; import {AppRegistry, asset, StyleSheet, Pano, Text, View} from 'react-vr'; import BouncingText from './components/BouncingText'; export default class World extends React.Component { render() { return ( <View> <Pano source={asset('chess-world.jpg')} /> <BouncingTex...
app/javascript/mastodon/features/compose/components/search_results.js
kagucho/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import AccountContainer from '../../../containers/account_container'; import StatusContainer from '../../../containers/status_container'; import Link from 'react-router-dom/Link'; import...
docs/app/Examples/elements/Image/States/ImageExampleHidden.js
mohammed88/Semantic-UI-React
import React from 'react' import { Image } from 'semantic-ui-react' const ImageExampleHidden = () => ( <Image src='/assets/images/wireframe/image.png' size='small' hidden /> ) export default ImageExampleHidden
examples/real-world/containers/DevTools.js
naoishii/ohk2016C
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-w"> <LogMonitor /> ...
packages/icons/src/md/action/TurnedIn.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdTurnedIn(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M34 6H14c-2.21 0-3.98 1.79-3.98 4L10 42l14-6 14 6V10c0-2.21-1.79-4-4-4z" /> </IconBase> ); } export default MdTurnedIn;
examples/tree-view/index.js
tappleby/redux
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import Node from './containers/Node' import configureStore from './store/configureStore' import generateTree from './generateTree' const tree = generateTree() const store = configureStore(tree) ...
examples/conversation-custom-adapter/index.js
cef62/react-pubsub
import React from 'react'; import { render } from 'react-dom'; import App from './components/App'; render( <App />, document.getElementById('root') );
ui/src/utils/createAsyncComponent.js
LearningLocker/learninglocker
import React, { Component } from 'react'; import Promise from 'bluebird'; Promise.config({ cancellation: true }); export default ({ loader, preview = null }) => class asyncComponent extends Component { constructor() { super(); this.state = {}; } componentDidMount = () => { this.blueBirdLoader = Pro...
src/ClientHelpers/AuthRouting/checkAuth.js
MLsandbox/MLsandbox
import React from 'react'; import { Redirect, Route } from 'react-router-dom'; const checkAuth = () => { const token = localStorage.jwtToken; if (!token) { return false; } return true; }; const Authroute = (props) => { var Component = props.component; return ( <Route path={props.path} render={ pro...
packages/node_modules/@webex/react-component-cover/src/index.js
ciscospark/react-ciscospark
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './styles.css'; const propTypes = { message: PropTypes.string.isRequired }; function Cover({message}) { return ( <div className={classNames('webex-cover-message', styles.message)}> <di...
src/components/card/Options.js
yuri/treillage
import React from 'react'; import PropTypes from 'prop-types'; import { Grid } from 'semantic-ui-react'; import { Button, ButtonGroup, ButtonOr } from '../inputs/Button'; export const Options = ({ handleClipboard, handleRenderAsMarkdown, handleRenderAsHTML, renderAs }) => ( <Grid> <Grid.Row> <Grid.Column ...
src/Pagination.js
nickuraltsev/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import PaginationButton from './PaginationButton'; import CustomPropTypes from './utils/CustomPropTypes'; import SafeAnchor from './SafeAnchor'; const Pagination = React.createClass({ mixins: [BootstrapMixi...
src/components/ReviewRecipe.js
phuchle/recipeas
import React from 'react'; import { Link } from 'react-router-dom'; import { Button } from 'react-bootstrap'; import ModifyTitle from '../containers/ModifyTitle'; import ModifyIngredients from '../containers/ModifyIngredients'; import PropTypes from 'prop-types'; const ReviewRecipe = (props) => { return ( <div> ...
stories/FloatLabelScreen/index.android.js
Fineighbor/ui-kit
import React from 'react' import { action } from '@storybook/addon-actions' import createStory from '../../storybook/createStory' import ScreenStuff from '../../storybook/createStory/ScreenStuff' import FloatLabelScreen from '../../src/FloatLabelScreen' import Text from '../../src/Text' export const main = (platform =...
components/Officers.js
francisdzheng/calwtcrew
import React from 'react'; import Photo from '../components/Photo'; import tori from '../assets/images/officers/tori.jpg'; import ishaan from '../assets/images/officers/ishaan.png'; import chris from '../assets/images/officers/chris.png'; import hannah from '../assets/images/officers/hannah.jpg'; import lydia from '../...
src/routes/index.js
prashantpawar/blockapps-js-tutorial
import React from 'react' import { Route, IndexRoute } from 'react-router' import CoreLayout from 'layouts/CoreLayout' import HomeView from 'views/HomeView' import TutorialView from 'views/TutorialView' import IncludeLibraryView from 'views/blockapps-intro/IncludeLibraryView' import GetBalanceView from 'views/blockapps...
src/components/TaskOpinion/index.js
bruceli1986/contract-react
import React from 'react' import './style.scss' class TaskOpinion extends React.Component { static propTypes = { lang: React.PropTypes.string, process: React.PropTypes.string } componentWillMount () { $.fn.extend({ autoHeight: function () { function autoHeight_ (element) { r...
modules/react-router-2.5.2/examples/active-links/app.js
nanyou-environment/enBackEnd
import React from 'react' import { render } from 'react-dom' import { Router, Route, IndexRoute, Link, IndexLink, browserHistory } from 'react-router' const ACTIVE = { color: 'red' } const App = ({ children }) => ( <div> <h1>APP!</h1> <ul> <li><Link to="/" activeStyle={ACTIVE}>/</Link><...
src/lib/HelpText.js
MichaelCereda/react-native-form-generator
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import { View, StyleSheet, Text} from 'react-native'; export class HelpText extends React.Component{ render(){ if(!this.props.text) return null; return ( <View style={formStyles.helpTextContainer}> <Text style={for...
src/search-injection/components/Results.js
WorldBrain/WebMemex
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import Dropdown from './Dropdown' import styles from './Results.css' import LoadingIndicator from 'src/common-ui/components/LoadingIndicator' import { UpdateNotifBanner } from 'src/common-ui/containers/UpdateNotifBanner' c...
src/views/teams.js
dreitagebart/crispyScrum
import React from 'react' export class Teams extends React.Component { render () { return ( <div>I am Teams</div> ) } }
src/index.js
SimonSorcerer/drag_drop_adventure
import './styles/reset.css'; import './styles/basic.css'; import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { createStore } from 'redux' import reducers from './reducers/index' import Game from './components/game.jsx'; let store = createStore(reduc...
app/javascript/mastodon/components/autosuggest_textarea.js
pixiv/mastodon
import React from 'react'; import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container'; import AutosuggestEmoji from './autosuggest_emoji'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { isRtl } from '../rtl'; import Im...
src/components/camp/Activities.js
hackclub/website
import React from 'react' import styled from 'styled-components' import { Box, Flex, Container, Icon, Sheet } from '@hackclub/design-system' import { Section, SectionTitle, Cols, Quote, theme } from './style' import { Headline, Subhline, Featline, Lead } from 'components/Content' import Schedule from './Schedule' cons...
imports/ui/components/OAuthLoginButtons/OAuthLoginButtons.js
lazygalaxy/lazybat-seed-meteorjs
import React from 'react'; import PropTypes from 'prop-types'; import { Meteor } from 'meteor/meteor'; import { createContainer } from 'meteor/react-meteor-data'; import { ReactiveVar } from 'meteor/reactive-var'; import OAuthLoginButton from '../OAuthLoginButton/OAuthLoginButton'; import './OAuthLoginButtons.scss'; ...
app/javascript/mastodon/features/compose/components/warning.js
increments/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; export default class Warning extends React.PureComponent { static propTypes = { message: PropTypes.node.isRequired, }; render () { const { mes...