code stringlengths 26 5k | intent stringlengths 3 2.56k |
|---|---|
/* eslint flowtype-errors/show-errors: 0 */
import React from 'react';
import { Switch, Route } from 'react-router';
import PropTypes from 'prop-types';
import App from './containers/App';
import BrowsePage from './containers/BrowsePage';
import GamePage from './containers/GamePage';
import CreateGamePage from './cont... | Imports the missing routes from the app and routes. |
/*
* React.js Starter Kit
* Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
'use strict';
//require('./NotFoundPage.less');
import React, { Component } from 'react... | Provides a generic wrapper for the missing page. |
import React, { Component } from 'react';
class Button extends Component {
handleClick(){
alert('戳我干嘛!');
}
render(){
const style = require('./button.less');
return (
<button className="my-button" onClick={this.handleClick.bind(this)}>
快戳我
</button>
);
}
}
export defau... | Button class. |
import React from 'react'
const Landing = React.createClass({
render() {
return (
<div>
<h1>Landing Page</h1>
<p>This page is only shown to unauthenticated users.</p>
<p>Partial / Lazy loading. Open the network tab while you navigate. Notice that only the required components are do... | The main function for the missing - components module. |
import React from 'react';
import { Link } from 'react-router';
import { RouteTransition } from 'react-router-transition';
export default React.createClass({
getInitialState(){
return {
photoCategories: [],
videoCategories: []
}
},
componentWillMount(){
fetch('http://localhost:... | The default implementation of the component which is rendered when a component is rendered. |
import kind from '@enact/core/kind';
import MoonstoneDecorator from '@enact/moonstone/MoonstoneDecorator';
import Panels from '@enact/moonstone/Panels';
import React from 'react';
import MainPanel from '../views/MainPanel';
import css from './App.less';
const App = kind({
name: 'App',
styles: {
css,... | export default MoonstoneDecorator |
import React from 'react';
import ReactDOM from 'react';
/**
* @param {ReactClass} Target The component that defines `onOutsideEvent` handler.
* @param {String[]} supportedEvents A list of valid DOM event names. Default: ['mousedown'].
* @return {ReactClass}
*/
export default (Target, supportedEvents = ['mousedown... | A component that defines onOutsideEvent handler. |
import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';
import getDefaultT from '../../../translate';
import theme from './SelectAll.scss';
function SelectAll({ id, items, isSelected, onToggleAll, t }) {
const isAllSelected = () => items.length > 0 && items.findIndex(item ... | The SelectAll component |
import React from 'react'
import { connect } from 'dva'
import NProgress from 'nprogress'
import Layout from '../components/layout/main.jsx'
const App = (props) => {
const {children, loading, location} = props
NProgress.start()
!loading.global && NProgress.done()
return (
<Layout children={children} locati... | export default component |
import React from 'react'
import { Grid, Col, Row } from 'react-bootstrap'
import CustomGrid from './components/GridControl/Grid'
import * as services from "../data/services"
export default class Quadrat extends React.Component {
constructor(props) {
super(props);
this.state = {
observ... | Component that displays a quadrat with no quadrat. |
import React from 'react';
import Relay from 'react-relay';
import MarkAllTodosMutation from '../mutations/MarkAllTodosMutation';
import Todo from './Todo';
class TodoList extends React.Component {
static propTypes = {
viewer: React.PropTypes.object.isRequired
};
onToggleAllChange = (e) => {
const {vi... | A component that can be used to display a list of all of the nodes in a hierarchy. |
import React from 'react'
import { Route } from 'react-router'
export const r = (path, component) => <Route path={path} component={component} />
| export from react - router |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsBackupRestore = (props) => (
<SvgIcon {...props}>
<path d="M14 12c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm-2-9c-4.97 0-9 4.03-9 9H0l4 4 4-4H5c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.51 0-2.... | A component that displays a series of action - specific icons. |
/* @flow */
import styled from '@emotion/styled';
import IconDelete from 'mineral-ui-icons/IconDelete';
import React from 'react';
import Button from '../../../../../../library/Button';
import Tooltip from '../../../../../../library/Tooltip';
import type { StyledComponent } from '@emotion/styled-base/src/utils';
const... | Package for the missing - components. |
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 ... | Creates a new radio with a label and a child. |
import React from 'react';
import {withInfo} from '@storybook/addon-info';
import {text} from '@storybook/addon-knobs';
import TagsTable from 'app/components/tagsTable';
const event = {
id: 'deadbeef',
tags: [
{value: 'prod', key: 'environment', _meta: null},
{value: 'info', key: 'level', _meta: null},
... | The default implementation of the tag table. |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Users } from '../../components';
import * as usersActions from '../../actions/usersActions.js';
class UsersContainer extends Component {
render() {
const { onSearch, ...props } = this.props;
return <Users {...this.prop... | A component that wraps a users component in a users container. |
import React from 'react';
import { connect } from 'react-redux';
import AppPopup from './AppPopup';
const lvls = ['1', '4', '7', '10', '13', '16', '20'];
const GraphIcon = ({lvl, openStatDetails}) => {
const open = () => {
openStatDetails(lvl);
};
return (
<i className='fa fa-line-chart' onClick={open... | Demonstrate a navegarios de navegarios. |
/* @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 IconColorLens(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProp... | A color label for a missing node. |
import React from 'react';
import PropTypes from 'prop-types';
import NProgress from 'nprogress';
import { withStyles } from '@material-ui/core/styles';
import NoSsr from '@material-ui/core/NoSsr';
import { exactProp } from '@material-ui/utils';
NProgress.configure({
template: `
<div class="nprogress-bar" role="... | The NProgressBar component is a wrapper around React s NProgressBar component. It is a wrapper around React s NProgressBar component. |
import React from 'react';
import PropTypes from 'prop-types';
import { Switch as NativeSwitch } from 'react-native';
const Switch = ({ input: { onChange, value }, ...custom }) => (
<NativeSwitch
value={value === '' ? true : value}
onValueChange={onChange}
{...custom}
/>
);
Switch.propTypes = {
inp... | export Switch class |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionWork = (props) => (
<SvgIcon {...props}>
<path d="M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z"/>... | A function that exports a single node in a sequence of nodes. |
// @flow
// @jsx glam
import glam from 'glam'
import React, { Component } from 'react'
import { type ProviderProps } from '../../ImageProvider'
import { Code, CodeBlock, Heading, Title } from '../components'
import PrettyProps from '../../PrettyProps'
import GalleryExample from './GalleryExample'
import { carouselProp... | The main logic for the tag - based |
import React from 'react';
import ChoreList from '../containers/ChoreList';
import AddChore from '../containers/AddChore';
import NavBar from '../components/NavBar';
import './App.css';
const App = () => (
<div>
<NavBar />
<AddChore />
<ChoreList />
</div>
);
export default App;
| export a default app |
import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import iconMenuReadmeText from './README';
import IconMenuExampleSimple from './... | Exports a single - valued property of a single - valued property of a menu. |
import React, { Component } from 'react';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd/modules/backends/HTML5';
import BoxWithImage from './BoxWithImage';
import BoxWithHandle from './BoxWithHandle';
@DragDropContext(HTML5Backend)
export default class Container extends Component {
... | The base class for the sequence of components that are not part of a component in a container. |
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { window } from 'global';
import moment from 'moment';
import renderHTML from 'react-render-html';
import insertCss from 'insert-css';
import style from './style';
import commentCSS from './style.css';
insertCss(commentCSS);
export d... | The comment item is a component that is rendered when a comment is hovered. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentRemoveCircle = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z"/>
</SvgIcon>
);
ContentRemoveCircle = pure(ContentRemoveCir... | A component that can be used to render a missing - content block in a solid solid. |
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... | A component that renders a single critical block of color index icons. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatReclineExtra = (props) => (
<SvgIcon {...props}>
<path d="M5.35 5.64c-.9-.64-1.12-1.88-.49-2.79.63-.9 1.88-1.12 2.79-.49.9.64 1.12 1.88.49 2.79-.64.9-1.88 1.12-2.79.49zM16 19H8.93c-1.48 0... | A component that renders a sequence of airline seat - recline - extra icons. |
import React from 'react'
import Wrapper from './wrapper'
import DocSidebar from '../components/doc-sidebar'
import Nav from '../components/nav'
export default React.createClass({
propTypes: {
title: React.PropTypes.string.isRequired,
contents: React.PropTypes.string.isRequired,
},
render() {
return... | The default function for a class. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileFileUpload = (props) => (
<SvgIcon {...props}>
<path d="M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"/>
</SvgIcon>
);
FileFileUpload = pure(FileFileUpload);
FileFileUpload.displayName = 'FileFileUpload';
FileFil... | A component that exports a file that can be uploaded to a Navicon. |
import React from 'react';
import Field from '../Field';
import { Button, FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'URLField',
openValue () {
var href = this.props.value;
if (!href) return;
if (!/^(mailto\:)|(\w+\:\/\/)/.test(href)) {
href = 'http://' + href;
}
window... | The default implementation of the link - based field that opens a link in a new tab. |
import React from 'react';
import PropTypes from 'prop-types';
/**
* Base text input.
*/
const TextInput = ({
attributes,
className,
clearErrors,
id,
name,
placeholder,
setData,
value,
}) => {
function handleChange(event) {
clearErrors(event.target.name);
setData(event.target.name, event.t... | The base text input element. |
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchFavouritedStatuses, expandFavouritedStatuses } from '../../actions/favourites';
import Column from '../ui/components/column';
import ColumnHeade... | A component that renders a favourite list of items. |
import React from 'react';
import Helmet from 'react-helmet';
import Footer from '../pages/components/footer.js';
import classifier_img from '../pages/classifier_test.png';
// import '../css/blog-post.css'; // make it pretty!
export default function Template({
data // this prop will be injected by the GraphQL query ... | The main function for generating a bit - on |
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { createStore, applyMiddleware } from 'redux';
import thunkMiddleware from 'redux-thunk';
import { createLogger } from 'redux-logger';
import { reducers } from './js/reducers';
import injectTapEventPlugin from 'r... | Imports a single React object. |
import React from 'react'
import { render } from 'react-dom'
import { createHistory, useBasename } from 'history'
import { Router, Route, Link, History } from 'react-router'
require('./app.css')
const history = useBasename(createHistory)({
basename: '/passing-props-to-children'
})
const App = React.createClass({
... | The main function for the sequence of components. |
import React from 'react'
import { Link } from 'react-router'
import Helmet from 'react-helmet'
import { config } from 'config'
import { prefixLink } from 'gatsby-helpers'
import info from './info'
import PersonPage from '../../components/PersonPage'
export default class Index extends React.Component {
render() {
... | The main function for the Helmet index class. |
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
| Imports a React application. |
import React from 'react';
import classnames from 'classnames';
class ModalFooter extends React.Component {
render() {
return (
<div {...this.props} className={classnames(this.props.className, this.props.modalClassName)}>
{this.props.children}
</div>
);
}
}
ModalFooter.propTypes = {
... | A modal footer component that renders a modal modal menu. |
import React from 'react';
import { connect } from 'react-redux';
import BlinkerUI from 'components/BlinkerUI';
const mapStateToProps = ({ app }) => {
const bytes = app.getIn(['infoStats', 'pending_size']) || 0;
return { bytes };
};
export default connect(
mapStateToProps
)(BlinkerUI);
| Imports a single node and returns a map of state and props of a node. |
import React from 'react';
export const ShowMoreProducts = ({onShowMoreProducts}) => {
require('./ShowMoreProducts.css');
return (
<a href="#" className="show-more text-color"
onClick={
(e) => {e.preventDefault();
onShowMoreProducts();
}
}>
Показать еще 6 то... | Показать еще 6 товаров |
import React from 'react'
import DelayedSpinner from '../components/DelayedSpinner'
import ErrorDialog from '../components/ErrorDialog'
import VisionGui from '../components/VisionGui'
import LoadingContainer from './LoadingContainer'
// Loads the most basic data from a Sanity project
class VisionContainer extends Load... | VisionContainer class that loads the most basic data from a Sanity project. |
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import uuid from 'uuid';
import ActionMenu from './action-menu';
/**
* Dropdown component
*
* @class Dropdown
* @extends {Component}
*/
class Dropdown extends Component {
/**
* Creates an in... | A dropdown component that can be used to show a dropdown of action menu items. |
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { List, Navigation } from 'react-toolbox'
import Input from 'react-toolbox/lib/input'
import SongItem from '../../../components/SongItem'
import Infinite from 'react-infinite'
import trackObject from '../interfaces/track.js'
import cla... | Component that is a component that can be rendered on a list of tracks. |
/**
* Created by jf on 15/12/10.
*/
"use strict";
import React from 'react';
import Page from '../../component/page';
import SwiperBox from "../../../../components/swiper/index";
export default React.createClass({
render() {
let slides = [
{
url:"#/",
pic:"h... | Demonstration of the naze - sequence sequence sequence. |
import React from 'react';
import Collection from '../src/Collection';
import CollectionItem from '../src/CollectionItem';
export default
<Collection>
<CollectionItem href='#'>Alvin</CollectionItem>
<CollectionItem href='#' active>Alvin</CollectionItem>
<CollectionItem href='#'>Alvin</CollectionItem>
<Collecti... | export default |
import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
| Renders the main component into the main DOM. |
import React from 'react';
import { FormattedMessage } from 'react-intl';
import Wrapper from './Wrapper';
import NavBar from './NavBar';
import NavItem from './NavItem';
import messages from './messages';
import Title from './Title';
class Header extends React.Component { // eslint-disable-line react/prefer-stateless... | export default header for missing missing missing params |
import React from 'react'
import { ICON_CMD } from '@/config'
import { Trans } from '@/utils/i18n'
import { cutRest } from '@/utils/helper'
import { Wrapper, WarningIcon, Info, Title, Desc } from './styles/alert_bar'
const AlertBar = ({ value, searchThread }) => (
<Wrapper>
<WarningIcon src={`${ICON_CMD}/shell_... | Warning bar bar |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsHotel = (props) => (
<SvgIcon {...props}>
<path d="M7 13c1.66 0 3-1.34 3-3S8.66 7 7 7s-3 1.34-3 3 1.34 3 3 3zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.21-1.79-4-4-4z"/>
</SvgIcon>
);
MapsHotel = pure(MapsHot... | A component that exports a missing - |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudDownload = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-... | A component that exports a series of images in a series of icons. |
import React from 'react';
import { render } from 'react-dom';
import 'style/global';
// Define base component
import App from './components/App/App';
// Create init function to render application from
function init() {
render(<App />, document.querySelector('#root'));
}
// While developing, enable HMR
if (module... | Initialize a base component |
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import dynamicsFont from '../../assets/DynamicsFont/DynamicsFont.scss';
import styles from './styles.scss';
export default function BackButton({
label,
showIcon,
}) {
return (
<span className={styles.backButt... | export default back button |
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import DevTools from './containers/devTools';
import { store } from './store/index';
import { Router, browserHistory } from 'react-router';
import routes from './routes/index';
ReactDOM.render(
<Provider store={stor... | Imports a single node in the DOM. |
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({
... | Private function to create a hidden field with a hidden field. |
import React from 'react';
import PropTypes from 'prop-types';
import Button from '@economist/component-link-button';
export default function SectionCardLink({ buttonClassName, linkClassName, title, buttonProps, prefix }) {
const customLinkClassName = linkClassName ?
`${ prefix }__list-item ${ prefix }__list-item-... | SectionCardLink - SectionCardLink |
import 'bootstrap/less/bootstrap.less';
import './assets/docs.css';
import './assets/style.css';
import './assets/carousel.png';
import './assets/logo.png';
import './assets/favicon.ico';
import './assets/thumbnail.png';
import './assets/thumbnaildiv.png';
import 'codemirror/mode/htmlmixed/htmlmixed';
import 'codemir... | Imports the codemirror library and renders the component. |
import React from 'react'
import { Statistic } from 'semantic-ui-react'
const StatisticExampleBottomLabel = () => (
<div>
<Statistic>
<Statistic.Value>5,550</Statistic.Value>
<Statistic.Label>Downloads</Statistic.Label>
</Statistic>
<Statistic value='5,500' label='Downloads' />
</div>
)
e... | Example of how to show a single node in a hierarchy. |
/**
* Created by reky on 2016/11/9.
*/
import React from 'react';
import ReactEcharts from 'echarts-for-react';
import {Slider} from 'antd';
export default class Chart extends React.Component{
/*propTypes = {
yAxisName: React.PropTypes.string.isRequired,
};*/
getInitialOption = function (){
return ... | Chart class for a single node. |
// @flow
import type { Question, Answer } from 'types/reports.types';
import React, { Component } from 'react';
import i18n from 'i18next';
import { Platform, View } from 'react-native';
import debounceUI from 'helpers/debounceUI';
import { trackScreenView, trackReportingConcluded } from 'helpers/analytics';
import st... | The base class for all components that are able to be rendered as a Bootstrap - styled form. |
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... | A component that renders a single missing - node icon in the DOM. |
import React from 'react';
class PriceList extends React.Component {
addToOrderList() {
this.props.addToOrderList(this)
}
render() {
return (
<li>
<div>
{this.props.price.size} ${this.props.price.cost} <input type="button" onClick={this.addToOrderList.bind(this)} value='Add' />
</div>... | A component that adds a price to the order list. |
import React from 'react';
import { action } from '@storybook/addon-actions';
import Examples from './utils/Examples.js';
import ReactInput from '../../src/react/Input.js';
import InputDefaultHtml from '../../components/input/input.html';
import InputRequiredHtml from '../../components/input/input-required.html';
imp... | The default input - widget for the missing label. |
import React from 'react';
import { createStore as initialCreateStore, compose } from 'redux';
export let createStore = initialCreateStore;
let __DEV__ = false;
if (__DEV__) {
createStore = compose(
require('redux-devtools').devTools(),
require('redux-devtools').persistState(
window.location.href... | Imports ReactDevTools and ReactDevTools and renders the necessary debug - panel and ReactDevTools elements. |
import React from 'react';
import PropTypes from 'prop-types'
import { Control } from 'react-redux-form';
import StatefulError from './StatefulError';
const RadioList = (props) => {
const {
id,
label,
name,
options,
model,
messages,
validators
} = props;... | Private function for generating radio list of missing node - radio - list. |
import React from 'react'
import PropTypes from 'prop-types'
export default class HTML extends React.Component {
render() {
return (
<html {...this.props.htmlAttributes} lang="en">
<head>
<meta charSet="utf-8" />
<meta httpEquiv="x-ua-compatible" content="ie=edge" />
<... | A class that renders a single missing - missing component in a browser. |
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class test extends Component {
render() {
return (
<View style={styles.container}>
... | A component that can be rendered by a component that is not registered with a component registry. |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M2 21h19v-3H2v3zM20 8H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zM2 3v3h19V3H2z" /></g>
, 'ViewDay');
| Create a series of icons for a single . |
import React, { Component } from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { pushPath } from 'redux-simple-router';
import { Route, IndexRoute } from 'react-router';
import { createSelector } from 'reselect';
import * as cmdb... | The base component for the group edit action. |
import './styles/styles.scss';
import 'react-select/dist/react-select.css';
import 'react-virtualized/styles.css';
import './babelHelpers';
import 'core-js/es6/symbol';
import 'core-js/es6/promise';
import 'core-js/es6/array';
import 'core-js/es6/number';
import 'core-js/es6/object';
import React from 'react';
import... | Imports a single non - unknown element and renders it in the browser. |
import React from 'react';
const FIELDS = {
"product": "Product",
"description": "Description"
};
export const RESULTS = [
{
"product": "NPMP50000",
"description": "",
"status": "1-Compilazione-Richiesta",
"createDate": "21/02/2015"
},
{
"product": "NPMP50078",
"description": "MODIFI... | Exports a single token type with optional fuzzy search. |
import React from 'react';
import { Link } from 'react-router';
const Main = React.createClass({
render() {
return (
<div>
<h1>
<Link to="/">Reduxtagram</Link>
</h1>
{React.cloneElement(this.props.children, this.props)}
</div>
)
}
});
export default Main;
| The main component of the tagram. |
import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Yumarimel' />
)
| export default function |
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import React from 'react';
import ItemHealingDone from 'Main/ItemHealingDone';
import CoreEonarsCompassion from 'Parser/Core/Modules/Items/Legion/AntorusTheBurningThrone/EonarsCompassion';
import CooldownThroughputTracker from '../Features/CooldownTh... | EonarsCompassion - Eonar s Compassion |
// @flow
import React from 'react'
import styled from 'styled-components'
import theme from 'styled-theming'
import { Navigation, NavigationItem } from '../../components/navigation'
import route from '../../data/routes'
import { myTheme } from '../../styles'
const { color, space } = myTheme
const borderColor = the... | A component that displays a single in a nav container. |
import React from 'react';
class Calendar extends React.Component {
render () {
var events = [{
id: 0, title: 'essay due'
}];
return (
<div>
<h2>Calendar</h2>
<ul>
{events.map(event => (
<li key={event.id}>{event.title}</li>
))}
</ul>
... | A calendar is a component that can be rendered by a user. |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import { observer } from 'mobx-react';
import {
IonItemOption,
IonItemOptions,
IonItem,
IonIcon,
IonItemSliding,
IonButton,
} from '@ionic/react';
import { alert } from 'ionicons/icons';
import './styles.sc... | A component that displays |
import React from 'react';
import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
const moreIndicatorStyle = {
color: '#888',
fontSize: '.8rem',
};
var Cloudin... | A column that displays a list of images that can be rendered on the top of a table. |
import React from 'react';
import ReactDOM from 'react-dom';
import { createStore, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import { HashRouter, Switch, Route, Redirect } from 'react-router-dom';
import createSagaMiddleware from 'redux-saga';
import reducers from './reducers';
import saga... | Imports a single unknown node. |
import React from 'react';
import ReactDom from 'react-dom';
import ChronicleHeader from './ChronicleHeader';
import ChronicleFooter from './ChronicleFooter';
import ChronicleBody from './ChronicleBody';
export default class Chronicle extends React.Component {
render() {
return (
<div id="Chronicle" classNam... | The Chronicle class |
import 'babel-polyfill';
import 'fastclick';
import 'isomorphic-fetch';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import '../styles/main.scss';
import App from './containers/App';
import configureStore from './store/configureStore';
const store = configureStor... | Imports a single node in the DOM. |
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import DialogActionCreators from 'actions/DialogActionCreators';
import AvatarItem from 'components/common/AvatarItem.react';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class ... | A component that renders a single missing - contact record in a section of a dialog. |
/* eslint react/forbid-dom-props: ["off"] */
import PropTypes from 'prop-types';
import React from 'react';
import useStyleToEmotionObject from './hooks/internal/useStyleToEmotionObject';
const ROOT_STYLE = {
// .sr-only - This component is intended to be invisible to the visual Web Chat user, but read by the AT w... | The screen reader text component is a screen reader that displays a hidden hidden |
import React from 'react'
import PropTypes from 'prop-types'
import { Button, Avatar } from 'antd'
import CountUp from 'react-countup'
import { Color } from 'utils'
import styles from './user.less'
const countUpProps = {
start: 0,
duration: 2.75,
useEasing: true,
useGrouping: true,
separator: ',',
}
functio... | Imports a single user - level with a header and a footer. |
import React from 'react';
import RaisedButton from 'material-ui/lib/raised-button';
import * as graphConstants from '../networkGraph/graphConstants';
import InputLayerInfo from './InputLayerInfo';
import HiddenLayerInfo from './HiddenLayerInfo';
import BiasHistoryInfo from './BiasHistoryInfo';
import ActivationHistory... | A component that renders a hidden layer with a button that shows the buttons |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewCarousel = (props) => (
<SvgIcon {...props}>
<path d="M7 19h10V4H7v15zm-5-2h4V6H2v11zM18 6v11h4V6h-4z"/>
</SvgIcon>
);
ActionViewCarousel = pure(ActionViewCarousel);
ActionViewCarousel.displayName =... | A carousel that displays a menu item in the action view. |
import React from 'react';
const Foo = React.createClass({
render() {
return (
<p>I am not a very smart component...</p>
);
}
});
export default Foo;
| The default function for a missing component. |
import React from 'react';
import DropDownMenu from 'material-ui/DropDownMenu';
import MenuItem from 'material-ui/MenuItem';
export default class DropDownMenuOpenImmediateExample extends React.Component {
constructor(props) {
super(props);
this.state = {value: 2};
}
handleChange = (event, index, value)... | A drop - down menu that opens immediately and opens immediately. |
import React, { Component } from 'react';
import { IconFont } from 'rsuite';
import Tag, { TagGroup } from '../src';
export default class TagUncontroledGroupDemo extends Component {
constructor(props) {
super(props);
this.state = {
tags: Object.keys(Tag.Color)
};
}
getColors = (color) => {
... | The default component for the tag uncontroled group. |
import React from 'react';
import { Link } from 'react-router';
// Import Style
import styles from './Footer.css';
export function Footer() {
return (
<div className={styles.footer}>
<ul>
<li className={styles.bottomNav}> <Link to="/" >MAP</Link></li>
<li className={styles.bottomNav}><Link... | Exports a footer to the footer of a |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardArrowUp = (props) => (
<SvgIcon {...props}>
<path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/>
</SvgIcon>
);
HardwareKeyboardArrowUp = pure(HardwareKeyboardArrowUp);
HardwareKeyboardAr... | Hardware keyboard arrow up |
import React, { Component } from 'react';
/* component styles */
import { styles } from './browserHeader.scss';
export class BrowserHeader extends Component {
render() {
const { title, showBioPic, showPageDescription, pageDescription, headingClassString, titleClass } = this.props;
return (
<section cl... | A browser header for a single node in the browser. |
import React from 'react'
import PropTypes from 'prop-types'
import hoistNonReactStatics from 'hoist-non-react-statics'
import get from 'lodash/get'
import getInjectors from './reducerInjectors'
/**
* Dynamically injects a reducer
*
* @param {string} key A key of the reducer
* @param {function} reducer A reducer... | Dynamically injects a reducer into a component that will be injected by a key. |
import React from 'react';
import classNames from 'classnames';
import CustomPropTypes from './utils/CustomPropTypes';
const Jumbotron = React.createClass({
propTypes: {
/**
* You can use a custom element for this component
*/
componentClass: CustomPropTypes.elementType
},
getDefaultProps() {
... | Create a Jumbotron component that can be used to render a custom element. |
import React from 'react';
import { parse } from 'react-docgen';
import CodeExample from '../../../components/CodeExample';
import ComponentHeader from '../../../components/ComponentHeader';
import PropTypeDescription from '../../../components/PropTypeDescription';
import Demo from './Demo';
// eslint-disable-next-lin... | export default page |
import React from 'react';
import ReactDOM from 'react-dom';
import Examples from './Examples';
import './styles/main.css';
ReactDOM.render((
<Examples />
), document.getElementById('root'));
| Imports a single node from the DOM. |
/**
* @description Play 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.
* @prope... | Play SVG Icon for a single color identifier. |
import React from 'react';
import PropTypes from 'prop-types';
import containsRow from '../util/containsRow';
import getAttrs from '../util/getAttrs';
import getColumnClasses from '../util/getColumnClasses';
import ContainerContext from '../util/containerContext';
/**
* Grid column. Place sections of email content in... | A column with no children. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.