path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/routes.js
jongamble/wedding-site
import React from 'react' import { Route, IndexRoute } from 'react-router' import Layout from './components/Layout'; import IndexPage from './components/IndexPage'; import NotFoundPage from './components/NotFoundPage'; const routes = ( <Route path="/" component={Layout}> <IndexRoute component={IndexPage}/> <...
src/layouts/header.js
hideokamoto/sls-wordpress-frontend
import React from 'react' const Mikan = require('../lib/mikan') const HeaderNav = require('./header-nav') const Header = (props) => { const title = Mikan(props.site.title) const description = Mikan(props.site.description) const home = props.site.home return ( <header className="sidebar pure-u-1 pure-u-md-...
src/components/ListBar/ListBar.js
ro-savage/nwa-react-redux-boilerplate
import React from 'react' import styles from './ListBar.scss' import FontIcon from 'react-toolbox/lib/font_icon' import autoBind from 'react-autobind' export default class ListBar extends React.Component { static propTypes = { id: React.PropTypes.number, text: React.PropTypes.string.isRequired, current: ...
app/javascript/mastodon/features/home_timeline/index.js
mosaxiv/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { expandHomeTimeline } from '../../actions/timelines'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader from '../../comp...
packages/gluestick/shared/components/TransitionHooks.js
TrueCar/gluestick
/* @flow */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { createTransitionHook } from '../lib/route-helper'; type Props = { children: any, routes: Object[], }; export default class TransitionHooks extends Component<void, Props, void> { static contextTypes = { router...
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
teichopsia-/conFusion
import React from 'react'; // 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'; React.render(<HelloWorld />, document.getElementById('react-root'));
examples/react-router/components/Page.js
pablolmiranda/fluxible
/** * Copyright 2014, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ import React from 'react'; import PageStore from '../stores/PageStore'; import { connectToStores } from 'fluxible-addons-react'; @connectToStores([PageStore], (context) => context.getSt...
src/Fade.js
reactstrap/reactstrap
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { Transition } from 'react-transition-group'; import { mapToCssModules, omit, pick, TransitionPropTypeKeys, TransitionTimeouts, tagPropType } from './utils'; const propTypes = { ...Transition.propTypes, child...
Paths/React/05.Building Scalable React Apps/8-react-boilerplate-building-scalable-apps-m8-exercise-files/After/app/containers/LinkFormContainer/index.js
phiratio/Pluralsight-materials
/* * * LinkFormContainer * */ import React from 'react'; import { connect } from 'react-redux'; import selectLinkFormContainer from './selectors'; import LinkForm from '../../components/LinkForm'; export class LinkFormContainer extends React.Component { // eslint-disable-line react/prefer-stateless-function ren...
examples/huge-apps/components/App.js
nhunzaker/react-router
/*globals COURSES:true */ import React from 'react' import Dashboard from './Dashboard' import GlobalNav from './GlobalNav' class App extends React.Component { render() { return ( <div> <GlobalNav /> <div style={{ padding: 20 }}> {this.props.children || <Dashboard courses={COURSES...
docs/app/Examples/collections/Breadcrumb/Variations/BreadcrumbExampleMassiveSize.js
shengnian/shengnian-ui-react
import React from 'react' import { Breadcrumb } from 'shengnian-ui-react' const BreadcrumbExampleMassiveSize = () => ( <Breadcrumb size='massive'> <Breadcrumb.Section link>Home</Breadcrumb.Section> <Breadcrumb.Divider icon='right chevron' /> <Breadcrumb.Section link>Registration</Breadcrumb.Section> ...
fields/types/cloudinaryimage/CloudinaryImageColumn.js
Redmart/keystone
import React from 'react'; import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary'; import ItemsTableCell from '../../../admin/client/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTableValue'; var CloudinaryImageColumn = React.createClass({ ...
src/OnOffButton.js
crhain/freeCodeCamp-Simon
import React from 'react'; class OnOffButton extends React.Component{ render(){ let isOnClass = this.props.isOn ? "is-on" : ""; return ( <div id="on"> <label>OFF</label> <div id="on-btn-container"> <button id="on-btn" className={ isOnClass } onClick={ th...
example6/src/components/ApplicationComponent.js
JoeTheDave/Talk-ReactUpAndRunning
//ApplicationComponent.js import React from 'react'; import FormField from './FormField'; class ApplicationComponent extends React.Component{ constructor(props) { super(props); } render() { return ( <div> <FormField label={'name'} mask={''} /> ...
src/components/examples/exampleTextbox.js
Jguardado/ComponentBase
import React, { Component } from 'react'; export default class Textbox extends Component { constructor(props) { super(props); this.state = { value: '', comment: '', }; this.handleChange = this.handleChange.bind(this); this.handleSubmit = this.handleSubmit.bind(this); } handleCh...
src/react/rest/item/index.js
luxui/lux-core
/** * @module react/rest/item * @memberof react/rest */ import React from 'react'; // `React` must be in scope when using JSX import registry from '../../../lib/componentRegistry'; import '../../form'; import shapeOfSiren from '../../siren.propType'; import formModel from './formModel'; function restItemCompone...
docs/app/Examples/modules/Progress/Types/ProgressExampleStandard.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Progress } from 'semantic-ui-react' const ProgressExampleStandard = () => ( <Progress percent={11} /> ) export default ProgressExampleStandard
landing/src/EmployerDirectory/CandidateList.js
1a2a3a4a/PONTUS
/** * Created by tonyw on 2017-06-03. */ import React, { Component } from 'react'; import Avatar from 'material-ui/Avatar'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import People from 'material-ui/svg-icons/social/people' import List from 'material-ui/List/List'; import ListItem from 'mater...
packages/stockflux-launcher/src/search-results/ChildWindow.js
ScottLogic/StockFlux
import React from 'react'; import Components from 'stockflux-components'; import messages from './messages'; import SearchResults from './SearchResults'; export default ({ results, children, isSearching, debouncedQuery }) => { const messageJsx = isSearching ? ( <Components.Spinner /> ) : ( <p>{debouncedQue...
client/app/main.js
tyrsius/tuner-react
import 'app/core/util'; import React from 'react'; import Router from 'react-router'; import routes from './routes'; Router.run(routes, Router.HistoryLocation, Root => React.render(<Root />, document.body));
common/components/Nav.js
alexdvance/the-watcher
import React from 'react' import IndexLink from 'react-router/lib/IndexLink' import Link from 'react-router/lib/Link' import { StyleSheet, css } from 'aphrodite' const Nav = () => ( <div> <IndexLink to='/' className={css(styles.link)} activeClassName={css(styles.link, styles.activeLink)}> Home </IndexL...
src/svg-icons/file/cloud-circle.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileCloudCircle = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.5 14H8c-1.66 0-3-1.34-3-3s1.34-3 3-3l.14.01C8.58 8.28 10.13 7 12 7c2.21 0 4 1.79...
src/routes/BarmenOrder/components/BarOrdersView/BarOrdersView.js
hrnik/roofbar
import React from 'react' import classNames from 'classnames' import BarOrdersList from '../BarOrdersList' import './BarOrdersView.scss' export class BarOrdersView extends React.Component { componentWillReceiveProps (nextProps) { const { isNeedDingDong, notNeedDingDong } = nextProps if (i...
app/src/assets/js/components/views/club-honours.js
Huskie/ScottishPremiershipData
/* Club honours view component */ import React from 'react'; import firebaseApp from '../../modules/firebase'; import ClubHeroComponent from '../global/club-hero'; import ClubNavComponent from '../global/club-nav'; import CompetitionHonoursComponent from '../global/competition-honours'; import HonoursTimelineComponen...
packages/react/src/components/forms/InputTextFuzzy/InputTextFuzzy.stories.js
massgov/mayflower
import React from 'react'; import { StoryPage } from 'StorybookConfig/preview'; import { action } from '@storybook/addon-actions'; import InputTextFuzzy from './index'; import InputTextFuzzyDocs from './InputTextFuzzy.md'; import { orgs } from './orgsData.json'; export const InputTextFuzzyExample = (args) => ( <Inp...
src/js/components/EmailForm.js
ejoreo/portfolio-site
import React, { Component } from 'react'; class EmailForm extends Component { render() { return ( <div className="EmailForm"> <form> EmailForm <input type='submit' value='Send me an email!' /> </form> </div> ...
packages/react-reconciler/src/ReactFiberClassComponent.js
chenglou/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type {Fiber} from './ReactFiber'; import type {ExpirationTime} from './ReactFiberExpirationTime'; import React...
app_learn/src/containers/Tab1/leftSlidePageDemo.js
liuboshuo/react-native
/** * Created by liushuo on 17/4/28. */ import React, { Component } from 'react'; import { View, Text, Image, StyleSheet, Platform, TouchableOpacity } from 'react-native'; import NavigationBar from '../../component/navBarCommon' import back from './../../source/images/icon_back.png' import * a...
src/components/menuItems/InputBox/InputBox.js
macdja38/pvpsite
/** * 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, { Component } from 'react'; import PropTypes...
app/containers/HomePage/index.js
tobilen/react-nws
/* * HomePage * * This is the first thing users see of our App, at the '/' 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 and remove * the l...
public/js/components/chat/Messages.react.js
IsuruDilhan/Coupley
import React from 'react'; import Paper from 'material-ui/lib/paper'; import ThreadActions from '../../actions/Thread/ThreadActions'; import ThreadStore from '../../stores/ThreadStore'; import LoginStore from '../../stores/LoginStore'; import ListItem from 'material-ui/lib/lists/list-item'; import Avatar from 'material...
src/parser/monk/mistweaver/modules/talents/RisingMist.js
FaideWW/WoWAnalyzer
import React from 'react'; import { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import StatisticBox from 'interface/others/StatisticBox'; import { formatNumber, formatPercentage } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import SPELLS from 'common/SPELLS'; import Analyzer from 'pars...
src/svg-icons/editor/border-top.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderTop = (props) => ( <SvgIcon {...props}> <path d="M7 21h2v-2H7v2zm0-8h2v-2H7v2zm4 0h2v-2h-2v2zm0 8h2v-2h-2v2zm-8-4h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2v-2H3v2zm0-4h2V7H3v2zm8 8h2v-2h-2v2zm8-8h2V7h-2v2zm0 4h...
components/Layout/Navigation.js
RickFrom1987/rickfrom1987.com
import React from 'react'; import history from '../../core/history'; import Link from '../Link'; import s from './Navigation.css'; function Navigation() { const path = history.getCurrentLocation().pathname; const linkClass = href => `${s.link}${path === href ? ` ${s.active}` : ''}`; return ( <nav className={...
packages/docs/components/Examples/side-toolbar/CustomSideToolbarEditor/index.js
draft-js-plugins/draft-js-plugins
import React, { Component } from 'react'; import Editor, { createEditorStateWithText } from '@draft-js-plugins/editor'; import { HeadlineOneButton, HeadlineTwoButton, BlockquoteButton, CodeBlockButton, } from '@draft-js-plugins/buttons'; import createSideToolbarPlugin from '@draft-js-plugins/side-toolbar'; im...
samples/slipping-area.js
aratakokubun/cursor-hijack
import React from 'react'; import PropTypes from 'prop-types'; import ReactDom from 'react-dom'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import cjk from '../index'; class SlippingDistorter extends cjk.Distorter { constructor(key, priority, getRangeFunc) { super(key, pri...
src/components/c/original/COriginal.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './COriginal.svg' /** COriginal */ function COriginal({ width, height, className }) { return ( <SVGDeviconInline className={'COriginal' + ' ' + className} icon...
game-new/src/views/itemsets/diff.js
d07RiV/d3planner
import React from 'react'; import classNames from 'classnames'; import { Link } from 'react-router-dom'; import { ErrorView, withAsync, iota, Cache, scrollView } from 'utils'; import { jsonMerge, lineDiff } from 'utils/diff'; import { ItemSetView, highlightBox } from './common'; const trimStat = stat => { if (typeo...
src/js/SearchInput.react.js
czarandy/mtgptresults
'use strict'; import React from 'react'; import {findDOMNode} from 'react-dom'; import {browserHistory} from 'react-router'; import Players from './Players.js'; import Tournaments from './Tournaments.js'; export default class SearchInput extends React.Component { render() { return ( <input type="...
app.js
juhojo/WLO
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App.js'; import injectTapEventPlugin from 'react-tap-event-plugin'; import { blue500, blue700, grey400, pinkA200, grey100, grey500, darkBlack, blue800 } from 'material-ui/styles/colors'; import MuiThemeProvider from 'materia...
docs/src/ComponentsPage.js
jamon/react-bootstrap
/* eslint no-path-concat: 0, react/no-did-mount-set-state: 0 */ import React from 'react'; import Affix from '../../src/Affix'; import Nav from '../../src/Nav'; import SubNav from '../../src/SubNav'; import NavItem from '../../src/NavItem'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; impo...
ui/client.js
nlhuykhang/apollo-react-quotes-client
import React from 'react'; import { render } from 'react-dom'; import { Router, browserHistory, match } from 'react-router'; import { ApolloProvider } from 'react-apollo'; import { SubscriptionClient, addGraphQLSubscriptions } from 'subscriptions-transport-ws'; import * as ReactGA from 'react-ga'; import MuiThemeProvid...
geonode/contrib/monitoring/frontend/src/pages/error-details/index.js
MapStory/geonode
import React from 'react'; import PropTypes from 'prop-types'; import Header from '../../components/organisms/header'; import ErrorDetails from '../../components/organisms/error-detail'; import styles from './styles'; class Error extends React.Component { static propTypes = { params: PropTypes.object.isRequired...
react/features/always-on-top/Toolbar.js
bgrozev/jitsi-meet
// @flow import React, { Component } from 'react'; import AudioMuteButton from './AudioMuteButton'; import HangupButton from './HangupButton'; import VideoMuteButton from './VideoMuteButton'; /** * The type of the React {@code Component} props of {@link Toolbar}. */ type Props = { /** * Additional CSS cl...
src/admin/components/SchemaForm/ArrayField.js
u-wave/web
import React from 'react'; import PropTypes from 'prop-types'; import { useTranslator } from '@u-wave/react-translate'; import Typography from '@mui/material/Typography'; import IconButton from '@mui/material/IconButton'; import Button from '@mui/material/Button'; import FormHelperText from '@mui/material/FormHelperTex...
src/components/waste-water/sidebar-layers/legend/index.js
impact-initiatives/reach-jor-zaatari-webmap
import React from 'react'; import messages from '../../../../translations/waste-water.js'; import styles from '../../../../styles/index.js'; import * as colors from '../../../../constants/colors.js'; import LegendItem from '../../../common/legend/legend-item.js'; import LegendItemLine from '../../../common/legend/legen...
example/RootApp.js
ShinyLeee/React-PhotoSwipe
import React from 'react'; import { HashRouter as Router } from 'react-router-dom'; import PropTypes from 'prop-types'; import styled from 'styled-components'; const Warning = styled.small` display: block; margin: 18px 0; color: red; background-color: #fff0f0; border: 1px solid #ffd7d7; `; const RootApp = (...
Js/Backend/Components/UserRoleGroups/index.js
Webiny/Webiny
import React from 'react'; import _ from 'lodash'; import Webiny from 'webiny'; /** * @i18n.namespace Webiny.Backend.UserRoleGroups */ class UserRoleGroups extends Webiny.Ui.Component { constructor(props) { super(props); this.state = { roles: [] }; this.bindMethods('...
examples/huge-apps/app.js
schnerd/react-router
/*eslint-disable no-unused-vars */ import React from 'react' import { createHistory, useBasename } from 'history' import { Router } from 'react-router' import stubbedCourses from './stubs/COURSES' const history = useBasename(createHistory)({ basename: '/huge-apps' }) const rootRoute = { component: 'div', childR...
src/routes/OrdersRoute.js
gcanti/tcomb-spa-example
import React from 'react' import { t, props } from 'tcomb-react' import OrdersPage from '../components/OrdersPage' @props({ app: t.Object }) export default class OrdersRoute extends React.Component { componentDidMount() { this.props.app.fetchOrders() } render() { const app = this.props.app return...
app/app.js
rahsheen/scalable-react-app
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import 'babel-polyfill'; /* eslint-disable import/no-unresolved */ // Load the manifest.json file and the .htaccess file import '!file?name=[name].[ext]!./manifest.json'; import 'file?name=[name].[ext]!./.htaccess';...
docs/app/Examples/views/Card/Content/CardExampleExtraContent.js
shengnian/shengnian-ui-react
import React from 'react' import { Card, Icon } from 'shengnian-ui-react' const description = [ 'Amy is a violinist with 2 years experience in the wedding industry.', 'She enjoys the outdoors and currently resides in upstate New York.', ].join(' ') const CardExampleExtraContent = () => ( <Card> <Card.Conten...
src/components/cell/cell_body.js
n7best/react-weui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from '../../utils/classnames'; /** * Content of `Cell` * */ const CellBody = (props) => { const { className, children, primary, ...others } = props; const cls = classNames({ 'weui-cell__bd': true, 'weui-cell_pri...
src/router.js
zhy6421867/dwp-dva
import React from 'react'; import { Router, Route, Switch } from 'dva/router'; import IndexPage from './routes/IndexPage'; import { WrappedLogin, WrappedRegister, SearchAccounts } from './routes'; function RouterConfig({ history }) { return ( <Router history={history}> <Switch> <Route path="/" exac...
node_modules/react-bootstrap/es/FormControl.js
newphew92/newphew92.github.io
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
code/workspaces/web-app/src/containers/adminResources/ProjectSitesContainer.js
NERC-CEH/datalab
import React from 'react'; import { ProjectStacksContainer } from '../stacks/StacksContainer'; import { MODAL_TYPE_CREATE_NOTEBOOK, MODAL_TYPE_EDIT_NOTEBOOK } from '../../constants/modaltypes'; import EditSiteForm from '../../components/sites/EditSiteForm'; import { CONTAINER_TYPE, FORM_NAME } from '../sites/SitesConta...
imports/ui/containers/pages/EventEdit.js
edgi-govdata-archiving/archivers.space
/* eslint-disable meteor/no-session, no-console, no-alert, react/prop-types, react/jsx-no-bind, jsx-a11y/no-static-element-interactions, jsx-a11y/label-has-for, react/forbid-prop-types, react/require-default-props */ import React from 'react'; import { Meteor } from 'meteor/meteor'; import { Roles } from 'meteor/alanni...
src/media/js/site/components/header.js
mozilla/marketplace-content-tools
import classNames from 'classnames'; import React from 'react'; import {ReverseLink} from 'react-router-reverse'; import {LoginButton} from './login'; export default class Header extends React.Component { static propTypes = { authUrl: React.PropTypes.string, email: React.PropTypes.string, loginBeginHan...
src/routes/home/Home.js
FamilyPlanerTeam/family-planner
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
src/components/Recommendations/index.stories.js
ghrecommender/ghrecommender-frontend
import React from 'react' import { MemoryRouter } from 'react-router-dom' import { action } from '@storybook/addon-actions' import 'semantic-ui-css/semantic.min.css' import Recommendations from './index' import { recommendations } from '../../utils/fixtures' export default { title: 'Pages|Recommendations', compon...
docs/app/Examples/modules/Rating/index.js
aabustamante/Semantic-UI-React
import React from 'react' import Types from './Types' import Variations from './Variations' const RatingExamples = () => ( <div> <Types /> <Variations /> </div> ) export default RatingExamples
packages/icons/src/tags.js
yldio/joyent-portal
import React from 'react'; import Rotate from './rotate'; import calcFill from './fill'; export default ({ fill = null, light = false, disabled = false, direction = 'down', colors = {}, style = {}, ...rest }) => ( <Rotate direction={direction}> {({ style: rotateStyle }) => ( <svg xml...
docs/src/app/AppRoutes.js
barakmitz/material-ui
import React from 'react'; import { Route, Redirect, IndexRoute, } from 'react-router'; // Here we define all our material-ui ReactComponents. import Master from './components/Master'; import Home from './components/pages/Home'; import Prerequisites from './components/pages/get-started/Prerequisites'; import In...
src/components/LocationItem.js
paulhoughton/remember
import React from 'react'; import PropTypes from 'prop-types'; import { Textfield, ListItem, ListItemContent, ListItemAction } from 'react-mdl'; const LocationItem = ({ subtitle, textField, content, onClick, children }) => ( <ListItem twoLine onClick={onClick}> <ListItemContent subtitle={subtitle...
src/svg-icons/maps/directions-run.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsRun = (props) => ( <SvgIcon {...props}> <path d="M13.49 5.48c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-3.6 13.9l1-4.4 2.1 2v6h2v-7.5l-2.1-2 .6-3c1.3 1.5 3.3 2.5 5.5 2.5v-2c-1.9 0-3.5-1-4.3-2.4l...
src/components/header/Actions.js
metasfresh/metasfresh-webui-frontend
import counterpart from 'counterpart'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import cx from 'classnames'; import { actionsRequest, rowActionsRequest, } from '../../actions/GenericActions'; import Loader from '../app/Loader'; import { ge...
pootle/static/js/browser/components/Stats.js
dwaynebailey/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 StatsAPI from 'api/Stat...
src/components/common/svg-icons/av/play-circle-outline.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPlayCircleOutline = (props) => ( <SvgIcon {...props}> <path d="M10 16.5l6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 ...
src/components/Header/Header.js
RequestTimeout408/alba-task
import React from 'react' import { IndexLink, Link } from 'react-router' import './Header.scss' export const Header = () => ( <div className='component-header text-center'> <h1>Most Active Languages @ Github</h1> <IndexLink to='/' activeClassName='route--active'> Home </IndexLink> {' · '} ...
src/components/Curve/index.js
CodersInTheCommunity/curve-calculator
import React from 'react'; export default class Curve extends React.Component { constructor(props) { super(props); this.css = { position: 'absolute', top: '115px', left: '250px' } } showCurve() { if (!this.props.possiblePoints) return false; if (!this.props.targetPercentage) return false; ...
src/components/controls/Icons/EditIcon.js
TTCErembodegem/TTC-React-Front
import React from 'react'; // import PropTypes from '../../PropTypes.js'; import {Icon} from './Icon.js'; export const EditIcon = (props) => ( <Icon fa="fa fa-pencil-square-o" {...props} /> );
renderer/components/Pay/PaySummaryOnChain.js
LN-Zap/zap-desktop
import React from 'react' import PropTypes from 'prop-types' import { Box, Flex } from 'rebass/styled-components' import { FormattedMessage } from 'react-intl' import BigArrowRight from 'components/Icon/BigArrowRight' import { Bar, DataRow, Spinner, Text } from 'components/UI' import { TransactionSpeedDesc } from 'comp...
js/react/svg_icons.js
nCoda/julius
// -*- coding: utf-8 -*- // ------------------------------------------------------------------------------------------------ // Program Name: Julius // Program Description: User interface for the nCoda music notation editor. // // Filename: js/react/svg_icons.js // Purpose: SVG...
src/app/routes/ui/index.js
backpackcoder/world-in-flames
import React from 'react'; import HtmlRender from '../../components/utils/HtmlRender' export default { path: 'ui', component: require('../../components/common/Layout').default, childRoutes: [ { path: 'buttons', getComponent(nextState, cb){ System.import('html-loader?-attrs!./content/butt...
tests/nav.js
goto-bus-stop/bulmare
import React from 'react' import test from 'tape' import { shallow } from 'enzyme' import { Nav, /* eslint-disable no-unused-vars */ NavLeft, NavCenter, NavRight, NavMenu, NavItem, NavTab, NavToggle /* eslint-enable no-unused-vars */ } from '../src' test('Nav should render a <nav> element with clas...
src/routes/Bnet/components/Line.js
miyanokomiya/b-net
import React from 'react' import PropTypes from 'prop-types' import ReactDOM from 'react-dom' import {m, lineStyle} from './SvgStyle' const MIN_VALUE = 0.001; const CURVATURE_RATE = 1 / 40; const DIFF_RAD = CURVATURE_RATE * 3.2; class Line extends React.Component { static propTypes = { } state = { } compo...
website/src/react-native/index.js
christopherdro/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. */ var Prism ...
node_modules/react-select/examples/src/components/Multiselect.js
pris54/reactjs-simple-form
import React from 'react'; import Select from 'react-select'; const FLAVOURS = [ { label: 'Chocolate', value: 'chocolate' }, { label: 'Vanilla', value: 'vanilla' }, { label: 'Strawberry', value: 'strawberry' }, { label: 'Caramel', value: 'caramel' }, { label: 'Cookies and Cream', value: 'cookiescream' }, { label...
src/website/app/SiteHeading.js
mineral-ui/mineral-ui
/* @flow */ import styled from '@emotion/styled'; import React from 'react'; import { themed } from '../../library/themes'; import Heading from './Heading'; import Link from './SiteLink'; import type { StyledComponent } from '@emotion/styled-base/src/utils'; type siteHeadingProps = { anchor?: boolean, children: Re...
app/components/member/MemberTeamRow.js
buildkite/frontend
import React from 'react'; import PropTypes from 'prop-types'; import { createFragmentContainer, graphql } from 'react-relay/compat'; import Emojify from 'app/components/shared/Emojify'; import TeamLabels from 'app/components/team/Labels'; class MemberTeamRow extends React.Component { static propTypes = { team: ...
src/CollapsibleMixin.js
jamon/react-bootstrap
import React from 'react'; import TransitionEvents from './utils/TransitionEvents'; const CollapsibleMixin = { propTypes: { defaultExpanded: React.PropTypes.bool, expanded: React.PropTypes.bool }, getInitialState(){ let defaultExpanded = this.props.defaultExpanded != null ? this.props.default...
frontWeb/main/react/react-router/basic/dev/app1.js
skycolor/study
import React from 'react'; import ReactDOM from 'react-dom'; import App from './ambiguousExample'; ReactDOM.render(<App /> , document.getElementById('app') );
frontend/app/components/pages/admin/link-deactivate-modal.js
LINKIWI/linkr
/* global setTimeout */ import browserHistory from 'react-router/lib/browserHistory'; import Link from 'react-router/lib/Link'; import LoadingHOC from 'react-loading-hoc'; import React from 'react'; import request from 'browser-request'; import Alert, {ALERT_TYPE_SUCCESS, ALERT_TYPE_ERROR} from '../../alert'; import...
node_modules/react-bootstrap/es/Clearfix.js
geng890518/editor-ui
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
packages/bonde-admin/src/mobilizations/widgets/components/form-finish-message/index.js
ourcities/rebu-client
import PropTypes from 'prop-types' import React from 'react' import { FormattedMessage, intlShape, injectIntl } from 'react-intl' import { reduxForm } from 'redux-form' import { FormGroup, RadioGroup, Radio, ControlLabel, FormControl } from '@/components/forms' import { SettingsForm } from '@/ux/components' ...
Libraries/Components/TextInput/TextInput.js
esauter5/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...
assets/js/containers/ServerListContainer.js
shiloa/shlux
import React from 'react'; import ServerList from '../components/ServerList'; import ServerStore from '../stores/ServerStore'; export default class ServerListContainer extends React.Component { constructor(props) { super(props); } componentDidMount() { // TODO } componentWillUnmount() { // TODO...
example/src/components/common/TabBarPage.js
bsudekum/react-native-mapbox-gl
import React from 'react'; import PropTypes from 'prop-types'; import {StyleSheet, ScrollView} from 'react-native'; import {ButtonGroup} from 'react-native-elements'; import colors from '../../styles/colors'; import BaseExamplePropTypes from './BaseExamplePropTypes'; import Page from './Page'; const TAB_BAR_HEIGHT =...
client/node_modules/react-redux/src/components/Context.js
Dans-labs/dariah
import React from 'react' export const ReactReduxContext = React.createContext(null) export default ReactReduxContext
EvergreenApp/components/Sensor/ValveComponent.js
tr3v0r5/evergreen
import React, { Component } from 'react'; import {Picker} from 'react-native'; import * as firebase from 'firebase'; export class ValveComponent extends Component{ constructor(props){ super(); }//constructor componentWillReceiveProps(props){ this.setState({ userID: props.userID, ...
src/index.js
szekelyadam/react-books-store
import 'babel-polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import { render } from 'react-dom'; import { router, browserHistory } from 'react-router'; import routes from './routes'; import '../node_modules/bootstrap/dist/css/bootstrap.min.css'; import configureStore from './store/config...
client/src/ThanksPhase.story.js
mit-teaching-systems-lab/swipe-right-for-cs
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import {withFrameSwitcher} from './util/storybookFrames.js'; import ThanksPhase from './ThanksPhase.js'; import {logs} from './util/fixtures.js'; storiesOf('ThanksPhase', module) //eslint-disabl...
src/Transition.js
rapilabs/react-bootstrap
import React from 'react'; import TransitionEvents from './utils/TransitionEvents'; import classnames from 'classnames'; export const UNMOUNTED = 0; export const EXITED = 1; export const ENTERING = 2; export const ENTERED = 3; export const EXITING = 4; class Transition extends React.Component { constructor(props, c...
react-app/src/assets/icons.js
danieluy/www.danielsosa.uy
import React from 'react'; export const CodeIcon = (props) => ( <svg {...props} viewBox="0 0 24 24"> <path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z" /> </svg> ) export const MenuIcon = (props) => ( <svg {...props} viewBox="0 0 24 24"> <path d="M3 18h18...
website-prototyping-tools/playground.js
TobiasBales/relay
import 'babel/polyfill'; import React from 'react'; window.React = React; import ReactDOM from 'react/lib/ReactDOM'; import RelayPlayground from './RelayPlayground'; import queryString from 'query-string'; var queryParams = queryString.parse(location.hash); if ( /^https?:\/\/facebook.github.io\//.test(document.re...
Lumino/js/components/ControllersList/TempComponent.js
evonove/lumino
import React from 'react'; import PropTypes from 'prop-types'; import { Alert, Slider, Switch, View, Text, Picker, TouchableOpacity } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; import IconIonic from 'react-native-vector-icons/Ionicons'; import IconFontAwesome from 'react-native-vector-i...
src/components/Footer/Footer.js
zsu13579/whatsgoinontonight
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import withStyles from 'isom...
app/javascript/mastodon/features/account_timeline/components/header.js
hyuki0000/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import InnerHeader from '../../account/components/header'; import ActionBar from '../../account/components/action_bar'; import MissingIndicator from '../../../components/missing_indicator'; import ...
client/react/panel/inputs/InputEditableTextField.js
uclaradio/uclaradio
// InputEditableTextField.js import React from 'react'; import ReactDOM from 'react-dom'; import { Input, FormControls, Glyphicon } from 'react-bootstrap'; /** * Show current saved value for a text field and let user update the field and submit changes * * note: this element should be wrapped in a form tag for prop...
src/client/components/exposerouter.react.js
sljuka/bucka-portfolio
import Component from './component.react'; import React from 'react'; // Higher order component for exposing router. // https://medium.com/@dan_abramov/mixins-are-dead-long-live-higher-order-components-94a0d2f9e750 export default function exposeRouter(BaseComponent) { class ExposeRouter extends Component { rend...