path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
client2/src/components/rooms/menu.js | frolicking-ampersand/CodeOut | import React, { Component } from 'react';
import CreateRoom from "./menu_createRoom";
import auth from './../auth/auth-helper';
import Login from './../auth/login';
export default class Menu extends Component {
constructor(props) {
super(props);
this.state = {
loggedIn: auth.loggedIn(),
};
}
r... |
src/components/LeftBar/ResultsPanel/ListView/index.js | pl-buiquang/cap | import React from 'react';
import PerfectScrollbar from 'react-perfect-scrollbar';
import ResultView from '../../../Alternative/ResultView';
import Pagination from './Pagination';
class ListView extends React.Component {
static propTypes = {
actors: React.PropTypes.array,
}
state = {
displayedItems: [],... |
src/components/Loader/index.js | asidiali/pivotal.press | import React from 'react';
import styles from './styles';
const Loader = props => (
<div style={styles.base}>
<div className="sk-rotating-plane"></div>
</div>
);
export default Loader;
|
src/client/javascripts/app/components/home.js | rhobot/ryanrho.com | import React from 'react';
import Header from './header';
import Footer from './footer';
export default React.createClass({
displayName: 'Home',
render() {
return (
<div className="home display--flex flex--column color--black full-height">
<div className="flex--one" />
<div>
<... |
app/client/src/scenes/Confirmed/Confirmed.js | uprisecampaigns/uprise-app | import React from 'react';
import Link from 'components/Link';
import s from 'styles/Page.scss';
const Welcome = () => (
<div className={s.outerContainer}>
<div className={s.innerContainer}>
<div className={s.sectionHeaderContainer}>
<div className={s.pageHeader}>Email confirmed!</div>
</div... |
react/single-page/src/App.js | leovant/examples | import React, { Component } from 'react';
import Menu from './components/Menu';
import Content from './components/Content';
class App extends Component {
render() {
return (
<div className="App">
<Menu />
<Content />
</div>
);
}
}
export default App;
|
app/node_modules/react-router/es6/Link.js | BZhawaii/ArtStorm | 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 = {... |
examples/with-portals/src/Modal.js | casesandberg/react-color | import React from 'react'
export const Modal = ({ children, onClose }) => (
<div
style={{
position: 'absolute',
top: 0,
right: 0,
bottom: 0,
left: 0,
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
}}
>
<div
onClick={ onClose }
... |
client/src/components/RecipientInfo.js | misha-slyusarev/invoices | import React, { Component } from 'react';
import { Modal, Button, Form } from 'semantic-ui-react'
export default class RecipientInfo extends Component {
constructor() {
super()
this.state = {
modalOpen: false, name: '', surname: '', address: '', phone: ''
}
}
handleOpen = (e) => this.setState(... |
app/components/LoadingEllipsis/index.js | pauleonardo/demo-trans | /**
*
* LoadingEllipsis
*
*/
import React from 'react';
import {
Container,
Ellise,
} from './StyledComponents';
function LoadingEllipsis() {
return (
<Container>
<Ellise />
</Container>
);
}
LoadingEllipsis.propTypes = {
};
export default LoadingEllipsis;
|
src/parser/warrior/arms/modules/talents/WarMachine.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import SpellLink from 'common/SpellLink';
import StatisticListBoxItem from 'interface/others/StatisticListBoxItem';
/**
* Your auto attacks generate 10% more Ra... |
src/pages/le-fruit.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Le Fruit' />
)
|
docs/app/Examples/elements/Header/index.js | aabustamante/Semantic-UI-React | import React from 'react'
import Types from './Types'
import Content from './Content'
import States from './States'
import Variations from './Variations'
const HeaderExamples = () => (
<div>
<Types />
<Content />
<States />
<Variations />
</div>
)
export default HeaderExamples
|
docker/app/app/src/routes.js | JTarball/tetherbox | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/HttpClient';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactP... |
src/services/server/router/router.js | grxy/boilerplate | import React from 'react';
import { renderToStaticMarkup, renderToString } from 'react-dom/server';
import { Provider } from 'react-redux';
import { StaticRouter } from 'react-router';
import App from 'components/App';
import Document from 'components/Document';
import { createStore } from 'services/redux/store';
con... |
app/javascript/flavours/glitch/components/autosuggest_input.js | glitch-soc/mastodon | import React from 'react';
import AutosuggestAccountContainer from 'flavours/glitch/features/compose/containers/autosuggest_account_container';
import AutosuggestEmoji from './autosuggest_emoji';
import AutosuggestHashtag from './autosuggest_hashtag';
import ImmutablePropTypes from 'react-immutable-proptypes';
import P... |
src/SpotifyMessage/SpotifyMessage.js | Detaysoft/react-chat-elements | import React from 'react';
import './SpotifyMessage.css';
function SpotifyMessage(props) {
const toUrl = () => {
var formBody = [];
var data = {
uri: props.uri,
theme: props.theme,
view: props.view,
};
for (var property in data) {
var encodedKey = encodeURIComponent(property)... |
stories/index.js | n1207n/react-like-or-not | import React from 'react';
import { storiesOf, action, linkTo } from '@kadira/storybook';
import { withKnobs, text, boolean, number } from '@kadira/storybook-addon-knobs';
import { WithNotes } from '@kadira/storybook-addon-notes';
import {muiTheme} from 'storybook-addon-material-ui';
import InstagramSignIn from '../s... |
client-app/src/album/AlbumContentContainer.js | mskorsur/music-app | import React from 'react';
import axios from 'axios';
import ListItemContainer from '../ListItemContainer';
import AlbumDetails from './AlbumDetails';
import CreateAlbumForm from './CreateAlbumForm';
import EditAlbumForm from './EditAlbumForm';
class AlbumContentContainer extends React.Component {
constructor(pro... |
src/documentation/Illustrations/Illustrations.js | wfp/ui | import React from 'react';
import { Module, ModuleBody } from '../../components/Module';
const files = [
{ filename: 'carrot-with-background' },
{ filename: 'carrot' },
{ filename: 'coffee-beans-with-background' },
{ filename: 'coffee-bean' },
{ filename: 'corn-bag-with-background' },
{ filename: 'corn-bag... |
app/javascript/mastodon/components/status_list.js | yukimochi/mastodon | import { debounce } from 'lodash';
import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import StatusContainer from '../containers/status_container';
import ImmutablePureComponent from 'react-immutable-pure-component';
import LoadGap from './load_gap... |
ajax/libs/react-instantsearch/4.1.2/Dom.js | ahocevar/cdnjs | /*! ReactInstantSearch 4.1.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.... |
src/containers/flightgenerator/FlightGenerator.js | kryptnostic/gallery | import React from 'react';
import { EntityDataModelApi, AuthorizationApi } from 'lattice';
import { ButtonGroup, Button, Modal } from 'react-bootstrap';
import Page from '../../components/page/Page';
import Entity from './Entity';
import Association from './Association';
import { Permission } from '../../core/permiss... |
admin/client/components/mixins/SelectorMixin.js | nickhsine/keystone | 'use strict';
import { Button, FormInput, InputGroup } from 'elemental';
import qs from 'qs';
import xhr from 'xhr';
import React from 'react';
let SelectorMixin = (superclass) => class extends superclass {
constructor (props) {
super(props);
// input in the search field
this._searchInput = '';
this.PAGE_SI... |
blueocean-material-icons/src/js/components/svg-icons/device/wifi-tethering.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const DeviceWifiTethering = (props) => (
<SvgIcon {...props}>
<path d="M12 11c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 2c0-3.31-2.69-6-6-6s-6 2.69-6 6c0 2.22 1.21 4.15 3 5.19l1-1.74c-1.19-.7-2-1.97-2-3.45 0-2.21 1.79-4 4-4s4 1.79 4 4c0 1.48-.81... |
docs/src/layouts/redirect.js | adamrneary/nuclear-js | import React from 'react'
export default React.createClass({
render() {
const redirectTo = this.props.to || '/'
const redirectJS = {
__html: "window.location = '" + redirectTo + "'",
}
return (
<html lang="en">
<head>
<meta httpEquiv="Content-Type" content="text/html; ch... |
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | noudilus/hr-wp-theme | import React from 'react';
// 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';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
client/src/components/DeepCrawling.js | ViDA-NYU/domain_discovery_tool_react | import React, { Component } from 'react';
import { Col, Row} from 'react-bootstrap';
// From https://github.com/oliviertassinari/react-swipeable-views
import FlatButton from 'material-ui/FlatButton';
import TextField from 'material-ui/TextField';
import Dialog from 'material-ui/Dialog';
import RaisedButton from 'materi... |
src/icons/AndroidMoreHorizontal.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class AndroidMoreHorizontal extends React.Component {
render() {
if(this.props.bare) {
return <g>
<path d="M136,216c-22.002,0-40,17.998-40,40s17.998,40,40,40s40-17.998,40-40S158.002,216,136,216z M376,216
c-22.002,... |
src/svg-icons/content/reply.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentReply = (props) => (
<SvgIcon {...props}>
<path d="M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"/>
</SvgIcon>
);
ContentReply = pure(ContentReply);
ContentReply.displayName = 'ContentReply'... |
ui/src/main/js/components/TaskNeighbors.js | thinker0/aurora | import React from 'react';
import { Link } from 'react-router-dom';
import { isNullyOrEmpty } from 'utils/Common';
export function NeighborTaskItem({ assignedTask }) {
const { role, environment, name } = assignedTask.task.job;
const taskKey = `${role}/${environment}/${name}/${assignedTask.instanceId}`;
return (... |
packages/babel-plugin-transform-react-constant-elements/test/fixtures/constant-elements/compound-assignment/output.js | maurobringolf/babel | import React from 'react';
import Loader from 'loader';
var _ref =
/*#__PURE__*/
<Loader className="full-height" />;
var _ref2 =
/*#__PURE__*/
<Loader className="p-y-5" />;
const errorComesHere = () => _ref,
thisWorksFine = () => _ref2;
|
packages/icons/src/md/av/PlaylistAddCheck.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdPlaylistAddCheck(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M27 18H3v4h24v-4zm0-8H3v4h24v-4zM3 30h16v-4H3v4zm39-9l3 3-13.99 14L22 29l3-3 6.01 6L42 21z" />
</IconBase>
);
}
export default MdPlay... |
es/components/sidebar/panel-groups.js | cvdlab/react-planner | var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err;... |
src/client/components/filter/FilterPage/FilterPage.container.js | DBCDK/content-first | import React from 'react';
import Head from '../../base/Head';
import FilterCards from '../FilterCards/FilterCards.component';
import SearchBar from '../SearchBar/SearchBar.component';
import Results from './Results.component';
import './FilterPage.css';
class FilterPage extends React.Component {
render() {
ret... |
app/src/client/client.js | orYoffe/myFullstackJsNetwork | import 'babel-polyfill'
import './sass/index.scss'
import faviconUrl from 'file!./img/favicon.ico'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import routes from './js/routes'
import { Router, browserHistory } from 'react-router'
import { syncHistoryWithStore } fr... |
src/components/video-list.js | NichoNicho/ReactVideoApp | import React from 'react';
import VideoListItem from './video-list-item';
const VideoList = (props) => {
const videoItems = props.videos.map((video) => {
return <VideoListItem key={video.etag} video={video} />
});
return (
<ul className="col-md-4 list-group">
{videoItems}
</ul>
);
};
export... |
src/client/components/base/Skeleton/User/User.js | DBCDK/content-first | import React from 'react';
import SkeletonText from '../Text';
import './User.css';
import '../skeleton.css';
const User = ({className, name = false, pulse = false, styles, children}) => {
const animation = pulse ? 'Skeleton__pulse__active' : '';
return (
<div className={'Skeleton__user__wrap ' + animation} st... |
src/svg-icons/device/airplanemode-inactive.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceAirplanemodeInactive = (props) => (
<SvgIcon {...props}>
<path d="M13 9V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5v3.68l7.83 7.83L21 16v-2l-8-5zM3 5.27l4.99 4.99L2 14v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L1... |
node_modules/react-icons/ti/social-pinterest-circular.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const TiSocialPinterestCircular = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 35c-8.3 0-15-6.7-15-15s6.7-15 15-15 15 6.7 15 15-6.7 15-15 15z m0-26.7c-6.4 0-11.7 5.3-11.7 11.7s5.3 11.7 11.7 11.7 11.7-5.3 11.7-11.7-5.3-11.7-11... |
src/NavTitle.js | lzcmaro/react-ratchet | import React from 'react';
import Icon from './Icon';
let NavTitle = React.createClass({
propTypes: {
icon: React.PropTypes.string
},
render() {
return (
<h1
{ ...this.props }
className = "title">
{ this.props.children }
{ this.props.icon ? <Icon ratStyle={thi... |
actor-apps/app-web/src/app/components/sidebar/ContactsSection.react.js | hardikamal/actor-platform | import _ from 'lodash';
import React from 'react';
import { Styles, RaisedButton } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import ContactStore from 'stores/ContactStore';
import ContactActionCreators from 'actions/ContactActionCreators';
import AddContactStore from 'stores/AddContactStore'... |
client/index.js | nickeblewis/wordpress-experiment | import React from 'react';
import ReactDOM from 'react-dom';
import { RelayRouter } from 'react-router-relay';
import { browserHistory } from 'react-router';
import '../node_modules/react-mdl/extra/material.js';
import Route from './routes/Route';
const rootNode = document.createElement('div');
document.body.appendCh... |
complete-example/client/src/components/presentation/layout-templates/section.js | jpaulptr/ecom-react | import React from 'react'
import Teaser from './teaser.js';
import PropTypes from 'prop-types';
const Section = (props) => (
<div>
<h1>{props.title}</h1>
<div>{props.description}</div>
<div>
{
props.items ?
props.items.map((teaser) =>
... |
src/pages/Home.js | markthethomas/react-ssr-fiber | import React, { Component } from 'react';
class Home extends Component {
render() {
return (
<div>
<h2>The homepage!</h2>
<p>
Check out the other pages{' '}
<span aria-label="pointing up" role="img">
... |
src/components/dataVisualization/eCharts/BarYCategory.js | SmiletoSUN/react-redux-demo | import React from 'react';
import ECharts from 'echarts-for-react';
const option = {
title: {
text: '世界人口总量',
subtext: '数据来自网络',
},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow',
},
},
legend: {
data: ['2011年', '2012年'],
},
grid: {
left: '3%',
right: '4%'... |
src/client/components/presentator/close-button.js | fk1blow/react-presentception | import React from 'react';
import {RouteHandler, Link} from 'react-router';
import classNames from 'classnames';
class CloseButton extends React.Component {
onClick() {
// if ('undefined' != typeof this.props.onClick) {
// this.props.onClick();
// }
}
render() {
const params = this.context.ro... |
docs/src/app/components/pages/components/Slider/Page.js | lawrence-yu/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 sliderReadmeText from './README';
import SliderExampleSimple from './Exam... |
lib/components/ButtonGroup.js | boldkhuu/uikit-with-react | import { classNames } from '../utils';
import React from 'react';
const ButtonGroup = React.createClass({
propTypes: {
className: React.PropTypes.string,
},
render() {
const props = this.props;
const { className, children } = this.props;
const attr = {
...props,
className: classNam... |
src/MenuItem.js | cgvarela/react-bootstrap | import React from 'react';
import classnames from 'classnames';
import CustomPropTypes from './utils/CustomPropTypes';
import SafeAnchor from './SafeAnchor';
export default class MenuItem extends React.Component {
constructor(props) {
super(props);
this.handleClick = this.handleClick.bind(this);
}
hand... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestAndDefault.js | shrynx/react-super-scripts | /**
* 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... |
app/components/AdminUsers.js | pdelac01/ComicShopper | import React from 'react';
import { connect } from 'react-redux';
import { ListGroup, ListGroupItem, Badge, Button } from 'reactstrap';
import { adminDeleteUser, adminPromoteUser } from '../reducers/admin';
const adminUsers = ({users, adminDeleteUser, adminPromoteUser}) => {
return (
<div>
<ListGroup>
... |
src/components/Dialog/Overlay.js | jjingK/react-example | import React from 'react';
export default class extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="overlay"></div>
);
}
}
|
src/parser/mage/arcane/modules/features/ArcanePower.js | FaideWW/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import RESOURCE_TYPES from 'game/RESOURCE_TYPES';
import ISSUE_IMPORTANCE from 'parser/core/ISSUE_IMPORTANCE';
import Stat... |
src/parser/demonhunter/havoc/CONFIG.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import { Mamtooth, Yajinni } from 'CONTRIBUTORS';
import SPECS from 'game/SPECS';
import CHANGELOG from './CHANGELOG';
export default {
// The people that have contributed to this spec recently. People don't have to sign up to be long-time maintainers to be included in this list. If some... |
src/components/Feedback/Feedback.js | zbrukas/wwf-store | /**
* 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, { Component } from 'react';
import s from '.... |
client/util/react-intl-test-helper.js | aksm/refactored-palm-tree | /**
* Components using the react-intl module require access to the intl context.
* This is not available when mounting single components in Enzyme.
* These helper functions aim to address that and wrap a valid,
* English-locale intl context around them.
*/
import React from 'react';
import { IntlProvider, intlSha... |
src/forms/Household.js | shp54/cliff-effects | // REACT COMPONENTS
import React from 'react';
import {
Button,
Form,
Dropdown,
Header,
Checkbox,
Icon,
} from 'semantic-ui-react';
// PROJECT COMPONENTS
import {
FormPartsContainer,
ColumnHeading,
ManagedNumberField,
} from './formHelpers';
// COMPONENT HELPER FUNCTIONS
import { getTimeSetter } fro... |
client/src/javascript/components/sidebar/LogoutButton.js | stephdewit/flood | import {defineMessages, injectIntl} from 'react-intl';
import React from 'react';
import AuthActions from '../../actions/AuthActions';
import Logout from '../icons/Logout';
import Tooltip from '../general/Tooltip';
const MESSAGES = defineMessages({
logOut: {
id: 'sidebar.button.log.out',
defaultMessage: 'Lo... |
pootle/static/js/shared/components/Dialog.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 React from 'react';
import Modal, { ModalFooter } ... |
react-router/components/Timestamp.js | jeffreywescott/flux-examples | /**
* Copyright 2014, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
import React from 'react';
import updateTime from '../actions/updateTime';
import TimeStore from '../stores/TimeStore';
import { connectToStores } from 'fluxible-addons-react';
@connect... |
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/expected.js | jasonlarue/react-native-flashcards | import _transformLib from 'transform-lib';
const _components = {
Foo: {
displayName: 'Foo'
}
};
const _transformLib2 = _transformLib({
filename: '%FIXTURE_PATH%',
components: _components,
locals: [],
imports: []
});
function _wrapComponent(id) {
return function (Component) {
return _transformLib... |
lib/components/Contact.js | Peter-Springer/peter-springer.github.io | import React from 'react';
import axios from 'axios';
import { Button } from 'react-bootstrap';
import MySmallModal from './Modal';
class Contact extends React.Component {
constructor(){
super();
this.state = {
name: '',
email: '',
message: '',
formMessage: true,
smShow: false
... |
src/index.js | dertnius/React.Beginner | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware()(createStore);
ReactDOM.render(
<Provi... |
lens-ui/app/components/CubeTreeComponent.js | sushilmohanty/incubator-lens | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... |
components/app/myrw/dashboards/DashboardsTab.js | resource-watch/resource-watch | import React from 'react';
import PropTypes from 'prop-types';
// Redux
import { connect } from 'react-redux';
// Components
import DashboardsIndex from 'components/app/myrw/dashboards/pages/index';
import DashboardsNew from 'components/app/myrw/dashboards/pages/new';
import DashboardsShow from 'components/app/myrw/d... |
admin/client/components/SecondaryNavigation.js | efernandesng/keystone | import React from 'react';
import { Container } from 'elemental';
var SecondaryNavItem = React.createClass({
displayName: 'SecondaryNavItem',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
href: React.PropTypes.string.isRequired,
title: React.PropTypes.string,
},
... |
frontend/src/Components/FileBrowser/FileBrowserModalContent.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import Alert from 'Components/Alert';
import PathInput from 'Components/Form/PathInput';
import Button from 'Components/Link/Button';
import Link from 'Components/Link/Link';
import LoadingIndicator from 'Com... |
docs/src/app/components/pages/components/IconMenu/ExampleNested.js | ngbrown/material-ui | import React from 'react';
import IconMenu from 'material-ui/IconMenu';
import MenuItem from 'material-ui/MenuItem';
import IconButton from 'material-ui/IconButton';
import Divider from 'material-ui/Divider';
import Download from 'material-ui/svg-icons/file/file-download';
import ArrowDropRight from 'material-ui/svg-ic... |
src/svg-icons/maps/transfer-within-a-station.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsTransferWithinAStation = (props) => (
<SvgIcon {...props}>
<path d="M16.49 15.5v-1.75L14 16.25l2.49 2.5V17H22v-1.5zm3.02 4.25H14v1.5h5.51V23L22 20.5 19.51 18zM9.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 ... |
Project/node_modules/grommet-cli/templates/full/src/js/index.js | IhtishamShah/GamifiedLearningApp | import '../scss/index.scss';
import React from 'react';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import Main from './Main';
const body = (
<AppContainer>
<Main />
</AppContainer>
);
let element = document.getElementById('content');
ReactDOM.render(body, element);
d... |
src/components/NotFound.js | danesparza/centralconfig-ui | // React
import React from 'react';
const NotFound = () => (
<div>
404 NOT FOUND
</div>
)
export default NotFound; |
pkg/ui/src/index.js | matt-deboer/kuill | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import * as reducers from './state/reducers'
import routes from './routes'
import {applyMiddleware, combineReducers, createStore} from 'redux'
import { ConnectedRouter, routerReducer, routerMiddle... |
stories/Icons/RTLIcon.js | nirhart/wix-style-react | import React from 'react';
import {Duplicate2} from '../../src/Icons/dist';
import s from './style.scss';
export default () => {
return (
<div className="rtl">
<div className={s.iconList}>
<div className={s.singleIconView}>
<span><Duplicate2 size="3em"/></span>
<span className={... |
server/server.js | michaelkirschbaum/ender-site | import Express from 'express';
import compression from 'compression';
import mongoose from 'mongoose';
import bodyParser from 'body-parser';
import path from 'path';
import IntlWrapper from '../client/modules/Intl/IntlWrapper';
// Webpack Requirements
import webpack from 'webpack';
import config from '../webpack.confi... |
examples/huge-apps/routes/Course/routes/Grades/components/Grades.js | yongxu/react-router | import React from 'react';
class Grades extends React.Component {
render () {
var assignments = COURSES[this.props.params.courseId].assignments;
return (
<div>
<h3>Grades</h3>
<ul>
{assignments.map(assignment => (
<li key={assignment.id}>{assignment.grade} - {assi... |
app/javascript/mastodon/features/compose/index.js | corzntin/mastodon | import React from 'react';
import ComposeFormContainer from './containers/compose_form_container';
import NavigationContainer from './containers/navigation_container';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import { mountCom... |
src/routes/Error/index.js | liufulin90/react-admin | import React from 'react'
import {Icon} from 'antd'
import styles from './index.less'
const Error = () =>
<div className='content-inner'>
<div className={styles.error}>
<Icon type='frown-o' />
<h1>404 Not Found</h1>
</div>
</div>
export default Error
|
node_modules/semantic-ui-react/dist/es/modules/Rating/RatingIcon.js | mowbell/clickdelivery-fed-test | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/i... |
components/H2.js | sikhote/clairic | import React from 'react';
import { fontSizes, fontWeights } from '../lib/styling';
import Text from './Text';
const H2 = props => (
<Text
uppercase
fontWeight={fontWeights.bold}
fontSize={fontSizes.h2}
{...props}
/>
);
export default H2;
|
src/containers/Widgets/widget-box.js | EncontrAR/backoffice | import React, { Component } from 'react';
export default class IsoWidgetBox extends Component {
render() {
const { children } = this.props;
const boxStyle = {
height: this.props.height,
padding: this.props.padding,
};
return (
<div className="isoWidgetBox" style={boxStyle}>
... |
src/js/components/Home.js | karatechops/grommet-fsi | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Responsive from 'grommet/utils/Responsive';
import classnames from 'classnames';
import Article from './Article';
import Box from 'grommet/components/Box';
import Next from 'grommet/components/icons/... |
app/server.js | alubbe/redux-blog-example | /* eslint-env node */
import express from 'express';
import cookieParser from 'cookie-parser';
import _ from 'lodash';
import path from 'path';
import fs from 'fs';
import React from 'react';
import { Router } from 'react-router';
import Location from 'react-router/lib/Location';
import { Provider } from 'react-redux';... |
src/constants/fieldInference.js | radekzz/netlify-cms-test | import React from 'react';
/* eslint-disable */
export const INFERABLE_FIELDS = {
title: {
type: 'string',
secondaryTypes: [],
synonyms: ['title', 'name', 'label', 'headline', 'header'],
defaultPreview: value => <h1>{ value }</h1>,
fallbackToFirstField: true,
showError: true,
},
shortTitl... |
src/index.js | mg4tv/mg4tv-web | import {InMemoryCache} from 'apollo-cache-inmemory'
import {ApolloClient} from 'apollo-client'
import {HttpLink} from 'apollo-link-http'
import {setContext} from 'apollo-link-context'
import React from 'react'
import {ApolloProvider} from 'react-apollo'
import ReactDOM from 'react-dom'
import auth from './auth'
import... |
docs/src/examples/modules/Popup/Variations/PopupExampleStyle.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Button, Popup } from 'semantic-ui-react'
const style = {
borderRadius: 0,
opacity: 0.7,
padding: '2em',
}
const PopupExampleStyle = () => (
<Popup
trigger={<Button icon='eye' />}
content='Popup with a custom style prop'
style={style}
inverted
/>
)
export d... |
app/javascript/flavours/glitch/features/standalone/hashtag_timeline/index.js | im-in-space/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { expandHashtagTimeline } from 'flavours/glitch/actions/timelines';
import Masonry from 'react-masonry-infinite';
import { List as ImmutableList } from... |
src/svg-icons/image/panorama.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePanorama = (props) => (
<SvgIcon {...props}>
<path d="M23 18V6c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zM8.5 12.5l2.5 3.01L14.5 11l4.5 6H5l3.5-4.5z"/>
</SvgIcon>
);
ImagePanora... |
src/docs/components/chart/LayersDoc.js | karatechops/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Menu from 'grommet/components/Menu';
import Anchor from 'grommet/components/Anchor';
import DocsArticle from '../../../components/DocsArticle';
import BackControl from './BackControl';
export default ... |
app/javascript/mastodon/features/ui/components/column_subheading.js | hugogameiro/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;
|
react-converter/src/containers/Converter/CompleterConverter.js | rob-blackbourn/scratch-js | import React from 'react'
import { connect } from 'react-redux'
import { withStyles } from '@material-ui/core/styles'
import Paper from '@material-ui/core/Paper'
import UnitCompleterLinkFactory from './UnitCompleterLink'
import ValueDisplayLinkFactory from './ValueDisplayLink'
const SourceUnitSelector = UnitCompleter... |
src/containers/DevTools.js | teebszet/iplayer-azListing | import React from 'react'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'
export default createDevTools(
<DockMonitor
toggleVisibilityKey='ctrl-h'
changePositionKey='ctrl-q' >
<LogMonitor />
</Dock... |
e2e-tests/production-runtime/src/pages/404.js | ChristopherBiscardi/gatsby | import React from 'react'
import { Link } from 'gatsby'
import Layout from '../components/layout'
const NotFoundPage = () => (
<Layout>
<h1 data-testid="404">NOT FOUND</h1>
<p>You just hit a route that doesn't exist... the sadness.</p>
<pre data-testid="dom-marker">404</pre>
<Link to="/" data-te... |
src/svg-icons/av/repeat-one.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvRepeatOne = (props) => (
<SvgIcon {...props}>
<path d="M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4zm-4-2V9h-1l-2 1v1h1.5v4H13z"/>
</SvgIcon>
);
AvRepeatOne = pure(AvRepeatOne);
AvRepeatOn... |
app/components/Developer/OtaUpdate.js | TheCbac/MICA-Desktop | /* @flow */
/* **********************************************************
* File: components/Developer/OtaUpdate.js
*
* Brief: Component for managing over the air updates for a
* a MICA Cube
*
* Authors: Craig Cheney
*
* 2017.10.22 CC - Document created
*
********************************************************* */
imp... |
examples/flux-example/index.ios.js | mostafa/react-native-fullscreen-video | import React, { Component } from 'react';
import { AppRegistry } from 'react-native';
import { Scene, Router } from 'react-native-router-flux';
import FullScreenVideo from 'react-native-fullscreen-video';
import MainView from './app/mainview';
export default class example extends Component {
render() {
return (
... |
src/routes/error/index.js | niketpathak/npk-website | /**
* @author Niket Pathak. (http://www.niketpathak.com/)
*
* Copyright © 2014-present. 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 ErrorPage from './ErrorPage';
funct... |
app/react-icons/fa/film.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaFilm extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m8 34.6v-2.6q0-0.6-0.4-1t-1-0.4h-2.6q-0.6 0-0.9 0.4t-0.4 1v2.6q0 0.6 0.4 1t0.9 ... |
src/components/headerNav.js | wangwangliang/lll | import React from 'react';
import {ReactRouter, Link} from 'react-router';
var HeaderNav = React.createClass({
render() {
return (
<nav className="header__nav nav">
<Link to="/home" className="nav__item" activeClassName="v-link-active">Following</Link>
<Link to="/app" query={{show: ... |
test/regressions/site/src/tests/Checkbox/DisabledCheckbox.js | und3fined/material-ui | // @flow weak
import React from 'react';
import Checkbox, { LabelCheckbox } from 'material-ui/Checkbox';
export default function DisabledCheckbox() {
return (
<div>
<LabelCheckbox label="Foo" disabled />
<Checkbox disabled />
<Checkbox checked disabled />
</div>
);
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.