path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
techCurriculum/ui/solutions/6.1/src/components/Title.js
jennybkim/engineeringessentials
/** * 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...
folktale-react/src/index.js
Muzietto/react-playground
import React from 'react'; import ReactDOM from 'react-dom'; import Maybe from 'folktale/maybe'; import compose from 'folktale/core/lambda/compose'; ReactDOM.render(<App />, document.getElementById('root')); function App() { const inc = x => x + 1; const double = x => x * 2; const theMaybe = Maybe.Just(1).map...
components/Tools/AvailableHours.js
juhojo/WLO
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { Card, CardActions, CardHeader, CardText } from 'material-ui/Card'; import Slider from 'material-ui/Slider'; export default class AvailableHours extends Component { constructor(props) { super(props); this.state = { e...
src/smif/app/test/components/Simulation/Stepper.js
tomalrussell/smif
import React from 'react' import sinon from 'sinon' import {expect} from 'chai' import {mount} from 'enzyme' import {describe, it} from 'mocha' import Stepper from 'components/Simulation/Stepper' describe('<Stepper />', () => { it('step unstarted', () => { let wrapper = mount(<Stepper status='unstarted'/...
techCurriculum/ui/solutions/3.3/src/components/Message.js
jennybkim/engineeringessentials
/** * 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...
src/components/Columns.js
kdesterik/koendirkvanesterik.com
import React from 'react'; export default class Columns extends React.Component { render() { let columns = ''; switch( this.props.width ){ case 'full': columns = ( <div className="col-lg-12 col-md-12 col-sm-12 col-xs-12" dangerouslySetInnerHTM...
test/ButtonSpec.js
adampickeral/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Button from '../src/Button'; describe('Button', function () { it('Should output a button', function () { let instance = ReactTestUtils.renderIntoDocument( <Button> Title </Button> ); assert.equal(...
app/javascript/spec/network-routers-interfaces-form/network-routers-interfaces-form.spec.js
ManageIQ/manageiq-ui-classic
import React from 'react'; import toJson from 'enzyme-to-json'; import fetchMock from 'fetch-mock'; import { shallow } from 'enzyme'; import InterfacesForm from '../../components/network-routers-interfaces-form'; import '../helpers/miqAjaxButton'; require('../helpers/set_fixtures_helper.js'); require('../helpers/old_j...
src/Main/ReportHistory.js
hasseboulen/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { getReportHistory } from 'selectors/reportHistory'; import { makePlainUrl } from 'Main/makeAnalyzerUrl'; import { title as AboutArticleTitle } from 'Main/News/Articles/...
client/index.js
forkful/forkful
import React from 'react'; import ReactDOM from 'react-dom'; import { createStore, applyMiddleware } from 'redux'; import { Provider } from 'react-redux'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import { syncHistoryWithStore, routerMiddleware } from 'react-router-redux'; import App fr...
docs/app/Examples/elements/Loader/Variations/LoaderExampleInline.js
shengnian/shengnian-ui-react
import React from 'react' import { Loader } from 'shengnian-ui-react' const LoaderExampleInline = () => ( <Loader active inline /> ) export default LoaderExampleInline
client/src/components/streamsList/listOfStreams.js
AuggieH/GigRTC
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { getActivePerformances } from '../../actions'; import { Link } from 'react-router'; import List from 'material-ui/lib/lists/list'; import ListItem from 'material-ui/lib/lists/list-item'; import Divider from 'material-ui/lib/divide...
example/__tests__/index.android.js
moschan/react-native-flip-card
import 'react-native'; import React from 'react'; import Index from '../index.android.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
test/expect_spec.js
yormi/test-them-all
/* global describe, it */ import { renderIntoDocument } from 'react-addons-test-utils' import React from 'react' import { expect } from '~/src/index' describe('batch expect', () => { class List extends React.Component { render () { return ( <ul> <li>foo</li> <li>bar</li> ...
src/components/TouchableWithoutFeedback.js
lelandrichardson/react-native-mock
/** * https://github.com/facebook/react-native/blob/master/Libraries/Components/Touchable/TouchableWithoutFeedback.js */ import React from 'react'; import EdgeInsetsPropType from '../propTypes/EdgeInsetsPropType'; import View from './View'; const TouchableWithoutFeedback = React.createClass({ propTypes: { acce...
app/components/Home.js
pyreta/songrider
// @flow import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './Home.css'; export default class Home extends Component { render() { return ( <div> <div className={styles.container}> <h2>Homerr</h2> <Link to="/counter">to Counter</Li...
src/index.js
RedZulu/ReduxArt
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import App from './components/app'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware()(createStore); ReactDOM.render( <Provi...
admin/src/components/AltText.js
ligson/keystone
import React from 'react'; import blacklist from 'blacklist'; import vkey from 'vkey'; var AltText = React.createClass({ getDefaultProps () { return { component: 'span', modifier: '<alt>', normal: '', modified: '' }; }, getInitialState () { return { modified: false }; }, componentDidMount (...
src/timelines/components/card/TootAge.js
algernon/mad-tooter
// @flow /* The Mad Tooter -- A Mastodon client * Copyright (C) 2017 Gergely Nagy * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your o...
src/components/MenuBar.js
Journey316/resume
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; class MenuBar extends React.Component { constructor(props){ super(props); this.state = { selected : props.selected || 0 }; this.callHistory = this.callHistory.bind(this); } renderOverlay() { console.log(...
server/sonar-web/src/main/js/apps/permission-templates/permission-template.js
vamsirajendra/sonarqube
import _ from 'underscore'; import Backbone from 'backbone'; import React from 'react'; import Defaults from './permission-template-defaults'; import SetDefaults from './permission-template-set-defaults'; import UsersView from './users-view'; import GroupsView from './groups-view'; import UpdateView from './update-view...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/DefaultPropsInferred.js
MichaelDeBoey/flow
// @flow import React from 'react'; class MyComponent extends React.Component { static defaultProps = {}; props: Props; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component { static defaultProps = {}; ...
jenkins-design-language/src/js/components/material-ui/svg-icons/device/screen-rotation.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const DeviceScreenRotation = (props) => ( <SvgIcon {...props}> <path d="M16.48 2.52c3.27 1.55 5.61 4.72 5.97 8.48h1.5C23.44 4.84 18.29 0 12 0l-.66.03 3.81 3.81 1.33-1.32zm-6.25-.77c-.59-.59-1.54-.59-2.12 0L1.75 8.11c-.59.59-.59 1.54 0 2.12l12.02 12....
src/index.js
JimFung/interval
import React from 'react' import ReactDOM from 'react-dom' import { createStore, applyMiddleware } from 'redux' import { Provider } from 'react-redux' import { Router, Route, browserHistory, IndexRoute } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import promiseMiddleware from 'redux-...
src/svg-icons/action/shop.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionShop = (props) => ( <SvgIcon {...props}> <path d="M16 6V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H2v13c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6h-6zm-6-2h4v2h-4V4zM9 18V9l7.5 4L9 18z"/> </SvgIcon> ); Action...
entry_types/scrolled/package/spec/frontend/VideoPlayerControls-spec.js
codevise/pageflow
import {VideoPlayerControls} from 'frontend/VideoPlayerControls'; import {useFile} from 'entryState'; import React from 'react'; import '@testing-library/jest-dom/extend-expect' import {useFakeTranslations} from 'pageflow/testHelpers'; import {renderInEntry} from 'support'; import {getInitialPlayerState, getPlayerAct...
system/src/layouts/containers/HeaderDropdownContainer/index.js
axmatthew/react
/* eslint react/prefer-stateless-function: 0 */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import { List, Map } from 'immutable'; import enquiryModule from '../../../modules/enquiries'; import HeaderDropdown from '../../components/HeaderDropdown'; class HeaderDropdownContainer ext...
examples/real-world/containers/Root.js
xiamidaxia/redux
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import { Router, Route } from 'react-router'; import configureStore from '../store/configureStore'; import App from './App'; import UserPage from './UserPage'; import RepoPage from './RepoPage'; const store = configureStore(); export de...
src/components/layout/Aside.js
dhruv-kumar-jha/productivity-frontend
'use strict'; import React from 'react'; const AsideLayout = (props) => { return ( <aside className="default"> { props.children } </aside> ); } export default AsideLayout;
src/components/ShowHeader.js
kiyoshitaro/Instagram-
import React from 'react'; class ShowHeader extends React.Component { constructor(props) { super(props); this.state = { value: 1 }; } render() { return ( <div> {/*<div className="section section-cards section-gold">*/} {/*<header className="codrops-header">*/} ...
lib/codemod/src/transforms/__testfixtures__/storiesof-to-csf/export-destructuring.input.js
kadirahq/react-storybook
/* eslint-disable import/no-extraneous-dependencies */ import React from 'react'; import { storiesOf } from '@storybook/react'; import ComponentRow from './ComponentRow'; import * as SpecRowStories from './SpecRow.stories'; export const { actions } = SpecRowStories; storiesOf('ComponentRow', module).add('pending', ()...
tests/routes/Home/components/HomeView.spec.js
fxghqc/walk
import React from 'react' import { HomeView } from 'routes/Home/components/HomeView' import { render } from 'enzyme' describe('(View) Home', () => { let _component beforeEach(() => { _component = render(<HomeView />) }) it('Renders a welcome message', () => { const welcome = _component.find('h4') ...
nlyyAPP/component/图片管理模块/模块上传/MLMoKuaiNewUpdateList.js
a497500306/nlyy_APP
/** * Created by Rolle on 2017/5/25. */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, ListView, TouchableOpacity, Platform } from 'react-native'; var MLNavigatorBar = require('../../MLNavigatorBar/MLNavigatorBar'); var MLTableCell = require('../../...
examples/src/components/CustomOption.js
pdrko/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...
fields/types/location/LocationColumn.js
riyadhalnur/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/client/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTableValue'; const SUB_FIELDS = ['street1', 'suburb', 'state', 'postcode', 'country']; var LocationColumn = React.createClass({ displayName: 'Loc...
public/components/Login.js
supportivesantas/project-ipsum
import React from 'react'; import actions from '../actions/ipsumActions.js'; import { connect } from 'react-redux'; import maps from '../mappingFunctions.js'; import NavigationBarLogin from './NavigationBarLogin.js'; import { Grid, Panel, Col, Row, Jumbotron } from 'react-bootstrap'; import { LinkContainer } from 'reac...
src/js/components/success/Success.component.js
katie-day/we_do
import React from 'react'; import Header from '../common/header/Header.component'; import { getWindowHeight } from '../../utils'; const Success = () => { const windowHeight = getWindowHeight(); const guest = {}; const style = { minHeight: windowHeight - 50, }; return ( <div> ...
app/javascript/mastodon/features/home_timeline/index.js
robotstart/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../ui/components/column'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ColumnSettingsCo...
App/containers/DayThreeScreen/MeScreen.js
carney520/30-days-of-react-native
// @flow import React from 'react' import {Text} from 'react-native' import TabbarIcon from './components/TabbarIcon' export default class MeScreen extends React.Component { static navigationOptions = { tabBar: { label: 'Me', icon: ({tintColor}) => <TabbarIcon name="user" color={tintColor} /> } ...
node_modules/react-bootstrap/es/Form.js
caughtclean/but-thats-wrong-blog
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 ...
example/js/main.js
shirou/goagen_js
import React from 'react'; import * as api from "./api_request.js"; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import {createStore, combineReducers} from 'redux'; import {reducer as reduxFormReducer} from 'redux-form'; import { Values } from 'redux-form-website-template'; const dest = docu...
src/app/components/Layout.js
Dynamit/healthcare-microsite
/** * Master layout * @description Layout wrapper. Used only in prerender. Client-side app renders on `document.body` */ import React from 'react'; class Layout extends React.Component { constructor(props) { super(props); // improved async Typekit loading https://goo.gl/t1jDL8 let kitId = 'omf4gip'; t...
src/components/ResourceGroup/index.js
DeveloperLaPoste/protagonist-react
import PropTypes from 'prop-types'; import React from 'react'; import { ResourceGroupTitle, Description, Resources } from '../'; export default function ResourceGroup({ resourceGroup }) { const resources = resourceGroup.resources ? ( <div className="ResourceGroup-content"> <Resources resources={resourceGro...
examples/todomvc/index.js
chrisege/redux
import React from 'react'; import App from './containers/App'; import 'todomvc-app-css/index.css'; React.render( <App />, document.getElementById('root') );
src/index.js
shonmacray/Showcase
import React from 'react'; import ReactDOM from 'react-dom'; import Mainlayout from './Showcase/index'; import registerServiceWorker from './registerServiceWorker'; import './index.css'; import './abc.css'; ReactDOM.render(<Mainlayout />, document.getElementById('root')); registerServiceWorker();
packages/es-components/src/components/controls/buttons/OutlineButton.js
jrios/es-components
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { useTheme } from '../../util/useTheme'; const StyledButton = styled.button` background-color: ${props => props.variant.bgColor}; border: 2px solid ${props => props.variant.borderColor}; border-radius: ...
_deprecated/src/components/Home.js
paigekehoe/paigekehoe.github.io
import React from 'react'; import Interactive from 'react-interactive'; import { Link } from 'react-router-dom'; import { Code } from '../styles/style'; import s from '../styles/home.style'; export default function Home() { const repoReadmeLink = text => ( <Interactive as="a" {...s.link} href="...
src/components/UsernameForm/TimeMessage/index.js
jenkoian/hacktoberfest-checker
import React from 'react'; import getTimeMessage from './getTimeMessage'; const TimeMessage = () => ( <p className="text-center light-mode:text-hack-dark-title pb-2"> {getTimeMessage()} </p> ); export default TimeMessage;
client/scripts/components/config/disclosure-requirements/disclosure-requirements/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your ...
week02-rest-basics/client/src/App.js
kajayr/isit322-leosinani-2017
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; import 'whatwg-fetch'; class App extends Component { constructor() { super(); this.state = { file: 'Get Nine Result will be placed here.', foo: 'waiting for express server' }...
test/specs/collections/Message/MessageList-test.js
aabustamante/Semantic-UI-React
import React from 'react' import MessageList from 'src/collections/Message/MessageList' import * as common from 'test/specs/commonTests' describe('MessageList', () => { common.isConformant(MessageList) common.implementsCreateMethod(MessageList) common.rendersChildren(MessageList) it('renders an ul tag', () =>...
src/svg-icons/device/devices.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceDevices = (props) => ( <SvgIcon {...props}> <path d="M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z"/> </Sv...
blueprints/view/files/__root__/views/__name__View/__name__View.js
availabs/kauffman-atlas
import React from 'react' type Props = { }; export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } export default <%= pascalEntityName %>
src/components/NotFoundPage/NotFoundPage.js
phoenixbox/vesty-fe
/* * React.js Starter Kit * Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ 'use strict'; //require('./NotFoundPage.less'); import React from 'react'; export defa...
client/node_modules/react-router/es6/IndexLink.js
Discounty/Discounty
'use strict'; 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; }; function _classCallCheck(instance, Constructor...
app/javascript/mastodon/features/compose/components/compose_form.js
esetomo/mastodon
import React from 'react'; import CharacterCounter from './character_counter'; import Button from '../../../components/button'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ReplyIndicatorContainer from '../containers/reply_indicator_container'; import Autosugges...
components/Entry.js
nikhilsaraf/react-native-todo-app
/** * @flow */ import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import PropTypes from 'prop-types'; import { Icon } from 'react-native-elements'; import Box from './Box'; class Entry extends React.Component { render() { return ( <Box style={styles.box} ...
src/components/Login/Login.js
nambawan/g-old
/* eslint-disable react/destructuring-assignment */ import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { defineMessages, FormattedMessage } from 'react-intl'; import { login } from '../../actions/session'; import { getAccountUpdates } from '../../reducers'; impo...
src/components/Seo.js
rhostem/blog
import React from 'react' import PropTypes from 'prop-types' import Helmet from 'react-helmet' import { StaticQuery, graphql } from 'gatsby' import { concat, not, isEmpty, filter, includes, isNil, compose } from 'ramda' import { PROFILE_IMAGE } from 'src/constants' export const DEFAULT_KEYWORDS = ['웹 개발', 'Front-end',...
fields/components/DateInput.js
lastjune/keystone
import moment from 'moment'; import DayPicker from 'react-day-picker'; import React from 'react'; import Popout from '../../admin/src/components/Popout'; import { FormInput } from 'elemental'; function isSameDay(d1, d2) { d1.setHours(0, 0, 0, 0); d2.setHours(0, 0, 0, 0); return d1.getTime() === d2.getTime(); } m...
q-a11y-training-demo/src/components/person/achievements/Achievements.js
AlmeroSteyn/Q-A11y-Training
import React from 'react'; const Achievements = () => <div>Achievements page</div>; export default Achievements;
node_modules/react-error-overlay/lib/index.js
lujinming1/hejicaoye
/** * 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...
src/ThreadView.js
drop-table-ryhmatyo/tekislauta-front
import React, { Component } from 'react'; import Helmet from 'react-helmet'; import Post, { OriginalPost } from './Post'; import SubmitForm from './SubmitForm'; import Endpoints from './Endpoints'; var self; class ThreadView extends Component { constructor(props) { super(props); this.state...
src/components/common/svg-icons/hardware/tablet-android.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareTabletAndroid = (props) => ( <SvgIcon {...props}> <path d="M18 0H6C4.34 0 3 1.34 3 3v18c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3V3c0-1.66-1.34-3-3-3zm-4 22h-4v-1h4v1zm5.25-3H4.75V3h14.5v16z"/> </SvgIcon...
src/components/Contentful/News/presenter.js
ndlib/usurper
// Presenter component for a Page content type from Contentful import React from 'react' import PropTypes from 'prop-types' import 'static/css/global.css' import LibMarkdown from 'components/LibMarkdown' import Related from '../Related' import Image from 'components/Image' import Link from 'components/Interactive/Link'...
src/svg-icons/action/settings-input-svideo.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsInputSvideo = (props) => ( <SvgIcon {...props}> <path d="M8 11.5c0-.83-.67-1.5-1.5-1.5S5 10.67 5 11.5 5.67 13 6.5 13 8 12.33 8 11.5zm7-5c0-.83-.67-1.5-1.5-1.5h-3C9.67 5 9 5.67 9 6.5S9.67 8 10.5 8h...
upgrade-guides/v0.12-v0.13/es5/src/components/Layout.js
lore/lore
/** * This component is intended to reflect the high level structure of your application, * and render any components that are common across all views, such as the header or * top-level navigation. All other components should be rendered by route handlers. **/ import React from 'react'; import PropTypes from 'prop...
node_modules/rc-time-picker/es/TimePicker.js
prodigalyijun/demo-by-antd
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React, { Component } from 'react'; im...
src/containers/Location/index.js
TUIHackfridays/tuise-poc
import React from 'react' const Location = () => <div> The location page </div> const styles = { } export default Location
src/components/topic/words/InfluentialWordsContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import { injectIntl, FormattedMessage } from 'react-intl'; import { Grid, Row, Col } from 'react-flexbox-grid/lib'; import Word2VecTimespanPlayerContainer from './Word2VecTimespanPlayerContainer'; import WordCloudCompa...
src/js/containers/GalleryContainer.js
sdeleon28/react-fullscreen-gallery
import React from 'react'; import Gallery from '../components/Gallery'; const pt = React.PropTypes; class GalleryContainer extends React.Component { constructor() { super(); this.onImageSelected = this.onImageSelected.bind(this); this.state = { selectedImageIndex: 0, }; } onImageSelected...
information/blendle-frontend-react-source/app/modules/timeline/components/FollowChannels.js
BramscoChill/BlendleParser
import React from 'react'; import PropTypes from 'prop-types'; import { translate, translateElement, getIso639_1 as getLang } from 'instances/i18n'; import classNames from 'classnames'; import Link from 'components/Link'; import ChannelName from 'components/ChannelName'; import Auth from 'controllers/auth'; import Chan...
motion-test/src/motionCustom.js
wandarkaf/React-Bible
import React, { Component } from 'react'; import {Motion, spring, presets} from 'react-motion'; class MotionCustom extends Component { render(){ return ( <Motion defaultStyle={{ y: 500, z: 4 }} style={{ y: spring(100, presets.wobbly), z: sprin...
packages/icons/src/md/maps/LocalDrink.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdLocalDrink(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M6 4h36l-4.03 36.47A3.994 3.994 0 0 1 34 44H14c-2.05 0-3.74-1.54-3.97-3.53L6 4zm18 34c3.31 0 6-2.69 6-6 0-4-6-10.8-6-10.8S18 28 18 32c0 3.31 2.69 ...
components/BottomNavigation.js
BDE-ESIEE/mobile
'use strict'; import React from 'react'; import ScrollableTabView from 'react-native-scrollable-tab-view'; import {DefaultRenderer} from 'react-native-router-flux'; import TabBar from './TabBar'; class BottomNavigation extends React.Component { render () { const props = this.props; return ( <Scrollab...
src/components/RayGunComponent.js
pacmessica/worms-copy
import React from 'react'; class RayGunComponent extends React.Component { constructor() { super(); } gunStyle() { return { position: "fixed", width: "5px", height: "5px", backgroundColor: "black", left: this.props.x + 5 + "px", top: this.props.y + "px" }; } ...
examples/src/app.js
mrcodemonkey/react-autosuggest
require('./app.less'); import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import Badges from './Badges/Badges'; import Examples from './Examples'; import Footer from './Footer/Footer'; import ForkMeOnGitHub from './ForkMeOnGitHub/ForkMeOnGitHub'; import TrackLinks from './TrackLinks/TrackLinks...
lib/ui/src/modules/ui/components/layout/index.js
bigassdragon/storybook
import PropTypes from 'prop-types'; import React from 'react'; import USplit from './usplit'; import Dimensions from './dimensions'; import SplitPane from 'react-split-pane'; const rootStyle = { height: '100vh', backgroundColor: '#F7F7F7', }; const leftPanelStyle = leftPanelOnTop => ({ width: '100%', display...
src/components/Github/Feed/DetailPush.js
jseminck/react-native-github-feed
import React from 'react'; import { Text, View, Image, ScrollView, ListView } from 'react-native'; import moment from 'moment'; export default class DetailComment extends React.Component { static propTypes = { eventDetail: React.PropTypes.object.isRequired } constructor(props) { super(prop...
src/containers/Asians/TabControls/PreliminaryRounds/CreateRooms/8_VenuePreview/index.js
westoncolemanl/tabbr-web
import React from 'react' import withStyles from 'material-ui/styles/withStyles' import Typography from 'material-ui/Typography' import VenueTable from './VenueTable' import Navigation from './Navigation' const styles = theme => ({ root: { [theme.breakpoints.down('sm')]: { paddingLeft: theme.spacing.unit...
app/index.js
Onra/inspiringquote
import React from 'react'; import ReactDOM from 'react-dom'; import Home from './components/Home'; import './styles/stylesheet.scss'; document.addEventListener('DOMContentLoaded', () => { ReactDOM.render(<Home />, document.getElementById('root')); });
src/scenes/home/landing/landing.js
sethbergman/operationcode_frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactModal from 'react-modal'; import FontAwesomeIcon from '@fortawesome/react-fontawesome'; import { faTimes } from '@fortawesome/fontawesome-free-solid'; import Hero from './hero/hero'; import Membership from './membership/membership...
src/web/forms/__tests__/DynamicForm-test.js
asha-nepal/AshaFusionCross
/** * Copyright 2017 Yuichiro Tsuchiya * * 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 agr...
src/svg-icons/file/cloud-upload.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileCloudUpload = (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....
src/components/RecurrencePicker/RecurrencePicker.js
F-Ruxton/taskata
import React, { Component } from 'react'; // import moment from 'moment'; // import 'moment-recur'; // import { find, chunk, map, remove, isEmpty } from 'lodash'; import { find, chunk, map } from 'lodash'; import './RecurrencePicker.css'; import SimpleSelectWrapper from '../SimpleSelectWrapper/SimpleSelectWrapper'; i...
src/components/Last/Last.stories.js
joshwcomeau/react-collection-helpers
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import Last from '../Last'; import Sort from '../Sort'; storiesOf('Last', module) .add('default (1 item)', () => ( <Last collection={['Apple', 'Banana', 'Carrot']}> {item => <div>{item}</div>} </Last> )) .add('last 3 of 4 i...
src/components/projectManageIndex/projectManageIndex.js
wengyian/project-manager-system
/** * Created by 51212 on 2017/4/10. */ import React, { Component } from 'react'; import {BrowserRouter as Router, Route, browserHistory, Switch} from 'react-router-dom'; import Header from '../Header/Header'; //import ProjectManage from '../projectManage/projectManage'; //import TextTable from '../textTable/textTabl...
src/parser/warrior/fury/modules/spells/Recklessness.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import SPELLS from 'common/SPELLS'; import RESOURCE_TYPES from 'game/RESOURCE_TYPES'; import { SELECTED_PLAYER } from 'parser/core/EventFilter'; import StatisticBox from 'interface/others/StatisticBox'; i...
src/js/components/settings/Global.js
barumel/ultritium-radio-player
import React from 'react'; import { Panel } from 'react-bootstrap'; import { SettingsPanel } from './panel/Panel'; import { SettingsPanelHeader } from './panel/Header'; import { SettingsFormGlobal } from './form/Global'; export class GlobalSettings extends SettingsPanel { constructor() { super(); this.state...
docs/app/Examples/elements/List/Variations/ListExampleCelled.js
mohammed88/Semantic-UI-React
import React from 'react' import { Image, List } from 'semantic-ui-react' const ListExampleCelled = () => ( <List celled> <List.Item> <Image avatar src='http://semantic-ui.com/images/avatar/small/helen.jpg' /> <List.Content> <List.Header>Snickerdoodle</List.Header> An excellent compan...
packages/icons/src/md/av/LibraryAdd.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdLibraryAdd(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M8 12H4v28c0 2.21 1.79 4 4 4h28v-4H8V12zm32-8c2.21 0 4 1.79 4 4v24c0 2.21-1.79 4-4 4H16c-2.21 0-4-1.79-4-4V8c0-2.21 1.79-4 4-4h24zm-2 18v-4h-8v-8h...
src/Container.js
thebritican/react-router-relay
import React from 'react'; import StaticContainer from 'react-static-container'; import getParamsForRoute from './getParamsForRoute'; import RootComponent from './RootComponent'; import RouteAggregator from './RouteAggregator'; export default class Container extends React.Component { static displayName = 'ReactRout...
frontend/src/common/InputEmail.js
Ormabe/tuesday
import React from 'react'; import TextField from 'material-ui/TextField'; import { green800, grey800, orange800 } from 'material-ui/styles/colors'; const InputEmail = ({ name, label, value, onChange, errorText }) => { const { floatingLabelFocusStyle, floatingLabelStyle, underlineStyle, errorStyle } = styles; ...
app/javascript/mastodon/main.js
riku6460/chikuwagoddon
import * as registerPushNotifications from './actions/push_notifications'; import { default as Mastodon, store } from './containers/mastodon'; import React from 'react'; import ReactDOM from 'react-dom'; import ready from './ready'; const perf = require('./performance'); function main() { perf.start('main()'); i...
docs/pages/api-docs/breadcrumbs.js
lgollut/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'api/breadcrumbs'; const requireRaw = require.context('!raw-loader!./', false, /\/breadcrumbs\.md$/); export default function Pag...
resources/assets/js/components/admin/LateralMenu.js
jrm2k6/i-heart-reading
import React, { Component } from 'react'; import { browserHistory } from 'react-router'; export default class LateralMenu extends Component { constructor(props) { super(props); this.state = { activeTab: null, randomBackgroundColor: this.getRandomColor() }; } getRandomColor() { return...
src/components/Calendar/Calendar.js
nambawan/g-old
import React from 'react'; import PropTypes from 'prop-types'; import withStyles from 'isomorphic-style-loader/withStyles'; import { defineMessages } from 'react-intl'; import InfiniteCalendar, { withRange, Calendar as CalendarWithRange, } from 'react-infinite-calendar'; import s from './Calendar.css'; /* eslint-...
src/components/Feedback/Feedback.js
vbauerster/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Feedback.less'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback { render() { return ( <div className="Feedback"> <div className="Feedb...
test/MenuItemSpec.js
victorzhang17/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import MenuItem from '../src/MenuItem'; import { shouldWarn } from './helpers'; describe('MenuItem', () => { it('renders divider', () => { const instance = ReactTestUtils.renderIntoDocument(<MenuItem divider />); const node = R...
src/view/UIElement/iconfont/index.js
fishmankkk/mircowater2.0
import React from 'react' import { Iconfont } from 'components' import { Table, Row, Col, Icon } from 'antd' import styles from './index.less' import './emoji' const colorfulIcons = ['boluo', 'baixiangguo', 'chengzi', 'boluomei', 'caomei', 'dayouzi', 'chelizi', 'fanqie', 'hamigua', 'ganlan', 'juzi', 'heimei', 'huolo...