path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
examples/progressive-render/components/Loading.js | callumlocke/next.js | import React from 'react'
export default () => (
<div>
<h3>Loading...</h3>
<style jsx>{`
div {
align-items: center;
display: flex;
height: 50vh;
justify-content: center;
}
`}</style>
</div>
)
|
src/Item.js | moroshko/react-autosuggest | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import compareObjects from './compareObjects';
export default class Item extends Component {
static propTypes = {
sectionIndex: PropTypes.number,
isHighlighted: PropTypes.bool.isRequired,
itemIndex: PropTypes.number.isRequired,... |
examples/todos/index.js | mjw56/redux | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import todoApp from './reducers'
import App from './components/App'
let store = createStore(todoApp)
render(
<Provider store={store}>
<App />
</Provid... |
src/Parser/Priest/Shadow/Modules/Spells/VampiricTouch.js | enragednuke/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Enemies from 'Parser/Core/Modules/Enemies';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import SmallStatisticBox,... |
src/Drawer/Drawer.js | skystebnicki/chamel | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import Paper from '../Paper/Paper';
import Overlay from '../Overlay/Overlay';
import Dom from '../utils/Dom';
import classnames from 'classnames';
import ThemeService from '../styles/ChamelThemeService';
impo... |
src/containers/BVmyName.js | pjkarlik/ReactUI | import React from 'react';
const Panel = () => {
const content = (
<span>
<h2>Hello, my name is Paul</h2>
<p>
I am a Creative Technologist, UI Architect, Front-End Developer, Visual Designer, Arduino Programmer,
Hobby Photographer, Digital Artist and Electronic Musician.
</p>
... |
pages/index.js | YuyingWu/blog-modern | import Layout from '../components/layout';
import React from 'react';
import Link from 'next/link';
// import { Helmet } from "react-helmet";
export default class extends React.Component {
render () {
return (
<Layout>
<style jsx>{`
img {
display: block;
width: 223... |
node_modules/_antd@2.13.4@antd/es/input/TextArea.js | ligangwolai/blog | 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... |
app/react-icons/fa/ship.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaShip extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m35.2 32.8q0.3-0.4 0.8-0.4t0.9 0.4l2.5 2.5-1.8 1.7-1.6-1.6-1.6 1.6q-0.3 0.4-0.9... |
src/component/Code/index.js | dlennox24/ricro-app-template | import { Typography } from '@material-ui/core';
import withStyles from '@material-ui/core/styles/withStyles';
import classNames from 'classnames';
import Highlight, { defaultProps } from 'prism-react-renderer';
import defaultTheme from 'prism-react-renderer/themes/vsDarkPlus';
import PropTypes from 'prop-types';
import... |
imports/ui/components/JournalBanner/JournalBanner.js | jamiebones/Journal_Publication | import React from 'react';
import { Button , Row , Col ,Jumbotron , Image } from 'react-bootstrap';
import PropTypes from 'prop-types';
import { Meteor } from 'meteor/meteor';
import { withTracker } from 'meteor/react-meteor-data';
import Journal from '../../../api/Journal/Journal';
import { RemoveSpaces , NumberOfJour... |
js/ShowCard.js | irvinemd55/react-testing | import React from 'react'
import { Link } from 'react-router'
const { string } = React.PropTypes
const ShowCard = React.createClass({
propTypes: {
poster: string.isRequired,
title: string.isRequired,
year: string.isRequired,
description: string.isRequired,
imdbID: string.isRequired
},
render ... |
src/App.js | hedgerh/irc-client | import React, { Component } from 'react';
export class App extends Component {
render() {
return (
<div>
</div>
);
}
} |
src/svg-icons/av/queue.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvQueue = (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"/>
</SvgIco... |
src/components/Snackbars/GeneralSnackbar.js | Charlie9830/pounder | import React from 'react';
import { Snackbar, Typography, SnackbarContent } from '@material-ui/core';
import { withStyles } from '@material-ui/core/styles';
import SnackbarActionButton from './SnackbarActionButton';
let styles = theme => {
let baseStyle = {
margin: '8px',
}
return {
informa... |
server/home/index.js | eliasparis/ultimatedevtecnifight | import fs from "fs";
import ejs from "ejs";
import { db } from "../dbset";
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import Home from "../../client/home";
//Home main function
export default function (request, response) {
const ref = db.ref("events");
const refStats = db.ref("stats"... |
src/svg-icons/image/filter-2.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter2 = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-4-4h-4v-2h2c1.1 0 2-.89 ... |
client/index.js | jeojoe/emplist | /**
* Client entry point
*/
import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import App from './App';
import { configureStore } from './modules/store';
// Initialize store
const store = configureStore(window.__INITIAL_STATE__);
const mountApp = document.... |
src/components/__tests__/FilterTest.js | GriddleGriddle/Griddle | import React from 'react';
import test from 'ava';
import { shallow } from 'enzyme';
import Filter from '../Filter';
test('renders', (t) => {
const wrapper = shallow(<Filter />);
t.true(wrapper.matchesElement(<input />));
});
test('renders with style', (t) => {
const style = { backgroundColor: '#EDEDED' };
c... |
examples/counter/containers/App.js | oliverturner/redux-devtools | import React, { Component } from 'react';
import CounterApp from './CounterApp';
import { createStore, applyMiddleware, combineReducers, compose } from 'redux';
import { devTools, persistState } from 'redux-devtools';
import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react';
import thunk from 'redux-... |
src/@ui/Icon/icons/Building.js | NewSpring/Apollos | import React from 'react';
import PropTypes from 'prop-types';
import { Svg } from '../../Svg';
import makeIcon from './makeIcon';
const Icon = makeIcon(({ size = 32, fill, ...otherProps } = {}) => (
<Svg width={size} height={size} viewBox="0 0 24 24" {...otherProps}>
<Svg.Path
d="M19.5 21v-8.25h.75c.45 0 ... |
src/pages/index.js | mdmad7/rebeccaspplus | import React from 'react';
import Link from 'gatsby-link';
import Helmet from 'react-helmet';
import moment from 'moment';
import logo from '../images/logo@1x.png';
export default ({ data }) => {
return (
<div id="blogPage">
<Helmet title={`Blog - ${data.site.siteMetadata.title}`} />
{data.allContent... |
fields/types/html/HtmlField.js | tanbo800/keystone | import _ from 'underscore';
import Field from '../Field';
import React from 'react';
import tinymce from 'tinymce';
import { FormInput } from 'elemental';
/**
* TODO:
* - Remove dependency on underscore
*/
var lastId = 0;
function getId() {
return 'keystone-html-' + lastId++;
}
module.exports = Field.create({
... |
frontend/src/index.js | 4devs/symfony-react | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
public/javascript/components/aboutUs.js | fireaxil/anglican-wny | import React from 'react'
import { withStyles } from 'material-ui/styles'
import PropTypes from 'prop-types'
import Typography from 'material-ui/Typography'
import Divider from 'material-ui/Divider'
const styles = theme => ({
root: {
paddingTop: 40,
display: 'flex',
flexWrap: 'wrap',
justifyContent: ... |
jekyll-strapi-tutorial/api/admin/admin/src/components/DownloadInfo/index.js | strapi/strapi-examples | /*
*
* DownloadInfo
*
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
import Icon from '../../assets/icons/icon_success.svg';
import styles from './styles.scss';
function DownloadInfo() {
return (
<div className={styles.wrapper}>
<div className={styles.content}>
<img s... |
apps/marketplace/components/SellerEdit/SignedMasterAgreement.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react'
import PropTypes from 'prop-types'
import AUheading from '@gov.au/headings/lib/js/react.js'
import AgreementLinks from './AgreementLinks'
const SignedMasterAgreement = props => (
<React.Fragment>
<AUheading level="1" size="xl">
Master agreement accepted
</AUheading>
<p>You... |
client/src/promisedComponent.js | comme-il-faut/ledgerdb | import React from 'react';
function promisedComponent(component) {
//console.log("promisedComponent -> " + component.name);
return class extends React.PureComponent {
constructor(props) {
super(props);
//console.log("promisedComponent -> constructor");
if (typeof component.getInitia... |
Week02-RestBasics-old/client/src/App.js | bmeansjd/ISIT320_means2017 | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h1 className="App-title">Welco... |
src/assets/js/react/components/ShowMessage.js | GravityPDF/gravity-forms-pdf-extended | import PropTypes from 'prop-types'
import React from 'react'
import $ from 'jquery'
/**
* Renders a message or error, with the option to self-clear itself
*
* @package Gravity PDF
* @copyright Copyright (c) 2021, Blue Liquid Designs
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public Licens... |
docs/src/app/components/pages/components/Paper/ExampleSimple.js | mtsandeep/material-ui | import React from 'react';
import Paper from 'material-ui/Paper';
const style = {
height: 100,
width: 100,
margin: 20,
textAlign: 'center',
display: 'inline-block',
};
const PaperExampleSimple = () => (
<div>
<Paper style={style} zDepth={1} />
<Paper style={style} zDepth={2} />
<Paper style={s... |
src/app/Esop.js | reactima/reactima-esop | import React from 'react';
import './Esop.scss';
import EmployeeList from '../components/EmployeeList'
import EmployeeAdd from '../components/EmployeeAdd'
import EmployeeListDetails from '../components/EmployeeListDetails'
import EmployeeDetails from '../components/EmployeeDetails'
import ContractAddresses from '../co... |
src/components/Main.js | bmacheski/gh-contributors | 'use strict';
import React from 'react'
import { RouteHandler } from 'react-router'
import '../styles/Main.css';
export default React.createClass({
render() {
return (
<div>
<div className="container">
<RouteHandler />
</div>
</div>
)
}
});
|
lib/cli/generators/WEBPACK_REACT/template/stories/Button.js | nfl/react-storybook | import PropTypes from 'prop-types';
import React from 'react';
const buttonStyles = {
border: '1px solid #eee',
borderRadius: 3,
backgroundColor: '#FFFFFF',
cursor: 'pointer',
fontSize: 15,
padding: '3px 10px',
margin: 10,
};
const Button = ({ children, onClick }) =>
<button style={buttonStyles} onCli... |
admin/client/components/Forms/InvalidFieldType.js | tony2cssc/keystone | import React from 'react';
module.exports = React.createClass({
displayName: 'InvalidFieldType',
propTypes: {
path: React.PropTypes.string,
type: React.PropTypes.string,
},
render () {
return <div className="alert alert-danger">Invalid field type <strong>{this.props.type}</strong> at path <strong>{this.props... |
src/index.js | lukehaas/RegexHub | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import App from './components/app';
import reducers from './reducers';
import './sass/style.scss';
const createStoreWithMiddleware = applyMiddleware()(createStore... |
packages/mineral-ui-icons/src/IconSubject.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 IconSubject(props: IconProps) {
const iconProps = {
rtl: true,
...props
};
return (
<Icon {...iconProps}>... |
app/javascript/flavours/glitch/components/permalink.js | im-in-space/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class Permalink extends React.PureComponent {
static contextTypes = {
router: PropTypes.object,
};
static propTypes = {
className: PropTypes.string,
href: PropTypes.string.isRequired,
to: PropTypes.string.isRequired,
... |
src/components/MultiSelect/MultiSelect-story.js | jzhang300/carbon-components-react | import React from 'react';
import { storiesOf, action } from '@storybook/react';
import MultiSelect from '../MultiSelect';
const items = [
{
id: 'item-1',
text: 'Item 1',
},
{
id: 'item-2',
text: 'Item 2',
},
{
id: 'item-3',
text: 'Item 3',
},
{
id: 'item-4',
text: 'Item 4... |
core/src/plugins/gui.ajax/res/js/ui/Components/list/ConfigurableListEntry.js | ChuckDaniels87/pydio-core | import React from 'react'
import ListEntryNodeListenerMixin from './ListEntryNodeListenerMixin'
import InlineEditor from './InlineEditor'
import {DragDropListEntry} from './ListEntry'
import {FontIcon} from 'material-ui'
/**
* Callback based material list entry with custom icon render, firstLine, secondLine, etc.
*/... |
ajax/libs/recompose/0.20.2/Recompose.js | CyrusSUEN/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["Recompose"] = facto... |
react-shrine-network-aware-code-splitting/src/components/Logo/Logo.js | GoogleChromeLabs/adaptive-loading | /*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
examples/todos-with-undo/components/Footer.js | mjw56/redux | import React from 'react'
import FilterLink from '../containers/FilterLink'
const Footer = () => (
<p>
Show:
{" "}
<FilterLink filter="SHOW_ALL">
All
</FilterLink>
{", "}
<FilterLink filter="SHOW_ACTIVE">
Active
</FilterLink>
{", "}
<FilterLink filter="SHOW_COMPLETED">... |
fixtures/attribute-behavior/src/App.js | flarnie/react | import React from 'react';
import {createElement} from 'glamor/react'; // eslint-disable-line
/* @jsx createElement */
import {MultiGrid, AutoSizer} from 'react-virtualized';
import 'react-virtualized/styles.css';
import FileSaver from 'file-saver';
import {
inject as injectErrorOverlay,
uninject as uninjectError... |
docs/src/pages/404.js | dkvilo/sut | import React from 'react'
const NotFoundPage = () => (
<div className='card-full' style={{backgroundColor: '#fff', marginTop: 150}}>
<h1>NOT FOUND</h1>
<p>You just hit a route that doesn't exist... the sadness.</p>
</div>
)
export default NotFoundPage
|
examples/js/column/column-hide-table.js | pvoznyuk/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,
... |
examples/server-rendering/server.js | mjrussell/redux-router | import express from 'express';
import webpack from 'webpack';
import React from 'react';
import {renderToString} from 'react-dom/server';
import {Provider} from 'react-redux';
import {createStore} from 'redux';
import {ReduxRouter} from '../../src'; // 'redux-router'
import {reduxReactRouter, match} from '../../src/ser... |
react/index.js | fraserxu/es6-demo | import React from 'react';
const Demo = React.createClass({
render() {
return (
<div>Hello from Shanghai JavaScript Meetup!</div>
);
}
});
React.render(<Demo />, document.body)
|
app/store/configStore.js | t0nin0s/react-product-list | import React, { Component } from 'react';
import { createStore, applyMiddleware } from 'redux';
import reducers from '../reducers';
import createLogger from 'redux-logger';
import thunkMiddleware from 'redux-thunk'
const configureStore = () => {
const middlewares = [ createLogger(), thunkMiddleware ];
const co... |
src/svg-icons/communication/import-contacts.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationImportContacts = (props) => (
<SvgIcon {...props}>
<path d="M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 2... |
node_modules/react-color/src/components/MaterialPicker.js | ottomajik/react-demo | 'use strict'; /* @flow */
import React from 'react';
import ReactCSS from 'reactcss';
import merge from 'merge';
import _ from 'lodash';
import color from '../helpers/color';
import Material from './material/Material';
class ColorPicker extends ReactCSS.Component {
constructor(props: any) {
super();
this... |
js/components/wiki/tagList.js | frequencyasia/website | import React from 'react';
import { Link } from 'react-router-component';
import Tabs from 'react-simpletabs';
import Constants from './../../constants';
module.exports = React.createClass({
propTypes: {
type: React.PropTypes.string.isRequired,
tags: React.PropTypes.array.isRequired,
useTabs: React.Pro... |
src/components/MultiSelectAccordion/Checkbox.js | creditornot/wolt-web-common | import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import CheckmarkIcon from './checkmark.svg';
import styles from './Checkbox.css';
const Checkbox = ({ checked, className, disabled, partialCheck, ...rest }) => (
<div
{...rest}
className={cx(className, styles.root, {... |
dashboard-ui/app/components/footer/footerlist.js | CloudBoost/cloudboost | 'use strict';
import React from 'react';
const Footerlist = React.createClass({
render () {
var date = new Date();
var year = date.getFullYear();
return (
<span >
<a className='link' href='https://cloudboost.io/' target='_blank'>© {year} CloudBoost</a>
<a className='link' href='htt... |
src/components/SettingsIcon/index.js | emadalam/mesmerized | import React from 'react';
import MdSettings from 'react-icons/lib/md/settings';
import IconButton from 'react-toolbox/lib/button/IconButton';
import * as Actions from '@actions';
const SettingsIcon = () => (
<div className="control__icon">
<IconButton
icon={ <MdSettings /> }
invers... |
client/src/components/app_bar/AppBar.js | thewizardplusplus/vk-group-stats | import React from 'react'
import {DrivedSideMenuButton} from '../../containers/drived_side_menu_button/DrivedSideMenuButton'
import {DrivedMainMenu} from '../../containers/drived_main_menu/DrivedMainMenu'
import ApplicationBar from 'material-ui/AppBar'
import IconButton from '../icon_button/IconButton'
export default ... |
src/components/REPLResult.js | pcardune/pyret-ide | import React from 'react';
import REPLValue from './REPLValue';
export default class REPLResult extends React.Component {
render() {
return (
<div>
<REPLValue reprValue={this.props.result} />
</div>
);
}
}
REPLResult.propTypes = {
result: React.PropTypes.any,
};
|
src/containers/Login/Login.js | baruinho/cashier | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Redirect } from 'react-router-dom';
import { Field, reduxForm } from 'redux-form';
import * as actions from '../../redux/modules/login/actions';
import { getToken, getError, getLoading } from '../../redux/modules/login/reducer';
... |
src/ModalDialog.js | apisandipas/react-bootstrap | /*eslint-disable react/prop-types */
import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const ModalDialog = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
/**
* A Callback fired when the header closeButton or non-static backdrop is c... |
WasteAppMini/js/AppNavigator.js | airien/workbits |
import React, { Component } from 'react';
import { BackAndroid, StatusBar, NavigationExperimental } from 'react-native';
import { connect } from 'react-redux';
import { Drawer } from 'native-base';
import { actions } from 'react-native-navigation-redux-helpers';
import { closeDrawer } from './actions/drawer';
import... |
spec/EmptyReactComponent.js | mbrio/react-pipeline | import React from 'react';
export default class EmptyReactComponent extends React.Component {
static propTypes = {
children: React.PropTypes.oneOfType([
React.PropTypes.arrayOf(React.PropTypes.node),
React.PropTypes.node
])
};
render() {
return (<div>{this.props.children}</div>);
}
}
|
docs/app/Examples/elements/Reveal/Types/RevealExampleMoveDown.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Image, Reveal } from 'semantic-ui-react'
const RevealExampleMoveDown = () => (
<Reveal animated='move down'>
<Reveal.Content visible>
<Image src='http://semantic-ui.com/images/wireframe/square-image.png' size='small' />
</Reveal.Content>
<Reveal.Content hidden>
... |
src/containers/NewsListItem.js | vladpolonskiy/news-feed-react-redux | import React from 'react';
import News from '../components/News';
import NewsCommentAdd from '../components/NewsCommentAdd';
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';
import * as actionCreators from '../actions/ActionCreators';
class NewsListItem extends React.Component {
construc... |
stories/Dropdown/index.js | skyiea/wix-style-react | import React from 'react';
import {storiesOf} from '@storybook/react';
import Markdown from '../utils/Components/Markdown';
import CodeExample from '../utils/Components/CodeExample';
import Readme from '../../src/Dropdown/README.md';
import ReadmeTestkit from '../../src/Dropdown/README.TESTKIT.md';
import TabbedView fr... |
src/example/Example.js | remedux/subscription-container | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
const appRoot = document.createElement('div');
appRoot.id = 'app';
document.body.appendChild(appRoot);
ReactDOM.render(<App />, appRoot);
|
admin/client/components/Popout.js | Ftonso/keystone | import React from 'react';
import Portal from './Portal';
import Transition from 'react-addons-css-transition-group';
const sizes = {
arrowHeight: 12
};
var Popout = React.createClass({
displayName: 'Popout',
propTypes: {
isOpen: React.PropTypes.bool,
onCancel: React.PropTypes.func,
onSubmit: React.PropTypes... |
src/containers/views/Configuration.js | jekyll/jekyll-admin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { withRouter } from 'react-router';
import { HotKeys } from 'react-hotkeys';
import DocumentTitle from 'react-document-title';
import DataGUI from '../.... |
app/client/containers/Root.dev.js | paulrosania/cartographer | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import App from './App';
import DevTools from './DevTools';
export default class Root extends Component {
render() {
const { store } = this.props;
return (
<Provider store={store}>
<div>
<App />
... |
src/components/my/namespaced/components/NameComponent.js | liyangda/gallery-by-react | 'use strict';
import React from 'react';
require('styles/my/namespaced/components/Name.css');
let NameComponent = (props) => (
<div className="name-component">
Please edit src/components/my/namespaced/components//NameComponent.js to update this component!
</div>
);
NameComponent.displayName = 'MyNamespacedC... |
ds-cloud-music/src/components/list/index.js | Carl-DS/ds-frontend | import React from 'react'
import LazyLoad from "react-lazyload";
import { getCount } from "../../api/utils";
import {ListWrapper, List, ListItem} from "./style"
import { withRouter } from 'react-router-dom';
function RecommendList(props) {
const {recommendList} = props;
const enterDetail = (id) => {
props.his... |
frontend/node_modules/recharts/demo/component/ResponsiveContainer.js | justdotJS/rowboat | import React, { Component } from 'react';
import { changeNumberOfData } from './utils';
import { AreaChart, Area, XAxis, YAxis, Tooltip, CartesianGrid,
Line, LineChart, Legend, ResponsiveContainer, PieChart, Pie, Bar,
BarChart, Cell, RadarChart, Radar, PolarGrid, PolarAngleAxis, PolarRadiusAxis, ComposedChart,
Ra... |
scripts/index.js | SwordSoul/testpage | import 'styles/app.sass';
import React from 'react';
import Router from 'react-router';
import AppRoutes from 'app/appRoutes';
window.React = React;
Router
.create({
routes: AppRoutes,
scrollBehavior: Router.ScrollToTopBehavior
})
.run(Handler => {
React.render(<Handler/>,
document.getElemen... |
src/js/components/roles/NodesAssignment.js | knowncitizen/tripleo-ui | /**
* Copyright 2017 Red Hat Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
packages/bonde-admin/src/components/await/loading.js | ourcities/rebu-client | import React from 'react'
import classnames from 'classnames'
const Loading = ({ localized, backgroundColor, loaderColor, className }) => (
<div
className={classnames(
{ absolute: localized, fixed: !localized },
'top-0 right-0 bottom-0 left-0 z9',
className
)}
style={{ backgroundColor }... |
src/components/MultiStepForm/MultiStepForm.js | goldylucks/adamgoldman.me | import React from 'react'
import PropTypes from 'prop-types'
import ReactStars from 'react-stars'
import _ from 'lodash'
import DontReRender from './DontReRender'
import {
stateForGoToStep,
stateForBack,
stateForStepInputChange,
stateForReviewRating,
replaceVarsUtil,
initialAnswerByStepState,
scrollTop,
... |
code/workspaces/web-app/src/pages/PublishingPage.js | NERC-CEH/datalab | import React from 'react';
import PropTypes from 'prop-types';
import SiteContainer from '../containers/sites/SitesContainer';
import Page from './Page';
const PublishingPage = ({ userPermissions }) => (
<Page title="Sites">
<SiteContainer userPermissions={userPermissions} />
</Page>
);
PublishingPage.propTyp... |
app/javascript/mastodon/features/notifications/components/notification.js | sylph-sin-tyaku/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import StatusContainer from '../../../containers/status_container';
import AccountContainer from '../../../containers/account_container';
import { injectIntl, FormattedMessage } from 'react-intl';
... |
app/components/pipeline/schedules/Index/index.js | buildkite/frontend | import React from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import DocumentTitle from 'react-document-title';
import Panel from 'app/components/shared/Panel';
import Button from 'app/components/shared/Button';
import permissions from 'app/lib/permissions';
import Row from '... |
zoho-experiments/app/containers/ProductsPage/index.js | glandre/prototypes | import React from 'react'
import { connect } from 'react-redux'
import { compose } from 'redux'
import { createStructuredSelector } from 'reselect'
import injectReducer from 'utils/injectReducer'
import injectSaga from 'utils/injectSaga'
import { Helmet } from 'react-helmet'
import CenteredSection from '../HomePage/... |
src/frontend/index.js | jozsi/mystash | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
examples/js/column-format/html-column-format-table.js | neelvadgama-hailo/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-unused-vars: 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;
p... |
src/svg-icons/action/gavel.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionGavel = (props) => (
<SvgIcon {...props}>
<path d="M1 21h12v2H1zM5.245 8.07l2.83-2.827 14.14 14.142-2.828 2.828zM12.317 1l5.657 5.656-2.83 2.83-5.654-5.66zM3.825 9.485l5.657 5.657-2.828 2.828-5.657-5.657z... |
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store/source/src/app/components/Apis/Listing/ApiProgress.js | thusithak/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... |
src/sections/Replay/Uploader/index.js | socialgorithm/ultimate-ttt-web | import React from 'react';
import PropTypes from 'prop-types';
import { Header, Icon, Segment, Message } from 'semantic-ui-react';
import Dropzone from 'react-dropzone';
import './index.scss';
class Uploader extends React.Component {
constructor(props) {
super(props);
this.state = {
file: null,
... |
examples/combobox.js | eternalsky/select | /* eslint no-console: 0 */
import React from 'react';
import ReactDOM from 'react-dom';
import Select, { Option } from 'rc-select';
import 'rc-select/assets/index.less';
class Demo extends React.Component {
state = {
disabled: false,
value: '',
};
onChange = (value) => {
this.setState({
value... |
app/javascript/mastodon/components/radio_button.js | tri-star/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default class RadioButton extends React.PureComponent {
static propTypes = {
value: PropTypes.string.isRequired,
checked: PropTypes.bool,
name: PropTypes.string.isRequired,
onChange: PropTypes.... |
src/components/IFrame/index.js | oneteam-dev/draft-js-oneteam-rte-plugin | import React from 'react';
import unionClassNames from 'union-class-names';
import { cssToObject } from '../../helpers/dom';
const IFrame = (props) => {
const {
contentState,
block,
className,
theme = {},
...otherProps
} = props;
const {
blockProps, // eslint-disable-line no-unused-vars
... |
nlyyAPP/component/受试者随机/查阅退出或完成例数分布/MLCytchwclsfbZX.js | a497500306/nlyy_APP |
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity,
Navigator,
ScrollView,
Alert,
Platform,
DatePickerAndroid,
DatePickerIOS,
Mo... |
redux/components/TodoList.js | gongmingqm10/EggHead | import React from 'react';
import Todo from './Todo';
const getVisibleTodos = (todos, filter) => {
switch(filter) {
case 'SHOW_ALL':
return todos;
case 'SHOW_COMPLETED':
return todos.filter(todo => todo.completed);
case 'SHOW_UNCOMPLETED':
return todos.filter(todo => !todo.completed);
... |
src/client/order/stepSpinner.js | r3dDoX/geekplanet | import PropTypes from 'prop-types';
import React from 'react';
import styled from 'styled-components';
import MainSpinner from '../layout/mainSpinner';
const MainSpinnerContainer = styled.div`
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: rgba(255, 255, 255, 0.8);
cursor: in... |
src/containers/Menus.js | namelos/react-demo | import React, { Component } from 'react';
import { Paper, List, ListItem, ListDivider, } from 'material-ui'
import Item from '../components/Item';
import { Link } from 'react-router';
export default class Menus extends Component {
render = () => <List style={ styles } >
<Link to="/home"><ListItem primaryText="Re... |
docs/src/pages/demos/steppers/DotsMobileStepper.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import MobileStepper from 'material-ui/MobileStepper';
import Button from 'material-ui/Button';
import KeyboardArrowLeft from '@material-ui/icons/KeyboardArrowLeft';
import KeyboardArrowRight from '@material-... |
docs/app/Examples/views/Item/Variations/Alignment.js | ben174/Semantic-UI-React | import React from 'react'
import { Item } from 'semantic-ui-react'
const { Content, Group, Header, Image } = Item
const Alignment = () => (
<Group>
<Item>
<Image size='small' src='http://semantic-ui.com/images/wireframe/image.png' />
<Content verticalAlign='top'>
<Header>Top Aligned</Header... |
app/javascript/mastodon/components/short_number.js | tootcafe/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { toShortNumber, pluralReady, DECIMAL_UNITS } from '../utils/numbers';
import { FormattedMessage, FormattedNumber } from 'react-intl';
// @ts-check
/**
* @callback ShortNumberRenderer
* @param {JSX.Element} displayNumber Number to display
* @para... |
src/parser/rogue/assassination/modules/talents/Nightstalker.js | FaideWW/WoWAnalyzer | import React from 'react';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER';
import ItemDamageDone from 'interface/others/ItemDamageDone';
import SPELLS from 'common/SPELLS';
import calculateEffectiveDamage from 'parser/core/calculateE... |
assets/javascript/components/app/app.js | colinjeanne/learning-site | import Activities from './../activities/container';
import Constants from './../../constants/constants';
import EditActivity from './../editActivity/container';
import Header from './header.js';
import Progress from './../progress/container';
import Profile from './../profile/container';
import React from 'react';
impo... |
react-router/components/About.js | ybbkrishna/flux-examples | /**
* Copyright 2014, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
import React from 'react';
class About extends React.Component {
render() {
return <p>This is a description of the site.</p>;
}
}
export default About;
|
packages/lightning-forms/components/Form.js | DaReaper/lightning-app | /* eslint-disable react/forbid-prop-types */
import React from 'react'
import _ from 'lodash'
import reactCSS from 'reactcss'
import { connect } from 'react-redux'
import { actions, selectors } from '../reducer'
import Field from './Field'
const validate = fields => new Promise((resolve, reject) => {
const errors ... |
src/svg-icons/action/fingerprint.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFingerprint = (props) => (
<SvgIcon {...props}>
<path d="M17.81 4.47c-.08 0-.16-.02-.23-.06C15.66 3.42 14 3 12.01 3c-1.98 0-3.86.47-5.57 1.41-.24.13-.54.04-.68-.2-.13-.24-.04-.55.2-.68C7.82 2.52 9.86 2 12... |
webapp/src/containers/search/categoryLabel.js | alliance-genome/agr | import React, { Component } from 'react';
import style from './style.css';
import { CATEGORIES } from '../../constants';
class CategoryLabel extends Component {
getCurrentOption() {
let current = CATEGORIES.filter( d => d.name === this.props.category )[0];
return current;
}
renderSprite() {
let cur... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.