path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/components/graphs/OHLC.js
davidychow87/etf
//This method will use d3 to render //pass in ref to a node //data = array of objects { symbol: MSFT, type: series, values: [{date: "2017=01=41" ...Other data}] } import React, { Component } from 'react'; import * as d3 from 'd3'; import PropTypes from 'prop-types'; import MockData from './MockData'; import moment from...
src/containers/About/About.js
Hellenic/universal-marketcloud-storefront
import React, { Component } from 'react'; import Helmet from 'react-helmet'; import Subheader from 'material-ui/Subheader'; import { Header, Container } from 'components'; export default class About extends Component { state = { showKitten: false } handleToggleKitten = () => this.setState({ showKitten: !th...
src/parser/mage/fire/modules/features/Pyroclasm.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/St...
stories/props/backgroundEvents.stories.js
jquense/react-big-calendar
import React from 'react' import moment from 'moment' import { Calendar, Views, momentLocalizer } from '../../src' import { backgroundEvents, events } from '../helpers' import mdx from './backgroundEvents.mdx' const mLocalizer = momentLocalizer(moment) export default { title: 'props', component: Calendar, argTy...
src/components/Work/Preview.js
typical000/paveldavydov
import React from 'react' import PropTypes from 'prop-types' import cn from 'classnames' import {scale, translateY} from 'css-functions' import {H3} from '../typography' import {transition} from '../../utils/css' import injectSheet from '../../utils/jss' const spaceAround = 40 const styles = (theme) => ({ work: { ...
client/modules/users/components/.stories/settings_language.js
kaibagoh/PitchSpot
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { setComposerStub } from 'react-komposer'; import SettingsLanguage from '../settings_language.jsx'; storiesOf('users.SettingsLanguage', module) .add('default view', () => { return ( <SettingsLanguage /> ); })
packages/material-ui-icons/src/Payment.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Payment = props => <SvgIcon {...props}> <path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z" /> </SvgIcon>; Payment = pur...
blueocean-material-icons/src/js/components/svg-icons/action/launch.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionLaunch = (props) => ( <SvgIcon {...props}> <path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/> </SvgIcon> ); ActionLaunch.displayName = 'ActionL...
src/scenes/home/resetPassword/requestToken/requestToken.js
OperationCode/operationcode_frontend
import React, { Component } from 'react'; import axios from 'axios'; import Raven from 'raven-js'; import { Redirect } from 'react-router-dom'; import Form from 'shared/components/form/form'; import FormEmail from 'shared/components/form/formEmail/formEmail'; import FormButton from 'shared/components/form/formButton/fo...
examples/complete/firestore/src/App.js
prescottprue/react-redux-firebase
import React from 'react' import { Provider } from 'react-redux' import firebase from 'firebase/app' import 'firebase/auth' import 'firebase/database' import 'firebase/firestore' // make sure you add this for firestore import { ReactReduxFirebaseProvider } from 'react-redux-firebase' import { createFirestoreInstance } ...
addons/docs/src/frameworks/react/__testfixtures__/9668-js-proptypes-no-jsdoc/input.js
kadirahq/react-storybook
import React from 'react'; import PropTypes from 'prop-types'; const CCTable = (props) => <>{JSON.stringify(props)}</>; CCTable.propTypes = { heads: PropTypes.array.isRequired, onAddClick: PropTypes.func, }; export const component = CCTable;
classic/src/scenes/mailboxes/src/Scenes/CommandPaletteScene/CommandPaletteSceneContent.js
wavebox/waveboxapp
import React from 'react' import ReactDOM from 'react-dom' import { DialogContent, List, ListSubheader } from '@material-ui/core' import shallowCompare from 'react-addons-shallow-compare' import { withStyles } from '@material-ui/core/styles' import SearchIcon from '@material-ui/icons/Search' import grey from '@material...
src/components/Authorized/CheckPermissions.js
wu-sheng/sky-walking-ui
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
app/containers/HomePage/index.js
IntAlert/chatplayer
/* * 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...
lib/components/Geojson.js
wannyk/react-native-maps
import React from 'react'; import MapView from './MapView'; export const makeOverlays = features => { const points = features .filter( f => f.geometry && (f.geometry.type === 'Point' || f.geometry.type === 'MultiPoint') ) .map(feature => makeCoordinates(feature).map(coordinate...
src/routes/Workspace/components/Workspace/Workspace.js
dkushner/ArborJs-Playground
import React from 'react'; import classes from './Workspace.scss'; import ToolboxContainer from '../../containers/ToolboxContainer'; import _ from 'lodash'; import { Notifs } from 're-notif'; import ScrubContainer from '../../containers/ScrubContainer'; import StageContainer from '../../containers/StageContainer'; cla...
src/svg-icons/action/markunread-mailbox.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionMarkunreadMailbox = (props) => ( <SvgIcon {...props}> <path d="M20 6H10v6H8V4h6V0H6v6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2z"/> </SvgIcon> ); ActionMarkunreadMailbox = pu...
admin/client/components/Toolbar/ToolbarSection.js
pswoodworth/keystone
import React from 'react'; import blacklist from 'blacklist'; import classNames from 'classnames'; module.exports = React.createClass({ displayName: 'ToolbarSection', propTypes: { className: React.PropTypes.string, left: React.PropTypes.bool, right: React.PropTypes.bool, }, render () { var className = clas...
client/components/midi/MidiArchives.js
bsubedi26/Project-Revised
import React from 'react'; import axios from 'axios'; import {isEmpty} from'lodash'; import Player from './Player.js'; import { connect } from 'react-redux'; class MidiArchives extends React.Component { constructor(props) { super(props) this.state = { contemporary: [], games: [], movies...
app/containers/NotFoundPage/index.js
romy/personal-imgur-gallery
import React from 'react'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; export default class NotFound extends React.Component { // eslint-disable-line react/prefer-stateless-function render() { return ( <h1> <FormattedMessage {...messages.header} /> </h1>...
app/server.js
wojciech-panek/study-group-7-ssr
import 'babel-polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import { renderToString } from 'react-dom/server'; import { StaticRouter } from 'react-router'; import Helmet from 'react-helmet'; import configureStore from './modules/store'; import App from './routes'; import HtmlDocument fr...
fields/types/number/NumberFilter.js
Ftonso/keystone
import React from 'react'; import ReactDOM from 'react-dom'; import { FormField, FormInput, FormRow, FormSelect } from 'elemental'; const CONTROL_OPTIONS = [ { label: 'Exactly', value: 'equals' }, { label: 'Greater Than', value: 'gt' }, { label: 'Less Than', value: 'lt' }, { label: 'Between', value: 'between' } ]...
src/components/media.js
MichaelMansourati/earCamera
import React from 'react' import Link from 'gatsby-link' import Navbar from '../components/navbar.js' import Title from '../components/title.js' import '../styles/media.css' import blur from '../assets/photography/blur.jpg' import ensemble from '../assets/photography/ensemble.jpg' import tommy from '../assets/photog...
src/routes/home/index.js
Frenzzy/react-starter-kit
/** * 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 Home from './Home'; i...
src/util/bugsnag.js
jwang1919/popcode
import bugsnag from '@bugsnag/js'; import bugsnagReact from '@bugsnag/plugin-react'; import React from 'react'; import config from '../config'; import {getCurrentProject} from '../selectors'; let store; export const bugsnagClient = bugsnag({ apiKey: config.bugsnagApiKey, appVersion: config.gitRevision, release...
node_modules/react-bootstrap/es/MediaRight.js
darklilium/Factigis_2
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/vx-gradient/src/gradients/OrangeRed.js
Flaque/vx
import React from 'react'; import LinearGradient from './LinearGradient'; export default (props) => { return ( <LinearGradient from='#FCE38A' to='#F38181' {...props} /> ); }
src/app/components/drawer/Projects/NewProject.js
meedan/check-web
import React from 'react'; import PropTypes from 'prop-types'; import { commitMutation, graphql } from 'react-relay/compat'; import { Store } from 'react-relay/classic'; import { browserHistory } from 'react-router'; import { makeStyles } from '@material-ui/core/styles'; import { FormattedMessage } from 'react-intl'; i...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/DefaultPropsInferred.js
MichaelDeBoey/flow
// @flow import React from 'react'; class MyComponent extends React.Component<*, Props> { static defaultProps = {}; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component<*, Props> { static defaultProps = {...
src/modules/AppRouter.js
apoi/kahvi
/*eslint-disable react/prop-types*/ import React from 'react'; import CounterViewContainer from './counter/CounterViewContainer'; import ColorViewContainer from './colors/ColorViewContainer'; /** * AppRouter is responsible for mapping a navigator scene to a view */ export default function AppRouter(props) { const...
src/svg-icons/action/gavel.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionGavel = (props) => ( <SvgIcon {...props}> <path d="M1 21h12v2H1zM5.245 8.07l2.83-2.827 14.14 14.142-2.828 2.828zM12.317 1l5.657 5.656-2.83 2.83-5.654-5.66zM3.825 9.485l5.657 5.657-2.828 2.828-5.657-5.657z...
src/index.js
Heydon/react-theme-switch
import React from 'react'; import ReactDOM from 'react-dom'; import ThemeSwitch from './ThemeSwitch.js'; ReactDOM.render(<ThemeSwitch />, document.getElementById('root'));
react/features/overlay/components/web/UserMediaPermissionsOverlay.js
gpolitis/jitsi-meet
// @flow import React from 'react'; import { translate, translateToHTML } from '../../../base/i18n'; import { connect } from '../../../base/redux'; import AbstractUserMediaPermissionsOverlay, { abstractMapStateToProps } from './AbstractUserMediaPermissionsOverlay'; import OverlayFrame from './OverlayFrame'; dec...
src/svg-icons/image/crop-rotate.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropRotate = (props) => ( <SvgIcon {...props}> <path d="M7.47 21.49C4.2 19.93 1.86 16.76 1.5 13H0c.51 6.16 5.66 11 11.95 11 .23 0 .44-.02.66-.03L8.8 20.15l-1.33 1.34zM12.05 0c-.23 0-.44.02-.66.04l3.81 3.81...
frontend/src/signup/components/forms/TextAreaField.js
rabblerouser/core
import React from 'react'; import FieldError from './FieldError'; const TextAreaField = ({ input, label, placeholder, optional, id, meta: { touched, error } }) => ( <fieldset> <label htmlFor={input.name}> {`${label}${optional ? '' : ' *'}`} {touched && error && <FieldError error={error} />} </lab...
docs/src/app/components/pages/components/TextField/ExampleCustomize.js
pancho111203/material-ui
import React from 'react'; import TextField from 'material-ui/TextField'; import {orange500, blue500} from 'material-ui/styles/colors'; const styles = { errorStyle: { color: orange500, }, underlineStyle: { borderColor: orange500, }, floatingLabelStyle: { color: orange500, }, floatingLabelFocu...
aaf-enrollment/src/components/enrollment/method-authenticators/Oauth2Method.js
MicroFocus/CX
import React from 'react'; import Authenticator from '../Authenticator'; import t from '../../../i18n/locale-keys'; class Oauth2Method extends React.PureComponent { authenticationInfoChanged() { return false; } render() { return ( <Authenticator description={t.o...
renderer/components/Pay/PayAmountFields.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 debounce from 'lodash/debounce' import { Keyframes } from 'react-spring/renderprops.cjs' import { intlShape } from '@zap/i18n' import { CoinBig } from '@...
src/components/common/svg-icons/social/person-add.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPersonAdd = (props) => ( <SvgIcon {...props}> <path d="M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/> </...
app/packages/client/src/components/numberplate/Numberplate.js
kslat3r/anpr-dashcam
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Jumbotron } from 'react-bootstrap'; import Loading from '../loading/Loading'; import './Numberplate.css'; class Numberplate extends Component { static propTypes = { details: PropTypes.object.isRequired, } shouldComponentU...
server/middleware/render.js
ming-soon/mern-starter
import React from 'react' import { renderToString } from 'react-dom/server' import match from 'react-router/lib/match' import RouterContext from 'react-router/lib/RouterContext' import createStore from 'App/store' import createRoutes from 'App/routes' import AppContainer from 'App/containers/AppContainer' const rende...
app/templates/react/es6/app.js
reintroducing/generator-threshold
import React from 'react'; import Router, {DefaultRoute, Route} from 'react-router'; import App from './components/App.jsx'; import Home from './components/Home.jsx'; let routes = ( <Route handler={App}> <DefaultRoute handler={Home} /> </Route> ); Router.run( routes, Router.HistoryLocation, ...
src/icons/IosCloudUpload.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosCloudUpload extends React.Component { render() { if(this.props.bare) { return <g> <g> <rect x="248" y="352" width="16" height="96"></rect> <path d="M399.3,183.6c0-1.2,0.2-2.4,0.2-3.6c0-64.3-52.8-116.4-11...
app/components/LivePreview/LivePreview.js
natac13/Markdown-Previewer-React
import React from 'react'; import style from './style'; const LivePreview = ( { getMarkdown } ) => { console.log(getMarkdown()) return ( <div className={style.container}> <div className={style.preview} dangerouslySetInnerHTML={getMarkdown()}> </div> </div> ) } ex...
src/svg-icons/content/backspace.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentBackspace = (props) => ( <SvgIcon {...props}> <path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 12.59L17.59 17 14 13.41 10.41 17 9 15.59 12...
src/components/Post/Tags/Tags.js
Chogyuwon/chogyuwon.github.io
import React from 'react'; import { Link } from 'gatsby'; import styles from './Tags.module.scss'; const Tags = ({ tags, tagSlugs }) => ( <div className={styles['tags']}> <ul className={styles['tags__list']}> {tagSlugs.map((slug, i) => ( <li className={styles['tags__list-item']} key={tags[i]}> ...
modules/RouteUtils.js
opichals/react-router
import React from 'react'; import warning from 'warning'; function isValidChild(object) { return object == null || React.isValidElement(object); } export function isReactChildren(object) { return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild)); } function checkPropTypes(componentNam...
examples/todomvc/src/components/Header.js
lsm/alfa
import React from 'react' import TodoTextInput from './TodoTextInput' const Header = props => { return ( <header className="header"> <h1>todos</h1> <TodoTextInput newTodo placeholder="What needs to be done?" /> </header> ) } export default Header
admin/client/components/ListColumnsForm.js
stunjiturner/keystone
import classnames from 'classnames'; import React from 'react'; import Transition from 'react-addons-css-transition-group'; var CurrentListStore = require('../stores/CurrentListStore'); var Popout = require('./Popout'); var PopoutList = require('./PopoutList'); var { Button, Checkbox, InputGroup, SegmentedControl } = ...
src/svg-icons/action/eject.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionEject = (props) => ( <SvgIcon {...props}> <path d="M5 17h14v2H5zm7-12L5.33 15h13.34z"/> </SvgIcon> ); ActionEject = pure(ActionEject); ActionEject.displayName = 'ActionEject'; ActionEject.muiName = 'Svg...
app/javascript/mastodon/features/standalone/compose/index.js
pfm-eyesightjp/mastodon
import React from 'react'; import ComposeFormContainer from '../../compose/containers/compose_form_container'; import NotificationsContainer from '../../ui/containers/notifications_container'; import LoadingBarContainer from '../../ui/containers/loading_bar_container'; export default class Compose extends React.PureCo...
src/app/components/BottomNavigationLink.js
blobor/skipass.site
import React from 'react' import { Link } from 'react-router' import { BottomNavigationItem } from 'material-ui' const BottomNavigationLink = props => { const listItemLinkRender = ({isActive, href, onClick}) => { return ( <a href={href} onClick={onClick} className={props.className}> <BottomNavigati...
gui/src/app/components/plot.js
mbonvini/LambdaSim
/* global Plotly */ import React from 'react'; import log from 'loglevel'; const layout = { margin: {t: 30}, showlegend: true, xaxis: {title: 'Time [s]'}, legend:{orientation:'h', x: 0.02, y: 1.0} }; const data = [{ x: [], y: [], mode: 'lines', name: 'A' }]; class Plot extends React....
src/utils/ValidComponentChildren.js
roadmanfong/react-bootstrap
import React from 'react'; /** * Maps children that are typically specified as `props.children`, * but only iterates over children that are "valid components". * * The mapFunction provided index will be normalised to the components mapped, * so an invalid component would not increase the index. * * @param {?*} ...
fixtures/nesting/src/legacy/Greeting.js
terminatorheart/react
import React from 'react'; import {Component} from 'react'; import {findDOMNode} from 'react-dom'; import {Link} from 'react-router-dom'; import {connect} from 'react-redux'; import {store} from '../store'; import ThemeContext from './shared/ThemeContext'; import Clock from './shared/Clock'; store.subscribe(() => { ...
src/client/components/TodoList.js
mayash/webapp
import React from 'react'; import { connect } from 'react-redux'; const TodoList = ({ todos }) => ( <ul> {todos.map((todo, index) => { return ( <li key={index + 1}>{todo}</li> ); })} </ul> ); const mapStateToProps = state => state; export default connect(mapStateToProps)(TodoList);
fe/client/app/devTools.js
verdverm/starterKit
import { persistState } from 'redux-devtools'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; import React, { Component } from 'react'; import ReactDOM from 'react-dom'; angular.module('app') .run(($ngRedux, $rootScope) => { ReactDOM.render( <DevApp store={ $ngRedux }/>, ...
_dev/src/components/GithubProjectList.js
burning-duck/rehace-github-magnolia
import React from 'react' import {connect} from 'cerebral/react' import {state, props, signal} from 'cerebral/tags' import availableRepos from '../computed/availableRepos' const ProjectListItem = connect( { repo: state`repos.${props`projectId`}`, projectId: props`projectId`, select: signal`projectSelect...
webapp/app/components/SoftwaresByUser/Searchbar/index.js
EIP-SAM/SAM-Solution-Server
// // Searchbar sofwares by user page // import React from 'react'; import { FormGroup, InputGroup, FormControl, Glyphicon } from 'react-bootstrap'; /* eslint-disable react/prefer-stateless-function */ export default class SoftwaresByUserSearchbar extends React.Component { handleChangeSearchbar(event) { this.pr...
src/Parser/Core/Modules/Items/Legion/AntorusTheBurningThrone/AcridCatalystInjector.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import { formatNumber } from 'common/format'; import { calculateSecondaryStatDefault } from 'common/stats'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; /* * Acrid...
examples/huge-apps/routes/Grades/components/Grades.js
nickaugust/react-router
import React from 'react' class Grades extends React.Component { render() { return ( <div> <h2>Grades</h2> </div> ) } } export default Grades
src/components/GithubButton/GithubButton.js
dskliarov/aotweb
import React from 'react'; const GithubButton = (props) => { const {user, repo, type, width, height, count, large} = props; let src = `https://ghbtns.com/github-btn.html?user=${user}&repo=${repo}&type=${type}`; if (count) src += '&count=true'; if (large) src += '&size=large'; return ( <iframe src=...
src/svg-icons/maps/directions-bike.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsBike = (props) => ( <SvgIcon {...props}> <path d="M15.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM5 12c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3....
js/App/Components/SensorDetails/SubViews/CalendarDay.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or *...
Libraries/Components/Keyboard/Keyboard.js
alin23/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...
pages/portfolio.js
xzin/homepage
import React from 'react' import { Link } from 'react-router' import { prefixLink } from 'gatsby-helpers' import Helmet from 'react-helmet' import { config } from 'config' const styles={ link:{ color:'black', fontFamily:'Ubuntu' }, text:{ color:'black', fontFamily:'Ubuntu' } } export default cla...
app/javascript/mastodon/components/status_action_bar.js
PlantsNetwork/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from './icon_button'; import DropdownMenuContainer from '../containers/dropdown_menu_container'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePureCompo...
src/index.js
peteruithoven/KickstarterStatus
import 'systemjs-hot-reloader/default-listener.js'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.js'; ReactDOM.render( <App />, document.getElementById('app') );
Libraries/Text/Text.js
mironiasty/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/MastersDepartments.js
PythEch/ruc-scheduler
import React, { Component } from 'react'; import { observer } from 'mobx-react'; import { ListButton, UnselectedCourseButton } from "./ListButton"; import store from './Store'; @observer class MastersDepartmentListView extends Component { render() { return ( <ul> { store.mastersDepartmen...
node_modules/react-native-google-signin/GoogleSignin.ios.js
mk007sg/threeSeaShells
import React, { Component } from 'react'; import { View, NativeAppEventEmitter, NativeModules, requireNativeComponent, } from 'react-native'; const { RNGoogleSignin } = NativeModules; const RNGoogleSigninButton = requireNativeComponent('RNGoogleSigninButton', null); class GoogleSigninButton extends Componen...
src/pages/news/NBA/NewsNBAVideo.js
HeliumLau/Hoop-react
import React from 'react'; import NewsList from 'components/NewsList.js'; export default class NewsNBAVideo extends React.Component { render() { const list = [ { title: '帕森斯晒自己与演员特里-克鲁斯的合照', lNum: '28', cNum: '212', bgurl: 'h...
admin/client/App/shared/FlashMessage.js
pr1ntr/keystone
/** * A single flash message component. Used by FlashMessages.js */ import React from 'react'; import { Alert } from 'elemental'; const FlashMessage = React.createClass({ propTypes: { message: React.PropTypes.oneOfType([ React.PropTypes.object, React.PropTypes.string, ]).isRequired, type: React.PropTyp...
app/javascript/mastodon/features/home_timeline/index.js
MitarashiDango/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...
client/app/scripts/components/sparkline.js
kinvolk/scope
// Forked from: https://github.com/KyleAMathews/react-sparkline at commit a9d7c5203d8f240938b9f2288287aaf0478df013 import React from 'react'; import PropTypes from 'prop-types'; import { min as d3Min, max as d3Max, mean as d3Mean } from 'd3-array'; import { isoParse as parseDate } from 'd3-time-format'; import { line, ...
webpack/components/Content/ContentTable.js
Katello/katello
import React from 'react'; import PropTypes from 'prop-types'; import { translate as __ } from 'foremanReact/common/I18n'; import { Table } from '../../components/pf3Table'; import { LoadingState } from '../../components/LoadingState'; const ContentTable = ({ content, tableSchema, onPaginationChange }) => { const {...
src/components/need/NoticeAgent/NewestActivity.js
lethecoa/work-order-pc
import React from 'react'; import {Row, Col, Form, DatePicker, Input, Radio} from 'antd'; import moment from 'moment'; import {action, model, fun, config, modular} from '../../../common/index'; import CarryMaterial from '../../formItme/CarryMaterial/CarryMaterial'; import styles from './NewestActivity.less'; const Rad...
src/components/icons/CalendarIcon.js
austinknight/ui-components
import React from 'react'; import { generateFillFromProps } from '../styles/colors.js'; const CalendarIcon = props => ( <svg {...props.size || { width: '18px', height: '20px' }} {...props} viewBox="0 0 18 20"> {props.title && <title>{props.title}</title>} <g id="Page-1" stroke="none" strokeWidth="...
src/components/Context.js
grommet/grommet-docs
// (C) Copyright 2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Box from 'grommet/components/Box'; const BACKGROUNDS = ['none', 'light', 'dark', 'light on dark', 'dark on light']; const OUTER_BACKGROUND = { 'dark': 'grey-4', 'd...
6.0.0-alpha.7/examples/asyncValidation/dist/bundle.js
erikras/redux-form-docs
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}([function(e,t,n){n(225),e.exports=n(223)},function(e,t,n){var r=n(6),o=n(34),i=n(17),a=n(18),u=n(35),s="prototype",...
web/app/admin/admin.js
seanhess/serials
// @flow import React from 'react' import {Link} from 'react-router' import {RouteHandler} from 'react-router' import {Header} from '../layout/header' import {importLog} from '../model/admin' import {settings} from '../model/settings' import {FormSection} from '../comp' import {Routes} from '../router' export class ...
dispatch/static/manager/src/js/pages/Issues/IssueIndexPage.js
ubyssey/dispatch
import React from 'react' import { connect } from 'react-redux' import { replace } from 'react-router-redux' import ItemIndexPage from '../ItemIndexPage' import issuesActions from '../../actions/IssuesActions' const mapStateToProps = (state) => { return { token: state.app.auth.token, listItems: state.app.is...
docs/src/app/components/pages/components/Menu/ExampleIcons.js
ruifortes/material-ui
import React from 'react'; import Paper from 'material-ui/Paper'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; import RemoveRedEye from 'material-ui/svg-icons/image/remove-red-eye'; import PersonAdd from 'material-ui/svg-icons/social/person-add'; import ContentLink from 'material-ui...
src/index.js
Luchanso/lu-timer
/* eslint-disable */ import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
app/javascript/mastodon/features/ui/components/column_subheading.js
honpya/taketodon
import React from 'react'; import PropTypes from 'prop-types'; const ColumnSubheading = ({ text }) => { return ( <div className='column-subheading'> {text} </div> ); }; ColumnSubheading.propTypes = { text: PropTypes.string.isRequired, }; export default ColumnSubheading;
public/src/components/products/SingleProduct.js
andy1992/react-redux-crud
import React from 'react'; import { Link } from 'react-router'; import Loader from './../../components/layouts/Loader'; export default class SingleProduct extends React.Component { componentWillMount() { this.props.findProduct(this.props.params.productId); } render() { this.props.setPageTi...
until_201803/spring-framework/websocket/src/main/app/src/App.js
shofujimoto/examples
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h1 className="App-title">Welco...
app/javascript/trading_app/components/strategy/StrategyMain.js
zooliet/Rekcle
import React from 'react' import PropTypes from 'prop-types' import { observer, inject } from 'mobx-react'; import { Route, Switch } from 'react-router-dom' import ConnectAndLogin from 'trading_app/components/ConnectAndLogin' import StrategyNav from './StrategyNav' import KiwoomEquation from './KiwoomEquation' @inje...
src/scenes/numbers/index.js
2rajpx/fanavard-kid-nums
import React, { Component } from 'react'; import { Modal, } from 'react-native'; import { Container, Header, Title, Content, View, Button, Text, Icon, Tabs, Footer, FooterTab, InputGroup, Input, Card, CardItem, } from 'native-base'; import styles from './styles'; import theme from '../....
src/redux/utils/createDevToolsWindow.js
Grobim/eggheadReduxTutorial
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import DevTools from '../../containers/DevToolsWindow'; export default function createDevToolsWindow (store) { const win = window.open( null, 'redux-devtools', // give it a name so it reuses the same window ...
src/components/MainPanel.js
Benguino/star-wars-project
import React from 'react'; import PropTypes from 'prop-types'; import {MovieProfile, MovieCard} from './'; import _chunk from 'lodash.chunk'; export const MainPanel = ({movies}) => { let pairedMovies = _chunk(movies, 2); let movieCards = pairedMovies.map((pair) => { return pair.map((movie) => <MovieProfile key...
node_modules/react-select/examples/src/components/Contributors.js
darklilium/Factigis_2
import React from 'react'; import Select from 'react-select'; const CONTRIBUTORS = require('../data/contributors'); const MAX_CONTRIBUTORS = 6; const ASYNC_DELAY = 500; const Contributors = React.createClass({ displayName: 'Contributors', propTypes: { label: React.PropTypes.string, }, getInitialState () { ret...
src/components/ShareExperience/common/FailFeedback.js
WendellLiu/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import Feedback from 'common/Feedback'; const FailFeedback = ({ buttonClick }) => ( <Feedback buttonClick={buttonClick} heading="Oops 有些錯誤發生" info="請查看你的網路連線再試一次,如果你還沒填寫完,請先別關閉瀏覽器!" buttonText="好,我知道了" /> ); FailFeedback.propTypes = {...
src/components/wrapper/stories/index.js
timludikar/component-library
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import Wrapper from '../index'; storiesOf('component.Wrapper', module) .add('default view', () => ( <Wrapper>Hello</Wrapper> )) .add('custom styles', () => { const style = { fontSize: 20, textTransform: 'uppercase', ...
src/common/LoginButton.js
kriasoft/react-static-boilerplate
/** * React Starter Kit for Firebase * https://github.com/kriasoft/react-firebase-starter * Copyright (c) 2015-present Kriasoft | MIT License */ import clsx from 'clsx'; import React from 'react'; import PropTypes from 'prop-types'; import Button from '@material-ui/core/Button'; import { darken } from '@material-u...
react-native/Auth/src/components/common/CardSection.js
vanyaland/react-demos
import React from 'react'; import { View } from 'react-native'; const CardSection = (props) => { return ( <View style={styles.container}> {props.children} </View> ); }; const styles = { container: { borderBottomWidth: 1, padding: 5, backgroundColor: '#fff', justif...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/Generators.js
liamhu/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function* load(limit) { let i = 1; while (i <= limit)...
src/components/home/theater/MovieSticker.js
landrysoules/mmdb_front_react
import React from 'react'; import { Link } from 'react-router-dom'; const MovieSticker = ({ movie, imagePath, cast, cs }) => { const castElm = cast ? ( <div className="sticker-cast"> {cast.cast[0].name}, {cast.cast[1].name} </div> ) : null; return ( <Link to={`/movie/${movie.id}`}> <div className={...
src/index.js
Adutchguy/portfolio
import {} from 'dotenv/config'; import React from 'react'; import ReactDOM from 'react-dom'; import 'bootstrap/dist/css/bootstrap.css'; import './styles/_main.scss'; import App from './components/app/App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('ro...
client/components/Markdown/elements/_h2.js
LetAmericaVote/strikeout
import React from 'react'; const h2 = (props) => { const { children } = props; return ( <h2>{ children }</h2> ); }; export default h2;