code stringlengths 26 5k | intent stringlengths 3 2.56k |
|---|---|
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageNature = (props) => (
<SvgIcon {...props}>
<path d="M13 16.12c3.47-.41 6.17-3.36 6.17-6.95 0-3.87-3.13-7-7-7s-7 3.13-7 7c0 3.47 2.52 6.34 5.83 6.89V20H5v2h14v-2h-6v-3.88z"/>
</SvgIcon>
);
ImageNature = p... | A component that renders a Nature image in a series of icons. |
import React from 'react';
import { render } from 'react-dom';
import AppProvider from './app';
render(
<AppProvider />,
document.getElementById('root')
);
| Imports a single node from the DOM and renders it as a hidden element. |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V11h10V5.33z" /><path d="M7 11v9.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V11H7z" /></React... | Create a series of icons for a single orphan. |
import React, { Component } from 'react';
import CirclePoint from './CirclePoint';
import onecolor from 'onecolor';
const diameter = 290;
const radius = diameter / 2;
// b/c react v0.10 doesn't support all svg tags/attributes
const imagePattern = `
<pattern x="0" y="0" height="16" width="16" id="image" patternUnits="... | A component that can be used to create a circle with a color. |
import React from 'react'
import './styles.css'
const RoundedButton = ({ link, title }) => (
<a className="RoundedButton" href={link}>{title}</a>
)
export default RoundedButton
| RoundedButton is a lightweight function that returns a link to a critical button with a title. |
import React from 'react'
export default function Title({ title }) {
return (
<div className="text-center">
<h1>{title}</h1>
</div>
)
}
| Title - Shows a block of objects |
import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
const WRATH_OF_THE... | A class that implements the logic for wrath of the Ashbringer. |
import React from 'react';
import PropTypes from 'prop-types';
import ButtonToolbar from 'react-bootstrap/ButtonToolbar';
import { observer, inject } from 'mobx-react';
import { CONTROLLER_NAME, getFilterString, submitSearch } from './utils';
import FormFilter from './FormFilter/component';
import QuestionFilter from ... | A component that can be used to render a filter button. |
import './kattappa.scss';
import './style.scss';
import React from 'react';
import ReactDOM from 'react-dom';
import Kattappa from './';
var initBlock = [{
type: "text",
data: '<p>Hello World</p>',
key: Kattappa.uuid()
}, {
type: "image",
key: Kattappa.uuid(),
data: {
url: "http://www.nutritionsecret... | Component that renders a block of text and images. |
import React from 'react';
import { Link } from 'react-router-dom';
import PropTypes from 'prop-types';
import CommonProps from '../../../utils/CommonProps';
import CommonMethods from '../../../utils/CommonMethods';
const Item = (props) => {
const { item } = props;
const price = CommonMethods.parsePrice(item.pric... | Item that is a child of a node that has a missing condition. |
/**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import 'babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
import Location from '.... | Static Boilerplate for a specific node |
import React from 'react'
export default class TestComponent extends React.Component {
render() {
return (
<span>Test component</span>
)
}
}
| A component that can be rendered as a child |
import React from 'react';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import {
RouteContext
}
from 'react-router';
import _ from 'lodash';
import {
mouseTrap
}
from 'react-mousetrap';
import {
ipcRenderer
}
from 'electron';
import Header from './Header';
import Sidebar from './Sidebar';
... | Create a component that can be rendered and rendered by a React component. |
import React from 'react'
import Markdown from 'react-smackdown'
import { Title, Box } from 'react-interface/es/components'
import { getStoryFromSlugs, flattenStories } from '../../utils'
import syntax from '../../utils/syntax'
import MarkdownWrapper from './MarkdownWrapper'
export default ({ stories, storyPath }) => ... | export default function |
/* eslint-disable import/prefer-default-export */
import React from 'react';
export const TimeContext = React.createContext();
| Create a time context for a sequence of time objects. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsEditLocation = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm-1.56 10H9v-1.44l3.35-3.34 1.43 1.43L10.44 12zm4.45-4.45l-.7.7-1.44-1.44.7-.... | A component that exports a missing missing component in a group of icons. |
import React from 'react';
import PropTypes from 'prop-types';
import style from 'HPCCloudStyle/Modal.mcss';
import theme from 'HPCCloudStyle/Theme.mcss';
import LoadingPanel from '../LoadingPanel';
import client from '../../network';
export default class FilePreview extends React.Component {
constructor(props) {
... | Component that renders a file preview of a single file. |
'use strict';
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must e... | A route is used to declare which components are rendered to the top level of the tree. |
import React from 'react';
import Card from 'material-ui/lib/card/card';
import CardMedia from 'material-ui/lib/card/card-media';
import CardTitle from 'material-ui/lib/card/card-title';
import Paper from 'material-ui/lib/paper';
import { Link } from 'react-router';
import RaisedButton from 'material-ui/lib/raised-butt... | Private function to create a user - defined list of doors. |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { getCallbacks } from '../../helper/helper';
import styles from '../../../build/styles';
export default class Tab extends Component {
static propTypes = {
children: PropTypes.any,
className: PropTypes.string,
isActive: P... | The Tab class |
import React from 'react';
import {Icon} from 'antd';
// 定义某个表的dataSchema, 结构跟querySchema很相似, 见下面的例子
// 注意: 所有的key不能重复
// 这个配置不只决定了table的schema, 也包括用于新增/删除的表单的schema
module.exports = [
{
key: 'id', // 传递给后端的key
title: 'ID', // 前端显示的名字
// 其实dataType对前端的意义不大, 更重要的是生成后端接口时要用到, 所以要和DB中的类型一致
// 对java... | JSDAG 扩展 - 扩展 |
import React from 'react'
import { Router, Route, Link } from 'react-router'
import DuckImage from '../assets/Duck.jpg'
import classes from './HomeView.scss'
export const HomeView = () => (
<div>
<h4>Welcome!</h4>
<img
alt='This is a duck, because Redux!'
className={classes.duck}
src={DuckI... | export default function |
import React from 'react';
import PropTypes from 'prop-types';
import { Alert } from 'react-bootstrap';
export default class Error extends React.Component {
static propTypes = {
autoclose: PropTypes.bool,
interval: PropTypes.number,
id: PropTypes.number,
message: PropTypes.string.is... | A component that shows an alert when a component is not able to show up in the DOM. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBlurLinear = (props) => (
<SvgIcon {...props}>
<path d="M5 17.5c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5.67 1.5 1.5 1.5zM9 13c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0-4c.55 0 1-.45 1-... | A component that renders a series of icons that are used to render a series of images. |
import React from 'react'
import PageHeader from '../components/Pageheader';
export default class Settings extends React.Component {
render() {
return (
<div className="ui main container">
<PageHeader name="Settings" desc="Configure chains settings here"/>
</div>
);
}
}
| The settings class that is used to render a chain of components. |
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import { renderToStringWithData } from 'react-apollo';
import { flushChunkNames } from 'react-universal-component/server';
import flushChunks from 'webpack-flush-chunks';
import { ServerStyleSheet } from 'styled-components';
import { serverRend... | The browser middleware function that renders the browser and returns the HTML of the given application. |
import React from 'react'; // jshint ignore:line
import Button from 'misago/components/button'; // jshint ignore:line
import Form from 'misago/components/form';
import FormGroup from 'misago/components/form-group'; // jshint ignore:line
import Loader from 'misago/components/modal-loader'; // jshint ignore:line
import M... | Component that renders a modal dialog with a modal modal - message and modal - message. |
import React from 'react'
import { Button, Icon, Modal } from 'semantic-ui-react'
function exampleReducer(state, action) {
switch (action.type) {
case 'close':
return { open: false }
case 'open':
return { open: true, size: action.size }
default:
throw new Error('Unsupported action...')
... | Example of how to open a node in a modal window. |
import React from 'react'
import _ from 'lodash'
import Client from 'electron-rpc/client'
import StoryList from './story_list.js'
import Spinner from './spinner.js'
import Menu from './menu.js'
import StoryType from '../model/story_type'
export default class StoryBox extends React.Component {
constructor (props) {
... | The base class for a single story box. |
/*
* Logspace
* Copyright (c) 2015 Indoqa Software Design und Beratung GmbH. All rights reserved.
* This program and the accompanying materials are made available under the terms of
* the Eclipse Public License Version 1.0, which accompanies this distribution and
* is available at http://www.eclipse.org/legal/epl-... | A page that is a component that |
import React from 'react';
import TimePicker from 'material-ui/lib/time-picker/time-picker';
const TimePickerExampleSimple = () => (
<div>
<TimePicker
hintText="12hr Format"
/>
<TimePicker
format="24hr"
hintText="24hr Format"
/>
</div>
);
export default TimePickerExampleSimple; | The default TimePickerExampleSimple class |
import React from 'react'
import { connect } from 'react-redux'
import * as actions from '../state'
import AssetBrowser from './AssetBrowser'
import Column from './Column'
import Modal from './Modal'
class Layer extends React.Component {
state = {
showAssetsBrowser: false
}
addColumn = (asset) => {
thi... | A layer that can be attached to a column in a grid. |
import React from 'react'
import { Field } from 'redux-form'
import { RaisedButton,MenuItem,TextField as Text } from 'material-ui'
import TextField from '../../ReduxForm/TextField'
import SelectField from '../../ReduxForm/SelectField'
import AreaSelect2 from '../../AreaSelect2'
const styles = {
form:{
displa... | A component that adds a single sequence of words. |
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 SvgIcon from '@mui/material/SvgIcon';
/* eslint-disable max-len */
const GithubIcon = (props) => (
<SvgIcon viewBox="-40 -40 520 520" {...props}>
<path d="M409.132 114.573c-19.608-33.596-46.205-60.194-79.798-79.8C295.736 15.166 259.057 5.365 219.27 5.365c-39.78 0-76.47 9.804-110... | A component that displays a missing missing |
import React from 'react';
import Support from './Support';
class MobileSiteHeader extends React.Component {
constructor(props){
super(props);
this.state = {
status:"switch"
};
this.showMobileUserMenu = this.showMobileUserMenu.bind(this);
this.showMobileSearchForm = this.showMobileSearchForm.b... | A component that displays a mobile menu. |
import React from 'react';
import classNames from 'classnames';
import AffixMixin from './AffixMixin';
const Affix = React.createClass({
mixins: [AffixMixin],
render() {
let holderStyle = {
top: this.state.affixPositionTop,
// we don't want to expose the `style` property
...this.props.style... | The base class for a single node. |
import React, { Component } from 'react';
import ColorPicker from 'react-color';
import examples from 'examples';
import Examples from '../examples/examples';
import Logo from './logo';
const styles = {
sidebar: {
backgroundColor: 'rgba(0,0,0,.8)',
height: '100%'
}
};
class Sidebar extends Component {
c... | A Sidebar component that displays a Sidebar in the browser. |
import React from 'react';
import Container from './Container';
export default class NestingDragSources {
render() {
return (
<div>
<p>
<b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/03%20Nesting/Drag%20Sources'>Browse the Source</a></b>
</p>
<p>
... | The default logic for the NestingDragSources class. |
import React from 'react';
import { FormattedMessage } from 'react-intl';
import ColumnBackButton from './column_back_button';
export default class ColumnBackButtonSlim extends ColumnBackButton {
render () {
return (
<div className='column-back-button--slim'>
<div role='button' tabIndex='0' onClic... | The default column back button class. |
import {render} from "react-dom";
import App from './components/App';
import React, { Component } from 'react';
//REDUX KRAM
import { Provider, connect } from "react-redux";
import thunkMiddleware from "redux-thunk";
import configureStore from './store/configureStore';
import {initWebSocket} from './middleware/sensorSo... | Imports a single node in the DOM. |
import React from 'react'
import { Message } from 'shengnian-ui-react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const TabTypesExamples = () => (
<ExampleSection title='Types'>
<Message info>
... | Imports a component that can be used to create a new tab. |
import Component from '../components/component.react';
import React from 'react';
import Todo from './todo.react';
export default class List extends Component {
static propTypes = {
actions: React.PropTypes.object.isRequired,
list: React.PropTypes.object.isRequired,
msg: React.PropTypes.object.isRequire... | The list component that is rendered by a component that is not a component of a list. |
/**
* Created by lingfengliang on 2017/3/15.
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';
import HomePage from './HomePage';
export default class WelcomPage extends Component{
constructor(props){
super(props);
this.state = {
... | A component that can be used to show a page in a hidden state. |
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import './assets/style.css';
export default () => <p id="feature-css-inclusion">We love useless text.</p>;
| Deprecated. Use with caution! |
import React from 'react';
export default React.createClass({
render() {
return (
<div className="status-line">
<CurrentDirectory currentWorkingDirectory={this.props.currentWorkingDirectory}/>
<VcsData data={this.props.vcsData}/>
</div>
)
... | High level function to create a single critical alert. |
import React from 'react'
import {connect} from 'react-redux'
import smiley from '../../shared/smiley-cyrus.jpg'
import agent from '../../shared/agent'
const mapDispatchToProps = dispatch => ({
onSubmit: payload => dispatch({type: 'ADD_COMMENT', payload}),
})
class CommentInput extends React.Component {
construct... | A component that can be used to display a comment in a browser. |
import React from 'react'
import Link from 'gatsby-link'
import { Button, Icon, Container, Divider } from 'semantic-ui-react'
import Header from '../components/Header'
import Footer from '../components/Footer'
import logo from '../../assets/logo.png'
import './index.scss'
const MainPage = () => (
<div className='Ma... | Imports a single node with a single error message. |
// @flow
import React, { Component } from 'react';
import { Link } from 'react-router';
import { Row, Col } from 'react-bootstrap';
import moment from 'moment';
import log from 'loglevel';
import FWApiClient from '../api/api';
import ChartContainer from '../components/ChartContainer';
import type { FilterResponse, F... | The GalleryImage component which generates a single image if no image is found. |
/**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it... | NotFoundPage - The page we show when the user visits a url that doesn t have a route . |
/**
* Index - this is where everything
* starts - but offloads to app.js
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
/* global __DEV__ */
import React from 'react';
import { applyMiddleware, compose, createStore } from 'redux';
import { connect, Provider } from 'react-re... | Create a component that can be used to create a new app. js object. |
import React from 'react'
import Base from '../../components/_helpers/BaseComponent'
import UserStore from '../../stores/UserStore'
import {browserHistory} from 'react-router'
export default class LoggedIn extends Base {
constructor() {
super()
}
static willTransitionTo() {
if(!UserStore... | The LoggedIn class |
import React from 'react';
import cx from 'classnames';
import {Link, History} from 'react-router';
export default React.createClass( {
mixins: [
History
],
activeClassForTo( pathname) {
return cx( { active: this.history.isActive(pathname) } );
},
render() {
return (
... | Create a new component with a link to the active component. |
import React from 'react';
import Helmet from 'react-helmet';
import { connect } from 'react-redux';
import ListBlock from '../components/ListBlock/ListBlock';
import Loading from '../components/Loading/Loading';
import { fetchBlogListIfNeed } from '../actions/blog';
import { dispatchFetch } from '../helpers/fetchUtils... | A component that renders a page with a Helmet link to the blog s list of pages. |
import React from 'react';
class Loader extends React.Component
{
render() {
if(this.props.isLoading == true) {
return <div className="text-center">Loading...</div>;
}
return null;
}
}
export default Loader; | A component that renders a Loader if the component is loading. |
import React from 'react';
import { withTranslate } from 'react-redux-multilingual';
const Loader = ({ translate }) => (
<div className='loader'>
<h1>{translate('loading')}</h1>
</div>
);
export default withTranslate(Loader);
| export default ReactLoader |
import React from 'react';
import PropTypes from 'prop-types';
import { css } from 'glamor';
import {
Hero,
HeroBody,
Container,
Columns,
Column,
Title,
Box,
Section,
Content,
} from 'bloomer';
import Markdown from 'react-markdown';
import Img from 'gatsby-image';
import content from '../../constants/... | Exports a single missing missing node with a series of missing nodes. |
// @flow
import React from 'react'
import autoBind from 'react-autobind'
import { injectIntl, defineMessages, FormattedMessage } from 'react-intl'
import areIntlLocalesSupported from 'intl-locales-supported'
import { Card, CardTitle, CardText } from 'material-ui/Card'
import DatePicker from 'material-ui/DatePicker'
... | A component that handles the lease created input. |
import React, { Component } from 'react';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import App from 'views/App';
import NotFound from 'views/NotFound';
import Main from 'views/Main';
const publicPath = '/';
export const routeCodes = {
DASHBOARD: publicPath,
ABOUT: `${ publicPath }ab... | The routes class |
import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { elementType } from 'prop-types-extra';
import createWithBsPrefix from './utils/createWithBsPrefix';
import { createBootstrapComponent } from './ThemeProvider';
const propTypes = {
/**
* @default 'media'
... | A component that wraps a component in a bootstrap component that can be used to render a single media object. |
import React from 'react';
import './Spinner.less';
export default () => (
<div className="spin-backdrop">
<img className="spinner" alt="" src="/img/logo.svg" />
</div>
);
| The default function for missing React modules. |
/* eslint-disable new-cap */
import React from 'react';
export default () => (
<div>
<img src="http://i.imgur.com/aVe1rwk.png" />
<img style={{ display: "block", "margin-left": "auto", "margin-right": "0", "padding-right": "21px", width: "123px" }} src="https://s3.amazonaws.com/www1.bigcommerce.com/assets/mediaki... | The default configuration for a negative negative |
import React, { Component } from 'react';
import { NavItem } from 'react-bootstrap';
import { LinkContainer } from 'react-router-bootstrap';
class NavegationItem extends Component {
render() {
return (
<LinkContainer to={this.props.path}>
<NavItem>{this.props.label }</NavItem>
... | NavegationItem Expose a NavegationItem to a Bootstrap Bootstrap page. |
import React from 'react';
import Slider from './ControlledSlider';
const style = {
padding: '0 5px 55px',
width: '500px'
};
export default () =>
<div style={{direction: 'rtl'}}>
<div style={style}>Single handle<Slider rtl={true} value={[3]} min={1} max={10}/></div>
</div>;
| The default function for the module. |
import React from 'react';
import TodoInput from './TodoInput';
export default class TodoItem extends React.Component {
constructor(props) {
super(props);
this.handleKeyPress = this.handleKeyPress.bind(this);
}
showActionPopup(event) {
let target = event.currentTarget;
... | A component that can be used to show a todo item in a modal dialog. |
import React from 'react';
import { AppRegistry } from 'react-native';
import Example from './Example';
AppRegistry.registerComponent('Example', () => Example);
| Imports a component from the AppRegistry. |
import React from 'react';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import App from './App';
import PrimaryPage from './components/PrimaryPage';
const rootPath = '/';
const routes = (
<Router history={browserHistory} >
<Route path={rootPath} component={App}>
<IndexRoute co... | export routes from a bunch of modules |
import React from 'react';
// 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';
React.render(<HelloWorld />, document.getElementById('react-root'));
| Imports a component with a specific ID and renders it in the DOM. |
import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<h1>Hello, world.</h1>
);
}
}
| The default component class for a component that can be rendered by a component. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageDetails = (props) => (
<SvgIcon {...props}>
<path d="M3 4l9 16 9-16H3zm3.38 2h11.25L12 16 6.38 6z"/>
</SvgIcon>
);
ImageDetails = pure(ImageDetails);
ImageDetails.displayName = 'ImageDetails';
ImageDetai... | A component that exports a series of images in a series of icons. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter9Plus = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 7V8c0-1.11-.9-2-2-2h-1c-1.1 0-2 .89-2 2v1c0 1.11.9 2 2 2h1v1H9v2h3c1.1 0 2-.89 2-2zm-3-3V8h1v1h-1zm10-8H7c-1.1... | A component that renders a 9 - plus image. |
import React from 'react';
import FilterBuilderRowValue from './FilterBuilderRowValue';
const protocols = [
{ id: 'torrent', name: 'Torrent' },
{ id: 'usenet', name: 'Usenet' }
];
function ProtocolFilterBuilderRowValue(props) {
return (
<FilterBuilderRowValue
tagList={protocols}
{...props}
/... | export ProtocolFilterBuilderRowValue from React |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareLaptopChromebook = (props) => (
<SvgIcon {...props}>
<path d="M22 18V3H2v15H0v2h24v-2h-2zm-8 0h-4v-1h4v1zm6-3H4V5h16v10z"/>
</SvgIcon>
);
HardwareLaptopChromebook = pure(HardwareLaptopChromebook);
Har... | HardwareLaptopChromebook is a static export that exports a default HardwareLaptopChromebook. |
import React from 'react';
class Messages extends React.Component {
render () {
return (
<div>
<h2>Messages</h2>
</div>
);
}
}
export default Messages;
| Messages component. |
import { hrefLearnerStatusList } from 'src/views/href';
import React from 'react';
import PropTypes from 'prop-types';
import { dataBind } from 'dbdi/react';
import Moment from 'react-moment';
import {
Alert, Button,
Well, Panel
} from 'react-bootstrap';
import { LinkContainer } from 'react-router-bootstrap';
im... | export default learner status form |
import React from 'react';
var { object, string, func } = React.PropTypes;
function isLeftClickEvent(event) {
return event.button === 0;
}
function isModifiedEvent(event) {
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
}
/**
* <Link> components are used to create an <a> element t... | Creates a link component that links to a route. |
import React from 'react'
import PropTypes from 'prop-types'
import moment from 'moment'
import { FilterItem } from 'components'
import { Form, Button, Row, Col, DatePicker, Input} from 'antd'
const Search = Input.Search;
const { RangePicker } = DatePicker;
const ColProps = {
xs: 24,
sm: 12,
style: {
margin... | A component that renders a single |
import React from 'react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faWindowClose } from '@fortawesome/pro-light-svg-icons/faWindowClose'
export default class FALWindowClose extends React.Component {
render () {
return (<FontAwesomeIcon {...this.props} icon={faWindowClose} />)
}
... | FALWindowClose extends a component that renders a FontAwesome icon in FALWindowClose. |
import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... | Creates a component that wraps a Bootstrap media object with a right - hand side. |
import React from 'react'
import { IndexLink, Link } from 'react-router'
import './Header.scss'
export const Header = () => (
<header id="main-header" className="intro-header">
<div className="container">
<div className="row">
<div className="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
... | export default Header |
import React from 'react';
import SplitPane from '../src';
export default () => (
<SplitPane split="vertical">
<div>default min: 50px</div>
<div />
</SplitPane>
);
| Default function to export a from a SplitPane. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageControlPointDuplicate = (props) => (
<SvgIcon {...props}>
<path d="M16 8h-2v3h-3v2h3v3h2v-3h3v-2h-3zM2 12c0-2.79 1.64-5.2 4.01-6.32V3.52C2.52 4.76 0 8.09 0 12s2.52 7.24 6.01 8.48v-2.16C3.64 17.2 2 14.79 2 ... | A component that duplicates an icon with a different name. |
import React from 'react';
import { connect } from 'react-redux';
export default class MessageErrorPath extends React.Component{
constructor(props) {
super(props);
this.state = {
seeDetails: false
};
}
closeMessage = (e) => {
this.setState({seeDetails: false});
$('.errorPath').transit... | The MessageErrorPath component is a class that displays a message error message and a warning circle. |
import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import iconReadmeText from './README';
import IconExampleSimple from './ExampleS... | Exports a single component that uses a custom SVG icon. |
import React from 'react'
import DocumentTitle from 'react-document-title'
import { Link } from 'react-router'
import { connect } from 'react-redux'
import moment from 'moment'
import { Intent } from '@blueprintjs/core'
import { LinkButton } from '../components/inputs'
import Panel from '../components/Panel'
import *... | A component that displays a list of all possible dangerously - set items. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageHdrOn = (props) => (
<SvgIcon {...props}>
<path d="M21 11.5v-1c0-.8-.7-1.5-1.5-1.5H16v6h1.5v-2h1.1l.9 2H21l-.9-2.1c.5-.3.9-.8.9-1.4zm-1.5 0h-2v-1h2v1zm-13-.5h-2V9H3v6h1.5v-2.5h2V15H8V9H6.5v2zM13 9H9.5v6H13... | A component that renders a series of icons on a component that is not visible on a component. |
import React from 'react'
import LockScreen from '../containers/lockscreen.js'
import Wallet from '../containers/wallet.js'
import { hot } from 'react-hot-loader'
const WalletApp = () => (
<div className='app'>
<LockScreen />
<Wallet />
</div>
)
export default hot(module)(WalletApp)
| Imports a single node in the hierarchy. |
import React from 'react';
const imgSrc = require('./images/rube.gif');
export default class Slide extends React.Component {
render() {
return (
<div>
<h1>appsdk</h1>
<p>toughest challenge, 3 options</p>
<img src={ imgSrc } />
</div>
);
}
}
| A slide that renders a single |
/**
*
* App
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*/
import React from 'react';
import styled from 'styled-components';
import Header from 'components/Header';
import withProgressBar from 'components/Pro... | The function that creates a component that can only be seen on a page. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorInsertChart = (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-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/>
</SvgIcon>
);
Editor... | A component that renders a series of icons that can be inserted into a chart. |
import React from 'react';
import { Route, Router, IndexRoute, hashHistory } from 'react-router';
import Menu from './components/rooms/menu';
import Video from './components/video/'
import Whiteboard from './components/whiteboard/whiteboard';
import CodeEditor from './components/code-editor/code_editor';
import Login f... | Imports a single page. |
import React from 'react';
import Collapsible from '../src/Collapsible';
import CollapsibleItem from '../src/CollapsibleItem';
export default
<Collapsible popout>
<CollapsibleItem header='First' icon='filter_drama'>
Lorem ipsum dolor sit amet.
</CollapsibleItem>
<CollapsibleItem header='Second' icon='place'>... | export default |
import Link from 'found/Link';
import Redirect from 'found/Redirect';
import createBrowserRouter from 'found/createBrowserRouter';
import PropTypes from 'prop-types';
import React from 'react';
import ReactDOM from 'react-dom';
function LinkItem(props) {
return (
<li>
<Link {...props} activeStyle={{ fontWe... | Package - level functions |
import React from 'react';
var AzureFileColumn = React.createClass({
renderValue () {
var value = this.props.data.fields[this.props.col.path];
if (!value) return;
return <a href={value.url} target="_blank">{value.url}</a>;
},
render () {
return (
<td className="ItemList__col">
<div className="ItemLis... | A column that can be used to show Azure File |
import React from 'react';
import ReactDOM from 'react-dom';
import ReactDOMServer from 'react-dom/server';
import CommentFormApp from './CommentFormApp';
import CommentListApp from './CommentListApp';
import CropperApp from './CropperApp';
// Functions for Browser side rendering!
if (typeof window !== 'undefined') {
... | Imports the JSX functions for rendering the whole page. |
/**
* Created by leoliew on 2016/11/28.
*/
import React from 'react';
import FontIcon from 'material-ui/FontIcon';
import {blue500, red500, greenA200} from 'material-ui/styles/colors';
import HomeIcon from 'material-ui/svg-icons/action/home';
import ShowCaseCard from './ShowCaseCard';
const iconStyles = {
marginRi... | A component that renders a single single unknown color in a FontIconExample. |
import React, { Component } from 'react';
import { setPageTitle } from './../helpers';
import InvisibleHeadline from './../components/InvisibleHeadline';
import ContentLayout from './../layouts/Main';
import Text from './../components/content-blocks/Text';
import Button from './../components/Button';
export default cl... | Component that is rendered when a page is not found. |
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { GenericCard } from './../components/GenericCard';
import '../styles/home.css'
import { Helmet} from 'react-helmet';
import { genericCardData } from '../data/genericCardData'
class Home extends Component {
constructor (props) {
s... | A component that can be rendered by a component that has a top - coordinate property set to 0. |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as Actions from './actions';
import styles from './styles';
import mapInputs from './components/inputs';
import { ScrollView, View, Text, RefreshControl, Linking, Button, TouchableOpa... | A component that displays a hidden sequence of action that can be performed on a hidden sequence of users. |
/**
* @description FormEdit SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @p... | A component that renders a single node in the form of a form edit. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.