path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/todo-app.js | wederch/meetup-workshop | import React from 'react';
import ReactDOM from 'react-dom';
import TodoList from './todo-list/todo-list';
import TodoForm from './todo-form/todo-form';
import styles from './todo-app.scss';
export default class TodoApp extends React.Component {
constructor(props) {
super(props);
this.state = {data: []};
... |
src/avatar/SKAvatar.js | ShaneKing/sk-antd | import {Avatar} from 'antd';
import PropTypes from 'prop-types';
import React from 'react';
import {SK} from 'sk-js';
import AntdComp from '../AntdComp';
import {SHAPE, SIZE} from '../AntdConst';
Avatar.defaultProps = SK.extends(true, {}, {
shape: SHAPE.Circle,
size: SIZE.Default,
}, Avatar.defaultProps, {});
Ava... |
src/components/settings/FactoryReset.js | dkadrios/zendrum-stompblock-client | import React from 'react'
import PropTypes from 'prop-types'
import {
Button,
LinearProgress,
DialogTitle,
DialogContent,
DialogContentText,
DialogActions,
withStyles,
} from '@material-ui/core'
import Warning from '@material-ui/icons/Warning'
import Dialog from '../Dialog'
import { settingsShape } from '... |
example/app.js | ryanmargheriti/react-image-gallery | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import LinkedStateMixin from 'react-addons-linked-state-mixin';
import ImageGallery from '../src/ImageGallery.react';
const App = React.createClass({
mixins: [LinkedStateMixin],
getInitialState() {
return {
isPlaying: false,
... |
src/svg-icons/maps/local-library.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalLibrary = (props) => (
<SvgIcon {...props}>
<path d="M12 11.55C9.64 9.35 6.48 8 3 8v11c3.48 0 6.64 1.35 9 3.55 2.36-2.19 5.52-3.55 9-3.55V8c-3.48 0-6.64 1.35-9 3.55zM12 8c1.66 0 3-1.34 3-3s-1.34-3-3-3-... |
packages/mcs-lite-ui/src/LazyloadOnce/LazyloadOnce.example.js | MCS-Lite/mcs-lite | import React from 'react';
import styled from 'styled-components';
import { storiesOf } from '@storybook/react';
import { withInfo } from '@storybook/addon-info';
import Button from '../Button';
import LazyloadOnce from '.';
const Wrapper = styled.div`
height: 2800px;
padding-top: 1800px;
background-color: skybl... |
src/examples/CounterPairPair.js | steos/elmar.js | import React from 'react'
import * as CounterPair from './CounterPair'
import {forward} from '../elmar'
const Action = {
Reset: model => init(),
Left: (action) => model =>
Object.assign({}, model, {left: CounterPair.update(action, model.left)}),
Right: (action) => model =>
Object.assign({}, model, {rig... |
src/frame/rePCUI/progress/base-progress/Line.js | gejialun8888/shop-react | import React, { Component } from 'react';
import enhancer from './enhancer';
import { propTypes, defaultProps } from './types';
class Line extends Component {
render() {
const {
className,
percent,
prefixCls,
strokeColor,
strokeLinecap,
strokeWidth,
style,
trailCol... |
src/js/routes.js | RyanTankersley/pray-yamanote | import React from 'react'
import { Router, Route, browserHistory, DefaultRoute, NotFoundRoute, Redirect } from 'react-router'
const HomePage = require('./components/pages/Home.jsx')
const PrayerStation = require('./components/pages/PrayerStation/PrayerStation.jsx')
const routes = (
<Router history={browserHistory}>
... |
src/DisplayResults.js | ecamellini/buildo-yelp-challenge | import React from 'react';
import { List, ListItem } from 'material-ui/List';
import Avatar from 'material-ui/Avatar';
import images from './images.js';
import RestaurantIcon from 'material-ui/svg-icons/maps/restaurant-menu';
import { Card, CardText } from 'material-ui/Card';
import FloatingActionButton from 'material-... |
client/views/setupWizard/steps/SettingsBasedStep.stories.js | VoiSmart/Rocket.Chat | import React from 'react';
import SettingsBasedStep from './SettingsBasedStep';
export default {
title: 'components/setupWizard/steps/SettingsBasedStep',
component: SettingsBasedStep,
};
export const _default = () => (
<SettingsBasedStep step={[1, 2, 3, 4, 'final'][1]} title={'Settings-Based Step'} active={true} ... |
examples/forms-material-ui/src/components/dialogs-update-overlay/Layout.js | lore/lore-forms | import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import CodeExample from '../_common/CodeExample';
import Hook from './Hook';
import hookCode from '!raw-loader!./Hook';
export default lore.connect(function(getState, props) {
const { tweetId } = props.p... |
frontend/js/utils/SentryBoundary.js | vintasoftware/django-react-boilerplate | import * as Sentry from '@sentry/browser';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
const FallbackUI = ({ eventId }) => (
<>
<h3>Check if there is an error on your Sentry app</h3>
<button type="button" onClick={() => Sentry.showReportDialog({ eventId })}>
Report fee... |
docs/app/Examples/elements/Flag/Types/index.js | mohammed88/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const FlagTypesExamples = () => (
<ExampleSection title='Types'>
<ComponentExample
title='Flag'
description='A flag c... |
src/routes/Account/components/AccountTransferModal.js | denimar/denibudget | import React from 'react'
import { Modal, Button, OverlayTrigger, Tooltip, Form, FormGroup, FormControl, Checkbox, Col, ButtonGroup, Input, ControlLabel, FieldGroup, Radio } from 'react-bootstrap';
import moment from 'moment'
import Select from 'react-select';
import 'react-select/dist/react-select.css';
import Currenc... |
packages/react-interactions/events/src/dom/Hover.js | mjackson/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {
ReactDOMResponderEvent,
ReactDOMResponderContext,
PointerType,
} from 'shared/ReactDOMTypes';
impo... |
src/Portal.js | lzcmaro/react-ratchet | import React from 'react';
import ReactDOM from 'react-dom';
import mountable from 'react-prop-types/lib/mountable';
import ownerDocument from './utils/ownerDocument';
import getContainer from './utils/getContainer';
/**
* The `<Portal/>` component renders its children into a new "subtree" outside of current componen... |
node_modules/react-fetch/example/src/example.js | okristian1/react-info | import React from 'react'
import ReactDOM from 'react-dom'
import Fetch from 'react-fetch'
export default class App extends React.Component{
onError(error){
console.log(error)
}
render(){
return (
<Fetch url="http://httpbin.org/headers" onError={this.onError}>
<TestComponent/>
</Fet... |
public/products/src/app.js | dolchi21/open-prices | import React from 'react'
import ReactDOM from 'react-dom'
import ProductForm from './components/ProductForm.js'
import ProductsList from './components/ProductsList.js'
var App = (props) => {
return (
<div>
<div>App</div>
<div>
<ProductForm />
</div>
... |
src/components/App/index.js | hamsterbacke23/webcamdisplay-react | import React, { Component } from 'react';
import Webcam from '../Webcam';
import './style.css';
class App extends Component {
render() {
return (
<div className="app">
<Webcam/>
</div>
);
}
}
export default App;
|
react-flux-mui/js/material-ui/src/svg-icons/notification/time-to-leave.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationTimeToLeave = (props) => (
<SvgIcon {...props}>
<path d="M18.92 5.01C18.72 4.42 18.16 4 17.5 4h-11c-.66 0-1.21.42-1.42 1.01L3 11v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.... |
src/apps/expenses/components/OrderWithData.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import gql from 'graphql-tag';
import { graphql } from 'react-apollo';
import { FormattedMessage } from 'react-intl';
import Error from '../../../components/Error';
import withIntl from '../../../lib/withIntl';
import Order from './Order';
class OrderWith... |
xcessiv/ui/src/containers/ContainerBaseLearner.js | reiinakano/xcessiv | import React, { Component } from 'react';
import { Set as ImSet } from 'immutable';
import DataExtractionTabs from '../DatasetExtraction/DataExtractionTabs'
import ListBaseLearner from '../BaseLearner/ListBaseLearner';
import ListBaseLearnerOrigin from '../BaseLearnerOrigin/ListBaseLearnerOrigin'
import EnsembleBuilder... |
src/utilities/addBooleanProp.js | jonahjoughin/blog.jough.in | import React from 'react';
export default (name,children) => {
return (React.Children.map(children, (child,i) => {
if (!React.isValidElement(child)) return child;
return React.cloneElement(child, {
[name]: true,
});
}));
};
|
src/components/Lookup.js | evonsdesigns/markts-app | import React from 'react';
const Lookup = React.createClass({
getInitialState() {
return {};
},
componentDidMount() {
},
render() {
return (
<div className="home">
<div>
<h1>Lookup Test</h1>
</div>
</div>
);
}
});
export default Lookup; |
examples/src/components/States.js | Dem0n3D/react-select | import React from 'react';
import Select from 'react-select';
const STATES = require('../data/states');
var StatesField = React.createClass({
displayName: 'StatesField',
propTypes: {
label: React.PropTypes.string,
searchable: React.PropTypes.bool,
},
getDefaultProps () {
return {
label: 'States:',
sea... |
src/svg-icons/action/restore-page.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRestorePage = (props) => (
<SvgIcon {...props}>
<path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm-2 16c-2.05 0-3.81-1.24-4.58-3h1.71c.63.9 1.68 1.5 2.87 1.5 1.93 0 3.... |
styleguide/routes.js | iest/loggins | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import Styleguide from './Styleguide';
import Home from './sections/Home';
import Type from './sections/Type';
import Icons from './sections/Icons';
import Grids from './sections/Grids';
import Forms from './sections/Forms';
import Panels fr... |
client/src/components/App.js | mandrive/CountriesApp | import React from 'react';
class AppComponent extends React.Component {
render() {
return (
<div className="index">
</div>
);
}
}
export default AppComponent;
|
src/svg-icons/communication/call-end.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallEnd = (props) => (
<SvgIcon {...props}>
<path d="M12 9c-1.6 0-3.15.25-4.6.72v3.1c0 .39-.23.74-.56.9-.98.49-1.87 1.12-2.66 1.85-.18.18-.43.28-.7.28-.28 0-.53-.11-.71-.29L.29 13.08c-.18-.17-.29-.... |
docs/src/app/components/pages/components/Popover/ExampleSimple.js | pradel/material-ui | import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import Popover from 'material-ui/Popover';
import Menu from 'material-ui/Menu';
import MenuItem from 'material-ui/MenuItem';
export default class PopoverExampleSimple extends React.Component {
constructor(props) {
super(props);
... |
src/components/common/mediaPicker/SourceCollectionsFieldList.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { injectIntl, FormattedMessage } from 'react-intl';
import { reduxForm, FieldArray, Field, propTypes } from 'redux-form';
import withHelp from '../hocs/HelpfulContainer';
import withIntlForm from '../hocs/IntlForm';
import SourceOrCollectionWidget fr... |
src/index.js | likesaber/react-blog | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
modules/Redirect.js | iest/react-router | import React from 'react'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { formatPattern } from './PatternUtils'
import { falsy } from './PropTypes'
const { string, object } = React.PropTypes
/**
* A <Redirect> is used to declare another URL path a client should b... |
packages/docs/pages/plugin/hashtag/index.js | draft-js-plugins/draft-js-plugins | // eslint-disable-next-line import/no-unresolved
// eslint-disable-next-line import/no-duplicates
import customExampleCode from '!!raw-loader!../../../components/Examples/hashtag/CustomHashtagEditor';
// eslint-disable-next-line import/no-unresolved
import customExampleEditorStylesCode from '!!raw-loader!../../../compo... |
RNDemo/RNComment/node_modules/react-navigation/src/views/Header.js | 995996812/Web | /* @flow */
'no babel-plugin-flow-react-proptypes';
import React from 'react';
import { Animated, Platform, StyleSheet, View } from 'react-native';
import HeaderTitle from './HeaderTitle';
import HeaderBackButton from './HeaderBackButton';
import HeaderStyleInterpolator from './HeaderStyleInterpolator';
import typ... |
PageAds.js | WholeFoodsCoop/ReactMobileApp |
import React, { Component } from 'react';
import {
View,
Text,
TouchableHighlight,
ListView,
Dimensions,
StyleSheet
} from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome';
import Image from 'react-native-image-progress';
import ProgressBar from 'react-native-progress... |
src/scenes/home/press/pressBranding/pressBranding.js | miaket/operationcode_frontend | import React from 'react';
import largeBlueLogo from '../../../../images/logos/large-blue-logo.png';
import smallWhiteLogoRedStar from '../../../../images/logos/small-white-logo-red-star.png';
import largeStackedLogoRed from '../../../../images/logos/large-stacked-logo-red.png';
import smallStackedLogo from '../../../.... |
lib/TenDay.js | erik0110/Weatherly | import React from 'react';
import TenDayWeatherCard from './TenDayWeatherCard';
const TenDay = ({ days }) => {
const children = days.map((day, index) => {
return (
<TenDayWeatherCard
className="tenDayCard"
key={index}
month={day.date.month}
date={day.date.day}
weathe... |
server/middlewares/clientRoute.js | qiuye1027/screenInteraction | import React from 'react'
import {renderToString} from 'react-dom/server'
import {match, RouterContext} from 'react-router'
import {Provider} from 'react-redux'
import routes from '../../client/routes'
import configureStore from '../../client/common/store/configureStore'
const store = configureStore()
async function ... |
app/addons/documents/rev-browser/components/splitscreenarea.js | apache/couchdb-fauxton | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed un... |
packages/react-scripts/template/src/index.js | CodingZeal/create-react-app | 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();
|
src/components/common/svg-icons/device/battery-60.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBattery60 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V11h10V5.33z"/><path d="M7 11v9.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 ... |
packages/ringcentral-widgets/components/EntityModal/index.js | u9520107/ringcentral-js-widget | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Modal from '../Modal';
import styles from './styles.scss';
import i18n from './i18n';
export default class EntityModal extends Component {
constructor(props) {
super(props);
this.state = {
selected: props.entities[0]... |
SnowSchoolers/NotFound.js | bbensch09/snowschoolers-react-demo | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
TouchableOpacity,
} from 'react-native';
class NotFound extends Component {
_onPressGoBack() {
this.props.navigator.pop();
}
render() {
return (
<View style={styles.container}>
<Text>
404 Not Found!... |
react-flux-mui/js/material-ui/src/svg-icons/maps/place.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsPlace = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"... |
examples/tooltip/index.js | leiming/pcgame-react-boilerplate | import React from 'react'
import {render, findDOMNode, unmountComponentAtNode} from 'react-dom'
import Tooltip from '../../src/components/Tooltip/Tooltip'
import Popover from '../../src/components/Popover/Popover'
require('./index.less')
export default class Sample extends React.Component {
static defaultProps = ... |
app/core.js | Cu7ious/React-n-Redux-Pomodoro-Clock | /**
state = {
breakLength: (5min / 60000) [time in miliseconds]
pomodoroLength: (25min / 60000) [time in miliseconds]
activity_type: 'p' [string] p/b
timer: object
is_active: false [bool]
is_finished: false [bool]
paused: false [bool]
time: ... |
cheesecakes/plugins/content-type-builder/admin/src/components/RelationIco/index.js | strapi/strapi-examples | /**
*
* RelationIco
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import styles from './styles.scss';
/* eslint-disable jsx-a11y/no-static-element-interactions */
class RelationIco extends React.Component { // eslint-disable-line react/prefer-stateless-function
handleClick = () => {
const ... |
src/components/Dialogs/ConfirmDialog/index.js | u-wave/web | import cx from 'clsx';
import React from 'react';
import PropTypes from 'prop-types';
import Dialog from '@mui/material/Dialog';
import DialogContent from '@mui/material/DialogContent';
import CircularProgress from '@mui/material/CircularProgress';
import Form from '../../Form';
import FormGroup from '../../Form/Group'... |
src/svg-icons/image/view-comfy.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageViewComfy = (props) => (
<SvgIcon {...props}>
<path d="M3 9h4V5H3v4zm0 5h4v-4H3v4zm5 0h4v-4H8v4zm5 0h4v-4h-4v4zM8 9h4V5H8v4zm5-4v4h4V5h-4zm5 9h4v-4h-4v4zM3 19h4v-4H3v4zm5 0h4v-4H8v4zm5 0h4v-4h-4v4zm5 0h4v-... |
router_tutorial/06-params/modules/Repos.js | Muzietto/react-playground | import React from 'react';
import { Link } from 'react-router'
export default React.createClass({
render() {
return (
<div>
<h2>Repos my way</h2>
<ul>
<li><Link to="/repos/reactjs/react-router">React Router</Link></li>
<li><Link to="/repos/facebook/react">React</Link></l... |
universal/containers/root/root.dev.js | hex22a/roland | import React, { Component } from 'react';
import { Router } from 'react-router';
export default class Root extends Component {
render() {
const { routes, history, render, environment } = this.props;
return (
<div>
<Router
history={history}
render={render}
routes={routes}
enviro... |
src/scripts/modules/notfound/NotFoundComponent.js | arikanmstf/userauth | import React from 'react';
const NotFoundComponent = () => {
return (<div className="notfound-component">
<h1>Not Found</h1>
<p>The page you requested not found.</p>
</div>);
};
export default NotFoundComponent;
|
src/svg-icons/action/check-circle.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCheckCircle = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/>
</SvgIcon>
);
ActionChec... |
es/components/AdminProxy/index.js | welovekpop/uwave-web-welovekpop.club | import _jsx from "@babel/runtime/helpers/builtin/jsx";
import React from 'react';
import PropTypes from 'prop-types';
import loadable from 'react-loadable';
import CircularProgress from "@material-ui/core/es/CircularProgress";
import Overlay from '../Overlay';
import OverlayHeader from '../Overlay/Header';
var _ref =
... |
app/javascript/mastodon/components/icon_button.js | rainyday/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon from 'mastodon/components/icon';
export default class IconButton extends React.PureComponent {
static propTypes = {
className: PropTypes.string,
title: PropTypes.string.isRequired,
icon: PropT... |
stories/demos/popup.stories.js | jquense/react-big-calendar | import React from 'react'
import moment from 'moment'
import { Calendar, momentLocalizer } from '../../src'
import PopupDemo from './exampleCode/popup'
export default {
title: 'Examples',
component: Calendar,
parameters: {
docs: {
page: null,
},
},
}
const localizer = momentLocalizer(moment)
ex... |
src/app/container/modal/error.js | all3dp/printing-engine-client | import React from 'react'
import {connect} from 'react-redux'
import Button from '../../component/button'
import Modal from '../../component/modal'
import Headline from '../../component/headline'
import Paragraph from '../../component/paragraph'
import Grid from '../../component/grid'
import Column from '../../compone... |
src/utils/ownerWindow.js | aparticka/react-overlays | import React from 'react';
import ownerWindow from 'dom-helpers/ownerWindow';
export default function (componentOrElement) {
return ownerWindow(React.findDOMNode(componentOrElement));
}
|
src/routes/Projects/routes/Project/components/Project/Project.js | ronihcohen/magic-vote | import React from 'react'
import PropTypes from 'prop-types'
import classes from './Project.scss'
export const Project = ({ projects, params: { projectname } }) => (
<div className={classes.container}>
{projects[projectname] ? (
<div>
<h2>Project Container</h2>
<pre>{JSON.stringify(projects... |
packages/reactor-kitchensink/src/examples/Calendar/DaysView/DaysView.js | dbuhrman/extjs-reactor | import React, { Component } from 'react';
import { Calendar_Day, Calendar_List } from '@extjs/ext-react-calendar';
import { Panel } from '@extjs/ext-react';
import './data';
export default class CalendarDayViewExample extends Component {
store = Ext.create('Ext.calendar.store.Calendars', {
autoLoad: true,... |
examples/dynamic-segments/app.js | nottombrown/react-router | import React from 'react'
import { Router, Route, Link, Redirect } from 'react-router'
import { createHistory, useBasename } from 'history'
const history = useBasename(createHistory)({
basename: '/dynamic-segments'
})
class App extends React.Component {
render() {
return (
<div>
<ul>
<... |
src/server.js | BenRichter/app2 | /**
* 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 'babel-polyfill';
import path from 'path';
import e... |
app/containers/App.js | tgirgin23/osm-electron-editor | // @flow
import React, { Component } from 'react';
import type { Children } from 'react';
export default class App extends Component {
props: {
children: Children
};
render() {
return (
<div>
{this.props.children}
</div>
);
}
}
|
app/containers/HistoryCardActual.js | i8wu/Converrency | import React from 'react';
import { connect } from 'react-redux';
import {
REMOVE_HISTORY,
SUBMIT_CONVERSION,
SUBMIT_ENTRY,
SUBMIT_OPTION_FROM,
SUBMIT_OPTION_TO,
} from '../constants/reduxConstants';
import HistoryCard from '../components/HistoryCard';
const HistoryCardActual = ({ history, removeHistory }) => (
... |
src/icons/IosTimer.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosTimer extends React.Component {
render() {
if(this.props.bare) {
return <g>
<path d="M256,48C141.1,48,48,141.1,48,256c0,114.9,93.1,208,208,208c114.9,0,208-93.1,208-208C464,141.1,370.9,48,256,48z
M150.5,1... |
docs/app/Examples/modules/Checkbox/States/CheckboxExampleReadOnly.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Checkbox } from 'semantic-ui-react'
const CheckboxExampleReadOnly = () => (
<Checkbox label='This checkbox is read-only' readOnly />
)
export default CheckboxExampleReadOnly
|
stories/form-in-modal.js | wmzy/formsy-antd | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { withState } from '@dump247/storybook-state';
import { Input, RadioGroup, FormItem, Form } from 'formsy-antd';
import { Modal, Button, Radio } from 'antd';
import './styles.css';
function... |
actor-apps/app-web/src/app/components/common/Fold.React.js | guiquanz/actor-platform | /* eslint-disable */
import React from 'react';
import classnames from 'classnames';
class Fold extends React.Component {
static PropTypes = {
icon: React.PropTypes.string,
iconClassName: React.PropTypes.string,
title: React.PropTypes.string.isRequired
};
state = {
isOpen: false
};
construc... |
src/entypo/BackInTime.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--BackInTime';
let EntypoBackInTime = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M11,1.799c-4.445,0-8.061,3.562-8.169,7.996V10H0.459l3.594,3.894L7.547,10H4.875V9.795C4.982,6.... |
node_modules/react-router/es6/Router.js | akh000/YoutubeApp | 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 = {... |
App/BreweryCards.js | Tyler-Losinski/Rater-Mc-Ratey-Face | import React, { Component } from 'react';
import {
StyleSheet,
Image
} from 'react-native';
import SideMenu from 'react-native-side-menu';
import {
Card, CardItem, Thumbnail, Text, Button, Left, Body, Right, Footer, FooterTab,
Icon, View, Spinner, Container, Content, List, ListItem, Header, Title
... |
packages/node_modules/@ciscospark/react-container-scrolling-activity/src/index.js | bzang/react-ciscospark | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Spinner from '@ciscospark/react-component-spinner';
import injectScrollable from '@ciscospark/react-hoc-scrollable';
import styles from './styles.css';
export function ScrollingActivity(props) {
const {
i... |
src/editable/html/containers/FreeLayout.js | webcerebrium/ec-react15-lib | import React from 'react';
import { Logger, renderChildren, getStyling } from './../../../services';
export const FreeLayout = ({ section, index, props, context, pos, childIndex }) => {
Logger.of('render.html.FreeLayout').info('section', section, 'index', index, 'props', props, 'pos', pos);
const sp = { props, co... |
admin/client/App/components/Navigation/Mobile/index.js | naustudio/keystone | /**
* The mobile navigation, displayed on screens < 768px
*/
import React from 'react';
import Transition from 'react-addons-css-transition-group';
import MobileSectionItem from './SectionItem';
const ESCAPE_KEY_CODE = 27;
const MobileNavigation = React.createClass({
displayName: 'MobileNavigation',
propTypes: ... |
src/svg-icons/action/settings-input-svideo.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsInputSvideo = (props) => (
<SvgIcon {...props}>
<path d="M8 11.5c0-.83-.67-1.5-1.5-1.5S5 10.67 5 11.5 5.67 13 6.5 13 8 12.33 8 11.5zm7-5c0-.83-.67-1.5-1.5-1.5h-3C9.67 5 9 5.67 9 6.5S9.67 8 10.5 8h... |
src/components/groupSearch.js | SwimmyApp/project-swimmy-mockup | import React from 'react';
import {observer} from 'mobx-react';
import GroupListItem from './groupListItem';
import DevTool from 'mobx-react-devtools';
@observer
export default class GroupSearch extends React.Component {
render() {
const {rootStore} = this.props;
const user = rootStore.userStore.user;
... |
test/integration/image-component/default/pages/invalid-src-proto-relative.js | flybayer/next.js | import React from 'react'
import Image from 'next/image'
const Page = () => {
return (
<div>
<p>Invalid Protocol Relative Source</p>
<Image src="//assets.example.com/img.jpg" width="10" height="10" />
</div>
)
}
export default Page
|
app/javascript/mastodon/features/ui/components/column_link.js | imomix/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Link from 'react-router-dom/Link';
const ColumnLink = ({ icon, text, to, href, method, hideOnMobile }) => {
if (href) {
return (
<a href={href} className={`column-link ${hideOnMobile ? 'hidden-on-mobile' : ''}`} data-method={method}>
... |
blueocean-material-icons/src/js/components/svg-icons/hardware/headset.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const HardwareHeadset = (props) => (
<SvgIcon {...props}>
<path d="M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h3c1.66 0 3-1.34 3-3v-7c0-4.97-4.03-9-9-9z"/>
</SvgIcon>
);
HardwareHeadset.displayName = ... |
src/components/Dashboard/Dashboard.js | hack-duke/hackduke-portal | import React from 'react'
import classes from './Dashboard.scss'
import {statusColorFromRole} from 'extensions/statusUtils'
import Cat from './assets/hackkitty_vector_1.jpg'
import StatusText from 'components/StatusText'
class Dashboard extends React.Component {
static propTypes = {
participant: React.PropTypes... |
src/components/todo/Footer.js | brianlmosley/todo_react | import React from 'react'
import {Link} from '../router'
export const Footer = () => {
return (
<div className="Footer">
<Link to='/'>All</Link>
<Link to='/active'>Active</Link>
<Link to='complete'>Complete</Link>
</div>
)
} |
admin/client/components/Forms/InvalidFieldType.js | andreufirefly/keystone | import React from 'react';
module.exports = React.createClass({
displayName: 'InvalidFieldType',
propTypes: {
path: React.PropTypes.string,
type: React.PropTypes.string,
},
render () {
return <div className="alert alert-danger">Invalid field type <strong>{this.props.type}</strong> at path <strong>{this.props... |
ui/src/js/backOffice/userManager/UserOverview.js | Dica-Developer/weplantaforest | import axios from 'axios';
import React, { Component } from 'react';
import ReactDataGrid from 'react-data-grid';
import { Data, Toolbar } from 'react-data-grid-addons';
import { browserHistory } from 'react-router';
import IconButton from '../../common/components/IconButton';
import Notification from '../../common/com... |
src/admin/components/lookup/index.js | ccetc/platform | import React from 'react'
import component from 'admin/components/component'
import Format from 'admin/utils/format'
import _ from 'lodash'
import * as actions from './actions'
import Search from './search'
class Lookup extends React.Component {
static contextTypes = {
modal: React.PropTypes.object
}
stati... |
packages/react-events/src/Focus.js | VioletLife/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {
ReactResponderEvent,
ReactResponderContext,
} from 'shared/ReactTypes';
import React from 'react';
... |
src/routes/home/Home.js | jhlav/mpn-web-app | /**
* 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-... |
src/components/tracks/individual/_voyeur/index.js | cannoneyed/tmm-glare | import React from 'react'
// const timeline = [{
// time: 0,
// fact: ''
// }]
//
export default function Voyeur() {
return (
<div className="track-info-page">
<div className="track-text voyeur" />
</div>
)
}
|
docs/build.js | tannewt/react-bootstrap | /* eslint no-console: 0 */
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 './gener... |
modules/gui/src/app/home/body/process/recipe/indexChange/panels/inputImage/recipeSection.js | openforis/sepal | import {Form} from 'widget/form/form'
import {compose} from 'compose'
import {connect, select} from 'store'
import {getRecipeType} from 'app/home/body/process/recipeTypes'
import {map, switchMap} from 'rxjs'
import {msg} from 'translate'
import {recipeAccess} from 'app/home/body/process/recipeAccess'
import PropTypes f... |
js/components/single/index.js | kondoSoft/que_hacer_movil | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Image, Linking, Dimensions } from 'react-native'
import { Container, Header, Content, Fab, Text,Thumbnail, Button, Icon, Item, Input, Left, Right, Body, H3, View } f... |
src/components/ShopsTable/ShopsTable.js | marinbgd/coolbeer | import moment from 'moment';
import React from 'react';
import PropTypes from 'prop-types';
import {
Table,
TableBody,
TableHeader,
TableHeaderColumn,
TableRow,
TableRowColumn,
} from 'material-ui/Table';
const tableConfig = {
height: '300px',
fixedHeader: false,
showRowHover: false,
stripedRows: true,
sel... |
src/svg-icons/action/settings-ethernet.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsEthernet = (props) => (
<SvgIcon {...props}>
<path d="M7.77 6.76L6.23 5.48.82 12l5.41 6.52 1.54-1.28L3.42 12l4.35-5.24zM7 13h2v-2H7v2zm10-2h-2v2h2v-2zm-6 2h2v-2h-2v2zm6.77-7.52l-1.54 1.28L20.58 12... |
shared/components/top10list.js | hschlichter/react-demo | import React, { Component } from 'react';
import superagent from 'superagent';
import Top10Item from './top10item';
export default class Top10List extends Component {
render() {
var items = this.props.items.slice(0, 10).map((item) => {
return (
<Top10Item key={item.index} title={item.title.text} />
);
}... |
fields/types/name/NameField.js | riyadhalnur/keystone | import Field from '../Field';
import React from 'react';
import { FormField, FormInput, FormRow } from 'elemental';
module.exports = Field.create({
displayName: 'NameField',
focusTargetRef: 'first',
valueChanged: function(which, event) {
this.props.value[which] = event.target.value;
this.props.onChange({
... |
src/index.js | hawaijar/reactnd-project-myreads-starter | import React from 'react';
import ReactDOM from 'react-dom';
import Main from './components/Main';
import './index.css';
ReactDOM.render(
<Main />,
document.getElementById('root'),
);
|
modules/Route.js | runlevelsix/react-router | import React from 'react'
import warning from 'warning'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { component, components } from './PropTypes'
const { string, bool, func } = React.PropTypes
/**
* A <Route> is used to declare which components are rendered to t... |
components/layout/Main.js | sertaconay/freeside-lms | import React from 'react';
// import Link from 'next/link';
import Head from 'next/head';
import PropTypes from 'prop-types';
import { getLinkOfStylesheet } from '../../core/constants';
const stylesToUse = ['grid', 'container', 'reset', 'site', 'transition'];
const MainLayout = ({ children }) => (
<div className=... |
src/containers/Asians/TabControls/BreakRounds/EnterBreakRoundResults/Controls/InputProgress/Instance.js | westoncolemanl/tabbr-web | import React from 'react'
import { LinearProgress } from 'material-ui/Progress'
import withStyles from 'material-ui/styles/withStyles'
const styles = theme => ({
root: {
marginTop: theme.spacing.unit,
marginBottom: theme.spacing.unit * 2
}
})
export default withStyles(styles)(({
title,
finished,
to... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.