code stringlengths 26 5k | intent stringlengths 3 2.56k |
|---|---|
import React from 'react'
import PropTypes from 'prop-types'
import FormGroup from '../forms/FormGroup'
import InputRange from '../forms/InputRange'
const RangeStackOption = ({ label, name, value, definitions, required, onChange, error }) => {
// default value may be null
if (value === null || value === undefined)... | Create a RangeStackOption for a |
import PropTypes from 'prop-types';
import React from 'react';
import DraggableDiv from './DraggableDiv';
import TrackArea from './TrackArea';
// See commented out block in "render()".
//
// const checkMousePosVsEl = (x, y, el) => {
// const bBox = el.getBoundingClientRect();
// return isWithin(
// x, y, bBox... | Add a single block of code to a track area. |
import _transformLib from 'transform-lib';
const _components = {
Foo: {
displayName: 'Foo'
}
};
const _transformLib2 = _transformLib({
filename: '%FIXTURE_PATH%',
components: _components,
locals: [],
imports: []
});
function _wrapComponent(id) {
return function (Component) {
return _transformLib... | Private functions - Component that transforms a component into a component that can be rendered by a component. |
/**
* External dependencies
*/
import React from 'react';
import { translate as __ } from 'i18n-calypso';
/**
* Internal dependencies
*/
import { TableRow } from 'component/form-table';
import { Select } from 'wp-plugin-components';
import UrlMonitoring from './url-monitor';
export const queryMatch = () => [
{ ... | A component that exports a single unique ID in a network network. |
import PropTypes from 'prop-types';
import React, { Component } from 'react';
export default class ButtonFloating extends Component {
static propTypes = {
onClickHandler: PropTypes.func.isRequired,
icon : PropTypes.string.isRequired
};
handleClick() {
this.props.onClickHa... | ButtonFloating class extends a component that displays a button floating. |
import { Controller } from 'stimulus'
import React from 'react'
import ReactDOM from 'react-dom'
import GraphiQL from 'graphiql'
export default class extends Controller {
connect () {
const graphQLFetcher = (graphQLParams) => {
return fetch(this.data.get('endpoint'), {
method: 'post',
heade... | The base class for a sequence of components. |
import React from 'react'
import PropTypes from 'prop-types'
import PageLink from 'components/Contentful/PageLink'
import Config from 'shared/Configuration'
import styles from './style.module.css'
const CircHistorySidebar = (props) => {
const calloutLink = {
fields: {
title: 'Report a Problem',
url... | The main sidebar of the history box. |
// @flow
import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from '../../ROADMAP.md';
function Page() {
return <MarkdownDocs markdown={markdown} sourceLocation="/ROADMAP.md" />;
}
export default... | A default implementation of that returns a page with a Markdown documentation. |
import React, { Component } from 'react';
import { Style } from 'radium';
import Dimension, { dimensionPropTypes } from '../../../style/dimension';
import WindowFocus from '../../../windowFocus';
const styles = {
nav: {
display: 'flex',
alignItems: 'center'
}
};
@Dimension({ height: '54px' })
@WindowFocus... | A nav component that shows a menu item in the navigation bar. |
/* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconFilter3(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}... | A filter for selecting icons from a component. |
/* eslint-disable no-console, no-use-before-define */
import path from 'path';
import Express from 'express';
import qs from 'qs';
import webpack from 'webpack';
import webpackDevMiddleware from 'webpack-dev-middleware';
import webpackHotMiddleware from 'webpack-hot-middleware';
import webpackConfig from '../webpack.... | The main function that is responsible for rendering the universal example page |
import React from 'react';
import ReactDOM from 'react-dom';
import JqxNavigationBar from '../../../jqwidgets-react/react_jqxnavigationbar.js';
class App extends React.Component {
render () {
let innerHtml =
'<div>' +
'Early History of the Internet</div>' +
'</div>' +
'<div>' +
... | Create a component that opens a window in the browser. |
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Tiles from 'grommet/components/Tiles';
import Box from 'grommet/components/Box';
import Button from 'grommet/components/Button';
import Animate from 'grommet/components/Animate';
import AddIcon from 'g... | Demonstrates how to render a single keyboard - based sequence of boxes. |
import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { Router, Route } from 'react-router';
import configureStore from '../store/configureStore';
import App from './App';
import UserPage from './UserPage';
import RepoPage from './RepoPage';
const store = configureStore();
export de... | The root component of a sequence of components. |
import React from 'react';
export default function SvgFirstPage(props) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="-1612 -5393 32 32"
width="1em"
height="1em"
{...props}
>
<path
data-name="\u9577\u65B9\u5F62 9343"
fill="transparent"
... | SVG for the first page of a sequence of props. |
import React from 'react';
import CurrencyInput from './Currency/Input';
import CurrenchExchangeRate from './Currency/ExchangeRate';
import DataExport from './DataExport';
import DataImport from './DataImport';
import User from './User';
import CollapsibleSection from '../../components/CollapsibleSection';
const Setti... | Returns a function |
import React from 'react';
import { connect } from 'react-redux';
import { doControl } from '../../actions/app-actions';
class NodeDetailsControlButton extends React.Component {
constructor(props, context) {
super(props, context);
this.handleClick = this.handleClick.bind(this);
}
render() {
let cla... | A component that can be used to display a node - details control button. |
import React, { Component } from 'react';
import { Router } from 'react-router';
export default class Root extends Component {
render() {
const { routes, history, render, environment } = this.props;
return (
<div>
<Router
history={history}
render={render}
routes={routes}
enviro... | The root component of a sequence of components. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderOuter = (props) => (
<SvgIcon {...props}>
<path d="M13 7h-2v2h2V7zm0 4h-2v2h2v-2zm4 0h-2v2h2v-2zM3 3v18h18V3H3zm16 16H5V5h14v14zm-6-4h-2v2h2v-2zm-4-4H7v2h2v-2z"/>
</SvgIcon>
);
EditorBorderOuter =... | A component that renders a block of icons that are not visible in a component. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudUpload = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.... | A component that renders a series of images that can be uploaded to a file on the screen. |
// import React from 'react';
// export default App; | Export the default App for the React application. |
/* eslint-disable import/prefer-default-export */
import React from 'react';
import { Icon } from 'patternfly-react';
import { Link } from 'react-router-dom';
import { urlBuilder } from 'foremanReact/common/urlHelpers';
import { translate as __ } from 'foremanReact/common/I18n';
import { entitlementsInlineEditFormatter... | Exports a schema that can be used to create a table with a series of events. |
import React from 'react'
import styles from './styles.scss'
import arrowRight from '../images/arrowRight.png'
function Button ({ label, href }) {
return (
<a className={styles.button} href={href}>
<span>{label}</span>
<img src={arrowRight} />
</a>
)
}
Button.propTypes = {
labe... | Create a button with a label and a href that shows a list of missing missing keys. |
/**
* Created by jf on 15/10/27.
*/
import React from 'react';
import classNames from 'classnames';
import Mask from '../mask/index';
class Confirm extends React.Component {
static propTypes = {
buttons: React.PropTypes.array,
show: React.PropTypes.bool,
title: React.PropTypes.string
... | A component that displays a confirmation dialog when a key in a sequence of states is missing or missing. |
import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Toggle from 'react-toggle';
import noop from 'lodash/noop';
import StatusContent from '../../../components/status_content';
import { MediaGallery, Video } from '../../ui/util/async-component... | The status check box class |
import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import { bindActionCreators } from 'redux';
import { Link, withRouter } from 'react-router-dom';
import * as courseActions from '../../actions/courseActions';
import CourseList from './CourseList';
class CoursesPage ex... | The CoursesPage component is a component that can be used to add courses to a page. |
import 'babel-polyfill';
import React from 'react';
import {render} from 'react-dom';
import {Router, browserHistory} from 'react-router';
import routes from './routes';
import './styles/styles.css';
var $ = require('jquery');
window.jQuery = $;
window.$ = $;
import '../node_modules/materialize-css/dist/css/materialize... | Imports a module and renders a router. |
import React from 'react'
import classNames from 'classnames'
export default function({status}) {
let cls = classNames('label', {
'label-danger': status === 'resolved',
'label-success': status === 'open'
})
return <span className={cls}>
{status}
</span>;
}
| Generate a tag that represents a single node in a sequence of labels. |
import PropTypes from 'prop-types';
import React from 'react';
import Modal from 'Components/Modal/Modal';
import TagsModalContentConnector from './TagsModalContentConnector';
function TagsModal(props) {
const {
isOpen,
onModalClose,
...otherProps
} = props;
return (
<Modal
isOpen={isOpen}... | The tags modal component. |
import React from 'react';
import {Button, Modal, Form, Input} from 'antd';
import md5 from '../../common/md5.min';
const FormItem = Form.Item;
const formItemLayout = {
labelCol: {span: 10},
wrapperCol: {span: 9}
};
class ChangePwdForm extends React.Component {
state = {
confirmDirty: false,
};
checkOld... | A component that can be used to change a password in a modal form. |
/**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';
import warning from 'warning';
import { s... | Creates a single node with a radio button that is a child of a radio button. |
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './Feedback.less';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback {
render() {
return (
<div className="Feedback">
<div className="Feedb... | The main function of the module |
import React from 'react';
import Title from 'react-title-component';
import Checkbox from 'material-ui/Checkbox';
import CodeExample from '../../CodeExample';
import typography from 'material-ui/styles/typography';
class InlineStyles extends React.Component {
getStyles() {
return {
headline: {
fon... | The main function of the sequence of components that are defined in a component. |
import React from 'react';
import Carousel from '../src/Carousel';
export default
<Carousel options={{ fullWidth: true }} images={[
'https://lorempixel.com/800/400/food/1',
'https://lorempixel.com/800/400/food/2',
'https://lorempixel.com/800/400/food/3',
'https://lorempixel.com/800/400/food/4',
'https://lor... | Default carousel element |
import React from 'react';
import { PureRenderMixin } from 'react/addons';
import classNames from 'classnames';
import DialogStore from 'stores/DialogStore';
export default React.createClass({
mixins: [PureRenderMixin],
getInitialState() {
return {
typing: null,
show: false
};
},
compon... | The default constructor for a sequence of components. |
import React from 'react';
import { DocgenButton } from './DocgenButton';
/** Button component description */
const ImportedPropsButton = ({ disabled, label, onClick }) => (
<button type="button" disabled={disabled} onClick={onClick}>
{label}
</button>
);
ImportedPropsButton.defaultProps = DocgenButton.defaul... | Component description for missing component |
import React, { Component } from 'react';
class Board extends Component {
render() {
return (<div></div>);
}
}
export default Board; | The Board class. |
'use strict';
import React from 'react';
import Join from 'react/lib/joinClasses';
import VideoDuration from './VideoDuration';
export default React.createClass({
componentDidMount() {
var imgTag = React.findDOMNode(this.refs.image);
var imgSrc = imgTag.getAttribute('src');
var img = new window.Image()... | The default component that renders an image when the image is rendered. |
// Package imports.
import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import {
FormattedMessage,
defineMessages,
} from 'react-intl';
import spring from 'react-motion/lib/spring';
// Components.
import IconButton from 'flavours/glitch/components/icon_button';
//... | The base class for all items that can be hidden from the upload form. |
import React from 'react'
import PropTypes from 'prop-types'
import { Route, Link } from 'react-router-dom'
const NavItem = (props) => {
const {
to,
exact,
strict,
activeClassName,
className,
activeStyle,
style,
isActive: getIsActive,
...rest
} = props
return (
<Route
... | A nav item that navigates into a navigation hierarchy. |
import React from 'react';
import ShareThis from 'components/shareThis';
export default React.createClass( {
shouldComponentUpdate() {
return false;
},
render() {
return (
<footer className="footer hidden-print">
<div className="container">
... | Default function for creating a new unknown node class. |
import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import { Label } from 'reactstrap'
import InfoIcon from 'common/components/InfoIcon'
import { NodeDefinition } from 'model/Survey'
const NodeDefLabel = (props) => {
const { nodeDefinition, limitWidth } = props
const {... | A function to generate a node - def label for a single node. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPersonAdd = (props) => (
<SvgIcon {...props}>
<path d="M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>
</... | A component that exports a sequence of components that can be used to render a sequence of components. |
'use strict';
import React from 'react'
import { Route, IndexRoute } from 'react-router'
import Layout from './components/Layout';
import IndexPage from './components/IndexPage';
import NotFoundPage from './components/NotFoundPage';
const routes = (
<Route path="/" component={Layout}>
<IndexRoute component={Ind... | routes - > |
import React from 'react';
import Arwes from '../Arwes';
import Words from '../Words';
import Project from './index';
export default () => (
<Arwes background="/images/background.jpg" pattern="/images/glow.png">
<div style={{ padding: 20 }}>
<Project animate header="PROJECT, OFFICIA DESERUNT ANIM ID EST LA... | Imports a single node that contains a sequence of words. |
/**
* 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';
export default () => (
<span id="feature-public-url">{process.env.PUBLIC_URL}.</span>
);
| Missing entry point for missing component. |
import React from 'react'
export default () => (
<div>
<span>Links</span>
</div>
)
| A component that exports a object. |
import React from 'react';
class NoMatch extends React.PureComponent {
render() {
return (
<div>
<h2>无法匹配 <code>{this.props.location.pathname}</code></h2>
</div>
)
}
}
export default NoMatch;
| NoMatch 方法 无 法 无 |
import React from 'react'
import PropTypes from 'prop-types'
const Header = props => (
<header id="header" style={props.timeout ? { display: 'none' } : {}}>
<div className="logo">
<span className="icon fa-code" />
</div>
<div className="content">
<div className="inner">
<h1>Liam O'Fly... | Imports a header containing a sequence of non - null non |
import 'bootstrap/less/bootstrap.less';
import './assets/docs.css';
import './assets/style.css';
import './assets/carousel.png';
import './assets/logo.png';
import './assets/favicon.ico';
import './assets/thumbnail.png';
import './assets/thumbnaildiv.png';
import 'codemirror/mode/htmlmixed/htmlmixed';
import 'codemir... | Imports the codemirror library and renders the component. |
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Card from '../Card';
import css from './Dialog.css';
const Dialog = ({ visible, title, subtitle, onClose, children, hideCloseSymbol }) => {
const dialogClass = classNames(css.component, {
[css.visible]: vis... | Dialog component that displays a single node in a modal dialog. |
import React, { Component } from 'react';
import './Spinner.scss';
export default class extends Component {
render() {
return (
<div className="spinner">
<div className="double-bounce1"></div>
<div className="double-bounce2"></div>
</div>
);
}
}
| The default component class that renders a single node in a DOM tree. |
import React, { Component } from 'react';
import {List, ListItem} from 'material-ui/List';
import AssignmentIcon from 'material-ui/svg-icons/action/assignment';
import NoteIcon from 'material-ui/svg-icons/av/note';
import AddIcon from 'material-ui/svg-icons/av/playlist-add';
class SideBar extends Component {
const... | SideBar 이번표 이번표 이번표 |
import React from 'react';
import PropTypes from 'prop-types';
import Markdown from 'rsg-components/Markdown';
import Argument from 'rsg-components/Argument';
import Arguments from 'rsg-components/Arguments';
import Name from 'rsg-components/Name';
import JsDoc from 'rsg-components/JsDoc';
import Table from 'rsg-compon... | export default methods for missing missing methods |
import React, { Component } from 'react';
import FormInput from '../formInput/formInput';
class FormEmail extends Component {
render() {
return (
<FormInput
{...this.props}
validationRegex={/\S+@\S+\.\S+/}
validationErrorMessage="Must be a valid email"
/>
);
}
}
export... | A component that renders a single email. |
import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import HealingDone ... | The SecureInTheLight class |
import React from 'react';
import Box from 'components/box';
import Layout from 'components/layout';
const NotFound = () => (
<Layout>
<Box>Not found.</Box>
</Layout>
);
export default NotFound;
| Imports a from React and returns a NotFound error. |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { View, ViewPropTypes } from 'react-native';
import deprecatedPropType from 'react-native/Libraries/Utilities/deprecatedPropType';
export default class BlurView extends Component {
static propTypes = {
tintEffect: deprecatedProp... | Create a BlurView with a transparent background color. |
import React from 'react';
import { connect } from 'react-redux';
import classNames from 'classnames';
import MetricSelector from './metric-selector';
import { setGraphView, setTableView, setResourceView, setControlView} from '../actions/app-actions';
import { layersTopologyIdsSelector } from '../selectors/resource-vi... | A component that handles a series of states that can be used to show a single node in a view. |
import React from 'react'
import { Toolbar } from './components/toolbar'
import './main.sass'
export class Main extends React.Component {
render() {
return (
<div>
<Toolbar />
{this.props.children}
</div>
)
}
}
| Package that exports a single node in a hierarchy. |
'use strict';
import React, { Component } from 'react';
import {Modal} from 'react-native';
import { connect } from 'react-redux';
import { openDrawer } from '../../actions/drawer';
import { replaceRoute } from '../../actions/route';
import { Container, Header, Title, Content, View, Text, Button, Icon} from 'native-ba... | Imports a bunch of components into a PlaceItem. |
import React, { Component } from 'react';
import { StatusBar } from 'react-native';
import { connect } from 'react-redux';
import { Container, Header, Title, Content, Text, H3, Button, Icon, Footer, FooterTab, Left, Right, Body } from 'native-base';
import { openDrawer } from '../../actions/drawer';
import styles fro... | Component that is a component that has a hidden hidden state that is not visible in a drawer. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLoupe = (props) => (
<SvgIcon {...props}>
<path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.49 2 2 6.49 2 12s4.49 10 10 10h8c1.1 0 2-.9 2-2v-8c0-5.51-4.49-10-10-10zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.... | A component that exports a sequence of icons that can be used to render a sequence of icons. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let SimCard = props =>
<SvgIcon {...props}>
<path d="M19.99 4c0-1.1-.89-2-1.99-2h-8L4 8v12c0 1.1.9 2 2 2h12.01c1.1 0 1.99-.9 1.99-2l-.01-16zM9 19H7v-2h2v2zm8 0h-2v-2h2v2zm-8-4H7v-4h2v4zm4 4h-2v-4h2v4zm0-6h-2v... | A component that exports a sequence of components. |
import React from 'react';
class Sale extends React.Component {
render() {
return (
<div className="container-fluid catalog_page">
<div className="container">
<h1>Sale Page</h1>
</div>
</div>
)
}
}
export default Sale; | Create a new component with the given name and type. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvSlowMotionVideo = (props) => (
<SvgIcon {...props}>
<path d="M13.05 9.79L10 7.5v9l3.05-2.29L16 12zm0 0L10 7.5v9l3.05-2.29L16 12zm0 0L10 7.5v9l3.05-2.29L16 12zM11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69c1.... | A small function to create a sequence of icons that can be used to render a video. |
import React, { Component } from 'react';
class About extends Component {
render() {
return (
<div>
<h1>About</h1>
<p className="App-intro">
To get started, edit <code>src/App.js</code> and save to reload.
</p>
</div>
)
}
}
export defaul... | Package that implements a component that can be rendered by a user. |
import React, { Component } from 'react';
import Select from 'react-select';
import axios from 'axios';
import 'react-select/dist/react-select.css';
import JobList from '../jobList';
import styles from './style.module.css';
export default class JobFilter extends Component {
constructor(props) {
super(props);
... | A component that can be used to filter out non - terminal jobs and their associated data. |
import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import iconMenuReadmeText from './README';
import IconMenuExampleSimple from './... | The default implementation of the icons menu. |
import React from 'react';
import ThemeProvider from '../src/components/ThemeProvider';
const Wrapper = props =>
<ThemeProvider>
{props.children}
</ThemeProvider>;
export default Wrapper;
| export a function to wrap a sequence of children in a theme provider |
'use strict'
import React from 'react'
import Playlist from './playlist'
import SearchBar from './searchBar'
var ChannelController = React.createClass({
onChange: function () {
},
render: function () {
return (
<div>
<div className='channelsContainer'>
<h1>Channel</h1>
<di... | The main function of the controller. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPolymer = (props) => (
<SvgIcon {...props}>
<path d="M19 4h-4L7.11 16.63 4.5 12 9 4H5L.5 12 5 20h4l7.89-12.63L19.5 12 15 20h4l4.5-8z"/>
</SvgIcon>
);
ActionPolymer = pure(ActionPolymer);
ActionPolymer.d... | A component that exports a series of action polymer actions. |
// @flow
// Vendor
import React from 'react';
import { Link } from 'react-router';
import AnnotationIcon from 'react-icons/lib/fa/align-left';
import FileIcon from 'react-icons/lib/fa/file-text';
import Color from 'color';
import { css } from 'glamor';
import ShoppingCartIcon from '@ncigdc/theme/icons/ShoppingCart';
... | Package that exports a single single node of a system with a single theme. |
/**
* 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 taskfire extends Component {
render() {
return (
<View style={styles.container}... | The base class for a single missing node - type sequence. |
import React from 'react';
import Field from '../Field';
import { Button, FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'URLField',
openValue () {
var href = this.props.value;
if (!href) return;
if (!/^(mailto\:)|(\w+\:\/\/)/.test(href)) {
href = 'http://' + href;
}
window... | The default implementation of the link - based field that opens a link in a new tab. |
import React from 'react';
import TrackStatsAndCharts from 'components/trackStatsAndCharts';
export default React.createClass({
componentDidMount() {
$( this.getDOMNode() ).modal( {
keyboard: false,
backdrop: false
} );
},
componentDidUpdate() {
console.lo... | default component implementation |
import React from 'react';
import LoadingIndicator from '../../../components/loading_indicator';
// Keep the markup in sync with <BundleModalError />
// (make sure they have the same dimensions)
const ModalLoading = () => (
<div className='modal-root__modal error-modal'>
<div className='error-modal__body'>
... | Exports a single object to a modal window. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHttps = (props) => (
<SvgIcon {...props}>
<path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-... | A component that exports a sequence of components that can be used to render a sequence of components. |
import React, { Component } from 'react';
import styled from 'styled-components';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom'
import { fetchFeed, removeFeed, getSelectedFeed } from '../redux/actions';
const Nav = styled.div`
flex: 1 1 0;
border-right: 1px solid black;
`;
const... | The base component for the navigating top - level menu. |
import React from 'react'
import { Segment, Image } from 'semantic-ui-react'
const src = '/assets/images/wireframe/image.png'
const ImageExampleSpaced = () => (
<div>
<Segment>
<p>
Te eum doming eirmod, nominati pertinacia <Image src={src} size='mini' spaced /> argumentum ad his. Ex eam alia
... | Produces a sequence of images that are part of a sequence of images. |
import React from 'react';
import { connect } from 'react-redux';
import {
fetchServicesIfNeeded,
saveServices
} from '../redux/modules/services';
import { ServicesFormUi } from '../components';
// The services form container.
const ServicesForm = React.createClass({
propTypes: {
serviceList: React.PropTy... | The base component for the related services form. |
import React from 'react';
export default NotFound = () => <div>Not found</div>;
| Default 404 error handler |
import React from 'react'
import PropTypes from 'prop-types'
import styles from './quote.less'
function Quote ({ name, content, title, avatar }) {
return (
<div className={styles.quote}>
<div className={styles.inner}>
{content}
</div>
<div className={styles.footer}>
<div classNa... | The quote tag for a node |
import Image from 'next/image';
import React from 'react';
import styles from '../styles/components/OfficerCard.module.scss';
function Officer({
name,
pronouns,
position,
/* eslint-disable-next-line no-unused-vars */
committee, // no officer card formats use committee yet
major,
year,
img,
alt,
bi... | Generate a tag that represents a single single node in the system that has a single non - empty tag. |
import React from 'react'
import {connect} from 'react-redux'
import {Segment, Grid, Form} from 'semantic-ui-react'
import * as Actions from '../actions'
import * as Selectors from '../selectors'
import Header from './Header'
import Footer from './Footer'
import MainControls from './MainControls'
const mapStateToP... | Component which is a base class for all of the unknown node types. |
import DateInput from '../../components/DateInput';
import Field from '../Field';
import moment from 'moment';
import React from 'react';
import { Button, InputGroup, FormInput } from 'elemental';
/*
TODO: Implement yearRange Prop, or deprecate for max / min values (better)
*/
const DEFAULT_INPUT_FORMAT = 'YYYY-MM-DD... | A component that creates a date input that can be used to select a date. |
import React from 'react'
import PropTypes from 'prop-types'
import { asyncConnect } from 'redux-async-connect'
import { connect } from 'react-redux'
import { isEmptyObject } from '../../Login/module/login'
import { PageNotExist, CoverImage, TitleElement, TextElement, ImageElement, BigImageElement } from '../../../comp... | A component that renders a terms of service. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionList = (props) => (
<SvgIcon {...props}>
<path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"/>
</SvgIcon>
);
ActionList = pure(ActionList);
ActionList.displa... | ActionList for missing icons |
'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
export { isReactChildren };
export { createRou... | Creates and returns a routes object from the given ReactChildren. |
import React, { Component } from 'react';
import TabHeader from './TabHeader';
class TabManager extends Component {
constructor(props) {
super(props);
this.children = [].concat(props.children);
this.state = {
activeTab: this.children[0].key,
};
}
componentDidMount() {
}
componentWill... | A component that manages tab - based tab navigation. |
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import request from 'request';
import cheerio from 'cheerio';
const URL ='http://tamilrockers.gs/index.php?'
class App extends Component {
state={
count:0,
links:[]
}
getData=()=>{
let self=this;
... | The main app class |
import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import { browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import { configureStore } from './store';
import Root from './containers/root';
const store = configureStore();
const history... | Imports a bunch of modules that are required to render a single node. |
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import './index.css';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/css/bootstrap-theme.css';
ReactDOM.render(<App />, document.getElementById('root'));... | Imports a single application. |
/**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... | Get the shallow rendered component |
import React from 'react';
import { FormattedMessage } from 'react-intl';
import A from './A';
import Img from './Img';
import NavBar from './NavBar';
import HeaderLink from './HeaderLink';
import Banner from './banner.jpg';
import messages from './messages';
class Header extends React.Component { // eslint-disable-l... | export default Header |
import React, { Component } from 'react';
import { View, StyleSheet, TouchableOpacity, ScrollView } from 'react-native';
import { Container, Text, Left, Right, ListItem, Spinner } from 'native-base';
import Icon from 'react-native-vector-icons/FontAwesome';
import { getPlatformValue } from '../utils';
export default ... | The AccountSettings class |
import React from 'react';
import PropTypes from 'prop-types';
const Navigation = ({components}) => {
return (
<ul className="navigation">
{
components.map( name => {
return (
<li key={name}>
<a href={`#${name}`}>{name}</a>
</li>
)
}... | export navigation for missing components |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesFitnessCenter = (props) => (
<SvgIcon {...props}>
<path d="M20.57 14.86L22 13.43 20.57 12 17 15.57 8.43 7 12 3.43 10.57 2 9.14 3.43 7.71 2 5.57 4.14 4.14 2.71 2.71 4.14l1.43 1.43L2 7.71l1.43 1.43L2 10.57 ... | A component that exports a series of components that are not part of a sequence of components. |
import React from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import { themr } from 'react-css-themr';
import { LAYOUT } from '../identifiers';
const Panel = ({
bodyScroll, children, className, theme, ...other
}) => {
const _className = cn(theme.panel, { [theme.bodyScroll]: bodyScroll... | A function to export a panel with a series of children and a theme. |
import React from 'react';
import styles from './style.scss';
class HeaderStrip extends React.Component{
render(){
return <div className={styles.root}>Hi There! I am Bhargav</div>;
}
}
export default HeaderStrip; | Imports and exports a HeaderStrip class. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.