code stringlengths 26 5k | intent stringlengths 3 2.56k |
|---|---|
import React from 'react';
import SPELLS from 'common/SPELLS';
import { formatThousands } from 'common/format';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import SpellLink from 'common/SpellLink';
import StatisticListBoxItem from ... | Create a base class for the missing heal conditions. |
import React from 'react';
import PropTypes from 'prop-types';
/**
* Building block for Tetrominoes and the grid of the Well, occupying a 1x1
* square block. The only configurable property square blocks have is their
* color.
*/
const SquareBlock = ({ color }) => (
<div className="square-block" style={{ backgrou... | Construct a square block for Tetrominoes and the grid of the Well occupying a 1x1 square block. |
import React, { Component } from 'react';
import { Grid, Button, Container, Divider, Input } from 'semantic-ui-react'
const CreateRoomMenu = (props) => {
return (
<div>
<Container fluid>
<Button
onClick={props.onBackToMainMenu}
icon='reply'
labelPosition='left'
... | The CreateRoomMenu export function |
import React from 'react';
export default class App extends React.Component{
constructor(props) {
super(props);
this.render = this.render.bind(this);
this.state = {
items: this.props.items,
disabled: true
};
}
componentDidMount() {
this.setState({
disabled: false
})
... | The base class for a series of items that can be added to a menu. |
// @ts-check
import React from 'react';
import { Sparklines, SparklinesCurve } from 'react-sparklines';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Permalink from './permalink';
import ShortNumber from 'mastodon/co... | Provides a way to render a hashtag with a specific number of people talking about. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFace = (props) => (
<SvgIcon {...props}>
<path d="M9 11.75c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zm6 0c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-... | A component that exports a series of action - related icons. |
import React from 'react'
import Types from './Types'
import States from './States'
import Variations from './Variations'
import Groups from './Groups'
const ImageExamples = () => (
<div>
<Types />
<States />
<Variations />
<Groups />
</div>
)
export default ImageExamples
| export default ImageExamples |
import React from 'react';
const TableColumn = () => {};
TableColumn.propTypes = {
attribute: React.PropTypes.string,
bold: React.PropTypes.bool,
builder: React.PropTypes.func,
center: React.PropTypes.bool,
copyable: React.PropTypes.bool,
formatter: React.PropTypes.shape({ format: React.PropTypes.func.isR... | TableColumn is a column with no editable props. |
import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<div className="container">
{this.props.children}
</div>
);
}
}
| The default component class for the series of children. |
import React from 'react';
import { Link } from 'react-router';
import { Alert, BlankState, Center, Spinner } from '../../../../elemental';
import DragDrop from './RelatedItemsListDragDrop';
import ListRow from './RelatedItemsListRow';
import { loadRelationshipItemData } from '../../actions';
import { TABLE_CONTROL_C... | The RelatedItemsList component is a component that can be used to display a list of related items. |
// @flow
import React from 'react';
import { connect } from 'react-redux';
import {keys} from 'lodash'
import Draggable from 'react-draggable'
import Header from './Component/Header'
import Button from 'Game/UI/Button'
import TalentData from 'Game/Data/Talent'
import type {TalentType} from 'Game/Data/Talent'
clas... | A component that renders a talent panel with a drop down list of talent data. |
import React from 'react';
import { fetchProblem } from '../ContestActions';
import spdf from './simplepdf';
import './problemview.css';
export default class ProblemViewer extends React.Component {
constructor(props) {
super(props);
this.contestId = props.contestId;
this.problemNum = props... | A component that displays a problem in a browser. |
import React from 'react'
import classes from './<%= pascalEntityName %>.scss'
export const <%= pascalEntityName %> = () => (
<div className={classes['<%= pascalEntityName %>']}>
<h4><%= pascalEntityName %></h4>
</div>
)
export default <%= pascalEntityName %>
| export to a function that returns a function that returns a object. |
import React from 'react'
import { Button, Icon, Popup } from 'semantic-ui-react'
const PopupExampleInverted = () => (
<div>
<Popup
trigger={<Button icon='add' />}
content='Hello. This is an inverted popup'
inverted
/>
<Popup
trigger={<Icon circular name='heart' />}
content=... | This module imports a single popup with a popup with a circular icon. |
import React from 'react';
module.exports = React.createClass({
contextTypes: {
intl: React.PropTypes.object
},
renderMessage: function() {
return (
<span>
<h1>
<div>{ this.context.intl.formatMessage({id: this.props.thankYouSentenceId}) }</div>
</h1>
</span>
);
... | The main function for the object - level hierarchy. |
import Component from 'components/component';
import bind from 'decorators/bind';
import React from 'react';
import PropTypes from 'prop-types';
import {bindActionCreators} from 'redux';
import {changeSchemaTemplate} from 'actions/schema';
import {connect} from 'react-redux';
import SchemaTemplatePicker from './schema... | Create a new schema - template - picker - container |
import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ExtendedVideoPlayer from '../../../components/extended_video_player';
import { defineMessages, injectIntl } from 'react-intl';
import IconButton from '../../../components/icon_button';
impor... | Component that renders a modal window with a video player. |
import React, { Component } from 'react';
import Inbox from '../../Mail/Inbox';
class Mail extends Component {
render() {
return (
<Inbox />
);
}
}
module.exports = Mail; | Create a class that extends the given Component and extends it with the Mail interface. |
import React from 'react';
export default class IndexComponent extends React.Component {
componentDidMount() {
console.log('index');
}
render() {
return (
<div>
<p>This is the ooondex page</p>
</div>
);
}
} | The index component is |
import React from 'react';
import styled from 'styled-components';
import StyledFlexContainerStacked from '../flex/StyledFlexContainerStacked';
import StyledFlexContainerStackedCentered from '../flex/StyledFlexContainerStackedCentered';
const OuterSectionContainer = styled(StyledFlexContainerStackedCentered)`
back... | The content section component |
// 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 in writing, software
// distributed un... | Displays a single non - empty object. |
import Balloon from '@economist/component-balloon';
import React from 'react';
import SectionsCard from '@economist/component-sections-card';
export default function MenuMore({ href, title, moreBalloonData }) {
return (
<Balloon
dynamicPositioning={false}
className="navigation__more navigation__main-... | The menu more component |
import React from 'react'
import 'semantic-ui-css/semantic.min.css'
const html = ({ headComponents, css, body, postBodyComponents }) => (
<html lang='en'>
<head>
<meta charset='utf-8' />
<meta http-equiv='x-ua-compatible' content='ie=edge' />
<meta name='viewport' content='width=device-width, i... | Generate a sequence of components that can be found in a sequence of components. |
/**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-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'
i... | A static class that renders a single reserved key sequence in a tree. |
import React, { Component } from 'react';
class ErrorPage extends Component {
render() {
return (
<section id="error" className="first-section col-md-12 text-center">
<h1><strong>Error {this.props.code}</strong></h1>
<p className="lead">{this.props.message}</p>
</section>
);
}
}
... | The ErrorPage class is a page that displays an error message. |
import React from 'react';
import SvgIcon from '../../SvgIcon';
const ContentInbox = (props) => (
<SvgIcon {...props}>
<path d="M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10z"/>
</SvgIcon>
);
ContentInbox.display... | A component that exports a single node in a group of nodes. |
import React from 'react';
import {StyleSheet, View, Text, Dimensions, Button} from 'react-native';
class Notification extends React.Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.title}>In-App Notification</Text>
<Text style={styles.content}>You have 1... | The notification class which is used to render a single confirmation. |
/* 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,
... | The default component that displays a list of products in a BootstrapTable. |
import React from 'react';
import { linkAlliance } from '@/js/links';
import { eventTypeShortenerMap } from '../../js/util';
export default class EventHeader extends React.Component {
render() {
return (
<div className={'box'} style={{ marginTop: '10px' }}>
<nav className={'level'}>
<div ... | A header for a single calendar tag. |
import React, { Component } from 'react';
export default function AuthenticationFailed(props) {
return (
<div className="full-height relative background-info">
<div className="valign-wrapper center-align full-height todo-div">
<div className="full-width">
<i className="material-icons">loc... | The default authentication failed event handler. |
import React from 'react'
import ReactDOM from 'react-dom'
import App from './components/App.jsx'
ReactDOM.render(
<App />,
document.getElementById('root')
)
| Imports a single element in the DOM. |
/**
* 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 ReactNativePlayground extends Component {
render() {
return (
<View style={styl... | The base class for a sequence of components that can be rendered by a React Native component. |
'use strict'
import React from 'react'
import reactCSS from 'reactcss'
const { Container } = require('../layout')
const { Animate } = require('../common')
import { Grid } from '../../../modules/react-basic-layout'
import { Raised } from '../../../modules/react-material-design'
export class DocsFeature extends React... | A sequence of components that can be found in a sequence of components. |
import PropTypes from 'prop-types';
import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import classNames from 'classnames';
import './pagination.scss';
const PaginationItem = ({ active, page, offset, onChange }) => (
<li className={classNames('page-item', { active })}>
<butt... | Generates a single missing - node element with pagination support |
import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './YiiPlain.svg'
/** YiiPlain */
function YiiPlain({ width, height, className }) {
return (
<SVGDeviconInline
className={'YiiPlain' + ' ' + className}
iconSVG=... | YiiPlain is a component that renders a series of images with a series of CSS classes. |
import React from 'react';
import {Link} from 'react-router';
// import Header from '../../components/Header.js';
import Section from '../../components/Section.js';
// import AngledDivider from './AngledDivider.js';
import CursiveHeader from '../../components/CursiveHeader.js';
import CenteredContainer from '../../comp... | export default function |
import React from 'react';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import styles from './styles.css';
import match from './match.png';
import splash from './splash.png';
import bg from './Welcome_man_headphones_white.jpg';
export class FeaturePage extends React.Component {
... | Component that displays a single page of a single node in a feature page. |
import React from 'react';
import invariant from 'invariant';
var { object } = React.PropTypes;
/**
* The Lifecycle mixin adds the routerWillLeave lifecycle method
* to a component that may be used to cancel a transition or prompt
* the user for confirmation.
*
* On standard transitions, routerWillLeave receives... | A mixin that manages the state of a nested component. |
/**
* 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 PropTypes from 'prop-... | A component that displays a single missing node in the system. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallSplit = (props) => (
<SvgIcon {...props}>
<path d="M14 4l2.29 2.29-2.88 2.88 1.42 1.42 2.88-2.88L20 10V4zm-4 0H4v6l2.29-2.29 4.71 4.7V20h2v-8.41l-5.29-5.3z"/>
</SvgIcon>
);
CommunicationCallS... | A component that |
'use strict';
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
TouchableHighlight,
TouchableNativeFeedback,
View,
} from 'react-native';
/**
* Renders the right type of Touchable for the list item, based on platform.
*/
const Touchable = ({onPress, children}) => {
const c... | Renders the right type of a list item based on platform. |
import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import Hook from './Hook';
import hookCode from '!raw-loader!./Hook';
export default lore.connect(function(getState, props) {
const { tweetId } = props.params;
return {
tweet: getState('tweet.byId... | The default implementation of including a layout which renders a tweet if the tweet is required. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBluetoothDisabled = (props) => (
<SvgIcon {...props}>
<path d="M13 5.83l1.88 1.88-1.6 1.6 1.41 1.41 3.02-3.02L12 2h-1v5.03l2 2v-3.2zM5.41 4L4 5.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l4.29-4.29 2.3 2.29... | A component that exports a component that is disabled by default. |
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 |
/**
* Created by yuxuan on 7/8/16.
*/
import React from 'react'
import { connect } from 'react-redux'
import PropTypes from 'prop-types'
import TextField from 'material-ui/TextField'
import RaisedButton from 'material-ui/RaisedButton'
import Snackbar from 'material-ui/Snackbar'
import Paper from 'material-ui/Paper'
... | A component that displays a user s login state. |
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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 Router from 'react-routi... | Provides a hidden hidden component with a link to a page in the application. |
import React from 'react';
var ItemsTableCell = React.createClass({
displayName: 'ItemsTableCell',
propTypes: {
className: React.PropTypes.string,
},
render () {
let className = 'ItemList__col' + (this.props.className ? (' ' + this.props.className) : '');
return (
<td {...this.props} className={className... | ItemListCell is a component that can be used to display a list of items in a table. |
import React from 'react'
import { Form } from 'shengnian-ui-react'
const FormExampleSubcomponentId = () => (
<Form>
<Form.Group widths='equal'>
<Form.Input id='form-subcomponent-shorthand-input-first-name' label='First name' placeholder='First name' />
<Form.Input id='form-subcomponent-shorthand-inp... | Imports a component with a sequence of components. |
import React, { Component } from 'react';
import { Button, Glyphicon } from 'react-bootstrap';
import '../Filter/css/style.css';
class TextButton extends Component {
constructor(props) {
super(props);
}
render() {
const { text, repo, onClick } = this.props;
return (
<di... | A component that displays a text button with no action on the button. |
// Dependencies.
import React from 'react';
import PropTypes from 'prop-types'; // Define class.
class GridOffset extends React.Component {
// Render method.
render() {
// Expose UI.
return /*#__PURE__*/React.createElement("div", {
className: "grid-offset"
}, this.props.children);
}
} // Valid... | A component that displays a hidden field in the grid of the node that is not part of a block. |
import React from 'react';
import { View } from 'react-native';
const Card = (props) => {
return (
<View style={styles.containerStyle}>
{props.children}
</View>
);
};
const styles = {
containerStyle: {
borderWidth: 1,
borderRadius: 2,
borderColor: '#846848',
borderBottomWidth: 0,
... | export a component that renders a card with a single child. |
/**
* Created by shrey on 2017-11-18.
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import ContractorInfoComponent from './ContractorInfo.jsx';
import EditContractor from './EditContractor.js';
import { isLoading, hasStoppedLoading } from '../../actions/main-... | The main component that is rendered when a user has selected a contract or a data attribute. |
// 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 in writing, software
// distributed un... | The BulkDocumentHeaderController class handles the layout of a bulk document header. |
import React from 'react';
class AboutForm extends React.Component {
render() {
let tableRows = this.props.userlogs.map((userLog, idx) =>
<tr key={userLog._id}>
<td>{userLog.ip}</td>
<td>{userLog.countryCode}</td>
<td>{userLog.country}</td>
<td>{userLog.cit... | A component that displays a single warning in the form of a single user - log. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvRecentActors = (props) => (
<SvgIcon {...props}>
<path d="M21 5v14h2V5h-2zm-4 14h2V5h-2v14zM14 5H2c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zM8 7.75c1.24 0 2.25 1.01 2.25 2.25S9.... | A component that exports a sequence of icons that are not visible in a component. |
import React from 'react';
import {compose, withState} from 'recompose';
import {withRouter} from 'react-router-dom';
import logo from '../logo.svg';
const prepare = ({
time,
updateTime,
date,
updateDate,
location,
history
}) => (
<div className="App">
<header className="App-header">
<img src=... | Generate a standard Prepare function for a single object. |
import React from 'react';
import PropTypes from 'prop-types';
const PageContent = (props) => {
const color = props.color == 'inherit' ? undefined : props.color;
const aria = props.title ? 'svg-page-content-title' : '' +
props.title && props.description ? ' ' : '' +
props.description ? 'svg-page-content-de... | PageContent is a page content that can be rendered by a page. |
import React from 'react';
class Announcement extends React.Component {
render () {
var { courseId, announcementId } = this.props.params;
var { title, body } = COURSES[courseId].announcements[announcementId];
return (
<div>
<h4>{title}</h4>
<p>{body}</p>
</div>
);
}
}
... | A component that renders an announcement if it exists. |
/*
*
* TabSelector
*
*/
import React from 'react'
import T from 'prop-types'
import { buildLog } from '@/utils/logger'
import {
Wrapper,
OptionsWrapper,
Option,
Icon,
Title,
HeaderDivider,
} from './styles'
/* eslint-disable-next-line */
const log = buildLog('c:TabSelector:index')
const TabSelector ... | Private function to create a tab - selector which reacts to a single missing - missing key in a sequence. |
import React from 'react';
import { Col } from 'react-bootstrap';
const ErrorPage = () => {
return (
<div className="errorText">
<h2>Error</h2>
<Col xs={12} md={8} mdOffset={2}>
An error occurred while processing your request. You should call the inferior web developer
who wrote this ... | The default error page for missing records. |
import PropTypes from 'prop-types'
import React from 'react'
const SubdomainPreview = ({ subdomain, menuComponent: MenuComponent, checked }) => (
<div className='table-row'>
<div className='wrapper'>
<div className='text' style={{ width: 30 }}>
<span className={`circle${checked ? ' checked' : ''}`}... | Imports a single - domain warning warning and a menu component that displays a single warning. |
import React from 'react';
import LoginStore from 'stores/LoginStore';
export default (Component) => {
return class Authenticated extends React.Component {
static willTransitionTo(transition) {
if (!LoginStore.isLoggedIn()) {
transition.redirect('/auth', {}, {'nextPath': transition.path});
}... | The default authenticated component is a component that will be rendered when the user logs in. |
// @flow
/** @jsx jsx */
import { jsx } from '@emotion/react'
import React from 'react'
import { mq, colors } from '../utils/style'
import Playground from '../components/Playground'
import * as markdownComponents from '../utils/markdown-styles'
import memoize from '@emotion/memoize'
import Layout from '../layouts'
impo... | The main function of the middleware. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageViewComfy = (props) => (
<SvgIcon {...props}>
<path d="M3 9h4V5H3v4zm0 5h4v-4H3v4zm5 0h4v-4H8v4zm5 0h4v-4h-4v4zM8 9h4V5H8v4zm5-4v4h4V5h-4zm5 9h4v-4h-4v4zM3 19h4v-4H3v4zm5 0h4v-4H8v4zm5 0h4v-4h-4v4zm5 0h4v-... | A component that |
import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './CeylonPlain.svg'
/** CeylonPlain */
function CeylonPlain({ width, height, className }) {
return (
<SVGDeviconInline
className={'CeylonPlain' + ' ' + className}
... | Create a CeylonPlain object with the given properties. |
import React from 'react'
import ApiNav from '../components/ApiNav'
import Doc from '../components/Doc'
import Demo from './Demo'
import {px2rem, deviceHeight, htmlFontSize} from '@bizfe/biz-mobile-ui/build/util/util';
function getStyles() {
const pcStyle = {
container: {
minWidth: '960px',
... | Component class which exports a single node with no children. |
import React from 'react'
import { Image } from 'semantic-ui-react'
const src = 'http://semantic-ui.com/images/wireframe/image.png'
const ImageExampleWrapped = () => (
<Image src={src} size='small' wrapped />
)
export default ImageExampleWrapped
| This is a hack to avoid the problem with the react - react package. |
import React from 'react'; //eslint-disable-line
import styled from 'styled-components';
const CardSectionTitle = styled.h1`
font-size: 1em;
font-weight: 700;
line-height: 1.1;
color: inherit;
margin: auto;
text-align: center;
@media (min-width: 480px) {
font-size: 2em;
}
@media (min-width: 768px... | export a section of a critical block |
import './plot.css';
import React from 'react';
import ReactDOM from "react-dom";
import { PlotState } from "plot.js";
import { SvgPlot, bytes_config } from "cockpit-components-plot.jsx";
const direct_metric = {
direct: ["mem.util.available"],
units: "bytes"
};
const pmcd_metric = {
pmcd: ["mem.util.ava... | This module is used to plot a series of memory in a window. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAnnouncement = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 9h-2V5h2v6zm0 4h-2v-2h2v2z"/>
</SvgIcon>
);
ActionAnnouncement = pu... | A component that renders a series of action announcements. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSwapVert = (props) => (
<SvgIcon {...props}>
<path d="M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z"/>
</SvgIcon>
);
ActionSwapVert = pure(ActionSwapVert);
ActionSwapVert.displa... | ActionSwapVert exports a single action swap vertex. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardCapslock = (props) => (
<SvgIcon {...props}>
<path d="M12 8.41L16.59 13 18 11.59l-6-6-6 6L7.41 13 12 8.41zM6 18h12v-2H6v2z"/>
</SvgIcon>
);
HardwareKeyboardCapslock = pure(HardwareKeyboardCaps... | Hardware keyboard capslock |
import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import Root from './containers/root';
const createHashHistory = require('history/lib/createHashHistory');
import './styles/animate.css';
import './styles/app.scss';
const history = createHashHistory({
queryKey: false,
});
ren... | Imports a single node in the history and renders it as a history - bar element. |
import React from 'react'
let ModalWindow = React.createClass({
render:function(){
let modalClassName = 'modal-container'
if (this.props.modalSettings.isShowing ===false){
modalClassName = 'modal-container is-hidden '
}
console.log(this.props);
return(
<div className... | The modal window component |
import React from 'react'
import Login from './login'
import store from '../../../store'
import {SubmissionError} from 'redux-form'
import { browserHistory } from 'react-router'
import * as userActions from '../../../actions/user/user-actions'
import * as commonActions from '../../../actions/common/common-actions'
con... | A component that creates a login container. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceNetworkWifi = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M3.53 10.95l8.46 10.54.01.0... | Devuelte un component des DevNetworkWifi |
import React from 'react'
import Component from 'hyper/component'
import SvgIcon from '../utils/SvgIcon'
var spotify = require('spotify-node-applescript');
class PluginIcon extends Component {
styles() {
return {
'spotify-icon': {
fill: '#1ED760'
}
}
}
template(css) {
return (
... | Component class for spotify components. |
/**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createStore from './redux/create';
import ApiClient from './helpers/ApiClient';
import io from 'socket.io-client';
import... | END OF FUNCTION HOT_APP_SUPPORT |
import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/app';
import PostsIndex from './components/posts_index';
import PostsNew from './components/posts_new.js';
import PostsShow from './components/posts_show.js';
export default (
<Route path="/" component={App}>
... | Imports the Navigator and the routes |
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'system/sizing';
const requireDemo = require.context('docs/src/pages/system/sizing', false, /\.(js|tsx)$/);
const requireRaw = req... | The default page for a single node - type block. |
import React, { Component } from 'react';
import ListPosts from '../components/ListPosts';
import FormPost from '../components/FormPost';
import fetch from 'isomorphic-fetch';
import {Router, Route, hashHistory} from 'react-router';
export default React.createClass({
getInitialState() {
return { posts: [{ id: 1,... | The default component that is rendered when a component is rendered. |
import React from 'react';
// import { Link } from 'react-router';
import { connect } from 'react-redux';
// import ac from '../state/actionCreators';
import sceneSets from '../client/renderer/sceneSets';
class Gui extends React.Component {
render() {
return <div>
{
this.props.guiComponents.map((... | A component that can be used to render a key - value menu. |
import React from 'react';
import { storiesOf } from '@storybook/react';
import TestTabSwitches from './TestTabSwitches';
import { getTestStoryKind } from '../../../stories/storiesHierarchy';
import { storySettings, testStories } from '../docs/storySettings';
const kind = getTestStoryKind({
storyName: storySettings... | Imports a single by using a dropdown. |
import React from 'react'
import 'font-awesome/css/font-awesome.css'
import '../styles/Footer.pcss'
const toggleFooter = (e) => {
const toggleFooter = e.target
if (toggleFooter.classList.contains('fa-chevron-down')) {
toggleFooter.classList.remove('fa-chevron-down')
toggleFooter.classList.add('fa-chevron-... | Exports a single node with a Footer |
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import logo from './assets/logo.svg';
export default () => <img id="feature-svg-inclusion" src={logo} alt="l... | Deprecated. Use with caution! |
import React from 'react';
const MaterialRequirements = ({requirements}) => {
const totalCost = requirements.reduce(
(total, req) => { return total + req.material.price * req.amount; }, 0);
return (
<div className="material-requirements">
<span className="material-requirements__header">
Forge... | Exports a list of missing requirements for a given material. |
import React from 'react';
import PropTypes from 'prop-types';
const PostcodeFormatter = ({value}) => (
<span>{value.substring(0, 3)} {value.substring(3, 5)}</span>
);
PostcodeFormatter.propTypes = {
value: PropTypes.string.isRequired,
};
export default PostcodeFormatter;
| Exports PostcodeFormatter for missing missing - node - js types. |
/*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... | Provides a component that renders a single tag if it exists in a word cloud. |
import '../styles/style.css';
import React from 'react';
import ReactDOM from 'react-dom';
import {hashHistory} from 'react-router';
import {syncHistoryWithStore} from 'react-router-redux';
import Root from './root';
import store from './store';
const history = syncHistoryWithStore(hashHistory, store);
ReactDOM.ren... | Imports a single node in the history. |
import React from 'react';
import { Icon } from 'antd';
import styles from './error.less';
const Error = () => <div className={styles.error}>
<Icon type="frown-o" />
<h1>404 Not Found</h1>
</div>;
export default Error;
| The default error class for missing or unknown items. |
/*
* Copyright (C) 2014 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... | The main function of the component that displays a sync grades dialog. |
import React from 'react'
import './example.css'
import DocumentTitle from 'react-document-title'
import { config } from 'config'
export default class PostCSS extends React.Component {
render () {
return (
<DocumentTitle title={`${config.siteTitle} | Hi PostCSSy friends`}>
<div>
<h1 class... | Component that exports a single Invite with a PostCSS y friends. |
import React from 'react';
import Photo from './Photo';
import Comments from './Comments';
const Single = ({posts, params, comments, increment, addComment, removeComment}) => {
const postId = params.postId;
let i = posts.reduce((pp,cp,idx)=>{ return pp || (cp.code === postId ? idx : pp ); }, null);
const post = p... | export single - photo - comment - comment |
import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import Redirect from './Redirect';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes,
string = _React$PropTypes.string,
object = _React$PropTypes.object;
/**
* An <IndexRedir... | The indexRedirect component is used to redirect to an indexRoute. |
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
Dimensions,
ListView,
StyleSheet,
Text,
View
} from 'react-native';
import iSpy from './js/iSpy';
AppRegistry.registerComponent('ispy', () => iSpy);
| Package a missing component in the AppRegistry if it is not there. |
import React from 'react'
import { connect } from 'dva'
import QueueAnim from 'rc-queue-anim'
import './MainPage.scss'
import E3Carousel from '../components/Carousel'
import Item from '../components/Item'
import BottomBar from '../components/BottomBar'
function Title() {
const text = ' 全新 Cayenne — 齐心并驰'.split('')
... | JSDAG - Cayenne - Cognizenne |
import React from 'react'
//import { FormattedMessage } from 'react-intl'
//import messages from './messages'
function Footer() {
return (
<span></span>
)
}
export default Footer
| Footer for missing missing - message - related modules |
'use strict'
import React from 'react';
import ReactDOM from 'react-dom';
import {createStore, applyMiddleware} from 'redux';
import thunkMiddleware from 'redux-thunk';
import createLogger from 'redux-logger';
import { Provider } from 'react-redux';
import { Router, Route, IndexRoute, Link, IndexLink, browserHistory, h... | Imports a single node. |
import React from 'react'
import { Image, Reveal } from 'semantic-ui-react'
const RevealExampleMoveUp = () => (
<Reveal animated='move up'>
<Reveal.Content visible>
<Image src='http://semantic-ui.com/images/wireframe/square-image.png' size='small' />
</Reveal.Content>
<Reveal.Content hidden>
... | Example of moving up a node in a hierarchy. |
import React from 'react'
import { TimelineMarkersConsumer } from './TimelineMarkersContext'
import { TimelineMarkerType } from './markerType'
import TodayMarker from './implementations/TodayMarker'
import CustomMarker from './implementations/CustomMarker'
import { TimelineStateConsumer } from '../timeline/TimelineStat... | Imports React s internal component with markers registered |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.