path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/containers/HomeContainer/index.js | morrishopkins/test_spa | import React from 'react';
/* components */
import { Home } from '../../components/Home';
export const HomeContainer = () =>
<section>
<Home />
</section>;
|
docs/src/Anchor.js | omerts/react-bootstrap | import React from 'react';
const Anchor = React.createClass({
propTypes: {
id: React.PropTypes.string
},
render() {
return (
<a id={this.props.id} href={'#' + this.props.id} className='anchor'>
<span className='anchor-icon'>#</span>
{this.props.children}
</a>
);
}
});
e... |
src/svg-icons/communication/call-made.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallMade = (props) => (
<SvgIcon {...props}>
<path d="M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z"/>
</SvgIcon>
);
CommunicationCallMade = pure(CommunicationCallMade);
CommunicationCallMade.displ... |
src/index.js | pjkarlik/Glob | require('console-polyfill');
import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import { Router, useRouterHistory } from 'react-router';
import { createHistory } from 'history';
const history = useRouterHistory(createHistory)({ basename: window.baseName || '/' });
/**
Entry Point... |
data-browser-ui/public/app/components/tableComponents/td/listComponents/fileList.js | CloudBoost/cloudboost | import React from 'react';
import ReactDOM from 'react-dom';
import CONFIG from '../../../../config/app.js'
import Axios from 'axios'
class FileListComponent extends React.Component {
constructor() {
super()
this.state = {
filePreview: {},
isModalOpen: false
}
}
deleteValue() {
this.props.removeFromEl... |
app/packs/src/components/research_plan/ResearchPlanDetailsDropTarget.js | ComPlat/chemotion_ELN | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { DropTarget } from 'react-dnd';
import DragDropItemTypes from '../DragDropItemTypes';
const spec = {
drop(props) {
return {
index: props.index
};
}
};
const collect = (connect, monitor) => ({
connectDropTarget: c... |
client/src/components/FileIcon.js | ArnaultNouvel/webmail4dev | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
// from free icon pack https://raw.githubusercontent.com/Keyamoon/IcoMoon-Free/master/SVG/037-file-empty.svg
let FileIcon = (props) => (
<SvgIcon {...props}>
<svg version="1.1" xmlns="http://www.w3.org/2000/... |
app/components/roster/Dropdown.js | opensprints/opensprints-electron | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
class Dropdown extends Component {
static propTypes = {
value: PropTypes.any.isRequired,
placeholder: PropTypes.string.isRequired,
options: PropTypes.array.isRequired,
onChange: PropType... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/FlowNone.js | MichaelDeBoey/flow | import React from 'react';
class MyComponent extends React.Component<DefaultProps, Props, State> {
static defaultProps: DefaultProps = {};
state: State = {};
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extends React.Compon... |
src/js/components/icons/base/AccessSign.js | odedre/grommet-final | /**
* @description AccessSign SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* ... |
app/components/common/Footer/FooterContainer.js | mswiszcz/pagebuilder | // @flow
import React, { Component } from 'react';
import { Link } from 'react-router';
import styles from './FooterContainer.css';
export default class FooterContainer extends Component {
render() {
return (
<div className={styles.footerContainer}>
{ this.props.children }
</div>
);
}
}... |
client/src/components/pages/contact-page.js | joshuaslate/mern-starter | import React, { Component } from 'react';
import { reduxForm } from 'redux-form';
import { sendContactForm } from '../../actions/index';
class ContactPage extends Component {
handleFormSubmit({ firstName, lastName, emailAddress, subject, message }) {
this.props.sendContactForm({ firstName, lastName, emailAddress... |
src/components/Feedback/Feedback.js | barretts/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback extends Component {
render() {
return (
<div className="Feedback... |
docs/src/app/components/pages/components/Paper/ExampleRounded.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 PaperExampleRounded = () => (
<div>
<Paper style={style} zDepth={1} rounded={false} />
<Paper style={style} zDepth={2} round... |
server/controllers/serverRender.js | SuperUncleCat/ServerMonitoring | import React from 'react'
import { RouterContext } from 'react-router'
import { renderToString } from 'react-dom/server'
import { Provider } from 'react-redux'
import configureStore from '../../client/store/configureStore'
const store = configureStore()
export default async(ctx, next, renderProps) => {
con... |
packages/material-ui-icons/src/Filter4.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Filter4 = props =>
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-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 16H7V3h14v14... |
src/Tooltip.js | lo1tuma/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import FadeMixin from './FadeMixin';
const Tooltip = React.createClass({
mixins: [BootstrapMixin, FadeMixin],
propTypes: {
placement: React.PropTypes.oneOf(['top', 'right', 'bottom', 'left']),
po... |
webpack/containers/CodedSetTableEditContainer.js | CDCgov/SDP-Vocabulary-Service | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import {Modal, Checkbox, Button, ControlLabel, FormGroup, InputGroup, DropdownButton, MenuItem} from 'react-bootstrap';
import Autocomplete from 'react-autocom... |
utils/logProps.js | isogon/styled-mdl-website | import React from 'react'
const logProps = (Component) => (props) => {
console.dir(props)
return <Component {...props} />
}
export default logProps
|
src/index.js | xhayeck/crimeData | import 'babel-polyfill';
import React from 'react';
import {render} from 'react-dom';
import {Provider} from 'react-redux';
import {Router, browserHistory} from 'react-router';
import routes from './routes.js';
import configureStore from './store/configureStore';
import {syncHistoryWithStore} from 'react-router-redux';... |
app/javascript/mastodon/components/setting_text.js | Chronister/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
export default class SettingText extends React.PureComponent {
static propTypes = {
settings: ImmutablePropTypes.map.isRequired,
settingKey: PropTypes.array.isRequired,
label: PropT... |
client/components/basic/Buttons/ActionButton.js | iiet/iiet-chat | import React from 'react';
import { Button, Icon } from '@rocket.chat/fuselage';
// TODO fuselage
export const ActionButton = ({ icon, ...props }) => <Button {...props} square ghost small flexShrink={0}><Icon name={icon} size='x20'/></Button>;
|
app/components/ProgressBar/ProgressBar.js | acebusters/ab-web | import React from 'react';
import PropTypes from 'prop-types';
import Wrapper from './Wrapper';
import Percent from './Percent';
class ProgressBar extends React.Component {
static defaultProps = {
progress: 0,
};
constructor(props) {
super(props);
this.state = {
progress: 0,
timer: nul... |
app/containers/NotFoundPage/index.js | react-boilerplate/react-boilerplate | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
import H1 from 'components/H1';
import messages from './messages';
export default function NotFound() {
return (
<article>
... |
demo/public/component/ListView.js | ev-ui/ev-ui | import React from 'react'
import {render} from 'react-dom'
import styled from 'styled-components'
import Card from '__public/component/Card'
import {Radio,Button,Icon,Popover} from 'antd'
const RadioGroup=Radio.Group;
const RadioButton=Radio.Button;
const Root=styled(Card)`
box-shadow:none;
background:rgba(23... |
src/index.js | chrisalat/webpack-example |
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('app'));
|
src/interface/home/ChangelogPanel.js | FaideWW/WoWAnalyzer | import React from 'react';
import CORE_CHANGELOG from 'CHANGELOG';
import AVAILABLE_CONFIGS from 'parser/AVAILABLE_CONFIGS';
import Changelog from './Changelog';
class ChangelogPanel extends React.PureComponent {
constructor() {
super();
this.state = {
expanded: false,
changelogType: 0,
};
... |
stories/examples/TableHover.js | reactstrap/reactstrap | import React from 'react';
import { Table } from 'reactstrap';
const Example = (props) => {
return (
<Table hover>
<thead>
<tr>
<th>#</th>
<th>First Name</th>
<th>Last Name</th>
<th>Username</th>
</tr>
</thead>
<tbody>
<tr>
... |
react-redux-demo/todos-with-undo/src/components/App.js | fengnovo/webpack-react | import React from 'react'
import Footer from './Footer'
import AddTodo from '../containers/AddTodo'
import VisibleTodoList from '../containers/VisibleTodoList'
import UndoRedo from '../containers/UndoRedo'
const App = () => (
<div>
<AddTodo />
<VisibleTodoList />
<Footer />
<UndoRedo />
</div>
)
e... |
docs/app/Examples/modules/Sidebar/SlideAlong/index.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const SidebarVariationsExamples = () => (
<ExampleSection title='Slide Along'>
<ComponentExample
title='Left Slide Along'
... |
src/svg-icons/av/add-to-queue.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvAddToQueue = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-7v2h-3v3h-2v-3H8v-2h3V7h2v3h3z"/>
... |
lesson-2/idea-journal/src/components/Header.js | msd-code-academy/lessons | import React from 'react'
import NewNoteModal from './NewNoteModal'
import logo from '../logo.png'
import '../styles/Header.css'
class Header extends React.Component {
render() {
const {...props} = this.props
return (
<div className="Header">
<div className="Header-logo">
<img src={logo} alt="logo" /... |
src/utils/childrenValueInputValidation.js | jamon/react-bootstrap | import React from 'react';
import { singlePropFrom } from './CustomPropTypes';
const propList = ['children', 'value'];
const typeList = [React.PropTypes.number, React.PropTypes.string];
export default function valueValidation(props, propName, componentName) {
let error = singlePropFrom(propList)(props, propName, co... |
src/components/InputRangeField/index.js | Adphorus/react-date-range | import React, { Component } from 'react';
import PropTypes from 'prop-types';
const MIN = 0;
const MAX = 99999;
class InputRangeField extends Component {
constructor(props, context) {
super(props, context);
}
shouldComponentUpdate(nextProps) {
const { value, label, placeholder } = this.props;
retu... |
src/js/func/FuncDesc.js | mtford90/brio | import React from 'react';
export default class FuncDesc extends React.Component {
render() {
var desc = this.props.description;
return (
<p className="func-desc">
{desc}
</p>
);
}
} |
src/routes/Routes/components/Routes/Routes.js | janoist1/route-share | import React from 'react'
import PropTypes from 'prop-types'
import { Button } from 'reactstrap'
import RouteEditor from '../../components/RouteEditor'
import './Routes.scss'
class Routes extends React.Component {
static propTypes = {
editing: PropTypes.bool.isRequired,
routes: PropTypes.array.isRequired,
... |
src/svg-icons/notification/rv-hookup.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationRvHookup = (props) => (
<SvgIcon {...props}>
<path d="M20 17v-6c0-1.1-.9-2-2-2H7V7l-3 3 3 3v-2h4v3H4v3c0 1.1.9 2 2 2h2c0 1.66 1.34 3 3 3s3-1.34 3-3h8v-2h-2zm-9 3c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1... |
src/pages/news/News.js | HeliumLau/Hoop-react | import React from 'react';
import { Link } from 'react-router';
import './News.less'
export default class News extends React.Component {
componentDidMount() {
console.log('haha');
console.log(require('./test.js').default);
}
render() {
return (
<div>
<n... |
ajax/libs/react-instantsearch/5.0.0/Dom.js | extend1994/cdnjs | /*! ReactInstantSearch 5.0.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
... |
docs/app/Examples/collections/Breadcrumb/Variations/BreadcrumbExampleTinySize.js | koenvg/Semantic-UI-React | import React from 'react'
import { Breadcrumb } from 'semantic-ui-react'
const BreadcrumbExampleTinySize = () => (
<Breadcrumb size='tiny'>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider icon='right chevron' />
<Breadcrumb.Section link>Registration</Breadcrumb.Section>
<Breadc... |
src/Validated.js | technicallyjosh/react-validator | import React from 'react';
export default class Validated extends React.Component {
constructor(props) {
super(props);
this.state = { isValid: false };
}
onValidate(value) {
const {
validator,
validators,
validationKey,
onValidate: v... |
app/javascript/mastodon/features/notifications/components/column_settings.js | increments/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage } from 'react-intl';
import ClearColumnButton from './clear_column_button';
import SettingToggle from './setting_toggle';
export default class ColumnSettings extends Reac... |
src/components/Main.js | kimochg/react-native-githubnote-app | /*
* @Author: LIU CHENG
* @Date: 2017-02-21 22:16:42
* @Last Modified by: LIU CHENG
* @Last Modified time: 2017-03-05 11:46:44
*/
import React from 'react';
import {
StyleSheet,
View,
Text,
TextInput,
TouchableHighlight,
ActivityIndicator
} from 'react-native';
/**
* props:
* title: text title,
... |
src/svg-icons/av/fiber-pin.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFiberPin = (props) => (
<SvgIcon {...props}>
<path d="M5.5 10.5h2v1h-2zM20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zM9 11.5c0 .85-.65 1.5-1.5 1.5h-2v2H4V9h3.5c.85... |
webpack/scenes/ContentViews/Details/ComponentContentViews/ComponentVersion.js | Katello/katello | import React from 'react';
import PropTypes from 'prop-types';
import { urlBuilder } from 'foremanReact/common/urlHelpers';
import { translate as __ } from 'foremanReact/common/I18n';
import {
Text,
TextContent,
TextVariants,
} from '@patternfly/react-core';
const ComponentVersion = ({ componentCV }) => {
cons... |
src/Parts/MixPart/index.js | sqhtiamo/zaro | import React, { Component } from 'react';
import { PropTypes } from 'prop-types';
import { Button } from '../../Components/';
import { Base } from '../../utils/';
class Mix extends Component {
constructor(props) {
super(props);
const optiondata = this.props.option.data;
this.state = {
comdata: [...... |
src/encoded/static/components/item-pages/UserView.js | hms-dbmi/fourfront | /** @preventMunge */
/* ^ see http://stackoverflow.com/questions/30110437/leading-underscore-transpiled-wrong-with-es6-classes */
'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import Modal from 'react-bootstrap/esm/Modal';
import FormControl from 'react-boots... |
Gryffindor/app/containers/Panel.js | Acheron-VAF/Acheron | import React, { Component } from 'react';
import Radium, { Style } from 'radium';
import {StyleRoot} from 'radium';
class Panel extends Component {
constructor(props) {
super(props);
this.state = {};
}
getStyles() {
const bgcolor = {
default: "#202020"
}
return {
si... |
packages/xo-web/src/xo-app/hub/templates/resource-form.js | vatesfr/xo-web | import * as FormGrid from 'form-grid'
import _ from 'intl'
import decorate from 'apply-decorators'
import defined from '@xen-orchestra/defined'
import Icon from 'icon'
import React from 'react'
import SingleLineRow from 'single-line-row'
import Tooltip from 'tooltip'
import { Container, Col } from 'grid'
import { isEmp... |
src/containers/layout/footer.js | vFujin/HearthLounge | import React from 'react';
import {Link} from 'react-router-dom';
import Icon from "../../components/icon";
const IconWithUrl = ({name, url, title}) => {
return (
<a href={url}
target="_blank"
rel="noopener noreferrer">
<Icon name={name}
tooltip={true}
titl... |
modules/gui/src/app/home/body/process/recipe/opticalMosaic/scenePreview.js | openforis/sepal | import {Panel} from 'widget/panel/panel'
import {RecipeActions} from 'app/home/body/process/recipe/opticalMosaic/opticalMosaicRecipe'
import {compose} from 'compose'
import {getDataSet} from './sources'
import {msg} from 'translate'
import {selectFrom} from 'stateUtils'
import {withRecipe} from 'app/home/body/process/r... |
docs/src/examples/elements/Image/Types/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
import { Message } from 'semantic-ui-react'
const ImageTypesExamples = () => (
<ExampleSection title='Types'>
<ComponentExample
... |
client/app/components/RestaurantPage/Common/RestaurantHeader.js | maekks/menu-plus | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
// material-ui
import Paper from 'material-ui/Paper';
// For Business User
import RestaurantInfoEdit from 'components/RestaurantPage/Business/RestaurantInfoEdit';
// For Customer User
import FavoriteButton from './Fav... |
client/modules/core/components/ui/grid.js | jshimko/home-dash | import React from 'react';
import classNames from 'classnames';
import _ from 'lodash';
const Grid = () => {
const containerClass = this.props.fluid ? 'container-fluid' : 'container';
const classes = classNames(this.props.className, containerClass);
const props = _.omit(this.props, ['className', 'children']);
... |
frontend/app/components/VisibilitySelect/VisibilitySelectPresentation.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
import MenuItem from '@material-ui/core/MenuItem'
import FormControl from '@material-ui/core/FormControl'
import Select from '@material-ui/core/Select'
import VisibilityOffIcon from '@material-ui/icons/VisibilityOff'
import GroupIcon from '@material-ui/icons... |
index.ios.js | BinaryNate/voxophone-react-native | import React, { Component } from 'react';
import { AppRegistry } from 'react-native';
import DependencyBuilder from './app/DependencyBuilder';
import Navigator from './app/Navigator';
const dependencies = DependencyBuilder.buildDependencies()
class VoxophoneApp extends Component {
render() {
return (<Navi... |
blueocean-material-icons/src/js/components/svg-icons/av/hearing.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvHearing = (props) => (
<SvgIcon {...props}>
<path d="M17 20c-.29 0-.56-.06-.76-.15-.71-.37-1.21-.88-1.71-2.38-.51-1.56-1.47-2.29-2.39-3-.79-.61-1.61-1.24-2.32-2.53C9.29 10.98 9 9.93 9 9c0-2.8 2.2-5 5-5s5 2.2 5 5h2c0-3.93-3.07-7-7-7S7 5.07 7 ... |
definitions/npm/react-css-modules_v3.x.x/flow_v0.32.x-v0.52.x/test_react-css-modules-v3.js | hansonw/flow-typed | // @flow
import React, { Component } from 'react';
import CSSModules from 'react-css-modules';
const styles = { test: '123' };
class ExampleModule extends Component {
props: {
foo: string,
styles: typeof styles,
};
render() {
return <div className={this.props.styles}>{this.props.foo}</div>;
}
}
... |
assets/js/app.js | ChatRunner/ChatRunner | // import * as $ from 'jquery'
import ReactDOM from 'react-dom'
import FontAwesome from 'react-fontawesome'
import React from 'react'
import {Col, Grid} from 'react-bootstrap'
import fire from 'fire'
ReactDOM.render(
<Grid><Col lg={8}>
<h1>Hello, world!</h1>
<h3>Requirements:</h3>
<ul>
... |
client/components/Root.js | davidjoy/react-et-al-boilerplate | import React, { Component } from 'react';
import { createStore, compose } from 'redux';
import { Provider } from 'react-redux'
import { ReduxRouter, reduxReactRouter } from 'redux-router';
import { Route } from 'react-router';
import { devTools } from 'redux-devtools';
import { DevTools, DebugPanel, LogMonitor } from '... |
app/components/cache/cache.js | ritishgumber/dashboard-ui | /**
* Created by Darkstar on 11/29/2016.
*/
import React from 'react';
import {connect} from 'react-redux';
import Toolbar from '../toolbar/toolbar.js';
import Footer from '../footer/footer.jsx';
import FirstDisplay from './firstDisplay.js'
import CacheCRUD from './cacheCRUD.js'
import {fetchCache,resetCacheState} fr... |
src/components/views/under-user-view.js | HuangXingBin/goldenEast | import React from 'react';
import { Table, Button } from 'antd';
import weiGuDong from '../../appConstants/assets/images/微股东.png';
import normalCard from '../../appConstants/assets/images/普卡.png';
import silverCard from '../../appConstants/assets/images/银卡.png';
import goldenCard from '../../appConstants/assets/images/... |
docs/src/SupportPage.js | azmenak/react-bootstrap | import React from 'react';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
export default class Page extends React.Component {
render() {
return (
<div>
<NavMain activePage="support" />
<PageHeader
title="Nee... |
docs/src/Root.js | Terminux/react-bootstrap | import React from 'react';
const Root = React.createClass({
statics: {
/**
* Get the list of pages that are renderable
*
* @returns {Array}
*/
getPages() {
return [
'index.html',
'introduction.html',
'getting-started.html',
'components.html',
... |
app/javascript/mastodon/features/standalone/hashtag_timeline/index.js | musashino205/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { expandHashtagTimeline } from 'mastodon/actions/timelines';
import Masonry from 'react-masonry-infinite';
import { List as ImmutableList } from 'immut... |
src/encoded/static/components/cart/max_elements_warning.js | ENCODE-DCC/encoded | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Modal, ModalHeader, ModalBody, ModalFooter } from '../../libs/ui/modal';
import { triggerAlert } from './actions';
import { CART_MAX_ELEMENTS } from './util';
/**
* Display a modal warning the user that the... |
node_modules/react-bootstrap/es/HelpBlock.js | NathanBWaters/jb_club | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
packages/material-ui-icons/src/SignalCellular3BarRounded.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M4.41 22H20c1.1 0 2-.9 2-2V4.41c0-.89-1.08-1.34-1.71-.71L3.71 20.29c-.63.63-.19 1.71.7 1.71z" /><path d="M17 7L3.71 20.29c-.63.63-.19 1.71.7 1.71H17V7z" /></React.Frag... |
packages/slate-react/src/components/node.js | AlbertHilb/slate |
import Debug from 'debug'
import ImmutableTypes from 'react-immutable-proptypes'
import React from 'react'
import SlateTypes from 'slate-prop-types'
import logger from 'slate-dev-logger'
import Types from 'prop-types'
import Void from './void'
import Text from './text'
/**
* Debug.
*
* @type {Function}
*/
const... |
src/svg-icons/action/hourglass-full.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHourglassFull = (props) => (
<SvgIcon {...props}>
<path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6z"/>
</SvgIcon>
);
ActionHourglassFull = pure(ActionHour... |
node_modules/react-bootstrap/es/Popover.js | geng890518/editor-ui | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/components/common/Donate.js | RanjithNair/RJTube | import React from 'react'
const Donate = () =>
<form
action='https://www.paypal.com/cgi-bin/webscr'
method='post'
target='_top'>
<input type='hidden' name='cmd' value='_s-xclick' />
<input
type='hidden'
name='encrypted'
value='-----BEGIN PKCS7-----MIIHJwYJKoZIhvcNAQcEoIIHGDCCBxQ... |
packages/wix-style-react-test-runtime/src/es-named/index.js | wix/wix-style-react | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
app/components/pages/Organize/Steps/StyleAddPhoto.js | romainquellec/cuistot | import React from 'react';
import styled from 'styled-components';
function StyleAddPhoto(props) {
const AddPhoto = styled.div`
display: inline-blolck;
width: ${props.width}px;
height: ${props.height}px;
border: dashed 2px #a9a9a9;
border-radius: 4px;
`;
return (
<div>
<AddPhoto>
... |
src/routes.js | esbb48/react-demo | import React from 'react';
import { Route } from 'react-router';
import App from './containers/App';
import * as containers from './containers';
const {
Todo,
} = containers;
export default (
<Route component={App}>
<Route path="/" component={Todo} />
</Route>
);
|
client/components/AuthFormLogin.js | escape-hatch/escapehatch | import React from 'react';
import PropTypes from 'prop-types';
import signupLoginScss from './scss/SignupLogin.scss';
const AuthFormLogin = props => {
const { name, displayName, handleLoginSubmit, error, prevPath } = props;
return (
<div className="container">
<div className="row">
<div className="c... |
src/svg-icons/communication/dialer-sip.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationDialerSip = (props) => (
<SvgIcon {...props}>
<path d="M17 3h-1v5h1V3zm-2 2h-2V4h2V3h-3v3h2v1h-2v1h3V5zm3-2v5h1V6h2V3h-3zm2 2h-1V4h1v1zm0 10.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.01.24l-2.2 ... |
node_modules/antd/es/breadcrumb/BreadcrumbItem.js | yhx0634/foodshopfront | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/i... |
client/sources/ModalSource.js | gasman/wagtaildraftail | import PropTypes from 'prop-types';
import React from 'react';
import { AtomicBlockUtils, RichUtils } from 'draft-js';
const $ = global.jQuery;
class ModalSource extends React.Component {
constructor(props) {
super(props);
this.onClose = this.onClose.bind(this);
this.onConfirm = this.onConfirm.bind(this... |
examples/counter/containers/Root.js | vxsx/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import CounterApp from './CounterApp';
import configureStore from '../store/configureStore';
const store = configureStore();
export default class Root extends Component {
render() {
return (
<Provider store={store}>
... |
client/js/component/PersonAvatar.js | fupslot/linkmator | import React from 'react';
class PersonAvatar extends React.Component {
render() {
return (
<div className="PersonAvatar">
<img className="PersonAvatar__image" src={this.props.gravatarUrl} />
<div className="PersonAvatar__name">{this.props.fullName}</div>
</div>
);
}
}
PersonAv... |
resources/js/components/Marker/MarkerComponent.js | Stasgar/BugWall_Visual_Bugtracker | import React, { Component } from 'react';
import axios from 'axios';
class MarkerComponent extends React.Component {
constructor(props) {
super(props);
this.api = props.api;
this.comment_point = props.comment_point;
this.delete_href = this.api.getRouteObj('delete').getPath();
}
... |
lib/editor/components/question_editors/parts/IndividualNumberValidationRuleEditorPart.js | jirokun/survey-designer-js | /* eslint-env browser */
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Button, Glyphicon } from 'react-bootstrap';
import { List } from 'immutable';
import moment from 'moment';
import numbro from 'numbro';
import pikaday from 'pikaday';
import Zeroclipboard from 'zeroclipboa... |
public/js/signup/signupForm.js | RobertHebel/chatApp | import React from 'react';
import PropTypes from 'prop-types';
import isEmpty from 'lodash/isEmpty';
import validateInput from '../../../server/shared/validations/signup';
import TextFieldGroup from '../common/textFieldGroup';
import {withRouter} from 'react-router-dom';
class signupForm extends React.Component {
... |
src/Label.react.js | cpojer/hextrapolate | /**
* Copyright 2003-present Greg Hurrell. All rights reserved.
* Licensed under the terms of the MIT license.
*
* @flow
*/
'use strict';
import React from 'react';
export default class Label extends React.Component {
static propTypes = {
text: React.PropTypes.string.required,
};
render() {
retur... |
app/javascript/flavours/glitch/features/getting_started/index.js | Kirishima21/mastodon | import React from 'react';
import Column from 'flavours/glitch/features/ui/components/column';
import ColumnLink from 'flavours/glitch/features/ui/components/column_link';
import ColumnSubheading from 'flavours/glitch/features/ui/components/column_subheading';
import { defineMessages, injectIntl, FormattedMessage } fro... |
src/app/components/search/search.js | swcraftersclm/katangapp-frontend | /**
* Copyright 2016-today Software swcraftersclm
*
* 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 ... |
app/components/LoadingIndicator/index.js | likesalmon/likesalmon-react-boilerplate | import React from 'react';
import Circle from './Circle';
import Wrapper from './Wrapper';
const LoadingIndicator = () => (
<Wrapper>
<Circle />
<Circle rotate={30} delay={-1.1} />
<Circle rotate={60} delay={-1} />
<Circle rotate={90} delay={-0.9} />
<Circle rotate={120} delay={-0.8} />
<Cir... |
packages/react/components/subnavbar.js | AdrianV/Framework7 | import React from 'react';
import Utils from '../utils/utils';
import Mixins from '../utils/mixins';
import __reactComponentSlots from '../runtime-helpers/react-component-slots.js';
import __reactComponentSetProps from '../runtime-helpers/react-component-set-props.js';
class F7Subnavbar extends React.Component {
con... |
examples/universal/client/index.js | redux-china/redux | import 'babel-core/polyfill';
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import configureStore from '../common/store/configureStore';
import App from '../common/containers/App';
const initialState = window.__INITIAL_STATE__;
const store = configureStore(initi... |
docs/src/app/components/pages/components/DatePicker/ExampleSimple.js | hai-cea/material-ui | import React from 'react';
import DatePicker from 'material-ui/DatePicker';
/**
* The Date Picker defaults to a portrait dialog. The `mode` property can be set to `landscape`.
* You can also disable the Dialog passing `true` to the `disabled` property.
* To display the year selection first, set the `openToYearSelec... |
src/components/Feedback/Feedback.js | nicolascine/site | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import withStyles from 'isom... |
scripts/components/ControlPanel.js | jirivrany/react-video-example | /*eslint-disable no-unused-vars*/
'use strict';
import React from 'react';
import ProgressControl from '../components/ProgressControl';
export default React.createClass({
render: function() {
return (
<ProgressControl {...this.props} style={{width: this.props.vidWidth + 'px'}} />
);
... |
frontend/SPA_Restaurant/src/index.js | mmaguero/MII-SSBW16-17 | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/browser/auth/SignInError.js | skallet/este | // @flow
import type { State } from '../../common/types';
import React from 'react';
import errorMessages from '../../common/auth/errorMessages';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { firebaseMessages } from '../../common/lib/redux-firebase';
import {
Message,
... |
node_modules/react-bootstrap/es/MediaHeading.js | C0deSamurai/muzjiks | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
docs/src/app/components/pages/components/FlatButton/Page.js | mmrtnz/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 flatButtonReadmeText from './README';
import flatButtonExampleSimpleCode ... |
RNDemo/RNComment/node_modules/react-navigation/src/views/Drawer/DrawerNavigatorItems.js | 995996812/Web | /* @flow */
import React from 'react';
import { View, Text, Platform, StyleSheet } from 'react-native';
import TouchableItem from '../TouchableItem';
import type {
NavigationScreenProp,
NavigationState,
NavigationAction,
NavigationRoute,
Style,
} from '../../TypeDefinition';
import type { DrawerScene, Draw... |
src/components/App.js | salemdes/tinglado | import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { Layout } from './Layout';
import { IndexPage } from './IndexPage';
import { TheatrePlayPage } from './TheatrePlayPage';
import { NotFoundPage } from './NotFoundPage';
import theatrePlays from '../data/theatrePlays';
const renderIndex... |
src/components/type/Cite.js | ProAI/react-essentials | import React from 'react';
import PropTypes from 'prop-types';
import BaseText from '../../utils/rnw-compat/BaseText';
const propTypes = {
children: PropTypes.node.isRequired,
};
const Cite = React.forwardRef((props, ref) => (
<BaseText {...props} ref={ref} essentials={{ tag: 'cite' }} />
));
Cite.displayName = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.