path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
wrappers/html.js
dominictracey/dominictracey.com
import React from 'react' module.exports = React.createClass({ propTypes () { return { router: React.PropTypes.object, } }, render () { const post = this.props.route.page.data return ( <div className="markdown"> <h1 dangerouslySetInnerHTML={{ __html: post.title }} /> <...
src/js/pages/RegisterPage.js
nekuno/client
import { SOCIAL_NETWORKS_NAMES, FACEBOOK_SCOPE } from '../constants/Constants'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import FacebookButton from '../components/ui/FacebookButton'; import translate from '../i18n/Translate'; import connectToStores from '../utils/connectToStores'; i...
packages/mineral-ui-icons/src/IconInvertColorsOff.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 IconInvertColorsOff(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...ic...
client/ui/atoms/card.story.js
LestaD/InstaClone
/* eslint-disable react/prop-types */ import React from 'react' import { storiesOf } from '@storybook/react' import { Card } from './card' storiesOf('ui/atoms', module) .addWithJSX('Card', () => ( <Card>Simple content of card</Card> ))
app/routes.js
oeb25/colio
import React from 'react'; import { Route } from 'react-router'; import LandingContainer from './containers/LandingContainer'; import RoomContainer from './containers/RoomContainer'; import CreateRoom from './components/CreateRoom'; const routes = ( <Route> <Route path="/" component={LandingContainer}/> <Rou...
components/summary.js
dvzrd/gatsby-utool.io
import React from 'react'; import { prune } from 'underscore.string'; import { fixLinks } from 'utils'; const style = { summary: { display: 'block', position: 'relative', margin: '0 auto', color: '#555' } }; class Summary extends React.Component { summary(body) { const split = body.split('<hr>')...
src/svg-icons/av/add-to-queue.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvAddToQueue = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-7v2h-3v3h-2v-3H8v-2h3V7h2v3h3z"/> ...
pages/api/toolbar.js
cherniavskii/material-ui
import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './toolbar.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRoot(Page);
lib/Components/Current/Current.js
francylang/weathrly
import React from 'react'; import './Current.css'; const Current = (props) => { return ( <div className={`mobileCard ${props.colors}`}> <div className="topCard"> <h1 className="city">{props.weather.location}</h1> <h2 className="currentTemp"> {props.weather.current...
src/frontend/screens/Video/index.js
resummed/resummed
import React from 'react'; /** * Video by pexels.com: * https://videos.pexels.com/videos/birds-flying-over-industrial-area-569 */ const Video = () => ( <div> <video src={require('url-loader?limit=100000000!./video.mp4')} autoPlay loop /> </div> ); export default Video;
js/react/workspace.js
CANTUS-Project/vitrail
// -*- coding: utf-8 -*- // ------------------------------------------------------------------------------------------------ // Program Name: vitrail // Program Description: HTML/CSS/JavaScript user agent for the Cantus API. // // Filename: js/react/workspaces.js // Purpose: Th...
app/routes.js
FermORG/FermionJS
import React from 'react'; import { Switch, Route } from 'react-router'; import App from './containers/App'; import HomePage from './containers/HomePage'; import CorePage from './containers/CorePage'; export default () => ( <App> <Switch> <Route path="/core" component={CorePage} /> <Route path="/" co...
src/render-react.js
abramz/gulp-react-render
/*! Gulp Render React | MIT License */ import gutil from 'gulp-util'; import through from 'through2'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; /** * Requires a file containing a React component and create an instance of it * @param {String} filePath file path to the React component...
src/clincoded/static/libs/bootstrap/popover.js
ClinGen/clincoded
"use strict"; import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; // Display a popover that shows descriptive text content until the user dismisses it. // The typical format looks like: // // <PopOverComponent {...this.props}> // // Render JSX... // </PopOverComponent>...
8-css-inline/src/App.js
mariusz-malinowski/tutorial-react
import React, { Component } from 'react'; import initialState from './data'; import TodoList from './TodoList'; import TodoDetails from './TodoDetails'; import { createStore } from 'redux'; import { Provider } from 'react-redux'; import reducer from './reducer'; import createHistory from 'history/createBrowserHistory';...
app/setup.js
JohnKim/react-native-boilerplate
/** * * @flow */ import React, { Component } from 'react'; import { APP_ID, SERVER_URL } from 's5-env'; import { FacebookSDK } from 's5-util'; import Parse from 'parse/react-native'; import Relay from 'react-relay'; import { Provider } from 'react-redux'; import configureStore from './store/configureStore'; /* Ap...
js/BaseComponents/InfoBlock.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 *...
src/app/client.js
lmcjt37/kulor-reactify
import 'react-toolbox/lib/commons.scss'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.js'; ReactDOM.render(<App />, document.getElementById('app'));
src/Flags/Nigeria.js
runjak/css-flags
// @flow import React from 'react'; import LinearFlag from './LinearFlag'; import gradient from '../utils/gradient'; const green = '#008850'; const white = '#FFFFFF'; export default function Nigeria() { return ( <LinearFlag gradient={`to right, ${gradient([green, white, green])}`} /> ); }
src/components/Assets/Arrow.js
LifeSourceUA/lifesource.ua
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import svg from 'lib/svg'; @svg({ width: 8, height: 14 }) export default class Arrow extends Component { static propTypes = { color: PropTypes.string.isRequired }; render() { const { color } = this.props;...
popup/src/scripts/components/friends/LiveFriendVideoReplaysList.js
CaliAlec/ChromeIGStory
import React, { Component } from 'react'; import Toolbar from '@material-ui/core/Toolbar'; import Tooltip from '@material-ui/core/Tooltip'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; import ListItemText from '@material-ui/core/ListItemText'; import ListItemAvatar from ...
app/components/widget-list.js
svtizg/svtizg.github.io
import React from 'react'; const WidgetList = React.createClass({ render: function() { return ( <ul className="widget-list"> <li>Сообщение от пользователя 1</li> <li>Сообщение от пользователя 2</li> <li>Сообщение от пользователя 3</li> </ul> ); } }); export default Widg...
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js
Ryanaka/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components'; import Overlay from 'react-overlays/lib/Overlay'; import classNames from 'classnames'; import Immuta...
client/src/components/side_menu_button/SideMenuButton.js
thewizardplusplus/vk-group-stats
import React from 'react' import IconicButton from '../iconic_button/IconicButton' export default class SideMenuButton extends React.Component { // this name required by the AppBar component for a correct styles processing static muiName = 'IconButton' static propTypes = { iconStyle: React.PropTypes.object, ...
packages/enzyme-adapter-react-helper/src/ifReact.js
airbnb/enzyme
import React from 'react'; import { intersects } from 'semver'; export default function ifReact(range, yes, no) { if (typeof yes !== 'function') { throw new TypeError('"yes" must be a function'); } if (typeof no !== 'function') { throw new TypeError('"no" must be a function'); } return intersects(range, React.ve...
index.android.js
wellnine/maelstorm
import "./bin/index"; // /** // * 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 maelstorm extends Compone...
src/svg-icons/action/settings-input-component.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsInputComponent = (props) => ( <SvgIcon {...props}> <path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2....
src/components/common/NavBarLeftButton.js
jinqiupeter/mtsr
import React from 'react'; import {StyleSheet, Platform, View, Text, TouchableOpacity} from 'react-native'; import Icon from 'react-native-vector-icons/FontAwesome'; import {COLOR} from '../../config'; export default ({icon, text, children, onPress, containerStyle, iconStyle, textStyle}) => { if (children) { re...
src/chapters/04-porazdelitve-verjetnosti/01-funkcija-gostote/index.js
medja/ovs-prirocnik
import React from 'react'; import { createChapter } from 'components/chapter'; import Equation from 'components/equation'; const title = 'Funkcija gostote'; function Title(props) { return ( <span> { props.title }{' '} <Equation math="f(x)" /> </span> ); } function Cha...
demo/components/popup/PopupOptions.js
f0zze/rosemary-ui
import React from 'react'; import {Popup} from '../../../src'; import OptionsTable from '../../helper/OptionsTable'; export default () => { let propDescription = { attachment: { values: `Mandatory, One Of: top left, top center, top rig...
src/Parser/Druid/Restoration/Modules/NetherlightCrucibleTraits/NLCTraits.js
hasseboulen/WoWAnalyzer
import React from 'react'; import StatisticsListBox from 'Main/StatisticsListBox'; import CoreNLCTraits from "Parser/Core/Modules//NetherlightCrucibleTraits/NLCTraits"; import LightSpeed from "./LightSpeed"; import MasterOfShadows from "./MasterOfShadows"; class NLCTraits extends CoreNLCTraits { static dependencies...
web/src/routes/ExampleIndexPage.js
ZhuPeng/trackupdates
import React from 'react'; import { connect } from 'dva'; import styles from './ExampleIndexPage.css'; function ExampleIndexPage() { return ( <div className={styles.normal}> <h1 className={styles.title}>Yay! Welcome to dva!</h1> <div className={styles.welcome} /> <ul className={styles.list}> ...
src/Range/Range.js
nirhart/wix-style-react
import React from 'react'; import {children, optional, once} from '../Composite'; import Label from '../Label'; import Input from '../Input'; import RangeInputWithLabelComposite from '../Composite/RangeInputWithLabelComposite/RangeInputWithLabelComposite'; const Range = ({...props, children}) => ( <RangeInputWithLab...
src/svg-icons/maps/local-library.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalLibrary = (props) => ( <SvgIcon {...props}> <path d="M12 11.55C9.64 9.35 6.48 8 3 8v11c3.48 0 6.64 1.35 9 3.55 2.36-2.19 5.52-3.55 9-3.55V8c-3.48 0-6.64 1.35-9 3.55zM12 8c1.66 0 3-1.34 3-3s-1.34-3-3-3-...
index.ios.js
dddzg/app
/** * 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 app extends Component { render() { return ( <View style={styles.container}> ...
imports/api/administrativeAreas/administrativeAreas.js
howlround/worldtheatremap
// Meteor import { Mongo } from 'meteor/mongo'; import React from 'react'; import ReactSelect from 'react-select'; import { FormattedMessage } from 'react-intl'; import t from 'tcomb-form'; class AdministrativeAreasCollection extends Mongo.Collection { // insert(profile, callback) { // } // remove(selector, call...
examples/src/components/examples/RightToLeft.js
rackt/react-tabs
import React from 'react'; import ExampleItem from '../ExampleItem'; const code = `const Component = ( <div dir="rtl"> <Tabs direction={'rtl'}> <TabList> <Tab>כותרת</Tab> <Tab disabled>כותרת כבויה</Tab> <Tab>כותרת שנייה</Tab> <Tab>כותרת שלישית</Tab> </TabList> <T...
src/AppNavigator.js
mstmustisnt/wishlist
/* * * @providesModule AppNavigator * * */ import React from 'react'; import { observable, action } from 'mobx'; import { observer, Provider } from 'mobx-react'; import { StackNavigator } from 'react-navigation'; import { Root, Content } from 'native-base'; import appStyles from 'appStyles'; import ManageWishItemScre...
src/backward/Widgets/Title.js
sampsasaarela/NativeBase
import React from 'react'; import { Platform, View } from 'react-native'; import { connectStyle } from 'native-base-shoutem-theme'; import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames'; import NativeBaseComponent from '../Base/NativeBaseComponent'; import { Text } from './Text'; import computeProps from ...
src/utils/createContextWrapper.js
tonylinyy/react-bootstrap
import React from 'react'; /** * Creates new trigger class that injects context into overlay. */ export default function createContextWrapper(Trigger, propName) { return function (contextTypes) { class ContextWrapper extends React.Component { getChildContext() { return this.props.context; }...
src/components/Navbar/Navbar/index.js
easingthemes/easingthemes.github.io
/** * * Navbar * */ import React from 'react'; import styles from './styles.global.scss'; import Logo from 'components/navbar/Logo'; import Navigation from 'components/navbar/Navigation'; class Navbar extends React.Component { //---------------------------------------------------------------------------------------...
src/server.js
montemishkin/mishkin_com
// third party imports import express from 'express' import compression from 'compression' import logger from 'morgan' import favicon from 'serve-favicon' import serveStatic from 'serve-static' import React from 'react' import {renderToString} from 'react-dom/server' import Helmet from 'react-helmet' // local imports i...
src/App.js
tal87/operationcode_frontend
import React, { Component } from 'react'; import { Route, Router } from 'react-router'; import ReactGA from 'react-ga'; import createHistory from 'history/createBrowserHistory'; import ScrollToTop from 'shared/components/scrollToTop/scrollToTop'; import Home from './scenes/home/home'; const history = createHistory(); ...
src/view/private/index.js
coma/spotify
import React from 'react'; import style from './index.css'; import Top from './top'; import Nav from './nav'; class PrivateView extends React.Component { render () { return ( <div className={ style.main }> <Top/> <div className={ style.body }> ...
src/components/Footer/Footer.js
DaveSpringer/bmg-rap-sheets
import React from 'react' import './style/Footer.scss' class Footer extends React.Component { render () { return ( <div className='utility-belt-footer footer hidden-print'> <p>&copy; TM &copy; DC Comics. WB SHIELD: TM; Warner Bros. Entertainment. Inc. (s17). Copyright © 2017 DC Comics. All ch...
src/components/pages/preferences/Images.js
DragonLegend/game
import React from 'react'; import ImagesForm from '../../preferences/ImagesForm'; export default () => ( <div> <h2>Images</h2> <ImagesForm /> </div> );
writeExampleWebpack2Middleware/src/js/App.js
fengnovo/webpack-react
import React from 'react' import Header from './containers/Header' import Body from './containers/Body' import Footer from './containers/Footer' class App extends React.Component { constructor (props) { super(props) } render () { return <div> <Header /> <Body /> ...
src/components/article/LeadingImage.js
garfieldduck/twreporter-react
/* eslint no-unused-vars:0 */ 'use strict' import React from 'react' // eslint-disable-line import ReactDOM from 'react-dom' import classNames from 'classnames' import styles from './LeadingImage.scss' import { getImageSrcSet, replaceStorageUrlPrefix } from '../../utils/' // lodash import get from 'lodash/get' const...
src/schema/test.dataSchema.js
RodgerLai/nodejs-nedb-excel
import React from 'react'; import {Icon} from 'antd'; // 定义某个表的dataSchema, 结构跟querySchema很相似, 见下面的例子 // 注意: 所有的key不能重复 // 这个配置不只决定了table的schema, 也包括用于新增/删除的表单的schema module.exports = [ { key: 'id', // 传递给后端的key title: 'ID', // 前端显示的名字 // 其实dataType对前端的意义不大, 更重要的是生成后端接口时要用到, 所以要和DB中的类型一致 // 对java...
examples/counter/containers/Root.js
yz89/redux
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import CounterApp from './CounterApp'; import configureStore from '../store/configureStore'; const store = configureStore(); export default class Root extends Component { render() { return ( <Provider store={store}> ...
lib/withData.js
wzalazar/spotify
import React from 'react' import PropsTypes from 'prop-types' import { Provider } from 'react-redux' import initStore from './initStore' import { get } from 'lodash' import ip from 'ip' export default (Component) => ( class extends React.Component { static propTypes = { initialState: PropsTypes.object, ...
packages/material-ui-icons/legacy/SignalCellularConnectedNoInternet3BarSharp.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M22 8V2L2 22h16V8h4z" /><path d="M18 22V6L2 22h16zm2-12v8h2v-8h-2zm0 12h2v-2h-2v2z" /></React.Fragment> , 'SignalCellularConnectedNoInternet3BarSharp');
examples/huge-apps/app.js
shunitoh/react-router
import React from 'react' import { render } from 'react-dom' import { Router, browserHistory } from 'react-router' import withExampleBasename from '../withExampleBasename' import './stubs/COURSES' const rootRoute = { childRoutes: [ { path: '/', component: require('./components/App'), childRoutes: [ ...
app/App.js
mastermel/wwg_battle_tool
import React, { Component } from 'react'; import { createStore } from 'redux'; import { Provider, connect } from 'react-redux'; import { Router, Scene, ActionConst } from 'react-native-router-flux'; import { appReducer } from './Reducers/index'; import { navColor, font } from './Shared/Styles'; import Home from './S...
docs/app/Examples/elements/Reveal/Content/index.js
Rohanhacker/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const RevealContentExamples = () => ( <ExampleSection title='Content'> <ComponentExample title='Visible Content' des...
components/auth/Forget.js
digithun/jamplay-nap
import React from 'react' import PropTypes from 'prop-types' import { gql, graphql } from 'react-apollo' import userProfile from '../userProfile.gql' const Forget = ({ forget }) => { const handleSubmit = e => { e.preventDefault() let email = e.target.elements.email.value if (email === '') { window...
src/gifPreview/index.js
SodhanaLibrary/react-examples
import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import App from './app'; render( <AppContainer><App/></AppContainer>, document.querySelector("#app")); if (module.hot) { module.hot.accept('./app.js', () => { const App = require('./app.js').default; ...
src/main.js
ryanturner7/portfolio
import React from 'react' import ReactDom from 'react-dom' import {BrowserRouter, Route} from 'react-router-dom' class App extends React.Component { // constructor constructor(props){ super(props) this.state = { content: '', } this.getApp = this.getApp.bind(this) } //hooks componentDi...
app/utils.js
MichelHalmes/sankey
import React from 'react'; import request from 'superagent'; var MIN_LINK_VALUE = 50; function loadData(path) { request .get(path) .end((err, res) => { if (err) { console.log(err); } var links = res.body.links; var nodes = res.body.nodes.map((node, i) => { if (!node.node_id) { nod...
src/fields/InputField.ios.js
MichaelCereda/react-native-form-generator
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import ReactNative from 'react-native'; import {InputComponent} from '../lib/InputComponent'; const {StyleSheet} = ReactNative; export class InputField extends React.Component{ handleValidation(isValid, validationErrors){ this.valid =...
node_modules/react-bootstrap/es/Pagination.js
premcool/getmydeal
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
app/src/components/Synth/PianoKeyNote.js
civa86/web-synth
import React from 'react'; const PianoKeyNote = (props) => { const { note, semiNote, playNoteHandler, stopNoteHandler, playingVoices, octave } = props; function getClassName (color, key) { const voiceLabel = key + '-' + octave; let resu...
client/About/Social.js
PicDrop/PicDrop
import React from 'react'; import Github from './Github'; import LinkedIn from './LinkedIn'; class Social extends React.Component { render() { return ( <div> <LinkedIn linkedIn={this.props.linkedIn}/> <Github github={this.props.github}/> </div> ); } } export default Social;
node_modules/expo/src/Modal/ModalHost.js
RahulDesai92/PHR
/* @flow */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View, StyleSheet } from 'react-native'; import PureContainer from './PureContainer'; type Layout = { width: number, height: number, }; type LayoutEvent = { nativeEvent: { layout: Layout, }, }; type Rendere...
src/index.js
bkkeye/redux_carouse
/** * Created by u on 2017/5/20. */ import React from 'react'; import ReactDOM from 'react-dom'; import {createStore,applyMiddleware} from 'redux'; import {Provider} from "react-redux"; import thunk from 'redux-thunk'; import Carousel from "./components/Carousel.jsx"; import reducer from "./reducers"; const store =...
src/components/SplitIt/SplitDashboard.js
tfrankie88/splitzi_react
import React, { Component } from 'react'; import NavigationSplitIt from '../Navigation/NavigationSplitIt'; import RestaurantSearch from './RestaurantSearch'; import MenuList from './MenuList'; class SplitDashboard extends Component { constructor() { super(); this.state = { menu: [], cart: 0 ...
js/example-work.js
sithadmin/my-portfolio
import React from 'react'; import ExampleWorkModal from './example-work-modal'; class ExampleWork extends React.Component { constructor(props) { super(props); this.state = { 'modalOpen': false, 'selectedExample': this.props.work[0] }; this.openModal = this....
src/withControl.js
andrewkshim/react-animatronics
// @flow /** * @module withControl */ import React from 'react' import hoistNonReactStatics from 'hoist-non-react-statics' import type { ComponentType } from 'react' import ContextTypes from './internal/context-types' import Control from './Control' import { IS_PRODUCTION } from './internal/constants' import { ...
examples/universal/client/index.js
keyanzhang/redux
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import configureStore from '../common/store/configureStore' import App from '../common/containers/App' const initialState = window.__INITIAL_STATE__ const store = configureStore(initialState) con...
app/javascript/mastodon/components/modal_root.js
anon5r/mastonon
import React from 'react'; import PropTypes from 'prop-types'; export default class ModalRoot extends React.PureComponent { static propTypes = { children: PropTypes.node, onClose: PropTypes.func.isRequired, }; state = { revealed: !!this.props.children, }; activeElement = this.state.revealed ? ...
app/javascript/mastodon/features/ui/components/embed_modal.js
tootsuite/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { defineMessages, FormattedMessage, injectIntl } from 'react-intl'; import api from 'mastodon/api'; import IconButton from 'mastodon/components/icon_button'; const messages = defin...
docs/app/Examples/collections/Breadcrumb/Variations/BreadcrumbExampleMassiveSize.js
clemensw/stardust
import React from 'react' import { Breadcrumb } from 'semantic-ui-react' const BreadcrumbExampleMassiveSize = () => ( <Breadcrumb size='massive'> <Breadcrumb.Section link>Home</Breadcrumb.Section> <Breadcrumb.Divider icon='right chevron' /> <Breadcrumb.Section link>Registration</Breadcrumb.Section> <...
src/shared/components/idme/idme.js
tal87/operationcode_frontend
import React, { Component } from 'react'; import config from 'config/environment'; import troopImage from 'images/Troop.png'; import styles from './idme.css'; class Idme extends Component { idMe = () => { window.open(`${config.idmeOAuthUrl}?client_id=${config.idmeClientId}&redirect_uri=${config.host}/profile/ver...
jenkins-design-language/src/js/components/material-ui/svg-icons/maps/pin-drop.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const MapsPinDrop = (props) => ( <SvgIcon {...props}> <path d="M18 8c0-3.31-2.69-6-6-6S6 4.69 6 8c0 4.5 6 11 6 11s6-6.5 6-11zm-8 0c0-1.1.9-2 2-2s2 .9 2 2-.89 2-2 2c-1.1 0-2-.9-2-2zM5 20v2h14v-2H5z"/> </SvgIcon> ); MapsPinDrop.displayName = 'MapsPi...
actor-apps/app-web/src/app/components/activity/UserProfileContactInfo.react.js
Jaeandroid/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class UserProfileContactInfo extends React.Component { static propTypes = { phones: React.PropTypes.arr...
src/Interpolate.js
Firfi/meteor-react-bootstrap
// https://www.npmjs.org/package/react-interpolate-component // TODO: Drop this in favor of es6 string interpolation import React from 'react'; import ValidComponentChildren from './utils/ValidComponentChildren'; const REGEXP = /\%\((.+?)\)s/; const Interpolate = React.createClass({ displayName: 'Interpolate', ...
js/jqwidgets/demos/react/app/datatable/serverpaging/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDataTable from '../../../jqwidgets-react/react_jqxdatatable.js'; class App extends React.Component { render() { let source = { dataType: 'json', dataFields: [ { name: 'Shi...
src/containers/Asians/TabControls/PreliminaryRounds/EnterRoundResults/Ballots/Instance/InstanceTabs.js
westoncolemanl/tabbr-web
import React from 'react' import { connect } from 'react-redux' import Tabs, { Tab } from 'material-ui/Tabs' import AppBar from 'material-ui/AppBar' import withStyles from 'material-ui/styles/withStyles' const styles = theme => ({ indicator: { backgroundColor: '#ffffff' } }) export default connect(mapStateT...
frontend/src/layouts/CoreLayout/CoreLayout.js
qurben/mopidy-jukebox
import React from 'react' import Header from '../../components/Header' import classes from './CoreLayout.scss' import '../../styles/core.scss' export const CoreLayout = ({ children }) => ( <div className='container text-center'> <Header/> <div className={classes.mainContainer}> {children} </div> ...
src/pages/about/index.js
joefraley/ratticusscript
'use strict' import Helmet from 'react-helmet' import React from 'react' const ratPictures = require.context('./assets', true, /rat/) export const Thumbnail = ({ alt, link, source }) => <a href={ link } target="_"> <img src={ require(`./${source}`) } alt={ alt }></img> </a> export const AboutPage = props => <secti...
src/app/components/DevTools/index.js
omrilitov/react-universal
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 /> </...
assets/javascripts/kitten/components/structure/cards/horizontal-project-card/index.js
KissKissBankBank/kitten
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import styled from 'styled-components' import { pxToRem } from '../../../../helpers/utils/typography' import COLORS from '../../../../constants/colors-config' import { ScreenConfig } from '../../../../constants/screen-confi...
node_modules/react-bootstrap/es/ModalBody.js
geng890518/editor-ui
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
app/routes.js
yaolei/Node-Clound
import React from 'react'; import ReactDOM from 'react-dom'; import { HashRouter, Route, Link } from 'react-router-dom'; import Navbar from './components/Navbar'; import App from './components/App'; import Home from './components/Home'; import FooterBar from './components/Footer'; import ChatBar from './componen...
src/.stories/index.js
clauderic/react-infinite-calendar
/* eslint-disable sort-keys */ import React from 'react'; import {addDecorator, storiesOf} from '@kadira/storybook'; import InfiniteCalendar, { Calendar, defaultMultipleDateInterpolation, withDateSelection, withKeyboardSupport, withMultipleDates, withRange, } from '../'; import styles from './stories.scss';...
src/components/App.js
TorinoMeteo/tm-realtime-map
import React from 'react' import { browserHistory, Router } from 'react-router' import { Provider } from 'react-redux' import PropTypes from 'prop-types' class App extends React.Component { static propTypes = { store: PropTypes.object.isRequired, routes: PropTypes.array.isRequired } shouldComponentUpdat...
packages/react-dom/src/server/ReactPartialRenderer.js
syranide/react
/** * Copyright (c) 2013-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. * * @flow */ import type {ReactElement} from 'shared/ReactElementType'; import type { ReactProvider, ReactConsumer, ReactContext, }...
packages/bonde-admin/src/pages/app.js
ourcities/rebu-client
import React from 'react' import { BrowserRouter as Router, Route, Switch } from 'react-router-dom' import DevTools from '@/components/dev-tools' import '@/styles/main.scss' import { TechnicalIssues } from '@/components/error/index' import { ZendeskWidget } from '@/components/external-services' import { GoogleFontsLoad...
src/WorkWeek.js
intljusticemission/react-big-calendar
import PropTypes from 'prop-types' import React from 'react' import Week from './Week' import TimeGrid from './TimeGrid' function workWeekRange(date, options) { return Week.range(date, options).filter( d => [6, 0].indexOf(d.getDay()) === -1 ) } class WorkWeek extends React.Component { render() { let { ...
project-setup/libs/react-router/src/index.js
kasiriveni/practice
import React from 'react'; import {render} from 'react-dom'; import { BrowserRouter as Router, Route, Link } from "react-router-dom"; import Hello from './components/welcome'; import {Home,About,Topics} from './components/menu'; const root =document.getElementById("root"); render( <Router> <...
docs/src/app/components/pages/discover-more/Community.js
frnk94/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import communityText from './community.md'; const Community = () => ( <div> <Title render={(previousTitle) => `Community - ${previousTitle}`} /> <MarkdownElement text={communityText} /> ...
src/routes/bbs/Category/index.js
pmg1989/dva-admin
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'dva' import { checkPower } from 'utils' import { ADD, UPDATE, DELETE } from 'constants/options' import CategoryList from './List' import CategorySearch from './Search' import CategoryModal from './ModalForm' function Category ({ loca...
src/views/hr-view/components/ul.js
vynogradskyi/resume
import React from 'react'; import styles from 'css-modules/hr-view/ul.scss'; import {li_types as types} from "appConstants"; import classnames from 'classnames'; //components import Li from './li'; export default ({points, type, className}) => { return ( <ul className={classnames(styles.ul, className || ...
src/js/sections/Title1.js
BavoG/onesupportdocu
import React from 'react'; import classnames from 'classnames'; import Headline from 'grommet/components/Headline'; import Box from 'grommet/components/Box'; import InfographicSection from '../components/InfographicSection'; import PlatformAndroid from 'grommet/components/icons/base/PlatformAndroid'; import Anchor f...
client/src/react/journal/Journal.js
charlesj/Apollo
import React from 'react' import { connect, } from 'react-redux' import MarkdownRenderer from 'react-markdown-renderer' import PropTypes from 'prop-types' import { journalActions, } from '../../redux/actions' import { journalSelectors, } from '../../redux/selectors' import { NotifySuccess, } from '../../services/notifi...
src/containers/DevToolsWindow.js
fforres/coworks_client_side
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; export default createDevTools( <LogMonitor /> );
src/svg-icons/maps/local-cafe.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalCafe = (props) => ( <SvgIcon {...props}> <path d="M20 3H4v10c0 2.21 1.79 4 4 4h6c2.21 0 4-1.79 4-4v-3h2c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2zm0 5h-2V5h2v3zM2 21h18v-2H2v2z"/> </SvgIcon> ); MapsLocalCa...
setup/src/universal/features/user/auth/components/ResetPasswordForm/index.js
ch-apptitude/goomi
/** * * ResetPasswordForm * */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Form } from 'react-form'; import { Row, Col } from 'react-flexbox-grid'; import Theme from 'assets/theme'; import Box from 'features/common_ui/components/Box'; import { GreenButton } from 'features/co...
examples/todomvc/index.js
wong2/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; import 'todomvc-app-css/index.css'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} ...
src/renderer/components/TitleBarShim.js
digidem/ecuador-map-editor
import React from 'react' import { remote } from 'electron' import styled from 'styled-components' const TitleBarArea = styled.div` position: relative; height: 22px; ` // Create a space for MacOS title bar buttons on a frameless Window const TitleBarShim = () => { const win = remote.getCurrentWindow() const t...