path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
src/components/Profile/Profile.js | RegOpz/RegOpzWebApp | import React, { Component } from 'react';
import ProfileLeftPane from './ProfileLeft';
import ProfileRightPane from './ProfileRight';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { actionFetchUsers, actionUpdateUser } from './../../actions/UsersAction';
class Profile exten... |
app/javascript/mastodon/features/ui/components/zoomable_image.js | gol-cha/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import IconButton from 'mastodon/components/icon_button';
import { defineMessages, injectIntl } from 'react-intl';
const messages = defineMessages({
compress: { id: 'lightbox.compress', defaultMessage: 'Compress image view box' },
expand: { id: 'lightb... |
actor-apps/app-web/src/app/components/DialogSection.react.js | tsdl2013/actor-platform | import _ from 'lodash';
import React from 'react';
import { PeerTypes } from 'constants/ActorAppConstants';
import MessagesSection from 'components/dialog/MessagesSection.react';
import TypingSection from 'components/dialog/TypingSection.react';
import ComposeSection from 'components/dialog/ComposeSection.react';
i... |
webapp/app/components/Notifications/Form/index.js | EIP-SAM/SAM-Solution-Node-js | //
// Component notifications form
//
import React from 'react';
import Title from 'containers/Notifications/Form/Title';
import Description from 'containers/Notifications/Form/Description';
import Persistence from 'containers/Notifications/Form/Persistence';
import Users from 'containers/Notifications/Form/Users';
im... |
docs/app/Examples/elements/Reveal/index.js | ben174/Semantic-UI-React | import React from 'react'
import Types from './Types'
import Content from './Content'
import States from './States'
import Variations from './Variations'
const RevealExamples = () => (
<div>
<Types />
<Content />
<States />
<Variations />
</div>
)
export default RevealExamples
|
src/Loadable.js | jonjomckay/stividor | import React, { Component } from 'react';
import Spinner from 'react-spinkit';
export default class Loadable extends Component {
render() {
let content;
if (this.props.isLoading) {
content = (
<div style={{ width: '100%', height: '100%', position: 'absolute', background... |
src/components/TableAgreement.js | aurigadl/EnvReactAsk | import React from 'react'
import {makeRequest as mReq} from '../utils/mrequest';
import {Table, Card, Col, Row, Button, Icon} from 'antd';
const columns = [{
title: 'No del contrato',
dataIndex: 'no_agreement',
key: 'no_agreement',
render: text => <Button type="primary" shape="circle" icon="download"/>,
}, {
... |
src/components/Dashboard/UsageChart.js | kennylbj/kiwi-blog | import React from 'react'
import color from '../../constants/color.js'
import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Legend, Tooltip, ResponsiveContainer } from 'recharts'
const UsageChart = ({ data }) => {
return (
<div >
<div style={{marginLeft: '32px', marginBottom: '32px', fontSize: '16px'}}>C... |
js/app.js | cansin/jspm-react-es6-hello-world | import React from 'react';
import ReactDOM from 'react-dom';
ReactDOM.render(
<b>world!</b>,
document.getElementById('world')
);
|
packages/ndla-icons/src/editor/FocalPoint.js | netliferesearch/frontend-packages | /**
* Copyright (c) 2017-present, NDLA.
*
* This source code is licensed under the GPLv3 license found in the
* LICENSE file in the root directory of this source tree.
*
*/
// N.B! AUTOGENERATED FILE. DO NOT EDIT
import React from 'react';
import Icon from '../Icon';
const FocalPoint = props => (
<Icon
vi... |
src/svg-icons/places/child-care.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesChildCare = (props) => (
<SvgIcon {...props}>
<circle cx="14.5" cy="10.5" r="1.25"/><circle cx="9.5" cy="10.5" r="1.25"/><path d="M22.94 12.66c.04-.21.06-.43.06-.66s-.02-.45-.06-.66c-.25-1.51-1.36-2.74-2.... |
src/svg-icons/action/settings-remote.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsRemote = (props) => (
<SvgIcon {...props}>
<path d="M15 9H9c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V10c0-.55-.45-1-1-1zm-3 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM7.05 6.05l1.41... |
packages/showcase/axes/static-crosshair.js | uber-common/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
src/components/Headline/Headline.js | resendefreitas/avidade | import React from 'react';
import './Headline.less';
class Headline extends React.Component {
render() {
return (
<div className="Headline container">
<div>
<h1 className="Headline__text text-center">
A Vida de Quem?
</h1>
<h4 className="Headline__text text... |
test/specs/collections/Form/FormField-test.js | koenvg/Semantic-UI-React | import faker from 'faker'
import React from 'react'
import Radio from 'src/addons/Radio/Radio'
import FormField from 'src/collections/Form/FormField'
import { SUI } from 'src/lib'
import Checkbox from 'src/modules/Checkbox/Checkbox'
import * as common from 'test/specs/commonTests'
describe('FormField', () => {
comm... |
src/components/ControlPanel/SelectorPanel.js | bocasfx/Q | import React from 'react';
import Panel from '../UI/Tabs/Panel';
import { connect } from 'react-redux';
import ListItem from './ListItem';
import { bindActionCreators } from 'redux';
import { deleteStream, selectStream, setStreamDisabledStatus, deselectStreams } from '../../actions/Streams';
import { deleteNode, select... |
src/client/assets/javascripts/app/index.js | yougothack/hyperbowl | import React from 'react';
import { render } from 'react-dom';
import { browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import { AppContainer } from 'react-hot-loader';
import Redbox from 'redbox-react';
import Root from './Root';
import configureStore from './store/con... |
src/Glyphicon.js | pieter-lazzaro/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const Glyphicon = React.createClass({
propTypes: {
/**
* bootstrap className
* @private
*/
bsClass: React.PropTypes.string,
/**
* An icon name. See e.g. http://getbootstrap.com/components/#glyphicons
*/
glyph: Re... |
src/components/commons/Spinner.js | leapfrogtechnology/chill-dashboard | import React from 'react';
const Spinner = () => (
<div className="loader">Loading...</div>
);
export default Spinner;
|
src/modules/App/components/Footer.js | prjctrft/mantenuto | import React from 'react';
const Footer = () => {
const styles = require('./Footer.scss');
return (
<footer className={styles.footer}>
<span>©2017 by Project Refit</span>
<button><a href="https://www.projectrefit.us/">Home site</a></button>
<button><a href="/sponsors">Our sponsors</a></button>
<... |
test/TooltipSpec.js | Sipree/react-bootstrap | import _ from 'lodash-compat';
import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Tooltip from '../src/Tooltip';
describe('Tooltip', () => {
it('Should output a tooltip with content', () => {
let instance = ReactTestUtils.renderIntoDocument(
<Tooltip positionTop={10} ... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/CssInclusion.js | iamdoron/create-react-app | /**
* 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.
*/
import Rea... |
src/interface/report/handleApiError.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import { Trans, t } from '@lingui/macro';
import { ApiDownError, CorruptResponseError, JsonParseError, LogNotFoundError } from 'common/fetchWclApi';
import { i18n } from 'interface/RootLocalizationProvider';
import FullscreenError from 'interface/FullscreenError';
import ApiDownBackground fr... |
src/components/form/agreement.js | woshisbb43/coinMessageWechat | import React from 'react';
import classNames from '../../utils/classnames';
/**
* Agreement style checkbox
*
*/
const Agreement = (props) => {
const { className, children, id, ...others } = props;
const cls = classNames({
'weui-agree': true,
[className]: className
});
return (
... |
docs/src/app/components/pages/components/Paper/ExampleRounded.js | matthewoates/material-ui | import React from 'react';
import Paper from 'material-ui/Paper';
const style = {
height: 100,
width: 100,
margin: 20,
textAlign: 'center',
display: 'inline-block',
};
const PaperExampleRounded = () => (
<div>
<Paper style={style} zDepth={1} rounded={false} />
<Paper style={style} zDepth={2} round... |
src/components/Panel.js | ericyd/gdrive-copy | /**
* Information message container
*/
'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import Alert from './Alert';
export default function Panel(props) {
return (
<Alert label={props.label} className="alert--neutral">
{props.children}
</Alert>
);
}
Panel.propTypes = ... |
frontend/src/components/Post/PostList.js | romerorocha/readable | import React from 'react';
import PostItem from './PostItem';
import { Item, Container } from 'semantic-ui-react';
import OrderByButtons from './OrderByButtons';
const PostList = ({ posts, voteAction }) => {
return posts.length > 0 ? (
<Container fluid>
<OrderByButtons />
<Item.Group divided>
... |
20161211/RN-Learn/__tests__/index.android.js | fengnovo/react-native | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/Pagination.js | mengmenglv/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import PaginationButton from './PaginationButton';
import CustomPropTypes from './utils/CustomPropTypes';
import SafeAnchor from './SafeAnchor';
const Pagination = React.createClass({
mixins: [BootstrapMixi... |
ui/src/main/js/components/__tests__/Diff-test.js | apache/aurora | import React from 'react';
import { shallow } from 'enzyme';
import Diff from '../Diff';
import { TaskConfigBuilder } from 'test-utils/TaskBuilders';
describe('Diff', () => {
it('Should not add change classes to diff viewer when objects are same', () => {
const el = shallow(<Diff left={{test: true}} right={{te... |
src/client.js | bofa/react-education | import './client.less';
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, IndexRoute } from 'react-router';
import store from './store';
import { Provider } from 'react-redux';
import TodoApp from './components/smart/TodoAppContainer';
import IndexPage from './components/smart/Inde... |
app/demos/rendering.js | asantebuil/room-reservation | import React from 'react';
import BigCalendar from 'react-big-calendar';
import events from '../events';
function Event({ event }) {
return (
<span>
<strong>
{event.title}
</strong>
{ event.desc && (': ' + event.desc)}
</span>
)
}
function EventAgenda({ event }) {
return <span>
... |
app/app.js | bartoszkrawczyk2/react-redux-canvas | import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import Circles from './containers/circles';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import reducer from './reducers/circles';
render(
<Provider store={createStore(reducer, window.devToolsExt... |
src/index.js | csepulv/electron-with-create-react-app | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
frontend/src/components/eois/modals/addClarificationAnswer/addClarificationAnswerForm.js | unicef/un-partner-portal | import React from 'react';
import { connect } from 'react-redux';
import { reduxForm, clearSubmitErrors } from 'redux-form';
import PropTypes from 'prop-types';
import Snackbar from 'material-ui/Snackbar';
import GridColumn from '../../../common/grid/gridColumn';
import TextFieldForm from '../../../forms/textFieldForm'... |
src/components/Sections/SectionTable.js | demisto/sane-reports | import './SectionTable.less';
import React from 'react';
import PropTypes from 'prop-types';
import { getDefaultMaxLength, TABLE_CELL_TYPE } from '../../constants/Constants';
import { isEmpty, isString, isArray, truncate, isObjectLike, map } from 'lodash';
import WidgetEmptyState from './WidgetEmptyState';
import Secti... |
src/index.js | budiantotan/book-store | import 'babel-polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import { render } from 'react-dom';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
import '../node_modules/bootstrap/dist/css/bootstrap.min.css';
import configureStore from './store/configu... |
src/js/components/icons/base/VmMaintenance.js | kylebyerly-hp/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... |
imports/old/signup/confirm.js | jiyuu-llc/jiyuu | import React from 'react';
const Confirm = () => ({
confirmNext(){
const firstName = Session.get("fname");
const lastName = Session.get("lname");
const username = Session.get('username');
const email = Session.get('contact');
const dob =Session.get('dob');
const password = Session.get('pass... |
packages/frontend/tests/components/common/RadioButton/index.spec.js | ks888/LambStatus | import React from 'react'
import RadioButton from 'components/common/RadioButton'
import { mount } from 'enzyme'
describe('RadioButton', () => {
const generateProps = () => {
return {
onChange: sinon.spy(),
label: 'radio label',
groupName: 'radio group',
checked: false
}
}
it('sh... |
examples/js/app.js | prajapati-parth/react-bootstrap-table | import React from 'react';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import { IndexRoute, Router, Route, hashHistory } from 'react-router';
import App from './components/App';
import Home from './components/Home';
import GettingStarted from './components/GettingStarted';
import... |
frontend/components/TwoColumn.js | datoszs/czech-lawyers | import React from 'react';
import PropTypes from 'prop-types';
import styles from './TwoColumn.less';
const TwoColumn = ({children}) => <div className={styles.main}>{children}</div>;
TwoColumn.propTypes = {
children: PropTypes.node,
};
TwoColumn.defaultProps = {
children: null,
};
export default TwoColumn;
|
docs/app/Examples/elements/Reveal/Types/RevealExampleMoveDown.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Image, Reveal } from 'semantic-ui-react'
const RevealExampleMoveDown = () => (
<Reveal animated='move down'>
<Reveal.Content visible>
<Image src='/assets/images/wireframe/square-image.png' size='small' />
</Reveal.Content>
<Reveal.Content hidden>
<Image src=... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | nicksiyer/nicksiyer.github.io | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
index.android.js | quickresolve/CycleTheBay | /**
* Sample React Native App
* https://github.com/facebook/react-native
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class CycleTheBay extends Component {
render() {
return (
<View style={styles.container}>
<Text style... |
src/icons/ArrowForwardIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class ArrowForwardIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M24 8l-2.83 2.83L32.34 22H8v4h24.34L21.17 37.17 24 40l16-16z"/></svg>;}
}; |
fixtures/nesting/src/modern/index.js | billfeller/react | import React from 'react';
import {StrictMode} from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import App from './App';
import {store} from '../store';
ReactDOM.render(
<StrictMode>
<Provider store={store}>
<App />
</Provider>
</StrictMode>,
document.getElement... |
webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTable.js | snagoor/katello | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { cloneDeep, findIndex, isEqual } from 'lodash';
import { translate as __ } from 'foremanReact/common/I18n';
import { LoadingState } from '../../../../components/LoadingState';
import { recordsValid } from '../../SubscriptionValidation... |
node_modules/react-bootstrap/es/PaginationButton.js | ivanhristov92/bookingCalendar | 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/icons/ArrowUpC.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class ArrowUpC extends React.Component {
render() {
if(this.props.bare) {
return <g>
<path d="M128.4,189.3L233.4,89c5.8-6,13.7-9,22.4-9c8.7,0,16.5,3,22.4,9l105.4,100.3c12.5,11.9,12.5,31.3,0,43.2
c-12.5,11.9-32.7,1... |
src/components/Card.js | ciaoben/ListView | import React from 'react';
var Card = React.createClass({
getDefaultProps: function() {
return {
onPaginate: function() {},
status: 'loading',
per: 25,
page: 1,
filter: null
};
},
render: function() {
return (<div className='card'>
... |
src/containers/Simple/Simple.js | hungtruongquoc/shipper_front | import React, { Component } from 'react';
class Simple extends Component {
render() {
return (
<div className="app flex-row align-items-center">
{this.props.children}
</div>
);
}
}
export default Simple;
|
examples/AwesomeApp/__tests__/index.android.js | QianmiOpen/iflux2 | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
demo/universal-routed-flux-demo/components/AppContainer.react.js | waterbolik/prestudy | import React from 'react';
import {Link} from 'react-router';
export default class AppContainer extends React.Component{
constructor(props) {
super(props);
}
render(){
var nav = <div>
<p>
<Link to="/todo">Todo list without logs</Link><br/>
<Link... |
src/TabPane.js | IveWong/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import TransitionEvents from './utils/TransitionEvents';
const TabPane = React.createClass({
propTypes: {
active: React.PropTypes.bool,
animation: React.PropTypes.bool,
onAnimateOutEnd: React.PropTypes.func,
disabled: ... |
src/svg-icons/content/filter-list.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentFilterList = (props) => (
<SvgIcon {...props}>
<path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"/>
</SvgIcon>
);
ContentFilterList = pure(ContentFilterList);
ContentFilterList.displayName = 'Con... |
app/javascript/mastodon/features/notifications/components/notification.js | hyuki0000/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import StatusContainer from '../../../containers/status_container';
import AccountContainer from '../../../containers/account_container';
import { FormattedMessage } from 'react-intl';
import Perma... |
lib/components/map/__tests__/isochrone.js | conveyal/scenario-editor | // @flow
import React from 'react'
import {Map} from 'react-leaflet'
import renderer from 'react-test-renderer'
import Isochrone from '../isochrone'
describe('Components > Map > Isochrone', () => {
it('renders correctly', () => {
const props = {
comparisonInProgress: false,
comparisonIsochrone: nul... |
App/src/features/projects/ProjectsList.js | DupK/dashboard-epitech | import React, { Component } from 'react';
import moment from 'moment';
import { observer } from 'mobx-react/native';
import {
Text,
View,
TouchableOpacity,
Platform,
ScrollView,
ListView,
} from 'react-native';
import ProgressBar from './ProgressBar';
import { Actions } from 'react-native-router... |
src/components/GithubButton/GithubButton.js | paschcua/erikras | 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/svg-icons/maps/layers-clear.js | hai-cea/material-ui | 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/rows-toolbar.js | Uber5/u5-datatable | import React from 'react'
import IconMenu from 'material-ui/IconMenu'
import IconButton from 'material-ui/IconButton'
import NavigationExpandMoreIcon from 'material-ui/svg-icons/navigation/expand-more'
import MenuItem from 'material-ui/MenuItem'
import DropDownMenu from 'material-ui/DropDownMenu'
import FlatButton from... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Create/Swagger/ApiCreateSwagger.js | lakmali/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
app/javascript/mastodon/features/standalone/hashtag_timeline/index.js | cobodo/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { expandHashtagTimeline } from 'mastodon/actions/timelines';
import Masonry from 'react-masonry-infinite';
import { List as ImmutableList } from 'immut... |
src/shared/components/imageListItem/imageListItem.js | tal87/operationcode_frontend | import React from 'react';
import PropTypes from 'prop-types';
import styles from './imageListItem.css';
const ImageListItem = props => (
<div className={styles.imageListItem}>
<img className={styles.cardImage} src={props.image} alt={props.title} />
<div className={styles.cardText}>
<h3 className={sty... |
app/components/results-Child/Player.js | mohamekasem/reactstart | import React from 'react';
import PropTypes from 'prop-types';
import PlayerPreview from '../Battle-Child/Player-Preview';
const Profile = (props)=>{
let info = props.info;
return (
<PlayerPreview username={info.login} avatar={info.avatar_url}>
<ul className='space-list-items'>
{info.name && <li>{i... |
src/components/dashboard/feed/item.js | cosminseceleanu/react-sb-admin-bootstrap4 | import React from 'react';
import Comment from "./comment";
import ItemActions from "./item-actions";
import {
Card,
CardImg,
CardBody,
CardFooter,
CardTitle,
CardText
} from 'reactstrap';
const Item = ({item}) => {
return (
<Card className="mb-3">
<CardImg top width="1... |
src/Nav/Nav.js | brz0/folio-v11 | import React from 'react';
import Modal from 'react-modal';
import {Link} from 'react-router';
import LogoLight from '../img/logo-light.svg';
import LogoDark from '../img/logo-dark.svg';
import MenuBtn from '../img/menu-btn.svg';
import MenuBtnDark from '../img/menu-btn-dark.svg';
import MenuClose from '../img/menuClos... |
app/react-icons/fa/hand-peace-o.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaHandPeaceO extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m31.8 14.4q1.3 0 2.3 0.6 3.2 1.4 3.2 5v3.9q0 2.2-0.5 4.2l-1.9 7.6q-0.5 1.... |
src/scripts/components/app.js | k-takam/simple-text-translator | import React, { Component } from 'react';
import Header from './header';
import Footer from './footer';
import MenuContainer from '../containers/menu-container';
import InputTextContainer from '../containers/input-text-container';
import OutputTextContainer from '../containers/output-text-container';
import ModalContai... |
app/components/Vesting/CancelPowerDownPrompt.js | aaroncox/vessel | // @flow
import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Message, Modal, Segment } from 'semantic-ui-react';
import { Form } from 'formsy-semantic-ui-react'
import * as KeysActions from '../../actions/keys';
class CancelPowerDownPro... |
src/prop-types.js | narendrashetty/react-geosuggest | import React from 'react';
/**
* Default values
*/
export default {
fixtures: React.PropTypes.array,
initialValue: React.PropTypes.string,
placeholder: React.PropTypes.string,
disabled: React.PropTypes.bool,
className: React.PropTypes.string,
inputClassName: React.PropTypes.string,
suggestsHiddenClassN... |
app/templates/src/createRoutes.js | chentsulin/generator-redux-app | import React from 'react';
import { Route } from 'react-router';
import App from './containers/App';
import * as containers from './containers';
const {
CounterPage,
AnotherPage,
NotFoundPage,
} = containers;
/**
* /
* /another
**/
const createRoutes = store => ( // eslint-disable-line no-unused-vars
<... |
src/Popover.js | JimiHFord/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import CustomPropTypes from './utils/CustomPropTypes';
const Popover = React.createClass({
mixins: [ BootstrapMixin ],
propTypes: {
/**
* An html id attribute, necessary for accessibility
... |
src/routes.js | kunwardeep/react-redux-store | import React from 'react';
import {Route,IndexRoute} from 'react-router';
import HomePage from './components/home/HomePage';
import App from './components/App';
import AboutPage from './components/about/AboutPage';
import CoursesPage from './components/course/CoursesPage';
import PracticePage from './components/practi... |
docs/build.js | leozdgao/react-bootstrap | import React from 'react';
import path from 'path';
import Router from 'react-router';
import routes from './src/Routes';
import Root from './src/Root';
import fsp from 'fs-promise';
import { copy } from '../tools/fs-utils';
import { exec } from '../tools/exec';
import metadata from './generate-metadata';
const repoRo... |
actor-apps/app-web/src/app/components/ActivitySection.react.js | shaunstanislaus/actor-platform | import React from 'react';
import { PureRenderMixin } from 'react/addons';
import ActivityActionCreators from 'actions/ActivityActionCreators';
import ActorAppConstants from 'constants/ActorAppConstants';
import ActivityStore from 'stores/ActivityStore';
import UserProfile from 'components/activity/UserProfile.react'... |
src/components/gradients/h-gradient.js | mapbox/react-colorpickr | import React from 'react';
import PropTypes from 'prop-types';
import themeable from 'react-themeable';
import { autokey } from '../../autokey';
function HGradient({ theme, active, hueBackground }) {
const themer = autokey(themeable(theme));
if (!active) return <noscript />;
return (
<>
<div {...themer... |
packages/react/components/fab-buttons.js | AdrianV/Framework7 | import React from 'react';
import Utils from '../utils/utils';
import Mixins from '../utils/mixins';
import __reactComponentSlots from '../runtime-helpers/react-component-slots.js';
import __reactComponentSetProps from '../runtime-helpers/react-component-set-props.js';
class F7FabButtons extends React.Component {
co... |
src/react/connect.js | krasimir/stent | import React from 'react';
import connect from '../helpers/connect';
export default function(Component) {
const withFunc = (...names) => {
const mapFunc = (done, once, silent) => {
const mapping = once ? "mapOnce" : silent ? "mapSilent" : "map";
return class StentConnect extends React.Component {
... |
site/demos/ecommerce/src/index.js | appbaseio/reactivesearch | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('app'));
|
assets/js/components/SignInModal.js | basarevych/webfm | import React from 'react';
import PropTypes from 'prop-types';
import { Map } from 'immutable';
import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import { Form, FormGroup, Label, Col, Input } from 'reactstrap';
import RequiredFieldLabel from './RequiredFieldLabel';
import FormMessages fro... |
src/core/UserProfileStructure/ProfileImage/component.js | dlennox24/ricro-app-template | import { Collapse } from '@material-ui/core';
import Button from '@material-ui/core/Button';
import withStyles from '@material-ui/core/styles/withStyles';
import Typography from '@material-ui/core/Typography';
import classNames from 'classnames';
import _ from 'lodash';
import IconPencil from 'mdi-material-ui/Pencil';
... |
src/svg-icons/image/crop-3-2.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCrop32 = (props) => (
<SvgIcon {...props}>
<path d="M19 4H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H5V6h14v12z"/>
</SvgIcon>
);
ImageCrop32 = pure(ImageCrop32);
ImageCro... |
client/src/components/Draftail/Tooltip/Tooltip.js | jnns/wagtail | import PropTypes from 'prop-types';
import React from 'react';
const TOP = 'top';
const LEFT = 'left';
const TOP_LEFT = 'top-left';
const getTooltipStyles = (target, direction) => {
const top = window.pageYOffset + target.top;
const left = window.pageXOffset + target.left;
switch (direction) {
case TOP:
... |
src/js/components/icons/base/Detach.js | odedre/grommet-final | /**
* @description Detach SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @pro... |
app/containers/Root.js | pamler/electron-mario | // @flow
import React from 'react';
import { Provider } from 'react-redux';
import { ConnectedRouter } from 'react-router-redux';
import Routes from '../routes';
type RootType = {
store: {},
history: {}
};
export default function Root({ store, history }: RootType) {
return (
<Provider store={store}>
<... |
src/components/repository-section-title.component.js | Antoine38660/git-point | import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { StateBadge } from 'components';
import { colors, fonts } from 'config';
type Props = {
text: string,
openCount: number,
closedCount: number,
loading: boolean,
};
const styles = StyleSheet.create({
title: {
flexDi... |
app/containers/CodingPage/index.js | andresol/homepage | import React from 'react';
import Nav from 'components/Nav';
import StravaSection from 'components/Strava/Section';
const Coding = () => (
<div className="page-wrap">
<Nav index={3} />
<section id="main">
<StravaSection note={'Coding'} action={false} />
<section id="athlets">
<div>
... |
modules/RouteContext.js | brownbathrobe/react-router | import React from 'react'
const { object } = React.PropTypes
/**
* The RouteContext mixin provides a convenient way for route
* components to set the route in context. This is needed for
* routes that render elements that want to use the Lifecycle
* mixin to prevent transitions.
*/
const RouteContext = {
prop... |
src/components/EditPaymentMethods.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import { Button } from 'react-bootstrap';
import { defineMessages } from 'react-intl';
import withIntl from '../lib/withIntl';
import EditPaymentMethod from './EditPaymentMethod';
class EditPaymentMethods extends React.Component {
static propTypes = {
... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/TemplateInterpolation.js | johnslay/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
function load(name) {
return [
{ id: 1, name: `${na... |
Libraries/Image/Image.ios.js | cdlewis/react-native | /**
* 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... |
client/src/components/instructor/InstructorCourseRow.js | yegor-sytnyk/contoso-express | import React from 'react';
const InstructorCourseRow = (props) => {
let course = props.course;
let activeClass = props.selectedCourseId === course.id ? 'success' : '';
return (
<tr className={activeClass}>
<td className="tools">
<a href="#" onClick={props.onSelectClick... |
fields/types/number/NumberColumn.js | ONode/keystone | import React from 'react';
import numeral from 'numeral';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var NumberColumn = React.createClass({
displayName: 'NumberColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTyp... |
examples/shopping-cart/test/components/Product.spec.js | chentsulin/redux | import expect from 'expect'
import React from 'react'
import { shallow } from 'enzyme'
import Product from '../../components/Product'
function setup(props) {
const component = shallow(
<Product {...props} />
)
return {
component: component
}
}
describe('Product component', () => {
it('should render... |
src/routes/not-found/NotFound.js | murthymuddu/murthy-umg | /**
* 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-... |
ButtonExample/src/containers/DisabledButtons.js | jacklam718/react-native-button-component | import React, { Component } from 'react';
import { View, ScrollView, StyleSheet } from 'react-native';
import ButtonComponent from 'react-native-button-component';
import GroupContainer from '../components/GroupContainer';
export default class DisabledButtons extends Component {
render() {
return (
<Scroll... |
examples/todomvc/index.js | cyongen/redux | import React from 'react';
import App from './containers/App';
import 'todomvc-app-css/index.css';
React.render(
<App />,
document.getElementById('root')
);
|
inventapp/src/App/App.js | ladanv/learn-react-js | import React, { Component } from 'react';
import Header from './Header';
import SideNav from './SideNav';
import styles from './App.scss';
const App = ({ children }) => (
<div className="App">
<Header />
<SideNav />
<div className={styles.main}>
{children}
</div>
</div>
);
export default App... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.