path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
ui/js/components/Form.js | ericsoderberg/pbc-web | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import PageHeader from './PageHeader';
import FormError from './FormError';
import FormState from '../utils/FormState';
import Button from './Button';
import ConfirmRemove from './ConfirmRemove';
import Loading from './Loading';
import NotFou... |
app/scripts/containers/app/app.js | bluedaniel/Kakapo-app | import React from 'react';
import { hot } from 'react-hot-loader';
import { keys, length, map, pick, pipe, prop } from 'ramda';
import { connect } from 'react-redux';
import { withHandlers } from 'recompose';
import { ipcRenderer } from 'electron';
import Dropzone from 'react-dropzone';
import { opacify } from 'polishe... |
app/javascript/mastodon/components/autosuggest_textarea.js | pointlessone/mastodon | import React from 'react';
import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container';
import AutosuggestEmoji from './autosuggest_emoji';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { isRtl } from '../rtl';
import Im... |
web/src/containers/App.js | miaolz123/samaritan | import '../styles/app.less';
import '../styles/app.css';
import { UserGet, Logout } from '../actions/user';
import { ExchangeTypes } from '../actions/exchange';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { browserHistory } from 'react-router';
import { LocaleProvider, Menu, ... |
app/javascript/mastodon/components/attachment_list.js | robotstart/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
const filename = url => url.split('/').pop().split('#')[0].split('?')[0];
class AttachmentList extends React.PureComponent {
render () {
const { media } = this.props;
return (
<div className='attachment-list'>
... |
app/app.js | BrewPi/brewpi-ui | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
import 'babel-polyfill';
/* eslint-disable import/no-unresolved */
// Load the manifest.json file and the .htaccess file
import '!file?name=[name].[ext]!./manifest.json';
import 'file?name=[name].[ext]!./.htaccess';... |
app/react-icons/fa/minus-square-o.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaMinusSquareO extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m30.2 17.9v1.4q0 0.3-0.2 0.5t-0.5 0.2h-18.6q-0.3 0-0.5-0.2t-0.2-0.5v-1.... |
packages/icons/src/md/image/BrokenImage.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdBrokenImage(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M42 10v13.2l-6-6-8 8-8-8-8 8-6-6V10c0-2.2 1.8-4 4-4h28c2.2 0 4 1.8 4 4zm-6 12.8l6 6V38c0 2.2-1.8 4-4 4H10c-2.2 0-4-1.8-4-4V24.8l6 6 8-8 8 8 8-8z"... |
src/backends/github/AuthenticationPage.js | radekzz/netlify-cms-test | import React from 'react';
import Button from 'react-toolbox/lib/button';
import Authenticator from '../../lib/netlify-auth';
import { Icon } from '../../components/UI';
import styles from './AuthenticationPage.css';
export default class AuthenticationPage extends React.Component {
static propTypes = {
onLogin: ... |
src/browser/notfound/NotFoundPage.js | VigneshRavichandran02/3io | /* @flow */
import React from 'react';
import linksMessages from '../../common/app/linksMessages';
import messages from '../../common/notfound/messages';
import { FormattedMessage, injectIntl, intlShape } from 'react-intl';
import { Link, PageHeader, Title, View } from '../app/components';
const NotFoundPage = ({ intl... |
stories/panels.stories.js | JimBarrows/Bootstrap-React-Components | import {storiesOf} from '@storybook/react'
import React from 'react'
import Panel from '../src/panels/Panel'
import PanelBody from '../src/panels/PanelBody'
import PanelFooter from '../src/panels/PanelFooter'
import PanelHeader from '../src/panels/PanelHeader'
import PanelTitle from '../src/panels/PanelTitle'
storie... |
app/AwesomeComponent.js | pravinpareek/React-Webpack2 | import React from 'react';
class AwesomeComponent extends React.Component {
constructor(props) {
super(props);
this.state = {likesCount : 0};
this.onLike = this.onLike.bind(this);
}
onLike () {
let newLikesCount = this.state.likesCount + 1;
this.setState({likesCount: newLikesCou... |
rnMessage/index.ios.js | zenome/ReactNativeiMessageApp | /**
* Copyright (c) 2016-present ZENOME, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT-style license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Dimensions,... |
legacy/_Home/components/Title/index.js | afoninsky/cerebral-bolierplate | import React from 'react';
import styles from './styles.css';
function Title(props) {
return (
<h1 style={{color: props.color}} className={styles.title}>
{props.children}
</h1>
);
}
Title.propTypes = {
color: React.PropTypes.string.isRequired,
children: React.PropTypes.any.isRequired
};
export ... |
src/components/DropdownButton/DropdownButton.js | InsideSalesOfficial/insidesales-components | import React from 'react';
import styled, { ThemeProvider } from 'styled-components';
import _ from 'lodash';
import PropTypes from 'prop-types';
import { checkDocumentEvent, openOptionsList, closeOptionsList, toggleOptionsList } from '../SelectInput';
import SelectOptions from '../SelectInput/SelectOptions';
import {... |
src/shared/handlers/publish.js | namroodinc/truth-serum | import React from 'react';
import { observer } from 'mobx-react';
import FloatingActionButton from 'material-ui/FloatingActionButton';
import Create from 'material-ui/svg-icons/content/create';
import Save from 'material-ui/svg-icons/content/save';
import {
Loading,
QuickUpdateTools
} from '../components/Index';... |
src/svg-icons/hardware/toys.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareToys = (props) => (
<SvgIcon {...props}>
<path d="M12 12c0-3 2.5-5.5 5.5-5.5S23 9 23 12H12zm0 0c0 3-2.5 5.5-5.5 5.5S1 15 1 12h11zm0 0c-3 0-5.5-2.5-5.5-5.5S9 1 12 1v11zm0 0c3 0 5.5 2.5 5.5 5.5S15 23 12 2... |
src/containers/Asians/TabControls/Dashboard/BreakRounds/index.js | westoncolemanl/tabbr-web | import React from 'react'
import { connect } from 'react-redux'
import BreakCategoryMatrix from 'containers/Asians/_components/BreakCategoryMatrix'
export default connect(mapStateToProps)(({
breakCategories,
breakTeams
}) => {
let displayedBreaksOverview = []
breakCategories.forEach(breakCategory => {
co... |
stories/Linkify/CustomComponentLinkifyEditor/index.js | dagopert/draft-js-plugins | import React, { Component } from 'react';
import { EditorState } from 'draft-js';
import Editor from 'draft-js-plugins-editor';
import createLinkifyPlugin from 'draft-js-linkify-plugin';
import editorStyles from './editorStyles.css';
const linkifyPlugin = createLinkifyPlugin({
component: (props) => (
// eslint-d... |
src/svg-icons/action/hourglass-full.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHourglassFull = (props) => (
<SvgIcon {...props}>
<path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6z"/>
</SvgIcon>
);
ActionHourglassFull = pure(ActionHour... |
ui/src/components/visualization-editors/line/index.js | indraneel/sustainability-dashboard | import React, { Component } from 'react';
import {Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table';
import TextField from 'material-ui/TextField';
import FlatButton from 'material-ui/FlatButton';
class LineVisualizationDataEntry extends Component {
constructor(pro... |
app/javascript/mastodon/features/tutorial/components/tutorial.js | masarakki/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import TutorialContents from './tutorial_contents';
export default class Tutorial extends React.Component {
static propTypes = {
visible: PropTypes.bool,
onClose: PropTypes.func,
};
state = {
page: 1,
display: 'block',
totalPage... |
frontend/src/User.js | buildleft/donorbuddy | import React, { Component } from 'react';
import $ from 'jquery';
import Donate from './Donate';
class DonationList extends Component {
constructor(props) {
super(props);
this.handleRemove = this.handleRemove.bind(this);
}
getOrgs() {
let orgs = [];
if(this.props.user == null) {
return o... |
app/components/Search/SearchBox.js | CaptainFact/captain-fact-frontend | import React from 'react'
import { SearchBox as AlgoliaSearchBox } from 'react-instantsearch-dom'
import styled from 'styled-components'
import { withNamespaces } from 'react-i18next'
import { withRouter } from 'react-router'
const StyledSearchBox = styled(AlgoliaSearchBox)`
input[type='search'] {
border: 1px so... |
example/src/screens/Transitions.js | coteries/react-native-navigation | import React from 'react';
import {StyleSheet, ScrollView, Text} from 'react-native';
import Row from '../components/Row';
class Transitions extends React.Component {
showCollapsingHeader = () => {
this.props.navigator.showModal({
title: 'Collapsing Header',
screen: 'example.Transitions.CollapsingHe... |
lib/ui/components/Mocks/CodeEditor.js | 500tech/bdsm | import PropTypes from 'prop-types';
import React from 'react';
import Frame from 'react-frame-component';
import styled from 'styled-components';
import get from 'lodash/get';
import MocksState from 'ui/states/MocksState';
import { getContentType } from 'ui/utils/string';
import CSS from '!!raw-loader!codemirror/lib/co... |
src/svg-icons/editor/format-textdirection-r-to-l.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatTextdirectionRToL = (props) => (
<SvgIcon {...props}>
<path d="M10 10v5h2V4h2v11h2V4h2V2h-8C7.79 2 6 3.79 6 6s1.79 4 4 4zm-2 7v-3l-4 4 4 4v-3h12v-2H8z"/>
</SvgIcon>
);
EditorFormatTextdirectionRTo... |
src/components/Nav.js | robwalkerco/caerurfapugs | import React from 'react'
import styled from 'styled-components'
import { MainNavItem } from './NavItem'
const NavWrapper = styled.div`
height: 40px;
padding: 20px 0 0 80px;
`
const Nav = () => (
<NavWrapper>
<MainNavItem to="/">Home</MainNavItem>
<MainNavItem to="/our-pugs">Our Pugs</MainNavItem>
<... |
webpack/move_to_pf/TypeAhead/TypeAhead.js | stbenjam/katello | import React, { Component } from 'react';
import Downshift from 'downshift';
import PropTypes from 'prop-types';
import { InputGroup, Button } from 'patternfly-react';
import TypeAheadInput from './TypeAheadInput';
import TypeAheadItems from './TypeAheadItems';
import { getActiveItems } from './helpers';
import './Ty... |
client/me/billing-history/controller.js | allendav/wp-calypso | /**
* External dependencies
*/
import React from 'react';
/**
* Internal dependencies
*/
import analytics from 'analytics';
import i18n from 'lib/mixins/i18n';
import route from 'lib/route';
import titleActions from 'lib/screen-title/actions';
import { renderWithReduxStore } from 'lib/react-helpers';
import sitesF... |
src/components/tools/faq/ToolsFaq.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { FormattedMessage, injectIntl } from 'react-intl';
import FaqItem from '../../common/FaqItem';
const localMessages = {
title: { id: 'faq.title', defaultMessage: 'FAQ' },
q1: { id: 'faq.q1', defaultMessage: 'What is Media Cloud?' },
a1: { id: ... |
src/client.js | cjhdom/rskr | /**
* 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 ReactDOM from 'react-... |
src/browser/routes/login.js | ap-o/intro | import React from 'react';
import LayoutLogin from 'Browser/components/layout_login';
const Login = () => <LayoutLogin />;
export default Login;
|
client/modules/Post/__tests__/components/PostCreateWidget.spec.js | jessicarobins/det | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import { FormattedMessage } from 'react-intl';
import { PostCreateWidget } from '../../components/PostCreateWidget/PostCreateWidget';
import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper';
const props = {
... |
src/routes/dashboard/components/completed.js | yunqiangwu/kmadmin | import React from 'react'
import PropTypes from 'prop-types'
import classnames from 'classnames'
import { color } from 'utils'
import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts'
import styles from './completed.less'
function Completed ({ data }) {
return (
... |
src/components/App.js | wilwong89/didactic-web-game | import React from 'react'
import { browserHistory, Router } from 'react-router'
import { Provider } from 'react-redux'
import PropTypes from 'prop-types'
class App extends React.Component {
static propTypes = {
store: PropTypes.object.isRequired,
routes: PropTypes.object.isRequired,
}
shouldComponentUpd... |
app/User/SignInView.js | csujedihy/react-native-textgo | 'use strict';
import React, { Component } from 'react';
import TextField from 'react-native-md-textinput';
import Button from 'apsl-react-native-button';
import Users from '../Model/users';
import MyNavigationBar from '../Components/MyNavigationBar';
import Main from '../Components/main';
import * as userActions from ... |
src/app/components/search/SearchResultsTable/NumberCell.js | meedan/check-web | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedNumber } from 'react-intl';
import { Link } from 'react-router';
import { makeStyles } from '@material-ui/core/styles';
import TableCell from '@material-ui/core/TableCell';
import { opaqueBlack10 } from '../../../styles/js/shared';
const ... |
mxcube3/ui/components/SampleQueue/TodoTree.js | amilan/mxcube3 | import React from 'react';
import 'bootstrap-webpack';
import './app.less';
import cx from 'classnames';
import { Button } from 'react-bootstrap';
export default class TodoTree extends React.Component {
constructor(props) {
super(props);
this.setSearchWord = this.setSearchWord.bind(this);
this.state = {
... |
app/index.js | MitchLillie/brewhome | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, hashHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import routes from './routes';
import configureStore from './store/configureStore';
import './app.global.c... |
src/modules/unit/components/UnitsOnMap.js | nordsoftware/outdoors-sports-map | import React from 'react';
import isEmpty from 'lodash/isEmpty';
import SingleUnitOnMap from './SingleUnitOnMap';
import {sortByCondition, getUnitQuality} from '../helpers';
export const UnitsOnMap = ({units, selectedUnit, openUnit, zoomLevel}) => {
let unitsInOrder = units.slice();
const originalLength = unitsInO... |
src/svg-icons/maps/directions-boat.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsBoat = (props) => (
<SvgIcon {...props}>
<path d="M20 21c-1.39 0-2.78-.47-4-1.32-2.44 1.71-5.56 1.71-8 0C6.78 20.53 5.39 21 4 21H2v2h2c1.38 0 2.74-.35 4-.99 2.52 1.29 5.48 1.29 8 0 1.26.65 2.62.99... |
packages/forms/src/UIForm/FormTemplate/TextModeFormTemplate.component.js | Talend/ui | import React from 'react';
import theme from '../UIForm.scss';
export default function TextModeFormTemplate({ widgetsRenderer, children }) {
return [
<dl key="definitions" className={theme['form-content']}>
{widgetsRenderer()}
</dl>,
children,
];
}
|
src/scenes/IntroScene.js | fkoester/tachograph-app | import React from 'react';
import { Navigator } from 'react-native';
import { Scene, Switch } from 'react-native-router-flux';
import { connect } from 'react-redux';
import OdometerInputView from '../components/OdometerInputView';
import CarDetailView from '../components/CarDetailView';
const navbarHeight = Navigator.... |
src/js/components/icons/base/DocumentStore.js | linde12/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
lib-es/components/card/card-header-icon.js | bokuweb/re-bulma | 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, { Component } from 'react';
import PropTypes fr... |
src/svg-icons/maps/place.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsPlace = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"... |
src/components/Pagination/demo/number/index.js | lebra/lebra-components | import Pagination from '../../index';
import React, { Component } from 'react';
import { render } from 'react-dom';
import './index.less';
/**
* 只显示number的pagiantion,不显示按钮
*/
class BaseDemo extends Component {
constructor(props){
super(props);
this.state={
num:1,
}
}
pa... |
good-old-react-authentication-flow/src/containers/ConnectPage/index.js | strapi/strapi-examples | /**
*
* ConnectPage
*
*/
import React from 'react';
import PropTypes from 'prop-types';
// Utils
import auth from '../../utils/auth';
import request from '../../utils/request';
class ConnectPage extends React.Component {
// We only use this lifecycle because it's only mounted once and the saga already handle
... |
src/client/index.js | kinvil/react-redux-universal-webpack2-boilerplate | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { AppContainer } from 'react-hot-loader'
import { Provider } from 'react-redux'
import { Router, browserHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import configureStore from '../commo... |
src/pages/app/account.js | getinsomnia/website | import React from 'react';
import PropTypes from 'prop-types';
import SignOutLink from '../../lib/common/sign-out';
import App from '../../lib/app-wrapper';
import Link from '../../components/link';
import VerifyButton from '../../lib/common/reverify';
import loadable from "@loadable/component"
const CancelLink = load... |
pootle/static/js/auth/components/SocialVerification.js | unho/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import assign from 'object-assign';
import React from 'rea... |
src/parser/warlock/affliction/modules/features/DotUptimes/AgonyUptime.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS/index';
import { formatPercentage } from 'common/format';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import Analyzer from 'parser/core/Analyzer';
import Enemies from 'parser/shared/modules/Enemies';
import UptimeBar... |
src/packages/@ncigdc/modern_components/ProjectPrimarySitesTable/ProjectPrimarySitesTable.js | NCI-GDC/portal-ui | /* @flow */
import React from 'react';
import {
compose,
branch,
mapProps,
withState,
renderNothing,
setDisplayName,
} from 'recompose';
import { connect } from 'react-redux';
import { Row } from '@ncigdc/uikit/Flex';
import LocalPaginationTable from '@ncigdc/components/LocalPaginationTable';
import Hidden... |
src/svg-icons/notification/confirmation-number.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationConfirmationNumber = (props) => (
<SvgIcon {...props}>
<path d="M22 10V6c0-1.11-.9-2-2-2H4c-1.1 0-1.99.89-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2... |
src/js/pages/SplashPage.js | vbence86/giftassistant-client | import React, { Component } from 'react';
import { StyleSheet, View, Image } from 'react-native';
import { Button, SocialIcon } from 'react-native-elements';
const splashImage = require('../../../resources/img/gift-flat.png');
const styles = StyleSheet.create({
splashImage: {
marginBottom: 30,
width: 256,
... |
src/routes/notFound/NotFound.js | Ozaroni/modestLifer | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
docs/src/app/components/pages/components/Tabs/ExampleSimple.js | rhaedes/material-ui | import React from 'react';
import {Tabs, Tab} from 'material-ui/Tabs';
import Slider from 'material-ui/Slider';
const styles = {
headline: {
fontSize: 24,
paddingTop: 16,
marginBottom: 12,
fontWeight: 400,
},
};
function handleActive(tab) {
alert(`A tab with this route property ${tab.props.route... |
src/scenes/home/ExpenseTotal.js | mitchgavan/got-your-money | import React from 'react';
import styled from 'styled-components';
import { Box } from 'grid-styled';
import Text from '../../components/Text';
import Block from '../../components/Block';
import HeadingSmall from '../../components/HeadingSmall';
import theme from '../../theme';
const { colors } = theme;
const BlockGr... |
src/views/Main/routes.js | lnhrdt/auth0-react-sample | import React from 'react'
import {Route, IndexRedirect} from 'react-router'
import AuthService from 'utils/AuthService'
import Container from './Container'
import Home from './Home/Home'
import Login from './Login/Login'
import Callback from './Callback/Callback'
const auth = new AuthService(__AUTH0_CLIENT_ID__, __AUT... |
ui/app/pages/Signatures/Signatures.js | StamusNetworks/scirius | import React from 'react';
import UIBreadcrumb from 'ui/components/UIBreadcrumb';
import { Link } from 'ui/helpers/Link';
const Signatures = () => (
<div>
<UIBreadcrumb
items={[
'Stamus ND',
<Link app to='stamus-nd/signatures'>Signatures</Link>,
]}
/>
Signatures
</div>
);
Si... |
assets/js/components/chrome/LoadingSpinner.js | tdfischer/organizer | import React from 'react'
import CircularProgress from '@material-ui/core/CircularProgress'
import Grid from '@material-ui/core/Grid'
export const LoadingSpinner = _props => (
<Grid style={{height: '100%'}} container direction="column" justify="center" alignItems="center">
<CircularProgress style={{width: ... |
ajax/libs/react-instantsearch/3.2.0/Dom.js | pvnr0082t/cdnjs | /*! ReactInstantSearch 3.2.0 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define ... |
src/scripts/views/components/navBar.js | TayLang/IronPong | import React from 'react'
import ACTIONS from '../../actions'
import STORE from '../../store.js'
import User from '../../models/userModel'
var NavBar = React.createClass({
componentWillMount: function(){
STORE.on('dataUpdated', () => {
this.setState(STORE.data)
})
},
getInitialState: function(){
ret... |
app/react-icons/fa/long-arrow-down.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaLongArrowDown extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m28.6 29q0.2 0.4-0.1 0.8l-7.9 8.6q-0.2 0.2-0.5 0.2-0.3 0-0.5-0.2l-7.9-... |
native-mobile/App.js | trevordmiller/cortex-clients | import React from 'react'
import {BrowseQuestions} from 'cortex-components'
export default () => (
<BrowseQuestions />
)
|
server/sonar-web/src/main/js/apps/component-measures/details/MeasureDetails.js | Builders-SonarSource/sonarqube-bis | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
src/svg-icons/image/image-aspect-ratio.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageImageAspectRatio = (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 14H... |
src/components/Button/Button.js | teamfa/react-native-starter-app | /**
* @providesModule Button
* @flow
*/
import React from 'react';
import { TouchableHighlight, Text } from 'react-native';
import styles from './styles';
type Props = {
onPress: () => void,
children?: string,
}
function Button({ onPress, children }: Props) {
return (
<TouchableHighlight
onPress={... |
app/javascript/mastodon/components/loading_indicator.js | sylph-sin-tyaku/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
const LoadingIndicator = () => (
<div className='loading-indicator'>
<div className='loading-indicator__figure' />
<FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' />
</div>
);
export default LoadingIndicat... |
app/javascript/mastodon/features/ui/components/column_subheading.js | ikuradon/mastodon | import React from 'react';
import PropTypes from 'prop-types';
const ColumnSubheading = ({ text }) => {
return (
<div className='column-subheading'>
{text}
</div>
);
};
ColumnSubheading.propTypes = {
text: PropTypes.string.isRequired,
};
export default ColumnSubheading;
|
client/app/app.js | poddarh/nectarine | import React from 'react';
import ReactDOM from 'react-dom';
import { IndexRoute, Router, Route, browserHistory } from 'react-router'
// Each major browser view user interface must be imported.
import About from './components/about.js';
import Body from './components/body.js';
import Contact from './components/contact... |
ajax/libs/react-instantsearch/4.1.0-beta.3/Dom.js | froala/cdnjs | /*! ReactInstantSearch 4.1.0-beta.3 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof def... |
examples/counter/index.js | iamdustan/redux-devtools | import React from 'react';
import App from './containers/App';
React.render(
<App />,
document.getElementById('root')
);
|
tests/components/YourComponent-test.js | jeremyraffin/euro-pronos | import React from 'react';
import tape from 'tape';
import addAssertions from 'extend-tape';
import jsxEquals from 'tape-jsx-equals';
import { createRenderer } from 'react-addons-test-utils';
const test = addAssertions(tape, { jsxEquals });
import YourComponent from '../../src/components/YourComponent.jsx';
test('Yo... |
example/src/WidgetRenderer.js | rsamec/react-property-editor | import React from 'react';
import _ from 'lodash';
import Binder from 'react-binding';
var WidgetRenderer = React.createClass({
bindProps(node,dataBinder){
var props = _.cloneDeep(node.props);
//go through all properties
for (var propName in props) {
var prop = props[propName];
... |
examples/examples/AreaChartExample.react.js | ericgio/r-d3 | import * as d3 from 'd3';
import React from 'react';
import {Area, Axis, Chart} from '../../src';
import {getInnerHeight, getInnerWidth, translate} from '../../src/utils';
import stockData from '../data/aaplPrice.tsv';
/* example-start */
/**
* Adapted from https://bl.ocks.org/mbostock/3883195
*/
class AreaChartEx... |
src/routes/admin/index.js | chakshuahuja/crunchgraph | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../compo... |
src/containers/weather_list.js | jackiechoi/redux_weather_app | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Chart from '../components/chart';
class WeatherList extends Component {
renderWeather(cityData) {
const name = cityData.city.name;
const temps = _.map(cityData.list.map(weather => weather.main.temp), (temp) => temp-273.15... |
src/components/WaitList/ModRowBase.js | welovekpop/uwave-web-welovekpop.club | import cx from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import compose from 'recompose/compose';
import withProps from 'recompose/withProps';
import { DragSource } from 'react-dnd';
import DragIcon from '@material-ui/icons/DragHandle';
import RemoveIcon from '@material-ui/icons/Close... |
src/svg-icons/image/crop-portrait.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropPortrait = (props) => (
<SvgIcon {...props}>
<path d="M17 3H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7V5h10v14z"/>
</SvgIcon>
);
ImageCropPortrait = pure(ImageCropP... |
src/index.js | ScholtenSeb/react-action | import React from 'react';
import { render } from 'react-dom';
import App from './App';
render(<App />, document.getElementById('root'));
|
client/src/components/CompositeField/CompositeField.js | silverstripe/silverstripe-admin | import React, { Component } from 'react';
import castStringToElement from 'lib/castStringToElement';
import PropTypes from 'prop-types';
class CompositeField extends Component {
/**
* Builds the legend for a fieldset if it is defined
*
* @returns {Component}
*/
getLegend() {
if (this.props.data.tag... |
web/src/components/Calendar/components/Monthly/index.js | AcrylicInc/totalblu | import PropTypes from 'prop-types'
import React from 'react'
import { findDOMNode } from 'react-dom'
import cn from 'classnames'
import dates from 'components/Calendar/utils/dates'
import localizer from 'components/Calendar/localizer'
import chunk from 'lodash/chunk'
import { navigate, views } from 'components/Calend... |
client/scripts/components/Footer.js | amitava82/radiole | import React from 'react';
import {Link} from 'react-router';
export default class Footer extends React.Component {
render (){
return (
<footer>
<p className="links">
<a href="https://github.com/amitava82/radiole" target="_blank" className="fa fa-github fa-2x... |
app/routes.js | aseem2625/simple-dropbox-clone | import React from 'react';
import { Route, IndexRedirect } from 'react-router';
import App from './components/App';
import Dashboard from './containers/Dashboard';
import About from './components/About';
import NotFound from './components/NotFound';
export default (
<Route path="/" component={App}>
<IndexRedirect t... |
src/svg-icons/av/replay-5.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvReplay5 = (props) => (
<SvgIcon {...props}>
<path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-1.3 8.9l.2-2.2h2.4v.7h-1.7l-.1.9s.1 0 .1-.1.1 0 .1-.1.1 0 .2... |
src/components/cell-checkbox-title.js | Greynight/Grid | import React from 'react';
import Cell from './cell';
class CheckboxTitleCell extends Cell {
/*constructor(props) {
super(props);
}*/
getIsAllSelected = () => {
return this.props.isAllSelected;
};
onCheckboxClick = () => {
this.props.onCheckboxAllClick();
};
render() {
return <div><in... |
node_modules/_rc-tooltip@3.4.9@rc-tooltip/es/Tooltip.js | ligangwolai/blog | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runt... |
pybot/src/components/slice.js | dennisdunn/botlab | /**
* A slice of the pie.
*/
import React from 'react'
import Coord from '../lib/coordService'
import MappedHandler from './mappedHandlerComponent'
export default class Slice extends MappedHandler {
constructor(props) {
super(props)
}
render() {
let start = Coord.polarToCanvas(this.props... |
app/javascript/mastodon/features/pinned_statuses/index.js | koba-lab/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchPinnedStatuses } from '../../actions/pin_statuses';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../compon... |
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Glyphicon.js | Akkuma/npm-cache-benchmark | 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 ... |
packages/vx-tooltip/src/tooltips/TooltipWithBounds.js | Flaque/vx | /* eslint react/forbid-prop-types: 0 */
import PropTypes from 'prop-types';
import React from 'react';
import { withBoundingRects, withBoundingRectsProps } from '@vx/bounds';
import Tooltip from './Tooltip';
const propTypes = {
...withBoundingRectsProps,
...Tooltip.propTypes,
};
const defaultProps = {};
functio... |
client/modules/questions/components/classItemTitle.js | johngonzalez/abcdapp | import React from 'react';
class Response extends React.Component {
static propTypes() {
return {
toggleEdit: this.propTypes.func.isRequired,
updateTitle: this.propTypes.func.isRequired,
classId: this.propTypes.string.isRequired,
title: this.propTypes.string.isRequired,
isEdit: this... |
app/src/containers/AppView.js | saffih/list-by-nextjs-redux-forms | import React from 'react'
import css from 'next/css'
import App from '../components/App'
import { connect } from 'react-redux'
import * as actions from '../actions'
const mapStateToProps = (state) => ({})
const mapDispatchToProps = (dispatch, props) => ({ })
export default connect(
mapStateToProps,
mapDispatchT... |
src/components/progress/Line.js | heifade/quark-ui | /**
* Line Component
* @author ryan.bian
*/
import React from 'react';
import classnames from 'classnames';
import { defaultProps, propTypes } from './propDefine';
import Icon from '../icon';
import styles from './Progress.css';
const Line = ({ percent, status, size, showInfo }) => {
const lineProps = {
class... |
src/MessageContainer.js | atFriendly/react-native-friendly-chat | /* eslint
no-console: 0,
no-param-reassign: 0,
no-use-before-define: ["error", { "variables": false }],
no-return-assign: 0,
react/no-string-refs: 0,
react/sort-comp: 0
*/
import PropTypes from 'prop-types';
import React from 'react';
import { FlatList, View, StyleSheet, Platform, Keyboard } f... |
Realization/frontend/czechidm-core/src/content/automaticrole/attribute/AutomaticRoleAttributeRuleTable.js | bcvsolutions/CzechIdMng | import PropTypes from 'prop-types';
import React from 'react';
import uuid from 'uuid';
import { connect } from 'react-redux';
//
import Helmet from 'react-helmet';
import * as Utils from '../../../utils';
import * as Basic from '../../../components/basic';
import * as Advanced from '../../../components/advanced';
impo... |
app/components/Header/index.js | hieubq90/react-boilerplate-3.4.0 | import React from 'react';
import { FormattedMessage } from 'react-intl';
import A from './A';
import Img from './Img';
import NavBar from './NavBar';
import HeaderLink from './HeaderLink';
import Banner from './banner.jpg';
import messages from './messages';
class Header extends React.Component {
// eslint-disable... |
src/pages/Simulation/View/index.js | Kitware/HPCCloud | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import queryString from 'query-string';
import style from 'HPCCloudStyle/PageWithMenu.mcss';
import Workflows from '../../../workflows';
import tools from '../../../too... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.