code stringlengths 26 5k | intent stringlengths 3 2.56k |
|---|---|
import React, { Component } from 'react';
import Header from './components/header/Header';
import Content from './components/content/Content';
import './App.css';
class App extends Component {
render() {
return (
<div>
<Header />
<Content />
</div>
);
}
}
export default App;
| The main function for the app. |
import React from 'react';
import Paper from '@material-ui/core/Paper';
import MenuList from '@material-ui/core/MenuList';
import MenuItem from '@material-ui/core/MenuItem';
export default function SimpleMenuList() {
return (
<Paper elevation={8}>
<MenuList>
<MenuItem>Profile</MenuItem>
<Me... | The default menu list |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionBugReport = (props) => (
<SvgIcon {...props}>
<path d="M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7... | A component that renders a bug report on a series of components. |
import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["className"];
import React from 'react';
import classNames from 'classnames';
export var MasterCardIcon = function MasterCardIcon(_ref) {
var classNa... | A component that displays a master card icon. |
import React from 'react'
export default function Layout ({ children }) {
return (
<article className='mw5 mw7-ns mt6 center bg-light-gray pa3 ph5-ns'>
<section className='f5 tc lh-copy'>
<h1>Hello, world!</h1>
{children}
</section>
</article>
)
}
| Layout - the default layout for a |
import React from 'react';
class Assignment extends React.Component {
//static loadProps (params, cb) {
//cb(null, {
//assignment: COURSES[params.courseId].assignments[params.assignmentId]
//});
//}
render () {
//var { title, body } = this.props.assignment;
var { courseId, assignmentId } ... | A component that renders a single missing - missing assignment. |
import React from 'react';
import styles from './Page.css';
export default function Page({ children }) {
return (
<div className={styles.page}>
<div className={styles.content}>{children}</div>
</div>
);
}
| The default function for Page. |
'use babel';
import React from 'react';
import {connect} from 'react-redux';
import sidebarActions from '../actions/sidebar';
import Profile from '../components/Profile';
class AtomiesSidebar extends React.Component {
render() {
return (
<span className="atomies-sidebar">
<h1>Chat</h1>
is... | A component that renders a single node in the sidebar. |
import React from 'react';
import { node } from 'prop-types';
import wrapValidator from './helpers/wrapValidator';
export default function nChildren(n, propType = node) {
if (typeof n !== 'number' || isNaN(n) || n < 0) {
throw new TypeError('a non-negative number is required');
}
const validator = function ... | Checks that a component has n children. |
import React from 'react';
import { Gebuz, Abelito75 } from 'CONTRIBUTORS';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
export default [
{
date: new Date('2019-4-30'),
changes: 'Added High Noon and Power of the Moon azerite pieces to the statistics tab.',
contributors: ... | Imports a single node in the system. |
import React from 'react';
import Modal from '../src/Modal';
import Button from '../src/Button';
export default
<Modal
header='Modal Header'
trigger={<Button>MODAL</Button>}>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad ... | Exports a single - modal . |
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */
/* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */
/* eslint-disable import/no-mutable-exports */
import React from 'react';
import deprecatedProperty from '../../utilities/warning/deprecated-property';
import deprecate... | Check if a component is in a DOM tree. |
import React from 'react';
import {
Field,
Control,
Form,
actions,
track,
} from 'react-redux-form';
import { connect } from 'react-redux';
import uniqueId from 'lodash/uniqueId';
import get from 'lodash/get';
const controlMap = {
text: <input type="text" />
};
const createField = () => ({
id: uniqueId(... | A component that creates a single missing field in a hidden hidden field. |
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
View,
Text,
Button
} from 'react-native';
import Touch from 'react-native-touch-sensor'
export default class TouchExample extends Component {
... | Synthesize a single user - specific from the UI |
import React from 'react';
import Circle from './Circle';
import Wrapper from './Wrapper';
const LoadingIndicator = () => (
<Wrapper>
<Circle />
<Circle rotate={30} delay={-1.1} />
<Circle rotate={60} delay={-1} />
<Circle rotate={90} delay={-0.9} />
<Circle rotate={120} delay={-0.8} />
<Cir... | The LoadingIndicator function |
import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--AddUser';
let EntypoAddUser = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M15.989,19.129C16,17,13.803,15.74,11.672,14.822c-2.123-0.914-2.801-1.684-2.801-3.334c0-0.989,0.648-... | The default entypo add user icon. |
import React from 'react';
import classNames from 'classnames';
import SafeAnchor from './SafeAnchor';
const MenuItem = React.createClass({
propTypes: {
header: React.PropTypes.bool,
divider: React.PropTypes.bool,
href: React.PropTypes.string,
title: React.PropTypes.string,
target: ... | Create a menu item with a dropdown menu. |
import React from 'react';
class NavBar extends React.Component {
render() {
return (
<nav className="navbar navbar-default">
<div className="container-fluid">
<div className="navbar-header">
<button type="button" className="navbar-toggle collapsed" data-toggle="collapse" dat... | A component that displays a navigable sequence of words in a navbar. |
import React from 'react';
import { useTheme } from '@turntwo/react-ui';
import Link from './Link';
import Typography from './Typography';
import FollowButton from './FollowButton';
import Image from './Image';
const DashboardTeam = ({ team, ...rest }) => {
const {
title,
fieldSlug: slug,
fieldTeamGame:... | DashboardTeam - DashboardTeam |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { observer } from 'mobx-react';
import panelsStore from 'stores/panelsStore';
import withStore from 'hocs/withStore';
import localize from 'hocs/localize';
import { Checkbox } from 'antd';
@withStore()
@localize('TableQuerySwitch')
@o... | TableQuerySwitch is a component that can be used to switch between a table and a table. |
/* @flow */
import React from 'react';
import Spinner from './Spinner';
import Button from './Button';
import style from './DashboardSection.css';
type Props = {
title: string,
subtitle: string,
rightElement?: any,
rightButtonText?: string,
rightButtonType?: string,
onRightButtonClick?: () => mixed,
load... | Displays a single missing - node node in a section. |
/**
* TeaserSearch module.
* @module @massds/mayflower-react/TeaserSearch
* @requires module:@massds/mayflower-assets/scss/01-atoms/button-with-icon
* @requires module:@massds/mayflower-assets/scss/01-atoms/button-search
* @requires module:@massds/mayflower-assets/scss/01-atoms/input-typeahead
* @requires module:... | The TeaserSearch component which shows a search term on a link that is clicked when the user selects a term. |
import React from 'react';
import CoreAlwaysBeCasting from 'Parser/Core/Modules/AlwaysBeCasting';
import SPELLS from 'common/SPELLS';
import Icon from 'common/Icon';
import { formatPercentage } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import SpellLink from 'common/Spell... | Package that implements the AlwaysBeCasting interface. |
import React, { Component } from 'react';
import {ngm} from './NagomeConn.js';
import CommentList from './CommentList.js';
import DropArea from './DropArea.js';
export default class Comment extends Component {
constructor() {
super();
this.state = {
data: [
//{"no":70,... | A component that implements the comment - related feature of the comment - related model. |
import React from 'react';
import { Button, Panel}
from 'muicss/react';
import WebMidi from 'webmidi';
import Clock from './Clock';
import StepSequencer from './StepSequencer';
const TO_BIND = [
'handleOnClockTick',
'handleAddSequencer',
'handleDestroySequencer',
'handleOnClockReset',
'onWebMidiDisconnect... | The main component of a component which is a component that is not part of a mixture of other components. |
import React from 'react';
const VideoListItem = ({ video, onVideoSelect }) => {
const imgUrl = video.snippet.thumbnails.default.url;
const title = video.snippet.title;
return(
<li
className='list-group-item' onClick={()=>onVideoSelect(video)}
>
<div className='video-list media'>
<div... | The list item for a video. |
import React from 'react';
import { inject, observer } from 'mobx-react';
// import _ from 'lodash'
// CSS Imports
import '../styles/App.css';
import '../styles/Layout.css';
import '../styles/MenuBar.css';
import '../styles/Help.css';
// import Popup from "reactjs-popup";
@inject('menubarStore', 'pulseSt... | Create a new menu with a specific name. |
import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Enemies from 'parser/shared/modules/Enemies';
import Events from 'parser/core/Events';
import SPELLS from 'common/SPELLS';
import { formatThousands, formatNumber, formatPercentage } from 'common/format';
import Statis... | Create a new Havoc object with a damage of 0 and a dps of 1 |
import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
const DevTools = createDevTools(
// Monitors are individually adjustable with props.
// Consult their repositories to learn about... | Imports a single node from React and creates a DevTools object. |
import React from 'react';
import {Route} from 'react-router-dom';
import ButtonCatalog from './ButtonCatalog';
import CardCatalog from './CardCatalog';
import CheckboxCatalog from './CheckboxCatalog';
import ChipsCatalog from './ChipsCatalog';
import DataTableCatalog from './DataTableCatalog';
import DialogCatalog fr... | Imports a single component and its children. |
import React from 'react';
import TextField from 'material-ui/TextField';
import {orange500, blue500} from 'material-ui/styles/colors';
const styles = {
errorStyle: {
color: orange500,
},
underlineStyle: {
borderColor: orange500,
},
floatingLabelStyle: {
color: orange500,
},
floatingLabelFocu... | The TextFieldExampleCustomize module provides a function to customize the Hint Text and Floating Label fields. |
import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { linkTo } from '@storybook/addon-links'
import EditProfileCategory from '../src/js/components/ui/EditProfileCategory/EditProfileCategory.js';
storiesOf('EditProfileCategory', module)
... | Diese un objeto HiddenNode. |
import React from 'react';
import { Checkbox, CheckboxGroup } from 'cf-component-checkbox';
class CheckboxComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
checkbox1: true,
checkbox2: false,
checkboxValues: ['option1']
};
this.onCheckboxGroupChang... | A component that can be used to create a single checkbox or a group of checkboxes. |
/*eslint no-undef: 0*/
import React from 'react';
import { render } from 'react-dom';
import { Router, browserHistory } from 'react-router';
import { Provider } from 'react-redux';
import { syncHistoryWithStore } from 'react-router-redux';
import { buildStore } from './helpers/store';
import getRoutes from './routes'... | Imports a single node in the DOM and renders it with a history. |
import React from 'react';
import { Router, Route, IndexRoute, Link } from 'react-router';
var PICTURES = [
{ id: 0, src: 'http://placekitten.com/601/601' },
{ id: 1, src: 'http://placekitten.com/610/610' },
{ id: 2, src: 'http://placekitten.com/620/620' }
];
var Modal = React.createClass({
styles: {
posi... | The main function for the high - level hierarchy. |
/*
* 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... | A component that displays a single user in the system if it is authenticated. |
import React from 'react';
/**
* @ignore - internal component.
*/
const TableContext = React.createContext();
export default TableContext; | Imports a table context for a missing component. |
/**
* Datepicker: Basic Usage
*/
import React from 'react';
import DatepickerDemo from './DatepickerDemo';
const BasicUsage = () => (
<div>
<DatepickerDemo />
</div>
);
export default BasicUsage;
| Usage exports a default value for a |
/* eslint-disable no-eval*/
import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import { transform } from 'babel-standalone';
import * as ReactToolbox from 'react-toolbox';
import style from './style.css';
const ERROR_TIMEOUT = 500;
const Preview = React.createClass({
pr... | The main function that is executed when a component is mounted or unmounted. |
import React from 'react'
import { DropOption } from '../../../components'
import { Table, Row, Col, Card, message } from 'antd'
const DropOptionPage = () => <div className="content-inner">
<Row gutter={32}>
<Col lg={8} md={12}>
<Card title="默认">
<DropOption menuOptions={[{ key: '1', name: '编辑' }, ... | Imports a single from a table. |
import React from 'react';
import PropTypes from 'prop-types';
import SectionHeaderGeneral from '../SectionHeaderGeneral';
import GoalMenuItem from '../GoalMenuItem';
import Spacer from '../Spacer';
import styles from './styles.css';
import SectionFooterNew from '../SectionFooterNew';
function CreateGoalPanel1(props)... | Create a single node with a single node with no children. |
import React from 'react';
import Paper from 'material-ui/Paper';
import Menu from 'material-ui/Menu';
import MenuItem from 'material-ui/MenuItem';
const style = {
display: 'inline-block',
margin: '16px 32px 16px 0',
};
const MenuExampleSimple = () => (
<div>
<Paper style={style}>
<Menu>
<Menu... | The default menu example for missing modules. |
import React from 'react';
import ColumnHeader from './column_header';
import PropTypes from 'prop-types';
import { debounce } from 'lodash';
import { scrollTop } from '../../../scroll';
import { isMobile } from '../../../is_mobile';
export default class Column extends React.PureComponent {
static propTypes = {
... | A column that is a component that can be rendered on a column. |
import React from 'react'
import {TableRow, TableRowColumn} from 'material-ui/Table'
import {
blueA200,
greenA700,
redA700
} from 'material-ui/styles/colors';
import CountBar from '../CountBar'
import PercentageBar from '../PercentageBar'
const BASE_URL = 'https://api.opendota.com'
const styles = {
column8: {... | export HeroRowPro from React |
import React from 'react'
import DuckImage from '../assets/Duck.jpg'
import './HomeView.scss'
export const HomeView = () => (
<div>
<h4>Welcome!</h4>
<img
alt='This is a duck, because Redux!'
className='duck'
src={DuckImage} />
</div>
)
export default HomeView
| export a function to export a object |
import React from 'react';
import itis from 'whatitis';
import Upload from 'rc-upload';
import PropTypes from 'prop-types';
import { AtomicBlockUtils, EditorState } from 'draft-js';
import Icon from '../icons';
import Button from '../button';
import { prefixCls } from '../../config';
class PictureControls extends R... | The component that handles the processing of a picture. |
import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionTrendingFlat = (props) => (
<SvgIcon {...props}>
<path d="M22 12l-4-4v3H3v2h15v3z"/>
</SvgIcon>
);
ActionTrendingFlat.displayName = 'ActionTrendingFlat';
ActionTrendingFlat.muiName = 'SvgIcon';
export default ActionTrendingFlat;
| ActionTrendingFlat exports a default action trending action for a node. |
import React from 'react';
| Imports React. |
import React from 'react';
/* Read https://slidewiki.atlassian.net/wiki/display/SWIK/How+To+Use+Slide+Thumbnail to know the details */
class Thumbnail extends React.Component {
render() {
const altText = this.props.alt === undefined ? '' : this.props.alt;
return (
<span>
<im... | A thumbnail component that renders a thumbnail of a node. |
import React from 'react';
import { NavLink } from 'react-router-dom';
import URL from '../../urls';
import { translate as $t } from '../../helpers';
import DisplayIf from '../ui/display-if';
class DropdownContent extends React.PureComponent {
componentDidMount() {
document.addEventListener('keydown', th... | A component that is used to show a dropdown menu with a menu of menu items. |
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import CSSClassnames from '../utils/CSSClassnames';
const CLASS_ROOT = CSSClassnames.OBJECT;
const LIST_ITEM = CSSClassnames.LIST_ITEM;
export default class GrommetObject... | A component that renders an object with key attributes that can be used to create a grommet object. |
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. |
import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
export default createDevTools(
<LogMonitor />
);
| import React from react - devtools |
'use strict';
import React from 'react';
export class SPAN extends React.Component {
render() {
return <span>{ this.props.children }</span>;
}
}
export default SPAN;
| A component that renders a single child component. |
import React from 'react'
class UserDetailApp extends React.Component {
constructor (props) {
super (props)
let {userId} = this.props.routeParams;
console.log(userId);
}
render (){
return (
<div>UserDetailApp</div>
)
}
}
export default UserDetailApp | A component that displays a sequence |
import React from 'react';
import { withStyles } from '@material-ui/core/styles';
import Button from '@material-ui/core/Button';
import PropTypes, { string, bool } from 'prop-types';
import cn from 'classnames';
import styles from './styles';
const AppButton = ({
classes,
color,
round,
border,
children,
f... | A function to create a button which can be used to show a single node in a group of buttons. |
import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Enemies from 'Parser/Core/Modules/Enemies';
import Combatants from 'Parser/Core/Modules/Combatants';
import calculateEffectiveDamage from 'Parser/Core/calculateEffectiveDamage';
import ITEMS from 'common/ITEMS';
import ItemDamageDone from... | The base class for all components that are not part of the StretensSleeplessShackles class. |
import React from 'react';
import classNames from 'classnames';
import TransitionEvents from './utils/TransitionEvents';
const CarouselItem = React.createClass({
propTypes: {
direction: React.PropTypes.oneOf(['prev', 'next']),
onAnimateOutEnd: React.PropTypes.func,
active: React.PropTypes.bool,
anima... | Creates a carousel item that can be rendered on the next or previous animation. |
import React from 'react';
const VideoItem = ({ video, onSelectVideo }) => {
const {
snippet: {
thumbnails: {
default: { url }
},
title,
}
} = video;
return (
<li
className="list-group-item"
onClick={() => {onSelectVideo(video)}}
>
<div className="vide... | Create a video item that lists all the video items in a list group. |
import React from 'react';
import { useComponents } from '../hooks';
import PropTypes from 'prop-types';
export default function FieldsetArray({ label, children, addRow }) {
const { View, Button } = useComponents();
return (
<View>
{children}
{addRow && (
<Button... | Private function to create a FieldsetArray with a label and children. |
// @flow
import React, { Component } from 'react';
import { AppRegistry } from 'react-native';
import App from './src/App.js';
export default class reactSnap extends Component {
render() {
return (
<App />
);
}
}
AppRegistry.registerComponent('reactSnap', () => reactSnap);
| The base class for all components that are not part of a react - native component. |
import { Router, Route, browserHistory } from 'react-router'
import { Provider } from 'react-redux'
import { render } from 'react-dom'
import React from 'react'
import App from './containers/App'
import configure from './store'
const store = configure()
render(
<Provider store={store}>
<Router history={browse... | Imports a single node in the hierarchy. |
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'r... | A component that can be used to create a child tab container. |
import React from 'react';
import SvgIcon from '../../SvgIcon';
const NavigationChevronLeft = (props) => (
<SvgIcon {...props}>
<path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/>
</SvgIcon>
);
NavigationChevronLeft.displayName = 'NavigationChevronLeft';
NavigationChevronLeft.muiName = 'SvgIcon';
export... | A component that exports a navigation chooser left on a menu. |
import React from 'react';
import ReactDOM from 'react-dom';
class FetchDemo extends React.Component {
constructor(props) {
super(props); // la parola 'super' è usata per chiamare funzioni dal parente di un oggetto
// inizializzo lo state
this.state = {
repos: [] // setto l'array dei repo come vuoto
};
}... | Dal von fetch dal componente |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvMusicVideo = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.0... | A component that exports a single element in a sequence of icons. |
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from 'flavours/glitch/components/loading_indicator';
import {
fetchAccount,
fetchFollowing,
expandFollowing,
} from 'flavours/gl... | A component that follows a list of users. |
import React, { Component } from 'react';
import Button from 'react-toolbox/lib/button/Button.js';
/**
* Renders the return to university list Button.
* @param returnCallback() defines the return function to call onClick
*/
class ReturnButton extends Component {
render() {
return(
<span>
... | Creates a button that displays a list of components with a return value of true. |
import React from 'react';
import Icon from '../Icon';
export default class SettingsBackupRestoreIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M28 24c0-2.21-1.79-4-4-4s-4 1.79-4 4 1.79 4 4 4 4-1.79 4-4zM24 6C14.06 6 6 14.06 6 24H0l8 8 ... | A tool to display a series of settings for a managed managed object. |
import React from 'react';
import PCHeader from './pc_header';
import PCContainer from './pc_container';
import PCNewsBlock from './pc_news_block';
import PCNewsDetails from './pc_news_details';
import PCCSSHTML from './pc_csshtml';
import { Router, Route, Link, hashHistory} from 'react-router';
export default class... | The main function of the component that is used to create a unique key. |
import React from 'react'
import './example.less'
import Helmet from 'react-helmet'
import { config } from 'config'
export default class Less extends React.Component {
render () {
return (
<div>
<Helmet
title={`${config.siteTitle} | Hi lessy friends`}
/>
<h1
cla... | Component that exports a single hierarchical exception. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVideocamOff = (props) => (
<SvgIcon {...props}>
<path d="M21 6.5l-4 4V7c0-.55-.45-1-1-1H9.82L21 17.18V6.5zM3.27 2L2 3.27 4.73 6H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.21 0 .39-.08.54-.18L19.73 21 21 19.73 3... | A component that exports a sequence of icons that can be used to show a sequence of icons. |
import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { Row, Col } from 'antd'
import BranchTree from 'COMPONENT/BranchTree'
import InputSearch from 'COMPONENT/InputSearch'
import UserQuery from './UserQuery'
import UserTable from './UserTable'
import { initBr... | Component that displays a list of selected keys in a branch tree. |
import React from 'react';
import About from './About';
import fetch from '../../core/fetch';
export default {
path: '/about',
async action() {
return <About />;
},
};
| export default React - specific modules |
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import universal from 'react-universal-component';
const UniversalComponent = universal(({ page }) => import(`../${page}`), {
minDelay: 500,
loading: () => (
<div>
<div />
</div>
),
error: () => ... | React - Redux - compatible function to create a new universal 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-... | Provides a generic component that renders a critical error page if it is not present in the source tree. |
import _extends from 'babel-runtime/helpers/extends';
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { customPropTypes, getElementType, getUnhandledProps, META, useKeyOnly } from '../../lib';
import RevealContent from './RevealContent';
/**
* A reveal displays addi... | Creates a reveal element with no children. |
import React from 'react';
import { css } from '@emotion/css';
const Dot = ({ size, x, y, children, color }) => (
<div
className={css([
styles.root,
{
borderBottomColor: color,
borderRightWidth: `${size / 2}px`,
borderBottomWidth: `${size / 2}px`,
borderLeftWidth: `${s... | A function to generate a dot - rendered sequence of nodes. |
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import { mountConversations, unmountConversations, expandConversations } from '../../actions/conversations';
impo... | The direct timeline component which is used to show a direct timeline. |
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';
export default class AdminPage extends React.Component {
render() {
return (
<div>
<div className="app-header">
<h1>Admin Page</h1>
</div>
<h3>Attention</h3>
<p>It's just test page to show role capabilities.</p>
</div>
);
}
} | The AdminPage class |
/**
* The external dependencies.
*/
import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
/**
* The internal dependencies.
*/
import ContainerBase from 'containers/components/container/base';
/**
* Render the tabs of the container.
*
* @param {Object} props
* @par... | Renders the tabs of the container. |
import React from 'react'
import { PanelHeader } from './elements'
import ControlBar from './control_bar'
import PlaylistSwitcher from './playlist_switcher'
import PlaylistMenu from './playlist_menu'
import PlaylistContent from './playlist_content'
import FileBrowser from './file_browser'
import FileBrowserHeader from ... | Component that renders a single application. |
import React from 'react';
import { Field } from '.';
var FieldBase = function FieldBase(_ref) {
var tooltip = _ref.tooltip,
tooltipId = _ref.tooltipId,
tooltipProps = _ref.tooltipProps,
label = _ref.label,
id = _ref.id,
error = _ref.error,
errorMessage = _ref.errorMessage,
... | The base field is a base class and has no methods on it. |
// (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 menu. |
import React from 'react';
import classnames from 'classnames';
import QueueAnim from 'rc-queue-anim';
const testimonials = [
{
content: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eaque ratione consequuntur ut placeat.',
avatar: 'assets/images-demo/avatars/1.jpg',
name: 'Jason Bourne',
... | Private helper methods for the missing - node node - generation section of the uPortal model. |
import React from 'react';
import Helmet from 'react-helmet';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import HeaderLink from 'components/Header/HeaderLink';
import { makeSelectLoading, makeSelectError, allCars } from '../App/select... | A component that renders a single non - empty |
/*
* Retro Game Night
* Copyright (c) 2015 Sasha Fahrenkopf, Cameron White
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import './Grid.less'
import React from 'react'
import Radium from 'radium'
@Radium
export default class G... | The base class for a node with no children |
import React from 'react'
import styled from 'styled-components'
import frontend from '../assets/images/service-frontend.svg'
import management from '../assets/images/service-management.svg'
import uxui from '../assets/images/service-uxui.svg'
const ServicesCard = styled.div`
background: white;
border-radius: ${p... | Imports a single - level |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionZoomIn = (props) => (
<SvgIcon {...props}>
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 1... | ActionZoomIn is a function that exports a single node in a group of nodes. |
import React from 'react';
import ReactDOM from 'react-dom';
import {Cell} from 'fixed-data-table';
class ExplorerCell extends React.Component {
constructor(props){
super(props);
this.state = {
};
this.handleClick = this.handleClick.bind(this);
}
handleClick(){
if(this.props.contents.charAt(this.props.conte... | A component that displays a file or directory in a table. |
'use strict';
import React from 'react';
import RouterContext from './RouterContext';
import warning from './routerWarning';
var RoutingContext = React.createClass({
displayName: 'RoutingContext',
componentWillMount: function componentWillMount() {
process.env.NODE_ENV !== 'production' ? warning(false, '`Rou... | Create a routing context |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellular4Bar = (props) => (
<SvgIcon {...props}>
<path d="M2 22h20V2z"/>
</SvgIcon>
);
DeviceSignalCellular4Bar = pure(DeviceSignalCellular4Bar);
DeviceSignalCellular4Bar.displayName = 'DeviceSign... | Devolve a single node in a network |
import React from 'react'
import PropTypes from 'prop-types'
import Delay from 'react-delay'
import Button from 'components/Button'
import { DRINK_STATUS_AVAILABLE } from 'store/bar'
import Loader from 'components/Loader'
import classNames from 'classnames'
import './BigDrink.scss'
const BigDrink = ({
name,
drink... | Create a new BigDrink object that can be used to render a single single node. |
import React from 'react';
import {
Text,
View,
Dimensions,
StyleSheet,
} from 'react-native';
import MapView from 'react-native-maps';
import flagImg from './assets/flag-blue.png';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGI... | A base class for a single missing missing feature. |
import React, { Component } from 'react';
import {render} from 'react-dom';
class App extends Component {
render(){
return (
<h1>Hello World</h1>
);
}
}
render(<App />, document.getElementById('root'));
| The base class for the missing React component. |
/**
* Created by saubhagya on 1/8/17.
*/
import React, { Component } from 'react';
import TtnButton from 'core/Button/btn';
class MultiSelectDropdown extends Component{
constructor(){
super();
}
render(){
return(
<div>
{this.props.newCollab.map((item, index) ... | A component which can be used to show a dropdown of the missing items in the array of newCollab array. |
import React from 'react';
import { Link } from 'react-router'
import { Card, Row, Col } from 'antd';
var RANK_LOW=0;
var RANK_MEDIUM=3;
var RANK_HIGH=5;
class SimpleReport extends React.Component{
handleClick(e){
e.preventDefault();
console.log(this.props.id)
}
render(){
var rankCls;
switch (this.... | A component that can be rendered as a report with a single key sequence. |
/**
* 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 n - ary object with a hidden hidden tag that is shown in the feature image. |
import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Julia Plus' />
)
| export default function |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.