path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/Layout.js | CoolPodCast/playerDesktop | import React from 'react';
import ReactDOM from 'react-dom';
import Menu from './components/Menu/SideBar';
import Content from './components/Feed/Content';
class Layout extends React.Component {
render() {
return (
<div>
<Menu/>
<Content/>
</div>
);
}
}
cons... |
examples/redux/src/js/components/Comments.js | cpsubrian/hipley | import React from 'react'
import Comment from './Comment'
class Comments extends React.Component {
static propTypes = {
comments: React.PropTypes.array,
likeComment: React.PropTypes.func
}
render () {
return (
<ul className='comments'>
{this.props.comments.map((comment, i) => {
... |
index.android.js | shuiszhang/fanfou | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
} from 'react-native';
import Fanfou from './app/app';
AppRegistry.registerComponent('fanfou', () => Fanfou);
|
force_dir/node_modules/react-bootstrap/es/Pagination.js | wolfiex/VisACC | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/svg-icons/editor/strikethrough-s.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorStrikethroughS = (props) => (
<SvgIcon {...props}>
<path d="M7.24 8.75c-.26-.48-.39-1.03-.39-1.67 0-.61.13-1.16.4-1.67.26-.5.63-.93 1.11-1.29.48-.35 1.05-.63 1.7-.83.66-.19 1.39-.29 2.18-.29.81 0 1.54.11 ... |
app/containers/NotFoundPage/index.js | andresol/homepage | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it... |
src/components/buttons/Button.js | kryptnostic/gallery | import React from 'react';
import StyledButton from './StyledButton';
export default class Button extends React.Component {
static propTypes = {
children: React.PropTypes.node.isRequired,
disabled: React.PropTypes.bool,
onClick: React.PropTypes.func,
scStyle: React.PropTypes.string
};
render()... |
src/client/components/regions.js | caseywebdev/bruteball | import _ from 'underscore';
import {withPave} from 'pave-react';
import React from 'react';
const renderRegion = ({id, ping}) =>
<div key={id}>
{id} {ping == null ? '...' : Math.floor(ping * 1000)} ping
</div>;
const render = ({props: {pave: {state: {regions}, error}}}) =>
<div>{error ? error.toString() : _... |
Paths/React/05.Building Scalable React Apps/8-react-boilerplate-building-scalable-apps-m8-exercise-files/After/app/components/LinkList/index.js | phiratio/Pluralsight-materials | /**
*
* LinkList
*
*/
import React from 'react';
import Link from '../Link';
import styles from './styles.css';
function LinkList({ links, topicName, children }) {
const linkNodes = links.map(l => (
<Link
key={l.id}
link={l}
/>
));
return (
<div className={styles.linkList}>
<h1>{... |
pages/error/index.js | GabrielLagos/emotion_analyser | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-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';
... |
app-course-sync/views/WellcomeView.js | globant-ui-rosario/progress-tracker | import React, { Component } from 'react';
class BootcampWellcomeView extends Component {
render () {
return <div>Wellcome view</div>;
}
};
export default BootcampWellcomeView;
|
dist/lib/carbon-fields/assets/js/fields/components/hidden/index.js | ArtFever911/statrer-kit | /**
* The external dependencies.
*/
import React from 'react';
import PropTypes from 'prop-types';
import { setStatic } from 'recompose';
/**
* The internal dependencies.
*/
import Field from 'fields/components/field';
import { enhance } from 'fields/components/text';
import { TYPE_HIDDEN } from 'fields/constants'... |
src/hoc/selectable-enhance.js | izziaraffaele/material-ui | import React from 'react';
import getMuiTheme from '../styles/getMuiTheme';
import StylePropable from '../mixins/style-propable';
import ColorManipulator from '../utils/color-manipulator';
export const SelectableContainerEnhance = (Component) => {
const composed = React.createClass({
displayName: `Selectable${C... |
src/components/UIShell/Link.js | joshblack/carbon-components-react | /**
* 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 PropTypes from 'prop-types';
import React from 'react';
/**
* Link is a custom component that allows us to supporting rendering elem... |
app/javascript/mastodon/containers/timeline_container.js | hyuki0000/mastodon | import React from 'react';
import { Provider } from 'react-redux';
import PropTypes from 'prop-types';
import configureStore from '../store/configureStore';
import { hydrateStore } from '../actions/store';
import { IntlProvider, addLocaleData } from 'react-intl';
import { getLocale } from '../locales';
import PublicTim... |
app/NavBar.js | vikramcse/react-calculator | import React from 'react';
class NavBar extends React.Component {
render() {
return (
<nav>
<div className="nav-wrapper">
<a href="#" className="brand-logo">Calculator</a>
<ul id="nav-mobile" className="right hide-on-med-and-down">
<li><a href="https://github.com/vikram... |
monkey/monkey_island/cc/ui/src/components/ui-components/inline-selection/InlineSelection.js | guardicore/monkey | import React from 'react';
import PropTypes from 'prop-types';
import BackButton from './BackButton';
import {Col, Row, Container} from 'react-bootstrap';
import {getColumnSize} from './utils';
export default function InlineSelection(WrappedComponent, props) {
return (
<Container className={'inline-selection-co... |
client/app/scripts/auth0-lock/support/design/index.js | Zeus-HatersGonaHate/Zeus-HatersGonaHate | import React from 'react';
import ReactDOM from 'react-dom';
import Immutable from 'immutable';
import _ from '../../src/browser';
import Control, { store } from './control';
import * as ClientSettings from '../../src/core/client/settings';
import webAPI from '../../src/core/web_api';
const WebAPI = webAPI.constructor;... |
DialogExample/index.ios.js | ahmedlhanafy/react-native-md-dialog | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity
} from 'react-native';
import App from './App';
class DialogExample extends Component {
render() {
return (
... |
src/js/components/icons/status/Blank.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
const CLASS_ROOT = CSSClassnames.STATUS_ICON;
export default class Blank ex... |
src/FormControls/Static.js | yuche/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import InputBase from '../InputBase';
import childrenValueValidation from '../utils/childrenValueInputValidation';
class Static extends InputBase {
getValue() {
const {children, value} = this.props;
return children ? children : value;
}
ren... |
HTML/前端/my-react-app-spring-boot-yao/src/index.js | xiaoxiaoyao/MyApp | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
function Square(props) {
return (
<button className="square" onClick={props.onClick}>
{props.value}
</button>
);
}
class Board extends React.Component {
renderSquare(i) {
return (
<Square
value={thi... |
static/src/containers/AdminHome.js | eltrufas/cosmico | import React from 'react';
import Paper from 'material-ui/Paper';
const AdminHome = () => (
<Paper style={{ maxWidth: '500px', padding: '16px', margin: '20px auto', textAlign: 'center'}}>
Aun no hay nada aquí.
</Paper>
)
export default AdminHome
|
tests/react_native_tests/test_data/native_code/BorderStyles/storybook/stories/Mobile/index.js | ibhubs/sketch-components | import React from 'react'
import { storiesOf } from '@storybook/react-native'
import { action } from '@storybook/addon-actions'
import { linkTo } from '@storybook/addon-links'
import Mobile from 'app/components/Mobile'
storiesOf('Mobile', module)
.add('default', () => (
<Mobile></Mobile>)) |
src/components/App.js | andreminz/aim | import React from 'react';
import { BrowserRouter } from 'react-router';
import styles from './App.css';
import Navbar from './Navbar';
import Main from './Main';
import Footer from './Footer';
const App = () =>
<BrowserRouter>
<div className={styles.app}>
<Navbar />
<Main />
<Footer />
</d... |
step4.0/client/App.js | colmarius/universal-react-workshop-app | import React from 'react'
import TalkList from './TalkList'
const App = React.createClass({
render: function() {
return (
<div className='jumbotron'>
<h1 className="text-center">
Conference Talks
</h1>
<TalkList />
</div>
)
},
})
export default App
|
docs/src/Root.js | tigerandgirl/ssc-refer | import React from 'react';
const Root = React.createClass({
statics: {
/**
* Get the list of pages that are renderable
*
* @returns {Array}
*/
getPages() {
return [
'index.html',
'introduction.html',
'getting-started.html',
'components.html',
... |
src/icons/Pricetags.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class Pricetags extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M472,239.2L472,239.2C472,239.2,471.9,239.2,472,239.2L282.1,48.1c0,0,0,0,0,0l-1.4-1.4c0,0-0.5,0-0.5,0
c-7.5-7.2-1... |
app/components/home/Stepper.js | OldFresco/web-app-kiwwi | import React from 'react';
import {
Step,
Stepper,
StepButton,
} from 'material-ui/Stepper';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButton from 'material-ui/FlatButton';
import Body from 'material-ui/svg-icons/action/accessibility';
import Target from 'material-ui/svg-icons/action/track-c... |
src/propTypes/ShadowPropTypesIOS.js | dingbat/react-native-mock | import React from 'react';
import ColorPropType from './ColorPropType';
const { PropTypes } = React;
const ShadowPropTypesIOS = {
/**
* Sets the drop shadow color
* @platform ios
*/
shadowColor: ColorPropType,
/**
* Sets the drop shadow offset
* @platform ios
*/
shadowOffset: PropTypes.shape... |
app/javascript/mastodon/features/ui/components/column_loading.js | mimumemo/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Column from '../../../components/column';
import ColumnHeader from '../../../components/column_header';
import ImmutablePureComponent from 'react-immutable-pure-component';
export default class ColumnLoading extends ImmutablePureComponent {
stat... |
src/common/components/TimelineNodeOrganizer/SortableTreeMenu/Tree.js | jspsych/jsPsych-Redux-GUI | import React from 'react';
import TreeNode from '../../../containers/TimelineNodeOrganizer/SortableTreeMenu/TreeNodeContainer';
class Tree extends React.Component {
render() {
const {
children,
collapsed,
} = this.props;
return (
<div className="Sortable-Tree" >
{(collapsed) ?
null:
... |
app/javascript/flavours/glitch/features/lists/index.js | glitch-soc/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from 'flavours/glitch/components/loading_indicator';
import Column from 'flavours/glitch/features/ui/components/column';
import Column... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/SvgInclusion.js | RobzDoom/frame_trap | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import Rea... |
src/scenes/home/scholarshipApplication/head/head.js | tskuse/operationcode_frontend | import React from 'react';
import dateFormat from 'dateformat';
import PropTypes from 'prop-types';
import styles from './head.css';
const Head = ({ scholarship }) => (
<div>
<h3 className={styles.scholarshipAppHeader}> {scholarship.name} </h3>
<p> {scholarship.description} </p>
<p> {scholarship.location... |
frontend/components/Menu.js | SkyPicker/Skywall | import React from 'react'
import {Nav, NavItem, Col} from 'react-bootstrap'
import {LinkContainer, IndexLinkContainer} from 'react-router-bootstrap'
import {compose} from 'redux'
import * as routes from '../constants/routes'
import {applyOverlays} from '../utils/overlays'
export class MenuComponent extends React.Comp... |
app/javascript/mastodon/features/ui/components/zoomable_image.js | Chronister/mastodon | import React from 'react';
import PropTypes from 'prop-types';
const MIN_SCALE = 1;
const MAX_SCALE = 4;
const getMidpoint = (p1, p2) => ({
x: (p1.clientX + p2.clientX) / 2,
y: (p1.clientY + p2.clientY) / 2,
});
const getDistance = (p1, p2) =>
Math.sqrt(Math.pow(p1.clientX - p2.clientX, 2) + Math.pow(p1.client... |
fields/types/relationship/RelationshipColumn.js | pswoodworth/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue';
const moreIndicatorStyle = {
color: '#bbb',
fontSize: '.8rem',
fontWeight: 500,
marginLeft: 8,
};
var Relat... |
src/botPage/view/TradeInfoPanel/RunButton.js | binary-com/binary-bot | import React from 'react';
import { translate } from '../../../common/i18n';
const RunButton = () => (
<React.Fragment>
<button title="Run the bot" id="summaryRunButton" className="toolbox-button icon-run" />
<button
title={translate('Stop the bot')}
id="summaryStopButton"
... |
ui/src/js/planting/customPlantPage/Project.js | Dica-Developer/weplantaforest | import axios from 'axios';
import React, { Component } from 'react';
import Article from './Article';
import ArticleDesc from './ArticleDesc';
export default class Project extends Component {
constructor() {
super();
this.state = {
articles: []
};
}
componentDidMount() {
var that = this;
... |
ajax/libs/react-instantsearch/5.0.0-beta.0/Dom.js | seogi1004/cdnjs | /*! ReactInstantSearch 5.0.0-beta.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], facto... |
app/utils/AutoScroll.js | davidnum/chat | import React from 'react';
import ReactDom from 'react-dom';
export default function (ComposedComponent, property) {
class AutoScroll extends React.Component {
componentDidMount() {
this.scrollToBottom();
}
componentWillUpdate(nextProps) {
if (this.props[property] !== nextProps[property]) {... |
jsx/modules/routes.js | NickTaporuk/webpack_starterkit_project | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './App';
import About from './About';
import Repos from './Repos';
import Repo from './Repo';
import Home from './Home';
module.exports = (
<Route path="/" component={App}>
<IndexRoute component={Home}/>
<R... |
src/React/CollapsibleControls/PixelOperatorControl/example/index.js | Kitware/paraviewweb | import 'normalize.css';
import React from 'react';
import ReactDOM from 'react-dom';
import PixelOperatorControl from 'paraviewweb/src/React/CollapsibleControls/PixelOperatorControl';
let operationValue = 'a+2/5';
const operator = {
getOperation() {
return operationValue;
},
setOperation(v) {
operation... |
src/containers/DailySchedule/DailySchedule.js | moo-dal/spoon-web | /* External dependencies */
import React from 'react'
import classNames from 'classnames'
import autobind from 'core-decorators/lib/autobind'
import FontAwesome from 'react-fontawesome'
import { connect } from 'react-redux'
import { replace } from 'react-router-redux'
/* Internal dependencies */
import styles from './... |
src/index.js | rattrayalex/splashreader | /* @flow */
import 'babel-polyfill' // for regenerator
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import store from './flux/store'
import SplashApp from './components/SplashApp'
import * as dom from './lib/dom'
import * as ranges from './lib/ranges'
import * as e... |
src/components/App.js | dkanas/timelog | import React from 'react'
import { browserHistory, Router } from 'react-router'
import { Provider } from 'react-redux'
import PropTypes from 'prop-types'
class App extends React.Component {
static propTypes = {
store: PropTypes.object.isRequired,
routes: PropTypes.object.isRequired,
}
shouldComponentUpd... |
server/sonar-web/src/main/js/components/charts/histogram.js | vamsirajendra/sonarqube | import d3 from 'd3';
import React from 'react';
import { ResizeMixin } from './../mixins/resize-mixin';
import { TooltipsMixin } from './../mixins/tooltips-mixin';
export const Histogram = React.createClass({
propTypes: {
data: React.PropTypes.arrayOf(React.PropTypes.object).isRequired,
yTicks: React.PropTy... |
src/svg-icons/device/battery-alert.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryAlert = (props) => (
<SvgIcon {...props}>
<path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4zM13 18h-2v-2h2v2zm0... |
src/components/share/Style.js | HsuTing/react-input | 'use strict';
import React from 'react';
import radium, {Style as StyleRadium} from 'radium';
import normalize from 'radium-normalize';
@radium
export default class Style extends React.Component {
render() {
return (
<div>
<StyleRadium rules={normalize} />
<StyleRadium scopeSelector="a"
... |
src/index.js | bogas04/SikhJS | /* eslint-disable import/no-unassigned-import */
import React from 'react';
import { render } from 'react-dom';
import 'unfetch/polyfill';
import Root from './pages/Root';
render(<Root />, document.getElementById('root'));
// Service Worker Registeration
if ('serviceWorker' in navigator) {
navigator
.serviceW... |
addons/themes/directive/layouts/Home.js | rendact/rendact | import $ from 'jquery'
import React from 'react';
import gql from 'graphql-tag';
import {graphql} from 'react-apollo';
import moment from 'moment';
import {Link} from 'react-router';
import scrollToElement from 'scroll-to-element';
let Home = React.createClass({
componentDidMount(){
require('../assets/css/main.c... |
packages/material-ui-icons/test/fixtures/material-design-icons/expected/Accessibility.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2z" /></g>
, 'Accessibility');
|
threeforce/node_modules/react-bootstrap/es/ModalHeader.js | wolfiex/VisACC | 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/image/timer.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTimer = (props) => (
<SvgIcon {...props}>
<path d="M15 1H9v2h6V1zm-4 13h2V8h-2v6zm8.03-6.61l1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0... |
src/parser/paladin/holy/modules/talents/DevotionAuraDamageReduction.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import { Trans } from '@lingui/macro';
import SPELLS from 'common/SPELLS';
import fetchWcl from 'common/fetchWclApi';
import SpellIcon from 'common/SpellIcon';
import { formatThousands, formatNumber } from 'common/format';
import LazyLoadStatisticBox, { STATISTIC_ORDER } from 'interface/oth... |
packages/ringcentral-widgets-docs/src/app/pages/Components/DialerPanel/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import { parse } from 'react-docgen';
import CodeExample from '../../../components/CodeExample';
import ComponentHeader from '../../../components/ComponentHeader';
import PropTypeDescription from '../../../components/PropTypeDescription';
import Demo from './Demo';
// eslint-disable-next-lin... |
src/Checkbox.js | dozoisch/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import warning from 'warning';
import { bsClass, getClassSet, prefix, splitBsProps }
from './utils/bootstrapUtils';
const propTypes = {
inline: React.PropTypes.bool,
disabled: React.PropTypes.bool,
/**
* Only valid if `inline` is not set.
*... |
lib-es/components/media/media-right.js | bokuweb/re-bulma | 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; };
import React, { Component } from 'react';
import PropTypes fr... |
src/server.js | JackTran791/react-app | import path from 'path';
import { Server } from 'http';
import Express from 'express';
import React from 'react';
import { renderToString } from 'react-dom/server';
import { match, RouterContext } from 'react-router';
import routes from './routes';
import NotFoundPage from './components/NotFoundPage';
// initialize th... |
src/TextNoteEditor.js | OCMC-Translation-Projects/ioc-liturgical-react | import React from 'react';
import PropTypes from 'prop-types';
import FontAwesome from 'react-fontawesome';
import DeleteButton from './helpers/DeleteButton';
import RichEditor from './modules/RichEditor';
import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table';
import 'react-draft-wysiwyg/dist/react-dr... |
packages/material-ui-icons/src/AcUnit.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let AcUnit = props =>
<SvgIcon {...props}>
<path d="M22 11h-4.17l3.24-3.24-1.41-1.42L15 11h-2V9l4.66-4.66-1.42-1.41L13 6.17V2h-2v4.17L7.76 2.93 6.34 4.34 11 9v2H9L4.34 6.34 2.93 7.76 6.17 11H2v2h4.17l-3.24 3.... |
app/javascript/mastodon/features/favourites/index.js | Chronister/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { fetchFavourit... |
src/svg-icons/action/question-answer.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionQuestionAnswer = (props) => (
<SvgIcon {...props}>
<path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"/>
</SvgIcon>
);
... |
src/Parser/DeathKnight/Blood/Modules/Talents/Ossuary.js | hasseboulen/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import Combatants from 'Parser/Core/Modules/Combatant... |
client/src/app-components/are-you-sure.js | opensupports/opensupports | import React from 'react';
import i18n from 'lib-app/i18n';
import ModalContainer from 'app-components/modal-container';
import Button from 'core-components/button';
import Input from 'core-components/input';
import Loading from 'core-components/loading'
class AreYouSure extends React.Component {
static propType... |
src/tile/Tile.js | fengshanjian/react-native-komect-uikit | import PropTypes from 'prop-types';
import React from 'react';
import {
View,
Image,
Text as NativeText,
StyleSheet,
Dimensions,
TouchableOpacity,
} from 'react-native';
import Text from '../text/Text';
import Icon from '../icons/Icon';
import FeaturedTile from './FeaturedTile';
const Tile = props => {
c... |
src/routes/admin/index.js | utage2002/mm | /**
* 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... |
node_modules/react-router/modules/RoutingContext.js | SlateRobotics/slate-website | import React from 'react'
import RouterContext from './RouterContext'
import warning from './routerWarning'
const RoutingContext = React.createClass({
componentWillMount() {
warning(false, '`RoutingContext` has been renamed to `RouterContext`. Please use `import { RouterContext } from \'react-router\'`. http://t... |
src/svg-icons/maps/local-printshop.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalPrintshop = (props) => (
<SvgIcon {...props}>
<path d="M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"... |
app/src/components/Errors.js | GlyphGryph/DarkerDaysAhead | import React from 'react'
import PropTypes from 'prop-types'
const Errors = ({errors}) => (
<ul
style={{
color: 'red',
position: 'absolute',
right: '0px',
top: '0px',
zIndex: 1
}}
>
{[...errors].reverse().map( (error, index) => (
<li key={index}>
{error}
... |
sources/js/header.js | streetlives/streetlivesnyc | 'use strict';
import React from 'react';
import { Link, IndexLink } from 'react-router';
import '../scss/header.scss';
module.exports.Header = React.createClass({
render: function() {
return (
<header className="Header">
<a href={this.props.url} className="HeaderTitle">
... |
docs/app/Examples/elements/Step/Variations/StepExampleEvenlyDividedAnother.js | shengnian/shengnian-ui-react | import React from 'react'
import { Icon, Step } from 'shengnian-ui-react'
const StepExampleEvenlyDividedAnother = () => (
<Step.Group widths={2}>
<Step active>
<Icon name='credit card' />
<Step.Content>
<Step.Title>Billing</Step.Title>
</Step.Content>
</Step>
<Step disabled>
... |
app/components/ContactCard/index.js | yasserhennawi/yasserhennawi | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'utils/styled-components';
import colors from 'theme/color';
import ContactItem from '../ContactItem';
const Wrapper = styled.div`
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
max-... |
src/svg-icons/av/fiber-smart-record.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFiberSmartRecord = (props) => (
<SvgIcon {...props}>
<g><circle cx="9" cy="12" r="8"/><path d="M17 4.26v2.09c2.33.82 4 3.04 4 5.65s-1.67 4.83-4 5.65v2.09c3.45-.89 6-4.01 6-7.74s-2.55-6.85-6-7.74z"/></g>
</S... |
src/index.js | dpastoor/chatterbox | import React from 'react';
import { render } from 'react-dom'
import App from './App.jsx'
render(<App name="React" />, document.getElementById('root'));
|
examples/basic/src/components/Unwrapped.js | makeomatic/redux-connect | import React from 'react';
export default function Unwrapped() {
return (
<div>
{'Unwrapped component'}
</div>
);
}
|
src/client/components/base/Button/Button.js | DBCDK/content-first | import React from 'react';
import PropTypes from 'prop-types';
import Icon from '../Icon';
import './Button.css';
import '../Skeleton/skeleton.css';
const Button = ({
Tag = 'button',
size = 'large',
type = 'primary',
iconLeft = null,
iconRight = null,
variant = false,
children = null,
className = '',
... |
src/Parser/DeathKnight/Blood/Modules/Features/BlooddrinkerTicks.js | enragednuke/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import SPELLS from 'common/SPELLS';
import AbilityTracker from 'Parser/Core/Modules/AbilityTracker';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import Combatants from 'Parser/Core/Modules/Combatants';
import SpellIcon from '... |
web/app/components/notes/NotesList.js | sandro-heitz/mynotes |
import React, { Component } from 'react';
import NoteView from './NoteView';
class NotesList extends Component {
render() {
let nr = 0;
let ns = this.props.notes.map(n => { nr++; return (<NoteView number={nr} note={n} key={n.id} />) });
return (<div className="notes-list">{ns}</div>);
... |
samples/06.recomposing-ui/b.speech-ui/src/CustomDictationInterims.js | billba/botchat | import React from 'react';
import { Components, Constants } from 'botframework-webchat';
const { connectDictationInterims } = Components;
const {
DictateState: { DICTATING, STARTING }
} = Constants;
export default connectDictationInterims()(
({ className, dictateInterims, dictateState }) =>
(dictateState ===... |
clients/packages/admin-client/src/pages/admin/communities/settings/container.js | nossas/bonde-client | import PropTypes from 'prop-types';
import React from 'react';
import { Route } from 'react-router-dom';
// Components
import {
SettingsPageLayout,
SettingsPageContentLayout,
} from '../../../../components/layout';
import { SettingsMenu } from '../../../../community/components';
// Pages
import InfoPage from './i... |
src/components/Register.js | aryalprakash/aryalprakash.github.io | import React, { Component } from 'react';
import { Link } from 'react-router';
export class Register extends Component{
render(){
return(<div className="login-container">
<div className="login-form">
<div className="form-title">Sign Up</div>
<div className="lin... |
src/svg-icons/action/change-history.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionChangeHistory = (props) => (
<SvgIcon {...props}>
<path d="M12 7.77L18.39 18H5.61L12 7.77M12 4L2 20h20L12 4z"/>
</SvgIcon>
);
ActionChangeHistory = pure(ActionChangeHistory);
ActionChangeHistory.display... |
src/components/attributes/scatter-plot/LocalAttributes.js | smeads/ID3-React | import React from 'react';
import GridLines from './local-attributes/GridLines';
import RegressionLine from './local-attributes/RegressionLine';
import ToolTip from './local-attributes/ToolTip';
import ScatterPlotAttr from './local-attributes/ScatterPlotAttr';
export default (props) => {
const gridLines = props.grid... |
src/client/auth/login.react.js | laxplaer/este | import './login.styl';
import Component from '../components/component.react';
import React from 'react';
import exposeRouter from '../components/exposerouter';
import {focusInvalidField} from '../lib/validation';
@exposeRouter
export default class Login extends Component {
static propTypes = {
actions: React.Pr... |
src/js/components/layout/master.js | kukua/dashboard | import React from 'react'
import Header from '../header/header'
import Notifications from './notifications'
class MasterLayout extends React.Component {
render () {
return (
<div>
<div class="container">
<Header location={this.props.location} />
{this.props.children}
<Notifications />
</di... |
src/svg-icons/image/filter-hdr.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterHdr = (props) => (
<SvgIcon {...props}>
<path d="M14 6l-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22L14 6z"/>
</SvgIcon>
);
ImageFilterHdr = pure(ImageFilterHdr);
ImageFilterHdr.displayName... |
src/web/client/scripts/components/ProjectListTable.js | MiddleBack/anymock | /**
* Created by tanxiangyuan on 16/8/31.
*/
import React from 'react';
import Table from 'antd/lib/table';
import Button from 'antd/lib/button';
import Message from 'antd/lib/message';
import Input from 'antd/lib/input';
import Form from 'antd/lib/form';
import Switch from 'antd/lib/switch';
import Select from 'antd... |
dist/lib/carbon-fields/assets/js/containers/components/container/index.js | ArtFever911/statrer-kit | /**
* The external dependencies.
*/
import React from 'react';
import { branch, renderComponent } from 'recompose';
import { isObject } from 'lodash';
/**
* The internal dependencies.
*/
import ContainerTabbed from 'containers/components/container/tabbed';
import ContainerPlain from 'containers/components/containe... |
packages/idyll-cli/test/multiple-component-dirs/src/components-2/functional-default-component.js | idyll-lang/idyll | import React from 'react';
export default () => (
<div>
This is some text
<button>And a button</button>
Then some more text
</div>
);
|
src/__tests__/fileMocks/esClassNamed/Bold.js | react-cosmos/fs-playground | // @flow
import React, { Component } from 'react';
export default class Bold extends Component<{ name: string }> {
render() {
return <strong>{this.props.name}</strong>;
}
}
|
components/04_redux_elm/src/boilerplate.js | babotech/reusable-components-check | import React from 'react'
import { render } from 'react-dom'
import { createStore, compose } from 'redux'
import { Provider, connect } from 'react-redux'
import reduxElm from 'redux-elm'
export default (containerDomId, View, updater) => {
const storeFactory = compose(
reduxElm,
window.devToolsExtension ? wi... |
spec/components/snackbar.js | showings/react-toolbox | import React from 'react';
import Button from '../../components/button';
import Snackbar from '../../components/snackbar';
class SnackbarTest extends React.Component {
state = {
active: false,
};
handleSnackbarClick = () => {
this.setState({ active: false });
};
handleSnackbarTimeout = () => {
... |
src/examples/Step3.js | codelittinc/react-stepzilla | 'use strict';
import React, { Component } from 'react';
export default class Step3 extends Component {
constructor(props) {
super(props);
this.state = {
email: props.getStore().email,
gender: props.getStore().gender
};
this._validateOnDemand = true; // this flag enables onBlur validati... |
client/src/components/App/Issue/index.js | dotkom/super-duper-fiesta | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import DocumentTitle from 'react-document-title';
import { activeIssueExists, getIssueText, getIssueKey } from 'features/issue/selectors';
import Card from '../../Card';
import Loader from '../Loader';
import css from ... |
modules/offers/client/components/OffersPresentational.js | Trustroots/trustroots | // External dependencies
import { withTranslation } from 'react-i18next';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
// Internal dependencies
import '@/config/client/i18n';
import OfferLocation from './OfferLocation.component';
import OfferStatusButton from './OfferStatusButton';
imp... |
src/app/capital_projects/CIPData.js | cityofasheville/simplicity2 | import React from 'react';
import { browserHistory } from 'react-router';
import PageHeader from '../../shared/PageHeader';
import ButtonGroup from '../../shared/ButtonGroup';
import Button from '../../shared/Button';
import Icon from '../../shared/Icon';
import { IM_CITY } from '../../shared/iconConstants';
import { w... |
src/pages/reading/index.js | joefraley/ratticusscript | 'use strict'
import { Book } from './book'
import Helmet from 'react-helmet'
import React from 'react'
import books from './books.json'
export const filterByYear = (list, year) => list.filter(book => book.finished.split('/')[0] === year)
const sortedBooks = [
{ list: filterByYear(books, '2016'), year: 2016 },
{ li... |
src/containers/Menu/Menu.js | soulhat/galaxy | import React, { Component } from 'react';
import { Navbar, Nav, NavItem, NavDropdown, MenuItem } from 'react-bootstrap';
import './Menu.css';
class Menu extends Component {
render() {
return (
<Navbar inverse collapseOnSelect>
<Navbar.Header>
<Navbar.Brand>
<a href="/">Galaxy... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.