code stringlengths 26 5k | intent stringlengths 3 2.56k |
|---|---|
import React from 'react'
import App from 'next/app'
import '../styles/global.scss'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
| A component that can be rendered by a component in a page. |
import React from 'react';
export const VERSION = React.version;
export const REACT013 = VERSION.slice(0, 4) === '0.13';
export const REACT014 = VERSION.slice(0, 4) === '0.14';
export const REACT15 = VERSION.slice(0, 3) === '15.';
| Check if the version of React is greater than 0. 13. |
import React from 'react'
const LogoutButton = ({ onLogoutUserClick }) => {
return(
<li className="pure-menu-item">
<a href="#" className="pure-menu-link" onClick={(event) => onLogoutUserClick(event)}>Logout</a>
</li>
)
}
export default LogoutButton
| A LogoutButton is a menu item that displays a logout button. |
import React from 'react';
import './_common.Hr.source.scss';
const Hr = ({ children }) => {
return (
<div className="c-hr">
<span className="c-hr__text">{children}</span>
</div>
);
};
export default Hr;
| Exports a default Hr function to be used in a template. |
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
class HomeHeading extends Component {
render() {
return (
<div>
<header>
<div className="container">
<div className="row">
<... | A component that displays a hidden sequence of errors. |
import React from 'react'
import { Textfield, IconButton } from 'react-mdl'
import _ from 'lodash'
import './InputFile.scss'
export const InputFile = (props) => {
let inputFile = null
function handleClick (e) {
e.preventDefault()
inputFile.inputRef.click()
}
function handleChange (e, changeHanlder)... | The InputFile component |
import React, { Component } from 'react';
import { Redirect } from 'react-router-dom';
import Swipeable from 'react-swipeable';
import FontAwesome from 'react-fontawesome';
import Modal from 'react-modal';
import axios from 'axios';
// taramti babait components
import Timer from '../Generic/Timer';
import Pic from '..... | Auction of a single auction. |
/**
* 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 fetch from '../../core/f... | React Starter Kit API |
import 'babel-polyfill';
import React, { Component } from 'react';
import { Admin, Resource } from 'admin-on-rest';
import { Delete } from 'admin-on-rest/lib/mui';
import createRestClient from './createAdminOnRestclient';
// import './App.css';
import authClient from './authClient';
import sagas from './sagas';
impor... | Component constructor for admin - on - rest. js |
import React from 'react';
import ReactDOM from 'react-dom';
import Datepicker from '../src/Datepicker';
ReactDOM.render(<Datepicker dateFormat="DD/MM/YYYY" />, document.getElementById('react-root'));
| Imports a React component and renders it as a datepicker. |
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
| Imports a single node in the DOM. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSystemUpdateAlt = (props) => (
<SvgIcon {...props}>
<path d="M12 16.5l4-4h-3v-9h-2v9H8l4 4zm9-13h-6v1.99h6v14.03H3V5.49h6V3.5H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2z"/>
... | A component that exports action system update alt. |
import React from 'react'
import { render } from 'react-dom'
import { createStore, applyMiddleware } from 'redux'
import { Provider } from 'react-redux'
import logger from 'redux-logger'
import thunk from 'redux-thunk'
import reducer from './reducers'
import { getAllProducts } from './actions'
import App from './contai... | Imports a single from React and Redux. |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
class Header extends Component {
renderMainNavLinks() {
if(this.props.authenticated) {
return (
<ul className="nav navbar-nav">
<li><Link to="/questionaire">Questionaire... | The main navigation navigation for a specific user. |
import React from 'react';
import {storiesOf} from '@storybook/react';
import InteractiveCodeExample from '../utils/Components/InteractiveCodeExample';
import Markdown from '../utils/Components/Markdown';
import Readme from '../../src/Range/README.md';
import ExampleStandard from './ExampleStandard';
storiesOf('3. In... | Add a customizable function to the sequence of modules that can be imported. |
import React from 'react';
import {useActionState} from './helper';
import FieldAutocomplete from '../src/components/FieldAutocomplete';
import {Wrapper} from './ui';
import {withA11y} from '@storybook/addon-a11y';
export default {
title: 'FieldAutocomplete',
component: FieldAutocomplete,
decorators: [withA11y],... | A component that exports a single node in a hierarchy. |
import React, { Component } from 'react';
import {
View,
Text,
Image,
TouchableHighlight
} from 'react-native';
import moment from 'moment';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import HtmlConvertor from '../htmlConvertor';
import { filterCommentData, getBloggerAvatar, decodeHTML } from '.... | A component that can be rendered as a comment in a table. |
import React from 'react';
const menuLinks = [
{to: '/', label: 'Главная', index: true},
{to: '/team_offers', label: 'Корпоративные обеды'},
{to: '/cooks', label: 'Кулинары'},
{to: '/about', label: 'О Нас'},
{to: '/tariffs', label: <span><span className="tariffs long">Тарифные планы</span><span className="ta... | MenuLinks export function |
import React from 'react';
import { connect } from 'react-redux';
import Warning from '../components/warning';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { me } from '../../../initial_state';
const APPROX_HASHTAG_RE = /(?:^|[^\/\)\w])#(\w*[a-zA-Z·]\w*)/i;
const mapStateT... | A component that displays a warning if a hashtag is not found in the system. |
import { formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS';
import RESOURCE_TYPES from 'game/RESOURCE_TYPES';
import { SpellLink } from 'interface';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import STATISTIC_ORDER from 'parser/ui... | Private method for importing a BlindFury class from a parser. |
import React from 'react'
import { connect } from 'react-redux'
import { addTodo } from '../actions'
let AddTodo = ({ dispatch }) => {
let input
return (
<div>
<form onSubmit={e => {
e.preventDefault()
if (!input.value.trim()) {
return
}
dispatch(addTodo(input.v... | Add Todo and Add Todo to a node |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooks5 = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 6h-4v2h2c1.1 0 2 .89 2 2v2c0 1.11-.9 2-2 2H9v-2h4v-2H9V7h6v2z"/>
</SvgI... | A component that renders a series of icons that can be used to render a series of images. |
import React from 'react';
import { Field } from 'redux-form';
import { TextField } from 'material-ui';
const buildInput = ({ displayName }) => (
({ input }) => (
<div>
<TextField
{...input}
fullWidth
floatingLabelText={displayName}
/>... | function to create a component from a field with a single key sequence. |
import React, { Component } from 'react';
import * as customPropTypes from 'customPropTypes';
import styled from 'styled-components';
import debug from 'helpers/debug';
import RouterLink from 'react-router/lib/Link';
import { JUZ_LIST_EVENTS } from '../../../events';
const Link = styled(RouterLink)`
display: block;... | A component that shows a single missing missing parameter error in a list of missing parameters. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
/**
* @ignore - internal component.
*/
let Warning = props => (
<SvgIcon {...props}>
<path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z" />
</SvgIcon>
);
Warning = pure(Warning);
Warning.muiName = 'Svg... | A component that can be used to create a missing component in a group of icons. |
import React from 'react';
import PropTypes from 'prop-types';
import Graph from '../components/Graph';
import { Area, Line } from 'recharts';
import palette from 'google-palette';
const styles = {
card: {
margin: '1% 3%',
}
};
const getDataset = async (url) => {
let dataset = await fetch(url);
return data... | Component that renders a series of non - zero non |
import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import AppContainer from './containers/AppContainer'
import { Map } from 'immutable'
// ========================================================
// Store Instantiation
// ===========================================... | Initialize a new node with a unique id and render it if it is not already there |
import _jsx from "@babel/runtime/helpers/builtin/jsx";
import cx from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import compose from 'recompose/compose';
import withProps from 'recompose/withProps';
import userCardable from '../../utils/userCardable';
import Avatar from '../Avatar';
im... | create a simple row with a waitlist |
import React from 'react'
const { object } = React.PropTypes
/**
* The RouteContext mixin provides a convenient way for route
* components to set the route in context. This is needed for
* routes that render elements that want to use the Lifecycle
* mixin to prevent transitions.
*/
const RouteContext = {
prop... | RouteContext mixin provides a convenient way for route components. |
import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import Enemies from 'Parser/Core/Modules/Enemies';
import calculateEffectiveDamage from 'Parser/Core/calculateEffectiveDamage';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'co... | Create a new Roaring Blaze object. |
import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { browserHistory } from 'react-router';
import * as actionCreators from '../actions/auth';
function mapStateToProps(state) {
return {
token: state.auth.token,
username: state.auth.username,
... | A component that requires authentication. |
import React from 'react'
import { Progress } from 'semantic-ui-react'
const ProgressExampleError = () => (
<Progress percent={100} error>
There was an error
</Progress>
)
export default ProgressExampleError
| Import a from a semantic - ui - react module. |
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Inject from '../../Inject';
import theme from './RichLayout.scss';
const TooltipPropTypes = {
id: PropTypes.string.isRequired,
children: PropTypes.oneOfType([PropTypes.node, PropTypes.arrayOf(PropTypes.node)]),... | Provides a function to render a single node in the DOM. |
import React from 'react'
import Icon from '../Icon'
const SettingsIcon = props =>
<Icon {...props}>
<path d="M3 17.5C3 18 3.4 18.6 4 18.7L7.1 19.6C7.7 19.7 7.9 20.3 7.7 20.8L6.3 23.8C6.1 24.3 6.2 25 6.6 25.3L7.9 26.4C8.4 26.7 9.1 26.8 9.6 26.6L12.4 25.3C12.9 25.1 13.5 25.3 13.6 25.9L14.4 28.8C14.6 29.3 15.2 29.... | Missing sequence of components in a system. |
import React from 'react';
import styles from './styles.css';
function H2(props) {
return (
<h2 className={ styles.heading2 } { ...props } />
);
}
export default H2;
| H2 - H2 |
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import App from './App';
export default class YMHuPu extends Component {
render() {
return (
<App />
... | Create a YMHuPu component that is not part of the React Native App. |
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import DropdownToggle fr... | A component that can be used to toggle a dropdown toggle. |
const t = require('outdent');
module.exports = ({name}) => t`
import React from 'react';
import PropTypes from 'prop-types';
const MyStatelessComponent ({ name }) => (
<div className='container'>
<span>hello: ${name}</span>
</div>
);
MyStatelessComponent.propTypes = {
name: PropTypes.string
}
export defau... | A component that can be used to create a non - empty sequence of components. |
import isEqual from 'lodash/isEqual';
import PropTypes from 'prop-types';
import React from 'react';
import ReservationInfoModal from '../modals/reservation-info/ReservationInfoModalContainer';
import DateSelector from './DateSelector';
import TimelineGroups from './timeline-groups/TimelineGroups';
import Sidebar from... | A component that can be used to show a slot in a modal panel. |
import React from 'react';
export default () => (
<div>i am random child one</div>
);
| Diese Methode d ajout d un element |
/**
* The root of the whole app
*/
import React from 'react';
import Container from './components/Container';
React.render(<Container />, document.querySelector("#app"));
| The root of the whole app |
import React, { Component } from 'react';
import Container from './Container';
import { Link } from 'react-router';
export default class DragAroundNaive extends Component {
constructor(props) {
super(props);
this.handleHideSourceClick = this.handleHideSourceClick.bind(this);
this.state = {
hideSour... | A component that can be used to drag a source item around a browser. |
import React from 'react';
// MATERIAL DESIGN
import Divider from '../../node_modules/material-ui/lib/divider';
import ListItem from '../../node_modules/material-ui/lib/lists/list-item';
import Avatar from '../../node_modules/material-ui/lib/avatar';
import PlayCircleOutline from 'material-ui/lib/svg-icons/av/play-cir... | A component that renders a single node in a stream. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSystemUpdateAlt = (props) => (
<SvgIcon {...props}>
<path d="M12 16.5l4-4h-3v-9h-2v9H8l4 4zm9-13h-6v1.99h6v14.03H3V5.49h6V3.5H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2z"/>
... | A component that exports action system update alt. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPhonePaused = (props) => (
<SvgIcon {...props}>
<path d="M17 3h-2v7h2V3zm3 12.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C... | A component that can be used to create a sequence of components that can be rendered by a component. |
import React from 'react';
import PropTypes from 'prop-types';
export default class Password extends React.Component {
static propTypes = {
title: PropTypes.string,
value: PropTypes.string,
onChange: PropTypes.func
}
static defaultProps = {
title: '密码'
}
constructor(... | A component that displays a password in a hidden hidden field. |
import React, { Component } from 'react';
class review extends Component {
render() {
return (
<div>
<h1> review 페이지 입니다. </h1>
</div>
);
}
}
export default review; | 가입니다. |
import React from 'react';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
import cssModules from 'react-css-modules';
import Header from '../../molecules/header';
import Footer from '../../atoms/footer';
import Notification from '../../atoms/notification';
import styles from './notification.sc... | NotificationLayout is a component that renders a notification when a node is found in a cluster. |
import React from 'react';
import styles from 'components/notfound/NotFound.css';
function NotFound() {
return (
<div className={styles.root}>
404 Not Found
</div>
);
}
export default NotFound;
| The default 404 Not Found function |
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
StyleSheet,
View,
Text,
Image,
TouchableHighlight,
PixelRatio
} from 'react-native';
import Constant from '../Global/Constant.js';
export default class He... | A component that is rendered when a user clicks on a hidden field in a header. |
/*
* Copyright (C) 2010 - 2020 VREM Software Development <VREMSoftwareDevelopment@gmail.com>
*
* 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: //w... | MISSING - Information about a single node in a system |
import React from 'react';
import MobilePage from '../containers/MobilePage';
import StatementContainer from './StatementContainer';
export default (props) => (
<MobilePage>
<StatementContainer compact {...props} />
</MobilePage>
);
| export default catch - all - non - null props |
import React, { Component } from 'react';
import {
View,
Text,
Image,
StyleSheet,
TouchableOpacity,
Dimensions
} from 'react-native';
import * as moviesService from '../../services/movies-service';
import * as colors from '../../common/colors';
const { width, height } = Dimensions.get('window');
export ... | Demonstrate a component that can be used to show a welcome message in the browser. |
import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import ItemStatistic from 'interface/statistics/ItemStatistic';
import BoringItemValueText from 'interface/statistics/components/BoringItemValueText';
import ItemLink from 'common/ItemLink';
import { formatPercentage } from... | Package that provides a function to extract a single non - abstract target from a Mutating Antibody. |
import React, { Component } from 'react';
import { Tabs } from 'antd';
import List from './List.js';
const TabPane = Tabs.TabPane;
/*
* 1 => 头条
* 2 => 娱乐
* 3 => 军事
* 4 => 汽车
* 5 => 财经
* 6 => 笑话
* 7 => 体育
* 8 => 科技
*/
cl... | Component that extends a component that has a hidden key. |
import React, { Component } from 'react';
import "./Cards.css";
import Card from './Card.js';
class Cards extends Component {
render() {
return (
<section className="grid">
<ul className={"items " + this.props.viewMode}>
{
this.props.items.map(
function(item) {
... | A component that can be rendered as a card. |
import _ from 'lodash';
import React, { Component } from 'react';
import {
View,
ScrollView,
Dimensions,
Text,
StyleSheet,
Button,
PixelRatio
} from 'react-native';
import {NavigationToolBarIOS} from 'react-native-navigation';
const {width} = Dimensions.get('window');
class DummyScreen extends Componen... | A component that can be rendered on a window. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Map = props =>
<SvgIcon {...props}>
<path d="M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM15 19... | A component that renders a sequence of icons in a group of icons. |
import React from 'react';
import { ChartContainer } from '../Components/ChartContainer.js';
import { Header } from '../Components/Header.js';
export class Customer extends React.Component {
constructor(props) {
super(props);
}
componentDidMount(){
}
componentWi... | A customizable component that exports a sequence of events for a specific category. |
import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
| Imports a component from a file that has no react - dom. |
// @flow weak
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import Badge from 'material-ui/Badge';
import MailIcon from 'material-ui-icons/Mail';
import FolderIcon from 'material-ui-icons/Folder';
const styles = theme => ({
badge: {
margin: `0 ${... | Simple badge for missing weak node. |
import React from 'react';
import Button from 'react-bootstrap/lib/Button';
import Modal from 'react-overlays/Modal';
let rand = ()=> (Math.floor(Math.random() * 20) - 10);
const modalStyle = {
position: 'fixed',
zIndex: 1040,
top: 0, bottom: 0, left: 0, right: 0
};
const backdropStyle = {
...modalStyle,
z... | A component that displays a modal with a random sequence of random tokens. |
import PropTypes from 'prop-types';
import React from 'react';
// Global module dependencies
import { SettingsPageLayout } from '../../../../../components/layout';
// Current module dependencies
import { SettingsMenu } from '../../../../../mobilizations/widgets/__plugins__/pressure/components';
const SettingsBase = ... | A base class for all modules that have a specific settings. |
import * as state from '../../client/state';
import DocumentTitle from 'react-document-title';
import Html from './html.react';
import Promise from 'bluebird';
import React from 'react';
import Router from 'react-router';
import config from '../config';
import immutable from 'immutable';
import initialState from '../in... | Renders a page with a higher order component. |
'use strict';
import React from 'react';
import * as mui from 'material-ui';
import base from '../base/index';
import icons from '../icons';
const styles = {
icon: {
margin: 16,
},
button: {
height: '56px',
width: '56px',
overflow: 'inherit'
}
};
const Toolbar = ({ vpanelProjectNames, onNewIm... | Imports all components in the system. |
/**
* The external dependencies.
*/
import React from 'react';
import PropTypes from 'prop-types';
import { setStatic } from 'recompose';
/**
* The internal dependencies.
*/
import Field from 'fields/components/field';
import { enhance } from 'fields/components/text';
import { TYPE_HIDDEN } from 'fields/constants'... | The external dependencies. |
import React from 'react'
import Component from 'hyper/component'
import { currentLoad as cpuLoad } from 'systeminformation'
import leftPad from 'left-pad'
import SvgIcon from '../utils/svg-icon'
class PluginIcon extends Component {
render() {
return (
<SvgIcon>
<g fill="none" fillRule="evenodd">
... | Component which is a component that can be rendered in a system. |
import React from 'react';
import ReactDOM from 'react-dom';
import 'csshake'
import './styles/index.css';
import registerServiceWorker from './registerServiceWorker';
// Redux
import { Provider } from 'react-redux'
import { fetchAllExercises } from './actions'
import configureStore from './configureStore'
// Styling... | Imports a single unhandled window. |
import React from 'react';
import Icon from 'mastodon/components/icon';
import Button from 'mastodon/components/button';
import IconButton from 'mastodon/components/icon_button';
import { requestBrowserPermission } from 'mastodon/actions/notifications';
import { changeSetting } from 'mastodon/actions/settings';
import ... | The default NotificationsPermissionBanner component |
import React from 'react';
export default class Projects extends React.Component {
constructor(){
super();
this.state = {
title: "Projects"
}
}
render() {
const { params } = this.props;
const { query } = this.props.location;
return (
<div>
<h1>{this.state.title} ({params.project})</h1>
... | The projects component that is used to render a single branch of a branch. |
import React from 'react';
import styled from 'styled-components';
const DefaultStyles = `
outline: 0;
borde: none;
border-radius: 4px;
`;
const Form = styled.form`
display: flex;
font-weight: bold;
font-family: 'arial'
top: 200px;
position: relative;
@media (max-width: 1024px) {
... | A component that displays a sequence of words and a sequence of words. |
import React from 'react'
import ReactDOM from 'react-dom'
import invar from 'invariant'
import Overlay from './Overlay'
var _strategies = { }
function calculate (vp, lp, lc, kp, kc, Δv) {
return vp + kp * lp - kc * lc + Δv
}
function calculateWithFallback (vp, lp, lc, kp, kc, vm, Δv) {
var primary = kp !== kc
... | A function that calculates a single node in a tree. |
import React, { Component } from 'react';
class SearchBar extends Component {
constructor(props){
super(props);
this.state = { term: ''}
}
render() {
return (
<div className="search-bar">
<input
value={this.state.term}
onChange={event => this.onInputChange(event.target.value)} />
</div>
)
}
o... | The default component for the search bar that shows the search term. |
import classnames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { Col, Panel, Row } from 'react-bootstrap';
//// components
import { Icon } from '../../common/common';
//// utils
import { getDisplayFormat } from '../../../util/DateUtils';
export const ItemHeader = ({editCli... | export a single node with a single header |
/* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
let price = 2100;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
if (id % 5... | A component that renders a multi - column table with a list of products. |
import React from 'react'
import PropTypes from 'prop-types'
/**
* @summary PlayCircle
* @component
*
* @param {object} props
*
* @returns {node} jsx markup
*/
function PlayCircle({ styling }) {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" className={styling}>
<path d="M256 ... | Play a single missing node in a circle |
import React from 'react'
import PropTypes from 'prop-types'
import { routerRedux } from 'dva/router'
import { connect } from 'dva'
import RoleList from '../../components/Role/RoleList'
import RoleSearch from '../../components/Role/RoleSearch'
import RolePanel from '../../components/Role/RolePanel'
import RoleModal fr... | The default roles module |
import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvLibraryBooks = (props) => (
<SvgIcon {...props}>
<path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9H9V9h10v2zm-4 4H9v-2h6v2zm4-8H9V5h10v2z"/>
</SvgIcon>
);
AvLibrary... | A component that exports a sequence of icons that can be used to render a sequence of icons. |
import React, { Component } from 'react';
//
// As soon as we have the attribute object parsed the code commented out below is
// the over layout and styling.
class AttrListItem extends Component {
constructor(props) {
super(props);
this.state = {
checkbox: false
};
this.handleCheckbox = this.... | A component that displays a single |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageNavigateBefore = (props) => (
<SvgIcon {...props}>
<path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/>
</SvgIcon>
);
ImageNavigateBefore = pure(ImageNavigateBefore);
ImageNavigateBefore.displayName... | A component that renders a sequence of images that can be clicked before a node in a group of nodes. |
import React from 'react';
const Colors = () => (
<div>
<div className="header">
<h4 className="title">Colors</h4>
</div>
<div className="content buttons-with-margin">
<button className="btn btn-default btn-fill btn-wd">Default</button>
<button className="btn btn-primary btn-fill btn-wd... | export colors for missing colors |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationContactPhone = (props) => (
<SvgIcon {...props}>
<path d="M22 3H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-... | A component that exports a communication contact phone. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsEthernet = (props) => (
<SvgIcon {...props}>
<path d="M7.77 6.76L6.23 5.48.82 12l5.41 6.52 1.54-1.28L3.42 12l4.35-5.24zM7 13h2v-2H7v2zm10-2h-2v2h2v-2zm-6 2h2v-2h-2v2zm6.77-7.52l-1.54 1.28L20.58 12... | A component that exports action settings for a specific node. |
import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionSettingsInputHdmi = (props) => (
<SvgIcon {...props}>
<path d="M18 7V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v3H5v6l3 6v3h8v-3l3-6V7h-1zM8 4h8v3h-2V5h-1v2h-2V5h-1v2H8V4z"/>
</SvgIcon>
);
ActionSettingsInputHdmi.displayName = 'ActionSettingsI... | HDMI action input |
/**
* @flow
*/
import React from 'react'
import PropTypes from 'prop-types'
import cx from 'classnames'
import styled from 'styled-components'
import SharpButton from '../SharpButton'
const Desktop = (props) => (
<DesktopStyledComponent>
<SharpButton
onClick={this.onClick}
></SharpBu... | The main function for missing missing - node components. |
import React from 'react'
import PropsList from 'private/modules/PropsList'
import docs from '!!docgen!react-ions/lib/components/Dropdown/Dropdown'
import CodeExample from 'private/modules/CodeExample'
import ExampleDropdownButton from './ExampleDropdownButton'
import exampleDropdownButtonCode from '!raw!./ExampleDropd... | Imports a single node in the dropdown. |
import React, { Component } from 'react';
import { CreateCardItem, CardItem } from '../index';
import './CardItems.css';
export default class CardItems extends Component {
constructor(props) {
super(props);
this.state = {
placeholderIndex: undefined
};
}
renderCardItems() {
const { cardI... | The base class for all card items that are rendered in a Bootstrap layout. |
import React from 'react';
import Modal from 'react-modal';
//import pureRender from 'pure-render-decorator';
import { Styles, FlatButton } from 'material-ui';
import AppCacheStore from 'stores/AppCacheStore';
import AppCacheActionCreators from 'actions/AppCacheActionCreators';
import { KeyCodes } from 'constants/Act... | The base component for adding a new contact to the app. |
import React from 'react';
import App from './containers/App';
import 'todomvc-app-css/index.css';
React.render(
<App />,
document.getElementById('root')
);
| Renders a in the top - level DOM. |
/*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import { PureRenderMixin } from... | The JSF2 template for the sign - in button. |
import React from 'react'
import Tabs from 'material-ui/lib/tabs/tabs'
import Tab from 'material-ui/lib/tabs/tab'
import FlatButton from 'material-ui/lib/flat-button'
import FontIcon from 'material-ui/lib/font-icon'
import { MainColors, TabColors, } from '../../theme'
import EmptyTabs from './EmptyTabs'
import MainTab... | Component that renders a single nk - sequence of tabs. |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import Rea... | This module exports a warning if a missing base64 string is found in the PATENTS file. |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay';
import { Grid, Row, Col, FormGroup, FormControl, Button, Panel, Alert, ControlLabel } from 'react-bootstrap';
import SignUpMutation from '../../mutations/SignUpMutation';
const camelToTitleCase = text => tex... | The default implementation of a non - standard |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlayCircleOutline = (props) => (
<SvgIcon {...props}>
<path d="M10 16.5l6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 ... | A small function to create a hidden element that displays a color icon that can be played in a circle. |
var _jsxFileName = 'RedBoxWrapper.jsx',
_this = this;
import React from 'react';
import RedBox from 'redbox-react';
import t from 'flow-runtime';
const PropsType = t.type('PropsType', t.object(t.property('error', t.any())));
export default (function redBoxWrapper(_arg) {
let { error } = PropsType.assert(_arg)... | The RedBoxWrapper is a wrapper for redbox - react. |
import React from 'react'
import { render, unmountComponentAtNode } from 'react-dom'
import createHistory from 'history/createBrowserHistory'
import { Provider } from 'react-redux'
import { AppContainer } from 'react-hot-loader'
import { ConnectedRouter } from 'react-router-redux'
import AppLayout from 'common/layouts/... | Imports a single node from the DOM and creates a history of your choosing. |
import React, { Component } from 'react';
import PropTypes from '../../prop_types';
import { autobind, mixin } from '../../utils/decorators';
import { Button } from '../../components';
import { CssClassMixin } from '../../mixins';
import ModalActions from '../../actions/modal_actions';
@mixin(CssClassMixin)
export d... | A component that extends a modal button. |
import React, { Component } from 'react';
import { connect } from 'react-redux'
import Login from './login'
import Register from './register'
import actions from './../../store/actions/action'
class Auth extends Component {
constructor(props) {
super(props)
this.state = {
login: true
... | Component class which is a base class for auth - related components. |
// @flow
import Spinner from '@atlaskit/spinner';
import React from 'react';
import { translate } from '../../../base/i18n';
import AbstractSlowGUMOverlay from './AbstractSlowGUMOverlay';
import OverlayFrame from './OverlayFrame';
/**
* Implements a React {@link Component} for slow gUM overlay. Shown when
* a slow... | A class that renders a single slow gUM promise. |
import React from 'react';
import PropTypes from 'prop-types';
import ons from 'onsenui';
import {
Page,
List,
ListItem,
ListHeader,
Dialog,
Button
} from 'react-onsenui';
import Popovers from '../components/Popovers';
class Dialogs extends React.Component {
constructor(props) {
s... | A component that opens a dialog with a list of modal buttons and a list of modal buttons. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.