path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
examples/huge-apps/routes/Course/components/Course.js
ThibWeb/react-router
import React from 'react'; import Dashboard from './Dashboard'; import Nav from './Nav'; var styles = {}; styles.sidebar = { float: 'left', width: 200, padding: 20, borderRight: '1px solid #aaa', marginRight: 20 }; class Course extends React.Component { render () { let { children, params } = this.pro...
src/routes.js
toddlemoine/tasks
import React from 'react'; import { IndexRoute, Route } from 'react-router'; import App from './components/App'; import CurrentContainer from './components/CurrentContainer'; import TaskViewerContainer from './components/TaskViewerContainer'; const routes = ( <Route component={App} path="/"> <IndexRoute compone...
node_modules/node_modules/recompose/build/Recompose.js
SerendpityZOEY/Fixr-RelevantCodeSearch
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["Recompose"] = facto...
src/js/routes/login.js
adregan/notes
import React from 'react'; import LoginForm from '../components/loginForm'; import Logo from '../components/logo'; import { startDemo } from '../actions/demo'; import { connect } from 'react-redux'; import history from './history'; const Login = ({dispatch}) => { return ( <div> <Logo color="light" classNam...
src/js/modules/ReadingEntitiesD3V4.js
fredyagomez/reactjs-D3-V4-grommet
import React from 'react'; import * as d3 from 'd3'; import DiagramBox from './DiagramBox'; import DiagramTitle from './DiagramTitle'; import DiagramLine from './DiagramLine'; import DiagramRelationship from './DiagramRelationship'; import DiagramAttribute from './DiagramAttribute'; import Table from 'grommet/...
app/javascript/mastodon/features/status/components/action_bar.js
mosaxiv/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import IconButton from '../../../components/icon_button'; import ImmutablePropTypes from 'react-immutable-proptypes'; import DropdownMenuContainer from '../../../containers/dropdown_menu_container'; import { defineMessages, injectIntl } from 'react-intl'; i...
node_modules/react-bootstrap/es/SplitButton.js
xuan6/admin_dashboard_local_dev
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from...
docs/src/Code.js
cristovao-trevisan/react-plotter
import React from 'react' import SyntaxHighlighter from 'react-syntax-highlighter' import { docco } from 'react-syntax-highlighter/dist/styles' const Code = ({children}) => { return ( <div> <SyntaxHighlighter language='javascript' style={docco}> {children} </SyntaxHighlighter> </div> ) ...
src/components/wrapper/decorator.js
chuckharmston/testpilot-contribute
import React from 'react'; import { addDecorator } from '@kadira/storybook'; import { Width, Wrapper } from './index'; export const wrapper = (extraClass = 'default', innerStyles = {}) => { return story => ( <Wrapper extraClass={extraClass} innerStyles={innerStyles}> {story()} </Wrapper> ); };
src/modules/about-maizuo/community/index.js
skydaya/react-sell
/** * Created by dllo on 17/8/29. */ import React from 'react' import ReactDOM from 'react-dom' import App from './app' ReactDOM.render( <App />, document.getElementById('community') )
src/message/MessageListLoading.js
nashvail/zulip-mobile
/* @flow */ import React from 'react'; import { StyleSheet, ScrollView } from 'react-native'; import MessageLoading from '../message/MessageLoading'; const styles = StyleSheet.create({ list: { flexGrow: 1, justifyContent: 'space-around', }, }); export default () => ( <ScrollView contentContainerStyle={...
fields/types/localfile/LocalFileField.js
nickhsine/keystone
import Field from '../Field'; import React from 'react'; import ReactDOM from 'react-dom'; import { Button, FormField, FormInput, FormNote } from 'elemental'; module.exports = Field.create({ shouldCollapse () { return this.props.collapse && !this.hasExisting(); }, fileFieldNode () { return ReactDOM.findDOMNod...
app/components/Gallery.js
cdiezmoran/AlphaStage-desktop
// @flow import React, { Component } from 'react'; import Slider from 'react-slick'; class Gallery extends Component { props: { images: Array<string>, videos: Array<string> } render() { const { images, videos } = this.props; if (images.length === 0 && videos.length === 0) { return <p>Did n...
js/src/decorators/HashTag/index.js
understory-dev/react-draft-wysiwyg
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Entity } from 'draft-js'; import classNames from 'classnames'; import styles from './styles.css'; // eslint-disable-line no-unused-vars class Hashtag { constructor(config) { this.className = config.className; this.hashCha...
ReduxLearn/src/containers/App.js
MisterZhouZhou/ReactNativeLearing
import React, { Component } from 'react'; import { View, Text, Navigator } from 'react-native'; import { StackNavigator } from 'react-navigation'; import LoginPage from '../pages/LoginPage' import MainPageView from '../pages/MainPage' export default RootNavigation = StackNavigator({ Login: {screen: LoginPage},...
scripts/index.js
JJVvV/reactstart
import React from 'react'; import App from './App'; React.render(<App />, document.getElementById('root'));
springboot/GReact/src/main/resources/static/app/routes/forms/containers/BootstrapValidation.js
ezsimple/java
import React from 'react' import {Stats, BigBreadcrumbs, WidgetGrid, JarvisWidget} from '../../../components' import MovieForm from '../components/bootstrap-validation/MovieForm' import TogglingForm from '../components/bootstrap-validation/TogglingForm' import AttributeForm from '../components/bootstrap-validation/A...
app/components/navbar/login-modal/SubmitButton.js
OldFresco/web-app-kiwwi
import React, { Component } from 'react'; import FlatButton from 'material-ui/FlatButton'; class SubmitButton extends Component { constructor(props) { super(props); this.muiName = 'FlatButton'; } render() { return ( <FlatButton hoverColor = {'lavenderblush'} ...
techCurriculum/ui/solutions/4.8/src/components/TextInput.js
AnxChow/EngineeringEssentials-group
/** * Copyright 2017 Goldman Sachs. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
test/test_helper.js
chavisclark/ReactReduxMiddlewares
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
src/docs/examples/Label/ExampleOptional.js
StudentOfJS/ps-react-rod
import React from 'react'; import Label from 'ps-react-rod/Label'; /** Optional label */ export default function ExampleOptional() { return <Label htmlFor="test" label="test" /> }
src/js/components/button/index.js
JetMixTech/CallBack
import React from 'react'; import PropTypes from 'prop-types'; import CN from 'classnames'; import styles from 'styles/blocks/button'; import { Icon } from 'js/components/ui'; const Button = ({ icon, text, view, theme, onClick, disabled }) => { const buttonCN = CN(styles.button, styles[view], styles[theme], { ...
src/docs/examples/TextInput/ExampleOptional.js
chadacious/ps-react-chadacious
import React from 'react'; import TextInput from 'ps-react-chadacious/TextInput'; /** Optional TextBox */ export default class ExampleOptional extends React.Component { render() { return ( <TextInput htmlId="example-optional" label="First Name" name="firstname" on...
docs/app/Examples/elements/Image/Variations/index.js
aabustamante/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import { Message } from 'semantic-ui-react' const ImageVariationsExamples = () => ( <ExampleSection title='Variations'> <Compone...
src/client.js
trueter/react-redux-universal-hot-example
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import createStore from './redux/create'; import ApiClient from './helpers/ApiClient'; import io from 'socket.io-client'; import...
client/views/admin/import/ImportOperationSummary.stories.js
VoiSmart/Rocket.Chat
import { Table } from '@rocket.chat/fuselage'; import React from 'react'; import ImportOperationSummary from './ImportOperationSummary'; export default { title: 'admin/import/ImportOperationSummary', component: ImportOperationSummary, decorators: [ (fn) => ( <Table> <Table.Body>{fn()}</Table.Body> </Ta...
examples/src/components/StatesField.js
peterKaleta/react-select
import React from 'react'; import Select from 'react-select'; const STATES = require('../data/states'); var id = 0; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var StatesField = React.createClass({ displayName: 'StatesField', p...
docs/app/Examples/collections/Grid/Variations/GridExampleStretchedEqual.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Grid, Image, Segment } from 'semantic-ui-react' const GridExampleStretchedEqual = () => ( <Grid columns='equal'> <Grid.Row stretched> <Grid.Column> <Segment>1</Segment> <Segment>2</Segment> </Grid.Column> <Grid.Column width={6}> <Segmen...
modules/IndexRoute.js
migolo/react-router
import React from 'react' import invariant from 'invariant' import warning from 'warning' import { createRouteFromReactElement } from './RouteUtils' import { component, components, falsy } from './PropTypes' const { bool, func } = React.PropTypes /** * An <IndexRoute> is used to specify its parent's <Route indexRout...
app/javascript/mastodon/features/ui/components/column_link.js
TootCat/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Link from 'react-router/lib/Link'; const ColumnLink = ({ icon, text, to, href, method, hideOnMobile }) => { if (href) { return ( <a href={href} className={`column-link ${hideOnMobile ? 'hidden-on-mobile' : ''}`} data-method={method}> ...
src/mixin.js
btd/react-intl
/* jshint esnext:true */ import React from 'react'; import IntlMessageFormat from 'intl-messageformat'; import IntlRelativeFormat from 'intl-relativeformat'; import createFormatCache from 'intl-format-cache'; // ----------------------------------------------------------------------------- var typesSpec = { loca...
src/components/Types/Text.js
jcgertig/react-struct-editor
import React from 'react' import BasicType from './BasicType' import { isString } from 'lodash' class TextType extends BasicType { constructor() { super() this.type = 'Text' } render() { return ( <div style={{ marginTop: '25px' }}> <label style={{ marginBottom: 10 }} className={this....
app/containers/HomePage/index.js
Frai/Events
/* * HomePage * * This is the first thing users see of our App, at the '/' route */ import React from 'react'; import Helmet from 'react-helmet'; import { FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { makeSelectRepos, mak...
shared/containers/userBio.container.js
Mr-Antivirus/Riur
/** * Copyright 2016-present, Dennis Norton. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @providesModule userBio.container */ 'use strict'; import React, { Component } from 'react'; import PropTypes fr...
client/modules/Post/__tests__/components/PostList.spec.js
jotamaggi/react-calendar-app
import React from 'react'; import test from 'ava'; import { shallow } from 'enzyme'; import PostList from '../../components/PostList'; const posts = [ { name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: 'f34gb2bh24b24b2', content: "All cats meow 'mern!'" }, { name: 'Mayank', title: 'Hi Mern', slug: ...
public/js/components/admin/feedback/timeline.react.js
rajikaimal/Coupley
/** * Created by Isuru 1 on 07/02/2016. */ import React from 'react'; import Table from 'material-ui/lib/table/table'; import TableHeaderColumn from 'material-ui/lib/table/table-header-column'; import TableRow from 'material-ui/lib/table/table-row'; import TableHeader from 'material-ui/lib/table/table-header'; import...
src/svg-icons/social/school.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSchool = (props) => ( <SvgIcon {...props}> <path d="M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z"/> </SvgIcon> ); SocialSchool = pure(SocialSchool); SocialSchool.displayNa...
views/Login.js
joan17cast/Enigma
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ 'use strict'; import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, TouchableHighlight, TextInput } from 'react-native'; import { StackNavigator } from 'react-navigation'; import * as f...
app/javascript/mastodon/features/compose/containers/sensitive_button_container.js
mecab/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import TextIconButton from '../components/text_icon_button'; import { changeComposeSensitivity } from '../../../actions/compose'; import Motion from 'react-motion/lib/Motion'; import spring from 'react-motion/lib/sprin...
client/pages/UserPosts/UserPosts.js
jkettmann/universal-react-relay-starter-kit
import React from 'react' import PropTypes from 'prop-types' import { routerShape } from 'found/lib/PropTypes' import { graphql } from 'react-relay' import { paginationContainer } from 'relay-compose-test' import { compose, flattenProp, withHandlers, withProps } from 'recompose' import PostList from '../../components/...
components/catalog-preview.js
sgmap/inspire
import React from 'react' import PropTypes from 'prop-types' import {translate} from 'react-i18next' import {get} from 'lodash' import WarningIcon from 'react-icons/lib/fa/exclamation-triangle' import {isObsolete} from '../lib/catalog' import Link from './link' import HarvestStatus from './harvest-status' import Cou...
src/svg-icons/editor/attach-file.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorAttachFile = (props) => ( <SvgIcon {...props}> <path d="M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2...
node_modules/react-router/es6/RouterContext.js
CallumRocks/ReduxSimpleStarter
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; var _extends = Object.assign || function (target) { for (var i = 1; i < argum...
pages/blog/test-article-two.js
b1alpha/sdj
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; export default class extends Component { render() { return ( <div> <h1>Test Article 2</h1> <p>Co...
app/main.js
cerebral/cerebral-reference-app
import React from 'react'; import ReactDOM from 'react-dom'; import controller from './controller.js'; import {Container} from 'cerebral-view-react'; import Router from 'cerebral-module-router'; import Http from 'cerebral-module-http'; import Recorder from 'cerebral-module-recorder'; import Devtools from 'cerebral-modu...
src/Label.js
jesenko/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import bootstrapUtils, { bsStyles, bsClass } from './utils/bootstrapUtils'; import { State, DEFAULT, PRIMARY } from './styleMaps'; @bsClass('label') @bsStyles(State.values().concat(DEFAULT, PRIMARY), DEFAULT) class Label extends React.Component { rende...
examples/huge-apps/routes/Calendar/components/Calendar.js
tikotzky/react-router
import React from 'react'; class Calendar extends React.Component { render () { return ( <div> <h2>Calendar</h2> </div> ); } } export default Calendar;
src/js/components/RadioButton/stories/Simple.js
HewlettPackard/grommet
import React from 'react'; import { Box, Button, RadioButton } from 'grommet'; export const Simple = () => { const [selected, setSelected] = React.useState(); return ( <Box align="center" pad="large" gap="large"> <RadioButton label="option 1" name="name" value="option 1" ...
src/debug/debug.js
croy-kronos/fna-chrome-plugin
import React from 'react' import ScriptInjector from '../helpers/Injector'; import { Button, Panel } from 'react-bootstrap'; class DebugComponent extends React.Component { _toggleDebug() { const injector = new ScriptInjector(); injector.injectFromFile("./debug/injects/toggleDebug.js"); } render() { return ( ...
src/components/Avatar/Avatar.js
Landish/react-spectre-css
import React from 'react'; import classNames from 'classnames'; import { string, oneOf } from 'prop-types'; const Avatar = ({ source, size, icon, initials, color, ...rest }) => { return ( <figure style={{ background: color }} data-initial={initials} className={classNames({ avatar: true,...
src/common/components/Routes.js
17Q4MX2hmktmpuUKHFuoRmS5MfB5XPbhod/dropzone
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './App'; import DashboardPage from '../../pages/dashboard/page'; import ListingsPage from '../../pages/listings/page'; import ListingPage from '../../pages/listing/page'; import CreateItemPage from '../../pages/create_item/pag...
src/js/modules/popupAnchor/UI/index.js
zacyu/bilibili-helper
/** * Author: DrowsyFlesh * Create: 2018/11/7 * Description: */ import React from 'react'; import ReactDOM from 'react-dom'; import styled, {createGlobalStyle} from 'styled-components'; import {UI} from 'Libs/UI'; const UIBuilder = () => { const Main = styled.div.attrs({className: 'bilibili-helper-popup-main'}...
lib/components/ReactableUI.js
Centiq/meteor-reactable
import React from 'react'; import createReactClass from 'create-react-class'; ReactableUI = createReactClass({ mixins: [ ReactableClasses ], shouldComponentUpdate (nextProps) { // If ready state or stopped state has changed, then update if (nextProps.ready !== this.props.ready) return true; ...
components/Logo.js
feedreaderco/app
import React from 'react'; import { Image } from 'react-native'; const uri = '../ios/FeedReader/Images.xcassets/AppIcon.appiconset/Icon-App-40x40.png'; export default () => <Image source={{uri}} />;
src/modules/timeline/index.js
zcfreestyle/moment-react
import React from 'react' import ReactDOM from 'react-dom' import App from './App' // 引入组件App import '../../assets/styles/timeline.styl' // 引入css import '../../assets/styles/read.styl' import '../../assets/styles/Footer.styl' import '../../assets/styles/Up.styl' ReactDOM.render( <App />, document.getElementById('a...
ui/js/simianviz.js
jwatson0/spigo
'use strict'; import React from 'react'; import Layout from 'layout'; import Toolbar from 'toolbar'; import Chart from 'chart'; export default React.createClass({ render () { return ( <Layout> <Toolbar {...this.props} /> <Chart {...this.props} /> </Layout> ); } });
templates/rubix/demo/src/routes/Editor.js
jeffthemaximum/jeffline
import React from 'react'; import ReactDOM from 'react-dom'; import { Row, Col, Grid, Panel, PanelBody, PanelHeader, PanelContainer, } from '@sketchpixy/rubix'; class TrumbowygEditor extends React.Component { componentDidMount() { $(ReactDOM.findDOMNode(this._el)).trumbowyg({ autogrow: true,...
src/components/FacebookTabBar/index.js
r1cebank/EventCore
/* eslint-disable no-underscore-dangle */ import React from 'react'; import { View, TouchableOpacity, Animated } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; import Styles from './resources/style'; class FacebookTabBar extends React.Component { static propTypes = { ...
definitions/npm/react-navigation_v1.x.x/test_react-navigation.js
orlandoc01/flow-typed
// @flow import type { NavigationScreenProp, } from 'react-navigation'; import { TabNavigator, StackNavigator, DrawerNavigator, } from 'react-navigation'; import React from 'react'; /** * Screens */ const FunctionalScreenComponent = ( { navigation }: { navigation: NavigationScreenProp<*> }, ) => { ret...
rojak-ui-web/src/App.js
pyk/rojak
import React from 'react'; import { Provider } from 'react-redux'; import { ReduxRouter } from 'redux-router'; import routes from './routes'; import store from './store'; import createRojakClient from './app/utils/createRojakClient'; class App extends React.Component { static childContextTypes = { rojakCli...
docs/app/Examples/elements/Loader/States/LoaderExampleIndeterminate.js
koenvg/Semantic-UI-React
import React from 'react' import { Dimmer, Loader, Image, Segment } from 'semantic-ui-react' const LoaderExampleIndeterminate = () => ( <div> <Segment> <Dimmer active> <Loader indeterminate>Preparing Files</Loader> </Dimmer> <Image src='http://semantic-ui.com/images/wireframe/short-par...
app/javascript/flavours/glitch/features/compose/components/textarea_icons.js
Kirishima21/mastodon
// Package imports. import PropTypes from 'prop-types'; import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; // Components. import Icon from 'flavours/glitch...
docs/src/app/components/pages/discover-more/Community.js
mtsandeep/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/docs/components/switcher.js
gabrielcsapo/psychic-ui
import React from 'react'; class Switcher extends React.Component { changeBrand(e) { this.props.selected(e.target.value); } render() { const { brands, brand, alternate} = this.props; const options = brands.map((b, i) => { if(brand == b) { return <option value={b} selected> {b} </opti...
src/icons/PictureAsPdfIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class PictureAsPdfIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M40 4H16c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4V8c0-2.21-1.79-4-4-4zM23 19c0 1....
views/main.js
jassyboy/black-screen
import React from 'react'; import _ from 'lodash'; import Rx from 'rx'; import {TerminalLayout} from './compiled/src/views/TerminalLayout.js'; var keys = { goUp: event => (event.ctrlKey && event.keyCode === 80) || event.keyCode === 38, goDown: event => (event.ctrlKey && event.keyCode === 78) || event.keyCode ...
src/svg-icons/image/healing.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageHealing = (props) => ( <SvgIcon {...props}> <path d="M17.73 12.02l3.98-3.98c.39-.39.39-1.02 0-1.41l-4.34-4.34c-.39-.39-1.02-.39-1.41 0l-3.98 3.98L8 2.29C7.8 2.1 7.55 2 7.29 2c-.25 0-.51.1-.7.29L2.25 6.63c-...
test/integration/jsconfig-paths/components/world.js
zeit/next.js
import React from 'react' export function World() { return <>World</> }
src/index.js
SpongeComing/react-demo
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
static/src/components/ProtectedView.js
tferreira/piggydime
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { FormattedMessage } from 'react-intl' import * as actionCreators from '../actions/user' import WelcomeTiles from './WelcomeTiles' function mapStateToProps(state) { return { data: state.user.data, ...
docs/src/examples/modules/Tab/Usage/TabExamplePaneShorthand.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { List, Label, Tab } from 'semantic-ui-react' const panes = [ { menuItem: 'Tab 1', pane: { key: 'tab1', content: 'This is a massive tab', size: 'massive' }, }, { menuItem: 'Tab 2', pane: { key: 'tab2', content: 'This tab has center-aligned text', ...
fixtures/fiber-debugger/src/Editor.js
jordanpapaleo/react
import React, { Component } from 'react'; class Editor extends Component { constructor(props) { super(props); this.state = { code: props.code }; } render() { return ( <div style={{ height: '100%', width: '100%' }}> <textarea value={this.state.c...
src/components/Header/Header.js
dannyrdalton/example_react_redux_form_builder
import React from 'react' import { IndexLink, Link } from 'react-router' import './Header.scss' export const Header = () => ( <div> <h1>React Redux Starter Kit</h1> <IndexLink to='/' activeClassName='route--active'> Home </IndexLink> {' · '} <Link to='/form-builder' activeClassName='route--...
src/components/Forms/AddConfigForm.js
TheModevShop/craft-app
import React from 'react'; import {Link} from 'react-router'; import forms from 'newforms'; import formIsComplete from 'utility/formIsComplete'; import _ from 'lodash'; const distributionPlatforms = [['', 'Distribution Platform'], 'encompass', 'vip']; const AddConfigForm = forms.Form.extend({ distribution_platform...
app/src/components/Results/index.js
kshvmdn/github-list
import React, { Component } from 'react'; import './index.css'; import RepoCard from './../RepoCard'; class Results extends Component { constructor() { super(); this.state = { repos: [] }; } componentDidMount() { this.setState({ repos: this.props.response.data.data }) } render() { ...
src/js/components/Location.js
grommet/grommet-people-finder
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { headers, buildQuery, processStatus } from 'grommet/utils/Rest'; import Header from 'grommet/components/Header'; impo...
Server/app/assets/javascripts/components/PageToolbarComponent.js
codemeow5/Carnival
import React from 'react'; export default React.createClass({ render: function(){ return ( <div className="page-toolbar"> <div className="btn-group btn-theme-panel"> <a href="javascript:;" className="btn dropdown-toggle" data-toggle="dropdown"> ...
src/views/icons/CameraIcon.js
physiii/open-automation
import React from 'react'; import IconBase from './IconBase.js'; export const CameraIcon = (props) => ( <IconBase {...props} viewBox="0 0 40 24"> <path d="M0 5.002A4.997 4.997 0 0 1 5.004 0h19.992A4.998 4.998 0 0 1 30 4.994V7l6.717-4.247C37.629 2.423 40 2.16 40 5.25v13.5c0 3.08-2.337 2.897-3.283 2.36L30 17v2.006A4....
js/example-work.js
chrisdodds/serverless_practice
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.o...
node_modules/react-bootstrap/es/MenuItem.js
chenjic215/search-doctor
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 ...
src/index.js
nadzins/riepas-react-redux
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import {Router, browserHistory} from 'react-router'; import routes from './routes'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddle...
app/scripts/components/kuchyne/kitchen_h.js
kroupaTomass/Rondo-kuchyne
import React from 'react'; import { Link } from 'react-router'; class Kitchen_h extends React.Component { constructor(props, context) { super(props); } render() { return ( <div className="col-md-4 no_padding"> <div className="single_image"> <a id="kitchen_h" href="#animatedModal_...
admin/client/App/components/Navigation/Secondary/index.js
cermati/keystone
/** * The secondary navigation links to inidvidual lists of a section */ import React from 'react'; import { connect } from 'react-redux'; import { Container } from '../../../elemental'; import { setActiveList, } from '../../../screens/List/actions/active'; import SecondaryNavItem from './NavItem'; var SecondaryN...
fields/types/localfiles/LocalFilesField.js
kumo/keystone
import _ from 'underscore'; import bytes from 'bytes'; import Field from '../Field'; import React from 'react'; import { Button, FormField, FormInput, FormNote } from 'elemental'; /** * TODO: * - Remove dependency on underscore */ const ICON_EXTS = [ 'aac', 'ai', 'aiff', 'avi', 'bmp', 'c', 'cpp', 'css', 'dat', 'd...
src/client/todos/newtodo.react.js
sljuka/portfulio
import * as actions from './actions'; import Component from '../components/component.react'; import React from 'react'; import immutable from 'immutable'; import {msg} from '../intl/store'; class NewTodo extends Component { static propTypes = { todo: React.PropTypes.instanceOf(immutable.Record) }; addTodoO...
app/javascript/mastodon/features/ui/components/upload_area.js
ashfurrow/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import { FormattedMessage } from 'react-intl'; export default class UploadArea extends React.PureComponent { static propTypes = { active: PropTypes.boo...
src/svg-icons/action/theaters.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTheaters = (props) => ( <SvgIcon {...props}> <path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"/> </SvgI...
modules/Link.js
ustccjw/react-router
import React from 'react' import warning from 'warning' const { bool, object, string, func } = React.PropTypes function isLeftClickEvent(event) { return event.button === 0 } function isModifiedEvent(event) { return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey) } function isEmptyObject(obj...
web/src/main/client/src/components/filterbar/FilterBar.js
BakkerTom/happy-news
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import './FilterBar.css'; class FilterBar extends Component { constructor(props) { super(props); this.state = { flaggedContent: this.props.filtered } this.handleClick = this.handleClick.bind(this); } handleClic...
anubis/frontend/src/components/TokenField/symbol_token.js
cmspsgp31/anubis
// Copyright © 2016, Ugo Pozo // 2016, Câmara Municipal de São Paulo // symbol_token.js - tokens representing connecting symbols. // This file is part of Anubis. // Anubis is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // th...
examples/todomvc/containers/TodoApp.js
kennetpostigo/redux
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Header from '../components/Header'; import MainSection from '../components/MainSection'; import * as TodoActions from '../actions/todos'; class TodoApp extends Component { render() { ...
packages/material-ui-icons/src/GpsNotFixed.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let GpsNotFixed = props => <SvgIcon {...props}> <path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-3.77 7.94-...
js/webui/src/setting_editor.js
hyperblast/beefweb
import React from 'react' import PropTypes from 'prop-types' import objectValues from 'lodash/values' import SettingsModel, { SettingType } from './settings_model' import ServiceContext from './service_context'; class BoolSettingEditor extends React.PureComponent { constructor(props, context) { super(p...
src/components/Core.js
eko/king
import React from 'react'; import Link from 'react-router/lib/Link'; import lightBaseTheme from 'material-ui/styles/baseThemes/lightBaseTheme'; import { MuiThemeProvider, getMuiTheme } from 'material-ui/styles'; import { NavigationMenu, NavigationClose } from 'material-ui/svg-icons/navigation/close'; import { AppB...
src/docs/examples/TextInputBEM/ExampleError.js
alexcondorachi/ps-react-alexc
import React from 'react'; import TextInputBEM from 'ps-react/TextInputBEM'; /** Required TextBox with error */ export default class ExampleError extends React.Component { render() { return ( <TextInputBEM htmlId="example-optional" label="First Name" name="firstname" onChang...
frontend/src/components/toolbar/invitations-toolbar.js
miurahr/seahub
import React from 'react'; import PropTypes from 'prop-types'; import CommonToolbar from './common-toolbar'; import { Button } from 'reactstrap'; import { gettext } from '../../utils/constants'; import { Utils } from '../../utils/utils'; const propTypes = { onShowSidePanel: PropTypes.func.isRequired, onSearchedCli...
src/app/components/LoginForm/index.js
mahimaag/react-web-boilerplate
import React from 'react'; import PropTypes from 'prop-types'; import { FormGroup, ControlLabel, HelpBlock, FormControl, Checkbox, Button } from 'react-bootstrap'; import {LoginFormFields} from '../../../constants/index'; import AwareXButton from '../AwareXButton' import styles from './style.scss'; import AXLink from '...
app/javascript/mastodon/features/notifications/index.js
mimumemo/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import { expandNotifications, scrollTopNotifications ...
node_modules/react-dropzone/src/index.js
premcool/getmydeal
/* eslint prefer-template: 0 */ import React from 'react'; import accepts from 'attr-accept'; import { deprecate } from 'react-is-deprecated'; import getDataTransferItems from './getDataTransferItems'; const supportMultiple = (typeof document !== 'undefined' && document && document.createElement) ? 'multiple' in doc...
front/src/IngredientPage.js
miyef/onboard-fridge
import React, { Component } from 'react'; import Fuse from 'fuse.js'; import moment from 'moment'; import FilterBar from './FilterBar'; import IngredientItem from './IngredientItem'; import AddButton from './AddButton'; import SortBar from './SortBar'; // For fuse const options = { shouldSort: false, threshold...