path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/main.js | kolyaka006/imaginarium | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import './styles/main.scss'
// Store Initialization
// ------------------------------------
const store = createStore(window.__INITIAL_STATE__)
// Render Setup
// ------------------------------------
const MOUNT_N... |
app/components/PresetSelector.js | desheffer/equalizer | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import style from './PresetSelector.css';
export default class PresetSelector extends Component {
static propTypes = {
options: PropTypes.array.isRequired,
preset: PropTypes.string,
disabled: PropTypes.bool,
... |
step5-forms/node_modules/react-router/es6/Link.js | jintoppy/react-training | 'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) {... |
src/main.js | howlowck/train-faces | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import AppContainer from './containers/AppContainer'
// import { getAllGuests } from 'actions/guest'
import { loadConfig } from 'actions/config'
import { requestListPersonGroups } from 'actions/group'
// ==========... |
src/stories/pointLine.js | conorfennell/project-maths | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import PointHollow from '../PointHollow';
import Line from '../Line';
storiesOf('Point Line', module)
.add('Point Line', () => {
return (
<svg height={1000} width={1000} >
<path d="M 250 50 l 150 300" stroke="red" strokeWidth="3" fil... |
src/docs/Navigation.js | ThomasBem/ps-react-thomasbem | import React from 'react';
import PropTypes from 'prop-types';
const Navigation = ({components}) => {
return (
<ul className="navigation">
{
components.map( name => {
return (
<li key={name}>
<a href={`#${name}`}>{name}</a>
</li>
)
}... |
app/javascript/mastodon/features/follow_requests/index.js | masarakki/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debou... |
src/components/video_list_item.js | josephcode773/reactYoutubeViewer | import React from 'react';
// const VideoListItem = (props) => {
// const video = props.video;
// return <li>Video</li>
// };
//Refactored BELOW!!
// const VideoListItem = ({video}) => {
// return <li>Video</li>
// };
//The New Refactored Version. Places 'const video = props.video' to VideoListItem = ({video})
co... |
src/index.js | leobeltran/reactStarter | import React from 'react';
import {render} from 'react-dom';
import Gravatar from './gravatar';
render(<Gravatar/>,document.getElementById('root'));
|
src/index.js | marinbgd/coolbeer | /* eslint-disable import/default */
import React from 'react';
import {render} from 'react-dom';
import {browserHistory} from 'react-router';
import {AppContainer} from 'react-hot-loader';
import Root from './components/Root';
import configureStore from './store/configureStore';
require('./favicon.ico'); // Tell webp... |
packages/material-ui-icons/src/PermScanWifi.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M12 3C6.95 3 3.15 4.85 0 7.23L12 22 24 7.25C20.85 4.87 17.05 3 12 3zm1 13h-2v-6h2v6zm-2-8V6h2v2h-2z" /></g>
, 'PermScanWifi');
|
docs/app/Examples/views/Item/Content/ItemExampleRatings.js | clemensw/stardust | import React from 'react'
import { Icon, Item } from 'semantic-ui-react'
const ItemExampleRatings = () => (
<Item.Group>
<Item>
<Item.Image size='tiny' src='http://semantic-ui.com/images/avatar/large/jenny.jpg' />
<Item.Content verticalAlign='middle'>
<Item.Header>
<Icon name='like... |
client/test/test_helper.js | Zsugi/react-auth | 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... |
docs/app/Examples/collections/Table/States/TableExampleError.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Icon, Table } from 'semantic-ui-react'
const TableExampleError = () => {
return (
<Table celled>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>Notes<... |
app/components/CreateBudget.js | jpsierens/budget | // @flow
import React from 'react';
import * as rules from '../rules';
const handleFormSubmit = (nameInput, noteInput, onCreate) => {
const name = nameInput.value;
const note = noteInput.value;
if (!name || !note) return;
onCreate({ name, note });
nameInput.value = '';
noteInput.value = '';
}... |
src/svg-icons/av/branding-watermark.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvBrandingWatermark = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16h-9v-6h9v6z"/>
</SvgIcon>
);
AvBrandingWatermark = pure(AvBran... |
src/js/components/UsersList/UsersList.js | TheoZimm/SaltyDashboard | import React from 'react';
import Box from 'grommet/components/Box';
import {RoleAwareComponent} from 'react-router-role-authorization';
import Table from 'grommet/components/Table';
import TableRow from 'grommet/components/TableRow';
import Heading from 'grommet/components/Heading';
import axios from 'axios';
class Us... |
src/inputs.js | cphfront/react-workshop | import React from 'react';
export function TextInput({value, placeholder, onChange, id}) {
return (
<input
type='text'
value={value}
placeholder={placeholder}
onChange={(e) => {onChange(e.target.value, id);}}
/>
);
}
export function Radio({value, options, placeholder, onChange, id}... |
components/checkbox/tdcheckbox.js | TDFE/td-ui | /**
* Created by sunxianxiong on 17/5/31.
*/
import React from 'react';
import PropTypes from 'prop-types';
import shallowEqual from 'shallowequal';
import classNames from 'classnames';
export default class TDCheckbox extends React.Component {
static propTypes = {
prefixCls: PropTypes.string,
className: P... |
app/components/Notes/Notes.js | LlamaSantos/react_day4 | 'use strict';
import React from 'react';
import AddNote from './AddNote';
import NotesList from './NotesList';
import notesStore from '../../stores/notesStore';
import noteActions from '../../actions/noteActions';
export default React.createClass({
getInitialState(){
return {
notes: notesStore.getState()... |
packages/icons/src/md/action/PermDeviceInformation.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdPermDeviceInformation(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M26 14h-4v4h4v-4zm0 8h-4v12h4V22zm8-19.98c2.21 0 4 1.77 4 3.98v36c0 2.21-1.79 4-4 4H14c-2.21 0-4-1.79-4-4V6c0-2.21 1.79-4 4-4l20 .02zM3... |
src/components/menu/index.js | hocraveiro/hocraveiro.github.io | import React, { Component } from 'react';
import Container from '../container';
import Link from "gatsby-link";
import MediaQuery from 'react-responsive';
import styles from './index.module.css';
const MenuItems = () => {
return (
<div className={styles.menuitems}>
<Link exact to='/' className={styles.na... |
src/components/PhotoPager.js | stackia/unsplash-trending | import React from 'react'
import { Pager } from 'react-bootstrap'
import { Link } from 'react-router'
class PhotoPager extends React.PureComponent {
render () {
return (
<Pager>
{this.props.page > 1 &&
<li className="previous">
<Link to={`/photos/${this.props.page - 1}`}>&larr... |
src/client/demo1/app.js | hihl/react-demo | /**
* Created by yzf on 16/5/16.
*/
import React, { Component } from 'react';
export default class App extends Component {
constructor(props) {
super(props);
this.render = this.render.bind(this);
this.state = {
items: this.props.items,
disabled: true
};
}
componentDidMount() {
... |
Realization/frontend/czechidm-core/src/components/advanced/ConfigurationInfo/ConfigurationInfo.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
//
import * as Basic from '../../basic';
import { ConfigurationManager } from '../../../redux';
import AbstractEntityInfo from '../EntityInfo/AbstractEntityInfo';
const manager = new ConfigurationManager();
/**
* Co... |
ScrollVelocity.js | mattvague/react-virtualized-scroll-velocity | import React from 'react'
import { PureComponent } from 'react'
class ScrollVelocity extends PureComponent {
constructor (props, context) {
super(props, context)
this.state = {
lastScrollTop: 0,
lastScrollLeft: 0,
velocityY: 0.0,
velocityX: 0.0,
lastUpdatedAt: null
}
t... |
docs/src/app/components/pages/components/Table/Page.js | ArcanisCz/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 tableReadmeText from './README';
import TableExampleSimple from './Exampl... |
src/index.js | seanagibson/reserver-space | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
// import ReduxThunk from 'redux-thunk';
import {Router, Route, IndexRoute, Redirect, browserHistory} from 'react-router';
import { syncHistoryWithStore } from 'reac... |
client/src/javascript/components/icons/CircleCheckmarkIcon.js | jfurrow/flood | import React from 'react';
import BaseIcon from './BaseIcon';
export default class CircleCheckmarkIcon extends BaseIcon {
render() {
return (
<svg className={`icon icon--circle-checkmark ${this.props.className}`} viewBox={this.getViewBox()}>
<path fillOpacity="0.05" d="M30,0A30,30,0,1,1,0,30,30,30... |
docs/src/app/components/pages/components/RefreshIndicator/ExampleLoading.js | ichiohta/material-ui | import React from 'react';
import RefreshIndicator from 'material-ui/RefreshIndicator';
const style = {
container: {
position: 'relative',
},
refresh: {
display: 'inline-block',
position: 'relative',
},
};
const RefreshIndicatorExampleLoading = () => (
<div style={style.container}>
<RefreshI... |
node_modules/antd/es/date-picker/wrapPicker.js | prodigalyijun/demo-by-antd | import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possib... |
fixtures/dom/src/components/fixtures/input-change-events/index.js | maxschmeling/react | import React from 'react';
import FixtureSet from '../../FixtureSet';
import TestCase from '../../TestCase';
import RangeKeyboardFixture from './RangeKeyboardFixture';
import RadioClickFixture from './RadioClickFixture';
import RadioGroupFixture from './RadioGroupFixture';
import InputPlaceholderFixture from './InputP... |
packages/core/src/ColumnView.js | iCHEF/gypcrete | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import './styles/ColumnView.scss';
import prefixClass from './utils/prefixClass';
import icBEM from './utils/icBEM';
export const COMPONENT_NAME = prefixClass('column-view');
const ROOT_BEM = icBEM(COMPONENT_NAME);
exp... |
src/components/Accounts/ChargeFeeFine/ChargeFeeFine.js | folio-org/ui-users | import React from 'react';
import PropTypes from 'prop-types';
import { v4 as uuidv4 } from 'uuid';
import _ from 'lodash';
// eslint-disable-next-line import/no-extraneous-dependencies
import moment from 'moment';
import {
Callout,
ConfirmationModal,
} from '@folio/stripes/components';
import {
FormattedMessage,... |
fields/components/columns/IdColumn.js | sendyhalim/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var IdColumn = React.createClass({
displayName: 'IdColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
list: React.PropTypes.obje... |
codes/chapter06/src/index.js | atlantis1024/react-step-by-step | import React from 'react';
import {render} from 'react-dom';
import {createStore} from 'redux';
import {Provider} from 'react-redux';
import reducer from './reducers';
import MyRoute from './route';
const store = createStore(reducer);
render(
<Provider store={store}>
<MyRoute/>
</Provider>,
document.getElem... |
webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/DeleteDialog.js | snagoor/katello | import React from 'react';
import PropTypes from 'prop-types';
import { MessageDialog } from 'patternfly-react';
import { sprintf, translate as __ } from 'foremanReact/common/I18n';
const DeleteDialog = ({
show, selectedRows, onDeleteSubscriptions, onSubscriptionDeleteModalClose,
}) => (
<MessageDialog
show={s... |
fields/types/cloudinaryimage/CloudinaryImageFilter.js | qwales1/keystone | import React from 'react';
import { SegmentedControl } from 'elemental';
var PasswordFilter = React.createClass({
getInitialState () {
return {
checked: this.props.value || true,
};
},
toggleChecked (checked) {
this.setState({
checked: checked,
});
},
render () {
const options = [
{ label: 'Is... |
js/components/blankPage/index.js | GoldenOwlAsia/cooking-app |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Text, Button, Icon } from 'native-base';
import { openDrawer } from '../../actions/drawer';
import styles from './styles';
cons... |
app/imports/ui/admin/CommandComponent.js | raiden-network/raiden-token | import React, { Component } from 'react';
export default class CommandComponent extends Component {
constructor(props) {
super(props);
this.state = {};
this.onClick = this.onClick.bind(this);
this.onChange = this.onChange.bind(this);
this.inputs = {};
}
onClick() {
let { command, onClick... |
src/components/Footer.js | caesai/medialeaks | import React from 'react';
import footlogo from '../img/ML_Logo_foot.png';
export default class Footer extends React.Component {
render() {
return(
<footer>
<div className="footer_container">
<a href="#" className="footer_logo">
<img src={footlogo} alt="" />
</a>
... |
app/components/dogs/addDog.js | robhogfeldt-fron15/rdogs | import React from 'react';
import request from 'superagent';
class addDog extends React.Component {
constructor(props) {
super(props);
this.handleChange = this.handleChange.bind(this);
this.handleMeritsChange = this.handleMeritsChange.bind(this);
this.handleDogSubmit = this.handleDogSubmit.bind(this);... |
app/components/icons/Cloud/index.js | yasserhennawi/yasserhennawi | import React from 'react';
import Vector from './vector.html';
export default () => <div dangerouslySetInnerHTML={{ __html: Vector }} />;
|
examples/validation/components/submit-button.js | maludwig/react-redux-form | import React from 'react';
import { connect } from 'react-redux';
const SubmitButton = ({ user }) =>
<button type="submit">
Finish registration, {user.firstName} {user.lastName}!
</button>;
SubmitButton.propTypes = {
user: React.PropTypes.shape({
firstName: React.PropTypes.string.isRequired,
lastNam... |
packages/material-ui-icons/src/AirlineSeatIndividualSuite.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let AirlineSeatIndividualSuite = props =>
<SvgIcon {...props}>
<path d="M7 13c1.65 0 3-1.35 3-3S8.65 7 7 7s-3 1.35-3 3 1.35 3 3 3zm12-6h-8v7H3V7H1v10h22v-6c0-2.21-1.79-4-4-4z" />
</SvgIcon>;
AirlineSeatInd... |
src/svg-icons/image/nature-people.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageNaturePeople = (props) => (
<SvgIcon {...props}>
<path d="M22.17 9.17c0-3.87-3.13-7-7-7s-7 3.13-7 7c0 3.47 2.52 6.34 5.83 6.89V20H6v-3h1v-4c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v4h1v5h16v-2h-3v-3.88c3.47-.41 ... |
OleksiiOnSoftware.Apps.Blog/client/components/LongPost/index.js | boades/PpmSystem | /* @flow */
// React
import React from 'react'
// UI
import { Item } from 'semantic-ui-react'
// Custom UI
import {
PostDate,
PostCategory,
PostTag,
DisqusComments
} from 'components'
// Types
import type { Post, Tag, Category } from 'types'
type Props = {
post: Post,
onDateClick: (date: string) => voi... |
app/javascript/mastodon/features/account_timeline/index.js | tootcafe/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { fetchAccount } from '../../actions/accounts';
import { expandAccountFeaturedTimeline, expandAccountTimeline } from '../../actions/timelines';
import ... |
src/components/overlays/NewTurnOverlay.js | alexzherdev/pandemic | import React from 'react';
import { playerType } from '../../constants/propTypes';
const NewTurnOverlay = ({ player }) =>
<div className="overlay new-turn-overlay">
<div className={`banner banner-${player.role}`}>
<div className="text">
{player.name}'s turn
</div>
</div>
</div>;
NewT... |
src/server.js | trungtin/react-redux-universal-hot-example | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import createLocation from 'history/lib/createLocation';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'pat... |
frontend/src/components/registration/organizationType.js | unicef/un-partner-portal | import React from 'react';
import PropTypes from 'prop-types';
import { formValueSelector } from 'redux-form';
import { connect } from 'react-redux';
import { withStyles } from 'material-ui/styles';
import Grid from 'material-ui/Grid';
import Typography from 'material-ui/Typography';
import RadioForm from '../forms/... |
src/js/pages/textbook-editor.js | daniel-madera/pijs | import React from 'react'
import { observer, inject } from 'mobx-react'
import { Form, Grid, Row, Col, Button } from 'react-bootstrap'
import { SimpleList } from '../components/others/lists'
import { SimpleInput } from '../components/others/form'
import EditorRow from '../components/textbook-editor/editor-row'
import ... |
docs/app/Examples/elements/Button/Types/ButtonInvertedExample.js | jcarbo/stardust | import React from 'react'
import { Button, Segment } from 'stardust'
const ButtonInvertedExample = () => (
<div>
<Segment inverted>
<Button inverted>Standard</Button>
<Button inverted color='red'>Red</Button>
<Button inverted color='orange'>Orange</Button>
<Button inverted color='yellow'>... |
src/window/pallet/element/Label.js | unkyulee/control-center | ///
/// Composite Element that has type, name, value
///
import { ipcRenderer } from 'electron'
import React from 'react'
import { Table } from 'react-bootstrap'
const run = require('../../../control/common/run')
export class Element extends React.Component {
constructor(props) {
super(props)
}
componentWill... |
app/javascript/mastodon/containers/domain_container.js | riku6460/chikuwagoddon | 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/pages/FatArrowFunctions.js | marktani/react-native-express-1 | import React from 'react'
import markdown from 'markdown-in-js'
import markdownOptions from '../utils/MarkdownOptions'
import DefaultPage from './DefaultPage'
import { EditorTranspiler } from '../components'
const code = `const foo = () => 'bar'
const baz = (x) => {
return x + 1
}
const squareSum = (...args) => {... |
app/javascript/mastodon/features/explore/links.js | maa123/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Story from './components/story';
import LoadingIndicator from 'mastodon/components/loading_indicator';
import { connect } from 'react-redux';
import { fetchTrendingLinks } from 'mastodon/act... |
src/components/app.js | ctrl-alt-p/born-to-sell | import React from 'react';
import { Component } from 'react';
import CommentBox from './comment_box';
import CommentList from './comment_list';
export default class App extends Component {
render() {
return (
<div>
<CommentBox />
<CommentList />
</div>
);
}
}
|
jest.setup.js | moderntribe/product-taskmaster | /**
* External dependencies
*/
import moment from 'moment-timezone';
import React from 'react';
import renderer from 'react-test-renderer';
import $ from 'jquery';
import Enzyme, { shallow, render, mount } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
Enzyme.configure( { adapter: new Adapter() } );
... |
client/components/categories/delete-unused-modal.js | ZeHiro/kresus | import React from 'react';
import { connect } from 'react-redux';
import { translate as $t, NONE_CATEGORY_ID } from '../../helpers';
import { get, actions } from '../../store';
import { registerModal } from '../ui/modal';
import ModalContent from '../ui/modal/content';
import CancelAndDelete from '../ui/modal/cancel-... |
docs/app/Examples/elements/Header/Content/HeaderExampleIconProp.js | koenvg/Semantic-UI-React | import React from 'react'
import { Header } from 'semantic-ui-react'
const HeaderExampleIconProp = () => (
<Header as='h2' icon='plug' content='Uptime Guarantee' />
)
export default HeaderExampleIconProp
|
src/SparklinesNormalBand.js | DigitalCoder/react-sparklines | import React from 'react';
import DataProcessor from './DataProcessor';
export default class SparklinesNormalBand extends React.Component {
static propTypes = {
style: React.PropTypes.object
};
static defaultProps = {
style: { fill: 'red', fillOpacity: .1 }
};
render() {
... |
docs/src/_bilprospekt_datepicker_component.js | Bilprospekt/bilprospekt-ui | import React from 'react';
import _ from 'underscore';
import moment from 'moment';
import {DatePicker} from 'bilprospekt-ui';
const DatePickerDoc = React.createClass({
getInitialState() {
return {
range: {
from: null,
to: null,
},
single... |
src/parser/warrior/fury/modules/talents/RecklessAbandon.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import { formatPercentage, formatNumber } from 'common/format';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import Analyzer from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import { SELECTED_PLAYER } from 'pars... |
stories/components/quoteBanner/index.js | OperationCode/operationcode_frontend | import React from 'react';
import { storiesOf } from '@storybook/react';
import QuoteBanner from 'shared/components/quoteBanner/quoteBanner';
storiesOf('shared/components/quoteBanner', module)
.add('Default', () => (
<QuoteBanner
author="James bond"
quote="I always enjoyed learning a new tongue"
... |
client/common/components/RightSideBar.js | Haaarp/geo | import React from 'react';
import SideBar from './SideBar';
class RightSideBar extends React.Component {
_getClassName() {
return "sidebar-wrapper " +
(this.props.className ? this.props.className : "");
}
render() {
return (
<SideBar className="pull-right ">
... |
assets/javascript/components/app/userButton.js | colinjeanne/learning-site | import Constants from './../../constants/constants';
import React from 'react';
const userButton = props => {
const className = props.isSignedIn ? 'g-signin2 signedIn' : 'g-signin2';
const narrowClassName = props.isSignedIn ?
'userTileNarrow signedIn' :
'userTileNarrow';
const toggledClass ... |
actor-apps/app-web/src/app/components/modals/CreateGroup.react.js | voidException/actor-platform | import React from 'react';
import CreateGroupActionCreators from 'actions/CreateGroupActionCreators';
import CreateGroupStore from 'stores/CreateGroupStore';
import CreateGroupForm from './create-group/Form.react';
import Modal from 'react-modal';
import { KeyCodes } from 'constants/ActorAppConstants';
const appEl... |
src/components/Example.js | zhangdistephen/dva-flask-blog | import React from 'react';
const Example = () => {
return (
<div>
Example
</div>
);
};
Example.propTypes = {
};
export default Example;
|
src/containers/Payment/PaymentForm.js | ChluNetwork/chlu-demo | import React from 'react'
// components
import { CardHeader, CardContent, CardActions, Grid } from '@material-ui/core'
import { Avatar, Button } from '@material-ui/core'
import { reduxForm, Field } from 'redux-form'
import CustomInput from 'components/Form/CustomInput'
import StarRatingComponent from 'react-star-rating... |
assets/src/js/routes.js | imperodesign/clever-pages-admin | 'use strict'
import React from 'react'
import { Route, Router } from 'react-router'
import ListPage from './containers/ListPage'
import EditPage from './containers/EditPage'
export default (
<Router>
<Route path='/pages' component={ListPage}/>
<Route path='/pages/:pageid' component={EditPage}/>
</Router>
... |
poc/src/js/components/Home.js | clplain/poc | import React from 'react';
class Home extends React.Component {
render() {
return (
<div className='login-form'>
<div className='login-content'>
<div className='form-login-error'>
<h3>DashBoard Login</h3>
<p>Enter <strong>Test</strong>/<strong>Test</strong>... |
annotator/static/js/multiLabelSelector.js | planbrothers/ml-annotate | import axios from 'axios';
import moment from 'moment';
import sortedPairs from 'lodash-sorted-pairs'
import React from 'react';
import ReactDOM from 'react-dom';
import ReactTable from 'react-table';
import _ from 'lodash';
class MultiLabelSelector extends React.Component {
constructor(props) {
super(props);
... |
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-router-dom/4.1.1/es/Link.js | Akkuma/npm-cache-benchmark | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
src/components/Header/Header.js | cityofsurrey/polltal-app | import React from 'react'
import Radium from 'radium'
import PropTypes from 'prop-types'
const styles = {
root: {
textAlign: 'center',
margin: '5px 0 40px',
'@media (min-width: 1150px)': {
margin: '5px 0 100px',
},
},
name: {
fontSize: 24,
fontWeight: 'bold',
color: 'white',
}... |
app/javascript/mastodon/features/account_timeline/containers/header_container.js | summoners-riftodon/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { makeGetAccount } from '../../../selectors';
import Header from '../components/header';
import {
followAccount,
unfollowAccount,
blockAccount,
unblockAccount,
unmuteAccount,
pinAccount,
unpinAccount,
} from '../../../actions/account... |
src/react/JSONTree/index.js | blackxored/redux-devtools | // ES6 + inline style port of JSONViewer https://bitbucket.org/davevedder/react-json-viewer/
// all credits and original code to the author
// Dave Vedder <veddermatic@gmail.com> http://www.eskimospy.com/
// port by Daniele Zannotti http://www.github.com/dzannotti <dzannotti@me.com>
import React from 'react';
import o... |
src/shared/components/form/formInput/formInput.js | miaket/operationcode_frontend | /* eslint-disable */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Label from 'shared/components/label/label';
import styles from './formInput.css';
class FormInput extends Component {
constructor() {
super();
this.state = {
text: '',
isValid: true
};
... |
fields/types/name/NameColumn.js | sendyhalim/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
import displayName from 'display-name';
var NameColumn = React.createClass({
displayName: 'NameColumn',
propTypes: {
col: React.PropTypes.object,
data: React.Pr... |
src/interface/icons/WoWAnalyzer.js | fyruna/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
const Icon = ({ mainColor, arrowColor, ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" className="icon" {...other}>
<path
d="M11.4842 102.243L1.02185 84.2455L49.9996 -7.62939e-06L98.9777 84.2461L88.5199 102.236L87... |
website/core/WebPlayer.js | callstack-io/react-native | /**
* 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.
*
* @provides... |
internals/templates/languageProvider/languageProvider.js | adoveil/max | /*
*
* 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 { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
mod10/tests/src/App.js | mauricedb/mwd-2017-02-20 | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
{this.props.now}
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welc... |
test/textarea/AutosuggestApp.js | moroshko/react-autosuggest | import React, { Component } from 'react';
import sinon from 'sinon';
import Autosuggest from '../../src/Autosuggest';
import languages from '../plain-list/languages';
import { escapeRegexCharacters } from '../../demo/src/components/utils/utils.js';
import { saveKeyDown } from '../helpers';
const getMatchingLanguages =... |
blueocean-material-icons/src/js/components/svg-icons/device/network-cell.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const DeviceNetworkCell = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M2 22h20V2z"/><path d="M17 7L2 22h15z"/>
</SvgIcon>
);
DeviceNetworkCell.displayName = 'DeviceNetworkCell';
DeviceNetworkCell.muiName = 'SvgIcon';
export defaul... |
frontend/src/components/icons/Gear.js | webrecorder/webrecorder | import React from 'react';
function GearIcon() {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="12"
height="12">
<path d="M 5.9991695,3.830357 C 4.8017544,3.830357 3.8303571,4.8017545 3.8303571,6 c 0,1.1969865 0.9713973,2.170473 2.1688124,2.170473 C 7.197,8.170473 8.1612855,7.19... |
src/routes.js | Seeingu/medium-demo | import React from 'react';
import { Route, Switch } from 'react-router';
import { NotFound } from 'see-common-components';
import App from './containers/App';
import SignIn from './containers/Signin';
import SignUp from './containers/Signup';
import Article from './containers/Article';
import Settings from './co... |
src/svg-icons/editor/pie-chart-outlined.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorPieChartOutlined = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm1 2.07c3.61.45 6.48 3.33 6.93 6.93H13V4.07zM4 12c0-4.06 3.07-7.44 7-7.93v15.87c-... |
benchmarks/src/app/Benchmark/index.js | rofrischmann/fela | /**
* The MIT License (MIT)
* Copyright (c) 2017 Paul Armstrong
* https://github.com/paularmstrong/react-component-benchmark
*/
/* global $Values */
/**
* @flow
*/
import * as Timing from './timing';
import React, { Component } from 'react';
import { getMean, getMedian, getStdDev } from './math';
import type { ... |
Neos.Media.Browser/packages/neos-media-browser/src/Variants/Variant.js | bwaidelich/neos-development-collection | import React from 'react';
export default class Variant extends React.PureComponent {
render() {
const {persistenceIdentifier, previewUri, presetIdentifier, width, height, presetVariantName, hasCrop, cropInformation, onRequestCrop} = this.props;
const aspect = cropInformation.width / cropInformatio... |
components/layout/Layout.js | KerenChandran/react-toolbox | import React from 'react';
import classnames from 'classnames';
import style from './style';
const Layout = ({ className, children }) => (
<div data-react-toolbox='layout' className={classnames(style.root, className)}>
{children}
</div>
);
const ALLOWED = [
'Panel',
'NavDrawer|Panel',
'NavDrawer|Panel|S... |
geonode/monitoring/frontend/src/components/molecules/average-response-time/index.js | mcldev/geonode | import React from 'react';
import PropTypes from 'prop-types';
import CircularProgress from 'material-ui/CircularProgress';
import HoverPaper from '../../atoms/hover-paper';
import styles from './styles';
class AverageResponseTime extends React.Component {
static propTypes = {
time: PropTypes.number,
}
sta... |
src/routes/About/components/AboutView.js | arleighdickerson/react-redux-express | import React from 'react'
export const AboutView = (props) => (
<h1>About</h1>
)
export default AboutView
|
kitchensink/src/App.js | Paratron/modoJS | import React from 'react';
import 'modo/modo.css';
import 'modo/themes/modern.css';
import {
Button,
Table,
GridFrame,
Grid,
Cell,
Drawer,
AppBar,
Dialog,
DialogHeader,
DialogContent,
List
} from 'modo';
const data = [
{
firstName: 'Peter',
lastName: 'Schmitt',
birthDay: 12312312312
},
{
first... |
app/src/components/shared/NavLink.js | mbmybook/website | 'use strict'
import '../../style.css'
import React from 'react'
import { Link } from 'react-router'
class NavLink extends React.Component {
render() {
return <Link {...this.props}/>
}
}
export default NavLink |
client/components/Targets.js | yuanyusi/redux | import React from 'react';
class Targets extends React.Component {
constructor(props) {
super(props);
this.state = {
data: 0
}
this.setNewNumber = this.setNewNumber.bind(this)
};
setNewNumber() {
this.setState({data: this.state.data + 1})
}
... |
public/js/6.js | ritchieanesco/frontendmastersreact | /* Importing CSS in React */
import React from 'react'
import { render } from 'react-dom'
import '../normalize.css'
import '../style.css'
const App = React.createClass({
render () {
return (
<div className='app'>
<div className='landing'>
<h1>My New App</h1>
<input type='text' ... |
src/hoc/withHotkeys.js | rlesniak/tind3r.com | import React, { Component } from 'react';
import { hoistStatics, wrapDisplayName } from 'recompose';
export default function withHotkeys(handlers, useCapture = false) {
return hoistStatics(BaseComponent =>
class WithHotkeys extends Component {
displayName = wrapDisplayName(BaseComponent, 'withHotkeys');
... |
examples/src/Badges/Badges.js | Amirus/react-autosuggest | require('./Badges.less');
import React, { Component } from 'react';
export default class Badges extends Component {
render() {
return (
<div className="badges">
<a href="//codeship.com/projects/67868" target="_blank">
<img src="//img.shields.io/codeship/41810250-aa07-0132-fbf4-4e62e8945e... |
src/index.js | ebabel-eu/ebabel-home | // React
import React from 'react';
import { render } from 'react-dom';
import { Router, Route, IndexRoute, hashHistory } from 'react-router';
import App from './components/app/app';
import Projects from './components/projects/projects';
import Portfolio from './components/portfolio/portfolio';
import Interview from '... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.