path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
client/src/components/Login.js | JetRunner/epictodo | import React, { Component } from 'react';
import jQuery from 'jquery';
import Cookies from 'js-cookie';
import { hashHistory } from 'react-router';
class Login extends Component {
constructor(props) {
super(props);
this.state = {
hint: ''
};
}
render() {
return (
<div className="sign-... |
dashboard/src/index.js | distributed-system-analysis/pbench | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import store from './store/store';
import './index.css';
import App from './App';
ReactDOM.render(
<Provider store={store}>
<App />
</Provider>,
document.getElementById('root')
);
|
src/components/Unit/percentageCalc.js | wfp/ui | import React from 'react';
import { Invalid } from './InvalidUnit';
import StringUnit from './StringUnit';
import SvgUnit from './SvgUnit';
export const percentageCalc = (props, after, before) => {
const {
calcOnly,
children,
from,
string,
svg,
hideZero,
maximumSignificantDigits,
maxi... |
src/app/about/index.js | blobor/skipass.site | import React from 'react'
import { connect } from 'react-redux'
import { List, ListItem, Divider } from 'material-ui'
import { toggleDeveloperMode } from '../core/actions/action-creators/app'
const About = ({ version, enableDeveloperMode }) => {
return (
<article className='about__container'>
<List>
... |
src/index.js | Scorpibear/work4rest | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
App.js | yabeow/sinhvienuit | import React from 'react';
import { AsyncStorage, StatusBar, ImageBackground, View } from 'react-native';
import { Container, Root } from 'native-base';
import { createStore, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import createSagaMiddleware from 'redux-saga';
import { composeWithDevToo... |
sam-front/src/index.js | atgse/sam | import 'babel-polyfill';
import injectTapEventPlugin from 'react-tap-event-plugin';
import React from 'react';
import { render } from 'react-dom';
import Root from './pages/Root';
injectTapEventPlugin();
if (module.hot) {
module.hot.accept('./pages/Root', () => {
const NextRoot = require('./pages/Root').d... |
frontend/src/components/toast/toastManager.js | miurahr/seahub | import React from 'react';
import { css } from 'glamor';
import PropTypes from 'prop-types';
import Toast from './toast';
const wrapperClass = css({
maxWidth: 560,
margin: '0 auto',
top: 0,
left: 0,
right: 0,
position: 'fixed',
zIndex: 999999,
});
const hasCustomId = settings => Object.hasOwnProperty.... |
app/components/AuthMenuButton/index.js | nypl-spacetime/where | import React from 'react'
import { StyledButton, Submissions, Title } from './styles'
export default function AuthMenuButton (props) {
const hasSubmissions = props.submissions && props.submissions.completed > 0
const isAuthenicated = props.oauth && props.oauth.oauth && props.oauth.oauth.provider
const submissi... |
src/components/topic/snapshots/foci/builder/topCountries/TopCountriesCoveragePreviewContainer.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { FormattedMessage, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import withAsyncData from '../../../../../common/hocs/AsyncDataContainer';
import { fetchCreateFocusTopCountriesCoverage } from '../../../../../../actions/topi... |
RNDemo/RNComment/node_modules/react-navigation/src/createNavigationContainer.js | 995996812/Web | /* @flow */
import React from 'react';
import invariant from 'fbjs/lib/invariant';
import { BackAndroid, Linking } from './PlatformHelpers';
import NavigationActions from './NavigationActions';
import addNavigationHelpers from './addNavigationHelpers';
import type {
NavigationRoute,
NavigationAction,
Navigation... |
lib/Layout/stories/Layout.stories.js | folio-org/stripes-components | import React from 'react';
import { storiesOf } from '@storybook/react';
import withReadme from 'storybook-readme/with-readme';
import readme from '../readme.md';
import BasicUsage from './BasicUsage';
storiesOf('Layout', module)
.addDecorator(withReadme(readme))
.add('Available classes', () => <BasicUsage />);
|
examples/complex/src/components/repo/index.js | rocjs/roc-package-web-app-react | import React, { Component } from 'react';
import styles from './style.css';
import RepoLoader from './loader';
import RepoError from './error';
import RepoData from './data';
import RepoUpdateButton from './button';
export default class Repo extends Component {
static propTypes = {
payload: React.PropTyp... |
src/svg-icons/device/settings-system-daydream.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSettingsSystemDaydream = (props) => (
<SvgIcon {...props}>
<path d="M9 16h6.5c1.38 0 2.5-1.12 2.5-2.5S16.88 11 15.5 11h-.05c-.24-1.69-1.69-3-3.45-3-1.4 0-2.6.83-3.16 2.02h-.16C7.17 10.18 6 11.45 6 13c0 1.... |
src/javascript/refluxtodo/views/TodoList.js | cuzofu/sell-orange | import React from 'react';
const TodoItem = require("./TodoItem");
const TodoList = React.createClass({
render() {
if (this.props.todos.length) {
var items = this.props.todos.map(item => {
return <TodoItem todo={item} key={item.id} />
});
return (
... |
views/blocks/Button/Button.js | urfu-2016/team5 | import React from 'react';
import './Button.css';
import b from 'b_';
const button = b.lock('button');
export default class Button extends React.Component {
render() {
const {disabled, text, type, inProgress, onClick} = this.props;
return (
<button
type={type}
... |
client/src/components/GalleryToolbar/Buttons/tests/BackButton-test.js | open-sausages/silverstripe-assets-gallery | /* global jest, describe, it, expect, beforeEach, Event */
import React from 'react';
// mock sub-components, as they could rely on a Redux store context and not necessary for unit test
jest.mock('components/BackButton/BackButton');
import ReactTestUtils from 'react-dom/test-utils';
import Component from '../BackButto... |
__tests__/TestComponentWhichShouldThrow2.js | liegeandlief/whitelodge | 'use strict'
import React from 'react'
import {AddStoreSubscriptions} from '../src/'
class TestComponent extends React.Component {
render () {
return null
}
}
export default AddStoreSubscriptions(TestComponent, ['notAStore'])
|
nlyyAPP/component/药物管理/仓库/分配方案/MLZnfp.js | a497500306/nlyy_APP |
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity,
Navigator,
ListView,
Alert
} from 'react-native';
var List = require('../../../../node_modules/antd-mobile/lib/list/index');
const Item = List.Item;
const Brief = Item.Brief;
var ... |
src/svg-icons/editor/border-outer.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderOuter = (props) => (
<SvgIcon {...props}>
<path d="M13 7h-2v2h2V7zm0 4h-2v2h2v-2zm4 0h-2v2h2v-2zM3 3v18h18V3H3zm16 16H5V5h14v14zm-6-4h-2v2h2v-2zm-4-4H7v2h2v-2z"/>
</SvgIcon>
);
EditorBorderOuter =... |
src/components/common/svg-icons/hardware/speaker-group.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSpeakerGroup = (props) => (
<SvgIcon {...props}>
<path d="M18.2 1H9.8C8.81 1 8 1.81 8 2.8v14.4c0 .99.81 1.79 1.8 1.79l8.4.01c.99 0 1.8-.81 1.8-1.8V2.8c0-.99-.81-1.8-1.8-1.8zM14 3c1.1 0 2 .89 2 2s-.9 2-2... |
src/app/components/media/MediaRequests.js | meedan/check-web | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import Relay from 'react-relay/classic';
import Typography from '@material-ui/core/Typography';
import { withStyles } from '@material-ui/core/styles';
import merge from 'lodash.merge';
import { w... |
app/javascript/mastodon/features/ui/components/focal_point_modal.js | ashfurrow/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { connect } from 'react-redux';
import classNames from 'classnames';
import { changeUploadCompose, uploadThumbnail, onCha... |
examples/js/custom/insert-modal/default-custom-insert-modal-header.js | echaouchna/react-bootstrap-tab | /* eslint max-len: 0 */
/* eslint no-unused-vars: 0 */
/* eslint no-alert: 0 */
/* eslint no-console: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn, InsertModalHeader } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
... |
examples/sidebar/app.js | clloyd/react-router | import React from 'react'
import { createHistory, useBasename } from 'history'
import { Router, Route, Link } from 'react-router'
import data from './data'
require('./app.css')
const history = useBasename(createHistory)({
basename: '/sidebar'
})
class Category extends React.Component {
render() {
const categ... |
src/svg-icons/hardware/gamepad.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareGamepad = (props) => (
<SvgIcon {...props}>
<path d="M15 7.5V2H9v5.5l3 3 3-3zM7.5 9H2v6h5.5l3-3-3-3zM9 16.5V22h6v-5.5l-3-3-3 3zM16.5 9l-3 3 3 3H22V9h-5.5z"/>
</SvgIcon>
);
HardwareGamepad = pure(Hardw... |
stories/examples/InputGroupProps.js | reactstrap/reactstrap | import React from 'react';
import { InputGroup, InputGroupText } from 'reactstrap';
import Props from './Props';
const Example = () => (
<Props components={[InputGroup, InputGroupText]} />
);
export default Example;
|
client/src/components/Profile/deleteProfileModal.js | wolnewitz/raptor-ads | import React from 'react';
import { Button, Header, Modal } from 'semantic-ui-react';
const DeleteProfileModal = ({onDeleteClick}) =>
<Modal
trigger={
<Button
className="ui red right floated button"
type="button"
>
Delete Profile
</Button>
}
>
<Header icon="trash... |
src/app.js | eujc21/sc-hackathon-pi-pong | import React from 'react'
import {Router, Route, IndexRoute, browserHistory} from 'react-router'
import Layout from 'layout'
const App = (props) => {
return (
<Router history={browserHistory}>
<Route path="/" component={Layout}></Route>
</Router>
)
}
export default App
|
src/ModalHeader.js | leozdgao/react-bootstrap |
import React from 'react';
import classnames from 'classnames';
class ModalHeader extends React.Component {
render() {
return (
<div
{...this.props}
className={classnames(this.props.className, this.props.modalClassName)}
>
{ this.props.closeButton &&
<button
... |
src/components/CheckboxList.js | angeloocana/angeloocana | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import Checkbox from './Checkbox';
import { FormattedMessage } from 'react-intl';
import { pipe, not, any, contains } from 'ramda';
import { InvisibleSpan } from './Invisible';
const Ul = styled.ul`
padding: 0;
j... |
app/containers/Registration/style.js | ArtemDervoed/DiplomWork | import React from 'react';
import styled from 'styled-components';
import {Tabs, Tab} from 'material-ui/Tabs';
export const Section = styled.div`
width: 900px;
margin: 50px auto;
background-color: rgba(0,0,0,0.05);
border-radius: 5px;
padding:25px;
padding-left:60px;
padding-right:60px;
box-shadow: 5p... |
src/components/Forms/Login.js | txwkx/book-room | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { withRouter } from 'react-router';
import axios from 'axios';
import FormInput from './FormInput';
import Success from './Success';
class Login extends Component {
state = {
success: false
}
handleLogin = (e) => {
... |
src/svg-icons/image/gradient.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageGradient = (props) => (
<SvgIcon {...props}>
<path d="M11 9h2v2h-2zm-2 2h2v2H9zm4 0h2v2h-2zm2-2h2v2h-2zM7 9h2v2H7zm12-6H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 18H7v-2h2v2z... |
app/components/CubicMeter/index.js | balintsoos/app.rezsi.io | import React from 'react';
const CubicMeter = () => (
<span>m<sup>3</sup></span>
);
export default CubicMeter;
|
src/basic/Swipe/SwipeoutBtn.js | chaitanya0bhagvan/NativeBase | import React, { Component } from 'react';
import { Text, TouchableHighlight, View } from 'react-native';
import NativeButton from './NativeButton';
import { connectStyle } from 'native-base-shoutem-theme';
import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames';
class SwipeoutBtn extends Component {
sta... |
docs/src/app/components/pages/components/Card/ExampleWithoutAvatar.js | tan-jerene/material-ui | import React from 'react';
import {Card, CardActions, CardHeader, CardText} from 'material-ui/Card';
import FlatButton from 'material-ui/FlatButton';
const CardExampleWithoutAvatar = () => (
<Card>
<CardHeader
title="Without Avatar"
subtitle="Subtitle"
actAsExpander={true}
showExpandableB... |
src/DatePicker/Calendar.spec.js | ngbrown/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import Calendar from './Calendar';
import {addMonths, dateTimeFormat} from './dateUtils';
import getMuiTheme from '../styles/getMuiTheme';
describe('<Calendar />', () => {
const muiTheme = getMuiTheme();
... |
src/common/Shape.js | senthilporunan/react-jrate |
import React from 'react'
import RatingUtils from '../../lib/common/RatingUtils.js'
export default class Shape extends React.Component {
constructor(props) {
super(props);
this.handleMouseMove = this.handleMouseMove.bind(this);
this.handleMouseClick = this.handleMouseClick.bind(this);
this.handleMouseLeave ... |
node_modules/react-router/es6/Link.js | Karthik9321/ReduxSimpleStarter | 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; };
function _objectWithoutProperties(obj, keys) { var target = {... |
__tests__/about/About.js | blobor/buka | /* eslint-env jest */
import React from 'react'
import renderer from 'react-test-renderer'
import { MuiThemeProvider } from 'material-ui/styles'
import { getMuiTheme } from 'app/core/mui-theme'
import { About } from 'app/about'
describe('About', () => {
it('should renders correctly', () => {
const muiTheme = ge... |
blueocean-material-icons/src/js/components/svg-icons/image/looks-two.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageLooksTwo = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 8c0 1.11-.9 2-2 2h-2v2h4v2H9v-4c0-1.11.9-2 2-2h2V9H9V7h4c1.1 0 2 .89 2 2v2z"/>
</SvgIcon>
);
ImageLook... |
client/components/about/About.js | andela-tisrael/checkpoint-document-management | import React from 'react';
class AboutPage extends React.Component {
render() {
return (
<div className="about-page">
<h1>About Document Management</h1>
<p>React front end rendering of about page</p>
</div>
);
}
}
export default AboutPage;
|
src/index.js | rawad-alawar/stow | import React from 'react'
import {render} from 'react-dom'
import {createStore} from 'redux'
import {Provider} from 'react-redux'
import '../public/styles/main.css'
import reducer from './reducer'
import App from './components/App'
import {store, loadUserToStore, loadListingsToStore, loadFeedbackToStore, loadUsersToSt... |
admin/src/components/SecondaryNavigation.js | Freakland/keystone | import blacklist from 'blacklist';
import classnames from 'classnames';
import React from 'react';
import { Container } from 'elemental';
var SecondaryNavItem = React.createClass({
displayName: 'SecondaryNavItem',
propTypes: {
className: React.PropTypes.string,
children: React.PropTypes.node.isRequired,
href: ... |
src/pages/NotFound.js | zeachco/rockplusinc.com | import React from 'react';
import PropTypes from 'prop-types';
import {Link} from 'react-router';
import Sidebar from '../components/Sidebar';
const NotFound = props => (
<div>
<Sidebar />
<div id="home_content">
<big>Ooops! "{props.params.splat}" does not exist</big>
<p>Maybe you want to go bac... |
js/components/footer/iconFooter.js | YeisonGomez/RNAmanda |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Footer, FooterTab, Text, Body, Left, Right, Icon } from 'native-base';
import { Actions } from 'react-native-router-flux'... |
tests/components/Header/Header.spec.js | jobdoc/selections-app | import React from 'react'
import { Header } from 'components/Header/Header'
import { shallow } from 'enzyme'
import AppBar from 'material-ui/AppBar'
describe('(Component) Header', () => {
let _wrapper, _props
beforeEach(() => {
_props = {
title: 'plumbing'
}
_wrapper = shallow(<Header {..._props... |
test/TableSpec.js | deerawan/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Table from '../src/Table';
describe('Table', function () {
it('Should be a table', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Table />
);
assert.equal(React.findDOMNode(instance).nodeName,... |
src/components/HeatMapController.js | TorinoMeteo/tm-realtime-map | import React from 'react'
import PropTypes from 'prop-types'
import Switch from 'react-switch'
class HeatMapController extends React.Component {
static propTypes = {
changeHeatMapStatus: PropTypes.func.isRequired,
status: PropTypes.shape({
active: PropTypes.bool
}),
view: PropTypes.string.isReq... |
src/containers/projectlistcontainer.js | kristian76/geezer | /**
* ProjectListContainer
*
*/
import React from 'react'
import ReactDOM from 'react-dom'
import { connect } from 'react-redux'
import { Link, Route } from 'react-router-dom'
import ProjectList from './../components/projectlist'
class ProjectListContainer extends React.Component {
constructor(props) {
super(p... |
src/imports/ui/builder/components/product/Product.js | hwillson/meteor-recommendation-builder | import React from 'react';
import s from 'underscore.string';
import RemoveButton from './RemoveButton';
import ProductRemovedOverlay from './ProductRemovedOverlay';
import ProductDescription from './ProductDescription';
import QuantityStepper from './QuantityStepper';
import ProductVariationSelect from './ProductVari... |
src/js/components/icons/base/Next.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... |
src/App.js | aryalprakash/aryalprakash.github.io | import React, { Component } from 'react';
import {Router, Route, hashHistory} from 'react-router'
import Portfolio from './components/Portfolio';
// import Infinia from './components/Infinia';
// import Infinia2 from './components/Infinia2';
// import Infinia3 from './components/Infinia3';
// import Infinia4 from './co... |
step-capstone/src/components/TripForms/TripSettingPopover.js | googleinterns/step98-2020 | import React from 'react';
import { Backdrop, Button, makeStyles, Modal, Dialog } from '@material-ui/core';
import TripSettingFormPopover from './TripSettingFormPopover';
import AddIcon from '@material-ui/icons/Add';
import "../../styles/TripSetting.css"
const useStyles = makeStyles((theme) => ({
backdrop: {
zIn... |
src/shared/components/CategoriesTree/index.js | rvboris/financebutler | import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import classnames from 'classnames';
import { get } from 'lodash';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import TreeView from '../TreeView';
import style from './style.css';... |
app/javascript/mastodon/features/ui/components/bundle_column_error.js | ikuradon/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import Column from './column';
import ColumnHeader from './column_header';
import ColumnBackButtonSlim from '../../../components/column_back_button_slim';
import IconButton from '../../../components/... |
src/svg-icons/editor/border-color.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderColor = (props) => (
<SvgIcon {...props}>
<path d="M17.75 7L14 3.25l-10 10V17h3.75l10-10zm2.96-2.96c.39-.39.39-1.02 0-1.41L18.37.29c-.39-.39-1.02-.39-1.41 0L15 2.25 18.75 6l1.96-1.96z"/><path fillOp... |
frontend/src/components/threads-list/thread/subscription/options.js | 1905410/Misago | import React from 'react';
import Button from 'misago/components/button'; // jshint ignore:line
import { patch } from 'misago/reducers/threads'; // jshint ignore:line
import ajax from 'misago/services/ajax'; // jshint ignore:line
import modal from 'misago/services/modal'; // jshint ignore:line
import snackbar from 'mis... |
src/parser/warrior/fury/modules/talents/MeatCleaver.js | sMteX/WoWAnalyzer | import React from 'react';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import Analyzer from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import { SELECTED_PLAYER } from 'parser/core/EventFilter';
import SPELLS from 'common/SPELLS';
const BUFFER_MS = 50;
const RAGE_GAIN_WW... |
techCurriculum/ui/solutions/5.3/src/components/Title.js | jennybkim/engineeringessentials | /**
* Copyright 2017 Goldman Sachs.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
src/components/LoginEntry/index.js | unihackhq/skilled-acolyte-frontend | import React from 'react';
import PropTypes from 'prop-types';
import { observer, inject, PropTypes as MobxPropTypes } from 'mobx-react';
import { Redirect } from 'react-router-dom';
import { Button, Content, Title } from 'bloomer';
import Loader from '../Loader';
import Page from '../Page';
import * as contstant from ... |
src/components/ColorSwatchGrid.js | sparkdesignsystem/spark-design-system | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
const SwatchGrid = ({ children, additionalClasses }) => {
return (
<div className={classnames('docs-o-ColorSwatchGrid', additionalClasses)}>
{children}
</div>
);
};
SwatchGrid.propTypes = {
children... |
tosort/2016/jspm/lib_react_102/components/app/index.js | Offirmo/web-tech-experiments | import React from 'react';
import { connect } from 'react-redux'
import Menu from '../menu/index'
import Journey from '../journey/index'
import Fab from '../fab/index'
import {actions} from '../../models/journey'
////////////////////////////////////
let App = ({
onFabClick
}) => (
<div>
<Menu />
<Journey />
... |
internals/templates/containers/HomePage/index.js | KyleAWang/react-boilerplate | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it and remove
* the l... |
src/js/components/chart/Graph.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2016 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 { padding, pointSize } from './utils... |
src/views/layout.js | mrjoseph/react-redux-todo-app | import React from 'react';
import { Link } from 'react-router'
if (process.env.BROWSER) require("./style.css");
class Nav extends React.Component {
render(){
return (
<ul className="nav">
<li><Link to="/">Home</Link></li>
<li><Link to="todo">Todo app</Link></li>
<li><Link to="contact">Contact</Link... |
src/components/common/svg-icons/action/view-list.js | abzfarah/Pearson.NAPLAN.GnomeH | 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... |
client/components/Input/InputWrapper.js | jkettmann/universal-react-relay-starter-kit | import React from 'react'
import PropTypes from 'prop-types'
import { compose, withProps } from 'recompose'
import styled from 'styled-components'
import FloatingLabel from './FloatingLabel'
import BorderBottom from './BorderBottom'
import ErrorMessage from './ErrorMessage'
const Wrapper = styled.div`
position: rel... |
spa/pages/register.js | chadwilcomb/health-trackr | import React from 'react';
import app from 'ampersand-app'
import ampersandMixin from 'ampersand-react-mixin';
import MessagePage from './message';
export default React.createClass({
mixins: [ampersandMixin],
displayName: 'RegisterUserPage',
getInitialState () {
return {
username: '',
... |
src/avatar.js | leobeltran/reactStarter | import React from 'react'
export default React.createClass({
render (){
return(
<div className='control'>
<p className='control is-flex' style={{justifyContent: 'center'}}>{this.props.email}</p>
<img src={this.props.src}/>
</div>
)
}
})
|
website/src/components/main.js | honnibal/spaCy | import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import patternBlue from '../images/pattern_blue.jpg'
import patternGreen from '../images/pattern_green.jpg'
import patternPurple from '../images/pattern_purple.jpg'
import patternNightly from '../images/pattern_nightly.jpg... |
tests/components/upload/UploadContainer.spec.js | voicebase/voicebase-end-user-experience | import React from 'react';
import ReactDom from 'react-dom';
import TestUtils from 'react-addons-test-utils'
import UploadContainer from '../../../app/components/upload/UploadContainer'
import {
OPTIONS_TAB,
initialState as uploadState
} from '../../../app/redux/modules/upload'
import {
initialState as settingsS... |
app/assets/javascripts/NewNodeWidget/Section/Contact.js | sozialhelden/wheelmap | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { createStructuredSelector } from 'reselect';
import Form from '../../common/Form';
import { CONTACT } from '../models/sections';
import { navigateToNextSection, changeNode } from '../actions';
import *... |
src/components/NavBar.js | mimukit/react-youtube-app | import React from 'react';
const NavBar = (props) => {
return (
<div className="nav-bar">
<h1 id="site-title">{props.siteTitle}</h1>
</div>
);
}
export default NavBar;
|
src/components/Board/test.js | patrickdoane/kantab | import React from 'react';
import ReactDOM from 'react-dom';
import Board from './index.js'
it('renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.render(<Board />, div);
ReactDOM.unmountComponentAtNode(div);
});
|
src/client/assets/js/nodes/processors/uibuilder/features/canvas/components/svg/Path.js | me-box/databox-sdk | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import {camelise} from 'nodes/processors/uibuilder/utils';
import { actionCreators as canvasActions, selector } from '../..';
import { connect } from 'react-redux';
@connect(selector, (dispatch) => {
return{
actions: bindActio... |
docs/src/app/components/pages/components/Card/Page.js | pancho111203/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import cardReadmeText from './README';
import cardExampleWithAvatarCode from '!r... |
client/src/auth/SignOut.js | flyrightsister/boxcharter | /*
* Copyright (c) 2017 Bonnie Schulkin. All Rights Reserved.
*
* This file is part of BoxCharter.
*
* BoxCharter 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, ... |
app/components/About.js | jpsierens/budget | // @flow
import React from 'react';
const About = () =>
<div className="about">
<h2>Thanks for using this example.</h2>
<p>Show some love!</p>
<div className="github">
<iframe
src="https://ghbtns.com/github-btn.html?user=jpsierens&repo=budget&type=star&size=large"
... |
app/app.js | jdelatorreitrs/react-boilerplate | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
impor... |
src/components/common/svg-icons/maps/layers-clear.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLayersClear = (props) => (
<SvgIcon {...props}>
<path d="M19.81 14.99l1.19-.92-1.43-1.43-1.19.92 1.43 1.43zm-.45-4.72L21 9l-9-7-2.91 2.27 7.87 7.88 2.4-1.88zM3.27 1L2 2.27l4.22 4.22L3 9l1.63 1.27L12 16l2.1-... |
src/components/add_findings.js | emertola/eform-findings-tool | import React, { Component } from 'react';
import PropTypes from 'prop-types';
export default class AddFindings extends Component {
constructor(props) {
super(props);
this.state = {
type: null,
content: ''
}
}
handleSelectChange(e) {
this.setState({ type: parseInt(e.target.value) })
}
handleTex... |
webpack/components/DualList/ListItem.js | theforeman/foreman_ansible | import React from 'react';
import classNames from 'classnames';
import PropTypes from 'prop-types';
const ListItem = props => {
const draggableBtn = (
<div className="pf-c-dual-list-selector__draggable">
<button
className="pf-c-button pf-m-plain"
type="button"
aria-pressed="false"
... |
actor-apps/app-web/src/app/components/DialogSection.react.js | damoguyan8844/actor-platform | import _ from 'lodash';
import React from 'react';
import { PeerTypes } from 'constants/ActorAppConstants';
import PeerUtils from 'utils/PeerUtils';
import MessagesSection from 'components/dialog/MessagesSection.react';
import TypingSection from 'components/dialog/TypingSection.react';
import ComposeSection from 'c... |
example/index.ios.js | tielan/react-native-form | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class example extends Component {
render() {
return (
<View style={styles.container}>... |
src/groups/notifs/GroupsListNotifs.js | dash-/netjumpio-tabs-web | ///
// Dependencies
///
import React, { Component } from 'react';
import PanelNotifications from '../../elements/PanelNotifications';
import GetListFailNotif from './GetListFailNotif';
import RemoveItemDoneNotif from './RemoveItemDoneNotif';
import RemoveItemFailNotif from './RemoveItemFailNotif';
import RestoreItem... |
src/svg-icons/av/queue.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvQueue = (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"/>
</SvgIco... |
packages/material-ui-icons/src/FormatQuote.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let FormatQuote = props =>
<SvgIcon {...props}>
<path d="M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z" />
</SvgIcon>;
FormatQuote = pure(FormatQuote);
FormatQuote.muiName = 'SvgIcon';
export default FormatQuo... |
src/components/app/Indicator.js | metasfresh/metasfresh-webui-frontend | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import classnames from 'classnames';
import { connect } from 'react-redux';
/**
* @file Indicator is a component that shows the save status to user in form of a save progress
* line beneath the Header.
* @module Indicator
* @extends Comp... |
frontend/src/Components/Form/OAuthInputConnector.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { resetOAuth, startOAuth } from 'Store/Actions/oAuthActions';
import OAuthInput from './OAuthInput';
function createMapStateToProps() {
return createS... |
src/js/containers/GrommetCmsConfigProvider/grommetCmsConfig.js | grommet/grommet-cms-boilerplate | import React from 'react';
import GrommetLogo from 'grommet/components/icons/Grommet';
export default {
frontend: {
title: 'Grommet CMS',
logo: <GrommetLogo invert size="small" />,
favicon: '',
contact: {
copyright: '© 2017 Grommet Labs',
email: 'hello@grommet.io',
phone: '123-456-7... |
ajax/libs/recompose/0.20.1/Recompose.js | pvnr0082t/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["Recompose"] = facto... |
src/svg-icons/content/text-format.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentTextFormat = (props) => (
<SvgIcon {...props}>
<path d="M5 17v2h14v-2H5zm4.5-4.2h5l.9 2.2h2.1L12.75 4h-1.5L6.5 15h2.1l.9-2.2zM12 5.98L13.87 11h-3.74L12 5.98z"/>
</SvgIcon>
);
ContentTextFormat = pure(C... |
client/tests/components/signInForm.spec.js | 3m3kalionel/PostIt | import React from 'react';
import { mount } from 'enzyme';
import 'materialize-css/dist/js/materialize';
import { SignInForm } from '../../components/auth/SignInForm';
jest.mock('react-google-login');
const props = {
signIn: jest.fn(() => Promise.resolve()),
forgotPassword: jest.fn(),
googleAuth: jest.fn(() => ... |
src/components/ChatForm.js | zsiciarz/isthisachat | import React from 'react';
export class ChatForm extends React.Component {
static propTypes = {
onSend: React.PropTypes.func.isRequired
}
state = {text: ''}
handleSubmit = (e) => {
this.props.onSend(this.state.text);
this.setState({text: ''});
let input = this.refs.mes... |
tests/components/Header/Header.spec.js | levkus/react-overcounters2 | import React from 'react'
import { Header } from 'components/Header/Header'
import classes from 'components/Header/Header.scss'
import { IndexLink, Link } from 'react-router'
import { shallow } from 'enzyme'
describe('(Component) Header', () => {
let _wrapper
beforeEach(() => {
_wrapper = shallow(<Header/>)
... |
src/svg-icons/maps/navigation.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsNavigation = (props) => (
<SvgIcon {...props}>
<path d="M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71z"/>
</SvgIcon>
);
MapsNavigation = pure(MapsNavigation);
MapsNavigation.displayName = 'MapsNavigation';
... |
app/node_modules/react-router/es6/IndexRedirect.js | lycha/masters-thesis | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import Redirect from './Redirect';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.string;
var object = _React$PropTypes.object;
/**
* An <IndexRedir... |
src/components/ControlSidebar/Tab.js | falmar/react-adm-lte | import React from 'react'
import PropTypes from 'prop-types'
import Tab from '../NavTab/Tab'
import Link from './../../utils/Link'
const ControlSidebarTab = ({active, iconClass, onClick}) => {
return (
<Tab active={active}>
<Link onClick={onClick}>
<i className={iconClass} />
</Link>
</T... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.