path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
client/src/components/common/loadingIndicator.js | joejknowles/Open-Up | import React from 'react';
export default () => {
const spokes = [];
for (let i = 0; i <= 11; i++) {
spokes.push(
{ rectProps: {
key: i,
transform: `rotate(${ i * 30 } 50 50) translate(0 -30)`
},
animateProps: { begin: `${ i / 24.0 }s` }
});
}
return (
<s... |
packages/mineral-ui-icons/src/IconTimer.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconTimer(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}>
... |
src/public/js/blogFilters.js | bbondy/brianbondy.node | import React from 'react'
import * as Immutable from 'immutable'
import Tag from './tag.js'
import YearTag from './yearTag.js'
import { fetchTags } from './client.js'
export default class BlogFilters extends React.Component {
constructor () {
super()
this.state = {
tags: []
}
}
componentDidMou... |
static/src/components/AuthenticatedComponent.js | tferreira/piggydime | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { browserHistory } from 'react-router'
import * as actionCreators from '../actions/auth'
function mapStateToProps(state) {
return {
token: state.auth.token,
userName: state.auth.userName,
isA... |
src/svg-icons/editor/wrap-text.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorWrapText = (props) => (
<SvgIcon {...props}>
<path d="M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3 3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"/>
</SvgIcon>
);
EditorWra... |
src/Calendar.js | LabPulse/walmart-labs | import React, { Component } from 'react';
import axios from 'axios';
import $ from 'jquery';
import 'moment/min/moment.min.js';
import 'fullcalendar/dist/fullcalendar.css';
import 'fullcalendar/dist/fullcalendar.js';
class Calendar extends Component {
componentDidMount(){
const { calendar } = this.refs;
... |
src/svg-icons/maps/restaurant-menu.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsRestaurantMenu = (props) => (
<SvgIcon {...props}>
<path d="M8.1 13.34l2.83-2.83L3.91 3.5c-1.56 1.56-1.56 4.09 0 5.66l4.19 4.18zm6.78-1.81c1.53.71 3.68.21 5.27-1.38 1.91-1.91 2.28-4.65.81-6.12-1.46-1.46-4.2... |
node_modules/react-router/es/IndexRedirect.js | Right-Men/Ironman | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import Redirect from './Redirect';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.string;
var object = _React$PropTypes.object;
/**
* An <IndexRedir... |
newclient/scripts/components/user/revise/question/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program 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, either version 3 of the
Lic... |
client/src/components/writingdesk/AddSign.js | happyspiritgames/storytime-service | import React from 'react'
import PropTypes from 'prop-types'
const AddSign = (props) => {
return (
<div>Add Sign component</div>
)
}
AddSign.propTypes = {
addSign: PropTypes.func
}
// TODO might go this route but have to keep state somewhere else
|
docs/app/Examples/collections/Message/States/MessageExampleHidden.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Message } from 'semantic-ui-react'
const MessageExampleHidden = () => (
<Message hidden>
You can't see me
</Message>
)
export default MessageExampleHidden
|
jenkins-design-language/src/js/components/material-ui/svg-icons/image/landscape.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageLandscape = (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>
);
ImageLandscape.displayName = 'ImageLandscape';
ImageLandscape.muiName = 'SvgIcon';
export default... |
src/modules/notFound/NotFoundPage.js | nattatorn-dev/currency-exchange | import React from 'react'
function NotFoundPage () {
return (
<div>
<h1>Doh! 404!</h1>
<p>These are <em>not</em> the droids you are looking for!</p>
</div>
)
}
export default NotFoundPage
|
src/components/header/Header.js | numb86/image-editor | // @flow
import React from 'react';
import ClassNames from 'classnames';
import ActiveActionLayerState from './ActiveActionLayerState';
import SketchManage from './SketchManage';
import ResizeAndColorToneManage from './ResizeAndColorToneManage';
import DisplayManage from './DisplayManage';
import {DRAW_LINE, ERASER} ... |
src/client/components/NotFound/index.js | mweslander/veery | import React from 'react';
/*
Not Found
*/
function NotFound() {
return (
<div className="content container">
<h1>Not Found!</h1>
</div>
);
}
export default NotFound;
|
frontend/src/SongInfo.js | zachwalton/truebpm | import React from 'react';
export default class SongInfo extends React.Component {
renderStops() {
return this.props.songInfo.result.stops ? (
<div>
<strong>Stops: {this.props.songInfo.result.stops}</strong>
<br /><br />
</div>
) : null;
}
renderSpeedChanges() {
return thi... |
js/components/Friend.js | ChrisMLee/relay-mongoose-plair | import Relay from 'react-relay';
import React from 'react';
class Friend extends React.Component {
render() {
let friend = this.props.friend;
let friendUrl = '?user=' + friend.id;
return (
<li>
<a href={friendUrl}>{friend.name} {friend.surname} ({friend.age}) </a>
</li>
);
}
}
... |
src/NavItem.js | JimiHFord/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import SafeAnchor from './SafeAnchor';
const NavItem = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
linkId: React.PropTypes.string,
onSelect: React.PropTypes.func,
active: React... |
src/components/MaintainBusinessRules/AddBusinessRule.js | RegOpz/RegOpzWebApp | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { connect } from 'react-redux';
import { bindActionCreators, dispatch } from 'redux';
import DatePicker from 'react-datepicker';
import { Button } from 'react-bootstrap';
import {
Link,
hashHistory
} from 'react-router';
import { Wit... |
src/components/LinkList.js | kevinwucodes/gmail-quick-links | import React from 'react'
import Link from './Link'
const style = {
small: {
fontSize: '80%'
},
quick: {
cursor: 'auto',
position: 'relative',
overflow: 'hidden',
verticalAlign: 'middle',
outline: 'none',
fontSize: '100%'
},
list: {
paddingLeft: 30
},
titleContainer: {
... |
src/components/modal_dialog.js | lizarraldeignacio/personal-website | import React, { Component } from 'react';
import { reduxForm } from 'redux-form';
import { compose } from 'redux';
import { connect } from 'react-redux';
import FieldGroup from './fieldgroup';
import _ from 'lodash';
import {
firebaseConnect,
pathToJS
} from 'react-redux-firebase';
/**
ModalDialog component
TO... |
src/controls/TextAlign/Component/index.js | michalko/draft-wyswig | /* @flow */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Option from '../../../components/Option';
import { Dropdown, DropdownOption } from '../../../components/Dropdown';
import { getFirstIcon } from '../../../utils/toolbar';
import './styl... |
node_modules/react-router/es6/Redirect.js | Technaesthetic/ua-tools | import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { formatPattern } from './PatternUtils';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.st... |
src/svg-icons/navigation/arrow-drop-up.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowDropUp = (props) => (
<SvgIcon {...props}>
<path d="M7 14l5-5 5 5z"/>
</SvgIcon>
);
NavigationArrowDropUp = pure(NavigationArrowDropUp);
NavigationArrowDropUp.displayName = 'NavigationArrowDrop... |
src/components/Message.js | wind85/waterandboards | import React from 'react'
import PropTypes from 'prop-types'
import ReactDOM from 'react-dom'
import Dialog from 'material-ui/Dialog'
import FlatButton from 'material-ui/FlatButton'
import RaisedButton from 'material-ui/RaisedButton'
class Message extends React.Component{
render(){
const actions = [
<Fla... |
app/javascript/mastodon/features/direct_timeline/components/conversations_list.js | im-in-space/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ConversationContainer from '../containers/conversation_container';
import ScrollableList from '../../../components/scroll... |
Sources/embeddedwebserver/resources/assets/js/researcher/components/NoiseManagementTab.js | nihospr01/OpenSpeechPlatform-UCSD | import React, { Component } from 'react';
export class NoiseManagementTab extends Component {
transmit() {
const { noiseManagement, spectralSubtractionParameter } = this.props;
fetch('/api/noise', {
body: JSON.stringify({
noise_estimation_type: noiseManagement,
spectral_subtraction_par... |
roguelike-dungeon-crawler-game/src/Header.js | mstoyanovca/front-end | import React, { Component } from 'react';
import './css/Header.css';
import { Button } from 'react-bootstrap';
export default class Header extends Component {
constructor(props) {
super(props);
this.state = {dark: this.props.dark};
this.toggleDarkness = this.toggleDarkness.bind(this);
}
... |
App.js | stevenctl/tweebot-ui | import React from 'react';
import Layout from './containers/Layout';
import Landing from './components/Landing';
import Tutorial1 from './components/tutorial/Tutorial1';
import Tutorial2 from './components/tutorial/Tutorial2';
import Tutorial3 from './components/tutorial/Tutorial3';
import { Router, Route, IndexR... |
examples/todomvc/containers/Root.js | kolodny/redux | import React, { Component } from 'react';
import TodoApp from './TodoApp';
import { createStore, combineReducers } from 'redux';
import { Provider } from 'react-redux';
import rootReducer from '../reducers';
const store = createStore(rootReducer);
export default class Root extends Component {
render() {
return ... |
docs/src/app/components/pages/customization/StylesOverridingCssExample.js | pancho111203/material-ui | import React from 'react';
import Checkbox from 'material-ui/Checkbox';
const StylesOverridingCssExample = () => (
<Checkbox
name="StylesOverridingCssExample"
label="Checked the mail"
className="styles-overriding-css-example"
/>
);
export default StylesOverridingCssExample;
|
src/DisplayDatas.js | ben196888/fuzz | import React, { Component } from 'react';
import genTeamTuples from './genTeamTuples';
import getCombinations from './getCombinations';
import { getRSSelectionList, getSSSelectionList } from './getSelectionList';
import mapSelections from './mapSelections';
const TEAM_TUPLES = genTeamTuples();
const TEAM_TUPLES_SIZE =... |
src/svg-icons/notification/system-update.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSystemUpdate = (props) => (
<SvgIcon {...props}>
<path d="M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14zm-1-6h-3V8h-2v5H8l4 4 4-4z"/>
</Sv... |
src/routes/main/invitation/new/New.js | labzero/lunch | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import Button from 'react-bootstrap/lib/Button';
import Col from 'react-bootstrap/lib/Col';
import ControlLabel from 'react-bootstrap/lib/ControlLabel';
import FormControl from ... |
app/javascript/mastodon/components/hashtag.js | glitch-soc/mastodon | // @ts-check
import React from 'react';
import { Sparklines, SparklinesCurve } from 'react-sparklines';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Permalink from './permalink';
import ShortNumber from 'mastodon/co... |
app/components/Img/index.js | nimzco/takemyidea-ui | /**
*
* Img.react.js
*
* Renders an image, enforcing the usage of the alt="" tag
*/
import React from 'react';
function Img(props) {
return (
<img className={props.className} src={props.src} alt={props.alt} />
);
}
// We require the use of src and alt, only enforced by react in dev mode
Img.propTypes = ... |
src/components/StyledPaymentMethodChooser.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import StyledSelect from './StyledSelect';
import { paymentMethodLabelWithIcon } from '../lib/payment_method_label';
import withIntl from '../lib/withIntl';
const paymentMethodsToOptions = paymentMethods => {
return paymentMethods.reduce((options, pm) =... |
admin/client/views/item.js | efernandesng/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import Columns from '../columns';
import Lists from '../stores/Lists';
import CreateForm from '../components/CreateForm';
import EditForm from '../components/EditForm';
import EditFormHeader from '../components/EditFormHeader';
import FlashMessages from '../c... |
app/component/RankList.js | kswOok/rankList | /**
* Created by kswook on 18/02/2017.
*/
import React from 'react';
import '../douguo.js';
import '../RankList.css';
import arrowRight from '../ic_arrow_right.png';
import userFirst from '../userFirst.png';
import userSecond from '../userSecond.png';
import userThird from '../userThird.png';
export default class Ra... |
src/svg-icons/image/crop-rotate.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropRotate = (props) => (
<SvgIcon {...props}>
<path d="M7.47 21.49C4.2 19.93 1.86 16.76 1.5 13H0c.51 6.16 5.66 11 11.95 11 .23 0 .44-.02.66-.03L8.8 20.15l-1.33 1.34zM12.05 0c-.23 0-.44.02-.66.04l3.81 3.81... |
webApp/src/Components/BroadcastPlayedEntry.js | s-law/silent-disco | import React from 'react';
// MATERIAL DESIGN
import ListItem from '../../node_modules/material-ui/lib/lists/list-item';
import Divider from '../../node_modules/material-ui/lib/divider';
import Avatar from '../../node_modules/material-ui/lib/avatar';
class BroadcastPlayedEntry extends React.Component {
render() {
... |
src/svg-icons/image/add-to-photos.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageAddToPhotos = (props) => (
<SvgIcon {...props}>
<path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9h-4v4h-2v-4H9V9h4V5h2v4h4v2z"/>
... |
src/containers/DevTools/DevTools.js | sebastiandeutsch/react-redux-less-mocha-chai | import React from 'react';
// Exported from redux-devtools
import { createDevTools } from 'redux-devtools';
// Monitors are separate packages, and you can make a custom one
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
// createDevTools takes a monitor an... |
src/icons/Information.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class Information extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<polygon points="288,448 288,192 192,192 192,208 224,208 224,448 192,448 192,464 320,464 320,448 "></polygon>
<path d="... |
app/javascript/mastodon/containers/domain_container.js | salvadorpla/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { blockDomain, unblockDomain } from '../actions/domain_blocks';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Domain from '../components/domain';
import { openModal } from '../actions/modal';
const messages = d... |
src/routes/AuthorizeMeshPoint/AuthorizeMeshPointPage.js | OR13/car2go | import React from 'react'
import Page from 'layouts/Page'
import MeshPointAuthorizeTableContainer from 'containers/MeshPointAuthorizeTableContainer'
export default class AuthorizeMeshPointPage extends React.Component {
render() {
return (
<Page renderParticles={true}>
<MeshPointAuthorizeTableConta... |
src/components/chilicornContent.js | akileh/cyclehki | import React from 'react'
import {
View,
Text,
Image,
TouchableOpacity,
Linking
} from 'react-native'
import I18n from 'react-native-i18n'
import chilicorn from '../images/chilicorn.png'
export default function ChilicornContent() {
return (
<View
style={{
flex: 1,
padding: 16,
... |
examples/async-submission/index.js | jaredpalmer/formik | import React from 'react';
import ReactDOM from 'react-dom';
import { Formik, Field, Form } from 'formik';
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
const Example = () => (
<div>
<h1>Sign Up</h1>
<Formik
initialValues={{
firstName: '',
lastName: '',
email: ''... |
classic/src/scenes/wbui/ToolbarExtensionActionContextMenu.js | wavebox/waveboxapp | import PropTypes from 'prop-types'
import React from 'react'
import { Menu, MenuItem, Divider, ListItemText, ListItemIcon } from '@material-ui/core'
import shallowCompare from 'react-addons-shallow-compare'
import SettingsApplicationsIcon from '@material-ui/icons/SettingsApplications'
import ExtensionIcon from '@materi... |
geonode/contrib/monitoring/frontend/src/containers/main.js | MapStory/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { Router, hashHistory } from 'react-router';
import { connect } from 'react-redux';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import { StyleRoot } from 'radium';
import routes from './app';
const mapStateToProps = (state) ... |
src/svg-icons/image/nature.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageNature = (props) => (
<SvgIcon {...props}>
<path d="M13 16.12c3.47-.41 6.17-3.36 6.17-6.95 0-3.87-3.13-7-7-7s-7 3.13-7 7c0 3.47 2.52 6.34 5.83 6.89V20H5v2h14v-2h-6v-3.88z"/>
</SvgIcon>
);
ImageNature = p... |
src/components/Warnings.js | chochinlu/ens-bid-dapp | import React from 'react'
const Warnings = () => (
<div>
<h1>You lose the data of process.env.</h1>
<h1>Please contact adiministor of ens.bid</h1>
</div>
)
export default Warnings;
|
docs/lib/Components/PosterImagePage.js | video-react/video-react | /* eslint react/no-multi-comp: 0, react/prop-types: 0 */
import React from 'react';
import { PrismCode } from 'react-prism';
import { Button } from 'reactstrap';
import Helmet from 'react-helmet';
import PosterImageExample from '../examples/PosterImage';
const PosterImageExampleSource = require('!!raw-loader!../example... |
webapp/src/index.js | jbenet/depviz | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App storage={window.localStorage} />,
document.getElementById('root')
);
|
node_modules/react-bootstrap/es/NavDropdown.js | saltypaul/SnipTodo | 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/account-info/AccountDetailsScreen.js | nashvail/zulip-mobile | /* @flow */
import React, { Component } from 'react';
import { connect } from 'react-redux';
import type { Auth, Actions, UserType } from '../types';
import boundActions from '../boundActions';
import { getAuth, getAccountDetailsUser } from '../selectors';
import { Screen } from '../common';
import AccountDetails from... |
src/routes/home/index.js | macdja38/pvpsite | import React from 'react';
import Home from './Home';
export default {
path: '/',
action({ user }) {
return {
title: 'Home | PvPCraft Discord Bot',
description: 'Home Page',
component: <Home user={user} />,
};
},
};
|
stories/components/molecules/index.js | one-love/storybook | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import Cluster from './cluster';
import Header from './header';
import Host from './host';
import Provision from './provision';
import Service from './service';
import Application from './application';
storiesOf('Molecules', module)
.add('app... |
packages/ringcentral-widgets-docs/src/app/pages/Components/PresenceSettingSection/Demo.js | ringcentral/ringcentral-js-widget | import React from 'react';
// eslint-disable-next-line
import PresenceSettingSection from 'ringcentral-widgets/components/PresenceSettingSection';
const props = {};
props.currentLocale = 'en-US';
props.dndStatus = 'TakeAllCalls';
props.userStatus = 'Available';
props.isCallQueueMember = false;
props.setAvailable = () ... |
src/routes/user/List.js | shaohuawang2015/goldbeans-admin | import React from 'react'
import PropTypes from 'prop-types'
import { Table, Modal } from 'antd'
import styles from './List.less'
import classnames from 'classnames'
import AnimTableBody from '../../components/DataTable/AnimTableBody'
import { DropOption } from 'components'
import { Link } from 'dva/router'
const conf... |
examples/huge-apps/routes/Course/components/Course.js | freeyiyi1993/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 {
static loadProps (params, cb) {
console.log('C... |
src/components/firefox/plain-wordmark/FirefoxPlainWordmark.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './FirefoxPlainWordmark.svg'
/** FirefoxPlainWordmark */
function FirefoxPlainWordmark({ width, height, className }) {
return (
<SVGDeviconInline
className={'Firefox... |
src/index.js | gonardfreeman/moviesDB | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
src/parser/shared/modules/DispelTracker.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import Statistic from 'interface/statistics/Statistic';
import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER';
import SpellLink from 'common/SpellLink';
import SPELLS from 'common/SPELLS';
const debug = false;
class DispelTracker extends... |
src/components/FooterSeparatorList.js | benruehl/gatsby-kruemelkiste | import React from 'react'
class FooterSeparatorList extends React.Component {
render(children) {
var items = [];
for (var i=0; i < this.props.children.length; i++) {
items.push(
this.props.children[i]
);
if (i != this.props.children.length - 1) {
items.push(
... |
js/jqwidgets/demos/react/app/grid/dataprinting/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
class App extends React.Component {
componentDidMount() {
this.refs.myButton.on('click', () => {
l... |
src/components/layout.js | basvandriel/WWW |
import React from 'react';
import { StaticQuery, graphql } from 'gatsby';
import PropTypes from 'prop-types';
import theme from '../theme';
import styled from 'styled-components';
import Head from '@components/head';
import Nav from '@components/nav';
import Footer from '@components/footer';
import '@styles/global.... |
src/components/comment-confirmation.js | nelsongustavo/react-lab | import React from 'react';
export default class CommentConfirmation extends React.Component {
constructor() {
super();
this.state = {
showConfirm: false
};
this._confirmDelete = this._confirmDelete.bind(this);
this._toggleConfirmMessage = this._toggleConfirmMessage.bind(this);
}
rend... |
app/components/App.js | mitel/cerebral-steroids | import React from 'react';
import mixin from 'cerebral/src/mixin';
class App extends React.Component {
getCerebralState() {
return ['inputValue', 'list'];
}
onInputValueSubmit(event) {
event.preventDefault();
if (this.state.inputValue) {
this.signals.inputValueSubmitted();
}
}
changeInp... |
app/components/routes.js | wellsam/nerd | import React from 'react';
import { Route, NotFoundRoute } from 'react-router';
import Index from './index/Index.jsx';
import Signin from './index/Signin.jsx';
import Register from './index/Register.jsx';
import Hello from './index/Hello.jsx';
import Profile from './user/Profile.jsx';
import NotFound from './NotFound.j... |
client/src/components/App.js | ncs-jss/plexus-17 | import 'bootstrap/dist/css/bootstrap.min.css';
import 'bootstrap/dist/js/bootstrap.min.js';
import React, { Component } from 'react';
import { BrowserRouter, Route } from 'react-router-dom';
import { connect } from 'react-redux';
import * as actions from '../actions';
import '../common/css/base.css';
import Header f... |
src/page/sys/account_save.js | xland/ysl_antd | import React, { Component } from 'react';
import { Modal, Form, Input,InputNumber } from 'antd';
import ajax from '../../utils/ajax'
const FormItem = Form.Item;
class AccountSave extends Component {
constructor(props) {
super(props)
this.state = {
}
};
componentDidMount(){
}
dialogOk(flag){
... |
src/components/common/icons/Exclamation.js | goodjoblife/GoodJobShare | import React from 'react';
/* eslint-disable */
const Exclamation = (props) => (
<svg {...props} width="148" height="148" viewBox="0 0 148 148">
<g transform="translate(56)">
<path d="M17.0982379 114.997956C8.23127753 114.997956.798678414 122.430555.798678414 131.297515.798678414 140.164476 8.23127753 147.... |
www/src/components/Calendar.js | savannidgerinel/health | import React from 'react'
import { connect } from 'react-redux'
class Calendar extends React.Component {
render () {
return null
}
}
export const CalendarView = connect(() => ({}), () => ({}))(Calendar)
|
app/main.js | paulsonnentag/qwery-me | import React from 'react';
import ReactDOM from 'react-dom';
import {createStore} from 'redux';
import {Provider} from 'react-redux';
import store from './store';
import App from './components/app';
import '../style/main.scss';
var appElement = document.getElementById('app');
ReactDOM.render(
<Provider store={stor... |
src/svg-icons/action/android.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAndroid = (props) => (
<SvgIcon {...props}>
<path d="M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V8H6v10zM3.5 8C2.67 8... |
public/app/src/components/Spin.js | wjwu/blog | import React from 'react';
const Spin = props => {
return (
<div>
Loading
</div>
);
};
export default Spin; |
local-cli/templates/HelloNavigation/views/welcome/WelcomeText.ios.js | forcedotcom/react-native | 'use strict';
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';
export default class WelcomeText extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
</... |
docs/src/app/components/pages/components/Card/ExampleExpandable.js | ichiohta/material-ui | import React from 'react';
import {Card, CardActions, CardHeader, CardText} from 'material-ui/Card';
import FlatButton from 'material-ui/FlatButton';
const CardExampleExpandable = () => (
<Card>
<CardHeader
title="Without Avatar"
subtitle="Subtitle"
actAsExpander={true}
showExpandableButt... |
modules/react-router-2.5.2/examples/animations/app.js | nanyou-environment/enBackEnd | import React from 'react'
import { render } from 'react-dom'
import ReactCSSTransitionGroup from 'react-addons-css-transition-group'
import { browserHistory, Router, Route, IndexRoute, Link } from 'react-router'
import './app.css'
const App = ({ children, location }) => (
<div>
<ul>
<li><Link to="/page1">P... |
actor-apps/app-web/src/app/components/activity/GroupProfileMembers.react.js | daodaoliang/actor-platform | /*
* Copyright (C) 2015 Actor LLC. <https://actor.im>
*/
import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import GroupMember from 'components/activity/GroupMember.react';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(... |
docs/app/Examples/elements/List/ContentVariations/index.js | shengnian/shengnian-ui-react | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const ListContentVariations = () => (
<ExampleSection title='Content Variations'>
<ComponentExample
title='Vertically Alig... |
docs/app/Examples/elements/Icon/IconSet/IconExampleLayoutAdjustment.js | ben174/Semantic-UI-React | import React from 'react'
import { Grid, Icon } from 'semantic-ui-react'
const IconExampleLayoutAdjustment = () => (
<Grid columns='5' doubling>
<Grid.Column>
<Icon name='block layout' />
<p>block layout</p>
</Grid.Column>
<Grid.Column>
<Icon name='crop' />
<p>crop</p>
</Grid.... |
web/src/CallTotalTime.js | Novemser/InMemoryTelecomService | /**
* Created by tsengkasing on 12/17/2016.
*/
import React from 'react';
import {BarChart, Bar, Brush, ReferenceLine, XAxis, YAxis, CartesianGrid, Tooltip, Legend} from 'recharts';
const styles = {
Title : {
textAlign:'center',
},
Graph : {
textAlign:'center',
},
Container : {
... |
spec/components/chip.js | jasonleibowitz/react-toolbox | import React from 'react';
import Avatar from '../../components/avatar';
import Chip from '../../components/chip';
import style from '../style';
class ChipTest extends React.Component {
state = {
deleted: false
};
handleDeleteClick = () => {
this.setState({
deleted: true
});
};
render () ... |
src/components/about.js | basvandriel/WWW | import React from 'react';
import { Container, Row, Col, Image } from 'react-bootstrap';
import theme from '../theme';
import styled from 'styled-components';
import me from '@images/me.png';
import { StyledSectionTitle, StyledParagraph } from '@styles/GlobalStyle';
import StyledSection from '@styles/Section';
con... |
wrappers/html.js | MeganKeesee/personal-site | import React from 'react'
import Helmet from 'react-helmet'
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
router: React.PropTypes.object,
}
},
render () {
const page = this.props.route.page.data
return (
<div dangerouslySetInnerHTML={{ __... |
src/video360.js | gbentaieb/simple-360-player | import React, { Component } from 'react';
const canvasStyle = { top: 0, left: 0, position: 'relative' };
const videoStyle = { display: 'none' };
export default class Video360 extends Component {
render() {
return (
<div>
<canvas style={ canvasStyle } ref="canvasTag"></canvas>
<video style... |
examples/js/basic/basic-table.js | neelvadgama-hailo/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
app/javascript/mastodon/features/account/components/action_bar.js | rekif/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import DropdownMenuContainer from '../../../containers/dropdown_menu_container';
import { NavLink } from 'react-router-dom';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl... |
app/react-icons/fa/leaf.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaLeaf extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m28.6 15.7q0-0.6-0.5-1t-1-0.4q-3.8 0-7.1 1.1t-5.7 3-5.3 4.9q-0.4 0.5-0.4 1 0 0.... |
src/components/Stats/Table.js | karajrish/karajrish.github.io | import React from 'react';
import PropTypes from 'prop-types';
import TableRow from './TableRow';
const Table = ({ data }) => (
<table>
<tbody>
{data.map((pair) => (
<TableRow
format={pair.format}
key={pair.label}
label={pair.label}
link={pair.link}
... |
src/loader/ComponentLoader.js | ipfs/webui | import React from 'react'
import './ComponentLoader.css'
const ComponentLoader = (props) => (
<div {...props} style={{ width: 300, margin: '10vh auto', ...props.style }}>
<svg className='ComponentLoader' style={{ width: '100%' }} viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
<path c... |
examples/forms-material-ui/src/components/forms-update-overlay/Layout.js | lore/lore-forms | import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import CodeExample from '../_common/CodeExample';
import PayloadStates from '../../constants/PayloadStates';
import Hook from './Hook';
import hookCode from '!raw-loader!./Hook';
import { Card } from 'mater... |
src/BeerList.react.js | rodms10/weiserod | import BeerInTap from './BeerInTap.react';
import BeerInTapSpecial from './BeerInTapSpecial.react';
import Beers from './Beers';
import React, { Component } from 'react';
class BeerList extends Component {
render() {
const leftBeer = Beers.beers[Beers.current.left];
const rightBeer = Beers.beers[Beers.curren... |
src/svg-icons/action/lightbulb-outline.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLightbulbOutline = (props) => (
<SvgIcon {...props}>
<path d="M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1... |
docs/src/Root.js | roadmanfong/react-bootstrap | import React from 'react';
import Router from 'react-router';
const Root = React.createClass({
statics: {
/**
* Get the list of pages that are renderable
*
* @returns {Array}
*/
getPages() {
return [
'index.html',
'introduction.html',
'getting-started.html',... |
src/docs/Props.js | Mikhail2k15/ps-react-michael | import React from 'react';
import PropTypes from 'prop-types';
const Props = ({props})=>{
return (
<table className="props">
<thead>
<tr>
<th>Название</th>
<th>Описание</th>
<th>Тип</th>
<th>Значение по умолчанию</th>
... |
src/project/test/ViewProject.js | codyloyd/teamup | import describe from 'tape'
import React from 'react'
import dom from 'cheerio'
import ReactDOMServer from 'react-dom/server'
const render = ReactDOMServer.renderToStaticMarkup
|
src/utils/defaultArrowRenderer.js | dmatteo/react-select | import React from 'react';
export default function arrowRenderer ({ onMouseDown }) {
return (
<span
className="Select-arrow"
onMouseDown={onMouseDown}
/>
);
};
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.