path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/pages/articlePage.js | MartinP-C/my-site | import React from 'react';
import ReactDom from 'react-dom';
const ArticlePage = ({ match }) => (
<div>
<p>Article is: {match.params.name}</p>
<p>Needs to be built.</p>
</div>
)
export default ArticlePage; |
src/components/FloorSearch/Empty/presenter.js | ndlib/usurper | import React from 'react'
import PropTypes from 'prop-types'
import PageTitle from 'components/Layout/PageTitle'
import SearchProgramaticSet from 'components/SearchProgramaticSet'
import SearchCallout from 'components/Contentful/Floor/SearchCallout/index'
import Contact from 'components/Contact/ServicePoint'
const Emp... |
src/stories/index.js | gedeonix/gedeonix-react | import React from 'react';
import { storiesOf, action, linkTo } from '@kadira/storybook';
import {ThemeProvider} from "styled-components";
import theme, { dark } from "../theme";
import Body from "../components/Body";
import Avatar from '../components/Avatar';
import { Container, FluidContainer } from '../components/... |
tosort/2016/jspm/lib_react_101/components/step/index.js | Offirmo/web-tech-experiments | import React from 'react';
import ListItem from 'material-ui/lib/lists/list-item';
import Colors from 'material-ui/lib/styles/colors';
import IconButton from 'material-ui/lib/icon-button';
import MoreVertIcon from 'material-ui/lib/svg-icons/navigation/more-vert';
import IconMenu from 'material-ui/lib/menus/icon-menu';... |
app/containers/Sign/SubMenu.js | coocooooo/webapp | import React, { Component } from 'react';
import styled from 'styled-components';
import { Link } from 'react-router';
const Menu = styled.div`
margin-left: 0em;
margin-right: 0em;
border-bottom: 2px solid rgba(34, 36, 38, 0.15);
background: none;
border-radius: 0em;
border: none;
box-shadow: none;
fon... |
app/client/src/components/SignupRegisterLogin/components/ActionSignupModal/ActionSignupModal.js | uprisecampaigns/uprise-app | /* eslint-disable max-len */
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { compose, graphql } from 'react-apollo';
import moment from 'moment';
import isEqual from 'lodash.isequal';
import Checkbox from 'material-ui/Checkbox';
import Divid... |
node_modules/react-bootstrap/es/SplitButton.js | geng890518/editor-ui | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from... |
renderer/vectors/edit.js | wulkano/kap | import React from 'react';
import Svg from './svg';
const EditIcon = props => (
<Svg {...props}>
<path d="M3 17.3V21h3.8l11-11-3.7-3.8L3 17.2zM20.7 7c.4-.4.4-1 0-1.4l-2.3-2.3a1 1 0 0 0-1.4 0L15 5 19 9 20.7 7z"/>
<path d="M0 0h24v24H0z" fill="none"/>
</Svg>
);
export default EditIcon;
|
js/jqwidgets/jqwidgets-react/react_jqxcomplexinput.js | luissancheza/sice | /*
jQWidgets v5.3.2 (2017-Sep)
Copyright (c) 2011-2017 jQWidgets.
License: http://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxComplexInput extends React.Component {
componentDidMount() {
let options = this.man... |
imports/ui/components/giveaways/nearby-giveaways.js | irvinlim/free4all | import React from 'react';
import { List, ListItem } from 'material-ui/List';
import Divider from 'material-ui/Divider';
import Subheader from 'material-ui/Subheader';
import Avatar from 'material-ui/Avatar';
import * as Helper from '../../../util/helper';
import * as AvatarHelper from '../../../util/avatar';
import *... |
src/components/fluid-commons/fluid-table/TableBody.js | great-design-and-systems/cataloguing-app | import { TABLE_ADD_ROW, TABLE_CANCEL_EDIT, TABLE_EDIT, TABLE_REFRESH, TABLE_SET_NEW_VALUE, TABLE_SUBMIT_NEW_VALUE } from './fluid.info';
import FluidFunc from 'fluid-func';
import PropTypes from 'prop-types';
import React from 'react';
import { TableRow } from './TableRow';
export class TableBody extends React.Compon... |
app/javascript/mastodon/components/column_header.js | riku6460/chikuwagoddon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { FormattedMessage, injectIntl, defineMessages } from 'react-intl';
const messages = defineMessages({
show: { id: 'column_header.show_settings', defaultMessage: 'Show settings' },
hide: { id: 'column_header.h... |
docs/app/Examples/views/Item/Content/index.js | ben174/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const Content = () => (
<ExampleSection title='Content'>
<ComponentExample
title='Image'
description='An item can co... |
source/client/components/CardsBar.js | NAlexandrov/yaw | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'react-emotion';
import { Card, CardDelete } from './';
const Layout = styled.div`
display: flex;
flex-direction: column;
position: relative;
background-color: #242424;
padding: 20px;
`;
const Logo = styled.div`
width: 147px;
hei... |
imports/Dashboard.js | naustudio/nau-jukebox | /* © 2017
* @author Eric
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Container } from 'flux/utils';
import { withTracker } from 'meteor/react-meteor-data';
import { Link } from 'react-router-dom';
import ReactGA from 'react-ga';
import blockWords from './helpers/block-w... |
src/components/TodoComponents/Footer.js | kla1nfun/reduxtodo | import React from 'react'
import FilterLink from '../../containers/TodoList/FilterLink'
const styles = require('../../containers/TodoList/TodoList.scss');
const Footer = () => (
<footer className={styles.footer}>
<ul className={styles.filters}>
<li>
<FilterLink filter="SHOW_A... |
src/index.js | emyarod/afw | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.scss';
import * as serviceWorker from './serviceWorker';
// change page title with window visibility
document.addEventListener('visibilitychange', () => (
document.hidden
? document.title = document.title.replac... |
src/svg-icons/social/domain.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialDomain = (props) => (
<SvgIcon {...props}>
<path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v... |
app/containers/AddJob/index.js | theClubhouse-Augusta/JobWeasel-FrontEnd | /*
*
* AddJob
*
*/
import React from 'react';
import Helmet from 'react-helmet';
import Nav from 'components/Nav';
import './style.css';
import './styleM.css';
import '../../global.css';
export default class AddJob extends React.PureComponent {
constructor(){
super();
this.state = {
jobTitle: ... |
packages/material-ui-benchmark/src/core.js | lgollut/material-ui | /* eslint-disable no-console */
import Benchmark from 'benchmark';
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import { StylesProvider } from '@material-ui/styles';
import ButtonBase from '@material-ui/core/ButtonBase';
const suite = new Benchmark.Suite('core', {
onError: (event) => {
... |
src/components/Navigation/DrawerNavigatorContent.js | Digitova/reactova-framework | import React from 'react';
import { View, ScrollView, Text, StyleSheet } from 'react-native';
import {DrawerItems} from 'react-navigation'
export default (props) => (
<View style={ styles.drawer }>
<ScrollView style={ styles.drawerScrollView } contentContainerStyle={{flex: 1, alignItems: 'stretch'}}>
<DrawerItem... |
app/containers/App/index.js | emise/hoosit | /**
*
* App
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*/
import React from 'react';
import Helmet from 'react-helmet';
import styled from 'styled-components';
import Header from 'components/Header';
import F... |
packages/webpack-walt-examples/src/index.js | ballercat/walt | import ReactDOM from 'react-dom';
import React from 'react';
import App from './App';
ReactDOM.render(<App/>, document.getElementById('app'))
|
docs/src/PropTable.js | victorzhang17/react-bootstrap | import merge from 'lodash-compat/object/merge';
import React from 'react';
import Glyphicon from '../../src/Glyphicon';
import Label from '../../src/Label';
import Table from '../../src/Table';
let cleanDocletValue = str => str.trim().replace(/^\{/, '').replace(/\}$/, '');
let capitalize = str => str[0].toUpperCase()... |
pages/api/select.js | cherniavskii/material-ui | import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from './select.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default withRoot(Page);
|
docs/app/Examples/elements/Step/Groups/StepExampleGroups.js | ben174/Semantic-UI-React | import React from 'react'
import { Icon, Step } from 'semantic-ui-react'
const { Content, Description, Group, Title } = Step
const steps = [
{ icon: 'truck', title: 'Shipping', description: 'Choose your shipping options' },
{ active: true, icon: 'payment', title: 'Billing', description: 'Enter billing information'... |
client/components/signup/SignupPage.js | ilijabradas/react_app | import React from 'react';
import SignupForm from './SignupForm';
class SignupPage extends React.Component {
render() {
return(
<div className="row">
<div className="col-md-4 col-offset-4">
<SignupForm/>
</div>
</div>
);
}
}
export default SignupPage;
//TODO: add SignupForm c... |
client/js/source/components/SearchForm.js | sagneta/AdmitOne | 'use strict';
import ReactButton from 'react-button';
import Excel from './Excel';
import React from 'react';
import $ from 'jquery';
class SearchForm extends React.Component {
constructor(props) {
super(props);
this.state = {
startshowid: 'Event ID Start',
endshowid: 'E... |
src/client.js | 24v/player-sankey | /**
* 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 'whatwg-fetch';
import React from 'react';
impor... |
internals/templates/appContainer.js | coocooooo/webapp | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
node_modules/react-bootstrap/es/Collapse.js | ProjectSunday/rooibus | 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/svg-icons/navigation/arrow-drop-down.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowDropDown = (props) => (
<SvgIcon {...props}>
<path d="M7 10l5 5 5-5z"/>
</SvgIcon>
);
NavigationArrowDropDown = pure(NavigationArrowDropDown);
NavigationArrowDropDown.displayName = 'NavigationA... |
src/containers/molecule.js | OpenChemistry/mongochemclient | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux'
import { selectors, molecules, calculations } from '@openchemistry/redux';
import { auth } from '@openchemistry/girder-redux';
import Molecule from '../components/molecule';
import { uploadCalculation }... |
examples-native/crna-kitchen-sink/storybook/stories/Welcome/index.js | storybooks/react-storybook | import React from 'react';
import PropTypes from 'prop-types';
import { View, Text } from 'react-native';
export default class Welcome extends React.Component {
styles = {
wrapper: {
flex: 1,
padding: 24,
justifyContent: 'center',
},
header: {
fontSize: 18,
marginBottom: 18,... |
client/src/javascript/components/modals/torrent-details-modal/TorrentDetailsModal.js | jfurrow/flood | import {injectIntl} from 'react-intl';
import React from 'react';
import connectStores from '../../../util/connectStores';
import Modal from '../Modal';
import EventTypes from '../../../constants/EventTypes';
import TorrentMediainfo from './TorrentMediainfo';
import TorrentFiles from './TorrentFiles';
import TorrentGe... |
src/index.stories.js | serlo-org/serlo-abc | import { storiesOf } from '@storybook/react-native';
import * as R from 'ramda';
import React from 'react';
import { Text, View } from 'react-native';
import { MemoryRouter } from 'react-router-native';
import { CourseInteractorLoader } from '../packages/entities-interactor';
import courses from '../packages/assets/co... |
packages/@lyra/state-router/src/components/RouteScope.js | VegaPublish/vega-studio | // @flow
import PropTypes from 'prop-types'
import React from 'react'
import isEmpty from '../utils/isEmpty'
import type {Node} from 'react'
import type {
RouterProviderContext,
NavigateOptions,
InternalRouter
} from './types'
function addScope(routerState: Object, scope: string, scopedState: Object) {
return... |
step5-forms/node_modules/react-router/es6/Router.js | jintoppy/react-training | 'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) {... |
packages/material-ui-icons/src/Fingerprint.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Fingerprint = props =>
<SvgIcon {...props}>
<path d="M17.81 4.47c-.08 0-.16-.02-.23-.06C15.66 3.42 14 3 12.01 3c-1.98 0-3.86.47-5.57 1.41-.24.13-.54.04-.68-.2-.13-.24-.04-.55.2-.68C7.82 2.52 9.86 2 12.01 ... |
docs/src/examples/collections/Message/Variations/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
const MessageVariationsExamples = () => (
<ExampleSection title='Variations'>
<ComponentExample
title='Floating'
desc... |
client/src/containers/creations/CreatedHub.js | JasonProcka/venos | import React from 'react';
class CreatedHub extends React.Component {
render() {
return (
<div className="createdHub">
<h4>Jason's Hub</h4>
<p>Random description</p>
</div>
);
}
}
export default CreatedHub;
|
packages/wix-style-react/src/VerticalTabs/VerticalTabsContext.js | wix/wix-style-react | import React from 'react';
export default React.createContext({ size: 'medium' });
|
assets/jqwidgets/demos/react/app/panel/fluidsize/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxPanel from '../../../jqwidgets-react/react_jqxpanel.js';
class App extends React.Component {
render () {
let innerHtml =
'<div style=\'margin: 10px;\'>' +
'<h3>Early History of the Internet</h3></div>' +
'<!--Content--... |
src/app/components/media/ReportDesigner/ReportDesignerImagePreview.js | meedan/check-web | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import escapeHtml from 'escape-html';
function overwriteDocumentHtml(contentDocument, html) {
contentDocument.open();
contentDocument.write(html);
contentDocument.close();
}
function tweakIframeDom({
... |
app/javascript/flavours/glitch/features/ui/components/favourite_modal.js | vahnj/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Button from 'flavours/glitch/components/button';
import StatusContent from 'flavours/glitch/components/status_conte... |
client/src/index.js | jordonmckoy/product-tracker | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
examples/huge-apps/routes/Messages/components/Messages.js | opichals/react-router | import React from 'react';
class Messages extends React.Component {
render () {
return (
<div>
<h2>Messages</h2>
</div>
);
}
}
export default Messages;
|
docs/src/app/components/pages/components/List/ExampleMessages.js | IsenrichO/mui-with-arrows | import React from 'react';
import MobileTearSheet from '../../../MobileTearSheet';
import {List, ListItem} from 'material-ui/List';
import Divider from 'material-ui/Divider';
import Subheader from 'material-ui/Subheader';
import Avatar from 'material-ui/Avatar';
import {grey400, darkBlack, lightBlack} from 'material-ui... |
src/components/protractor/plain/ProtractorPlain.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './ProtractorPlain.svg'
/** ProtractorPlain */
function ProtractorPlain({ width, height, className }) {
return (
<SVGDeviconInline
className={'ProtractorPlain' + ' '... |
Paths/React/05.Building Scalable React Apps/4-react-boilerplate-building-scalable-apps-m4-exercise-files/Before/app/app.js | phiratio/Pluralsight-materials | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
import 'babel-polyfill';
/* eslint-disable import/no-unresolved */
// Load the manifest.json file and the .htaccess file
import '!file?name=[name].[ext]!./manifest.json';
import 'file?name=[name].[ext]!./.htaccess';... |
packages/wix-style-react/src/TableListItem/test/TableListItem.visual.js | wix/wix-style-react | import React from 'react';
import { storiesOf } from '@storybook/react';
import TableListItem, { VERTICAL_PADDING } from '../TableListItem';
import Text from '../../Text';
import WixStyleReactProvider from '../../WixStyleReactProvider';
import Input from '../../Input';
const sizes = Object.values(VERTICAL_PADDING);
c... |
src/collections/Form/FormTextArea.js | Semantic-Org/Semantic-UI-React | import PropTypes from 'prop-types'
import React from 'react'
import { getElementType, getUnhandledProps } from '../../lib'
import TextArea from '../../addons/TextArea'
import FormField from './FormField'
/**
* Sugar for <Form.Field control={TextArea} />.
* @see Form
* @see TextArea
*/
function FormTextArea(props)... |
example/app.js | marcello3d/react-leaflet | import React from 'react';
import SimpleExample from './simple';
import EventsExample from './events';
import VectorLayersExample from './vector-layers';
const examples = <div>
<h1>React-Leaflet examples</h1>
<h2>Popup with Marker</h2>
<SimpleExample />
<h2>Events</h2>
<p>Click the map to show a marker at y... |
src/components/routes/calendar/Calendar.js | fredmarques/petshop | import './react-big-calendar.css'
import './Calendar.css';
import React, { Component } from 'react';
import BigCalendar from 'react-big-calendar';
import moment from 'moment';
import { Field, reduxForm } from 'redux-form';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import DateTime f... |
js/components/svg/Valve.js | gilesbradshaw/uaQL | // @flow
'use strict';
import React from 'react';
import {compose} from 'recompose';
import Value from './Value';
const Valve = compose(
)(({value})=>
<g viewBox="0 0 100 125" >
<path d="M75.086,39.527c-2.061-0.856-4.481-0.425-6.096,1.069L51.5,52.329V31.798h14.731c0.829,0,1.5-0.671,1.5-1.5 s-0.671-1.5-1.5... |
react/IconJobAd/IconJobAd.js | seekinternational/seek-asia-style-guide | import svgMarkup from './IconJobAd.svg';
import React from 'react';
import Icon from '../private/Icon/Icon';
export default function IconJobAd(props) {
return <Icon markup={svgMarkup} {...props} />;
}
IconJobAd.displayName = 'Job Ad icon';
|
packages/icons/src/md/action/Translate.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdTranslate(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M25.74 30.15l-5.08-5.02.06-.06c3.48-3.88 5.96-8.34 7.42-13.06H34V8H20V4h-4v4H2v3.98h22.34A31.586 31.586 0 0 1 18 22.7a31.54 31.54 0 0 1-4.62-6.7h-4... |
frontend/src/components/eois/details/overview/results/myResponse.js | unicef/un-partner-portal | import React from 'react';
import PropTypes from 'prop-types';
import Typography from 'material-ui/Typography';
import { connect } from 'react-redux';
import HeaderList from '../../../../common/list/headerList';
import { selectCfeiDetails } from '../../../../../store';
import ResponseForm from './responseForm';
const ... |
src/FAB/index.js | reactivers/react-material-design | /**
* Created by Utku on 25/03/2017.
*/
import React from 'react';
import PropTypes from 'prop-types';
import '@material/fab/dist/mdc.fab.css';
import classNames from 'classnames';
export default class FAB extends React.PureComponent {
static propTypes = {
buttonColor: PropTypes.string,
buttonSiz... |
client/src/containers/creations/Creations.js | JasonProcka/venos | // Containers
import CreatedHub from './CreatedHub';
// React
import React from 'react';
import {browserHistory} from 'react-router';
import { push } from 'react-router-redux';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
// Add-ons
import FloatingActionButton from 'material-ui... |
src/svg-icons/action/system-update-alt.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSystemUpdateAlt = (props) => (
<SvgIcon {...props}>
<path d="M12 16.5l4-4h-3v-9h-2v9H8l4 4zm9-13h-6v1.99h6v14.03H3V5.49h6V3.5H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2z"/>
... |
src/app-client.js | guestn/Montagram | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import AppRoutes from './components/AppRoutes';
window.onload = () => {
ReactDOM.render(<AppRoutes/>, document.getElementById('main'));
};
|
src/index.js | doxxx/chango | import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/css/bootstrap-theme.css';
import './index.css'
import React from 'react'
import ReactDOM from 'react-dom'
import { createStore, applyMiddleware } from 'redux'
import reduxLogger from 'redux-logger'
import reduxPromise from 'redux-promise'
import reduxTh... |
src/Popover.js | gianpaj/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
... |
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | martinrajdl/faunafilm | 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'));
|
index.ios.js | sebm/react-native-audio-recorder-demo | import { AudioRecorder as RNAudioRecorder, AudioUtils as RNAudioUtils } from 'react-native-audio';
import React, { Component } from 'react';
import {
Alert,
AppRegistry,
Button,
StyleSheet,
Text,
View,
} from 'react-native';
const Sound = require('react-native-sound');
const styles = StyleSheet.create({
... |
docs/client/components/pages/Counter/SimpleCounterEditor/index.js | dagopert/draft-js-plugins | import React, { Component } from 'react';
import Editor, { createEditorStateWithText } from 'draft-js-plugins-editor';
import createCounterPlugin from 'draft-js-counter-plugin';
import editorStyles from './editorStyles.css';
const counterPlugin = createCounterPlugin();
const { CharCounter, WordCounter, LineCounter, Cu... |
components/Type/Type.story.js | NGMarmaduke/bloom | import React from 'react';
import { storiesOf } from '@storybook/react';
import SectionHeader from './SectionHeader/SectionHeader';
import Synopsis from './Synopsis/Synopsis';
import Quote from './Quote/Quote';
import IconLabel from './IconLabel/IconLabel';
import Statement from './Statement/Statement';
import m from ... |
programar/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | ottohernandezgarzon/tanks-colored-of-war | 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'));
|
src/pages/Editor/pages/MapEditor/pages/EditMap/containers/MapEditor/components/DomainValueEditor.js | caspg/datamaps.co | import React from 'react'
import PropTypes from 'prop-types'
import NumericInput from '@src/components/NumericInput'
const DomainValueEditor = (props) =>
<div>
<p className="DomainValueEditor__paragraph">{props.label}</p>
<NumericInput
value={props.value}
onBlur={props.onDomainValueChange}
... |
app/containers/HomePage.js | bagnz0r/ichigo-player | // @flow
import React, { Component } from 'react';
import Home from '../components/Home';
export default class HomePage extends Component {
render() {
return (
<Home />
);
}
}
|
app/react-icons/fa/fast-forward.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaFastForward extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m1 36.9q-0.4 0.4-0.7 0.2t-0.3-0.7v-32.8q0-0.6 0.3-0.7t0.7 0.2l15.9 15.9q... |
src/website/app/demos/Dialog/common/DemoLayout.js | mineral-ui/mineral-ui | /* @flow */
import styled from '@emotion/styled';
import React from 'react';
import type { StyledComponent } from '@emotion/styled-base/src/utils';
const Root: StyledComponent<{ [key: string]: any }> = styled('div')(
({ theme }) => ({
padding: `${theme.space_inset_md}`,
position: 'relative',
'&:not(:las... |
src/js/home/App.js | CT-Data-Collaborative/edi-v2 | import React, { Component } from 'react';
import Select from 'react-select';
import MarkdownBlock from './components/markdown_block';
import Links from './components/links';
class App extends Component {
constructor(props) {
super(props);
this.state = {
content: window.content,
links: window.li... |
client/index.js | akshatsinha/store-deals | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import ReactStormpath from 'react-stormpath'
import routes from './routes'
import store from './store'
ReactStormpath.init({
endpoints: {
baseUri: 'https://store-deals.apps.stormpath.io'
}
})
ReactDOM.... |
src/svg-icons/device/nfc.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceNfc = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 18H4V4h16v16zM18 6h-5c-1.1 0-2 .9-2 2v2.28c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2... |
1m_Redux_Lynda/Ex_Files_Learning_Redux/Exercise Files/Ch05/05_02/start/src/index.js | yevheniyc/C | import C from './constants'
import React from 'react'
import { render } from 'react-dom'
import routes from './routes'
import sampleData from './initialState'
import storeFactory from './store'
import { Provider } from 'react-redux'
const initialState = (localStorage["redux-store"]) ?
JSON.parse(localStorage["redu... |
app/assets/scripts/components/group.js | energy-data/market-opportunities | import React from 'react'
import c from 'classnames'
import Indicator from './indicator'
const Group = React.createClass({
propTypes: {
name: React.PropTypes.string,
open: React.PropTypes.bool,
layers: React.PropTypes.array,
startEditing: React.PropTypes.func,
saveEdit: React.PropTypes.func,
... |
src/components/withViewport.js | Jahans3/thecraic | /**
* 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'; // eslint-disabl... |
src/svg-icons/action/perm-contact-calendar.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermContactCalendar = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-... |
client/Components/UI/ErrorIndicator/index.js | myheritage/UiZoo.js | import React from 'react';
import Tooltip from '../Tooltip';
import './index.scss';
/**
* @name
* ErrorIndicator
*
* @module
* Content
*
* @description
* Show an error tooltip on a container
*
* @example
* <ErrorIndicator error={new Error('message')}>
* My error-full content
* </ErrorIndicator>
... |
app/components/Nav/index.js | HRR20-Lotus/affirmation | /**
*
* Nav
*
*/
import React from 'react';
import { Toolbar, ToolbarGroup, ToolbarTitle } from 'material-ui/Toolbar';
import RaisedButton from 'material-ui/RaisedButton';
class Nav extends React.Component { // eslint-disable-line react/prefer-stateless-function
render() {
return (
<div>
<Toolbar>... |
src/components/menu/MenuDivider.js | isogon/material-components | import React from 'react'
import MenuItem from './MenuItem'
import { MenuDivider as MenuDividerBase } from './Menu.style'
export default class MenuDivider extends MenuItem {
render() {
return (
<MenuDividerBase
{...this.props}
{...this.state}
innerRef={(menuItem) => {
thi... |
src/packages/@ncigdc/theme/icons/Table.js | NCI-GDC/portal-ui | // @flow
import React from 'react';
export default ({ className = '', ...props }) => (
<i className={`${className} fa fa-table`} {...props} />
);
|
react-js/flux-demo/src/index.js | vanyaland/react-demos | import React from 'react';
import ReactDOM from 'react-dom';
import {createStore} from 'redux';
import {Provider} from 'react-redux'
import App from './App';
import todoApp from './reducers/reducers';
import './index.css';
let store = createStore(todoApp);
ReactDOM.render(
<Provider store={store}>
<App /... |
addons/info/example/story.js | enjoylife/storybook | import React from 'react';
import Button from './Button';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import backgrounds from 'react-storybook-addon-backgrounds';
storiesOf(
'Button'
).addWithInfo(
'simple usage',
'This is the basic usage with the button with... |
examples/js/custom/insert-modal/custom-insert-modal-field.js | prajapati-parth/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-unused-vars: 0 */
/* eslint no-alert: 0 */
import React from 'react';
import ReactDOM from 'react-dom';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
const fruits = [ 'banana', 'apple', 'orange', 'tomato', 'strawberries' ];
functio... |
src/containers/SignupPage.js | qandobooking/booking-frontend | import React from 'react';
import { replace } from 'react-router-redux';
import { reduxForm } from 'redux-form';
import { register, clearRegistration } from '../actions/registration';
import { rejectFormErrorsFromResponse } from '../utils/form';
import Spinner from '../components/Spinner';
import ErrorAlert from '../co... |
src/App.js | marcosmiklos/my-reads | import React, { Component } from 'react';
import { Route } from 'react-router-dom';
import * as BooksAPI from './utils/BooksAPI'
import 'semantic-ui-css/semantic.min.css';
import { Container, Header, Icon } from 'semantic-ui-react'
import Bookcase from './pages/Bookcase';
import SearchBooks from './pages/SearchBooks';
... |
src/components/progress/progress.js | woshisbb43/coinMessageWechat | import React from 'react';
import PropTypes from 'prop-types';
import classNames from '../../utils/classnames';
import Icon from '../icon';
/**
* progress bar
*
*/
const Progress = (props) => {
const { className, showCancel, value, onClick, ...others } = props;
const cls = classNames({
'weui-progr... |
assets/jsx/views/courses/components/courseBox.js | Tjorriemorrie/besetfree | import React from 'react'
import classNames from 'classnames'
class CourseBox extends React.Component {
render() {
let { course } = this.props
console.info('[CourseBox] render', course)
return <div className="course_box">
<h3 className="title">{course.title}</h3>
... |
src/docs/examples/ProgressBar/Example70Percent.js | Mikhail2k15/ps-react-michael | import React from 'react';
import ProgressBar from 'ps-react/ProgressBar';
export default function Example70Percent(){
return <ProgressBar percent={70} width={150}/>
} |
src/components/EventsWithData.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedDate, FormattedMessage } from 'react-intl';
import { graphql } from 'react-apollo';
import gql from 'graphql-tag';
import { Router } from '../server/pages';
class EventsWithData extends React.Component {
static propTypes = {
collect... |
src/svg-icons/av/snooze.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvSnooze = (props) => (
<SvgIcon {...props}>
<path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9... |
react-ui/src/components/RealEstateGraph.js | EdwinJow/truthindata | import React, { Component } from 'react';
import axios from 'axios';
import MenuItem from 'material-ui/MenuItem';
import SelectField from 'material-ui/SelectField';
import IconButton from 'material-ui/IconButton';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import FontIcon... |
components/date-picker/common/yearTable.js | TDFE/td-ui | /**
* @Author: Zhengfeng.Yao <yzf>
* @Date: 2017-06-22 11:44:29
* @Last modified by: yzf
* @Last modified time: 2017-06-26 14:00:11
*/
import React from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import chunk from 'lodash/chunk';
function isSameYear(one, two) {
return one && ... |
test/format.js | concordancejs/react | import test from 'ava'
import concordance from 'concordance'
import React from 'react'
import renderer from 'react-test-renderer'
import plugin from '..'
import HelloMessage from './fixtures/react/HelloMessage'
const plugins = [plugin]
const format = (value, options) => concordance.format(value, Object.assign({ plugi... |
src-example/components/molecules/Table/index.stories.js | SIB-Colombia/biodiversity_catalogue_v2_frontend | import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { Table } from 'components'
storiesOf('Table', module)
.add('default', () => (
<Table>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
</tr>
<tr>
<td>Cell 1</td>
<td>Cell ... |
src/svg-icons/maps/local-airport.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalAirport = (props) => (
<SvgIcon {...props}>
<path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/>
</SvgIcon>
);
MapsLocalA... |
src/components/containers/allot-user-list-container.js | HuangXingBin/goldenEast | import React from 'react';
import { Button, AutoComplete, DatePicker, message } from 'antd';
import './user-list-container.css';
import UserListTable from '../views/allot-user-list-view.js';
import SearchUserInput from '../views/SearchUserInput.js';
import store from '../../store';
import { connect } from 'react-redux'... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.