path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
docs/src/app/components/pages/components/Slider/ExampleStep.js
barakmitz/material-ui
import React from 'react'; import Slider from 'material-ui/Slider'; const SliderExampleStep = () => ( <Slider step={0.10} value={.5} /> ); export default SliderExampleStep;
app/javascript/mastodon/features/keyboard_shortcuts/index.js
tateisu/mastodon
import React from 'react'; import Column from '../ui/components/column'; import ColumnBackButtonSlim from '../../components/column_back_button_slim'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-co...
src/containers/content/RecipesContent/index.js
mydearxym/mastani
// /* * * RecipesContent * */ import React from 'react' import { buildLog } from '@/utils/logger' import { pluggedIn } from '@/utils/mobx' import { RECIPE } from '@/constant' import Snippets from './Snippets' import Cheatsheets from './Cheatsheets' import FilterBar from './FilterBar' import { Wrapper, InnerWra...
app/sidebar/Sidebar.js
easyCZ/react-hackernews
import React from 'react'; import ArticleList from '../articles/ArticleList'; class Sidebar extends React.Component { render() { return ( <div className="col s3"> <ArticleList /> </div> ); } } export default Sidebar;
src/ReactRouteReadyContext.js
foysavas/react-route-ready
import React from 'react'; import PropTypes from 'prop-types'; import getHookedComponents from './getHookedComponents'; import getHookedPromiseChain from './getHookedPromiseChain'; import getUnreadyComponents from './getUnreadyComponents'; export default class ReactRouteReadyContext extends React.Component { static ...
react-flux-mui/js/material-ui/src/svg-icons/av/new-releases.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvNewReleases = (props) => ( <SvgIcon {...props}> <path d="M23 12l-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.1...
packages/components/__mocks__/tree.js
Talend/ui
import PropTypes from 'prop-types'; import React from 'react'; class TreeItem extends React.Component { render() { return ( // eslint-disable-next-line jsx-a11y/no-static-element-interactions <li id={this.props.item.id} role="treeitem" tabIndex="-1" onKeyDown={e => this.props.onKeyDown(e, this...
client/src/components/helpers/SkeletonSprite.js
otavioarc/freeCodeCamp
import React from 'react'; import styles from './skeletonStyles'; function SkeletonSprite() { return ( <div className='sprite-container'> <style dangerouslySetInnerHTML={{ __html: styles }} /> <svg className='sprite-svg'> <rect className='sprite' fill='#ccc' hei...
client/server.babel.js
TeamAusDigital/apec-connect
import path from 'path'; import express from 'express'; import compression from 'compression'; import cookieParser from 'cookie-parser'; import React from 'react'; import routes from './src/routes'; import { setupReducers, renderHTMLString, } from 'redux-router'; import reducers from './src/state/reducers'; con...
docs/src/App.js
paul-pagnan/react-swipe-away
import React from 'react'; import './App.css'; import SwipeAway from 'react-swipe-away'; import MdCheck from 'react-icons/lib/md/check'; class App extends React.Component { render() { return ( <div className="card-wrapper"> <SwipeAway className="card" backColor="gold" label={<Md...
react/src/components/Pagination.js
museumary/Museumary
/* Pagination component that renders buttons and signals a change page request */ import React, { Component } from 'react'; import 'static/css/Pagination.css' const defaultProps = { page: 1, numPages: 1, range: 4, half: 2 }; class Pagination extends Component { constructor(props) { su...
node_modules/google-map-react/develop/utils/utils/createEagerElementUtil.js
ClaaziX/foodshare
import React from 'react'; const createEagerElementUtil = ( hasKey, isReferentiallyTransparent, type, props, children ) => { if (!hasKey && isReferentiallyTransparent) { if (children) { return type({ ...props, children }); } return type(props); } const Component = type; if (childr...
src/components/BookTag/BookTag.js
k2data/books-ui
import React from 'react' import classes from './BookTag.scss' export function BookTag (props) { return ( <span className={classes['BookTag']}> {props.title} </span> ) } BookTag.propTypes = { title: React.PropTypes.string } export default BookTag
docs/src/components/Link.js
dsslimshaddy/material-ui
// @flow import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { Link as LinkRouter } from 'react-router'; import { withStyles } from 'material-ui/styles'; const styles = theme => ({ root: { color: 'inherit', textDecoration: 'none', '&:hover': { ...
src/svg-icons/action/help-outline.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHelpOutline = (props) => ( <SvgIcon {...props}> <path d="M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c...
packages/web/src/components/screens/login/LoginForm.js
hwaterke/inab
import {selectBackend, selectEmail, setCredentials} from '@inab/shared' import axios from 'axios' import PropTypes from 'prop-types' import React from 'react' import {Field, Form} from 'react-final-form' import {connect} from 'react-redux' import {addError} from '../../../actions/error' import {requiredField} from '../...
src/app.js
dimitardanailov/build-a-wiki-with-react-and-firebase
import React from 'react'; import Router from 'react-router'; import App from './components/App'; import Page from './components/Page'; const {Route} = Router; const routes = <Route handler={App}> <Route name='page' path='/page/:id' handler={Page} /> </Route>; Router.run(routes, Router.HistoryLocation, Root => Re...
app/src/components/Header.js
alpcanaydin/heygidi
import React, { Component } from 'react'; import { Link } from 'react-router'; import './Header.css'; class Header extends Component { render() { return ( <div className="header"> <Link to="/" className="logo"> HEYGİDİ </Link> <div className="links"> <a ...
src/builder/FormMaker.js
TonyYang9527/my-app
import React from 'react'; import PropTypes from 'prop-types'; import AllComponents from 'formiojs/components'; import Components from 'formiojs/components/Components'; import FormBuilder from 'formiojs/FormBuilder'; Components.setComponents(AllComponents); class FormMaker extends React.Component{ static def...
src/js/app.js
marcelaraujo/ECMAScript6_architecture
/** * App entry point * Contains the initialisation of our app. */ 'use strict'; import React from 'react'; //react components import BasketComponent from './components/Basket.js'; import ProductListComponent from './components/ProductList.js'; React.render(<BasketComponent />, document.getElementById('basket'));...
react-dev/containers/posts_index.js
WDTAnyMore/WDTAnyMore.github.io
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { PostIndexItem } from '../components/post_index_item'; import { fetchPosts, fetchSiteInfo } from '../actions/index'; class PostsIndex extends Component { componentWillMount() { this.props.fetchPosts(); this.props.fetc...
frontend/test/app/components/View-test.js
6a68/testpilot
import React from 'react'; import { assert, expect } from 'chai'; import sinon from 'sinon'; import { shallow, mount, render } from 'enzyme'; import { initialState as newsletterState } from '../../../src/app/reducers/newsletter-form'; import View from '../../../src/app/components/View'; const FooComponent = React.cr...
src/js/components/DataTable/stories/Simple.js
grommet/grommet
import React from 'react'; import { Box, DataTable } from 'grommet'; // Source code for the data can be found here // https://github.com/grommet/grommet/blob/master/src/js/components/DataTable/stories/data.js import { columns, DATA } from './data'; export const Simple = () => ( // Uncomment <Grommet> lines when us...
examples/with-now/src/client.js
jaredpalmer/react-production-starter
import React from 'react'; import { hydrate } from 'react-dom'; import App from './App'; hydrate(<App />, document.getElementById('root')); if (module.hot) { module.hot.accept(); }
docs/app/Examples/elements/Header/Variations/HeaderTextAlignmentExample.js
jamiehill/stardust
import React from 'react' import { Header, Segment } from 'stardust' const HeaderTextAlignmentExample = () => ( <Segment> <Header as='h3' textAlign='right'> Float Right </Header> <Header as='h3' textAlign='left'> Float Left </Header> <Header as='h3' textAlign='justified'> This t...
themes/frontend/assets/vendor/node_modules/react-toolbox/components/menu/__test__/index.spec.js
fonea/velon
import expect from 'expect'; import React from 'react'; import ReactDOM from 'react-dom'; import ReactTestUtils from 'react-addons-test-utils'; import Menu from '../Menu'; import MenuItem, {MenuItem as RawMenuItem} from '../MenuItem'; describe('MenuItem', function () { describe('#onClick', function () { it('pass...
client/modules/App/components/DevTools.js
OmarBERRABEH/dahakni
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-w" > <LogMonitor /> ...
examples/src/components/Multiselect.js
Craga89/react-select
import React from 'react'; import Select from 'react-select'; const FLAVOURS = [ { label: 'Chocolate', value: 'chocolate' }, { label: 'Vanilla', value: 'vanilla' }, { label: 'Strawberry', value: 'strawberry' }, { label: 'Caramel', value: 'caramel' }, { label: 'Cookies and Cream', value: 'cookiescream' }, { label...
src/components/GitEvent/GitEvent.js
vlad06/git-events
import React, { Component } from 'react'; import ImageLoader from '../ImageLoader'; class GitEvent extends Component { constructor() { super(); this.state = {hover: false} } mouseOver() { this.setState({hover: true}); } mouseOut() { this.setState({hover: false}); ...
packages/component/src/Middleware/AttachmentForScreenReader/ImageAttachment.js
billba/botchat
import { hooks } from 'botframework-webchat-api'; import React from 'react'; const { useLocalizer } = hooks; const ImageAttachment = () => { const localize = useLocalizer(); const label = localize('ATTACHMENT_IMAGE'); return <div>{label}</div>; }; export default ImageAttachment;
node_modules/react-bootstrap/es/Tab.js
nikhil-ahuja/Express-React
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from 'babel-runtime/helpers/extends'; import React from 'react'; import TabContainer from...
src/svg-icons/image/timelapse.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTimelapse = (props) => ( <SvgIcon {...props}> <path d="M16.24 7.76C15.07 6.59 13.54 6 12 6v6l-4.24 4.24c2.34 2.34 6.14 2.34 8.49 0 2.34-2.34 2.34-6.14-.01-8.48zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.4...
src/interface/others/LazyLoadStatisticBox.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import StatisticBox from './StatisticBox'; export { STATISTIC_ORDER } from './StatisticBox'; /** * @deprecated Use `interface/statistic/Statistic` instead. */ class LazyLoadStatisticBox extends React.PureComponent { static propTypes = { loader: P...
docs/src/app/components/pages/components/FontIcon/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 iconCode from '!raw!material-ui/lib/FontIcon/FontIcon'; import iconReadme...
src/App/components/modals/Win2Star.react.js
Rezmodeus/Multiplikation
import React from 'react'; import immutable from 'immutable'; import Actions from '../../Actions'; import {Modal, Button} from 'react-bootstrap'; import BigStar from './../BigStar.react.js' import { connect } from 'react-redux'; const Win2Star = React.createClass({ closeModal(){ this.props.backToStart(); this.pr...
tests/todo-item.js
bethazari/react-todo
import React from 'react'; import { mount, shallow } from 'enzyme'; import { expect } from 'chai'; import chai from 'chai'; import chaiEnzyme from 'chai-enzyme'; import TodoItem from './../src/js/todo-item.js' chai.use(chaiEnzyme()); let wrapper; describe('<TodoItem />', () => { describe('component', () => { ...
shared/fee/ealing.js
RalphSleigh/bookings
import React from 'react' import { Row, Col, FormGroup, Input, Table, InputGroup } from 'reactstrap'; import { Item, Span, A, Box } from 'react-html-email' import update from 'immutability-helper'; import moment from 'moment'; //this implements Ealing's camp pricing policy....
node_modules/react-bootstrap/es/ModalTitle.js
acalabano/get-committed
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 ...
ui/pages/Staff/constants.js
macarthur-lab/seqr
import React from 'react' import { Link } from 'react-router-dom' import PedigreeImagePanel from 'shared/components/panel/view-pedigree-image/PedigreeImagePanel' import { successStoryTypeDisplay } from 'shared/utils/constants' export const STAFF_SEARCH_FORM_NAME = 'customVariantSearch' export const INCLUDE_ALL_PROJEC...
src/Parser/Monk/Mistweaver/Modules/Spells/EssenceFont.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Wrapper from 'common/Wrapper'; import Analyzer from 'Parser/Core/Analyzer'; const debug = false; class EssenceFont extends Analyzer { castEF = 0; targetsEF = 0; on_byPlayer_cast(event) { const ...
tests/layouts/CoreLayout.spec.js
hack-duke/hackduke-ideate-website
import React from 'react' import TestUtils from 'react-addons-test-utils' import CoreLayout from 'layouts/CoreLayout/CoreLayout' function shallowRender (component) { const renderer = TestUtils.createRenderer() renderer.render(component) return renderer.getRenderOutput() } function shallowRenderWithProps (props...
src/PageItem.js
jamon/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const PageItem = React.createClass({ propTypes: { href: React.PropTypes.string, target: React.PropTypes.string, title: React.PropTypes.string, disabled: React.PropTypes.bool, previous: React.PropTypes.bool, next: React.PropTypes...
RN/RNFluxDemo/components/Login2.js
puyanLiu/LPYFramework
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { StyleSheet, Text, View } from 'react-native'; import { Actions } from 'react-native-router-flux'; import Button from "react-native-button"; class Login2 extends Component ...
src/rsg-components/ReactComponent/ReactComponent.spec.js
bluetidepro/react-styleguidist
import React from 'react'; import slots, { DOCS_TAB_USAGE } from '../slots'; import ReactComponent from './ReactComponent'; import { ReactComponentRenderer } from './ReactComponentRenderer'; import { DisplayModes } from '../../consts'; const exampleMode = 'collapse'; const usageMode = 'collapse'; const options = { c...
assets/javascripts/archon/components/AppSummaryCard.js
panli889/archon
import React from 'react'; import {Link} from 'react-router'; import Radium from 'radium'; import MDL from './MdlComponents'; import ProcSummaryBlock from './ProcSummaryBlock'; import LifescoreBar from './LifescoreBar'; import AppView from '../models/views/App'; import ProcView from '../models/views/Proc'; let AppSum...
src/index.js
Danjavia/PWA-ReactJS-Starter-Pack
/** * External Resources **/ import React from 'react'; import ReactDOM from 'react-dom'; // import { Router, browserHistory } from 'react-router'; import { BrowserRouter as Router } from 'react-router-dom'; import ApolloClient, { createNetworkInterface } from 'apollo-client'; import { ApolloProvider } from 'react-ap...
client/src/javascript/components/icons/Download.js
jfurrow/flood
import React from 'react'; import BaseIcon from './BaseIcon'; export default class Download extends BaseIcon { render() { return ( <svg className={`icon icon--download ${this.props.className}`} viewBox={this.getViewBox()}> <rect x="28.2" width="3.7" height="55.5" /> <polygon points="30,60 ...
app/javascript/mastodon/features/compose/components/character_counter.js
kagucho/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { length } from 'stringz'; export default class CharacterCounter extends React.PureComponent { static propTypes = { text: PropTypes.string.isRequired, max: PropTypes.number.isRequired, }; checkRemainingText (diff) { if (diff < 0)...
client/src/components/Listing/AddListing/AddListingComponents/ListingJobTypes.js
bwuphan/raptor-ads
import React from 'react'; import { Form, Dropdown } from 'semantic-ui-react'; import { jobCategories } from '../../jobCategories'; const ListingJobTypes = ({ onChange, getFormClass }) => <Form.Field className="ui center aligned grid"> <label htmlFor="category">Job Category</label> <Dropdown fluid ...
src/components/App.js
atixlabs/atm-mobileapp
import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import WalletService from '../services/WalletService'; import SessionUser from '../state/SessionUser'; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', back...
snippod_webapp/client/scripts/main.js
shalomeir/snippod-boilerplate
'use strict'; import React from 'react' import { Router, Route, Link } from 'react-router' import history from './utils/History.js' //location: process.env.NODE_ENV === 'production' ? HashLocation : HistoryLocation, //var router = require('./router'), var routes = require('./routes'), UIActions = require('./acti...
client/trello/src/app/routes/home/routes/boardView/components/Forms/UpdateBoardName/UpdateBoardName.js
Madmous/madClones
import React from 'react'; import { Field, reduxForm } from 'redux-form'; import FontAwesome from 'react-fontawesome'; import PropTypes from 'prop-types'; import './UpdateBoardName.css'; const propTypes = { isUpdateBoardNameOpen: PropTypes.bool.isRequired, boardViewActions: PropTypes.object.isRequired }; func...
src/svg-icons/maps/directions-transit.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsTransit = (props) => ( <SvgIcon {...props}> <path d="M12 2c-4.42 0-8 .5-8 4v9.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h12v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V6c0-3.5-3.58-4-8-4zM7.5 17c-.83 0-1.5-.67-1....
test/OverlayDeprecationSpec.js
albertojacini/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Position from '../src/Position'; import Transition from '../src/Transition'; import Portal from '../src/Portal'; import { shouldWarn } from './helpers'; describe('Components moved to react-overlays', () => { it('should warn ab...
client/components/PostItem/index.js
abinavseelan/restobook
import React from 'react'; import cn from 'classnames'; import { Link } from 'react-router-dom'; import distanceInWordsToNow from 'date-fns/distance_in_words_to_now'; import styles from './index.scss'; export default function PostItem( { username, createdAt, text, id, count = 0 }, ) { const postPermalink = `/post...
src/Parser/BalanceDruid/Modules/Spells/NewMoon.js
mwwscott0/WoWAnalyzer
import React from 'react'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import { formatPercentage } from 'common/format'; import Module from 'Parser/Core/Module'; import SPELLS from 'common/SPELLS'; import isMoonMo...
src/components/FullPage.js
cintiamh/ReduxPortfolio
import React from 'react'; const FullPage = () => ( <div className="full-page"> <div className="landing"> <h1>Cintia Higashi</h1> <h2>Front End Software Engineer</h2> <button>Check out my work!</button> </div> </div> ); export default FullPage;
src/media/js/addon/containers/dashboard.js
mozilla/marketplace-submission
import React from 'react'; import {connect} from 'react-redux'; import {ReverseLink} from 'react-router-reverse'; import {bindActionCreators} from 'redux'; import urlJoin from 'url-join'; import {fetch} from '../actions/dashboard'; import {AddonListingForDashboard} from '../components/listing'; import AddonSubnav from...
src/ButtonToolbar.js
yickli/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const ButtonToolbar = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'button-toolbar' }; }, render() { let classes = this.getBsClassSet(); ...
docs/src/app/components/pages/components/Divider/Page.js
ArcanisCz/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 dividerReadmeText from './README'; import DividerExampleForm from './Exam...
example/components/ConnectionStatus.js
aiham/opentok-react
import React, { Component } from 'react'; export default class ConnectionStatus extends Component { render() { let status = this.props.connected ? 'Connected' : 'Disconnected'; return ( <div> <strong>Status:</strong> {status} </div> ); } }
client/Tasks/TaskNew.js
AnnotatedJS/meteor-react-start-app
import React from 'react'; export default class TaskNew extends React.Component { constructor(props) { super(props); } /***************************************/ /* RENDER /***************************************/ render() { var p = this.props; return ( <div> <...
src/shared/components/login/signUpSection.js
tal87/operationcode_frontend
import React from 'react'; import Section from '../../../shared/components/section/section'; import LinkButton from '../../../shared/components/linkButton/linkButton'; const SignUpSection = () => ( <Section title="New user?" theme="white"> <p> Are you ready to deploy your future? Join Operation Code today ...
packages/reactor-kitchensink/src/examples/Charts/Area/BasicArea/BasicArea.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import { Container } from '@extjs/ext-react'; import { Cartesian } from '@extjs/ext-react-charts'; import ChartToolbar from '../../ChartToolbar'; import createData from './createData'; Ext.require([ 'Ext.chart.series.Area', 'Ext.chart.axis.Numeric', 'Ext.chart.axis...
frontend/src/components/RegisterView.js
Pseudonick47/sherlock
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Paper from 'material-ui/Paper'; import RadioButton from 'material-ui/Checkbox'; import RaisedButton from 'material-ui/RaisedButton'; import TextField from 'material-ui/TextField'; import * as actionCr...
src/App.js
hozefaj/project-helena
import React, { Component } from 'react'; import { BrowserRouter as Router, Route, } from 'react-router-dom' import './App.css'; import Organization from './components/Organization'; import Repo from './components/Repo'; class App extends Component { render() { return ( <Router> <div> ...
frontend/app/components/Login/Login.js
sabbir044/AutoRepair
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import LoginForm from './LoginForm'; class Login extends Component { constructor(props) { super(props); this.state = { username: '', password: '', buttonText: 'Login', disabledInput: false, disabledBu...
app/react-icons/fa/viadeo-square.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaViadeoSquare extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m26.4 23.2q0-1.7-0.6-3.2-0.9 0.5-1.9 0.7 0.5 1.1 0.5 2.6 0 2.6-1.7 4.4t...
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
jakey-wan-kenobi/angular-sass-uirouter-browsersync-seed
import React from 'react'; // 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'; React.render(<HelloWorld />, document.getElementById('react-root'));
app/containers/Dashboard/sagas/errorModalSaga.js
acebusters/ab-web
import React from 'react'; import { FormattedMessage } from 'react-intl'; import { take, put } from 'redux-saga/effects'; import { CONFIRM_DIALOG } from '../../Modal/constants'; import { CONTRACT_TX_ERROR } from '../../AccountProvider/actions'; import { modalAdd, modalDismiss } from '../../App/actions'; import message...
src/components/App.js
NagsCodehub/React_NodeApp
import React from 'react'; import Header from './Header'; //import SchedulePreview from './SchedulePreview'; import ContestList from './ContestList'; import Contest from './Contest'; import axios from 'axios'; import * as api from '../api'; import data from '../testdata'; const pushState=(obj,url) => window.hist...
src/components/LogicalDeviceLink.js
KozlovDmitriy/Pos.Hierarchy.Net
import React from 'react' import PropTypes from 'prop-types' import config from 'config' const LogicalDeviceLink = ({ deviceId, name }) => <a href={`${config.webappurl}/LogicalDevices/Details/${deviceId}`} target='_blank' >{name}</a> LogicalDeviceLink.propTypes = { deviceId: PropTypes.number.isRequired, name: ...
src/components/Form/TextField.js
welovekpop/uwave-web-welovekpop.club
import cx from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; export default class TextField extends React.Component { static propTypes = { className: PropTypes.string, type: PropTypes.string, icon: PropTypes.element, }; static defaultProps = { type: 'text', }; ...
src/image/Controls/ChangeColorForSelected.js
sanchesking9/image_builder
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Button from '../components/button'; @connect((state) => { const {image} = state; return {image}; }) export default class ChangeColorForSelected extends Component { changeColorForSelected = () => { const canvas = this.prop...
app/containers/Root.js
hadzimme/Crutta
import React from 'react' import { Provider } from 'react-redux' import configureStore from '../configureStore' import App from './App' const store = configureStore() const Root = () => ( <Provider store={store}> <App /> </Provider> ) export default Root
src/CarouselItem.js
roderickwang/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import TransitionEvents from './utils/TransitionEvents'; const CarouselItem = React.createClass({ propTypes: { direction: React.PropTypes.oneOf(['prev', 'next']), onAnimateOutEnd: React.PropTypes.func, active: React.PropTypes.bool, anima...
gatsby-strapi-tutorial/cms/plugins/content-manager/admin/src/components/AddFilterCTA/index.js
strapi/strapi-examples
/** * * AddFilterCTA * */ import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; // Design import Logo from '../../assets/images/icon_filter.png'; import Button from '../CustomButton'; import styles from './styles.scss'; class AddFilterCTA extends React.Co...
src/components/Effect.js
rcbdev/crit-cards
import React from 'react'; import {Card, CardHeader, CardText} from 'material-ui/Card'; const cardStyle = { margin: 12 }; export default function Effect({effect}){ return ( <Card style={cardStyle}> <CardHeader title={effect.name}/> <CardText>{effect.effect}</CardText> <...
frontend/app/js/containers/updaters.js
serverboards/serverboards
import React from 'react' import { unwrap } from 'app/utils' import PropTypes from 'prop-types' class Updaters extends React.Component{ componentDidMount(){ const updates = unwrap(this.props.store_enter, this.context.store.getState(), this.props) updates.map( (u) => this.context.store.dispatch(u()) ) } c...
src/components/common/SplashScreen.js
mdicarlo3/cautious-disco
import React, { Component } from 'react'; import { getRandomInt } from '../../helpers/helpers'; import classNames from 'classnames'; class SplashScreen extends Component { constructor(props){ super(props); this.state = { displayNumber: this.props.content, interval: null, timout: null } ...
src/svg-icons/device/signal-cellular-4-bar.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellular4Bar = (props) => ( <SvgIcon {...props}> <path d="M2 22h20V2z"/> </SvgIcon> ); DeviceSignalCellular4Bar = pure(DeviceSignalCellular4Bar); DeviceSignalCellular4Bar.displayName = 'DeviceSign...
src/svg-icons/editor/highlight.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorHighlight = (props) => ( <SvgIcon {...props}> <path d="M6 14l3 3v5h6v-5l3-3V9H6zm5-12h2v3h-2zM3.5 5.875L4.914 4.46l2.12 2.122L5.62 7.997zm13.46.71l2.123-2.12 1.414 1.414L18.375 8z"/> </SvgIcon> ); Edito...
src/pages/GridPage/GridPage.js
ro-savage/nwa-react-redux-boilerplate
import React from 'react' import ReactGridLayout, { WidthProvider as widthProvider } from 'react-grid-layout' const ReactGridLayoutWP = widthProvider(ReactGridLayout) function calculateLayoutContainer() { const browserWidth = window.innerWidth const browserHeight = window.innerHeight const rowHeight = 10 cons...
app/client/src/components/CampaignSettingsForm/CampaignSettingsForm.js
uprisecampaigns/uprise-app
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import TextField from 'material-ui/TextField'; import Toggle from 'material-ui/Toggle'; import AutoComplete from 'material-ui/AutoComplete'; import SelectField from 'material-ui/SelectField'; import Menu...
src/scenes/home/contact/contact.js
miaket/operationcode_frontend
import React from 'react'; import { Link } from 'react-router-dom'; import Section from 'shared/components/section/section'; import IconCard from 'shared/components/iconCard/iconCard'; import styles from './contact.css'; const Contact = () => ( <div> <Section title="Contact Us"> <p className={styles.center...
app/components/ProgressBar/index.js
fission/fission-ui
import React from 'react'; import ProgressBar from './ProgressBar'; function withProgressBar(WrappedComponent) { class AppWithProgressBar extends React.Component { constructor(props) { super(props); this.state = { progress: -1, loadedRoutes: props.location && [props.location.pathname]...
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/es/PopperContent.js
GoogleCloudPlatform/prometheus-engine
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized"; import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose"; im...
blueocean-material-icons/src/js/components/svg-icons/social/person.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const SocialPerson = (props) => ( <SvgIcon {...props}> <path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/> </SvgIcon> ); SocialPerson.displayName = 'SocialPerson'; SocialPerson....
src/components/StatusFeedItem.js
nicholasaiello/reactjs-squawk-some
import React from 'react'; /** * Parse text for filter matches */ const parseFilter = (i, text, fltr = '', clsName) => { fltr = fltr.toLowerCase(); const str = text.toLowerCase(); let start; if (!fltr || (start = str.indexOf(fltr)) === -1) { return [text]; } let end = 0, parts = []; co...
src/components/Main.js
jerrywei17/gallery
require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; import ReactDOM from 'react-dom'; //獲取圖片相關數據 import imageDatas from '../data/imageDatas.json'; //將圖片訊息轉成URL const imageDataArr = (function genImageURL(imageDatas) { imageDatas.forEach((singleImageData) => { singleImageDa...
app/react-icons/fa/mixcloud.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaMixcloud extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m28.8 23.5q0-1-0.6-1.8t-1.5-1.2q-0.1 0.8-0.4 1.6-0.1 0.4-0.5 0.6t-0.8 0.3q-...
src/charts/HealthChart/tests/HealthChart.js
frontendyteam/frontendy-components
// import React from 'react' // import TestUtils from 'react-addons-test-utils' // import HealthChart from '../HealthChart.js' describe('HealthChart', () => { it('Should render component', () => { // const shallowRenderer = TestUtils.createRenderer() // shallowRenderer.render(<HealthChart />) // const re...
node_modules/antd/es/collapse/index.js
prodigalyijun/demo-by-antd
import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _createClass from 'babel-runtime/helpers/createClass'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
docs/index.js
harjeethans/materialistic
import 'material-design-lite/material.css'; import 'dialog-polyfill/dialog-polyfill.css'; //import './assets/docs.css'; import css from '../src/index.scss'; import styles from './index.scss'; import React from 'react' import { render } from 'react-dom'; import { browserHistory, Router, Route, Link, IndexRoute } from...
src/svg-icons/action/assignment-returned.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssignmentReturned = (props) => ( <SvgIcon {...props}> <path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 ....
chrome-extension/parcel-react/src/js/main.js
wxyyxc1992/Webpack-Boilerplate
import React from 'react'; import ReactDOM from 'react-dom'; import Button from './components/Button'; class App extends React.Component { render() { return ( <div> Your App injected to DOM correctly! <Button /> </div> ) } } // Message Listener function chrome.runtime.onMess...
examples/todos/src/components/App.js
gaearon/redux
import React from 'react' import Footer from './Footer' import AddTodo from '../containers/AddTodo' import VisibleTodoList from '../containers/VisibleTodoList' const App = () => ( <div> <AddTodo /> <VisibleTodoList /> <Footer /> </div> ) export default App
ui/src/main/js/components/Navigation.js
medallia/aurora
import React from 'react'; import { Link } from 'react-router-dom'; export default function Navigation({ fluid }) { return ( <nav className='navbar'> <div className={fluid ? 'container-fluid' : 'container'}> <div className='navbar-header'> <Link className='navbar-brand' to='/scheduler'> ...
src/components/CreateForm.js
alexedev/relay-workshop
import React from 'react'; const CreateForm = ({ submit, handleInputChange, fullName, imageUrl, nickname }) => ( <form className="pa4 black-80" onSubmit={submit}> <h2>Add new resident</h2> <label className="f6 b db mb2">Full Name</label> <input name="fullName" className="input-reset...
lib/components/Error.js
dunncl15/weathrly
import React from 'react'; const NotFound = ({ error }) => { return ( <section className="errors"> <h3>{ error }.</h3> </section> ); }; export default NotFound;