path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/Icon.js
JedWatson/react-octicons
import React from 'react'; import classNames from 'classnames'; import { map, keys } from '../Octicons'; const Icon = React.createClass({ displayName: 'Icon', propTypes: { className: React.PropTypes.string, icon: React.PropTypes.oneOf(keys), type: React.PropTypes.oneOf(['danger', 'default', 'muted', 'primary'...
components/Layout/Footer.js
zendesk/copenhelp
import React from 'react' import Link from '../Link' import s from './Footer.css' class Footer extends React.Component { render() { return ( <footer className={s.footer} role="navigation"> <Link className={s.nav} to="/terms"> Terms </Link> <a className={s.nav} href="https:...
src/svg-icons/image/filter-vintage.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterVintage = (props) => ( <SvgIcon {...props}> <path d="M18.7 12.4c-.28-.16-.57-.29-.86-.4.29-.11.58-.24.86-.4 1.92-1.11 2.99-3.12 3-5.19-1.79-1.03-4.07-1.11-6 0-.28.16-.54.35-.78.54.05-.31.08-.63.08-.9...
packages/core/admin/admin/src/pages/HomePage/HomeHeader.js
wistityhq/strapi
import React from 'react'; import styled from 'styled-components'; import PropTypes from 'prop-types'; import { useIntl } from 'react-intl'; import { Typography } from '@strapi/design-system/Typography'; import { Link } from '@strapi/design-system/Link'; import { Stack } from '@strapi/design-system/Stack'; import { Box...
src/mobile/components/Video/__tests__/index.js
u-wave/web
import React from 'react'; import { render } from '@testing-library/react'; import MediaSourceContext from '../../../../context/MediaSourceContext'; import Video from '..'; function noop() {} describe('mobile <Video />', () => { it('should show empty player when media is null', () => { expect(() => render(( ...
fields/types/password/PasswordFilter.js
concoursbyappointment/keystoneRedux
import React from 'react'; import { SegmentedControl } from '../../../admin/client/App/elemental'; const EXISTS_OPTIONS = [ { label: 'Is Set', value: true }, { label: 'Is NOT Set', value: false }, ]; function getDefaultValue () { return { exists: true, }; } var PasswordFilter = React.createClass({ propTypes:...
src/components/Hours/Current/presenter.js
ndlib/usurper
import React from 'react' import PropTypes from 'prop-types' import WeeklyHours from './WeeklyHours' import { hoursOpenStatus } from 'constants/hours' import '../style.css' import './style.css' const statusClassName = (status) => { switch (status) { case hoursOpenStatus.OPEN: return 'open' case hoursO...
web/index.js
mrcnc/spatialconnect-server
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware, combineReducers } from 'redux'; import thunk from 'redux-thunk'; import { createLogger } from 'redux-logger'; import { Router, Route, IndexRoute, browserHistory } from 'react-rou...
src/routes/Login/components/LoginView.js
yhhuang79/admin-web
/* eslint react/jsx-boolean-value: 0 */ import React from 'react' // import { browserHistory } from 'react-router' import FontIcon from 'material-ui/FontIcon' import Paper from 'material-ui/Paper' import TextField from 'material-ui/TextField' import RaisedButton from 'material-ui/RaisedButton' import './LoginView.scss...
.storybook/Style_.stories.js
constelation/monorepo
import React from 'react' import { storiesOf, action } from '@kadira/storybook' import View from '../packages/View' import Style_ from '../packages/Style_' storiesOf('Style_', module) .addWithInfo('Style_Views inside a Style_View', () => ( <Style_ backgroundColor='lightgrey' border='1px solid black' ...
src/index.js
thomasthiebaud/lundalogik
import React from 'react' import ReactDOM from 'react-dom' import RedBox from 'redbox-react' import { LocaleProvider } from 'antd' import { AppContainer } from 'react-hot-loader' import { Provider } from 'react-redux' import enUS from 'antd/lib/locale-provider/en_US' import state from 'state' import './styles/global...
src/containers/square.js
JAstbury/react-simple-game
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { selectSquare } from '../actions/index'; import { bindActionCreators } from 'redux'; class Square extends Component { renderSquare() { return ( <div className="square-content"> {this.props.number} ...
node-life/build/build/react-native-life/ReactNativeLife/js/Components/View/ViewExample.js
CaMnter/front-end-life
/** * @author CaMnter */ import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import TouchableWithoutFeedback from 'TouchableWithoutFeedback'; class ViewBorderStyleExample extends React.Component { state = { showBorder: true }; render() { return...
src/app-client.js
salemdes/tinglado
/* global window document */ import React from 'react'; import { render } from 'react-dom'; import { BrowserRouter as Router } from 'react-router-dom'; import { App } from './components/App'; const AppClient = () => ( <Router> <App /> </Router> ); window.onload = () => { render(<AppClient />, document.getE...
app/containers/LandingContainer.js
oeb25/colio
import React from 'react'; import { connect } from 'redux/react'; import Landing from '../components/Landing'; import * as RoomActions from '../actions/RoomActions'; import { bindActionCreators } from 'redux'; @connect(state => ({ room: state.room })) export default class LandingContainer extends React.Component { ...
src/svg-icons/maps/restaurant-menu.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsRestaurantMenu = (props) => ( <SvgIcon {...props}> <path d="M8.1 13.34l2.83-2.83L3.91 3.5c-1.56 1.56-1.56 4.09 0 5.66l4.19 4.18zm6.78-1.81c1.53.71 3.68.21 5.27-1.38 1.91-1.91 2.28-4.65.81-6.12-1.46-1.46-4.2...
client/scripts/components/ExploreFilters.js
ahoarfrost/metaseek
import React from 'react'; // Material Design imports import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import ColorPalette from './ColorPalette'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; ...
imports/client/ui/pages/Documents.js
mgscreativa/base
import React from 'react'; import { Link } from 'react-router-dom'; import { Row, Col, Button } from 'react-bootstrap'; import DocumentsList from '../components/DocumentsList'; const Documents = () => ( <div className="Documents"> <Row> <Col xs={12}> <div className="page-header clearfix"> ...
app/components/Home.js
Toreant/monster_web
/** * Created by apache on 15-10-23. */ import React from 'react'; import HomeActions from '../actions/HomeActions'; import HomeStore from '../stores/HomeStore'; import Carousel from './Carousel'; import Loading from './Loading'; import Weather from './Weather'; import {Link} from 'react-router'; class Home extends ...
node_modules/react-bootstrap/src/Col.js
gitoneman/react-soc
import React from 'react'; import classSet from 'classnames'; import constants from './constants'; const Col = React.createClass({ propTypes: { xs: React.PropTypes.number, sm: React.PropTypes.number, md: React.PropTypes.number, lg: React.PropTypes.number, xsOffset: React.PropTypes.number, smO...
src/components/nav-icon/index.js
Adutchguy/portfolio
import './_nav-icon.scss'; import React from 'react'; import Icon from '../icon'; class Nav extends React.Component{ constructor(props) { super(props); this.state = { }; } render() { return ( <nav onClick={this.props.handleNavIconClickEvent} className='nav'> <Icon icon='...
client/test/components/presentational/manageRoleRow.spec.js
andela-jomadoye/JedDoc-Manager
import expect from 'expect'; import React from 'react'; import { shallow, } from 'enzyme'; import manageRoleRow from '../../../components/roles/manageRoleRow.jsx'; /** * This function setup the component * * @returns {object} */ function setup() { const props = { handleDelete: () => ({}), role: { ...
chrome/extension/todoapp.js
adamburmister/pinterest-image-layout-chrome-ext
import React from 'react'; import ReactDOM from 'react-dom'; import Root from '../../app/containers/Root'; import './todoapp.css'; chrome.storage.local.get('state', obj => { const { state } = obj; const initialState = JSON.parse(state || '{}'); console.log('todoapp.js'); const createStore = require('../....
src/client/containers/ContactsPage/ContactsPage.js
sisforserrgio/sisforserrgio.github.io
import React from 'react'; import { Link } from 'react-router'; import MenuButton from '../../components/MenuButton/MenuButton.js'; import './ContactsPage.css'; export default class ContactsPage extends React.Component { render() { return ( <div className="contactsPage"> <Link to="menu"> ...
frontend/app_v2/src/components/DictionaryDetail/DictionaryDetailContainer.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' import DictionaryDetailData from 'components/DictionaryDetail/DictionaryDetailData' import DictionaryDetailPresentation from 'components/DictionaryDetail/DictionaryDetailPresentation' import DictionaryDetailPresentationDrawer from 'components/DictionaryDetail...
src/components/Interviews/Create.js
jmichelin/interview-frontend
/** * Created by jmichelin on 12/28/16. */ import React from 'react'; class CreateInterviews extends React.Component { render() { return ( <div>Create Interviews Here</div> ) } } export default CreateInterviews
client/components/BackToAlbumLink.js
RobinClowers/photo-album
import React from 'react' import { withStyles } from '@material-ui/core/styles' import Typography from '@material-ui/core/Typography' import Icon from '@material-ui/core/Icon' import { Link } from 'client/routes' const styles = theme => ({ link: { alignItems: 'center', display: 'flex', margin: theme.spac...
src/containers/Asians/TabControls/PreliminaryRounds/CreateRooms/6_AdjudicatorsPreview/Navigation/index.js
westoncolemanl/tabbr-web
import React from 'react' import Button from 'material-ui/Button' export default ({ onBack, onNext, onNextDisabled }) => <div className={'flex flex-row justify-end mt3'} > <Button onClick={onBack} children={'BACK'} /> <Button variant={'raised'} color={'primary'} ...
web/react/src/client/components/locs/GridContainer/Hero/HeroTextContainer/HeroText/HeroTextChars/HeroTextChars.js
JamesMillercus/Portfolio-Website
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchCurrentChars, fetchScrolledItem } from './../../../../../../../actions'; import './assets/scss'; class HeroTextChars extends Component { componentDidUpdate() { // setTimeout(() => this.animateChars(), 2000); if (!t...
node_modules/antd/es/affix/index.js
prodigalyijun/demo-by-antd
import _extends from "babel-runtime/helpers/extends"; import _defineProperty from "babel-runtime/helpers/defineProperty"; import _classCallCheck from "babel-runtime/helpers/classCallCheck"; import _createClass from "babel-runtime/helpers/createClass"; import _possibleConstructorReturn from "babel-runtime/helpers/possib...
src/svg-icons/maps/directions.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirections = (props) => ( <SvgIcon {...props}> <path d="M21.71 11.29l-9-9c-.39-.39-1.02-.39-1.41 0l-9 9c-.39.39-.39 1.02 0 1.41l9 9c.39.39 1.02.39 1.41 0l9-9c.39-.38.39-1.01 0-1.41zM14 14.5V12h-4v3H8v-4c0-....
test/components/File.spec.js
Mobelux/docdown-editor
/* global jest, describe, it, expect */ /* eslint-disable no-unused-expressions */ import React from 'react'; import { mount } from 'enzyme'; import File from '../../app/components/File'; function setup() { const actions = { handleClick: jest.fn() }; const component = mount(<File path="/tmp/test.md" name="te...
modules/__tests__/isActive-test.js
cold-brew-coding/react-router
/*eslint-env mocha */ import expect from 'expect' import React from 'react' import createHistory from 'history/lib/createMemoryHistory' import IndexRoute from '../IndexRoute' import Router from '../Router' import Route from '../Route' describe('isActive', function () { let node beforeEach(function () { node =...
app/main.js
bullines/wwgs
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.js'; ReactDOM.render(<App />, document.getElementById('app-container'));
src/svg-icons/action/find-in-page.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFindInPage = (props) => ( <SvgIcon {...props}> <path d="M20 19.59V8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c.45 0 .85-.15 1.19-.4l-4.43-4.43c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5...
src/server.js
lian1925/redux
import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; // import httpProxy from 'http-proxy'; import path from 'path'; import createStore from './redux/create'; import A...
docs/app/Examples/elements/Label/Types/LabelExampleRibbonImage.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Grid, Image } from 'semantic-ui-react' const LabelExampleRibbonImage = () => ( <Grid columns={2}> <Grid.Column> <Image fluid label={{ as: 'a', color: 'black', content: 'Hotel', icon: 'hotel', ribbon: true }} src='http://semantic-ui.com/images/wiref...
examples/todomvc/containers/TodoApp.js
pairyo/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() { ...
app/scripts/Community/pages/MailchimpPage.js
igr-santos/bonde-client
import React from 'react' import { reduxForm } from 'redux-form' import { edit } from '../actions' import { FormRedux, SubmitButton, FormGroup, FormControl, ControlLabel, UploadImageField, SuccessMessage } from '../../Dashboard/Forms' import { FloatLayout } from '../../Dashboard/Grids' const MailchimpP...
modules/RoutingContext.js
arusakov/react-router
import React from 'react' import invariant from 'invariant' import getRouteParams from './getRouteParams' const { array, func, object } = React.PropTypes /** * A <RoutingContext> renders the component tree for a given router state * and sets the history object and the current location in context. */ const RoutingC...
lib/PaneFooter/tests/PaneFooter-test.js
folio-org/stripes-components
import React from 'react'; import { describe, beforeEach, it, } from 'mocha'; import { expect } from 'chai'; import PaneFooterInteractor from './interactor'; import { mount } from '../../../tests/helpers'; import Button from '../../Button'; import PaneFooter from '../PaneFooter'; describe('PaneFooter', () => {...
src/components/Contact/Contact.js
lizlove/tender-buttons
import React from 'react'; const Contact = () => { return ( <div> <h1>Contact</h1> <div> <div className="field"> <p className="about">Elizabeth Lovero, Software Engineer + Digital Preservation</p> <p className="about">Parker Fishel, Archivist and Audio Preserva...
src/routes/dashboardPages/logs/index.js
happyboy171/Feeding-Fish-View-
import React from 'react'; import Logs from './Logs'; export default { path: '/logs', action() { return <Logs />; } };
app/react-icons/fa/female.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaFemale extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m34.1 23.6q0 0.9-0.7 1.5t-1.5 0.6q-1.1 0-1.8-0.9l-5-7.7h-1v3l5.5 9.2q0.2 0.3 ...
loggit-todomvc/loggit/renderers/precompute_react_renderer.js
kevinrobinson/loggit
import React from 'react'; import _ from 'lodash'; import ReactInterpreter from '../react_interpreter' import Timer from '../timer'; // This batches with RAF, but also precomputes values for `compute` // before calling `render` in the next animation frame. // This way we can split the computation step from rendering,...
src/icons/SocialGoogleplus.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class SocialGoogleplus extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M242.1,275.6l-18.2-13.7l-0.1-0.1c-5.8-4.6-10-8.3-10-14.7c0-7,5-11.8,10.9-17.4l0.5-0.4c20-15.2,44.7-34.3,44....
packages/material-ui-icons/src/SignalWifi3BarTwoTone.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7L12 21.5 23.64 7z" /><path d="M3.53 10.95L12 21.5l8.47-10.55C20.04 10.62 16.81 8 12 8s-8.04 2.62-8.47 2.95z" /></R...
src/tag/map/index.js
artemdudkin/gtd
import React from 'react'; import autobind from 'autobind-decorator'; import Dimensions from 'react-dimensions'; import { YMaps, Map, Placemark } from 'react-yandex-maps'; import './styles.css'; @autobind class MapTag extends React.Component { constructor(props) { super(props); this.state = { ...
src/component/searchTab/FiltersComponent.js
BristolPound/cyclos-mobile-3-TownPound
import React from 'react' import { View, Image } from 'react-native' import DefaultText from '../DefaultText' import ProfileImage from '../profileImage/ProfileImage' import FixedScrollableList from './FixedScrollableList' import styles from './BusinessListStyle' import searchTabStyle from './SearchTabStyle' import Imag...
app/javascript/mastodon/components/__tests__/display_name-test.js
TheInventrix/mastodon
import React from 'react'; import renderer from 'react-test-renderer'; import { fromJS } from 'immutable'; import DisplayName from '../display_name'; describe('<DisplayName />', () => { it('renders display name + account name', () => { const account = fromJS({ username: 'bar', acct: 'bar@baz', ...
src/neuralNetwork/networkModals/DigitModalChart.js
csenn/nn-visualizer
import _ from 'lodash'; import React from 'react'; import d3 from 'd3'; export default class extends React.Component { componentDidMount() { this._renderChart(); } _renderChart() { const { data } = this.props; const width = 500; const barHeight = 45; const x = d3.scale.linear() .range...
src/index.js
dalewang1995/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'));
src/server.js
SgtRock91/FantasyOptimizer
/** * 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 path from 'path'; import express from 'express';...
src/chat/InterestedInitialQuestion.js
VasilyShelkov/scikic-app
import React from 'react'; import Typist from 'react-typist'; const InterestedInitialQuestion = ({ onClick }) => { let optionButtons; return ( <div className="ui attached message"> <Typist className="header" startDelay={1000} avgTypingDelay={40} onTypingDone={() => $(optionButtons).transition('sw...
dev/js/Nav.js
prador/project-one
import React from 'react' import '../scss/App.scss' var Nav = React.createClass({ render() { return (<div className='nav'> <h3> Noteworthy</h3> </div>) } }) export default Nav
rojak-ui-web/src/app/result/DefaultResult.js
rawgni/rojak
import React from 'react' import ResultGateway from './ResultGateway' import SearchEngine from '../utils/SearchEngine' const DefaultResult = () => { return ( <ResultGateway showIn={[/./]} hideIn={[/^(media)$/, /^(kandidat)$/, /^(pasangan)$/]}> <SearchEngine /> </ResultGateway> ) } export default Def...
src/components/Tooltip/__tests__/Tooltip.spec.js
instacart/Snacks
import React from 'react' import renderer from 'react-test-renderer' import { StyleRoot } from '@instacart/radium' import { mount, shallow } from 'enzyme' import { spy } from 'sinon' import Tooltip from '../Tooltip' describe('Tooltip', () => { it('renders Tooltip properly', () => { const tree = renderer .c...
src/ScrollView/utils/infiniteHelpers.js
SupremeTechnopriest/react-blueprint
import React from 'react'; import ConstantInfiniteComputer from '../computers/constantInfiniteComputer'; import ArrayInfiniteComputer from '../computers/arrayInfiniteComputer'; function createInfiniteComputer(data, children) { let computer; let numberOfChildren = React.Children.count(children); // This should be ...
src/components/historical-prices/historical-prices.js
SupasitC/Pricetrolley
import React from 'react' import {Row, Col} from 'react-bootstrap' import PriceList from './price-list' export default class HistoricalPrices extends React.Component { render() { const style = require('./historical-prices.scss'); return ( <div className={style.historicalPrices}> <h3>Historical...
src/client/todos/todo.react.js
grabbou/este
import './todo.styl'; import * as actions from './actions'; import Component from '../components/component.react'; import Editable from '../components/editable.react'; import React from 'react'; import immutable from 'immutable'; class Todo extends Component { render() { const {disabled, editable, todo} = this....
src/routes/events/BigmarkerEvent.js
zuban/edhunter
import React from 'react'; import PropTypes from 'prop-types'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './BigmarkerStyles.css'; import { Container, Row, Col, Form, FormGroup, Label, Input, Button } from 'reactstrap'; class BigmarkerEvent extends React.Component { static propT...
examples/official-storybook/stories/addon-cssresources.stories.js
storybooks/react-storybook
import React from 'react'; export default { title: 'Addons/Cssresources', }; export const PrimaryLargeButton = () => ( <button type="button" className="btn btn-lg btn-primary"> Primary Large Button </button> ); PrimaryLargeButton.story = { name: 'Primary Large Button', parameters: { cssresources: [ ...
src/components/Uploads.js
kinseyost/immutable-redux
import React, { Component } from 'react'; import styles from './Uploads.css'; import Button from './Button.js'; export default class Uploads extends Component { state = { fileInfo: [] }; handleUpload = (e) => { const { files } = e.target; const filesLength = files.length; const fileInfo = []; for ...
web/src/templates/uses-post.js
ajmalafif/ajmalafif.com
import React from 'react' import Helmet from 'react-helmet' import { format, formatDistance, differenceInDays } from 'date-fns' import { graphql } from 'gatsby' import { MDXProvider } from '@mdx-js/react' import { MDXRenderer } from 'gatsby-plugin-mdx' import CodeBlock from '../components/CodeBlock' import { Link } fro...
ajax/libs/react-instantsearch/3.3.0/Dom.js
nolsherry/cdnjs
/*! ReactInstantSearch 3.3.0 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof define ...
packages/material-ui/src/Stepper/Step.js
cherniavskii/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; export const styles = theme => ({ root: {}, horizontal: { paddingLeft: theme.spacing.unit, paddingRight: theme.spacing.unit, '&:first-child': { paddin...
src/screens/LoginScreen/index.js
msmsmsmsms/redux-period
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Alert, View, ActivityIndicator, Button, TextInput, } from 'react-native'; import { emailChanged, passwordChanged, loginUser } from '../../actions'; import styles from './styles'; class Login extends Component { rende...
tests/components/ClientRowHours.spec.js
idealgardens/codeword
import React from 'react' import ClientRowHours from 'components/ClientRowHours/ClientRowHours' describe('(Component) ClientRowHours', () => { it('should exist', () => { }) })
src/components/MainPage/Go/Go.js
cindyqian/BoardGames
import React, { Component } from 'react'; import {connect} from 'react-redux' import cs from '../../../services/CommunicationService' export default class Go extends Component { render() { return ( <div> </div> ) } }
SingularityUI/SingularityTailer/example/index.js
hs-jenkins-bot/Singularity
import { AppContainer } from 'react-hot-loader'; import React from 'react'; import ReactDOM from 'react-dom'; import { createStore, combineReducers, applyMiddleware, compose } from 'redux'; import thunk from 'redux-thunk'; import logger from 'redux-logger'; import { Provider } from 'react-redux'; import { default as ...
examples/todomvc/index.js
grahamlyus/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; import 'todomvc-app-css/index.css'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} ...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
falcontersama/chatbot
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
test/Scrollbars/resizing.js
maxdr/react-custom-scrollbars
import { Scrollbars } from 'react-custom-scrollbars'; import { render, unmountComponentAtNode } from 'react-dom'; import React from 'react'; import simulant from 'simulant'; export default function createTests() { let node; beforeEach(() => { node = document.createElement('div'); document.body....
app/components/Image/Image.js
arnef/ligatool-hamburg
import React from 'react'; import { Image as RNImage } from 'react-native'; import styles from './styles'; export default function Image(props) { const source = props.url ? { uri: props.url } : props.source; const imgStyle = [styles.image]; if (props.size) { imgStyle.push({ height: props.size, width: props...
docs/src/sections/CustomStylesSection.js
HPate-Riptide/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function CustomStylesSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> <Anchor id="custom-styles">Custom S...
js/jqwidgets/demos/react/app/grid/roweditwitheverpresentrow/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; class App extends React.Component { render() { let source = { localdata: generatedata(10), datafields: [ ...
src/components/common/NotFoundPage.js
Marsellus47/parking
import React from 'react'; const NotFoundPage = () => { return ( <div> <h3>Page not found</h3> <p>We are sorry but the page you are looking for does not exist.</p> </div> ); }; export default NotFoundPage;
src/components/Airmet/ContainerHeader.spec.js
KNMI/GeoWeb-FrontEnd
import React from 'react'; import ContainerHeader from './ContainerHeader'; import { mount, shallow } from 'enzyme'; import { Row } from 'reactstrap'; const TOGGLE_ACTION = 'TOGGLE_ACTION'; const testDispatch = sinon.spy(); const testActions = { toggleContainerAction: (evt) => { return TOGGLE_ACTION; } }; describe('(...
packages/material-ui-icons/src/CropDin.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let CropDin = props => <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z" /> </SvgIcon>; CropDin = pure(CropDin); CropDin.muiName = ...
src/GoalDescriptionGeneral/index.js
christianalfoni/ducky-components
import Icon from '../Icon'; import Typography from '../Typography'; import GoalButtonPopOverMenuItem from '../GoalButtonPopOverMenuItem'; import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './styles.css'; import moment from 'moment'; moment.locale('nb...
src/svg-icons/notification/network-locked.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationNetworkLocked = (props) => ( <SvgIcon {...props}> <path d="M19.5 10c.17 0 .33.03.5.05V1L1 20h13v-3c0-.89.39-1.68 1-2.23v-.27c0-2.48 2.02-4.5 4.5-4.5zm2.5 6v-1.5c0-1.38-1.12-2.5-2.5-2.5S17 13.12 17 1...
app/javascript/mastodon/components/short_number.js
tri-star/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { toShortNumber, pluralReady, DECIMAL_UNITS } from '../utils/numbers'; import { FormattedMessage, FormattedNumber } from 'react-intl'; // @ts-check /** * @callback ShortNumberRenderer * @param {JSX.Element} displayNumber Number to display * @para...
test/frontend/components/organisms/SurveyCompletionIndicatorTest.js
stanzheng/okcandidate
import React from 'react' import { expect } from 'chai' import TestUtils from 'react-addons-test-utils' import sinon from 'sinon' import SurveyCompletionIndicator from '../../../../assets/js/components/organisms/SurveyCompletionIndicator.jsx' import SurveyCompletionIndicatorHeart from '../../../../assets/js/compon...
client-web/client-web/src/components/Documentation.js
ppsari/final
import React from 'react' import MenuBar from '../components/MenuBar' import Footer from '../components/Footer' class MyDetailProperty extends React.Component { constructor(props) { super(props); this.state = { }; this.toggle = this.toggle.bind(this); } toggle() { this.setState({ mo...
src/react/get-children.js
nolimits4web/Swiper
import React from 'react'; function processChildren(c) { const slides = []; React.Children.toArray(c).forEach((child) => { if (child.type && child.type.displayName === 'SwiperSlide') { slides.push(child); } else if (child.props && child.props.children) { processChildren(child.props.children).fo...
docs/app/Examples/elements/Loader/Types/index.js
clemensw/stardust
import React from 'react' import { Message } from 'semantic-ui-react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const LoaderTypesExamples = () => ( <ExampleSection title='Types'> <ComponentExample...
src/routes.js
cheeselover/WCF2015
import React from 'react'; import {IndexRoute, Route} from 'react-router'; import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth'; import { About, App, CreateGame, Game, Games, Home, Login, LoginSuccess, NotFound, Register, } from 'containers'; export ...
src/frontend/containers/user/admin/add.js
PiGarageDoor/garage-pi
import React from 'react'; import TextField from 'material-ui/lib/text-field'; import { Link, browserHistory } from 'react-router'; import RaisedButton from 'material-ui/lib/raised-button'; import Paper from 'material-ui/lib/paper'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; impo...
components/Table/Holders/Card/Modifiers/Ato10.js
mattbajorek/blackJackReact
import React, { Component } from 'react'; import pos1 from './Positions/pos1'; import pos2 from './Positions/pos2'; import pos3 from './Positions/pos3'; import pos4 from './Positions/pos4'; import pos5 from './Positions/pos5'; import pos6 from './Positions/pos6'; import pos7 from './Positions/pos7'; import pos8 from '....
docs/src/app/components/pages/components/Chip/ExampleArray.js
andrejunges/material-ui
import React from 'react'; import Chip from 'material-ui/Chip'; /** * An example of rendering multiple Chips from an array of values. Deleting a chip removes it from the array. * Note that since no `onTouchTap` property is defined, the Chip can be focused, but does not gain depth * while clicked or touched. */ exp...
examples/huge-apps/components/GlobalNav.js
flocks/react-router
import React from 'react'; import { Link } from 'react-router'; const styles = {}; class GlobalNav extends React.Component { static defaultProps = { user: { id: 1, name: 'Ryan Florence' } }; constructor (props, context) { super(props, context); this.logOut = this.logOut.bind(this);...
jekyll-strapi-tutorial/api/plugins/users-permissions/admin/src/containers/EditPage/index.js
strapi/strapi-examples
/** * * EditPage * */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { bindActionCreators, compose } from 'redux'; import { FormattedMessage } from 'react-intl'; import { findIndex, get, isEmpty, isEq...
src/svg-icons/hardware/desktop-windows.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareDesktopWindows = (props) => ( <SvgIcon {...props}> <path d="M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v2H8v2h8v-2h-2v-2h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H3V4h18v12z"/> </SvgIcon> ); HardwareDesk...
src/routes.js
terios/playMe
/** * 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...
src/components/Header/Header.js
DeloitteDigitalUK/react-redux-starter-app
import React from 'react'; import { IndexLink } from 'react-router'; import classes from './Header.scss'; export const Header = () => ( <div> <h1>React Redux Starter App</h1> <ul> <li> <IndexLink to="/" activeClassName={classes.activeRoute}> Home </IndexLink> </li> <...
test/Popover.js
GetAmbassador/react-ions
import React from 'react' import StyledDiv from '../src/components/StyledDiv' import { Popover } from '../src/components/Popover/Popover' import styles from '../src/components/Popover/styles.css' describe('Popover', () => { const defaultProps = { showing: false, defaultPosition: 'top', content: (<p>Test ...
docs/src/components/navigation_item.js
Cadasta/django-skivvy
import React from 'react'; import PureRenderMixin from 'react-pure-render/mixin'; var NavigationItem = React.createClass({ mixins: [PureRenderMixin], propTypes: { sectionName: React.PropTypes.string.isRequired, active: React.PropTypes.bool.isRequired, onClick: React.PropTypes.func.isRequired, href:...
node_modules/react-bootstrap/es/TabContainer.js
hsavit1/gosofi_webpage
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 React from 'r...
geonode/contrib/monitoring/frontend/src/components/organisms/geonode-analytics/index.js
MapStory/geonode
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import HoverPaper from '../../atoms/hover-paper'; import HR from '../../atoms/hr'; import ResponseTime from '../../cels/response-time'; import Throughput from '../../cels/throughput'; import ErrorsRate from '../../cels...
app/containers/LanguageProvider/index.js
singaporesamara/SOAS-DASHBOARD
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...