path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
shared/components/logout.component.js
Mr-Antivirus/Riur
/** * Copyright 2016-present, Dennis Norton. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @providesModule logout.component */ 'use strict'; import React, { Component } from 'react'; import PropTypes fro...
app/javascript/mastodon/features/compose/components/reply_indicator.js
SerCom-KC/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Avatar from '../../../components/avatar'; import IconButton from '../../../components/icon_button'; import DisplayName from '../../../components/display_name'; import { defineMessages, injec...
docs/sticky-text.js
Stanko/react-plx
import React from 'react'; import Plx from '../source/index'; const textData = [ { start: '.StickyText-trigger', duration: '30vh', properties: [ { startValue: 0, endValue: -50, unit: 'vh', property: 'translateY', }, { startValue: 0, endVal...
src/js/components/link__list/index.js
Arlefreak/arlefreakClient
import PropTypes from 'prop-types'; import React from 'react'; import Link from '../link__row'; const LinkList = ({ links }) => ( <ul className="links"> {links.map(link => ( <Link key={link.id} {...link} onClick={() => onLinkClick(link.id)} /> ))} </ul> ); LinkList.propTypes = { links: PropTypes.a...
client/admin/info/RocketChatSection.stories.js
subesokun/Rocket.Chat
import React from 'react'; import { dummyDate } from '../../../.storybook/helpers'; import { RocketChatSection } from './RocketChatSection'; export default { title: 'admin/info/RocketChatSection', component: RocketChatSection, decorators: [ (fn) => <div className='rc-old'>{fn()}</div>, ], }; const info = { ma...
src/dashboardComponents/dashboardChart.js
AInvest/AInvestWeb
import React, { Component } from 'react'; import Chart from 'chart.js'; import './dashboardStyles/dashboardStyles.css'; class ChartView extends Component { constructor(props) { super(props); } componentDidMount() { if (this.props.test) { // var promptLabels = this.props.promptDisplay.map((choice) ...
docs/src/app/components/pages/components/AppBar/ExampleIcon.js
w01fgang/material-ui
import React from 'react'; import AppBar from 'material-ui/AppBar'; /** * A simple example of `AppBar` with an icon on the right. * By default, the left icon is a navigation-menu. */ const AppBarExampleIcon = () => ( <AppBar title="Title" iconClassNameRight="muidocs-icon-navigation-expand-more" /> ); e...
app/javascript/mastodon/features/explore/tags.js
koba-lab/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { ImmutableHashtag as Hashtag } from 'mastodon/components/hashtag'; import LoadingIndicator from 'mastodon/components/loading_indicator'; import { connect } from 'react-redux'; import { fetc...
client/admin/invites/InvitesRoute.js
iiet/iiet-chat
import React from 'react'; import { usePermission } from '../../contexts/AuthorizationContext'; import NotAuthorizedPage from '../../components/NotAuthorizedPage'; import InvitesPage from './InvitesPage'; function InvitesRoute() { const canCreateInviteLinks = usePermission('create-invite-links'); if (!canCreateInv...
app/components/Table/Edit/RemoveFieldDialog/index.js
rayrw/skygear-apitable
/* @flow */ import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; const actions = (handleClose, handleRemoveFields) => [ <FlatButton label="Cancel" onTouchTap={handleClose} />, <RaisedButt...
src/Router.js
dmazin/react-native-router-flux
/** * Copyright (c) 2015-present, Pavel Aksonov * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. * */ import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { BackHandler } fro...
packages/core/src/icons/components/Fold.js
iCHEF/gypcrete
import React from 'react'; export default function SvgFold(props) { return ( <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 32 32" {...props} > <path data-name="\u9577\u65B9\u5F62 29 \u306E\u30B3\u30D4\u30FC 5" d="M16 16l-3 4h...
src/svg-icons/av/featured-video.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFeaturedVideo = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 9H3V5h9v7z"/> </SvgIcon> ); AvFeaturedVideo = pure(AvFeaturedVideo)...
src/js/components/Home/partial/AnalyticPlatform.js
ajainsyn/project
import React from 'react'; import analyticPlatform from '../../../../assets/images/analyticPlatform.png'; const AnalyticPlatform = () => ( <section className="section" id="analyticPlatforms"> <div className="container"> <div className="row align-items-center"> <div className="col-s...
src/components/Recent/Recent.js
ortonomy/flingapp-frontend
import React, { Component } from 'react'; import RecentItem from '../RecentItem/RecentItem'; import recent from './Recent.module.css'; import sidebar from '../Sidebar/Sidebar.module.css'; const recentFreelancers = [{ name: 'Jorge Brock', url: 'freelancer/101' },{ name: 'Lettie Hicks', url: 'freelancer/102' },{...
src/components/Histogram/Histogram.js
Swizec/h1b-software-salaries
import React, { Component } from 'react'; import * as d3 from 'd3'; import Axis from './Axis'; const HistogramBar = ({ percent, x, y, width, height }) => { let translate = `translate(${x}, ${y})`, label = percent.toFixed(0)+'%'; if (percent < 1) { label = percent.toFixed(2)+"%"; } i...
frontend/src/Components/Page/Header/ArtistSearchInput.js
lidarr/Lidarr
import _ from 'lodash'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Autosuggest from 'react-autosuggest'; import Icon from 'Components/Icon'; import keyboardShortcuts, { shortcuts } from 'Components/keyboardShortcuts'; import LoadingIndicator from 'Components/Loading/LoadingIndi...
packages/normalized-select/src/Component.js
nkbt/react-works
import React from 'react'; import PropTypes from 'prop-types'; export class NormalizedSelect extends React.PureComponent { static propTypes = { multiple: PropTypes.bool, onChange: PropTypes.func }; static defaultProps = { multiple: false, onChange: undefined }; onChange = event => { co...
node_modules/react-router/es/Switch.js
yaolei/Node-Clound
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
2-alpha/src/Admin/AdminHeader.js
saturninoharris/primer-design
import React from 'react' import styled from 'styled-components' import { Title } from '../components/Text' import AdminNav from './AdminNav' import { FlexVerticallyCenter } from '../components/Container' const Container = styled.div` ` const Header = FlexVerticallyCenter.extend` margin: 24px 0; ` export const A...
app/javascript/mastodon/features/audio/index.js
dunn/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import WaveSurfer from 'wavesurfer.js'; import { defineMessages, injectIntl } from 'react-intl'; import { formatTime } from 'mastodon/features/video'; import Icon from 'mastodon/components/icon'; import classNames from 'classnames'; import { throttle } from...
node_modules/_antd@2.13.4@antd/es/upload/Upload.js
ligangwolai/blog
import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
app/javascript/flavours/glitch/features/compose/components/warning.js
im-in-space/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from 'flavours/glitch/util/optional_motion'; import spring from 'react-motion/lib/spring'; export default class Warning extends React.PureComponent { static propTypes = { message: PropTypes.node.isRequired, }; render () { cons...
src/index.js
antyakushev/react-hex
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import Game from './components/Game' import store from './store' const app = ( <Provider store={store}> <Game /> </Provider> ) ReactDOM.render(app, document.getElementById('root'))
examples/MediaBox.js
mattBlackDesign/react-materialize
import React from 'react'; import MediaBox from '../src/MediaBox'; export default <MediaBox src="./img/sample-1.jpg" caption="A demo media box1" width="650"/>;
components/modal/submit-modal/submit-modal-component.js
resource-watch/resource-watch
import React from 'react'; import PropTypes from 'prop-types'; function SubmitModalComponent(props) { return ( <div className="c-submit-modal"> <div className="row"> <div className="header-div"> <h2>{props.header || 'Thank you for your submission.'}</h2> <p>{props.text}</p> ...
components/four/usbs.js
gembarrett/hamara-internet-app
import React from 'react'; import { StyleSheet, Text, View, Button } from 'react-native'; import FourTab from '../four-tab.js'; import { usbs } from '../../content/devices.js'; import { prefs } from '../../routes/prefs.js'; import { translatedText, translatedTitle, printLinks, printSections } from '../../routes/shared....
docs/src/ComponentsPage.js
yuche/react-bootstrap
/* eslint react/no-did-mount-set-state: 0 */ import React from 'react'; import Affix from '../../src/Affix'; import Nav from '../../src/Nav'; import SubNav from '../../src/SubNav'; import NavItem from '../../src/NavItem'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PropTable from '...
examples/real-world/index.js
Zack-Tillotson/redux
import 'babel-core/polyfill'; import React from 'react'; import Root from './containers/Root'; import BrowserHistory from 'react-router/lib/BrowserHistory'; React.render( <Root history={new BrowserHistory()} />, document.getElementById('root') );
src/client/components/user-home/user-home.js
adeperio/base
'use strict'; import './user-home.less'; import React from 'react'; import Bootstrap from 'react-bootstrap'; import UserActions from '../../flux/actions/user-actions'; import UserStore from '../../flux/stores/user-store'; import ActionTypes from '../../flux/constants/action-types'; import UserProfile from '../user-pro...
triton/src/components/ErrorWarning.js
Penson122/Third-Year-Project
import React from 'react'; import PropTypes from 'prop-types'; const style = { color: 'rgb(255, 125, 125)' }; const ErrorWarning = ({ text }) => ( <h1 style={style} >{text}</h1> ); ErrorWarning.propTypes = { text: PropTypes.string.isRequired }; export default ErrorWarning;
client/app/DevTools.react.js
VojtechBartos/diceware-www
'use strict'; 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-q' ...
src/templates/post-template.js
wpioneer/gatsby-starter-lumen
// @flow strict import React from 'react'; import { graphql } from 'gatsby'; import Layout from '../components/Layout'; import Post from '../components/Post'; import { useSiteMetadata } from '../hooks'; import type { MarkdownRemark } from '../types'; type Props = { data: { markdownRemark: MarkdownRemark } }; ...
src/index.js
MissingNotes/MissingNotesDauber
import dva from 'dva' import React from 'react' import './index.css' import ReactDOM from 'react-dom' import Toolbar from './components/toolbar/index' import handlehighlight from './handleHighlight' // 1. Initialize const app = dva({ onStateChange: handlehighlight, }) // 2. Plugins // 3. model app.model(require('....
src/routes/Edit/components/ModifyCounters.js
mklinga/potatoro
/* @flow */ import React from 'react' import { Link } from 'react-router' import type { Timer, TimerType } from 'types/timer' import type { Props } from 'types/edit' import styles from './ModifyCounters.scss' import ModifyCounter from './ModifyCounter' import ToggleButton from 'components/ToggleButton' export const ...
src/client.js
stevewillard/relay-todomvc
import createHashHistory from 'history/lib/createHashHistory'; import React from 'react'; import ReactDOM from 'react-dom'; import Relay from 'react-relay'; import {Router} from 'react-router'; import ReactRouterRelay from 'react-router-relay'; import RelayLocalSchema from 'relay-local-schema'; import routes from './r...
node_modules/react-router/es/Switch.js
FoxMessenger/nyt-react
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
demo/view/home/app.js
snadn/think-react-app
import React from 'react' export default class App extends React.Component { render() { return <app> <h1>Hello Think-React-App</h1> {this.props.children} </app> } }
turismo_client/src/components/signup/signupForm.js
leiverandres/turismo-risaralda
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { Header, Form, Container, Dropdown, Dimmer, Loader } from 'semantic-ui-react'; const genderOpts = [ { key: 'm', text: 'Masculino', value: 'male' }, { key: 'f', text: 'Femenino', value: 'femal...
public/src/js/components/tool-settings/components/pencil-settings/pencil-settings.js
Robertmw/imagistral
/** * * Pencil Settings Component * @parent ToolSettings * @author Robert P. * */ import React from 'react'; import BaseComponent from '../../../base-component/base-component'; import {branch} from 'baobab-react/higher-order'; import * as actions from '../../actions'; const displayName = 'Pencil Settings'; cla...
src/propTypes/TransformPropTypes.js
dingbat/react-native-mock
/** * https://github.com/facebook/react-native/blob/master/Libraries/StyleSheet/TransformPropTypes.js */ import React from 'react'; const { PropTypes } = React; const arrayOfNumberPropType = PropTypes.arrayOf(PropTypes.number); const transformMatrixPropType = function (props, propName, componentName, ...rest) { ...
pages/index.js
waigo/waigo.github.io
import React from 'react'; import { Link } from 'react-router'; import { prefixLink } from 'gatsby-helpers'; import DocumentTitle from 'react-document-title'; import Header from '../components/header'; import Footer from '../components/footer'; import { config } from 'config'; export default class Index extends Reac...
common/app/components/NotFound/index.js
mubassirhayat/freecodecamp
import React from 'react'; export default class extends React.Component { constructor(props) { super(props); } static displayName = 'NotFound' static propTypes = {} componentDidMount() { } render() { return null; } }
src/parser/shared/modules/items/bfa/raids/crucibleofstorms/TridentOfDeepOcean.js
sMteX/WoWAnalyzer
import React from 'react'; import { calculatePrimaryStat } from 'common/stats'; import { formatNumber, formatPercentage } from 'common/format'; import ITEMS from 'common/ITEMS/index'; import SPELLS from 'common/SPELLS/index'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parse...
app/javascript/mastodon/components/autosuggest_emoji.js
Ryanaka/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import unicodeMapping from '../features/emoji/emoji_unicode_mapping_light'; import { assetHost } from 'mastodon/utils/config'; export default class AutosuggestEmoji extends React.PureComponent { static propTypes = { emoji: PropTypes.object.isRequire...
src/components/Footer/Footer.js
quyetvv/react-starter-kit
/** * 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 withStyles from 'isom...
src/components/Counter/Counter.js
rojasmi1/ArtCR
import React from 'react' import classes from './Counter.scss' export const Counter = (props) => ( <div> <h2 className={classes.counterContainer}> Counter: {' '} <span className={classes['counter--green']}> {props.counter} </span> </h2> <button className='btn btn-default' ...
client/src/components/Header.js
PeterChauYEG/api-and-webapp-boilerplate
import React from 'react' // import css import '../CSS/Header.css' const Header = (props) => { const { backgroundColor, } = props return ( <div className={`Header ${backgroundColor}`}> {props.children} </div> ); } Header.propTypes = { backgroundColor: React.PropTypes.string.isRequired, }...
client/modules/home/containers/dashboards/chart_viewer.js
JSSolutions/Databazel
import { useDeps, composeWithTracker, composeAll } from 'mantra-core'; import React from 'react'; import ChartViewer from '../../components/dashboards/presentation_mode/chart_viewer.jsx'; import Loading from '../../../core/components/partial/loading.jsx'; export const composer = ({ context, dashboard }, onData) => { ...
app/routes.js
daviseford/real-estate-update
// @flow import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './containers/App'; import HomePage from './containers/HomePage'; export default ( <Route path="/" component={App}> <IndexRoute component={HomePage} /> </Route> );
app/javascript/mastodon/features/public_timeline/index.js
rutan/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader fro...
src/components/CartPanel.js
longyarnz/WelFurnish-E-Commerce
import React, { Component } from 'react'; import TileSection from './TileSection'; import BigItemView from './BigItemView'; import CustomOrder from './CustomOrder'; export default class CartPanel extends Component { constructor(props){ super(props); this.actions = this.actions.bind(this); this.state = { ...
src/Header/Header.js
AbhiPrasad/vizi
import React from 'react'; import { Row, Col } from 'reactstrap'; import './Header.css'; import SearchBar from './SearchBar/SearchBar'; const Header = ({ setCompanyName }) => { return ( <Row className="header-top"> <Col xs="6" sm="4"> <SearchBar change={(ite...
fujion-archetype-parent/fujion-archetype-react/src/main/resources/archetype-resources/src/main/webjar/app/__className__.es6.js
fujion/fujion-framework
import React, { Component } from 'react'; class ${ClassName} extends Component { componentDidMount() { } componentWillUnmount() { } render() { return React.createElement('div', { className : 'text-center' }, '${displayName}'); } } // Must export top-level component as ReactComponent export { ${ClassN...
src/components/search_bar.js
jurrish/react-youtube-clone
//when a user types in an input, we make a request to youtube api //always import react if you're using jsx so our file can access React's scope. import React, { Component } from 'react'; //index needs a reference to this SearchBar instance since everything is SILOED //functional component is a 'dumb component' that ...
src/components/condition-item.js
sunkay/m-diary
import React, { Component } from 'react'; import { Link } from 'react-router'; export default class ConditionItem extends Component { render(){ return( <li className="condition-item collection-item"> <h4 className="list-group-item-heading">{this.props.title}</h4> <p className="list-group-i...
gatsby-strapi-tutorial/cms/admin/admin/src/components/ListPlugins/index.js
strapi/strapi-examples
/* * * * ListPlugins * */ import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { map, size } from 'lodash'; // Design import Button from 'components/Button'; import Row from '../Row'; import styles from './styles.scss'; class ListPlugins extends React....
packages/react-scripts/fixtures/kitchensink/template/src/index.js
facebookincubator/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById(...
app/components/OptionTable/index.js
kevyu/ctp_demo
import React, { Component } from 'react'; import { Column, Table, AutoSizer } from 'react-virtualized'; import cx from 'classnames'; import 'react-virtualized/styles.css'; import OptionColumn from '../OptionColumn/index'; import styles from './OptionTable.scss'; function columnRenderer({ columnData, cellData }) { r...
src/icons/SoupCan.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class SoupCan extends React.Component { render() { if(this.props.bare) { return <g> <g> <ellipse cx="256" cy="80" rx="160" ry="64"></ellipse> <path d="M256,440c88.365,0,152-28.654,152-64V248c0,28.581-41.612,52.78...
src/components/Picker.js
RealOrangeOne/react-native-mock
import React from 'react'; import createMockComponent from './createMockComponent'; const Picker = React.createClass({ propTypes: { children: React.PropTypes.node }, statics: { Item: createMockComponent('Picker.Item') }, render() { return null; } }); module.exports = Picker;
common/components/items/ItemList.js
BlackMuttMedia/filmbreakdown.com
/* eslint-disable */ import React from 'react' import _ from 'lodash' import ItemListItem from './ItemListItem' import { Grid, Row, Col } from 'react-bootstrap' class ItemList extends React.Component { render(){ return ( <Row> {this.getItemListItems()} </Row> ) } getItemListItems = () => { var item...
flow-typed/react-i18next.js
theblock/theblock.github.io
// GPLv3, Copyright (C) 2017, theBlock, https://theblock.io // @flow /* eslint-disable no-unused-vars */ import React from 'react'; declare module 'react-i18next' { declare module.exports: { I18nextProvider: React.Element<any>, Interpolate: React.Element<any>, translate: (i18nKey?: Array<string>) => (R...
boilerplates/project/pcNative/app/index.js
FuluUE/vd-generator
import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import App from './App'; const render = (Component) => { ReactDOM.render( <AppContainer> <Component /> </AppContainer> , document.getElementById('app') ); }; ...
components/Head.js
djhi/dpc
import React from 'react'; import NextHead from 'next/head'; import PropTypes from 'prop-types'; import withIntl from '../lib/withIntl'; const defaultDescription = 'seo.description'; const defaultOGURL = 'https://parkour-dijon.com'; const defaultOGImage = ''; const Head = ({ title, description, url, ogImage, t }) => ...
src/js/contexts/AnnounceContext/stories/Assertive.js
grommet/grommet
import React from 'react'; import PropTypes from 'prop-types'; import { grommet } from 'grommet/themes'; import { AnnounceContext, Box, Grommet, Heading, Text } from 'grommet'; const Announcer = ({ announce, message, mode, role }) => { React.useEffect(() => { const timeout = 3000; announce(message, mode, tim...
fields/types/location/LocationField.js
nickhsine/keystone
import _ from 'underscore'; import React from 'react'; import Field from '../Field'; import { Button, Checkbox, FormField, FormInput, FormNote, FormRow } from 'elemental'; /** * TODO: * - Remove dependency on underscore * - Custom path support */ module.exports = Field.create({ displayName: 'LocationField', g...
docs/app/Examples/collections/Table/Types/TableExampleCollapsing.js
mohammed88/Semantic-UI-React
import React from 'react' import { Header, Image, Table } from 'semantic-ui-react' const TableExampleCollapsing = () => { return ( <Table basic='very' celled collapsing> <Table.Header> <Table.Row> <Table.HeaderCell>Employee</Table.HeaderCell> <Table.HeaderCell>Correct Guesses</T...
examples/js/column-filter/number-filter-without-empty-option.js
prajapati-parth/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
client/App.js
eantler/google
/** * Root Component */ import React from 'react'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import IntlWrapper from './modules/Intl/IntlWrapper'; // Import Routes import routes from './routes'; // Base stylesheet require('./main.css'); export default functi...
test/react/visual/tests/__decorators__/.router.decorator.js
JulienPradet/pigment-store
import React from 'react' import {MemoryRouter} from 'react-router' export default (renderFn) => () => <MemoryRouter>{renderFn}</MemoryRouter>
packages/core/src/icons/components/MinusOne.js
iCHEF/gypcrete
import React from 'react'; export default function SvgMinusOne(props) { return ( <svg width="1em" height="1em" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" {...props} > <circle cx={16} cy={16} r={15} stroke="currentColor" s...
src/test-components.js
brankol/cog
import React from 'react'; import test from 'tape'; import { shallow } from 'enzyme'; import sinon from 'sinon'; import Greeter from './components/Greeter'; test('Greeter', nest => { nest.test('... should contain ...', assert => { const wrapper = shallow(<Greeter text="Hello" name="Earthling" />); ...
2017/Cati/React/apresentacao2/projeto1/react-notes/src/index.js
LorhanSohaky/UFSCar
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/index.js
geoffadams/christmas-lights-kata
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { createStore } from 'redux' import Promise from 'bluebird' import Display from './containers/VisibleDisplay' import christmasLights from './reducers' import createPixelsStructure from './lib/createPixelsStructure'...
client/js/InitWeb.js
pxpeterxu/react-express-scaffolding
import React from 'react'; import ReactDOM from 'react-dom'; import MainRouter from '../templates/MainRouter'; require('es6-promise').polyfill(); require('es6-object-assign').polyfill(); document.addEventListener('DOMContentLoaded', () => { ReactDOM.render( React.createElement(MainRouter), document.getEleme...
src/index.js
harrydu2014/gallery-by-react
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/GalleryByReactApp'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
src/js/pages/ProposalDetailMatchesPage.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import translate from '../i18n/Translate'; import connectToStores from '../utils/connectToStores'; import AuthenticatedComponent from '../components/AuthenticatedComponent'; import TopNavBar from '../components/TopNavBar/TopNavBar.js'; import...
src/primitives/other/button/index.js
mpigsley/sectors-without-number
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Spinner from 'primitives/other/spinner'; import './style.scss'; export default function Button({ children, className, minimal, primary, skinny, loading, noMargin, ...rest }) { let loadingSpinn...
src/TrailsPost.js
melaniebmn/peaktrails
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import SectionHeading from './SectionHeading'; import imgIcons from './assets/img/icons--trail.png'; import trails from './trails.json'; const ImgContainer = styled.figure` overflow: hidden; display: flex; alig...
js/app/ShopCart/index.js
springxiege/generator-react-router
/** * 购物车 */ 'use strict'; import React from 'react' import { findDOMNode } from 'react-dom' import { connect } from 'react-redux' import { Link } from 'react-router' import { ShopCart, Increment, Decrement, DeleteConfirm, SelectShopGoodsSingle, SelectShopGoodsMultiple } from './constants' im...
demos/demo/src/components/Project/index.js
idream3/cerebral
import React from 'react' import {connect} from 'cerebral/react' import {state} from 'cerebral/tags' import ProjectCard from './card' import ProjectForm from './form' /** Note: we use a separate 'card' component so that we do * not compute the 'projectWithDetails' computed when the project * is new (isSelected but no...
src/docs/examples/Accordion/ExampleAccordion.js
rajeshpillai/zs-react-pattern-lib
import React from 'react'; import Accordion from 'zs-react/Accordion'; /** Custom message */ export default function AccordionExample() { var input = [{ name: 'Title 1', content: 'Content belongs to title 1' },{ name: 'Title 2', content: 'Content belongs to title 2' }] return <Accordion ...
src/svg-icons/action/picture-in-picture-alt.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPictureInPictureAlt = (props) => ( <SvgIcon {...props}> <path d="M19 11h-8v6h8v-6zm4 8V4.98C23 3.88 22.1 3 21 3H3c-1.1 0-2 .88-2 1.98V19c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H3V4.97h18v14.05z"/> </Svg...
src/components/dumbComponents/tab.js
ShantanuShirpure/Portfolio
import React from 'react' import {Link} from 'react-router' export default class Tab extends React.Component { componentWillMount() { } componentDidUpdate(){ } render() { //console.log(this.props.imageInfo + " this is image path") return ( <div class="tab settings-tab...
frontend/src/Settings/DownloadClients/RemotePathMappings/EditRemotePathMappingModal.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React from 'react'; import Modal from 'Components/Modal/Modal'; import { sizes } from 'Helpers/Props'; import EditRemotePathMappingModalContentConnector from './EditRemotePathMappingModalContentConnector'; function EditRemotePathMappingModal({ isOpen, onModalClose, ...otherPr...
node_modules/_rc-calendar@9.0.4@rc-calendar/es/date/DateTBody.js
ligangwolai/blog
import _defineProperty from 'babel-runtime/helpers/defineProperty'; import React from 'react'; import createReactClass from 'create-react-class'; import PropTypes from 'prop-types'; import cx from 'classnames'; import DateConstants from './DateConstants'; import { getTitleString, getTodayTime } from '../util/'; functi...
packages/react-events/src/FocusScope.js
STRML/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type { ReactResponderEvent, ReactResponderContext, } from 'shared/ReactTypes'; import React from 'react'; ...
actor-apps/app-web/src/app/components/ActivitySection.react.js
bradparks/actor-platform___im_client_cross_platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import ActivityActionCreators from 'actions/ActivityActionCreators'; import ActorAppConstants from 'constants/ActorAppConstants'; import ActivityStore from 'stores/ActivityStore'; import UserProfile from 'components/activity/UserProfile.react'...
app/components/hops/Hop.js
MitchLillie/brewhome
import React from 'react' const Hop = React.createClass({ render: function () { return ( <tr> <td className='col-md-4'>{this.props.name}</td> <td className='col-md-2'>{this.props.aa}%</td> <td className='col-md-2'>{this.props.oz} oz</td> <td className='col-md-2'>{this.props....
src/svg-icons/av/library-music.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvLibraryMusic = (props) => ( <SvgIcon {...props}> <path d="M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 5h-3v5.5c0 1.38-1.12 2.5-2.5 2.5S10 13.88 10 12.5s1.12-2.5 2.5-2.5c.57...
frontend/src/components/common/Card.js
icedcoffeeallday/CostPers
import React from 'react'; import { View } from 'react-native'; const Card = (props) => { return ( <View> {props.children} </View> ); }; export { Card };
src/components/Resume/ResumeDownloadPDF.js
angeloocana/angeloocana
import React from 'react'; import A from '../A'; import { FormattedMessage } from 'react-intl'; import PdfIcon from 'react-icons/lib/md/picture-as-pdf'; import styled from 'styled-components'; const Wrapper = styled.div` display: inline-block; float: right; padding: 0 0 0 0; font-size: ${({ theme }) => theme.s...
packages/material-ui-icons/src/CheckBox.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let CheckBox = props => <SvgIcon {...props}> <path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" /> </SvgIcon>; Che...
src/clincoded/static/libs/bootstrap/alert.js
ClinGen/clincoded
'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; const AlertMessage = ({visible, message, type, customClasses}) => { let defaultClasses = 'feedback-message alert'; // Config visibility class let visibilityClass = 'isHidden'; if (visible) { visibilityCl...
docs/app/Examples/views/Statistic/Content/StatisticExampleValues.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Icon, Image, Statistic } from 'semantic-ui-react' const StatisticExampleValues = () => ( <Statistic.Group> <Statistic> <Statistic.Value>22</Statistic.Value> <Statistic.Label>Saves</Statistic.Label> </Statistic> <Statistic> <Statistic.Value text> ...
src/svg-icons/action/alarm-off.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAlarmOff = (props) => ( <SvgIcon {...props}> <path d="M12 6c3.87 0 7 3.13 7 7 0 .84-.16 1.65-.43 2.4l1.52 1.52c.58-1.19.91-2.51.91-3.92 0-4.97-4.03-9-9-9-1.41 0-2.73.33-3.92.91L9.6 6.43C10.35 6.16 11.16 6...
client/component/schema/replace/types/date.js
johngodley/search-regex
/** * External dependencies */ import React from 'react'; import { translate as __ } from 'i18n-calypso'; /** * Internal dependencies */ import ModifyDate from '../../modify/types/date'; /** * Display a column modification form * @param {object} props - Component props * @param {boolean} props.disabled - Dis...
app/javascript/mastodon/features/account/components/action_bar.js
dwango/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import DropdownMenuContainer from '../../../containers/dropdown_menu_container'; import { NavLink } from 'react-router-dom'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl...
src/components/icons/SalesforceIcon.js
austinknight/ui-components
import React from 'react'; const SalesforceIcon = props => ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 4 28 12"> {props.title && <title>{props.title}</title>} <path d="M21.9593578,2.72659767 C25.2924879,2.72659767 27.9948018,5.46201583 27.9948018,8.83614765 C27.9948018,1...