code stringlengths 26 5k | intent stringlengths 3 2.56k |
|---|---|
import React from 'react';
import Header from './Header.react';
import Sidebar from './Sidebar.react';
import Settings from './Settings.react';
import Path from './path.react';
import { Router, Route, Link, hashHistory } from 'react-router';
var Admin = React.createClass({
forceUpdate: function () {
location.rel... | export Admin class |
import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import * as actions from '../actions/fuelSavingsActions';
import FuelSavingsForm from '../components/FuelSavingsForm';
export const FuelSavingsPage = (props) => {
return (
... | Imports a FuelSavingsPage and attaches it to the state and dispatch methods. |
var crypto = Npm.require('crypto');
// This *must* match the name of your package
var hot = new Hot('gadicc:ecmascript-hot/compile-ecmascript-hot', true);
Plugin.registerCompiler({
extensions: ['js', 'jsx'],
}, function () {
var compiler = new BabelCompiler({
react: true
});
// First compile takes ages (... | This function is called when the compiler is ready to compile a single package file. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPhoneForwarded = (props) => (
<SvgIcon {...props}>
<path d="M18 11l5-5-5-5v3h-4v4h4v3zm2 4.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26... | A component that renders a single missing - node node with a notification - phone - forwarded icon. |
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import classnames from 'classnames';
import CSSClassnames from '../utils/CSSClassnames';
import Props from '../utils/Props';
import Box fr... | A component that is rendered on top of a container. |
import React from 'react';
import Auth from './components/Auth';
import GoogleMap from './components/GoogleMap';
import Hangouts from './components/Hangouts.js'
import Leaderboard from './components/Leaderboard';
import { Route } from 'react-router-dom';
import './App.css';
const App = () => (
<div
className='ap... | export default app |
import React from 'react';
import { Graph } from '@vx/network'
import {scaleOrdinal, schemeCategory20c} from 'd3-scale';
const nodes =
[{x: 50, y: 20}, {x: 200, y: 300}, {x: 300, y: 40}];
const dataSample = {
nodes,
links: [
{source: nodes[0], target: nodes[1]},
{source: nodes[1], target: nodes[2]},
... | default export function |
/* eslint no-param-reassign: "off" */
import React from 'react';
import CreateOptimisticBlueprint from './blueprints/create/Optimistic';
import CreateOverlayBlueprint from './blueprints/create/Overlay';
import CreateWizardBlueprint from './blueprints/create/Wizard';
import UpdateOptimisticBlueprint from './blueprints/... | Imports a single node. |
import React from 'react';
import { BrowserRouter, Match, Miss } from 'react-router';
import { Error404, Home, Todo } from './ui/pages';
const App = () => (
<BrowserRouter>
<div>
<Match exactly pattern="/" component={Home}/>
<Match pattern="/todo" component={Todo}/>
<Mis... | export default app |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationSubdirectoryArrowRight = (props) => (
<SvgIcon {...props}>
<path d="M19 15l-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z"/>
</SvgIcon>
);
NavigationSubdirectoryArrowRight = pure(Navigat... | A component that exports a navigation subtitle in a right - to - left manner. |
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import FormatAlignLeftIcon from '@material-ui/icons/FormatAlignLeft';
import FormatAlignCenterIcon from '@material-ui/icons/FormatAlignCenter';
import FormatAlignRightIcon from '@material-ui/icons/FormatAlignRight';
import FormatAlignJust... | export default function |
import { Text, View, Platform, Image, ScrollView } from 'react-native';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import I18n from 'react-native-i18n';
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view';
import NavigationBar from 'react-native-navbar... | The default implementation of a sequence of components that can be used to render a Camp - Spotlight navigation bar. |
/**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createHistory from 'history/lib/createBrowserHistory';
import useScroll from 'scroll-behavior/lib/useStandardScroll';
imp... | END OF FUNCTION init |
import React from 'react';
export default class TodosListHeader extends React.Component {
render() {
return (
<thead>
<tr>
<th>Task</th>
<th>Action</th>
</tr>
</thead>
);
}
}
| The header for a sequence of tasks and actions. |
import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Video from 'mastodon/features/video';
import ImmutablePureComponent from 'react-immutable-pure-component';
import Footer from 'mastodon/features/picture_in_picture/components/footer';
import... | A component that displays a video modal. |
import React from 'react';
import Helmet from 'react-helmet';
import { Route } from '../../core/router';
import { Model as Waste } from '../../entities/Waste';
import { Collection as WasteTypes } from '../../entities/WasteType';
import { PageHeader, Row, Col, Panel } from 'react-bootstrap';
import WasteForm from '../..... | A route that creates a specific waste action. |
import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { injectIntl, FormattedMessage } from 'react-intl';
import SettingToggle from '../../notifications/components/setting_toggle';
export default @injectIntl
class ColumnSettings extends React.... | A component that renders a block of content that can be used to configure a column in a table. |
import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
import Input from '../../elements/Input'
import FormField from './FormField'
/**
* Sugar for <Form.Field control={Input} />.
* @see Form
* @see Input
*/
function FormInput(props) {
const { con... | FormInput constructor. |
import React from 'react';
import { View, Text } from 'react-native';
import { Icon } from 'native-base';
import { Scene, Router } from 'react-native-router-flux';
import LoginScreen from './components/screens/LoginScreen';
import InitScreen from './components/screens/InitScreen';
import HomeScreen from './components/s... | export a router component |
import React from 'react';
import ReactDOM from 'react-dom';
export default class MoveMetaComponent extends React.Component {
constructor(props) {
super(props);
}
toggle() {
return ((this.props.open) ? "open " : "") + "trainer-pokemon-move-meta";
}
displayAilment() {
if(this.props.meta.ailment ... | A component that can be used to move a component to a new location. |
import React from 'react';
import GreetingMaster from './GreetingMaster';
import GreetingDetail from './GreetingDetail';
let currentId = 0;
const sampleGreetings = [{
id: currentId++,
name: 'Olli',
greeting: 'Huhu'
},
{
id: currentId++,
name: 'Oma',
greeting: 'Hallo'
}
];
... | Diese Methode d ajout ein GreetingController. |
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { createStore, applyMiddleware } from 'redux'
import monsterChatApp from './reducers'
import MonsterChat from './components/MonsterChat'
import monsterChatClient, {chatMiddleware} from './chat'
const initialState... | Imports a single unknown element. |
import React from 'react'
import PropTypes from 'prop-types'
import {
withGoogleMap,
GoogleMap,
HeatmapLayer
} from 'react-google-maps'
import MarkerClusterer from 'react-google-maps/lib/addons/MarkerClusterer'
import LiveMarker from 'components/LiveMarker'
import LiveStationModal from 'components/LiveStationModa... | The base class for all markers that are not part of a single map. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationVpnLock = (props) => (
<SvgIcon {...props}>
<path d="M22 4v-.5C22 2.12 20.88 1 19.5 1S17 2.12 17 3.5V4c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h5c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1zm-.8 0h-3.4v-.5c0-.94.76-... | NotificationVpnLock is a component |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let LocalGasStation = props =>
<SvgIcon {...props}>
<path d="M19.77 7.23l.01-.01-3.72-3.72L15 4.56l2.11 2.11c-.94.36-1.61 1.26-1.61 2.33 0 1.38 1.12 2.5 2.5 2.5.36 0 .69-.08 1-.21v7.21c0 .55-.45 1-1 1s-1-.45-... | A component that renders a missing - |
/**
*
* ToggleOption
*
*/
import React from 'react';
import { injectIntl, intlShape } from 'react-intl';
const Option = ({ value, message, intl }) => (
<option value={value}>
{message ? intl.formatMessage(message) : value}
</option>
);
Option.propTypes = {
value: React.PropTypes.string.isRequired,
messag... | A ToggleOption that creates a dropdown dropdown from a missing missing node. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageExposurePlus1 = (props) => (
<SvgIcon {...props}>
<path d="M10 7H8v4H4v2h4v4h2v-4h4v-2h-4V7zm10 11h-2V7.38L15 8.4V6.7L19.7 5h.3v13z"/>
</SvgIcon>
);
ImageExposurePlus1 = pure(ImageExposurePlus1);
ImageEx... | A function to export a single component in |
import 'babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import TinyMCE from 'react-tinymce';
import Mention from '../../Mention';
import simpleDataSource from './simple';
const plugins = [
'autolink',
'autoresize',
'code',
'image',
'link',
'media',
'mention',
'tabfocus'
];... | Initialize the tinymce - related component |
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { App, About, Home, NotFound } from './containers';
export const routes = [
{
component: App,
routes: [
{ path: '/', exact: true, component: Home },
{ path: '/about', component: About },
{ component: NotFoun... | export routes - > list of routes |
/**
* 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 Layout from '../../co... | Provides a function to generate a missing React component from a missing layout or page. |
import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {getName, getResidence} from './selectors';
const SameNameAdvocateComponent = ({name, residence}) => <span>{name}{residence && <span> ({residence})</span>}</span>;
const mapStateToProps = (state, {id}) => ({
... | A component that is used to create a |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentClear = (props) => (
<SvgIcon {...props}>
<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>
</SvgIcon>
);
ContentClear = pure(ContentClea... | A component that creates a content clear in a group of icons. |
import React from 'react';
import {Link, NavLink} from './links';
const NavLinks = (props) => {
return(
<>
{props.desktop &&
<NavLink
to="/docs/"
activeClassName="active-navlink"
partiallyActive={true}
>
Docs
</NavLink>
}
<NavLink... | Exports a list of nav links. |
import React from 'react';
import { SegmentedControl } from 'elemental';
const TOGGLE_OPTIONS = [
{ label: 'Is Checked', value: true },
{ label: 'Is NOT Checked', value: false }
];
var BooleanFilter = React.createClass({
getInitialState () {
return {
checked: this.props.value || TOGGLE_OPTIONS[0].value
};
... | A filter that can be used to filter a node by checking its value and toggling it. |
import React from 'react';
export default class MenuItem extends React.Component{
constructor(props){
super(props);
this.state={
glyphiconColor:'green'
}
}
render(){
return(
<div>
<button className="btn btn-default menu-btn"
onClick={this.props.menuItemOnClick}
onMouseOver={thi... | The menu item class |
/**
* LoadingButton.react.js
*
* Wraps the loading indicator in a tag with the .btn--loading class
*/
import React from 'react';
import LoadingIndicator from './LoadingIndicator.react';
function LoadingButton(props) {
return(
<a href="#" className={props.className + " btn btn--loading"} disabled="true">
... | A function to wrap a missing tag with a loading indicator. |
import React, { Component } from 'react';
/**
* The React {@link Component} which is similar to Web's
* {@code HTMLAudioElement}.
*/
export default class AbstractAudio extends Component {
/**
* The (reference to the) {@link ReactElement} which actually implements
* this {@code AbstractAudio}.
*/
... | A base class which implements the abstract audio interface. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationNetworkCheck = (props) => (
<SvgIcon {...props}>
<path d="M15.9 5c-.17 0-.32.09-.41.23l-.07.15-5.18 11.65c-.16.29-.26.61-.26.96 0 1.11.9 2.01 2.01 2.01.96 0 1.77-.68 1.96-1.59l.01-.03L16.4 5.5c0-.28... | A component that creates a network check for a specific component. |
import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import {camelise,componentsFromTransform} from 'nodes/processors/uibuilder/utils';
import { actionCreators as canvasActions, selector, NAME } from '../..';
import { connect } from 'react-redux';
import {Circle, Text, Line, Rect, Ellip... | A component that can be used to render a group of components. |
import React from 'react';
import Row from '../../src/Row';
import Col from '../../src/Col';
import ReactPlayground from './ReactPlayground';
import PropTable from './PropTable';
import store from './store';
import Samples from './Samples';
import modal from '../../examples/Modal';
import modalWithBottomSheet from '../... | export default TabsPage |
import React from 'react'
import { Input } from 'semantic-ui-react'
const InputExampleLeftCornerLabeled = () => (
<Input
label={{ icon: 'asterisk' }}
labelPosition='left corner'
placeholder='Search...'
/>
)
export default InputExampleLeftCornerLabeled
| InputExampleLeftCornerLabeled - > Labeled |
import React from 'react';
import test from 'ava';
import { shallow } from 'enzyme';
import TableHeadingCell from '../TableHeadingCell';
test('renders with style', (t) => {
const style = { backgroundColor: '#EDEDED' };
const wrapper = shallow(<TableHeadingCell style={style} />);
t.true(wrapper.matchesElement(<... | test - test - test |
'use strict';
import './styles.postcss';
import React from 'react';
import Modal from '../Modal';
import CaresPackage from './CaresPackage';
import PowerBox from './PowerBox';
import CaresEvolution from './CaresEvolution';
import CatalystWomen from './CatalystWomen';
import BoxVideo from './BoxVideo';
import Slider fr... | A component that displays a modal modal with a header and a footer. |
import React from 'react';
import classNames from 'classnames';
const Grid = React.createClass({
propTypes: {
fluid: React.PropTypes.bool,
componentClass: React.PropTypes.node.isRequired
},
getDefaultProps() {
return {
componentClass: 'div'
};
},
render() {
let ComponentClass = th... | Creates a grid component that can be rendered by a component with a hidden component. |
import React from 'react';
export default function PaymentMethodWrapper(props) {
return (
<div className="PaymentMethodWrapper">
<i className="PaymentMethodWrapper__icon fa fa-credit-card" />
{props.children}
</div>
);
}
| The default payment method wrapper. |
import React from 'react';
import blacklist from 'blacklist';
import E from '../constants';
module.exports = React.createClass({
displayName: 'Container',
propTypes: {
children: React.PropTypes.node.isRequired,
clearfix: React.PropTypes.bool,
gutter: React.PropTypes.number,
maxWidth: React.PropTypes.number,
... | A module that exports a container with a default set of props. |
import React from 'react';
import PropTypes from 'prop-types';
module.exports = class Symbol extends React.Component {
static propTypes = {
id: PropTypes.string.isRequired,
viewBox: PropTypes.string,
preserveAspectRatio: PropTypes.string,
children: PropTypes.node.isRequired,
};
render() {
co... | A module that exports a symbol that can be used to render a node in a node - wide way. |
/* @flow */
import React from 'react';
import Box from 'grommet/components/Box';
import Form from 'grommet/components/Form';
import FormFields from 'grommet/components/FormFields';
import FormField from 'grommet/components/FormField';
import TextInput from 'grommet/components/TextInput';
import Button from 'grommet/com... | Component that renders a single block of colors. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderStyle = (props) => (
<SvgIcon {...props}>
<path d="M15 21h2v-2h-2v2zm4 0h2v-2h-2v2zM7 21h2v-2H7v2zm4 0h2v-2h-2v2zm8-4h2v-2h-2v2zm0-4h2v-2h-2v2zM3 3v18h2V5h16V3H3zm16 6h2V7h-2v2z"/>
</SvgIcon>
);
E... | A small function to export a default EditorBorderStyle for a node. |
// (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... | Component that renders a single missing - or missing - color index on a platform - vmware container. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorMonetizationOn = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1.41 16.09V20h-2.67v-1.93c-1.71-.36-3.16-1.46-3.27-3.4h1.96c.1 1.05.82 1.87 2... | A component that renders a series of components that can be used to visualize the component s components. |
/**
* 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 ReactCSSTransiti... | Static function to create a middleware that can be used to route and transition components. |
/*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | Package protected methods |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryStd = (props) => (
<SvgIcon {...props}>
<path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"/>
</SvgIcon>
);
D... | Devuelte un objeto DeviceBatteryStd |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
class FormSelect extends Component {
onChange(e) {
// make sure we have a valid value before propogating the on change call
let isValid = true;
if (this.props.validationFunc) {
isValid = this.props.validationFunc(e);
... | A form - select that renders a dropdown with a series of options for a single node. |
import React from 'react'
const { node, number } = React.PropTypes
function renderSlides(props) {
return React.Children.map(props.children, (slide, i) => {
return React.cloneElement(slide, {
style: {
...slide.props.style,
width: props.width,
left: props.width * (i - props.showIndex... | A component that renders a node list with no children. |
import React from 'react'
import { storiesOf } from '@storybook/react-native'
import ScaleLinear from './scale-linear'
import ScaleTime from './scale-time'
import ScaleBand from './scale-band'
import WithComplexData from './data-object'
import ShowcaseCard from '../showcase-card'
storiesOf('XAxis', module)
.addDe... | Imports a bunch of components from the System. |
import React from 'react';
import IconBase from 'react-icon-base';
export default class FaContao extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m3.1 2.9h4.4q-1.6 1.4-2.8 3.3-0.8 1.2-1.4 2.6t-0.6 2.8-0.2 2.6 0.2 3 0.5 2.8 ... | Component that renders a FaContao. |
import React from 'react';
import SvgIcon from 'react-icons-kit';
import { instagram } from 'react-icons-kit/fa';
import { linkedin } from 'react-icons-kit/fa';
import { github } from 'react-icons-kit/fa';
import { facebook } from 'react-icons-kit/fa';
const About = function () {
return (
<div style={{ display: ... | Package protected functions |
import React from 'react';
export default React.createClass({
propTypes:{
count: React.PropTypes.number.isRequired,
total: React.PropTypes.number.isRequired,
loadMore: React.PropTypes.func.isRequired
},
render() {
if (this.props.componentId) {
return null;
}
let hasMore = this.prop... | The default function for the missing - |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
// ======================================================
// Hoc
// ======================================================
import withAudio from '../../../hoc/... | A component that is rendered when a page is hidden from a master app. |
import React from 'react';
import _ from 'lodash';
import ReplCommon from '../common/ReplCommon';
let sentinalValues = _.map(new Array(0x10), () => 0);
export default class ReplOutputBufferExplorer extends React.Component {
constructor(props) {
super(props);
this.state = {
page: 1
}
_.each([
... | The default buffer explorer class. |
import React from 'react';
import IconBase from 'react-icon-base';
export default class FaPercent extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m31.6 28.6q0-1.2-0.9-2t-2-0.9-2 0.9-0.8 2 0.8 2 2 0.8 2-0.8 0.9-2z m-17.2-17... | Missing icons for FaPercent |
import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function WellSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<Anch... | The Well section |
import React from 'react';
import PropTypes from 'prop-types';
import {Text, View} from 'react-native';
import {mergeStyles, stylePropType} from '@indec/react-native-commons/util';
import {isEmpty, filter, toNumber, isNil, sum} from 'lodash';
import TextWithBadge from '../TextWithBadge';
import {handleChange} from '..... | This function creates a component that displays a sum of the missing missing terms and adds them to a section. |
/**
*
* AttributeCard
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import IcoBoolean from '../../assets/images/icon_boolean.png';
import IcoDate from '../../assets/images/icon_date.png';
import IcoEmail from '../../assets/images/icon_email.png';
im... | A component that can be used to create a single attribute card. |
import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './RubymineOriginal.svg'
/** RubymineOriginal */
function RubymineOriginal({ width, height, className }) {
return (
<SVGDeviconInline
className={'RubymineOriginal' +... | React - related module that renders a single element with a series of props. |
import React from 'react'
import { connect } from 'react-redux'
import h from "lib/ui/hyperscript_with_helpers"
import R from 'ramda'
import moment from 'moment'
import { getColumnsFlattened } from "lib/assoc/helpers"
import { getIsOnboarding, getDecryptedAll, getInvitingUser, getGeneratedInviteLink, getIsDemo } from '... | Component that renders a single column on a collaborator that is either onboarding or finished onboarding. |
import express from 'express';
import path from 'path';
import { createStore } from 'redux-core';
import { reducer, applyRxMiddleware } from '../shared';
import getIntentStream from './utils/getIntentStream';
import render from './utils/render';
import Counter from '../shared/view/components/Counter';
import React from... | Express middleware for handling missing intents |
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... | A component that renders a single node in the DOM. |
import React from 'react'
import PropTypes from 'prop-types'
import {Card, Text, Stack, Flex, Box, Label} from '@sanity/ui'
import {LaunchIcon} from '@sanity/icons'
import HintCard from './HintCard'
function CardLinks(props) {
const {type, links, title, repoId} = props
if (!links) {
return null
}
if (type... | React - related - links |
import PropTypes from 'prop-types'
import React from 'react'
import propTypes from '../../prop-types'
import cn from '../../lib/class-names'
const FormRow = ({classNames, layout, children}) => {
const mappedChildren = React.Children.map(children, child => (
<div className="FormRow__column">{child}</div>
))
... | FormRow creates a form row with a single |
/*
* Package Import
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { NavLink } from 'react-router-dom';
import { Link } from 'react-scroll';
/*
* Local Import
*/
import Description from 'src/components/Description';
import Screen from './Screen';
/*
* Component
*/
clas... | Package for handling a single missing node in the system. |
import styles from './Autosuggest.less';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import ReactAutosuggest from '../private/react-autosuggest';
import IsolatedScroll from 'react-isolated-scroll';
import omit from 'lodash/omit';
import TextField fr... | A component that can be used to automatically display a dropdown dropdown list of options. |
import React from 'react';
import { Layout, NavDrawer, Panel, Sidebar, Chip, FontIcon, AppBar, Navigation, Button } from 'react-toolbox';
import { BrowserRouter as Router, Route, Link } from 'react-router-dom';
import Packrat from './Packrat';
import ServerError from './ServerError';
import Home from './Home';
import P... | Very basic app - side sequence sequence |
import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionReportProblem = (props) => (
<SvgIcon {...props}>
<path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/>
</SvgIcon>
);
ActionReportProblem.displayName = 'ActionReportProblem';
ActionReportProblem.muiName = 'SvgIcon';
export de... | A component that exports a problem in action report. |
import PropTypes from 'prop-types';
import React from 'react';
const TOP = 'top';
const LEFT = 'left';
const TOP_LEFT = 'top-left';
const getTooltipStyles = (target, direction) => {
const top = window.pageYOffset + target.top;
const left = window.pageXOffset + target.left;
switch (direction) {
case TOP:
... | A Tooltip for a node in a window. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationDriveEta = (props) => (
<SvgIcon {...props}>
<path d="M18.92 5.01C18.72 4.42 18.16 4 17.5 4h-11c-.66 0-1.21.42-1.42 1.01L3 11v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 ... | A component that exports a sequence of components that are not part of a component. |
/**
* Render a footer for a popout
*/
import React from 'react';
const BUTTON_BASE_CLASSNAME = 'Popout__footer__button Popout__footer__button--';
const PopoutFooter = React.createClass({
displayName: 'PopoutFooter',
propTypes: {
children: React.PropTypes.node,
primaryButtonAction: React.PropTypes.func,
pri... | Renders a popout footer for a specific node in the tree. |
import React from 'react'
import redux from '../constants/redux'
import { Provider } from 'redux/react'
import { bindActionCreators } from 'redux'
import * as GameActions from '../actions/gameActions'
import App from './app'
class MainApp extends React.Component {
render() {
return (
<Provider redux={re... | MainApp is a component that |
import React from 'react';
import ReactDOM from 'react-dom';
import { browserHistory } from 'react-router';
import Routes from './routes';
ReactDOM.render(
<Routes history={browserHistory} />,
document.getElementById('root')
);
| Imports the routes and react - dom. |
import React, { Component } from 'react';
import { displayTime } from './../utils/displayTime';
export class RoutineTimerListItem extends Component {
handleClick = (event) => {
const { routine, loadCurrentRoutine } = this.props;
loadCurrentRoutine(routine.id);
}
render() {
const { routine } = this.p... | The RoutineTimerListItem class is used to display a list of all routines that have a timer. |
import React from 'react';
import _ from 'lodash';
import { assocIn, merge } from 'icepick';
import { connect } from 'react-redux';
import NotebookListItemView from './NotebookListItemView';
import NotebookListItemEdit from './NotebookListItemEdit';
import complexActionCreators from '../../redux/complexActionCreators'... | The NotebookListItem class is a component that can be used to edit a notebooks list. |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { DropTarget } from 'react-dnd';
export default function droppable(types) {
const spec = {
drop(props, monitor) {
if (monitor.canDrop()) {
const item = monitor.getItem();
props.onDropFiles(props.item.id, it... | A component that can be used to drop files or folders. |
import React from 'react';
import '../styles/List.css';
import { Link } from 'react-router-dom'
const Location = props => {
const link = props.inTable
? `/detail/${props.location.id}`
: `/new-location`;
return (
<div className="location">
<div className="location-container">
<h2 classNa... | The default logic for missing node - related nodes. |
import React from 'react'
import wrapDisplayName from 'recompose/wrapDisplayName'
import { withPropsFromContext } from 'react-context-props'
const withTheme = adapter => Target => {
const WithTheme = withPropsFromContext(['theme'])(({ theme, ...props }) =>
<Target
{...{
...props,
...(theme ... | withTheme - export withTheme |
import React from 'react';
import IconBase from 'react-icon-base';
export default class FaSortNumericDesc extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m33 6.5q0-1.5-0.9-2.6t-2.3-1.2q-1.2 0-1.9 0.8t-0.7 2.1 0.8 2.1 2.4 0... | A component that can be used to sort numeric values in a sequence of different formats. |
import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { Trans } from '@lingui/macro';
import makeCharacterPageUrl from 'common/makeCharacterPageUrl';
import { makePlainUrl } from 'interface/common/makeAnalyzerUrl';
import REPORT_HISTORY_TYPES from 'interface/hom... | Private function to generate a reportHistory property that exports a list of all reports in a sequence of time intervals. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionGTranslate = (props) => (
<SvgIcon {...props}>
<path d="M20 5h-9.12L10 2H4c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h7l1 3h8c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zM7.17 14.59c-2.25 0-4.09-1.83-4.09-4.09s1.83-4.09 4.09-4... | A component that exports a component that can be translated to a different color. |
import React from 'react'
import ReactDOM from 'react-dom'
import jQuery from 'jquery'
import classnames from 'classnames'
let $ = jQuery;
import {Envs} from '../envs'
import {NComponent} from './n-component'
class NTextArea extends NComponent {
// lifecycle
postDidUpdate() {
if (this.getComponentText() != this.ge... | A component that can be used to render a text area in a layout. |
import React from 'react'
import * as WidgetComponents from './'
const DraftWidget = ({ widget, setWidget }) => {
// Remove draft to simulate render menu
const components = Object.assign({}, WidgetComponents)
delete components['draft']
return (
<div className="draft-widget widget border center p2">
... | DraftWidget DraftWidgetDraftWidget = > DraftWidgetDraftWidget |
import React from 'react'
import {expect} from 'chai'
import {mount, shallow} from 'enzyme'
import {describe, it} from 'mocha'
import ModelRunConfigForm from '../../../src/components/ConfigForm/ModelRunConfigForm.js'
import {sos_model_run, sos_models, scenarios, narratives} from '../../helpers.js'
import {empty_objec... | Imports a bunch of components from the module. |
import React from 'react';
import Page from '../../component/page';
import SampleData from './nameDB';
import {
//main component
SearchBar,
//for display data
Panel,
PanelHeader,
PanelBody,
PanelFooter,
MediaBox,
MediaBoxHeader,
MediaBoxBody,
MediaBoxTitle,
MediaBoxDescr... | A demo component that shows a single sequence of possible names. |
import React, { Component } from 'react';
import {
StyleSheet,
TouchableHighlight,
Text,
View,
Alert
} from 'react-native';
import NavigationBar from 'react-native-navbar';
import DeviceInfo from 'react-native-device-info';
import LevelStart from './levelstart';
import Libs from './libs';
import quizImgs f... | Component that is a component of a sequence of components. |
import React from 'react';
import Typography from '@material-ui/core/Typography';
import Box from '@material-ui/core/Box';
export default function LetterSpacing() {
return (
<Typography component="div">
<Box letterSpacing={6} m={1}>
Letter Spacing 6px.
</Box>
<Box letterSpacing={10} m={... | The default system for |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { setPath } from '../appReducer';
import RefreshIndicator from 'material-ui/RefreshIndicator';
import DetailContainer from '../detail/Detail';
class ResultsContainer extends Component {
componentWillMount() {
this.props.dispa... | The base implementation of a single missing - missing |
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from './src/js/containers/App'
import configureStore from './src/js/stores/configureStore'
export { default } from './src/js/components/dynamicList/DynamicList';
const store = configureStore()
render(
<Pro... | Imports a single and renders it to the DOM. |
/**
* Render the body of a popout
*/
import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var PopoutBody = React.createClass({
displayName: 'PopoutBody',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
scrollable: React... | Renders a popout body that is rendered when a node is missing. |
import React from 'react';
import './StoreCard.css';
const StoreCard = props => (
<div className="card" onClick={props.onClick} data-id={props.id}>
<div className="card-header" data-id={props.id}>
<div className="card-image" data-id={props.id}>
<img className="image1" alt={props.name} src={props.image1}... | The default store - card component which displays a sequence of images and a list of images. |
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { withStyles } from 'material-ui/styles';
import Typography from 'material-ui/Typography';
import Grid from 'material-ui/Grid';
import SvgIcon from 'material-ui/SvgIcon';
import { TableCell } from 'material-ui/Tab... | A function to render a single critical sequence of states. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.