path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/client/todos/newtodo.react.js | hsrob/league-este | import './newtodo.styl';
import Component from '../components/component.react';
import React from 'react';
export default class NewTodo extends Component {
static propTypes = {
actions: React.PropTypes.object.isRequired,
msg: React.PropTypes.object.isRequired,
newTodo: React.PropTypes.object.isRequired
... |
src/Typography/Display1.js | kradio3/react-mdc-web | import React from 'react';
import TypographyElement from './TypographyElement';
const defaultProps = {
component: 'h1',
};
const Display1 = props => (
<TypographyElement
modificator="display1"
{...props}
/>
);
Display1.defaultProps = defaultProps;
export default Display1;
|
src/routes/privacy/index.js | SOCLE15/carpoule | /**
* 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 Layout from '../../co... |
src/front-end/js/components/inputs/FullNameInput.js | aleksey-gonchar/iamamaze.me | import React from 'react'
import { Input } from 'react-bootstrap'
import { Icon } from '../helpers/FontAwesome.js'
import _ from 'lodash'
export default class FullNameInput extends React.Component {
constructor (props) {
super(props)
this.state = _.clone(props)
this.onSave = this.onSave.bind(this)
th... |
front_end/skax/src/component/History.js | julianpr/workflow-automation | import React, { Component } from 'react';
import {Menu } from 'semantic-ui-react';
import { Link } from 'react-router-dom';
class History extends Component {
state = { activeItem: 'history' }
handleItemClick = (e, { name }) => this.setState({ activeItem: name })
render() {
const { activeItem } = t... |
node_modules/react-icons/fa/play-circle.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaPlayCircle = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20.1 2.9q4.7 0 8.6 2.3t6.3 6.2 2.3 8.6-2.3 8.6-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3z m8.6 18.3q0.7-0.4 0.7-1.2t-0.7-1.2l-12.1-7.2q-0.7-... |
Realization/frontend/czechidm-core/src/components/advanced/ProgressBar/ProgressBar.js | bcvsolutions/CzechIdMng | import React from 'react';
import classnames from 'classnames';
//
import * as Basic from '../../basic';
import { i18n } from '../../../services/LocalizationService';
/**
* ProgressBar with default label from localization.
*
* @author Radek Tomiška
*/
export default function ProgressBar(props) {
const {
rend... |
Realization/frontend/czechidm-core/src/content/request/RequestItemTable.js | bcvsolutions/CzechIdMng | import PropTypes from 'prop-types';
import React from 'react';
import _ from 'lodash';
//
import * as Basic from '../../components/basic';
import * as Advanced from '../../components/advanced';
import {RequestItemManager, SecurityManager, WorkflowTaskInstanceManager } from '../../redux';
import ConceptRoleRequestOperat... |
src/containers/PriceRangeWithSuburbs.js | davidchristie/kaenga-housing-calculator | import React from 'react'
import { connect } from 'react-redux'
import Currency from '../components/units/Currency'
import { getReport } from '../selectors/report'
import {
getCheapestSelectedSuburb,
getMostExpensiveSelectedSuburb
} from '../selectors/suburbs'
class PriceRangeWithSuburbs extends React.Component {... |
renderer/vectors/pause.js | wulkano/kap | import React from 'react';
import Svg from './svg';
const PauseIcon = props => (
<Svg {...props}>
<path d="M14,19H18V5H14M6,19H10V5H6V19Z"/>
</Svg>
);
export default PauseIcon;
|
packages/cf-component-icon/src/Icon.js | koddsson/cf-ui | import React from 'react';
import PropTypes from 'prop-types';
class Icon extends React.Component {
render() {
let className = `cf-icon cf-icon--${this.props.type}`;
if (this.props.size) {
className += ` cf-icon--${this.props.size}`;
}
if (this.props.border) className += ' cf-icon--border';
... |
app/javascript/mastodon/features/ui/components/confirmation_modal.js | gol-cha/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, FormattedMessage } from 'react-intl';
import Button from '../../../components/button';
export default @injectIntl
class ConfirmationModal extends React.PureComponent {
static propTypes = {
message: PropTypes.node.isRequired,
... |
src/page/StartPage.js | jerryshew/react-uikits | import React, { Component } from 'react';
import Hightlight from "react-highlight"
import {CN, TitleBlock} from '../util/tools';
import {NS, COLORS} from '../constant';
export class StartPage extends Component {
render() {
return (
<section>
{TitleBlock('快速上手', '本节内容主要讲如何快速使用 R... |
boxroom/archive/backup-js-bling-2018-04-28/boxroom/archive/js-surface-2018-01-27/boxroom/archive/2017-10-23-before-redesign/src/demo/pagination/pagination.js | mcjazzyfunky/js-surface | import {
defineClassComponent,
defineFunctionalComponent,
hyperscript as h,
mount
} from 'js-surface';
import { Seq } from 'js-essential';
import PaginationHelper from './helper/PaginationHelper.js';
import ComponentHelper from './helper/ComponentHelper.js';
import React from 'react';
import ReactD... |
src/client/app/Sidebar/LeftSidebar.js | busyorg/busy | import React from 'react';
import { Route, Switch } from 'react-router-dom';
import UserInfo from './UserInfo';
import Navigation from './Navigation';
import SidenavUser from '../../components/Navigation/SidenavUser';
const LeftSidebar = () => (
<Switch>
<Route path="/@:name/wallet" component={Navigation} />
... |
src/app/components/ExampleFileSelector.js | skratchdot/audio-editor | import React, { Component } from 'react';
import { Row, Col, Input, Button, Glyphicon } from 'react-bootstrap';
import {
loadExampleFile,
setExamples,
setRandomGroupAndFile,
setRandomFile
} from '../actions/examples';
import { connect } from 'react-redux';
import random from 'lodash.random';
import akwf from '.... |
src/parser/priest/discipline/modules/features/PowerWordBarrier.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import fetchWcl from 'common/fetchWclApi';
import SpellIcon from 'common/SpellIcon';
import { formatThousands, formatNumber } from 'common/format';
import LazyLoadStatisticBox from 'interface/others/LazyLoadStatisticBox';
import Analyzer from 'parser/cor... |
client/src/components/dashboard/messaging/message-list.js | RajivLinkites/Starter-Skeleton | import React, { Component } from 'react';
const moment = require('moment');
import MessageItem from './message-item';
class MessageList extends Component {
render() {
return (
<div className="messages">
{this.props.displayMessages.map(data => <MessageItem
key={data._id}
message... |
node_modules/react-bootstrap/es/PaginationButton.js | okristian1/react-info | 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 ... |
test/mochaTestHelper.js | skyuplam/debt_mgmt | import Bluebird from 'bluebird';
import chai, {assert, expect} from 'chai';
import React from 'react';
import sinon from 'sinon';
import sinonAsPromised from 'sinon-as-promised';
import sinonChai from 'sinon-chai';
import TestUtils from 'react-addons-test-utils';
chai.should();
chai.use(sinonChai);
// Use Bluebird Pr... |
ui/src/components/MenuItem.js | untoldwind/eightyish | import React from 'react'
export default class MenuItem extends React.Component {
static contextTypes = {
router: React.PropTypes.func.isRequired
}
static propTypes = {
to: React.PropTypes.string.isRequired,
text: React.PropTypes.string.isRequired
}
constructor(props) {
... |
client/src/components/layout/FloatingButton.js | RiddleMan/giant-privacy-spy | import React, { Component } from 'react';
import FloatingActionButton from 'material-ui/FloatingActionButton';
import Add from 'material-ui/svg-icons/content/add';
import CircularProgress from 'material-ui/CircularProgress';
export default class FloatingButton extends Component {
render() {
const { isLoadi... |
electron/app/components/forms/TextField.js | zindlerb/static | import React from 'react';
import classnames from 'classnames';
/*
const AutoComplete = React.createClass({
render() {
const { position, items, width } = this.props;
const sx = {
width,
position: 'absolute',
top: position.x,
left: position.y
};
let listItems = items.map((item)... |
example/examples/MarkerTypes.js | amitv87/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
} from 'react-native';
import MapView from 'react-native-maps';
import flagBlueImg from './assets/flag-blue.png';
import flagPinkImg from './assets/flag-pink.png';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = w... |
node_modules/react-bootstrap/es/Col.js | rblin081/drafting-client | 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 ... |
shopping-cart-app/src/components/routes/SearchResults/SearchResults.js | JCFlores/shoppingCart | import React, { Component } from 'react';
// import StoreCard from '../../StoreCard';
import ProductCard from '../../ProductCard';
import Wrapper from '../../Wrapper';
import Header from '../../Header';
import StoreLogin from "../../StoreLogin";
import './SearchResults.css';
const AddToCartButton = props => (
<span... |
packages/web/src/components/screens/categories/CategoryDetail.js | hwaterke/inab | import {
amountFromCents,
amountToCents,
CategoryResource,
getSelectedMonthMoment,
ResourceFormProvider,
} from '@inab/shared'
import PropTypes from 'prop-types'
import React from 'react'
import {connect} from 'react-redux'
import {crudThunks} from '../../../thunks/crudThunks'
import {Section} from '../../pre... |
src/components/SocialLoginLink.js | stormpath/stormpath-sdk-react | import React from 'react';
import xtend from 'xtend';
import utils from '../utils';
import context from './../context';
let providerAuthorizationUris = {
github: 'https://github.com/login/oauth/authorize',
google: 'https://accounts.google.com/o/oauth2/v2/auth',
linkedin: 'https://www.linkedin.com/uas/oauth2/auth... |
src/views/FormView.js | nitrog7/nl-fluid | import React from 'react';
import * as components from 'components';
const {
Code,
Component,
Container,
Form
} = components;
export default class FormView extends Component {
constructor(props) {
super(props);
this.state = {
items: [
{label: 'Demo Field:', name: 'demo', type: 'tex... |
front_end/src/config/adminMenu/dataColumns/user.column.js | timramsier/asset-manager | /* eslint react/jsx-filename-extension: 0 */
import React from 'react'; // eslint-disable-line no-unused-vars
export default [
{
col: 'username',
label: 'Username',
type: 'text',
minWidthPix: 10,
maxWidthPer: 15,
},
{
col: 'firstName',
label: 'First Name',
type: 'text',
minWid... |
src/common/components/Footer.js | ThinkingInReact/ThinkingInReact | import React, { Component } from 'react';
import { connect } from 'react-redux';
import cx from 'classnames';
import findChapter from 'lib//findChapter';
import PreviousIcon from 'icons//Previous';
import NextIcon from 'icons//Next';
class Footer extends Component {
getChapterAndPagination() {
const { toc, param... |
components/Navigation/SharedView/index.js | samuelngs/px |
import React, { Component } from 'react';
import { View, UIManager, findNodeHandle } from 'react-native';
import { SharedElement } from '../SharedElements';
class SharedView extends Component {
static defaultProps = {
style: null,
}
static propTypes = {
style: React.PropTypes.object,
}
static co... |
src/app/components/markdownEditor.js | benigeri/soapee-ui | import React from 'react';
import marked from 'marked';
import TextArea from 'react-textarea-autosize';
export default React.createClass( {
componentDidMount() {
$( this.getDOMNode() ).find( 'textarea' ).markdown( {
iconlibrary: 'fa',
fullscreen: {
enable: false
... |
examples/mb-bright/app.js | bartvde/sdk | /* global MAPBOX_API_KEY */
/** Demonstrate the loading of a Mapbox GL Style Spec document into SDK
*
*/
import {createStore, combineReducers, applyMiddleware} from 'redux';
import thunkMiddleware from 'redux-thunk';
import React from 'react';
import ReactDOM from 'react-dom';
import {connect} from 'react-redux';
... |
src/svg-icons/editor/linear-scale.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorLinearScale = (props) => (
<SvgIcon {...props}>
<path d="M19.5 9.5c-1.03 0-1.9.62-2.29 1.5h-2.92c-.39-.88-1.26-1.5-2.29-1.5s-1.9.62-2.29 1.5H6.79c-.39-.88-1.26-1.5-2.29-1.5C3.12 9.5 2 10.62 2 12s1.12 2.5 ... |
packages/material/src/components/FormError.native.js | wq/wq.app | import React from 'react';
import { useField } from 'formik';
import { HelperText } from 'react-native-paper';
export default function FormError(props) {
const [, { error }] = useField('__other__');
if (!error) {
return null;
}
return (
<HelperText type="error" {...props}>
{... |
p216/src/component/MediaCommand.js | Sylvestre67/packde16 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import './MediaCommand.css';
import '../assets/icons/font/css/open-iconic.css';
import IconButton from 'material-ui/IconButton';
import AvPause from 'material-ui/svg-icons/av/pause';
import AvPlayArrow from 'material-ui/svg-icons/av/play-arr... |
imports/ui/components/Spinner.js | edgi-govdata-archiving/archivers.space | import React from 'react';
const Spinner = () => {
const spinner = (
<div>Loading...</div>
);
return spinner;
};
export default Spinner;
|
node_modules/react-icons/md/rss-feed.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdRssFeed = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m6.6 16.8c9.2 0 16.6 7.4 16.6 16.6h-4.8c0-6.5-5.3-11.8-11.8-11.8v-4.8z m0-9.4c14.3 0 26 11.7 26 26h-4.7c0-11.8-9.5-21.3-21.3-21.3v-4.7z m0 22.3c0-2 1.7-3.6 3.7-3.6s3.... |
src/svg-icons/av/fiber-manual-record.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFiberManualRecord = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="12" r="8"/>
</SvgIcon>
);
AvFiberManualRecord = pure(AvFiberManualRecord);
AvFiberManualRecord.displayName = 'AvFiberManualRecord';
... |
src/components/common/Footer.js | bharney/YogaMarieMills | import React from 'react';
import Login from '../common/Login';
class Footer extends React.Component {
constructor(props, context) {
super(props, context);
this.state = {
open: false
};
}
render() {
return (
<footer>
<div className="... |
src/svg-icons/av/high-quality.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvHighQuality = (props) => (
<SvgIcon {...props}>
<path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 11H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm7-1c0 .55-.45 1-1 1h-.75v1.5h-1.... |
react-redux-demo/universal/client/index.js | fengnovo/webpack-react | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import configureStore from '../common/store/configureStore'
import App from '../common/containers/App'
const preloadedState = window.__PRELOADED_STATE__
const store = configureStore(preloadedStat... |
src/js/components/Timestamp.js | linde12/grommet | // (C) Copyright 2014-2017 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import moment from 'moment';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../utils/CSSClassnames';
import { getCurrentLocale } from '../utils/Locale';
c... |
src/components/Strip.js | sonnylazuardi/react-komik | import React, { Component } from 'react';
import objectAssign from 'object-assign';
import ReactDOM from 'react-dom';
class Strip extends Component {
constructor(props) {
super(props);
this.state = {
canvas: null
};
}
onDownload() {
var {canvas} = this.state;
... |
src/svg-icons/action/toll.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionToll = (props) => (
<SvgIcon {...props}>
<path d="M15 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zM3 12c0-2.61 1.67-4.83 4-5.65V4.26C3.5... |
src/components/video_detail.js | williammw/learning-react | import React from 'react';
const VideoDetail = ({video}) => {
if(!video){
return <div>....</div>;
}
//15.2
const videoId = video.id.videoId;
//const url = 'https://www.youtube.com/embed/'+ videoId;
//15.3 ES6 string (alt+ numpad 9 6)
const url = `https://www.youtube.com/embed/${videoId}... |
docs/src/PropTable.js | AlexKVal/react-bootstrap | import merge from 'lodash/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() + str.... |
client/components/list/index.js | yeoh-joer/synapse | /**
* External Dependencies
*/
import React from 'react'
import PropTypes from 'prop-types'
import { omit } from 'lodash'
/**
* Internal Dependencies
*/
import './style.scss'
import classNames from 'client/lib/class-names'
export default class List extends React.PureComponent {
static propTypes = {
dense: ... |
packages/idyll-docs/pages/index.js | idyll-lang/idyll | import React from 'react';
import Link from 'next/link';
import IdyllDocument from 'idyll-document';
import { Display, Range, TextContainer } from 'idyll-components';
import Head from 'next/head';
import Fonts from '../components/fonts';
import { logPageView, initGA } from '../components/analytics';
const IdyllCompon... |
modules/gui/src/app/home/body/process/recipe/planetMosaic/planetMosaicImageLayer.js | openforis/sepal | import {MapAreaLayout} from 'app/home/map/mapAreaLayout'
import {VisualizationSelector} from 'app/home/map/imageLayerSource/visualizationSelector'
import {compose} from 'compose'
import {msg} from 'translate'
import {visualizations} from './visualizations'
import PropTypes from 'prop-types'
import React from 'react'
c... |
components/Home/License.js | slidewiki/slidewiki-platform | import React from 'react';
import {FormattedMessage, defineMessages} from 'react-intl';
import StaticPage from './StaticPage';
import PropTypes from 'prop-types';
import setDocumentTitle from '../../actions/setDocumentTitle';
class license extends React.Component {
componentDidMount() {
this.context.exec... |
src/components/header.js | raulmatei/raulmatei.com | import React from 'react'
export default () => (
<h1>Out of this world</h1>
)
|
actor-apps/app-web/src/app/components/modals/AppCacheUpdate.react.js | jamesbond12/actor-platform | import React from 'react';
import Modal from 'react-modal';
//import pureRender from 'pure-render-decorator';
import { Styles, FlatButton } from 'material-ui';
import AppCacheStore from 'stores/AppCacheStore';
import AppCacheActionCreators from 'actions/AppCacheActionCreators';
import { KeyCodes } from 'constants/Act... |
src/svg-icons/social/public.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPublic = (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-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9... |
src/routes/home/Home.js | bharathbhsp/refactored-funicular | /**
* 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-... |
public/src/product.js | codelegant/react-action | /**
* Author: codelegant
* Email: laichuanfeng@hotmail.com
* DateTime: 2016/7/14 16:21
*/
import React from 'react';
import ReactDOM from 'react-dom';
import FilterableProductTable from './product/FilterableProductTable';
import '../css/product.css';
const PRODUCTS = [
{ category: 'Sporting Goods', price: '$49.9... |
actor-apps/app-web/src/app/components/Deactivated.react.js | shenhzou654321/actor-platform | import React from 'react';
class Deactivated extends React.Component {
render() {
return (
<div className="deactivated row center-xs middle-xs">
<div className="deactivated__window">
<h2>Tab deactivated</h2>
<p>
Oops, you have opened another tab with Actor, so we had... |
docs/app/Examples/modules/Dropdown/Content/DropdownExampleFloatedContent.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Dropdown, Icon } from 'semantic-ui-react'
const DropdownExampleFloatedContent = () => (
<Dropdown text='Filter' floating labeled button className='icon'>
{/* <i class="filter icon"></i> */}
<Dropdown.Menu>
<Dropdown.Header icon='tags' content='Filter by tag' />
... |
stories/MixLineBar.js | jerairrest/react-chartjs-2 | import React from 'react';
import {Bar} from 'react-chartjs-2';
import { storiesOf, action, linkTo } from '@kadira/storybook';
const options = {
responsive: true,
tooltips: {
mode: 'label'
},
elements: {
line: {
fill: false
}
},
scales: {
xAxes: [
{
display: true,
... |
src/components/slider/sliderDots/SliderDots.js | licken/React-Common | import React from 'react';
class SliderDots extends React.Component {
constructor(props) {
super(props);
}
handleDotClick(i) {
var option = i - this.props.nowLocal;
this.props.turn(option);
}
render() {
let dotNodes = [];
for(let i = 0; i < this.props.count; i++) {
dotNodes[i... |
src/components/Loading/index.js | IntellectionStudio/intellection.kz | import {pure} from 'recompact';
import Helmet from 'react-helmet';
import React from 'react';
import TopBarProgressIndicator from 'react-topbar-progress-indicator';
import styles from './index.css';
TopBarProgressIndicator.config({
barColors: {
'0': '#fff',
'1.0': '#fff',
},
shadowBlur: 5,
});
const Lo... |
app/components/ShowsList/ShowsList.js | alandawi/react-native-tvshows | import React, { Component } from 'react';
import { Text } from 'react-native';
import { List, ListItem } from 'react-native-elements';
import Styles from './style';
class ShowsList extends Component {
viewShow = (show) => {
console.log("viewShow:", show.id);
// TODO: Need to pass the ID and then ge... |
src/components/Search/SearchResults.js | hoppispace/hoppi-space-web-app | import React from 'react';
import SpaceResultItem from '../Space/SpaceResultItem';
import SearchResultsMap from './SearchResultsMap';
const SearchResults = () => {
return (
<div id="search-results" className="row">
<SearchResultsMap/>
<div id="search-results-list" className="col-xs... |
src/index.js | eyalliebermann/celebrity | import React from 'react';
import ReactDOM from 'react-dom';
ReactDOM.render(
<h1>Hello React. Let's see how can Travis and heroku handle you</h1>,
document.getElementById('root')
); |
src/pages/miss-cigarrete.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Miss Cigarrete' />
)
|
src/routes/Home/components/HomeView.js | simonvpe/borrkoll-react | import React from 'react'
import DuckImage from '../assets/Duck.jpg'
import classes from './HomeView.scss'
export const HomeView = () => (
<div>
<h4>Welcome!</h4>
<img
alt='This is a duck, because Redux!'
className={classes.duck}
src={DuckImage} />
</div>
)
export default HomeView
|
examples/huge-apps/routes/Course/components/Course.js | fiture/react-router | import React from 'react';
import Dashboard from './Dashboard';
import Nav from './Nav';
var styles = {};
styles.sidebar = {
float: 'left',
width: 200,
padding: 20,
borderRight: '1px solid #aaa',
marginRight: 20
};
class Course extends React.Component {
render () {
let { children, params } = this.pro... |
node_modules/semantic-ui-react/src/views/Item/ItemExtra.js | mowbell/clickdelivery-fed-test | import cx from 'classnames'
import _ from 'lodash'
import PropTypes from 'prop-types'
import React from 'react'
import {
createShorthandFactory,
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
/**
* An item can contain extra content meant to be formatted separately from the mai... |
src/routes/Account/containers/AccountContainer.js | Ryana513/ccproject | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Paper from 'material-ui/Paper';
import { connect } from 'react-redux';
import { firebaseConnect, pathToJS, isLoaded } from 'react-redux-firebase';
import { reduxFirebase as fbReduxSettings } from '../../../config';
import { UserIsAuthe... |
imports/ui/components/AttractLoop.js | scimusmn/sports-run | import React from 'react';
import ReactDOM from 'react-dom';
import { Row, Col, Button } from 'react-bootstrap';
import { Meteor } from 'meteor/meteor';
import TweenMax from 'gsap';
import {TimelineMax} from 'gsap';
export class AttractLoop extends React.Component {
constructor(props) {
super(props);
this... |
pages/auth/change-email.js | digithun/nap | import React from 'react'
import Router from 'next/router'
import 'isomorphic-fetch'
import PropTypes from 'prop-types'
const changeEmail = (token, password) =>
fetch('/change-email-by-token', {
method: 'POST',
body: JSON.stringify({ token, password }),
headers: new Headers({
'Content-Type': 'appli... |
docs/src/examples/elements/Segment/States/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
const SegmentStatesExamples = () => (
<ExampleSection title='States'>
<ComponentExample
title='Disabled'
description=... |
demo/js/icon.js | bebeanan/monkey-ui | import React from 'react';
import ReactDOM from 'react-dom';
import MonkeyUi from '../../lib/monkeyui.js';
var Icon=MonkeyUi.Icon;
var Row=MonkeyUi.Row;
var Col=MonkeyUi.Col;
const iconname=["arrow-left","arrow-right","play-circle","play-circle-o","up-square","down-square","left-square","right-square","up-square-o","do... |
src/components/login.js | KoushikKumar/trade-a-book-client | import React, { Component } from 'react';
import Iphone from './iphone';
import Book from './book';
export default class Login extends Component {
render() {
return (
<div className="outer-container">
<Book />
<Iphone />
</div>
)
}
} |
src/svg-icons/communication/voicemail.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationVoicemail = (props) => (
<SvgIcon {...props}>
<path d="M18.5 6C15.46 6 13 8.46 13 11.5c0 1.33.47 2.55 1.26 3.5H9.74c.79-.95 1.26-2.17 1.26-3.5C11 8.46 8.54 6 5.5 6S0 8.46 0 11.5 2.46 17 5.5 17h13c3... |
src/Badge.js | omerts/react-bootstrap | import React from 'react';
import ValidComponentChildren from './utils/ValidComponentChildren';
import classNames from 'classnames';
const Badge = React.createClass({
propTypes: {
pullRight: React.PropTypes.bool
},
hasContent() {
return ValidComponentChildren.hasValidComponent(this.props.children) ||
... |
pages/_app.js | styled-components/styled-components-website | import { MDXProvider } from '@mdx-js/react';
import components from '../utils/mdx-components';
import App from 'next/app';
import Head from 'next/head';
import React from 'react';
export default class MyApp extends App {
render() {
const { Component, pageProps } = this.props;
return (
<>
<Head... |
src/screens/App/components/Footer/__stories__/footer.story.js | yanglinz/reddio | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import 'normalize.css';
import Footer from '../index';
storiesOf('Footer', module)
.add('default', () => (
<Footer />
));
|
app/javascript/mastodon/features/status/index.js | pso2club/mastodon | import Immutable from 'immutable';
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchStatus } from '../../actions/statuses';
import MissingIndicator from '..... |
src/svg-icons/social/person-add.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPersonAdd = (props) => (
<SvgIcon {...props}>
<path d="M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>
</... |
resources/apps/frontend/src/pages/auth/index.js | johndavedecano/PHPLaravelGymManagementSystem | import React from 'react';
import Loadable from 'components/Loadable';
import {PublicLayout} from 'components/Layouts';
import renderRoutes from './../routes';
export default {
exact: false,
auth: false,
path: '/auth',
component: ({routes}) => {
return <PublicLayout>{renderRoutes(routes)}</PublicLayout>;
... |
src/Parser/Hunter/Marksmanship/Modules/Traits/CallOfTheHunter.js | hasseboulen/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import SPELLS from 'common/SPELLS';
import SpellIcon from "common/SpellIcon";
import SpellLink from "common/SpellLink";
import ItemDamageDone from 'Main/ItemDamageDone';
/**
* When you Ma... |
hub-ui/src/components/Other.js | lchase/hub | import React, { Component } from 'react';
export default class Other extends Component {
render() {
return (
<div>Other Content!!</div>
);
}
} |
index.android.js | yogakurniawan/phoney-mobile | import 'es6-symbol/implement';
import {Provider} from 'react-redux';
import store from './src/redux/store';
import AppViewContainer from './src/modules/AppViewContainer';
import React from 'react';
import {AppRegistry, BackAndroid} from 'react-native';
import * as NavigationStateActions from './src/modules/navigation/N... |
src/main.js | michaelgu95/ZltoReduxCore | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import AppContainer from './containers/AppContainer'
// ========================================================
// Store Instantiation
// ========================================================
const initialState... |
docs/src/app/components/pages/components/FontIcon/ExampleSimple.js | ArcanisCz/material-ui | import React from 'react';
import FontIcon from 'material-ui/FontIcon';
import {blue500, red500, greenA200} from 'material-ui/styles/colors';
const iconStyles = {
marginRight: 24,
};
const FontIconExampleSimple = () => (
<div>
<FontIcon
className="muidocs-icon-action-home"
style={iconStyles}
/... |
packages/carbon-react/src/components/MultiSelect/MultiSelect.stories.js | carbon-design-system/carbon-components | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { MultiSelect } from 'carbon-components-react';
const items = [
{
id: 'downshift-1-item-0',
text... |
client/modules/email/routes.js | open-dash/open-dash | import React from 'react';
import { mount } from 'react-mounter';
import MainLayout from '/client/modules/core/containers/main_layout';
import EmailSettings from './containers/email_settings';
export default function (injectDeps, { FlowRouter }) {
const MainLayoutCtx = injectDeps(MainLayout);
FlowRouter.route('/... |
src/index.js | stoex/mergePDF | import React from 'react'
import ReactDOM from 'react-dom'
import App from './components/App'
ReactDOM.render(<App />, document.getElementById('root'))
|
examples/basic/multiple_modals/index.js | reactjs/react-modal | import React, { Component } from 'react';
import Modal from 'react-modal';
class List extends React.Component {
render() {
return (
<div>
{this.props.items.map((x, i) => (
<div key={i} onClick={this.props.onItemClick(i)}>
<a href="javascript:void(0)">{x}</a>
</div>))... |
docs/src/modules/utils/getDemoConfig.js | lgollut/material-ui | import { getDependencies } from './helpers';
import { CODE_VARIANTS } from 'docs/src/modules/constants';
function jsDemo(demoData) {
return {
dependencies: getDependencies(demoData.raw, {
muiCommitRef: process.env.PULL_REQUEST ? process.env.COMMIT_REF : undefined,
}),
files: {
'demo.js': demo... |
packages/theme-patternfly-org/templates/mdx.js | patternfly/patternfly-org | import React from 'react';
import { PageSection, Title, PageSectionVariants, BackToTop } from '@patternfly/react-core';
import { css } from '@patternfly/react-styles';
import ExternalLinkAltIcon from '@patternfly/react-icons/dist/esm/icons/external-link-alt-icon';
import { Router, useLocation } from '@reach/router';
im... |
src/utils/yAxis.js | dat2/plottr | import React from 'react';
export default function yAxis({ ys = [], yScale, chartWidth, chartHeight, tickSize, textSize } = {}) {
const ticks = ys
// .filter ?
.map(y => ({ text: y, y: chartHeight - yScale * y, x1: -tickSize, x2: 0 }));
return (
<g className='plottr-axis'>
<line x1='0' x2='0' y... |
cmd/elwinator/src/components/Experiment.js | foolusion/choices | // @flow
import React from 'react';
import { Link, browserHistory } from 'react-router';
import { connect } from 'react-redux';
import NavSection from './NavSection';
import SegmentInput from './SegmentInput';
import Segment from './Segment';
import ParamList from './ParamList';
import { namespaceURL, paramNewURL } fr... |
app/javascript/mastodon/components/button.js | rainyday/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default class Button extends React.PureComponent {
static propTypes = {
text: PropTypes.node,
onClick: PropTypes.func,
disabled: PropTypes.bool,
block: PropTypes.bool,
secondary: PropTypes.... |
src/svg-icons/action/picture-in-picture-alt.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPictureInPictureAlt = (props) => (
<SvgIcon {...props}>
<path d="M19 11h-8v6h8v-6zm4 8V4.98C23 3.88 22.1 3 21 3H3c-1.1 0-2 .88-2 1.98V19c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H3V4.97h18v14.05z"/>
</Svg... |
src/routes.js | AlbinOS/book-keeper-ui | import React from 'react';
import {IndexRoute, Route} from 'react-router';
// Layouts
import Page from './components/layout/page';
// Pages
import Home from './pages/home'
import About from './pages/about'
import NoMatch from './pages/no_match'
import FilterableTimetrackingTable from './pages/report'
// Routes
expor... |
src/components/Step.js | gilbarbara/react-joyride | import React from 'react';
import PropTypes from 'prop-types';
import Floater from 'react-floater';
import treeChanges from 'tree-changes';
import is from 'is-lite';
import { ACTIONS, EVENTS, LIFECYCLE, STATUS } from '../constants';
import { getElement, isElementVisible, hasPosition } from '../modules/dom';
import { ... |
editor/components/Toolbar.js | conundrumer/sim-seq | import React from 'react'
export default class Toolbar extends React.Component {
render() {
return (
<div
className={'toolbar ' + (this.props.className || '')}
>
{this.props.children}
</div>
);
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.