path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
client/index.js
jmeas/moolah
import 'babel-polyfill'; import React from 'react'; import {render} from 'react-dom'; import {Provider} from 'react-redux'; import { Router, Route, IndexRoute, browserHistory, Redirect, applyRouterMiddleware } from 'react-router'; import {useScroll} from 'react-router-scroll'; import FirstChild from './common/compo...
examples/universal/client.js
dmin/redux
import 'babel-core/polyfill'; import React from 'react'; import configureStore from './store/configureStore'; import { Provider } from 'react-redux'; import App from './containers/App'; const initialState = window.__INITIAL_STATE__; const store = configureStore(initialState); const rootElement = document.getElementB...
src/App.js
jeetiss/madskillz
import React from 'react' import { connect } from 'react-redux' import { splitTime, exp } from './utils/time' import { injectGlobal } from 'styled-components' import { Cifer, Blat, Cont } from './components' injectGlobal` body { margin: 0; background-color: white; font-family: 'Roboto', sans-serif;...
client/modules/App/components/Landing/Button.js
aksm/refactored-palm-tree
import React from 'react'; import styles from '../../Landing.css'; import {browserHistory} from 'react-router'; class Button extends React.Component { constructor(props) { super(props); this.handleClick = this.handleClick.bind(this); } handleClick(route) { // e.preventDefault(); browserHi...
src/forms/output/GraphHolder.js
shp54/cliff-effects
import React, { Component } from 'react'; // CUSTOM COMPONENTS import { GraphTimeButtons } from '../../components/GraphTimeButtons'; class GraphHolder extends Component { constructor (props) { super(props); this.state = { activeID: 'Yearly' }; } onClick = (evnt) => { var id = evnt.target.id; ...
src/components/Cook/Cook.js
joyvuu-dave/comeals-ui-react
// rendered by Cooks import React from 'react' import classes from './Cook.scss' // Schema import type { ResidentsSchema } from '../../redux/modules/Residents' import type { BillSchema } from '../../redux/modules/bill' type Props = { ui: { select_disabled: boolean, input_disabled: boolean, error_message...
app/client/src/routes/manageCampaign/index.js
uprisecampaigns/uprise-app
import React from 'react'; import ManageCampaign from 'scenes/ManageCampaign'; import Layout from 'components/Layout'; import organizeCampaignPaths from 'routes/organizeCampaignPaths'; const path = organizeCampaignPaths({ path: '/organize/:slug', component: campaign => ( <Layout> <ManageCampaign campai...
src/icons/LandscapeIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class LandscapeIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M28 12l-7.5 10 5.7 7.6L23 32c-3.38-4.5-9-12-9-12L2 36h44L28 12z"/></svg>;} };
src/client.js
EmilNordling/poesk
import React from 'react' import ReactDom from 'react-dom' import { AppContainer } from 'react-hot-loader' import OfflinePluginRuntime from 'offline-plugin/runtime' import App from './components/App' import './manifest.json' import './assets/icon.png' import './assets/icon-192.png' import './assets/icon-512.png' cons...
components/plugins/snack-embed.js
ccheever/expo-docs
import React from 'react' export default class SnackEmbed extends React.Component { componentDidMount() { var script = document.getElementById('snack') // inject script if it hasn't been loaded by a previous page if (!script) { script = document.createElement('script') script.src = 'https://s...
BuyDemo/Component/Shop/ZPShop.js
HAPENLY/ReactNative-Source-code-Demo
/** * Created by zhaopengsong on 2016/12/19. */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Platform, TouchableOpacity, Image, WebView } from 'react-native'; var Shop = React.createClass({ getInitialState(){ return{ ...
src/components/Transaction/Filter/AppliedFilters.js
ayastreb/money-tracker
import React from 'react'; import PropTypes from 'prop-types'; import { Label } from 'semantic-ui-react'; class AppliedFilters extends React.Component { removeAppliedAccount = accountId => () => { this.props.applyFilters({ accounts: this.props.appliedAccounts.filter(acc => acc !== accountId), tags: t...
modules/RouterContextMixin.js
apoco/react-router
import React from 'react'; import invariant from 'invariant'; import { stripLeadingSlashes, stringifyQuery } from './URLUtils'; var { func, object } = React.PropTypes; function pathnameIsActive(pathname, activePathname) { if (stripLeadingSlashes(activePathname).indexOf(stripLeadingSlashes(pathname)) === 0) retu...
src/About.js
hryanjones/kyakarun
import React from 'react'; const About = () => ( <div> <ul> <li> <a href='https://github.com/hryanjones/kyakarun/issues'>Report issues</a> </li> <li> Send feedback via <a href='https://twitter.com/hryanjones'>twitter</a> or <a href='mailto://hryanjones@gmail.com'>ema...
src/index.js
shojil/bifapp
/** * Index - this is where everything * starts - but offloads to app.js * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ /* global __DEV__ */ import React from 'react'; import { applyMiddleware, compose, createStore } from 'redux'; import { connect, Provider } from 'react-re...
actor-apps/app-web/src/app/components/dialog/MessagesSection.react.js
daodaoliang/actor-platform
/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import { MessageContentTypes } from 'constants/ActorAppConstants'; import MessageActionCreators from 'actions/MessageActionCreators'; ...
src/components/common/svg-icons/device/network-cell.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceNetworkCell = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/><path d="M17 7L2 22h15z"/> </SvgIcon> ); DeviceNetworkCell = pure(DeviceNetworkCell); DeviceNetworkCell.displayNam...
src/client/main.js
Nord-HI/nord.is
import 'babel-polyfill' import React from 'react' import ReactDOM from 'react-dom' import { Router, browserHistory } from 'react-router' // Routes import Routes from 'client/common/components/Routes' // Base styling import 'client/common/base.css' // Render the router ReactDOM.render(( <Router history={browserHist...
app/javascript/mastodon/components/gifv.js
tootsuite/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class GIFV extends React.PureComponent { static propTypes = { src: PropTypes.string.isRequired, alt: PropTypes.string, width: PropTypes.number, height: PropTypes.number, onClick: PropTypes.func, }; state = { l...
node_modules/react-router/es6/IndexLink.js
geng890518/editor-ui
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; }; import React from 'react'; import Link from './Link'; /** *...
src/SelectRowHeaderColumn.js
prince1809/react-grid
import React from 'react'; import classSet from 'classnames'; import Const from './Const'; class SelectRowHeaderColumn extends React.Component{ render(){ var thStyle = { width: 35 }; return( <th style={thStyle}> <div className="th-inner table-header-column"> {this.props.children...
src/authentication/signup/index.js
GrayTurtle/rocket-workshop
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { compose } from 'redux'; import { firebaseConnect, isLoaded, isEmpty } from 'react-redux-firebase'; import '../auth.css'; class Signup extends Component { static propTypes = { }; co...
packages/es-components/src/components/controls/buttons/ActionButton.js
jrios/es-components
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { useTheme } from '../../util/useTheme'; import Button from './Button'; const StyledButton = styled(Button)` .es-button__display { background-color: ${props => props.defaultStyle.bgColor}; box-shadow...
packages/presentation/src/index.js
dfbaskin/react-higher-order-components
import React from 'react'; import ReactDOM from 'react-dom'; import 'normalize.css'; import './index.css'; import {App} from './app'; require('prismjs'); require('prismjs/themes/prism.css'); ReactDOM.render( <App />, document.getElementById('root') );
exercise-04-solution/src/components/PokemonPreview.js
learnapollo/pokedex-react
import React from 'react' import { Link } from 'react-router' export default class PokemonPreview extends React.Component { static propTypes = { pokemon: React.PropTypes.object, } render () { return ( <Link to={`/view/${this.props.pokemon.id}`} style={{ minWidth: 200 }} cl...
lib/views/mount-settings.js
koding/kd-atom
'use babel' import { Emitter } from 'atom' import { View } from 'atom-space-pen-views' import React from 'react' import { render } from 'react-dom' import { find } from 'lodash' import MountsTable from './mounts-table' export default class MountSettings extends View { static content({ mounts }) { this.section(...
admin/client/App/screens/List/components/ItemsTable/ItemsTableRow.js
creynders/keystone
import React from 'react'; import classnames from 'classnames'; import ListControl from '../ListControl'; import { Columns } from 'FieldTypes'; import { DropTarget, DragSource } from 'react-dnd'; import { setDragBase, resetItems, reorderItems, setRowAlert, moveItem, } from '../../actions'; const ItemsRow = Rea...
src/Component/goodInfo.js
smay1227/wintershop
import React, { Component } from 'react'; import {Link} from 'react-router'; import '../Stylesheets/goodInfo.css'; export default class goodInfo extends Component { constructor(props) { super(props); this.state = { year: this.props.params.year, month: this.props.params.month, day: this.pro...
lib/ui/src/components/notifications/NotificationItem.stories.js
storybooks/storybook
import React from 'react'; import NotificationItem from './NotificationItem'; export default { component: NotificationItem, title: 'UI/Notifications/NotificationItem', decorators: [(storyFn) => <div style={{ width: '240px', margin: '1rem' }}>{storyFn()}</div>], excludeStories: /.*Data$/, }; const onClear = ()...
app/components/default-settings/RaceDistanceSetting.js
opensprints/opensprints-electron
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Select from './Select'; export default class RaceDistanceSetting extends Component { static propTypes = { defaultRaceSettings: PropTypes.object.isRequired, changeDefaultRaceSetting: PropTypes.func.isRequired } render() ...
src/svg-icons/device/location-disabled.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceLocationDisabled = (props) => ( <SvgIcon {...props}> <path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06c-1.13.12-2.19.46-3.16.97l1.5 1.5C10.16 5.19 11.06 5 12 5c3.87 0 7 3.13 7 7 0 .94-.19 1.84-.5...
docs/build.js
pivotal-cf/react-bootstrap
/* eslint no-console: 0 */ import React from 'react'; import path from 'path'; import Router from 'react-router'; import routes from './src/Routes'; import Root from './src/Root'; import fsp from 'fs-promise'; import { copy } from '../tools/fs-utils'; import { exec } from '../tools/exec'; import metadata from './gener...
src/containers/QuizList/QuizList.js
AbhishekCode/quiz
import React, { Component } from 'react'; import { StyleSheet, css } from 'aphrodite'; import { connect } from 'react-redux'; import RaisedButton from 'material-ui/RaisedButton'; import {browserHistory} from 'react-router'; import CircularProgress from 'material-ui/CircularProgress'; import {List, ListItem} from 'mater...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/DefaultPropsInline.js
TiddoLangerak/flow
// @flow import React from 'react'; class MyComponent extends React.Component<{a: number, b: number, c: number}, Props> { static defaultProps: {a: number, b: number, c: number} = {a: 1, b: 2, c: 3}; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const express...
src/shared/components/component.js
tarkalabs/material-todo-jsc2016
import _ from 'lodash'; import React from 'react'; import appState from '../stores'; import shouldComponentUpdate from '../helpers/should_component_update'; export default function component(ParentComponent, paths) { return React.createClass({ displayName: 'component', shouldComponentUpdate: shouldComponent...
modules/Lifecycle.js
runlevelsix/react-router
import React from 'react' import invariant from 'invariant' const { object } = React.PropTypes /** * The Lifecycle mixin adds the routerWillLeave lifecycle method * to a component that may be used to cancel a transition or prompt * the user for confirmation. * * On standard transitions, routerWillLeave receives ...
App/Components/NoNavbar.js
FAC7/anna-freud-hub
import React from 'react' import { View } from 'react-native' export default () => <View />
imports/ui/admin/components/.stories/menu.js
dououFullstack/atomic
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { setComposerStub } from 'react-komposer'; import Menu from '../menu.jsx'; storiesOf('admin.Menu', module) .add('default view', () => { return ( <Menu /> ); })
src/svg-icons/image/camera-alt.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCameraAlt = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5...
app/javascript/mastodon/components/missing_indicator.js
danhunsaker/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import illustration from 'mastodon/../images/elephant_ui_disappointed.svg'; import classNames from 'classnames'; const MissingIndicator = ({ fullPage }) => ( <div className={classNames('regeneration-indicato...
src/styles/MuiThemeProvider.js
AndriusBil/material-ui
// @flow import React from 'react'; import PropTypes from 'prop-types'; import createBroadcast from 'brcast'; import themeListener, { CHANNEL } from './themeListener'; class MuiThemeProvider extends React.Component<Object> { constructor(props: Object, context: Object) { super(props, context); // Get the ou...
src/components/App.js
donjar/learn-latex
import React from 'react'; import Question from './Question'; class App extends React.Component { render() { return ( <div className="App"> <div className="container"> <h1>Belajar LaTeX</h1> <Question description="Di forum olimpiade.org, kode LaTeX dibungkus dengan tanda dollar ...
src/containers/Asians/Published/AdjudicatorSpeechScoreRange/AdjudicatorGivenScores.js
westoncolemanl/tabbr-web
import React from 'react' import { connect } from 'react-redux' import { TableCell, TableRow } from 'material-ui/Table' import _ from 'lodash' export default connect(mapStateToProps)(({ adjudicator, scoresGiven }) => { const score = _.sum(scoresGiven) / scoresGiven.length return ( <TableRow> <Tab...
src/index.js
dsandmark/redux-tech-demo
import React from 'react'; import ReactDOM from 'react-dom'; import { IndexRoute, Router, Route, browserHistory } from 'react-router' import { applyMiddleware, createStore } from 'redux' import { Provider } from 'react-redux' import createLogger from 'redux-logger' import rootReducer from './domain' import './index.css...
containers/page_new_paper.js
MonkingStand/MS-blog-site-v3.0
import React from 'react'; import ParagraphType from '../components/new_paper_paragraph_type'; import ParagraphKit from '../components/new_paper_paragraph_kit'; import InputArea from '../components/new_paper_input_area'; import SubmitContainer from '../components/new_paper_submit_container'; import Vi...
src/svg-icons/av/videocam-off.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVideocamOff = (props) => ( <SvgIcon {...props}> <path d="M21 6.5l-4 4V7c0-.55-.45-1-1-1H9.82L21 17.18V6.5zM3.27 2L2 3.27 4.73 6H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.21 0 .39-.08.54-.18L19.73 21 21 19.73 3...
fields/types/color/ColorColumn.js
matthieugayon/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var ColorColumn = React.createClass({ displayName: 'ColorColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue () { ...
src/WriteboxInput.js
bdryanovski/react-native-writebox
/* @flow */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View, Text, TextInput, Platform } from 'react-native'; import { LIGHT_GRAY_FONT_COLOR, GRAY_FONT_COLOR } from './constants' import styles from './styles' const INPUT_MAX_HEIGHT = 60 export default class Wr...
client/src/research/CountChart.js
mit-teaching-systems-lab/swipe-right-for-cs
import React from 'react'; import PropTypes from 'prop-types'; import { VictoryBar, VictoryChart, VictoryTheme, VictoryAxis, VictoryLabel, VictoryGroup } from 'victory'; // Horizontal bar chart showing counts by a string key class CountChart extends React.Component { render() { const {chartTitle, c...
examples/real-world/index.js
fanhc019/redux
import 'babel-core/polyfill'; import React from 'react'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import { Provider } from 'react-redux'; import { Router, Route } from 'react-router'; import configureStore from './store/configureStore'; import App from './containers/App'; import UserPage fro...
src/components/draggable/draggableView.stories.js
philpl/rxjs-diagrams
import React from 'react' import { storiesOf } from '@kadira/storybook' import { withKnobs, number, boolean } from '@kadira/storybook-addon-knobs'; import DraggableView from './draggableView' storiesOf('DraggableView', module) .addDecorator(withKnobs) .add('Default', () => ( <DraggableView width={number...
blueocean-material-icons/src/js/components/svg-icons/image/filter-vintage.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageFilterVintage = (props) => ( <SvgIcon {...props}> <path d="M18.7 12.4c-.28-.16-.57-.29-.86-.4.29-.11.58-.24.86-.4 1.92-1.11 2.99-3.12 3-5.19-1.79-1.03-4.07-1.11-6 0-.28.16-.54.35-.78.54.05-.31.08-.63.08-.95 0-2.22-1.21-4.15-3-5.19C10.21 1...
front/app/app/rh-components/rh-ContentArea.js
nudoru/React-Starter-2-app
import React from 'react'; class ContentArea extends React.Component { render() { return ( <div className="content-region"> <div className="page-container"> {this.props.children} </div> </div> ); } } export default ContentArea;
docs/exam/src/StaffDetail.js
Hellfire-zmcy/web
import React from 'react'; export default class StaffDetail extends React.Component{ handlerEdit(){ let item = {}; let editTabel = React.findDOMNode(this.refs.editTabel); let sex = editTabel.querySelector('#staffEditSex'); let id = editTabel.querySelector('#staffEditId'); item.name = editTabel.q...
src/components/Header/Header.js
panli-com/MyApp
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Header.css'; import withStyles from '../../decorators/withStyles'; import Link from '../Link'; import Navigation from '../Navigation'; @withStyles(styles) class Header extends Compo...
src/svg-icons/action/android.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAndroid = (props) => ( <SvgIcon {...props}> <path d="M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V8H6v10zM3.5 8C2.67 8...
docs/src/app/components/pages/components/Stepper/CustomStepConnector.js
hwo411/material-ui
import React from 'react'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; import { Step, Stepper, StepLabel, } from 'material-ui/Stepper'; import ArrowForwardIcon from 'material-ui/svg-icons/navigation/arrow-forward'; /** * It is possible to specify your ow...
examples/with-material-ui-next/pages/_document.js
arunoda/next.js
import React from 'react' import Document, { Head, Main, NextScript } from 'next/document' import { getContext, setContext } from '../styles/context' export default class MyDocument extends Document { static async getInitialProps (ctx) { // Reset the context for handling a new request. setContext() const...
src/svg-icons/device/signal-cellular-4-bar.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellular4Bar = (props) => ( <SvgIcon {...props}> <path d="M2 22h20V2z"/> </SvgIcon> ); DeviceSignalCellular4Bar = pure(DeviceSignalCellular4Bar); DeviceSignalCellular4Bar.displayName = 'DeviceSign...
app/pages/search/controls/PositionControl.js
fastmonkeys/respa-ui
import React from 'react'; import PropTypes from 'prop-types'; import { createSliderWithTooltip } from 'rc-slider'; import Slider from 'rc-slider/lib/Slider'; import injectT from '../../../i18n/injectT'; import CheckboxControl from './CheckboxControl'; const TooltipSlider = createSliderWithTooltip(Slider); class Pos...
js/components/MessageList.js
DevHse/ClubRoom
import React, { Component } from 'react'; import { ListView, Text, Row, Image, View, Subtitle, Caption, Heading } from '@shoutem/ui'; import moment from 'moment'; const Message = ({ msg }) => ( <Row> <Image styleName="small-avatar top" source={{ uri: msg.author.avatar }} /> ...
stories/panelWithAddButton.stories.js
JimBarrows/Bootstrap-React-Components
import {storiesOf} from '@storybook/react' import {action} from '@storybook/addon-actions' import React from 'react' import PanelBody from '../src/panels/PanelBody' import PanelWithAddButton from '../src/panels/PanelWithAddButton' storiesOf('Panels/Add Button', module) .addDecorator((story) => <div className="conta...
src/svg-icons/action/perm-phone-msg.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermPhoneMsg = (props) => ( <SvgIcon {...props}> <path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.2...
packages/slate-react/src/components/editor.js
AlbertHilb/slate
import Debug from 'debug' import Portal from 'react-portal' import React from 'react' import SlateTypes from 'slate-prop-types' import Types from 'prop-types' import logger from 'slate-dev-logger' import { Stack, State } from 'slate' import EVENT_HANDLERS from '../constants/event-handlers' import AfterPlugin from '.....
app/javascript/mastodon/features/compose/components/navigation_bar.js
dunn/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ActionBar from './action_bar'; import Avatar from '../../../components/avatar'; import Permalink from '../../../components/permalink'; import IconButton from '../../../components/icon_button...
src/components/RecipeCard/RecipeCard.js
DonHansDampf/whattoeat_website
import React from 'react' import { Card, CardImage, Heading, Text } from 'rebass' const RecipeCard = (props) => { return ( <div> <Card style={{ margin: 5 }}> <CardImage src={props.image} /> <Heading level={2} size={3} > {props.title} ...
jenkins-design-language/src/js/components/material-ui/svg-icons/notification/sync-problem.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const NotificationSyncProblem = (props) => ( <SvgIcon {...props}> <path d="M3 12c0 2.21.91 4.2 2.36 5.64L3 20h6v-6l-2.24 2.24C5.68 15.15 5 13.66 5 12c0-2.61 1.67-4.83 4-5.65V4.26C5.55 5.15 3 8.27 3 12zm8 5h2v-2h-2v2zM21 4h-6v6l2.24-2.24C18.32 8.85 1...
client/views/Home/index.js
shastajs/boilerplate
import React from 'react' import { Link } from 'shasta-router' import { Component, PropTypes, connect } from 'shasta' import { Flex, Box } from 'reflexbox' import { Toolbar, NavItem, Space, Text, Container, Button, Panel, PanelHeader, PanelFooter } from 'rebass' import jif from 'jif' import actions from 'core/act...
src/component/SectionTabs.js
bertrandmartel/caipy-dashboard
//react import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import AppBar from 'material-ui/AppBar'; import Tabs, { Tab } from 'material-ui/Tabs'; import EpgDataSet from './EpgDataSet.js'; import CaipyDataSet from './CaipyDataSet.js'; import T...
app/components/ProductItem/index.js
Luandro-com/repsparta-web-app
/** * * ProductItem * */ import React from 'react'; import Radium from 'radium'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; import FlatButton from 'material-ui/FlatButton'; import styles from './styles.css'; const sty = { select: { background: '#fff', w...
src/svg-icons/device/battery-50.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBattery50 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V13h10V5.33z"/><path d="M7 13v7.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 ...
tests/format/flow-repo/react/createElement_string.js
prettier/prettier
// @flow import React from 'react'; class Bar extends React.Component {} class Foo extends React.Component { render() { const Cmp = Math.random() < 0.5 ? 'div' : Bar; return (<Cmp/>); } }
common/routes/Posts/components/Clients.js
noentiger/react-portfolio
import React from 'react'; import { StyleSheet, css } from 'aphrodite'; import { Color } from '../../../style'; const styles = StyleSheet.create({ container: { margin: '4em auto', }, title: { color: Color.black, fontWeight: 900, fontSize: 56, maxWidth: 600, }, item: { color: Color.bla...
src/components/Main.js
liyongfen/todoList
"use strict" import '../styles/main.css'; import 'antd/dist/antd.css'; import React from 'react'; import ReactDOM from 'react-dom'; import {connect} from 'react-redux'; import propTypes from 'prop-types'; import {Icon,notification,Row,Col,Modal} from 'antd'; import Header from './Header.js'; import Footer from '....
examples/tex/js/components/TeXEditorExample.js
brookslyrette/draft-js
/** * Copyright (c) 2013-present, Facebook, Inc. All rights reserved. * * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCL...
src/components/Settings/Speech/Speech.component.js
amberleyromo/cboard
import React from 'react'; import { FormattedMessage } from 'react-intl'; import { withStyles } from 'material-ui/styles'; import Button from 'material-ui/Button'; import Paper from 'material-ui/Paper'; import List, { ListItem, ListItemText } from 'material-ui/List'; import Menu, { MenuItem } from 'material-ui/Menu'; i...
src/containers/DevTools/DevTools.js
Anshul-HL/blitz-vihanga
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-Q"> <LogMonitor /...
ReactTest/app/component/Popular.js
OlesiaBelmega/GoIT-Studing
import React from 'react'; import PropTypes from 'prop-types'; import api from '../ultils/api'; import Loading from './Loading' function SelectLanguage(props) { let languages = ['All', 'JavaScript', 'Ruby', 'Java', 'CSS', 'Python']; return ( <ul className="languages"> {languages.map((lang) ...
Skins/VetoccitanT3/Js/React/react-tooltip-master/example/src/index.js
ENG-SYSTEMS/Kob-Eye
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
src/index.js
SteveHoggNZ/react-transform-boilerplate-tape-tests
import React from 'react'; import { render } from 'react-dom'; import { App } from './App'; import { NICE, SUPER_NICE, COUNTERS } from './colors'; render(<App counters={COUNTERS}/>, document.getElementById('root'));
src/containers/pages/welcome/sections/use-cases/create-deck.js
vFujin/HearthLounge
import React from 'react'; import CardInText from "../../../../../components/card/card-in-text"; import {Link} from "react-router-dom"; import Icon from "../../../../../components/icon"; const theramore = <CardInText label="Theramore" imgSrc="http://media.services.zam.com/v1/media/byName/hs/cards/enus/GVG_015.png" rar...
src/popup/components/Card/index.js
victorvoid/fluany
/** * @fileOverview The card component to show and edit card(Front & Back) * @name index.js<Card> * @license GNU General Public License v3.0 */ import React from 'react' import PropTypes from 'prop-types' import * as translator from 'shared/constants/internacionalization' import CardEdit from './CardEdit' import T...
front-end/src/components/CommentCard/CommentCard.js
mkalpana/km-react-reddit-clone
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import './CommentCard.css'; import { VoteScore } from '../index'; import DisplayComment from './DisplayComment'; import EditCommentForm from './EditCommentForm'; class CommentCard extends Component { state = { showEditForm: false, };...
examples/custom-menu/app.js
thomasboyt/react-autocomplete
import React from 'react' import Autocomplete from '../../lib/index' import { getStates, matchStateToTerm, sortStates, styles, fakeRequest } from '../utils' let App = React.createClass({ getInitialState () { return { unitedStates: getStates(), loading: false } }, render () { return ( ...
src/components/ReportModals/FinancialTransactionsReportModal.js
folio-org/ui-users
import React from 'react'; import PropTypes from 'prop-types'; import moment from 'moment-timezone'; import { Field } from 'react-final-form'; import { isEmpty } from 'lodash'; import { FormattedMessage, injectIntl, } from 'react-intl'; import stripesFinalForm from '@folio/stripes/final-form'; import { Modal, ...
src/popover/SKBoundPopover.js
ShaneKing/sk-antd
import {Popover} from 'antd'; import PropTypes from 'prop-types'; import React from 'react'; import {Proxy0, SK} from 'sk-js'; import SKPopover from './SKPopover'; /** * @MustModelId */ export default class SKBoundPopover extends SKPopover { static SK_COMP_NAME = 'SKPopover'; static SK_EXTEND_COMP_NAME = 'SKBoun...
src/index.js
jonniebigodes/freecodecampreactChallenges
import React from 'react'; import {render} from 'react-dom'; import {Router,Route,browserHistory} from 'react-router'; import App from './components/App'; import LeaderBoardContainer from './components/Challenges/Camper/CamperLeaderBoard'; import RecipesContainer from './components/Challenges/Recipes/Recipes'; import M...
application/index.js
ronanamsterdam/squaredcoffee
import React, { Component } from 'react'; import { StyleSheet, Text, View } from 'react-native'; import { Provider } from 'react-redux'; import App from './app'; import configureStore from './store'; export const store = configureStore(); export default class ApplicationRoot extends Component { render() { re...
packages/wix-style-react/src/ToggleSwitch/docs/ControlledToggleSwitch.js
wix/wix-style-react
/* eslint-disable no-undef */ import React from 'react'; import { FormField, ToggleSwitch } from 'wix-style-react'; class ControlledToggleSwitch extends React.Component { state = { checked: false, }; render() { const { checked } = this.state; return ( <FormField id="formfieldToggleSwi...
node_modules/case-sensitive-paths-webpack-plugin/demo/src/init.js
louisiaegerv/zephyr
import AppRoot from './AppRoot.component.js'; import React from 'react'; import ReactDOM from 'react-dom'; const app = { initialize() { ReactDOM.render(<AppRoot/>, document.getElementById('react-app-hook')); } }; app.initialize();
app/jsx/course_settings/components/UploadArea.js
venturehive/canvas-lms
/* * Copyright (C) 2016 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
test/mochaTestHelper.js
vacuumlabs/este
import Bluebird from 'bluebird'; import chai, {assert, expect} from 'chai'; import React from 'react'; import sinon from 'sinon'; import sinonAsPromised from 'sinon-as-promised'; import sinonChai from 'sinon-chai'; import TestUtils from 'react-addons-test-utils'; chai.should(); chai.use(sinonChai); // Use Bluebird Pr...
packages/react-router/modules/Router.js
DelvarWorld/react-router
import warning from 'warning' import invariant from 'invariant' import React from 'react' import PropTypes from 'prop-types' /** * The public API for putting history on context. */ class Router extends React.Component { static propTypes = { history: PropTypes.object.isRequired, children: PropTypes.node }...
src/js/app/main.js
marshallford/yet-another-react-boilerplate
import 'react-hot-loader/patch' import 'styles/main.scss' import React from 'react' import { render } from 'react-dom' import { AppContainer as HotLoader } from 'react-hot-loader' import App from 'app' const el = document.getElementById('app') render( <HotLoader> <App /> </HotLoader>, el ) if (module.hot) ...
App/ComponenetsV2/NavigationContent.js
victoryforphil/GTMobile
import React, { Component } from 'react'; import { AppRegistry, PropTypes, ScrollView, StyleSheet, Text, TouchableOpacity, View, Alert, Navigator } from 'react-native'; import Icon from 'react-native-vector-icons/MaterialIcons'; import icons from 'react-native-vector-icons/EvilIcons'; import * as fir...
packages/ringcentral-widgets-docs/src/app/pages/Components/Eula/index.js
u9520107/ringcentral-js-widget
import React from 'react'; import { parse } from 'react-docgen'; import CodeExample from '../../../components/CodeExample'; import ComponentHeader from '../../../components/ComponentHeader'; import PropTypeDescription from '../../../components/PropTypeDescription'; import Demo from './Demo'; // eslint-disable-next-lin...
src/components/TemplateComponent.js
chimo/se-dir-frontend-react
'use strict'; import React from 'react'; import SiteNavigation from './SiteNavigationComponent'; import i18n from '../i18n'; require('es6-promise/auto'); var airbrakeJs = require('airbrake-js'); class TemplateComponent extends React.Component { getChildContext() { return { 'config': this.state.config, ...
src/js/PurchasePage.js
merlox/dapp-transactions
import React from 'react' import Header from './Header' import './../stylus/index.styl' import './../stylus/purchasepage.styl' class PurchasePage extends React.Component { constructor(props) { super(props) } render(){ return ( <div style={{height: '100%'}}> <h1 className="pur...
src/game/problems/index.js
evinism/lambda-explorer
import React from 'react'; import InlineDefinition from '../inlineDefinitions/InlineDefinition'; import { equal, parseTerm as parse, leftmostOutermostRedex, toNormalForm, bReduce, getFreeVars, tokenize, renderExpression, renderAsChurchNumeral, renderAsChurchBoolean, } from '../../lib/lambda'; // int...
app/components/options/ProfileCard.js
bjyoungblood/chrome-github-toolkit
import React from 'react'; import { Card, CardTitle, CardText, CardActions, Button, Icon, Spinner, } from 'react-mdl'; class ProfileCard extends React.Component { static propTypes = { onLogin: React.PropTypes.func.isRequired, onLogout: React.PropTypes.func.isRequired, token: React.PropTypes.object.isR...