path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
packages/wix-style-react/src/Sidebar/SidebarContentWrapper.js
wix/wix-style-react
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { st, classes } from './Sidebar.st.css'; import { dataHooks, sidebarSkins } from './constants'; /** A sidebar content children wrapper to add gradient */ export class SidebarContentWrapper extends Component { static propTypes = { ...
src/user-accounts/__tests__/userAccountsCard-test.js
binary-com/binary-next-gen
import React from 'react'; import { shallow } from 'enzyme'; import UserAccountsCard from '../UserAccountsCard'; describe('<UserAccountsCard />', () => { it('should render', () => { const loginid = 'CR12345'; const account = {}; const accounts = [{"account":"VRTC12345","currency":"USD"},{"a...
app/components/LoadingIndicator/index.js
c-dagostino/react-boilerplate-example
import React from 'react'; import Circle from './Circle'; import Wrapper from './Wrapper'; const LoadingIndicator = () => ( <Wrapper> <Circle /> <Circle rotate={30} delay={-1.1} /> <Circle rotate={60} delay={-1} /> <Circle rotate={90} delay={-0.9} /> <Circle rotate={120} delay={-0.8} /> <Cir...
stories/dialogs/lnurl-withdrawal-prompt.stories.js
LN-Zap/zap-desktop
import React from 'react' import { storiesOf } from '@storybook/react' import { LnurlWithdrawPrompt } from 'components/Lnurl' import { Window } from '../helpers' storiesOf('Dialogs', module) .addDecorator(story => <Window>{story()}</Window>) .add('Lnurl withdraw confirmation', () => ( <LnurlWithdrawPrompt ...
step6-serviceapi/node_modules/react-router/es6/IndexLink.js
jintoppy/react-training
'use strict'; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import React from 'react'; import Link from '....
packages/material-ui-icons/src/SlowMotionVideo.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let SlowMotionVideo = props => <SvgIcon {...props}> <path d="M13.05 9.79L10 7.5v9l3.05-2.29L16 12zm0 0L10 7.5v9l3.05-2.29L16 12zm0 0L10 7.5v9l3.05-2.29L16 12zM11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69c1....
src/inactive/New-form.js
MichaelLSmith/recipeBox
import React, { Component } from 'react'; import { Field, reduxForm } from 'redux-form'; import { connect } from 'react-redux'; import shortid from 'shortid'; import { createRecipe, getRecipes } from '../actions/actions'; class NewRecipe extends Component { onSubmit(values) { //this = component console.log(...
src/components/login/loginByPassword.js
liuweiGL/eastcoal_mgr_react
import React from 'react' import { Form, Input, message as msgTool } from 'antd' import { resultEnum } from '../../utils' import styles from './index.less' const FormItem = Form.Item; class LoginByPassword extends React.Component { componentWillReceiveProps( nextProps ) { const { validator, form: { setField...
src/client/components/filter/SearchBar/SearchBar.component.js
DBCDK/content-first
import React from 'react'; import {isMobile} from 'react-device-detect'; import TagsSuggester from './TagsSuggester.component'; import Icon from '../../base/Icon'; import Button from '../../base/Button'; import {withTagsFromUrl} from '../../hoc/AdressBar'; import withPermissions from '../../hoc/Permissions'; import {wi...
imports/ui/components/DocumentEditor.js
zarazi/movies-listie
/* eslint-disable max-len, no-return-assign */ import React from 'react'; import PropTypes from 'prop-types'; import { FormGroup, ControlLabel, FormControl, Button } from 'react-bootstrap'; import documentEditor from '../../modules/document-editor.js'; export default class DocumentEditor extends React.Component { c...
src/components/notauthenticated.js
rajatsharma305/eldritch
import React from 'react' import Box from 'grommet/components/Box' import Card from 'grommet/components/Card' import { Link } from 'react-router' const NotAuthenticated = props => <Box justify="center" pad="large" align="center" appCentered full texture="http://photos.imageevent.com/afap/wall...
src/client/app/page_list_sidebar/sub_components/AddPageComponent.js
raghuveerkancherla/yata
import React from 'react'; import ReactDOM from 'react-dom'; import styles from './styles.less'; import {Popover, Overlay} from 'react-bootstrap'; var AddPageComponent = React.createClass({ propTypes: { onAddPage: React.PropTypes.func }, getInitialState: function () { return { 'display': false ...
stories/Card.stories.js
react-materialize/react-materialize
import React from 'react'; import { storiesOf } from '@storybook/react'; import Card from '../src/Card'; import CardPanel from '../src/CardPanel'; import CardTitle from '../src/CardTitle'; import Col from '../src/Col'; import Row from '../src/Row'; const stories = storiesOf('Components/Card', module); stories.addPara...
node_modules/react-widgets/lib/Listbox.js
yomolify/cc-server
"use strict"; // import React from 'react'; // import cn from 'classnames'; // import TimeoutMixin from './mixins/TimeoutMixin'; // import PureRenderMixin from './mixins/PureRenderMixin'; // import PopupScrollToMixin from './mixins/PopupScrollToMixin'; // import RtlParentContextMixin from './mixins/RtlParentContextMix...
scripts/stores/NearByBookStore.js
nverdhan/satticentre
import React from 'react'; import { register } from '../AppDispatcher'; import { createStore, mergeIntoBag, isInBag } from '../utils/StoreUtils'; import { getDistanceFromLatLonInKm } from '../utils/HelperUtils';; import selectn from 'selectn'; const listBooks = [] // For Pagination, e.g. say In one Chuck 10 books are...
src/resume/sections/Education.js
Ciunkos/ciunkos.com
import React from 'react' import styled from 'styled' import { Section, InlineLink } from 'components' import contracts from 'resume/contracts' import { education as cover } from './covers' const Contracts = ({ contracts }) => ( <styled.Contracts spacing-3> {contracts.map(contract => ( <styled.Contract ke...
src/Trails.js
melaniebmn/peaktrails
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import styled from 'styled-components'; import SectionHeading from './SectionHeading'; import TrailsPostTile from './TrailsPostTile'; import trails from './trails.json'; const TrailsContainer = styled.div` justify-content: space-betwe...
fields/types/location/LocationField.js
andreufirefly/keystone
import _ from 'lodash'; 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', getIn...
src/icons/Checkmark.js
ericyd/surfplot-ui
/** * Modified from iconmonstr * http://iconmonstr.com/check-mark-2/ */ import React from 'react'; import Icon from './Icon'; const Checkmark = props => ( <Icon className={props.className}> <path d='M 37.372881,97.035 0,61.165339 11.589746,49.247542 37.152797,73.639576 87.855339,21.998559 99.661017 33.6...
packages/cf-component-loading/example/basic/component.js
mdno/mdno.github.io
import React from 'react'; import Loading from 'cf-component-loading'; const LoadingComponent = () => ( <div> <Loading /> </div> ); export default LoadingComponent;
video-player/src/components/VideoDetail.js
HeroSizy/Modern-react-with-redux
import React from 'react' const VideoDetail = ({video}) => { if (!video) { return <div>Loading...</div> } const videoId = video.id.videoId; // const playerOptions = { // fs : 1, // // }; // let optionsString = ''; const title = video.snippet.title; const descripti...
src/web/client/src/components/audit/audit.js
devmynd/cloud-access-manager
import React from 'react' import graphqlApi from '../../graphql-api' import './audit.scss' import AuditFlags from './audit-flags' import ReviewFlags from './review-flags' import AuditProgress from '../shared/audit-progress' import lodash from 'lodash' import MessagesContainer from '../shared/messages-container' export...
gbe/resources/assets/js/components/SimpleCard.js
DemocracyApps/Community-Budget-Explorer
import React from 'react'; var cardStore = require('../stores/CardStore'); var SimpleCard = React.createClass({ propTypes: { site: React.PropTypes.object.isRequired, componentData: React.PropTypes.object.isRequired, componentProps: React.PropTypes.object.isRequired, storeId: React...
pyxis/components/Select/index.js
gtkatakura/furb-desenvolvimento-plataformas-moveis
import React from 'react'; import { View, Text, Button, StyleSheet, Picker } from 'react-native'; const styles = new StyleSheet.create({ }); class Select extends React.Component { constructor(props) { super(props); this.state = { value: this.props.value.id, }; } onChange(value, index) { ...
app/javascript/mastodon/features/account/components/header.js
narabo/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import emojify from '../../../emoji'; import escapeTextContentForBrowser from 'escape-html'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import IconButton from '../.....
modules/__tests__/IndexRoute-test.js
nottombrown/react-router
/*eslint-env mocha */ /*eslint react/prop-types: 0*/ 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('an <IndexRoute/>', function () { const P...
node_modules/semantic-ui-react/dist/es/elements/Step/Step.js
mowbell/clickdelivery-fed-test
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/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/i...
core/src/plugins/access.ajxp_conf/res/js/AdminWorkspaces/editor/WorkspaceCreator.js
pydio/pydio-core
/* * Copyright 2007-2017 Charles du Jeu - Abstrium SAS <team (at) pyd.io> * This file is part of Pydio. * * Pydio is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, o...
client/modules/core/components/.stories/main_layout.js
TheAncientGoat/mantra-sample-blog-coffee
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import MainLayout from '../main_layout.coffee'; storiesOf('core.MainLayout', module) .add('default view', () => { const content = () => (<p>This is the content inside the Layout.</p>) return ( <MainLayout content={content...
src/components/clusters/summary/clusterSummaryComponent.js
tombolaltd/ecs-monitor
import React, { Component } from 'react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import { loadingBar } from '../../loading'; import { clusterStream$ } from '../../../dataStreams/clusterStreams'; import './clusterSummaryComponent.css'; function mapClusterSummaryEntryToDOM(entry) { ...
packages/material-ui-icons/src/ImageAspectRatio.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let ImageAspectRatio = props => <SvgIcon {...props}> <path d="M16 10h-2v2h2v-2zm0 4h-2v2h2v-2zm-8-4H6v2h2v-2zm4 0h-2v2h2v-2zm8-6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6...
src/index.js
sankhadeeproy007/react-football-app
import React from 'react'; import { render } from 'react-dom'; import { Router, Route, browserHistory, IndexRoute } from 'react-router'; import { Provider } from 'react-redux'; import injectTapEventPlugin from 'react-tap-event-plugin'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; injectTapEventP...
src/main/resources/static/bower_components/jqwidgets/demos/react/app/scheduler/resources/app.js
dhawal9035/WebPLP
import React from 'react'; import ReactDOM from 'react-dom'; import JqxScheduler from '../../../jqwidgets-react/react_jqxscheduler.js'; class App extends React.Component { componentDidMount () { this.refs.myScheduler.ensureAppointmentVisible('id1'); } render () { let appointments = new Arr...
src/index.js
jritterbush/fulljs
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; ReactDOM.render( <App initialData={window.initialData} />, document.getElementById('root') );
src/common/StatusLabel/StatusLabel.js
Syncano/syncano-dashboard
import React from 'react'; import ActiveStatusLabel from './ActiveStatusLabel'; import InactiveStatusLabel from './InactiveStatusLabel'; const StatusLabel = ({ isActive = false, activeStyles, inactiveStyles, withActive = true, withInactive = true }) => { if (isActive && withActive) { return <ActiveStatusLabel s...
specs/helper.js
oisu/react-modal
// The following eslint overrides should be removed when refactoring can occur /* eslint react/no-render-return-value: "warn" */ import React from 'react'; import ReactDOM from 'react-dom'; import Modal from '../lib/components/Modal'; let currentDiv = null; export function renderModal (props, children, callback) { ...
src/pages/Home/components/EditorAttributes/EditorAttributes.js
caspg/datamaps.co
import React from 'react' import { grey300 } from '@src/styles/colors'; import AttributeItem from './components/AttributeItem' const EditorAttributes = () => <div className="row center-xs"> <div className="col-xs-10"> <div className="EditorAttributes__container"> <div className="row around-xs"> ...
demo/index.js
varya/react-mapbox
import React from 'react'; import {render} from 'react-dom'; import MapBox from "../"; require("!style!css!./index.css"); render( <div> <h1>Hello, world!</h1> <div className="map"> <MapBox mapId="mapbox.streets" zoomControl={false} token="pk.eyJ1IjoidG9pdm9u...
.history/src/components/InstaCelebs/index_20171001005156.js
oded-soffrin/gkm_viewer
import React from 'react'; import { connect } from 'react-redux' import _ from 'lodash' const imgMap = { d: 'https://instagram.ftlv1-2.fna.fbcdn.net/t51.2885-19/s150x150/18095129_753964814784600_2717222797960019968_a.jpg', e: 'https://instagram.ftlv1-2.fna.fbcdn.net/t51.2885-19/s150x150/12071219_1640349196212432...
src/Divider/Divider.js
kittyjumbalaya/material-components-web
import React from 'react'; import PropTypes from 'prop-types'; const Divider = (props, context) => { const { inset, style, ...other } = props; const { baseTheme, prepareStyles, } = context.muiTheme; const styles = { root: { margin: 0, marginTop: -1, marginLeft: ins...
src/Parser/Warlock/Affliction/Modules/Items/Tier20_4set.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage } from 'common/format'; class Tier20_4set ...
src/people/people.js
codehangar/react-redux-rockstarter
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import CircularProgress from 'material-ui/CircularProgress'; import Paper from 'material-ui/Paper'; import { List, ListItem } from 'material-ui/List'; import { container } from '../styles/main.scss'; import { fetchPeop...
src/components/icon/icon.js
woshisbb43/coinMessageWechat
import React from 'react'; import PropTypes from 'prop-types'; import classNames from '../../utils/classnames'; import deprecationWarning from '../../utils/deprecationWarning'; const deprecateValue = { 'safe_success': 'safe-success', 'safe_warn': 'safe-warn', 'success_circle': 'success-circle', 'succes...
js/Landing.js
daninmotion/react-02
import React from 'react' import {connect} from 'react-redux' import {Link} from 'react-router' import {setSearchTerm} from './actionCreators' const {string, func, object} = React.PropTypes const Landing = React.createClass({ contextTypes: { router: object }, propTypes: { searchTerm: string, dispatch: func }...
app/scripts/hocs/with-modal.js
hms-dbmi/higlass
import React from 'react'; import toVoid from '../utils/to-void'; const { Provider, Consumer } = React.createContext({ close: toVoid, open: toVoid, }); // Higher order component const withModal = (Component) => React.forwardRef((props, ref) => ( <Consumer> {(modal) => <Component ref={ref} {...props} ...
node_modules/exponent/src/Components/Video.js
15chrjef/mobileHackerNews
import React from 'react'; import ReactNative from 'react-native'; import Asset from '../Asset'; const { Component, PropTypes, } = React; const { StyleSheet, requireNativeComponent, NativeModules, View, } = ReactNative; const styles = StyleSheet.create({ base: { overflow: 'hidden', }, }); expor...
src/components/GithubButton/GithubButton.js
micooz/react-redux-universal-hot-example
import React from 'react'; const GithubButton = (props) => { const {user, repo, type, width, height, count, large} = props; let src = `https://ghbtns.com/github-btn.html?user=${user}&repo=${repo}&type=${type}`; if (count) src += '&count=true'; if (large) src += '&size=large'; return ( <iframe src=...
src/components/Radial.react.js
docker/kitematic
import React from 'react'; import classNames from 'classnames'; var Radial = React.createClass({ render: function () { var percentage; if ((this.props.progress !== null && this.props.progress !== undefined) && !this.props.spin && !this.props.error) { percentage = ( <div className="percentage"><...
src/sections/Projects.js
kazupooot/kazupooot.github.io
import React from 'react'; import PropTypes from 'prop-types'; import { Image, Text, Flex, Box } from 'rebass'; import { StaticQuery, graphql } from 'gatsby'; import styled from 'styled-components'; import Fade from 'react-reveal/Fade'; import Section from '../components/Section'; import { CardContainer, Card } from '....
admin/client/App/shared/Popout/index.js
Pop-Code/keystone
/** * A Popout component. * One can also add a Header (Popout/Header), a Footer * (Popout/Footer), a Body (Popout/Body) and a Pan (Popout/Pane). */ import React from 'react'; import Portal from '../Portal'; import Transition from 'react-addons-css-transition-group'; const SIZES = { arrowHeight: 12, arrowWidth: ...
test/autowhatever/multi-section/AutowhateverApp.js
moroshko/react-autosuggest
import React, { Component } from 'react'; import sinon from 'sinon'; import Autowhatever from '../../../src/Autowhatever'; import sections from './sections'; let app; export const renderSectionTitle = sinon.spy((section) => ( <strong>{section.title}</strong> )); export const getSectionItems = sinon.spy((section) =...
test/specs/views/Stastistic/Statistic-test.js
Semantic-Org/Semantic-UI-React
import _ from 'lodash' import React from 'react' import { SUI } from 'src/lib' import Statistic from 'src/views/Statistic/Statistic' import StatisticGroup from 'src/views/Statistic/StatisticGroup' import StatisticLabel from 'src/views/Statistic/StatisticLabel' import StatisticValue from 'src/views/Statistic/StatisticV...
actor-apps/app-web/src/app/components/dialog/messages/Image.react.js
liruqi/actor-platform-v0.9
import React from 'react'; import classnames from 'classnames'; import Lightbox from 'jsonlylightbox'; // lightbox init const lightbox = new Lightbox(); const lightboxOptions = { animation: false, controlClose: '<i class="material-icons">close</i>' }; lightbox.load(lightboxOptions); let cache = {}; class Image ...
docs/src/pages/components/pickers/DatePickers.js
lgollut/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import TextField from '@material-ui/core/TextField'; const useStyles = makeStyles((theme) => ({ container: { display: 'flex', flexWrap: 'wrap', }, textField: { marginLeft: theme.spacing(1), marginRight: theme.spacin...
src/svg-icons/action/view-list.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewList = (props) => ( <SvgIcon {...props}> <path d="M4 14h4v-4H4v4zm0 5h4v-4H4v4zM4 9h4V5H4v4zm5 5h12v-4H9v4zm0 5h12v-4H9v4zM9 5v4h12V5H9z"/> </SvgIcon> ); ActionViewList = pure(ActionViewList); Actio...
docs/server.js
IveWong/react-bootstrap
import 'colors'; import React from 'react'; import express from 'express'; import path from 'path'; import Router from 'react-router'; import routes from './src/Routes'; import httpProxy from 'http-proxy'; import metadata from './generate-metadata'; import ip from 'ip'; const development = process.env.NODE_ENV !== 'p...
src/Spinner.js
chris-gooley/react-materialize
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; const Spinner = ({ color, only }) => { let spinnerClasses = { 'spinner-layer': true }; if (only) { spinnerClasses['spinner-' + color + '-only'] = true; } else { spinnerClasses['spinner-' + color] = true; }...
src/icons/IosChatbubble.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosChatbubble extends React.Component { render() { if(this.props.bare) { return <g> <path d="M256,96C149.9,96,64,165.1,64,250.3c0,30.7,11.2,59.3,30.4,83.3c0.9,0.9,2.9,3.8,3.6,4.9c0,0-1-1.6-1.1-1.9c0,0,0,0,0,0...
src/Cascader/test/CascaderSpec.js
suitejs/suite
import React from 'react'; import ReactTestUtils from 'react-dom/test-utils'; import Cascader from '../Cascader'; import Button from '../../Button'; import { getDOMNode, getInstance } from '@test/testUtils'; const items = [ { value: '1', label: '1' }, { value: '2', label: '2' }, { value: ...
Realization/frontend/czechidm-core/src/content/codelist/CodeListTable.js
bcvsolutions/CzechIdMng
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import uuid from 'uuid'; // import * as Basic from '../../components/basic'; import * as Advanced from '../../components/advanced'; import * as Utils from '../../utils'; import { CodeListManager } from '../../redux'; ...
src--/index.js
wqzwh/react-phone
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import Routers from './routers'; import { getAllProducts } from './actions'; import { createStore, applyMiddleware } from 'redux'; import rootReducer from './reducers'; import thunk fr...
client/containers/overview.js
CodeWriterWriter/vidi-dashboard
'use strict' import React from 'react' import {connect} from 'react-redux' import {Link} from 'react-router' import {Panel, PageHeader, HealthList} from '../components/index' import ChartistGraph from 'react-chartist' import {subscribe, unsubscribe} from '../actions/vidi' import _ from 'lodash' export const Overview ...
src/components/Repos.react.js
Ethan1203/Reacttest1
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import DemoAction from'/src/components//DemoAction'; import RepoRow from '/src/components/RepoRow.react'; export default class Repos extends Component { render() { let repos = this.props.userRepos; /*當iterate產生多...
node_modules/react-bootstrap/es/Image.js
okristian1/react-info
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 ...
src/index.js
Sigfried/drugutil
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
packages/react/components/toggle.js
AdrianV/Framework7
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __reactComponentWatch from '../runtime-helpers/react-component-watch.js'; import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js'; import __reactComponentSetProps from '.....
src/components/App.js
enzoborgfrantz/react-boiler
import styled from 'styled-components'; import React from 'react'; import Button from './Button'; import Input from './Input'; import Form from './Form'; const AppWrapper = styled.div` padding: 5px; `; const Row = styled.div` display: flex; align-items: flex-end; > * { &:not(:first-child) { margin-l...
components/Layout/Navigation.js
cnsuva/cnsuva.io
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-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'; ...
src/components/header/index.js
eNdiD/wl_test_frontend
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; class Header extends Component { render() { return ( <div className='navbar navbar-inverse navbar-static-top'> <div className='container'> <div className='navbar-header'> ...
app/components/ListItem/index.js
abasalilov/react-boilerplate
import React from 'react'; import PropTypes from 'prop-types'; import Item from './Item'; import Wrapper from './Wrapper'; function ListItem(props) { return ( <Wrapper> <Item> {props.item} </Item> </Wrapper> ); } ListItem.propTypes = { item: PropTypes.any, }; export default ListIte...
app/javascript/mastodon/components/column_back_button_slim.js
Toootim/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; export default class ColumnBackButtonSlim extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; handleClick = () => { if (window.history && window.history.length ==...
packages/ringcentral-widgets/components/ActiveCallDialPad/index.js
ringcentral/ringcentral-js-widget
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import DialPad from '../DialPad'; import CircleButton from '../CircleButton'; import BackHeader from '../BackHeader'; import audios from '../DialButton/audios'; import EndIcon from '../../assets/images/End.svg'; import styles from './styl...
components/animals/vikuna.child.js
marxsk/zobro
import React, { Component } from 'react'; import { Text } from 'react-native'; import styles from '../../styles/styles'; import InPageImage from '../inPageImage'; import AnimalText from '../animalText'; import AnimalTemplate from '../animalTemplate'; const IMAGES = [ require('../../images/animals/vikuna/01.jpg'), ...
src/components/common/svg-icons/av/library-add.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvLibraryAdd = (props) => ( <SvgIcon {...props}> <path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-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-1 9h-4v4h-2v-4H9V9h4V5h2v4h4v2z"/> </S...
app/components/HintExample/index.js
nikgraf/future-react-ui
import React from 'react'; import Hint from 'ui-lib/StaticProperty/Hint'; import Hint2 from 'ui-lib/ModuleExport/Hint'; import Hint3 from 'ui-lib/ModuleExport/Hint'; const HintExample = () => { return ( <div> </div> ); }; export default HintExample;
src/components/users/UserFollowers.js
mg4tv/mg4tv-web
import PropTypes from 'prop-types' import React from 'react' import {compose, getContext} from 'recompose' const enhanceSubs = compose( getContext({ baseUrl: PropTypes.string.isRequired }), ) const UserFollowers = ({baseUrl}) => ( <div> </div> ) export default enhanceSubs(UserFollowers)
client/components/ui/loading.js
ZeHiro/kresus
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { get } from '../../store'; import { areWeFunYet, translate as $t } from '../../helpers'; import ExternalLink from './external-link'; import DisplayIf from './display-if'; let showLicense = areWeFunYet(); ex...
client/react/Desk.js
ed1d1a8d/macweb
import React, { Component } from 'react'; import TrackerReact from 'meteor/ultimatejs:tracker-react'; import Navbar from './Navbar.js'; class Desk extends TrackerReact(Component) { render() { return ( <div> <Navbar /> <div className="container"> <h2>Movies List</h2> <p>A...
examples/composition/src/eye/__tests__/view.js
clarus/redux-ship
// @flow import 'babel-polyfill'; import React from 'react'; import renderer from 'react-test-renderer'; import Eye from '../view'; function dispatch() {} const states = [{ color: null, isLoading: false, }, { color: null, isLoading: true, }, { color: 'red', isLoading: false, }, { color: 'red', isLoadi...
packages/modules/module-comments/src/client/containers/CommentCountUpdater.js
reimagined/resolve
import React from 'react' import { connect } from 'react-redux' import { connectReadModel } from '@resolve-js/redux' export class CommentCountUpdater extends React.PureComponent { componentDidUpdate(prevProps) { if (this.props.commentCount != null && prevProps.commentCount == null) { this.props.updateComme...
webapp/js/main.js
Stevenah/dhis2-datastore-application
import React from 'react'; import ReactDOM from 'react-dom'; import store from './store/Store'; import AppContainer from 'components/app/AppContainer'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import '../style/layout/layout.scss'; const App = () => ( <MuiThemeProvider> <AppContai...
components/screen_preview.js
kapone89/MonteOfficeExpo
import React, { Component } from 'react'; import { observer } from 'mobx-react/native'; import { Container, Header, Content, Button, Icon, Title, Grid, Col, Row, Left, Right, Body } from 'native-base'; import { Button as RneButton } from 'react-native-elements'; import ScreenThumbnail from './screen_thumbnail'; import ...
src/client/components/console/feedbacks/feedbacks.js
uuchat/uuchat
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { Breadcrumb, Button, Select } from 'antd'; import FeedbackTable from './feedbackTable'; import { fetchAsync } from '../common/utils'; import Tips from '../../common/tips'; const Option = Select.Option; export default class Feed...
websocket/client/Client/node_modules/react-native/Libraries/Modal/Modal.js
prayuditb/tryout-01
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
app/features/vocab/Levels/Levels.js
Kaniwani/KW-Frontend
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import cuid from 'cuid'; import Spinner from 'common/components/Spinner'; import { vocab } from 'features/vocab/actions'; import { selectVocabLevelIds, selectShouldLoad, selectLastLoad } from './selectors'; import Le...
src/components/Invites/Invite.js
unihackhq/skilled-acolyte-frontend
import React from 'react'; import PropTypes from 'prop-types'; import { observer, inject, PropTypes as MobxPropTypes } from 'mobx-react'; import { Button, Notification } from 'bloomer'; import { apiPost } from '../../utils/api'; import FatalButton from '../FatalButton'; import './Invite.scss'; class Invite extends Rea...
src/components/SegmentedControl.js
Filsh/elemental-themeable
import classnames from 'classnames'; import React from 'react'; module.exports = React.createClass({ displayName: 'SegmentedControl', propTypes: { className: React.PropTypes.string, equalWidthSegments: React.PropTypes.bool, onChange: React.PropTypes.func.isRequired, options: React.PropTypes.array.isRequired...
test/TabSpec.js
nickuraltsev/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Tab from '../src/Tab'; describe('Tab', () => { it('Should have class', () => { let instance = ReactTestUtils.renderIntoDocument( <Tab>Item content</Tab> ); assert.ok(ReactTestUtils.findRenderedDOMComponentWithC...
src/containers/Home.js
iris-dni/iris-frontend
import React from 'react'; import settings from 'settings'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; import { fetchPetitionGroups, fetchPetitionGroup } from 'actions/PetitionsActions'; import PageBuilder from 'components/PageBuilder'; const MODULES = [ { component: 'Hero', pr...
src/scripts/components/icons/CloseIcon.component.js
kodokojo/kodokojo-ui-commons
/** * Kodo Kojo - Software factory done right * Copyright © 2017 Kodo Kojo (infos@kodokojo.io) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at ...
jenkins-design-language/src/js/components/material-ui/svg-icons/editor/border-left.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const EditorBorderLeft = (props) => ( <SvgIcon {...props}> <path d="M11 21h2v-2h-2v2zm0-4h2v-2h-2v2zm0-12h2V3h-2v2zm0 4h2V7h-2v2zm0 4h2v-2h-2v2zm-4 8h2v-2H7v2zM7 5h2V3H7v2zm0 8h2v-2H7v2zm-4 8h2V3H3v18zM19 9h2V7h-2v2zm-4 12h2v-2h-2v2zm4-4h2v-2h-2v2zm...
packages/wix-style-react/src/TableActionCell/docs/examples/PrimaryBlueExample.js
wix/wix-style-react
import React from 'react'; import { classes } from '../TableActionCell.story.st.css'; import { TableActionCell } from 'wix-style-react'; const Example = () => ( <div className={classes.exampleRow}> <TableActionCell dataHook="story-primary-blue" primaryAction={{ text: 'Edit', skin: 's...
projects/twitch-web/src/components/Community.js
unindented/twitch-x
import React from 'react' import PropTypes from 'prop-types' import TopStreamsForCommunity from '../containers/TopStreamsForCommunity' export default function Community (props) { const {id} = props.match.params return ( <TopStreamsForCommunity id={id} limit={20} columns={5} /> ) } Comm...
test/Slider.spec.js
itsolutions-dev/react-styled-ui
import React from 'react'; import ReactTestRenderer from 'react-test-renderer'; import 'styled-components-test-utils/lib/jest'; import getTheme from '../src/getTheme'; import Slider from '../src/Slider'; import * as utils from '../src/utils/'; const theme = getTheme({ palette: { primary: '#1a5a99', primaryBo...
src/components/Airmet/AirmetReadMode.spec.js
KNMI/GeoWeb-FrontEnd
import React from 'react'; import AirmetReadMode from './AirmetReadMode'; import { mount, shallow } from 'enzyme'; import { Button } from 'reactstrap'; const airmet = { phenomenon: 'TEST', levelinfo: { levels: [{ unit: 'FL', value: 4 }, { unit: 'M', value: 4 }] } }; describe('(Component) AirmetReadMode', () => { ...
staticfiles/js/App.js
alemneh/negativity-purger
import React, { Component } from 'react'; class App extends Component { constructor(props) { super(props) } render() { return ( <section> {this.props.children} </section> ) } } export default App;
src/svg-icons/notification/personal-video.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPersonalVideo = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12z"/> </SvgIcon> ); Notifi...
docs/html.js
nfl/react-storybook
import React from 'react'; import PropTypes from 'prop-types'; import DocumentTitle from 'react-document-title'; import { prefixLink } from 'gatsby/dist/isomorphic/gatsby-helpers'; import favicon from './design/homepage/storybook-icon.png'; const BUILD_TIME = new Date().getTime(); const HTML = props => { const tit...
app/components/TriggerMQForm/index.js
fission/fission-ui
/** * * TriggerMQForm * */ import React from 'react'; // import styled from 'styled-components'; import TriggerMQCreateForm from 'components/TriggerMQCreateForm'; import { FormattedMessage } from 'react-intl'; import commonMessages from 'messages'; import messages from './messages'; import Item from './item'; class T...
demo/project/static/src/pages/work.js
chenshenhai/koa2-note
import '@babel/polyfill'; import React from 'react' import ReactDOM from 'react-dom' import App from './../apps/work.jsx' ReactDOM.render( <App />, document.getElementById("app"))