path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
app/components/H3/index.js | mmaedel/react-boilerplate | import React from 'react';
function H3(props) {
return (
<h3 {...props} />
);
}
export default H3;
|
Demo/code/indexview.js | githubdelegate/RNDemo | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
PixelRatio
} from 'react-native';
var Header = require('./header');
var List = require('./newslist');
var ImportantNews = require('./importantNews');
var styles = StyleSheet.create({
container: {
marginTop:25,... |
src/documentation/Icons/IconConverter.js | wfp/ui | /* eslint-disable jsx-a11y/label-has-associated-control */
/* eslint-disable no-console */
import React, { Component } from 'react';
import Icon from '../../components/Icon';
import Button from '../../components/Button';
import TextArea from '../../components/TextArea';
import { Module, ModuleHeader, ModuleBody } from... |
modules/RouteUtils.js | stshort/react-router | import React from 'react'
function isValidChild(object) {
return object == null || React.isValidElement(object)
}
export function isReactChildren(object) {
return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild))
}
function createRoute(defaultProps, props) {
return { ...defaultProps... |
src/client/main.js | fabriciocolombo/este | import React from 'react';
import Router from 'react-router';
import routes from './routes';
// Never render to body. Everybody updates it.
// https://medium.com/@dan_abramov/two-weird-tricks-that-fix-react-7cf9bbdef375
const app = document.getElementById('app');
Router.run(routes, Router.HistoryLocation, (Handler) =... |
react-flux-mui/js/material-ui/src/svg-icons/hardware/keyboard-arrow-right.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardArrowRight = (props) => (
<SvgIcon {...props}>
<path d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"/>
</SvgIcon>
);
HardwareKeyboardArrowRight = pure(HardwareKeyboardArrowRight);
Hardwar... |
stories/spinner.stories.js | isogon/styled-mdl | import React from 'react'
import { storiesOf } from '@storybook/react'
import wrapStory from './decorators/wrapStory'
import Spinner from '../src/components/spinner/demos/Spinner.js'
import SpinnerSingleColor from '../src/components/spinner/demos/SpinnerSingleColor.js'
storiesOf('Spinner', module)
.addDecorator(wra... |
public/js/summoner-name-input.js | telrikk/ask-zilean | import React from 'react';
import $ from 'jquery';
export default class SummonerNameInput extends React.Component {
constructor() {
super();
this.state = {
name: '',
buttonText: 'Search',
errorText: '',
isSearchComplete: false,
};
this.handleSubmit = this.handleSubmit.bind(thi... |
src/parser/hunter/survival/modules/spells/WildfireBomb.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import StatisticBox from 'interface/others/StatisticBox';
import SpellIcon from 'common/SpellIcon';
import Enemies from 'parser/shared/modules/Enemies';
import ... |
src/components/topic/snapshots/foci/FocalSetDefinitionDetails.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { FormattedMessage, injectIntl } from 'react-intl';
import { Row, Col } from 'react-flexbox-grid/lib';
import { DeleteButton, AddButton } from '../../../common/IconButton';
import FocusDefinition from './FocusDefinition';
import { filtersAsUrlParams ... |
src/components/header/nav/nav.js | growcss/growcss-site | import React from 'react';
import { Container } from './nav.css';
const Nav = () => (
<Container>
<ul>
<li>
<a href="https://github.com/growcss/growcss">GitHub</a>
</li>
</ul>
</Container>
);
export default Nav;
|
packages/idyll-components/src/h1.js | idyll-lang/idyll | import React from 'react';
import GenerateHeaders from './generateHeaders';
class H1 extends React.PureComponent {
render() {
return <GenerateHeaders size="1" {...this.props} />;
}
}
H1._idyll = {
name: 'H1',
tagType: 'open',
children: ['My Header Size 1']
};
export default H1;
|
src/client/components/editable.react.js | dfogas/my-mindmap | import './editable.styl';
import Component from '../components/component.react';
import React from 'react';
import Textarea from 'react-textarea-autosize';
import immutable from 'immutable';
import {msg} from '../intl/store';
const State = immutable.Record({
isEditing: false,
value: ''
});
const initialState = ne... |
src/index.js | raymondsze/react-example | /*
* @Author: Sze Ka Wai Raymond (FakeC)
* @Date: 2016-01-18 20:38:57
* @Last Modified by: Sze Ka Wai Raymond (FakeC)
* @Last Modified time: 2016-01-19 04:13:49
*/
/* eslint-disable no-alert */
import 'babel-polyfill';
import $ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import Si... |
common/components/NotFound.js | BostonGlobe/elections-2016 | import React from 'react'
import svgs from './../utils/svgs.js'
import Navigation from './Navigation.js'
import Footer from './../components/Footer.js'
import Promo from './../components/Promo.js'
const NotFound = () => (
<div>
<header className='header' key='header'>
<a href='#content' className='skip-to-main'... |
dev/example-studio/components/BrandLogo.js | sanity-io/sanity | /* eslint-disable max-len */
import React from 'react'
const BrandLogo = (props) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 41">
<path d="M139.71 40.41h8.92V16.67l-8.92 4.69v19.05M46.97 28.34l-4.58 11.54 15.1-7.95-2.8-7.49-7.72 3.9m93.49-18.22l-.34.17-.41.21v9.21l8.92-4.7.72-.38.74-.38 7.84-4.... |
src/components/ModalHeader/ModalHeader.js | Landish/react-spectre-css | import React from 'react';
import { string } from 'prop-types';
import classNames from 'classnames';
import Button from '../Button/Button';
const ModalHeader = ({ children, title, onClose, className, ...rest }) => {
return (
<div className={classNames('modal-header', className)} {...rest}>
{onClose && <But... |
src/init_app.js | bobenheimer/react-groundwork | import React from 'react';
import {render} from 'react-dom';
import App from './components/app';
import './global_style/common.scss';
render(
<App />,
document.getElementById('app')
);
|
src/components/client/HomePage.js | PtitNoony/abretonworkshop | 'use strict';
import React from 'react';
import { Link } from 'react-router-dom';
import PagePreview from './PagePreview';
export const HomePage = () => (
<div className="reactPageContainer">
<div className="abw_homePage">
<div className="abw_homeLeft">
... |
examples/real-world/index.js | hainuo/redux | import 'babel-core/polyfill';
import React from 'react';
import Root from './containers/Root';
import BrowserHistory from 'react-router/lib/BrowserHistory';
React.render(
<Root history={new BrowserHistory()} />,
document.getElementById('root')
);
|
src/components/Character/Box.js | ryanabragg/VanguardLARP | import React from 'react';
import PropTypes from 'prop-types';
class Box extends React.Component {
constructor(props) {
super(props);
}
render() {
const rest = Object.assign({}, this.props);
delete rest.label;
delete rest.width;
delete rest.factor;
delete rest.color;
return (
<... |
website/src/components/Status.js | DTU-R3/ArloBot | import React from 'react';
import { Collapse, Card, CardBody, CardHeader, CardTitle } from 'reactstrap';
import boolToYesNo from '../utils/boolToYesNo';
import boolToOnOff from '../utils/boolToOnOff';
import './Status.css';
const Status = (props) => {
let laptopBatteryClass = 'btn btn-success';
if (props.laptopBat... |
packages/strapi-plugin-content-manager/admin/src/components/Table/index.js | lucusteen/strap | /**
*
* Table
*
*/
import React from 'react';
import TableHeader from '../TableHeader';
import TableRow from '../TableRow';
import styles from './styles.scss';
class Table extends React.Component {
render() {
const tableRows = this.props.records.map((record, key) => {
const destination = `${this.props.r... |
es/components/content.js | dearkaran/react-planner | import React from 'react';
import PropTypes from 'prop-types';
import Viewer2D from './viewer2d/viewer2d';
import Viewer3D from './viewer3d/viewer3d';
import Viewer3DFirstPerson from './viewer3d/viewer3d-first-person';
import CatalogList from './catalog-view/catalog-list';
import ProjectConfigurator from './configurato... |
test/test_helper.js | vamsikoduri/udemy_next_level_redux | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
src/native/auth/Email.js | TheoMer/este | // @flow
import type { State } from '../../common/types';
import React from 'react';
import buttonsMessages from '../../common/app/buttonsMessages';
import emailMessages from '../../common/auth/emailMessages';
import { Box, Button, Heading, Text, TextInput } from '../../common/components';
import { compose } from 'ramd... |
smsgw/static/js/applications/settings.react.js | VojtechBartos/smsgw | 'use strict';
import React from 'react';
import Immutable from 'immutable';
import {flash} from '../flashMessages/actions';
import {update} from './actions';
import Component from '../components/component.react';
import FlashMessages from '../components/flashmessages.react';
import Form from './form.react';
class Set... |
app/components/ListItem/index.js | dreamweaver1231/react-project | import React from 'react';
import PropTypes from 'prop-types';
import Item from './Item';
import Wrapper from './Wrapper';
function ListItem({ item }) {
return (
<Wrapper>
<Item>
{item}
</Item>
</Wrapper>
);
}
ListItem.propTypes = {
item: PropTypes.node,
};
export default ListItem;... |
docs/src/app/pages/components/MultiSelect/ExampleMultiTypeaheadSearch.js | GetAmbassador/react-ions | import React from 'react'
import MultiSelect from 'react-ions/lib/components/MultiSelect/MultiSelect'
import Typeahead from 'react-ions/lib/components/Typeahead/Typeahead'
import style from './style.scss'
import options from '../Typeahead/CountryList'
class ExampleMultiTypeaheadSearch extends React.Component {
const... |
actor-apps/app-web/src/app/components/activity/UserProfile.react.js | ketoo/actor-platform | import React from 'react';
import { PureRenderMixin } from 'react/addons';
import ContactActionCreators from 'actions/ContactActionCreators';
import DialogActionCreators from 'actions/DialogActionCreators';
import PeerStore from 'stores/PeerStore';
import DialogStore from 'stores/DialogStore';
import AvatarItem from... |
examples/src/components/SelectedValuesField.js | brad82/react-select | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var SelectedValuesField = React.createClass({
displayName: 'SelectedValuesField',
propTypes: {
allowCreate: React.PropTy... |
src/svg-icons/image/crop-7-5.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCrop75 = (props) => (
<SvgIcon {...props}>
<path d="M19 7H5c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zm0 8H5V9h14v6z"/>
</SvgIcon>
);
ImageCrop75 = pure(ImageCrop75);
ImageCrop75... |
src/js/live.js | pk8est/dot | import electron from 'electron';
import React from 'react';
import ReactDOM from 'react-dom';
import LiveManagerPage from './pages/LiveManagerPage';
React.render(
<LiveManagerPage />,
document.getElementById('app')
);
|
app/javascript/mastodon/features/hashtag_timeline/index.js | foozmeat/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import {
refreshHashtagTimeline,
ex... |
examples/custom-routing/src/containers/Blog.js | calvinrbnspiess/react-static | /* eslint-disable react/no-unescaped-entities */
import React from 'react'
import { getRouteProps, Switch, Route, Link } from 'react-static'
//
import Post from './Post'
export default getRouteProps(({ match, posts }) => (
<div>
<Switch>
<Route
path={match.url}
exact
render={() => (... |
js/AppNavigator.js | aditya-simplecrm/iosReactAppNoresha |
import React, { Component } from 'react';
import { StatusBar } from 'react-native';
import { connect } from 'react-redux';
import { Drawer } from 'native-base';
import { Router, Scene } from 'react-native-router-flux';
import { closeDrawer } from './actions/drawer';
import Login from './components/login/';
import Ho... |
tests/react/useMutationEffect_hook.js | AgentME/flow | // @flow
import React from 'react';
{
React.useMutationEffect(); // Error: function requires another argument.
}
{
// Ok variants without cleanup functions
React.useMutationEffect(() => {});
React.useMutationEffect(() => {}, []);
React.useMutationEffect(() => {}, [1, 2, 3]);
// Ok variants with cleanup ... |
site/components/grouping/index.js | JamesHageman/redux-datagrid | import React from 'react';
import CodeTabs from '../util/code-tabs';
import GroupingTable from './table';
import code from '!!raw!./table';
import people from '../../mock/people';
const BasicTableExample = () => <div>
<h2>Grouping Table (WIP)</h2>
<p>
This example uses the <code>grouping</code> object to sepe... |
src/components/Result.js | Mukesh23singh/EmailFinderNew | import React from 'react';
import { connect } from 'react-redux';
import agent from '../agent';
const mapStateToProps = state => ({
...state.emails
});
const mapDispatchToProps = dispatch => ({
get: payload => dispatch({type: 'Emails', payload})
});
class Result extends React.Component {
componentWillMount() ... |
src/svg-icons/content/remove-circle.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentRemoveCircle = (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 2zm5 11H7v-2h10v2z"/>
</SvgIcon>
);
ContentRemoveCircle = pure(ContentRemoveCir... |
src/svg-icons/action/settings-phone.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsPhone = (props) => (
<SvgIcon {...props}>
<path d="M13 9h-2v2h2V9zm4 0h-2v2h2V9zm3 6.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-... |
public/js/components/activityfeed/Comment.react.js | rajikaimal/Coupley | import React from 'react';
import Card from 'material-ui/lib/card/card';
import ListItem from 'material-ui/lib/lists/list-item';
import List from 'material-ui/lib/lists/list';
import Divider from 'material-ui/lib/divider';
import Avatar from 'material-ui/lib/avatar';
var Comment = React.createClass({
render: fun... |
examples/create-react-app/src/index.js | lgollut/material-ui | import React from 'react';
import ReactDOM from 'react-dom';
import CssBaseline from '@material-ui/core/CssBaseline';
import { ThemeProvider } from '@material-ui/core/styles';
import App from './App';
import theme from './theme';
ReactDOM.render(
<ThemeProvider theme={theme}>
{/* CssBaseline kickstart an elegant... |
src/components/GlobalSearchContainer.js | FiviumAustralia/RNSH-Pilot | import React, { Component } from 'react';
import { findDOMNode } from 'react-dom';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { actions as uiActions } from 'redux/modules/ui';
import { browserHistory } from 'react-router';
import GlobalSearch from 'components/GlobalSearch'... |
src/js/components/icons/base/Article.js | odedre/grommet-final | /**
* @description Article SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @pr... |
docs/src/app/components/pages/components/TextField/Page.js | ichiohta/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import textFieldReadmeText from './README';
import TextFieldExampleSimple from '... |
docs/src/app/components/pages/components/IconButton/ExampleTooltip.js | pancho111203/material-ui | import React from 'react';
import IconButton from 'material-ui/IconButton';
const IconButtonExampleTooltip = () => (
<div>
<IconButton
iconClassName="muidocs-icon-custom-github" tooltip="bottom-right"
tooltipPosition="bottom-right"
/>
<IconButton
iconClassName="muidocs-icon-custom-githu... |
src/components/icon/icon.js | n7best/react-weui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from '../../utils/classnames';
import deprecationWarning from '../../utils/deprecationWarning';
const deprecateValue = {
'safe_success': 'safe-success',
'safe_warn': 'safe-warn',
'success_circle': 'success-circle',
'succes... |
client/pages/examples/threejs/drawing-axes/elements/stats.js | fdesjardins/webgl | import React from 'react'
const Stats = ({ getPosition, getRotation }) => {
const [pos, setPos] = React.useState({})
const [rot, setRot] = React.useState({ x: 0, y: 0, z: 0 })
React.useEffect(() => {
const timer = setTimeout(() => {
setPos(getPosition())
setRot(getRotation())
}, 100)
ret... |
src/esm/components/graphics/icons/facebook-icon/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["color", "title"];
import React from 'react';
import PropTypes from 'prop-types';
export var FacebookIcon = function FacebookIcon(_ref) {
var color =... |
docs/app/Examples/modules/Dropdown/States/index.js | aabustamante/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const DropdownStatesExamples = () => (
<ExampleSection title='States'>
<ComponentExample
title='Loading'
description=... |
src/components/Button/Button.js | akikoo/react-ui-style-guide | require('./Button.scss');
import React from 'react';
import ReactDOM from 'react-dom';
import classNames from 'classnames';
class Button extends React.Component {
constructor(props) {
super(props);
}
render() {
let classes = classNames(
'button',
this.props.modifiers
);
return (
... |
node_modules/react-bootstrap/es/Modal.js | CallumRocks/ReduxSimpleStarter | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from... |
src/routes/login/Login.js | zuban/edhunter | /**
* 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-... |
blueprints/smart/files/__root__/containers/__name__.js | jenyckee/midi-redux | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
type Props = {
}
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render() {
return (
<div></div>
)
}
}
const mapStateToProps = (state) => {
return {}
}
const ... |
components/counter.js | sgmap/inspire | import React from 'react'
import PropTypes from 'prop-types'
const Counter = ({value, label, unit, size, color, title}) => (
<div>
{title && <h3>{title}</h3>}
<div className={`value ${color}`}>
{value || 0}{unit && <span className='unit'>{unit}</span>}
</div>
{label && <div className={size}>{la... |
src/ModalTitle.js | kwnccc/react-bootstrap | import React from 'react';
import classNames from 'classnames';
class ModalTitle extends React.Component {
render() {
return (
<h4
{...this.props}
className={classNames(this.props.className, this.props.modalClassName)}>
{ this.props.children }
</h4>
);
}
}
ModalTitle.pr... |
packages/material-ui-icons/src/SignalCellular3Bar.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path fillOpacity=".3" d="M2 22h20V2z" /><path d="M17 7L2 22h15z" /></g>
, 'SignalCellular3Bar');
|
common/views/Dashboard/Dashboard.js | sauleddy/HomePortal | import React, { Component } from 'react';
import { Bar, Line } from 'react-chartjs-2';
import { Dropdown, DropdownMenu, DropdownItem, Progress } from 'reactstrap';
const brandPrimary = '#20a8d8';
const brandSuccess = '#4dbd74';
const brandInfo = '#63c2de';
const brandDanger = '#f86c6b';
// Card Chart 1
const ... |
src/svg-icons/av/repeat.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvRepeat = (props) => (
<SvgIcon {...props}>
<path d="M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z"/>
</SvgIcon>
);
AvRepeat = pure(AvRepeat);
AvRepeat.displayName = 'AvRepeat';
AvRepeat.mu... |
src/app/components/VolumeSlider.js | skratchdot/audio-editor | import React, { Component } from 'react';
import { Row, Col } from 'react-bootstrap';
import { connect } from 'react-redux';
import { setMuted } from '../actions/muted';
import { setVolume } from '../actions/volume';
import MuteButton from '../components/MuteButton';
import Range from '../components/Range';
class Volu... |
wrappers/toml.js | WanderlandTravelers/wanderlandtravelers.github.io | import React from 'react'
import toml from 'toml-js'
import Helmet from 'react-helmet'
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
route: React.PropTypes.object,
}
},
render () {
const data = this.props.route.page.data
return (
<div>
... |
client/app/components/discarded.js | dat2/hanabi-clone-web | import React from 'react'
import Card from './card'
import Stack from './stack'
class Discarded extends React.Component {
render() {
let { discarded } = this.props
return (
<div>
<p> Discard pile </p>
<Stack cards={discarded} hover showColour={false}/>
</div>
)
}
}
export ... |
examples/custom-server-nodemon/pages/index.js | BlancheXu/test | import React from 'react'
import Link from 'next/link'
export default () => (
<ul>
<li>
<Link href='/b' as='/a'>
<a>a</a>
</Link>
</li>
<li>
<Link href='/a' as='/b'>
<a>b</a>
</Link>
</li>
</ul>
)
|
src/components/RadioButton/RadioButton-story.js | jzhang300/carbon-components-react | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import RadioButton from '../RadioButton';
const radioProps = {
className: 'some-class',
};
storiesOf('RadioButton', module)
.addWithInfo(
'enabled',
`
Radio buttons are used wh... |
src/interface/report/FightSelectionPanel.js | yajinni/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import Panel from 'interface/Panel';
import './FightSelection.scss';
import FightSelectionPanelList from './FightSelectionPanelList';
const FightSelectionPanel = props => {
const { report, killsOnly } = props;
return (
<>
<Panel pad={false... |
App/node_modules/react-navigation/lib-rn/navigators/createNavigator.js | Dagers/React-Native-Differential-Updater | import React from 'react';
var babelPluginFlowReactPropTypes_proptype_NavigationRouteConfigMap = require('../TypeDefinition').babelPluginFlowReactPropTypes_proptype_NavigationRouteConfigMap || require('prop-types').any;
var babelPluginFlowReactPropTypes_proptype_NavigationNavigatorProps = require('../TypeDefinition')... |
src/components/ClientLogos/ClientLogos.stories.js | Galernaya20/galernaya20.com | //@flow
import React from 'react'
import {storiesOf} from '@storybook/react'
import {ClientLogos} from './ClientLogos.js'
import studioData from '../pages/Studio/fixture'
const {logos} = studioData
storiesOf('ClientLogos', module).add('ClientLogos', () => <ClientLogos logos={logos} />)
|
client/src/bundles/ContentReviewForm.js | silverstripe/silverstripe-contentreview | /* global window */
import i18n from 'i18n';
import jQuery from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import { loadComponent } from 'lib/Injector';
const FormBuilderModal = loadComponent('FormBuilderModal');
/**
* "Content due for review" modal popup. See AddToCampaignForm.js in
* s... |
frontend/app/containers/LanguageProvider/index.js | jirwin/ipfs-archive | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createSelector } from 'reselect'... |
src/frame/rePCUI/tabs/base-tabs/Tabs.js | gejialun8888/shop-react | import React from 'react';
import PropTypes from 'prop-types';
import KeyCode from './KeyCode';
import TabPane from './TabPane';
import classnames from 'classnames';
import { getDataAttr } from './utils';
function noop() {
}
function getDefaultActiveKey(props) {
let activeKey;
React.Children.forEach(props.childre... |
src/Menu/examples.js | narqo/react-islands | import React from 'react';
import App from '../App';
import Menu from './index.js';
import Item from '../Item';
import Group from '../Group';
class MenuExample extends React.Component {
constructor(props) {
super(props);
// FIXME: Сейчас в конструкторе Menu value обрабатывается.
// Напр... |
server/sonar-web/src/main/js/components/shared/severity-helper.js | vamsirajendra/sonarqube | import React from 'react';
import SeverityIcon from './severity-icon';
export default React.createClass({
render() {
if (!this.props.severity) {
return null;
}
return <span>
<span className="spacer-right">
<SeverityIcon severity={this.props.severity}/>
</span>
{window.t('s... |
vendor/htmlburger/carbon-fields/assets/js/fields/components/rich-text/editor.js | FolsomCreative/storynav | /**
* The external dependencies.
*/
import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import cx from 'classnames';
import observeResize from 'observe-resize';
import { debounce } from 'lodash';
class RichTextEditor extends React.Component {
/**
* Lifecycle hook.
*
... |
app/javascript/flavours/glitch/features/direct_timeline/components/column_settings.js | Kirishima21/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import SettingText from '../../../components/setting_text';
const messages = defineMessages({
filter_regex: { id: 'home... |
src/common/ItemLink.js | enragednuke/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import ITEMS from './ITEMS';
import getItemQualityLabel from './getItemQualityLabel';
import ItemIcon from './ItemIcon';
const ItemLink = ({ id, children, details, quality, icon }) => {
const queryString = [
`item=${id}`,
];
if (details) {
i... |
src/Bars.js | mohebifar/react-native-loader | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Animated } from 'react-native';
import { Surface } from '@react-native-community/art';
import Bar from './animated/Bar';
export default class Bubbles extends Component {
static propTypes = {
size: PropTypes.number,
color:... |
js/src/views/Status/components/ScrollTopButton/ScrollTopButton.js | pdaian/parity | // Copyright 2015, 2016 Ethcore (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.... |
src/examples/react/hello.js | vinogradov/spa-starter-kit | import React from 'react';
import PropTypes from 'prop-types';
import logo from './logo.svg';
export class Hello extends React.Component {
constructor(props) {
super(props);
this.state = {toggle: true};
// We generally recommend binding in the constructor or using the property initializer syntax,
//... |
app/components/CurrencyConverter.js | schwuk/fx_u_like | import React from 'react';
import DateChooser from '../containers/DateChooser';
import Currency from './Currency';
import Button from '../containers/Button';
// CurrencyConverter
// - DateChooser
// - Currency (From)
// - Amount
// - CurrencyChooser
// - Currency (To)
// - Amount (Disabled)
// - CurrencyChooser
... |
app/jsx/files/FolderChild.js | djbender/canvas-lms | /*
* Copyright (C) 2015 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/scenes/home/resetPassword/setPassword/setPassword.js | NestorSegura/operationcode_frontend | import React, { Component } from 'react';
import axios from 'axios';
import { Redirect } from 'react-router-dom';
import PropTypes from 'prop-types';
import Form from 'shared/components/form/form';
import FormPassword from 'shared/components/form/formPassword/formPassword';
import FormButton from 'shared/components/for... |
js/redux/learn-redux/node_modules/react-router/es6/IndexRoute.js | austinjalexander/sandbox | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { component, components, falsy } from './InternalPropTypes';
var func = React.PropTypes.func;
/**
* An <IndexRoute> i... |
docs/src/pages/index.js | ridixcr/nuclear-js | import React from 'react'
import Wrapper from '../layouts/wrapper'
import ItemFilterExample from '../components/item-filter-example'
import UsageExample from '../components/usage-example'
import Nav from '../components/nav'
export default React.createClass({
render() {
return <Wrapper>
<Nav />
<div c... |
project-message-board/src/component/dashboard/view/dashboardComponent.js | renhongl/Summary |
import React from 'react';
export const DashboardComponent = ({userName}) => {
return (
<div>welcome {userName}</div>
)
} |
src/Components/LatestArticles.js | Zangriev/SampleApplication | import React, { Component } from 'react';
import ArticleStore from '../Stores/Article';
import { Link } from 'react-router'
import dateFormat from 'dateformat';
const articleCount = 5;
let getState = (props) => {
return {
articles: ArticleStore.getArticles(articleCount)
};
};
class LatestArticles extends Com... |
examples/static-data/app.js | xujihui1985/react-autocomplete | import React from 'react'
import { getStates, matchStateToTerm, sortStates, styles } from '../utils'
import Autocomplete from '../../lib/index'
let App = React.createClass({
render () {
return (
<div>
<h1>Basic Example with Static Data</h1>
<p>
When using static data, you use the... |
src/component/info.js | rwarr/futaba-db | import React, { Component } from 'react';
import './app.css';
import { BrowserRouter as Router, Route, Link } from 'react-router-dom';
import { getPersonas } from '../utils';
class info extends Component {
render() {
let fullPersonaList = getPersonas();
let urlPersona = this.props.match.params.name;... |
docs/app/Examples/collections/Breadcrumb/Content/BreadcrumbExampleDivider.js | clemensw/stardust | import React from 'react'
import { Breadcrumb } from 'semantic-ui-react'
const BreadcrumbExampleDivider = () => (
<Breadcrumb>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider>/</Breadcrumb.Divider>
<Breadcrumb.Section link>Registration</Breadcrumb.Section>
<Breadcrumb.Divider>/... |
client/src/index.js | jferrettiboke/react-auth-app-example | import React from 'react';
import ReactDOM from 'react-dom';
import { createStore, combineReducers, applyMiddleware, compose } from 'redux';
import ApolloClient, { createNetworkInterface } from 'apollo-client';
import { ApolloProvider } from 'react-apollo';
import { Router, Route, IndexRoute, browserHistory } from 'rea... |
packages/material-ui-icons/src/HdrOn.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M21 11.5v-1c0-.8-.7-1.5-1.5-1.5H16v6h1.5v-2h1.1l.9 2H21l-.9-2.1c.5-.3.9-.8.9-1.4zm-1.5 0h-2v-1h2v1zm-13-.5h-2V9H3v6h1.5v-2.5h2V15H8V9H6.5v2zM13 9H9.5v6H13c.8 0 1.5-.7 1.5-1.5v-3c0-.8-.7-1.5-1.5-1.5... |
packages/lore-hook-dialogs-material-ui/src/blueprints/create/Optimistic/index.js | lore/lore-forms | import React from 'react';
import createReactClass from 'create-react-class';
import Optimistic from './Optimistic';
export default createReactClass({
render: function() {
const { modelName } = this.props;
const {
schema,
fieldMap,
actionMap,
data,
validators,
fields,
... |
example/src/screens/NavigationTypes.js | shahen94/react-native-navigation | import React from 'react';
import {StyleSheet, ScrollView} from 'react-native';
import Row from '../components/Row';
class NavigationTypes extends React.Component {
constructor(props) {
super(props);
this.props.navigator.setOnNavigatorEvent(this.onNavigatorEvent.bind(this));
}
onNavigatorEvent(event) {... |
app/components/EventList/EventListItems.js | MarkShakespeare/GoForOne | import React from 'react';
import EventList from '../EventList';
import auth from '../../config';
import pages from '../../core/pages'
import {
getEvents,
getPage,
getPageEvents,
filterPageTodaysEvents,
sortEventsByAttending
} from '../../core/events/events';
const accessToken = auth.facebook... |
frontend/component/Header.js | caiklaus/first-node-project | import React from 'react';
import {Link} from 'react-router';
import {loginUser, logout, notificationCount} from '../lib/client';
export default class Header extends React.Component {
constructor(props) {
super(props);
this.state = {};
}
componentDidMount() {
loginUser()
.then(user => this.se... |
src/js/components/icons/base/FormAttachment.js | odedre/grommet-final | /**
* @description FormAttachment SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.... |
src/utils/Diff.js | cynicaldevil/gitrobotic | import React from 'react';
//used to render diff of each file
class Diff extends React.Component {
constructor(props) {
super(props);
}
render = () => {
// TODO: Ensure that each file's diff hunks are in the correct
// order
let diffLines = [];
let posDiffs = [];
let negDiffs = [];
... |
docs/src/components/UseButton.js | HsuTing/cat-components | 'use strict';
import React from 'react';
import radium from 'radium';
import Button from 'cat-components/lib/button';
@radium
export default class UseButton extends React.Component {
render() {
return (
<div>
<Button>button</Button>
<Button link='https://github.com/HsuTing/cat-components'... |
app/javascript/mastodon/features/compose/components/upload_button.js | PlantsNetwork/mastodon | import React from 'react';
import IconButton from '../../../components/icon_button';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 're... |
src/components/Googlemap/Googlemap.js | dingchaoyan1983/ReactRedux | import React from 'react';
import ReactDOM from 'react-dom';
import GoogleMapConst from './constants';
import 'js-marker-clusterer';
import _get from 'lodash/object/get';
import mapPin from './map-pin.svg';
import dot from './map-red-dot.svg';
import dot2 from './map-red-dot-2.svg';
import dot3 from './map-red-dot-3.sv... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.