path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/app/components/search/SearchResultsTable/TypeCell.js
meedan/check-web
import React from 'react'; import PropTypes from 'prop-types'; import TableCell from '@material-ui/core/TableCell'; import MediaTypeDisplayName from '../../media/MediaTypeDisplayName'; export default function TypeCell({ projectMedia }) { return ( <TableCell> <MediaTypeDisplayName mediaType={projectMedia.li...
client/src/App.js
Flixpicks/Flixpicks
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { componentDidMount() { //TODO: this is just an example to show we can do calls to api from dev server. fetch(`/hello`, { accept: 'application/json', }).then((response) => { ...
backend/app/react/gesmew_rubric/components/main.js
statiagov/gesmew
import React from 'react'; import Cell from './EditableCell'; import connectToStores from 'alt/utils/connectToStores'; import RubricStore from '../stores/RubricStore'; import RubricActions from '../actions/RubricActions'; import uniqueId from 'uniqueid'; import Immutable from 'immutable'; import validator from 'valid...
examples/huge-apps/components/GlobalNav.js
Nedomas/react-router
import React from 'react' import { Link } from 'react-router' const dark = 'hsl(200, 20%, 20%)' const light = '#fff' const styles = {} styles.wrapper = { padding: '10px 20px', overflow: 'hidden', background: dark, color: light } styles.link = { padding: 11, color: light, fontWeight: 200 } styles.activ...
extension/examples/todomvc/components/Footer.js
gaearon/redux-devtools
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { SHOW_ALL, SHOW_COMPLETED, SHOW_ACTIVE, } from '../constants/TodoFilters'; const FILTER_TITLES = { [SHOW_ALL]: 'All', [SHOW_ACTIVE]: 'Active', [SHOW_COMPLETED]: 'Completed', }; class ...
src/components/About/AboutExperiences.js
tannerfiscus/tannerfisc.us
import React from 'react'; import AboutExperience from './AboutExperience'; import styles from './AboutExperiences.module.scss'; const AboutExperiences = ({ experiences }) => ( <div className={styles['experiences']}> { experiences.map(({ experience }, i) => ( <AboutExperience ...
src/components/router.js
chuntielin/Blog_Yeoman_Fullstack
import React from 'react' import { Router, Route, IndexRoute } from 'react-router'; import { render } from 'react-dom' import createBrowserHistory from 'history/lib/createBrowserHistory' let history = createBrowserHistory() import App from 'components/app.js'; import HomePage from 'components/HomePage/HomePage.js'; im...
components/footer.js
bukinoshita/open-source
import React from 'react' const Footer = () => { return ( <footer className="footer"> <p className="footer__text"> Made by &nbsp; <a href="https://github.com/bukinoshita" className="footer__text--link" >Bu Kinoshita</a> &nbsp; and &nbsp; <a ...
src/Well.js
adampickeral/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Well = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'well' }; }, render() { let classes = this.getBsClassSet(); return ( <di...
src/svg-icons/action/touch-app.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTouchApp = (props) => ( <SvgIcon {...props}> <path d="M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74zm9.84 4.63l-4....
src/Components/Feedy.js
webcom-components/feedy
import React, { Component } from 'react'; import ReactDom from 'react-dom'; import { connect } from 'react-redux'; import * as actions from 'actions'; import { outerHeight } from 'utils/dom'; import s from './styles'; class Feedy extends Component { static propTypes = { appName: React.PropTypes.string.isRequire...
app/components/OrderComponent.js
cdillon85/the-art-store
import React from 'react' import {Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table' import Paper from 'material-ui/Paper' const imageStyle = { height: 100, width: 100 } const style = { width: '100%', margin: 20 } export default function Order (props) { //S...
src/svg-icons/image/brightness-7.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrightness7 = (props) => ( <SvgIcon {...props}> <path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69...
__tests__/header-test.js
reactabular/sortabular
/* eslint-disable react/prop-types */ import React from 'react'; import TestUtils from 'react-dom/test-utils'; import { byColumn, header } from '../src'; describe('sort.header', function () { it('allows sortable not to be passed', function () { const expectedValue = 'foobar'; const headerTransform = header({...
src/routes/async.js
Vision100IT/v100it-template
import React from 'react'; function asyncRoute(getComponent) { return class AsyncComponent extends React.Component { static Component = null; mounted = false; state = { Component: AsyncComponent.Component }; // eslint-disable-next-line camelcase UNSAFE_componentWillMount() { if (typeof document !...
client/app/scripts/charts/node.js
kinvolk/scope
import React from 'react'; import { connect } from 'react-redux'; import classnames from 'classnames'; import { Map as makeMap, List as makeList } from 'immutable'; import { clickNode, enterNode, leaveNode } from '../actions/app-actions'; import { getNodeColor } from '../utils/color-utils'; import MatchedText from '.....
examples/todomvc/containers/Root.js
nickhudkins/redux
import React, { Component } from 'react'; import TodoApp from './TodoApp'; import { createStore, combineReducers } from 'redux'; import { Provider } from 'react-redux'; import rootReducer from '../reducers'; const store = createStore(rootReducer); export default class Root extends Component { render() { return ...
fields/types/number/NumberColumn.js
joerter/keystone
import React from 'react'; import numeral from 'numeral'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var NumberColumn = React.createClass({ displayName: 'NumberColumn', propTypes: { col: React.PropTypes.object, data: React.PropTyp...
common/routes.js
nikgraf/redux-universal-app
import React from 'react'; import { IndexRoute, Route } from 'react-router'; import About from './containers/About'; import App from './containers/App'; import Index from './containers/Index'; import NotFound from './components/NotFound'; import Users from './containers/Users'; export default ( <Route path="/" ...
src/components/adventure/AdventureMap.js
mdicarlo3/cautious-disco
import React, { Component } from 'react'; import { connect } from 'react-redux'; import GoogleMap from 'google-map-react'; import MapMarker from './AdventureMapMarker'; import * as adventureActions from '../../actions/adventureActions'; import mapStyles from "../../helpers/mapstyle.json"; const API_KEY = 'AIzaSyD1JS_1...
__tests__/Link.react-test.js
nickooms/racing-webgl2
// Link.react-test.js import React from 'react'; import renderer from 'react-test-renderer'; import Link from '../src/components/Link.react'; test('Link changes the class when hovered', () => { const component = renderer.create( <Link page="http://www.facebook.com">Facebook</Link> ); let tree = component.toJ...
js/components/profile/SkillDetails.js
kishorevarma/nakiva.com
import React, { Component } from 'react'; import { map } from 'underscore'; export default class SkillDetails extends Component { render() { let {skillDetails, ...rest} = {...this.props}; let {skills, section, id} = {...skillDetails}; return ( <div className="skillDetailsCont"> <div className="section">...
src/components/posts_new.js
reactjs-andru1989/blog
import React, { Component } from 'react'; import { Field, reduxForm } from 'redux-form'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { createPost } from '../actions'; class PostsNew extends Component { renderField(field) { const { meta: { touched, error } } = field; ...
src/routes/Election/routes/Media/components/RelatedTagSection/RelatedTagSection.js
imrenagi/rojak-web-frontend
import React from 'react' export default class RelatedTagSection extends React.Component { render () { return ( <div> <div className='col-lg-3 col-md-3 col-sm-12 col-xs-12'> <h1>Hashtag Terkait</h1> </div> <div className='col-lg-9 col-md-9 col-sm-12 col-xs-12'> <...
tests/routes/Counter/components/Counter.spec.js
codingarchitect/react-counter-pair
import React from 'react' import { bindActionCreators } from 'redux' import { Counter } from 'routes/Counter/components/Counter' import { shallow } from 'enzyme' describe('(Component) Counter', () => { let _props, _spies, _wrapper beforeEach(() => { _spies = {} _props = { counter : 5, ...bindA...
src/admin/client/modules/apps/account/components/developer.js
cezerin/cezerin
import React from 'react'; import { Field, reduxForm } from 'redux-form'; import { Link } from 'react-router-dom'; import { TextField } from 'redux-form-material-ui'; import { CustomToggle } from 'modules/shared/form'; import messages from 'lib/text'; import style from './style.css'; import Paper from 'material-ui/Pa...
src/routes.js
matheuslc/jatoba
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import Index from './components/index'; import weather from './components/weather'; export default ( <Route path="/" component={Index}> <IndexRoute component={weather} /> </Route> );
node_modules/react-bootstrap/es/HelpBlock.js
C0deSamurai/muzjiks
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/components/FilterButton.js
Byte-Code/lm-digital-store-private-test
import React from 'react'; import PropTypes from 'prop-types'; import glamorous from 'glamorous'; const ApplyButton = glamorous.div(({ fontFamily, fontSize, textDecoration, isActive = false }) => ({ display: 'flex', justifyContent: 'center', alignItems: 'center', width: '320px', height: '60px', background:...
src/main.js
kanitsharma/general-js
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import './styles/main.scss' // Store Initialization // ------------------------------------ const store = createStore(window.__INITIAL_STATE__) // Render Setup // ------------------------------------ const MOUNT_N...
actor-apps/app-web/src/app/components/ToolbarSection.react.js
ganquan0910/actor-platform
import React from 'react'; import DialogStore from 'stores/DialogStore'; import ActivityActionCreators from 'actions/ActivityActionCreators'; //import AvatarItem from 'components/common/AvatarItem.react'; var getStateFromStores = () => { return {dialogInfo: null}; }; class ToolbarSection extends React.Component ...
js/redux/learn-redux/node_modules/react-router/es6/Route.js
austinjalexander/sandbox
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement } from './RouteUtils'; import { component, components } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var func = _React$PropTypes.func; /** * A <Route> is use...
test/specs/collections/Form/FormFieldInput-test.js
Rohanhacker/Semantic-UI-React
import React from 'react' import FormInput from 'src/collections/Form/FormInput' import Input from 'src/elements/Input/Input' import * as common from 'test/specs/commonTests' describe('FormInput', () => { common.isConformant(FormInput) it('renders a FormField with a Input control', () => { shallow(<FormInput...
pollard/index.js
freeformpdx/pollard
import React from 'react'; import ReactDOM from 'react-dom'; import App from './containers/App'; ReactDOM.render( <App />, document.getElementById('root') );
src/packages/@ncigdc/modern_components/ProjectCounts/ProjectCountsDataCategory.js
NCI-GDC/portal-ui
import React from 'react'; import { scaleOrdinal, schemeCategory20 } from 'd3'; import { compose, branch, renderComponent } from 'recompose'; import SummaryCard from '@ncigdc/components/SummaryCard'; import { makeFilter, mergeQuery } from '@ncigdc/utils/filters'; import Link from '@ncigdc/components/Links/Link'; import...
client/src/components/breweries/brewery-select.js
commoncode/ontap
/** * BrewerySelect component. * Select a Brewery from a dropdown of all breweries. */ import React from 'react'; import { Container } from 'flux/utils'; import brewerySelectStore from '../../stores/brewery-select'; import { fetchBreweries } from '../../actions/breweries'; import ModelSelect from '../generic/mode...
src/App.js
escabc/members-search-app
import React from 'react' import ApolloClient, { createNetworkInterface } from 'apollo-client' import { ApolloProvider } from 'react-apollo' import { HashRouter as Router, Route, Redirect } from 'react-router-dom' import Navigation from './Navigation' import ProfessionalMembers from './ProfessionalMembers' import Corp...
lib/src/page2/main.js
SerendpityZOEY/Solr-Search-React-UI
/** * Created by yue on 1/17/17. */ import React from 'react'; import ReactDOM from 'react-dom'; import Navbar from './navbar.js'; import baseTheme from 'material-ui/styles/baseThemes/lightBaseTheme'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import injectTapEventPlugin from 'react-tap-event-plugin';...
js/routes/TestRoute.js
rafalp/Misago-Frontend
import React from 'react' const TestRoute = ({ match }) => { return ( <div className="page-test"> <div className="jumbotron jumbotron-fluid py-3"> <div className="container"> <nav aria-label="breadcrumb"> <ol className="breadcrumb m-0 p-0"> <li className="breadcr...
src/modules/Tab/TabPane.js
Semantic-Org/Semantic-UI-React
import cx from 'clsx' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, useKeyOnly, } from '../../lib' import Segment from '../../elements/Segment/Segment' /** * A tab pane holds the content of ...
src/routes.js
blurbyte/hack-the-news
//Application routes declarations import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './containers/App'; import Story from './containers/Story'; export default ( <Route path="/" component={App}> <IndexRoute component={Story} /> </Route> );
test/test_helper.js
CaseyKelly/react-redux-weather-charts
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...
es/mobile/components/MainView/VideoDisabledMessage.js
welovekpop/uwave-web-welovekpop.club
import _jsx from "@babel/runtime/helpers/builtin/jsx"; import React from 'react'; import PropTypes from 'prop-types'; import { translate } from 'react-i18next'; import Button from "@material-ui/core/es/Button"; var enhance = translate(); var VideoDisabledMessage = function VideoDisabledMessage(_ref) { var t = _ref.t...
src/routes/admin/Admin.js
kumarrus/MuffinMan
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
components/SocialMediaList.js
turntwogg/final-round
import React from 'react'; import { FaFacebook, FaTwitter, FaInstagram, FaYoutube, FaTwitch, } from 'react-icons/fa'; import RaisedBox from './RaisedBox'; const SocialMediaListItem = ({ href, label, icon }) => ( <li className="social-media-list-item"> <RaisedBox> <a href={href} t...
src/routes/dashboardPages/processSearch/index.js
bhavik3jain/LibertyMutual320Project
import React from 'react'; import SearchProcess from './processSearch'; export default { path: '/processSearch', action() { return <SearchProcess />; }, };
src/svg-icons/action/settings-phone.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsPhone = (props) => ( <SvgIcon {...props}> <path d="M13 9h-2v2h2V9zm4 0h-2v2h2V9zm3 6.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-...
src/svg-icons/image/photo-album.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoAlbum = (props) => ( <SvgIcon {...props}> <path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4zm0 15l3-3.86 2.14 2.58 3-3.86L18 19H6z"/> </Sv...
src/js/components/Box/stories/Background.js
grommet/grommet
import React from 'react'; import { Box, Text } from 'grommet'; export const BackgroundBox = () => ( // Uncomment <Grommet> lines when using outside of storybook // <Grommet theme={...}> <Box pad="small" gap="small" align="start"> <Box pad="small" background={{ color: 'brand', opacity: true }} ...
NavigationReactNativeWeb/sample/zoom/createStateNavigator.js
grahammendick/navigation
import React from 'react'; import {Platform} from 'react-native'; import {StateNavigator} from 'navigation'; import {NavigationStack} from 'navigation-react-native'; import Grid from './Grid'; import Detail from './Detail'; const colors = [ 'maroon', 'red', 'crimson', 'orange', 'brown', 'sienna', 'olive', 'purple'...
client/components/Flex/Row.js
lakshyaranganath/pwa
import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; const Row = ({ className, tag, children, ...restProps }) => React.createElement(tag, { className: cn('row', { 'row--start': restProps.start, 'row--center': restProps.center, 'row--end': restProps.end, ...
test/specs/views/Card/Card-test.js
mohammed88/Semantic-UI-React
import faker from 'faker' import React from 'react' import * as common from 'test/specs/commonTests' import { sandbox } from 'test/utils' import Card from 'src/views/Card/Card' import CardContent from 'src/views/Card/CardContent' import CardDescription from 'src/views/Card/CardDescription' import CardGroup from 'src/v...
docs/src/app/components/pages/components/FloatingActionButton/Page.js
skarnecki/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import floatingButtonReadmeText from './README'; import floatingButtonExampleSim...
client/comps/logo.js
lisezmoi/alpha-bet
import React from 'react' const Logo = props => ( <div className='Logo'> <h1>Alpha Bet</h1> <span className='Logo-about' onClick={props.onToggleAbout} >i</span> </div> ) export default Logo
src/index.js
PAK90/comparisons
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; var App = require('./app'); ReactDOM.render(<App/>, document.querySelector("#myApp"));
client/components/profile/ProfilePage.js
andela-jmacharia/hati-DMS
import React from 'react'; import Header from '../common/Header'; /** * */ class ProfilePage extends React.Component { render() { return ( <div className="profile"> <Header /> <h3>Profile Page</h3> <p>&nbsp;&nbsp;User profiles goes here!</p> </div> ); } } export defaul...
app/components/HistoriqueCommandesUtilisateur/components/ListeCommandesUtilisateurContainer.js
Proxiweb/react-boilerplate
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { createStructuredSelector } from 'reselect'; import { format } from 'utils/dates'; import { List, ListItem, makeSelectable } from 'material-ui/List'; ...
screens/DetailScreen.js
stephenfri/rn-zhihu-daily
import React from 'react'; import { StatusBar, StyleSheet, View, Text, Dimensions, Image, ScrollView, ActivityIndicator, TouchableOpacity } from 'react-native'; import { SimpleLineIcons } from '@expo/vector-icons'; import AutoHeightWebView from 'react-native-webview-autoheight'; import { getNewsDetail } from '../api/d...
pollard/components/AddFoundSong.js
freeformpdx/pollard
import React, { Component } from 'react'; import guid from '../lib/guid'; export default class AddFoundSong extends Component { handleClick(event) { this.props.addSong({ inputs: [{ name: "title", value: this.props.song.title ? this.props.song.title : '', },{ name: "artist", ...
tests/lib/rules/vars-on-top.js
LinusU/eslint
/** * @fileoverview Tests for vars-on-top rule. * @author Danny Fritz * @author Gyandeep Singh */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ var rule = require("../....
server/sonar-web/src/main/js/main/nav/global/global-nav.js
vamsirajendra/sonarqube
import React from 'react'; import GlobalNavBranding from './global-nav-branding'; import GlobalNavMenu from './global-nav-menu'; import GlobalNavUser from './global-nav-user'; import GlobalNavSearch from './global-nav-search'; import ShortcutsHelpView from './shortcuts-help-view'; export default React.createClass({ ...
src/assets/js/react/components/Template/TemplateDeleteButton.js
GravityPDF/gravity-forms-pdf-extended
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { addTemplate, deleteTemplate, templateProcessing, clearTemplateProcessing } from '../../actions/templates' import { withRouter } from 'react-router-dom' /** * Renders a delete button which then queries our serve...
src/static/containers/Protected/index.js
KarimJedda/django-react-setup
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as actionCreators from '../../actions/data'; class ProtectedView extends React.Component { static propTypes = { isFetching: React.PropTypes.bool.isRequired, data: React.PropTypes....
src/DateContentRow.js
TeaBough/react-big-calendar
import clsx from 'clsx' import getHeight from 'dom-helpers/height' import qsa from 'dom-helpers/querySelectorAll' import PropTypes from 'prop-types' import React from 'react' import { findDOMNode } from 'react-dom' import * as dates from './utils/dates' import BackgroundCells from './BackgroundCells' import EventRow f...
app/react-icons/fa/tty.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaTty extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m10 29.3v4.3q0 0.3-0.2 0.5t-0.5 0.2h-4.3q-0.3 0-0.5-0.2t-0.2-0.5v-4.3q0-0.3 0.2-...
react-flux-mui/js/material-ui/src/svg-icons/maps/rate-review.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsRateReview = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 14v-2.47l6.88-6.88c.2-.2.51-.2.71 0l1.77 1.77c.2.2.2.51 0 .71L8.47 14H6zm1...
stories/media.stories.js
JimBarrows/Bootstrap-React-Components
import {storiesOf} from '@storybook/react' import React from 'react' storiesOf('bootstrap/media', module) .addDecorator((story) => <div className="container"> {story()} </div>) .add('todo', () => <p>To do</p>)
packages/danilosterHelloWorld/DEV/index.js
daniloster/react-experiments
import React from 'react'; import { render } from 'react-dom'; import HelloWorld from '../src/HelloWorld'; // app const div = document.createElement('div'); div.id = 'container'; div.style.backgroundColor = 'inherit'; div.style.width = '100vw'; div.style.height = '100vh'; document.body.style.margin = 0; document.bod...
static/node_modules/react-date-picker/src/TransitionView.js
unmeshpro/easyPost
import React from 'react' import { findDOMNode } from 'react-dom' import Component from 'react-class' import assign from 'object-assign' import join from './join' import toMoment from './toMoment' import forwardTime from './utils/forwardTime' import getTransitionEnd from './getTransitionEnd' import assignDefined from...
__tests__/components/Columns-test.js
odedre/grommet-final
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React from 'react'; import renderer from 'react-test-renderer'; import Columns from '../../src/js/components/Columns'; // needed because this: // https://github.com/facebook/jest/issues/1353 jest.mock('react-dom'); describe('Columns', () =>...
components/Modal/ModalBlock.js
iest/loggins
import React from 'react'; // This component will be wrapped by ReactTransitionGroup, giving it extra // lifecyle methods for controlling CSS classes export default React.createClass({ propTypes: { className: React.PropTypes.string, children: React.PropTypes.any, }, componentWillEnter(callback) { t...
src/svg-icons/device/airplanemode-inactive.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceAirplanemodeInactive = (props) => ( <SvgIcon {...props}> <path d="M13 9V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5v3.68l7.83 7.83L21 16v-2l-8-5zM3 5.27l4.99 4.99L2 14v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L1...
storybook/stories/HomeSiteRowStory.js
ujwalramesh/REHU-discourse
/* @flow */ 'use strict' import React from 'react' import { View } from 'react-native' import { storiesOf } from '@kadira/react-native-storybook' import HomeSiteRow from '../../js/components/home/HomeSiteRow' storiesOf('HomeSiteRow') .addDecorator((story) => ( <View style={{marginTop: 100}}>{story()}</View> )...
src/app/component/PropsSidebar.react.js
blueberryapps/react-bluekit
import ColorPicker from '../atoms/ColorPicker.react'; import Component from '../PureRenderComponent.react'; import Dropdown from '../atoms/Dropdown.react'; import font from '../styles/Font'; import headingStyles from '../styles/Headings'; import Icon from '../atoms/Icon.react'; import {mediaQueries} from '../styles/Med...
front/components/destination/destination.js
danbanwo/wanderly
import React, { Component } from 'react'; import { Link } from 'react-router'; import { render } from 'react-dom'; import DestinationModal from '../modal/destination-modal'; import '../../styles/destination.css' class Destination extends Component { constructor(props) { super(props); } displayDestination()...
src/encoded/static/components/navigation/components/BigDropdown/BigDropdownNavItem.js
hms-dbmi/fourfront
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import url from 'url'; import _ from 'underscore'; import memoize from 'memoize-one'; import Nav from 'react-bootstrap/esm/Nav'; import { console, memoizedUrlParse } from '@hms-dbmi-bgm/shared-portal-components/es/components/util'; import { B...
examples/with-redux/src/server/index.js
jaredpalmer/razzle
import App from '../common/containers/App'; import { Provider } from 'react-redux'; import React from 'react'; import configureStore from '../common/store/configureStore'; import express from 'express'; import { fetchCounter } from '../common/api/counter'; import qs from 'qs'; import { renderToString } from 'react-dom/...
src/components/Svg/Svg.js
Galernaya20/galernaya20.com
//@flow import React from 'react' import styled from 'styled-components' const Self = styled.svg` ${({currentColor}) => `fill: ${currentColor};`}; ` export const Svg = ({ children, width, height, viewBox, }: { children: any, width: number, height: number, viewBox: string, }) => ( <Self xmlns="...
src/es6/components/Tile.js
pietrzakacper/Roguelike-Dungeon-Crawler
import React from 'react'; const Tile = props => ( <div className={`tile ${props.type}`} /> ); Tile.propTypes = { type: React.PropTypes.string.isRequired }; export default Tile;
test/components/MainAppMenu.spec.js
arwilczek90/OpenPresenter
/** * Created by awilczek on 1/22/17. */ import { expect } from 'chai'; import React from 'react'; import { mount } from 'enzyme'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import MainAppMenu from '../../app/components/MainAppMenu'; function setup() { const component = mount( <MuiThe...
src/views/ProductDetail.js
kathy-ems/iConsume
import React, { Component } from 'react'; import { Animated, Image, Linking, ScrollView, StyleSheet, Text, View } from 'react-native'; import moment from 'moment'; export default class ProductDetail extends Component { constructor(props) { super(props); this.state = { animValue: new A...
src/svg-icons/image/photo-size-select-small.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoSizeSelectSmall = (props) => ( <SvgIcon {...props}> <path d="M23 15h-2v2h2v-2zm0-4h-2v2h2v-2zm0 8h-2v2c1 0 2-1 2-2zM15 3h-2v2h2V3zm8 4h-2v2h2V7zm-2-4v2h2c0-1-1-2-2-2zM3 21h8v-6H1v4c0 1.1.9 2 2 2zM3 7H...
app/components/NavBarFilter.js
mapbox/osm-comments
import React from 'react'; import {Link} from 'react-router'; var NavBarFilter = React.createClass({ render: function() { var allQuery = Object.assign({}, this.props.query, {show: "all"}); var filterQuery = Object.assign({}, this.props.query, {show: undefined}); var allActive = (this.props...
packages/arwes/src/Link/sandbox.js
romelperez/prhone-ui
import React from 'react'; import Arwes from '../Arwes'; import Link from './index'; export default () => ( <Arwes> <div style={{ padding: 20 }}> This is an <Link href="#">Intergalactic Link</Link>. </div> </Arwes> );
docs/src/app/components/pages/components/DropDownMenu/ExampleLongMenu.js
rscnt/material-ui
import React from 'react'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem'; const items = []; for (let i = 0; i < 100; i++ ) { items.push(<MenuItem value={i} key={i} primaryText={`Item ${i}`} />); } export default class DropDownMenuLongMenuExample extends React.Compo...
src/svg-icons/file/cloud-download.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileCloudDownload = (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-...
src/core/element-builder.js
surikaterna/formr
import React from 'react'; import Expression from '../expression/expression'; const isUpperCase = ch => ch === ch.toUpperCase(); /** * Converts from a "java-script object like structure" to a react element tree */ export default class ElementBuilder { constructor(componentFactory) { this._componentFactory = c...
src/routes.js
utkdigitalinitiatives/ibu
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Router from 'react-routi...
app/src/utils/router.js
rszczypka/swd-p1-meetup
import React from 'react'; import { a11y } from 'react-a11y'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import * as Pages from 'pages'; import store from '../stores'; import * as Containers from 'containers'; if (...
app/components/Modal/ConfirmDialog.js
acebusters/ab-web
import React from 'react'; import PropTypes from 'prop-types'; import SubmitButton from 'components/SubmitButton'; import { DialogContents, DialogTitle, DialogButtonWrapper, } from 'components/Modal/styles'; const ConfirmDialog = ({ title, msg, buttonText, onSubmit, handleClose }) => ( <DialogContents> {t...
src/frontend/navigation/components/Section.js
plotify/plotify
import AppBar from 'material-ui/AppBar' import NavigationDrawerButton from './NavigationDrawerButton' import PropTypes from 'prop-types' import React from 'react' import Toolbar from 'material-ui/Toolbar' import { connect } from 'react-redux' import { getCurrentSection } from '../selectors' import { withStyles } from '...
ui/app/pages/Events/Events.js
StamusNetworks/scirius
import React from 'react'; const Events = () => <div>Events</div>; Events.metadata = { category: 'STAMUS_ND', url: 'stamus-nd/events', } export default Events;
frontend/src/frontpage/containers/main-container.js
OptimusCrime/youkok2
import React from 'react'; import InfoBoxesContainer from './info-boxes-container'; import {MainBoxesContainer} from "./main-boxes-container"; export const MainContainer = () => ( <React.Fragment> <InfoBoxesContainer /> <MainBoxesContainer /> </React.Fragment> );
Demo/__tests__/index.ios.js
suffle/react-native-zoombox
import 'react-native'; import React from 'react'; import Index from '../index.ios.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
src/main.js
kristian76/geezer
/** * @file: src/components/main.js * */ import React from 'react' import { HashRouter as Router, Link, Route, Switch } from 'react-router-dom' import { connect } from 'react-redux' import ProjectListContainer from './containers/projectlistcontainer' import ProjectFormContainer from './containers/proje...
src/Badge.js
mattBlackDesign/react-materialize
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; const Badge = ({ className, newIcon, children, ...props }) => { let classes = { badge: true, 'new': newIcon }; return ( <span {...props} className={cx(classes, className)}> {children} </span> ); }...
old_examples/nested/app.js
mzabriskie/react-tabs
import React from 'react'; import { render } from 'react-dom'; import { Tab, Tabs, TabList, TabPanel } from '../../src/index'; import '../../style/react-tabs.css'; const App = () => { return ( <div style={{ padding: 50 }}> <Tabs> <TabList> <Tab>The Simpsons</Tab> <Tab>Futurama</...
frontend/src/Components/Table/TableOptions/TableOptionsColumn.js
lidarr/Lidarr
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import CheckInput from 'Components/Form/CheckInput'; import Icon from 'Components/Icon'; import { icons } from 'Helpers/Props'; import styles from './TableOptionsColumn.css'; function TableOptionsColumn(props) { const...
src/components/FilterLink.js
vandosant/fawn
import React from 'react'; import * as cmsActions from '../actions/cmsActions'; import { connect } from 'react-redux'; const FilterLink = ({filter,actions,children, currentFilter}) => { if (filter === currentFilter) { return <span>{children}</span>; } return (<a href="#" onClick={e => { e.preventDefault(...
node_modules/react-router/es/RouteUtils.js
AdamB59/Klient
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import React from 'react'; function isValidChild(object) { ...