path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/index.js
justin0022/student-services-forms
import React from 'react'; import {render} from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import routes from './routes'; import configureStore from './store/configureStore'; require('./favicon.ico'); // Tell webpack to load favicon.ico import './styles/s...
src/components/App/index.js
LittleFurryBastards/webpack-react-redux
import './app.less'; import React from 'react'; import { Link } from 'react-router'; const App = ({ children }) => ( <section className="wrr-app"> <header className="wrr-app__header"> <h1><Link to="/">User Information</Link></h1> </header> { children } </section> ); App.propTypes = { children...
styleguide/sections/Icons.js
tomgatzgates/loggins
import React, { Component } from 'react'; import Section from '../components/Section'; import allIcons from 'components/Icon/icons.js'; import * as m from 'globals/modifiers.css'; import Icon from 'components/Icon/Icon'; export default class Icons extends Component { render() { delete allIcons.default; con...
src/svg-icons/image/nature-people.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageNaturePeople = (props) => ( <SvgIcon {...props}> <path d="M22.17 9.17c0-3.87-3.13-7-7-7s-7 3.13-7 7c0 3.47 2.52 6.34 5.83 6.89V20H6v-3h1v-4c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v4h1v5h16v-2h-3v-3.88c3.47-.41 ...
app/containers/NotFoundPage/index.js
ParkarDev/react-resume
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route */ import React from 'react'; import { connect } from 'react-redux'; import { routeActions } from 'react-router-redux'; import Button from 'Button'; import H1 from 'H1'; export function NotFound(props) { retu...
src/server/bootstrapApp.js
cle1994/personal-website
/* ========================================================================== * ./src/server/bootstrapApp.js * * Bootstrap React/Redux server side * ========================================================================== */ import tracer from 'tracer'; import React from 'react'; import { renderToString } from ...
components/date_picker/Calendar.js
showings/react-toolbox
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import CssTransitionGroup from 'react-transition-group/CSSTransitionGroup'; import { range, getAnimationModule } from '../utils/utils'; import time from '../utils/time'; import CalendarMonth from './CalendarMonth'; const DIRECTION_STEPS = { ...
src/parser/shaman/elemental/modules/talents/UnlimitedPower.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatDuration, formatPercentage } from 'common/format'; import { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import StatisticBox from 'interface/oth...
components/src/Button/Button.js
svef/www
import React from 'react' import './Button.scss' const Button = ({ theme, ...props }) => ( <button className={['Button', theme].join(' ')} {...props} /> ) export default Button
src/svg-icons/action/update.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionUpdate = (props) => ( <SvgIcon {...props}> <path d="M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79 2.73 2.71 7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.5...
examples/src/components/CustomOption.js
benchrise/react-select
import React from 'react'; import Gravatar from 'react-gravatar'; var Option = React.createClass({ propTypes: { addLabelText: React.PropTypes.string, className: React.PropTypes.string, mouseDown: React.PropTypes.func, mouseEnter: React.PropTypes.func, mouseLeave: React.PropTypes.func, option: React.PropTy...
src/svg-icons/device/signal-wifi-4-bar.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi4Bar = (props) => ( <SvgIcon {...props}> <path d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/> </SvgIcon> ); DeviceSignalWifi4Bar = pure(Devic...
client/src/components/App/index.js
googleinterns/Pictophone
import React from 'react'; import { BrowserRouter as Router, Route, Switch, } from "react-router-dom"; import LandingPage from '../Home'; import Dashboard from '../Dashboard'; import Game from '../Game'; import SignUpPage from '../SignUp'; import SignInPage from '../SignIn'; import PasswordForgetPage from '../Pa...
src/SelfValidateForm/NumberInputer.js
appier/react-component-template
import React from 'react'; const NumberInputer = React.createClass({ validator: null, timer: null, getDefaultProps() { return { registerValidator: ()=>{}, }; }, componentDidMount() { this.validator = this.props.registerValidator('Number cannot be empty'); }, componentWillUnmount() ...
src/components/slick_carousel_item.js
b0ts/react-redux-sweetlightstudios-website
import React from 'react'; const SlickCarouselItem = ({ image, altText }) => ( <div className="slick-grid-item"> <img className="slick-grid-image" draggable="false" src={image} alt={altText} > </img> </div> ); export default SlickCarouselItem;
src/routes/index.js
itjope/tipskampen
import React from 'react' import { Route, IndexRoute, Redirect } from 'react-router' // NOTE: here we're making use of the `resolve.root` configuration // option in webpack, which allows us to specify import paths as if // they were from the root of the ~/src directory. This makes it // very easy to navigate to files ...
client/app/components/TagsList/index.js
gustblima/what-can-i-play-with-my-friends
import React from 'react'; import { List } from 'immutable'; import Ul from './Ul'; import Li from './Li'; function TagsList(props) { const { tags } = props; if (tags === undefined || tags.length === 0) { return <h6>No Tags</h6>; } const list = tags.map((item, idx) => ( <Li key={idx}>{item}</Li> )); ...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
DuSoleilSLC/DuSoleilSLC.github.io
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
admin/client/App/screens/List/components/ItemsTable/ItemsTableDragDropZone.js
w01fgang/keystone
/** * THIS IS ORPHANED AND ISN'T RENDERED AT THE MOMENT * THIS WAS DONE TO FINISH THE REDUX INTEGRATION, WILL REWRITE SOON * - @mxstbr */ import React from 'react'; import DropZoneTarget from './ItemsTableDragDropZoneTarget'; import classnames from 'classnames'; var ItemsTableDragDropZone = React.createClass({ d...
docs/src/app/components/pages/components/CircularProgress/ExampleDeterminate.js
hai-cea/material-ui
import React from 'react'; import CircularProgress from 'material-ui/CircularProgress'; export default class CircularProgressExampleDeterminate extends React.Component { constructor(props) { super(props); this.state = { completed: 0, }; } componentDidMount() { this.timer = setTimeout(() ...
docs/app/Examples/addons/Confirm/index.js
mohammed88/Semantic-UI-React
import React from 'react' import Types from './Types' import Variations from './Variations' const ConfirmExamples = () => ( <div> <Types /> <Variations /> </div> ) export default ConfirmExamples
src/svg-icons/action/translate.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTranslate = (props) => ( <SvgIcon {...props}> <path d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.7...
node_modules/react-error-overlay/lib/containers/RuntimeError.js
oiricaud/horizon-education
/** * 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. */ import Rea...
client/src/components/view/container/Container.js
docker-manager/docker-manager-tool
import React from 'react' import CopyToClipboard from '../../buttons/CopyToClipboard' const renderContainerPorts = (containerPorts) => { let ports = [] Object.keys(containerPorts).map(port => { let containerPort = containerPorts[port], render = '' if (containerPort.IP && containerPort.PublicPo...
src/svg-icons/hardware/devices-other.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareDevicesOther = (props) => ( <SvgIcon {...props}> <path d="M3 6h18V4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4v-2H3V6zm10 6H9v1.78c-.61.55-1 1.33-1 2.22s.39 1.67 1 2.22V20h4v-1.78c.61-.55 1-1.34 1-2.22s-.39-1...
benchmarks/dom-comparison/src/implementations/react-jss/View.js
risetechnologies/fela
/* eslint-disable react/prop-types */ import classnames from 'classnames'; import injectSheet from 'react-jss'; import React from 'react'; class View extends React.Component { render() { const { classes, className, ...other } = this.props; return <div {...other} className={classnames(classes.root, className)...
fields/types/number/NumberField.js
Yaska/keystone
import React from 'react'; import Field from '../Field'; import { FormInput } from 'elemental'; module.exports = Field.create({ displayName: 'NumberField', statics: { type: 'Number', }, valueChanged (event) { var newValue = event.target.value; if (/^-?\d*\.?\d*$/.test(newValue)) { this.props.onChange({ ...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DestructuringAndAwait.js
TryKickoff/create-kickoff-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'; async function load() { return { users: [ { i...
src/core/display/App/Navigation/Vertical/index.js
JulienPradet/pigment-store
import React from 'react' import {Link} from 'react-router' import {compose, withState, withHandlers} from 'recompose' import {MenuTitle, Item, Search} from '../../util/View/SidebarMenu' import {CategorySubNavigation} from './CategoryNavigation' export const isMatching = (search, name) => search !== '' && name.match(n...
src/entypo/CreativeCommons.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--CreativeCommons'; let EntypoCreativeCommons = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M8.8,10.8l1.1,0.6c-0.2,0.4-0.6,0.8-1,1.1c-0.4,0.3-0.9,0.4-1.4,0.4c-0.8,0-1.5-0.2-2-...
app/javascript/mastodon/components/status.js
SerCom-KC/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Avatar from './avatar'; import AvatarOverlay from './avatar_overlay'; import RelativeTimestamp from './relative_timestamp'; import DisplayName from './display_name'; import StatusContent fro...
src/components/itemsManager/ItemTransferModal.js
MrRandol/littleLight
/****************** REACT IMPORTS ******************/ import React from 'react'; import { Modal, View, ScrollView, Text, Image, Button, Dimensions, TouchableOpacity, TouchableWithoutFeedback } from 'react-native'; /***************** CUSTOM IMPORTS ******************/ import T from 'i18n-react'; var styl...
src/js/components/GroupListItem.js
grommet/grommet-people-finder
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React from 'react'; import PropTypes from 'prop-types'; import ListItem from 'grommet/components/ListItem'; import config from '../config'; const GroupListItem = (props) => { const { item, first } = props; return ( <ListItem jus...
ReactNative/node_modules/react-navigation/src/views/ResourceSavingSceneView.js
tahashahid/cloud-computing-2017
import React from 'react'; import { Platform, StyleSheet, View } from 'react-native'; import PropTypes from 'prop-types'; import SceneView from './SceneView'; const FAR_FAR_AWAY = 3000; // this should be big enough to move the whole view out of its container export default class ResourceSavingSceneView extends React...
react-backend/client/src/components/FeedbackView/index.js
JonasJan89/JSChallenge
import React, { Component } from 'react'; import StaticFeedbackView from '../StaticFeedbackView'; import DynamicFeedbackView from '../DynamicFeedbackView'; import axios from 'axios'; import SolutionUpload from "../SolutionUpload/index"; export default class FeedbackView extends Component { constructor(props) { ...
webApp/web_client/components/Loading.js
deliquescentlicorice/silent-disco
import React from 'react'; // MATERIAL DESIGN import CircularProgress from '../../node_modules/material-ui/lib/circular-progress'; class Loading extends React.Component { render() { return ( <div style={styles.loader}> <CircularProgress /> </div> ) } } var styles = { loader: { '...
client/src/views/Home/components/picture-nav/index.js
DillGromble/TNABT-org
import React from 'react' import { Link } from 'react-router' import './picture-nav.css' import about from '../../../../img/about-us.jpg' import awards from '../../../../img/awards.jpg' import membership from '../../../../img/membership.jpg' import resources from '../../../../img/resources.jpg' const PictureNav = ()...
UI/ToolTip/BottomLeft.js
Datasilk/Dedicate
import React from 'react'; import {Animated, Easing} from 'react-native'; import Text from 'text/Text'; import {Svg, Path} from 'react-native-svg'; import AppStyles from 'dedicate/AppStyles'; export default class ToolTipBottomLeft extends React.Component { constructor(props){ super(props); this.st...
src/components/StockTable/StockTable.js
pvijeh/stock-tracking-app-reactjs
/** * 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 {Table, C...
app/index.js
emilyaviva/code-501-react-boilerplate
import React from 'react' import { render } from 'react-dom' if (process.env.NODE_ENV !== 'production') { React.Perf = require('react-addons-perf') } const page = ( <div> <h1>Welcome to Code 501</h1> <h2>Building Web Apps with React + Redux</h2> </div> ) render(page, document.getElementById('app'))
actor-apps/app-web/src/app/components/sidebar/HeaderSection.react.js
chengjunjian/actor-platform
import React from 'react'; import mixpanel from 'utils/Mixpanel'; import MyProfileActions from 'actions/MyProfileActions'; import LoginActionCreators from 'actions/LoginActionCreators'; import AvatarItem from 'components/common/AvatarItem.react'; import MyProfileModal from 'components/modals/MyProfile.react'; import ...
packages/reactor-kitchensink/src/examples/Picker/Picker.js
sencha/extjs-reactor
import React, { Component } from 'react'; import { Container, Picker, Button } from '@extjs/ext-react'; export default class PickerExample extends Component { state = { displayed: false }; showPicker = () => this.setState({ displayed: true }); onHidden = () => this.setState({ displayed: false }); ren...
node_modules/react-native-scripts/template/App.js
jasonlarue/react-native-flashcards
import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; export default class App extends React.Component { render() { return ( <View style={styles.container}> <Text>Open up App.js to start working on your app!</Text> <Text>Changes you make will automatically reload...
src/svg-icons/image/assistant-photo.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageAssistantPhoto = (props) => ( <SvgIcon {...props}> <path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"/> </SvgIcon> ); ImageAssistantPhoto = pure(ImageAssistantPhoto); ImageAssistantPhoto.displayName = 'Image...
hackupc/node_modules/react-router/es/IndexLink.js
IKholopov/HackUPC2017
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'; /** *...
fields/types/cloudinaryimages/CloudinaryImagesColumn.js
lastjune/keystone
import React from 'react'; import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; const moreIndicatorStyle = { color: '#888', fontSize...
react-vr/v2-tree/components/Tree.js
nikgraf/webvr-experiments
import React from 'react'; import {asset, Model, View} from 'react-vr'; export default ({style}) => ( <View style={style}> <Model source={{obj: asset('tree-trunk.obj'), mtl: asset('tree-trunk.mtl')}} lit style={{ transform: [{scale: [0.6, 1, 0.6]}], }} /> <Model sour...
src/components/Layout/Layout.js
kinshuk-jain/TB-Dfront
import React from 'react'; import PropTypes from 'prop-types'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Layout.scss'; import Footer from '../Footer'; import TopBar from '../TopBar'; class Layout extends React.Component { static propTypes = { children: PropTypes.node.isReq...
test/integration/image-component/base-path/pages/missing-src.js
flybayer/next.js
import React from 'react' import Image from 'next/image' const Page = () => { return ( <div> <Image width={200}></Image> </div> ) } export default Page
src/components/Question.js
nebgnahz/style-guess
import React from 'react'; import './Question.css'; import Hammer from 'react-hammerjs'; const title = "What's my wedding style?"; function Question(props) { const clickLike = (e) => { props.answered(1) }; const clickNay = (e) => { props.answered(0) }; var divStyle = { 'backgroundImage': "url(...
docs/index.js
simonguo/markdownLoader
import React from 'react'; import ReactDOM from 'react-dom'; import Markdown from '../src/Markdown'; import '../less/highlight.less'; const App = () => { return <Markdown>{require('../README.md')}</Markdown>; }; ReactDOM.render(<App />, document.getElementById('app'));
src/components/EyeIcon/EyeIcon.js
emanualjade/react-jade
import React from 'react'; /** SVG Eye Icon */ function EyeIcon() { // Attribution: Fabián Alexis at https://commons.wikimedia.org/wiki/File:Antu_view-preview.svg return ( <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22"> <g transform="matrix(.02146 0 0 .02146 1 1)" fill...
js/components/form/placeholder.js
bengaara/simbapp
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Button, Item, Label, Input, Body, Left, Right, Icon, Form, Text } from 'native-base'; import { Actions } from 'react-native-route...
src/components/HeaderBar/index.js
welovekpop/uwave-web-welovekpop.club
import cx from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; import AppTitle from './AppTitle'; import Progress from './Progress'; import CurrentMedia from './CurrentMedia'; import Volume from './Volume'; import HistoryButton from './HistoryButton'; import CurrentDJ from './CurrentDJ'; c...
src/PanelContainer.js
billyryanwill/amplify
import React, { Component } from 'react'; import Playlist from './Playlist'; class PanelContainer extends Component { render() { return ( <main> <Playlist/> </main> ); } } export default PanelContainer;
src/widgets/dropdown/component.js
InseeFr/Pogues
import React from 'react'; import { WIDGET_DROPDOWN } from 'constants/dom-constants'; const { COMPONENT_CLASS, SELECT_CLASS } = WIDGET_DROPDOWN; const Dropdown = ({ onChange, value, options }) => ( <div className={COMPONENT_CLASS}> <select onChange={e => onChange(e.target.value)} value={value} ...
docs/src/app/components/pages/get-started/ServerRendering.js
nathanmarks/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import serverRenderingText from './serverRendering.md'; const ServerRendering = () => ( <div> <Title render={(previousTitle) => `Server Rendering - ${previousTitle}`} /> <MarkdownElemen...
node_modules/react-native/local-cli/templates/HelloWorld/index.ios.js
niukui/gitpro
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class HelloWorld extends Component { render() { return ( <View style={styles.containe...
src/pages/CommunityPage.js
Open-Seat-Philly/open-seat
import React from 'react'; const CommunityPage = () => ( <div className='community-page'> <h1>This is the community page.</h1> </div> ); export default CommunityPage;
node_modules/react-router/es6/Route.js
silky098/Youtube-React-Search
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement } from './RouteUtils'; import { component, components } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var func = _React$PropTypes.func; /** * A <Route> is use...
javascript/components/region-details/index.js
artyomtrityak/atlantis-pbem-online
import React from 'react'; const RegionDetailsComponent = (props) => { if (!props.details) { return null; } //TODO: change key and add styles return ( <div> <h3>{props.title}</h3> {props.details.map((line, i) => { return ( <div key={i}>{line}</div> ); })} ...
ampjsx/export.sparse.js
ampproject/amp-react-prototype
import React from 'react'; import SparseDoc from './src/stories/doc1.sparse'; import {hydrate} from 'react-dom'; // import {hydrate} from './src/tools/extract-doc'; console.log('QQQQ: index.sparse.js'); hydrate(<SparseDoc />, document.body);
src/svg-icons/av/equalizer.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvEqualizer = (props) => ( <SvgIcon {...props}> <path d="M10 20h4V4h-4v16zm-6 0h4v-8H4v8zM16 9v11h4V9h-4z"/> </SvgIcon> ); AvEqualizer = pure(AvEqualizer); AvEqualizer.displayName = 'AvEqualizer'; AvEqualizer...
modules/IndexLink.js
schnerd/react-router
import React from 'react' import Link from './Link' const IndexLink = React.createClass({ render() { return <Link {...this.props} onlyActiveOnIndex={true} /> } }) export default IndexLink
docs/app/Examples/elements/Image/Variations/ImageExampleFluid.js
clemensw/stardust
import React from 'react' import { Image } from 'semantic-ui-react' const ImageExampleFluid = () => ( <Image src='/assets/images/wireframe/image.png' fluid /> ) export default ImageExampleFluid
src/components/ProgressBar/ProgressBar.js
alopezitrs/ps-react-analo
import React from 'react'; import PropTypes from 'prop-types'; class ProgressBar extends React.Component {   getColor = (percent) => {     if (this.props.percent === 100) return 'green';     return this.props.percent > 50 ? 'lightgreen' : 'red';   } getWidthAsPercentOfTotalWidth = () => { return parseInt(this.p...
src/svg-icons/device/network-cell.js
IsenrichO/mui-with-arrows
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...
components/Tutorial/LineTutorial.stories.js
cofacts/rumors-site
import React from 'react'; import { LineTutorialDesktop, LineTutorialMobile } from './LineTutorial'; import { withKnobs } from '@storybook/addon-knobs'; export default { title: 'Tutorial/LineTutorial', component: 'LineTutorial', decorators: [withKnobs], }; export const Desktop = () => <LineTutorialDesktop />; ...
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js
masarakki/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components'; import Overlay from 'react-overlays/lib/Overlay'; import classNames from 'classnames'; import ImmutablePropTypes from ...
app/react-icons/fa/wheelchair.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaWheelchair extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m24.8 26.5l2.3 4.5q-1.3 4-4.7 6.5t-7.5 2.5q-3.5 0-6.5-1.7t-4.7-4.7-1.7-6....
node_modules/react-router/es6/Redirect.js
PanJ/SimplerCityGlide
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { formatPattern } from './PatternUtils'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.st...
src/app/components/auth/signin.js
rokbar/vivdchat
import React, { Component } from 'react'; import { Field, reduxForm } from 'redux-form'; import { connect } from 'react-redux' import { signinUser } from '../../actions'; import { RaisedButton, TextField, Paper } from 'material-ui'; import PersonIcon from 'material-ui/svg-icons/social/person'; import verticalAlignCente...
src/components/sub-components/CDN/CDN.js
theIYD/source-me
import React, { Component } from 'react'; import axios from 'axios'; class CDN extends React.Component { constructor(props) { super(props); this.handleChangeOption = this.handleChangeOption.bind(this); this.state = { data: [] }; } componentDidMount() { th...
src/components/ViewAppraisals.js
wiserl/appraisal-frontend
import React, { Component } from 'react'; import Appraisal from './AppraisalFormat'; export default class extends Component { constructor(props) { super(props); this.state = { appraisals: [] }; } componentDidMount() { fetch(`http://localhost:5000/appraisals/`) .then(response => respons...
packages/mineral-ui-icons/src/IconAirlineSeatReclineNormal.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconAirlineSeatReclineNormal(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Ic...
src/nav/StreamTabs.js
kunall17/zulip-mobile
/* @TODO flow */ import React from 'react'; import { Text } from 'react-native'; import { TabNavigator, TabBarTop } from 'react-navigation'; import { FormattedMessage } from 'react-intl'; import tabsOptions from '../styles/tabs'; import UnreadStreamsContainer from '../unread/UnreadStreamsContainer'; import Subscriptio...
KDReactNative/index.ios.js
csyibei/KDReactNative
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; var TabBar = require('./KDClass/KDTabbar'); var KDNav = require('./KDClass/KDNavigator'); var KDReactN...
internals/templates/appContainer.js
AK33M/scalable-react
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
examples/js/selection/default-select-table.js
dana2208/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
examples/complete/simple/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 }...
[JS-ES6][React] Raji client - second version/app/lib/routes.js
datyayu/cemetery
import React from 'react'; import {Router, Route, IndexRoute, Redirect} from 'react-router'; import App from './containers/App'; import NowPlaying from './containers/NowPlaying'; import Series from './containers/Series.js'; export const createRouter = (history) => <Router history={history}> <Route path="/" comp...
js/components/CSHeader.js
kilimondjaro/react-native-couchsurfing-app
// @flow import React, { Component } from 'react'; import { Platform, Text, TouchableOpacity, Image, View, StyleSheet } from 'react-native'; export type Item = { text?: string; icon?: Object; onPress?: () => void; }; export type Props = { title?: string; leftItem?: Array<Item>; rightItem?: Arr...
src/components/App.js
dggriffin/MPSOhhh
require('styles/App.css'); import React from 'react'; import darkBaseTheme from 'material-ui/styles/baseThemes/lightBaseTheme'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; const darkMuiTheme = getMuiTheme(darkBaseTheme); class AppCompon...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
IdealEnigma/idealenigma.github.io
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
lib/site/topic-layout/topic-article/comments/list/comment/content/component.js
lomegor/DemocracyOS-App
import React from 'react' import t from 't-component' import AutoGrowTextarea from 'lib/site/topic-layout/topic-article/comments/form/autogrow-textarea' export default function CommentContent (props) { let Content = ( <div className='text' dangerouslySetInnerHTML={{ __html: props.textHtml }} /> ) ...
components/ScoreCard.js
imsolost/Set-React
import React from 'react' import { StyleSheet, Text, View } from 'react-native' import Dimensions from 'Dimensions' export default ScoreCard = ( props ) => { return <Text style={styles.score}>Score: {props.score}</Text> } const styles = StyleSheet.create({ score: { color: 'red', fontSize: 22, alignSe...
platforms/server/controllers/serverRenderCtrl.js
wssgcg1213/koa2-react-isomorphic-boilerplate
/** * Created at 16/5/20. * @Author Ling. * @Email i@zeroling.com */ import React from 'react' import { RouterContext } from 'react-router' import { renderToString } from 'react-dom/server' import { Provider } from 'react-redux' import config from '../../common/config' import configureStore from '../../../app/store...
src/svg-icons/image/music-note.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageMusicNote = (props) => ( <SvgIcon {...props}> <path d="M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z"/> </SvgIcon> ); ImageMusicNote = pure(ImageMusicNote); ImageM...
src/svg-icons/device/signal-cellular-no-sim.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularNoSim = (props) => ( <SvgIcon {...props}> <path d="M18.99 5c0-1.1-.89-2-1.99-2h-7L7.66 5.34 19 16.68 18.99 5zM3.65 3.88L2.38 5.15 5 7.77V19c0 1.1.9 2 2 2h10.01c.35 0 .67-.1.96-.26l1.88 1.88 ...
assets/jqwidgets/demos/react/app/tabs/events/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTabs from '../../../jqwidgets-react/react_jqxtabs.js'; import JqxPanel from '../../../jqwidgets-react/react_jqxpanel.js'; class App extends React.Component { componentDidMount() { //Create event this.refs.myTabs.on('created', (...
src/components/common/svg-icons/image/control-point.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageControlPoint = (props) => ( <SvgIcon {...props}> <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-...
index.android.js
jcollum/kishar-nine
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class kalmaTen extends Component { render() { return ( <View style={styles.container}...
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js
clworld/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components'; import Overlay from 'react-overlays/lib/Overlay'; import classNames from 'classnames'; import ImmutablePropTypes from ...
src/components/UIShell/HeaderMenuItem.js
joshblack/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import { settings } from 'carbon-components'; import PropTypes from 'prop-types'; import React from 'react'; import Link, { LinkPropTypes } f...
src/client/app/components/app.js
JuMBoSLICE/JuMBo
import React, { Component } from 'react'; import {Router, Route, Link, IndexRoute, hashHistory, browserHistory} from 'react-router'; import Login from './login.js'; import Signup from './signup.js'; import styles from './../../style.css'; import Dashboard from './dashboard.js'; import ProjectCreator from './projectCrea...
src/svg-icons/communication/call-made.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCallMade = (props) => ( <SvgIcon {...props}> <path d="M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z"/> </SvgIcon> ); CommunicationCallMade = pure(CommunicationCallMade); CommunicationCallMade.displ...
src/components/catList.js
nytai/cats
import '../styles/main.scss'; import React, { Component } from 'react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; export const Cat = (props) => { const { id, fact, image, isHidden, byeSelf } = props; let item; if(!isHidden) { item = ( <li key={id} classNa...
ui/node_modules/react-bootstrap/src/ButtonToolbar.js
bpatters/eservice
import React from 'react'; import classSet from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const ButtonToolbar = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'button-toolbar' }; }, render() { let classes = this.getBsClassSet(); r...
src/js/components/widget/Graph.js
kukua/dashboard
import React from 'react' import ReactHighcharts from 'react-highcharts' import BaseWidget from './Base' // http://stackoverflow.com/a/17853889/1453912 ReactHighcharts.Highcharts.dateFormats = { W: function (timestamp) { var date = new Date(timestamp) var day = date.getUTCDay() == 0 ? 7 : date.getUTCDay() var d...
src/svg-icons/file/cloud-done.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileCloudDone = (props) => ( <SvgIcon {...props}> <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96...