code stringlengths 26 5k | intent stringlengths 3 2.56k |
|---|---|
import React from 'react';
import App from './containers/App';
import { combineReducers } from 'redux';
import { Provider } from 'react-redux';
import { createStore, renderDevTools } from './utils/devTools';
import * as reducers from './reducers';
const reducer = combineReducers(reducers);
const store = createS... | Imports a single application. |
import React, { Component } from 'react';
import { Grid } from 'react-bootstrap';
import { Route, Switch } from 'react-router-dom';
import axios from 'axios';
import Header from '../header/header';
import Home from '../home/home';
import Orders from '../orders/orders';
import ShoppingCart from '../shoppingCart/shopping... | The base component for all components that are not part of a cart. |
import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
| The first component of a sequence |
import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import LoadingIndicator from '../../components/loading_indicator';
import { ScrollContainer } from 'react-router-scroll-4';
import Column from '../ui/componen... | A component that displays a block of users. |
'use strict';
import React from 'react';
import IconButton from 'material-ui/IconButton';
import Settings from 'material-ui/svg-icons/action/settings';
import { createSelector } from 'reselect';
import { connect } from 'react-redux';
import { Config } from '../../redux/actions';
class tpl extends React.Component {
... | A component that wraps a single node in a sequence of React components. |
import React from 'react';
import ReactDOM from 'react-dom';
import Scaffold from './views/scaffold/scaffold';
import injectTapEventPlugin from 'react-tap-event-plugin';
import AppCanvas from 'material-ui/lib/app-canvas';
injectTapEventPlugin();
ReactDOM.render(<AppCanvas><Scaffold /></AppCanvas>, document.getElementB... | Imports a single component and renders it into the main DOM. |
import React from 'react';
import PropTypes from 'prop-types';
import Script from 'react-load-script';
import RaisedButton from 'material-ui/RaisedButton';
const SCRIPT_URL = '//widget.cloudinary.com/global/all.js';
const buttonStyle = {
marginTop: '2em',
};
/* eslint-disable react/prefer-stateless-function */
/* es... | A component that handles uploading images from a cloudinary widget. |
import React from 'react'
import { Redirect } from 'react-router';
import Link from 'gatsby-link'
import styled, { keyframes } from 'styled-components'
import { GridProvider, Grid, Row, Col } from 'zooper-grid'
import * as theme from '../theme'
const AboutPage = () =>
<SiteWrapper>
<AboutWrap>
<Title>
... | Imports a single node in the system. |
import React from 'react';
import Section from '../src/Section';
import Icon from '../src/Icon';
import Row from '../src/Row';
import Col from '../src/Col';
export default
<Section>
<Row className='center'>
<Col s={3}>
<Icon tiny>insert_chart</Icon>
<p>tiny</p>
</Col>
<Col s={3}>
<Icon ... | export default by default |
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h1 className="App-title">Welco... | The base class for all components that are not in React. |
import React, { Component } from 'react';
class AboutProfile extends Component {
render() {
return (
<div className="col-md-3">
<h3 className="about-names">{this.props.name}</h3>
<div className="img-container"><img className="about-img" src={this.props.image}></img>
</div>
<... | A component that renders a tag that can be used to render a tag with a hidden tag. |
import React from 'react';
import BootstrapMixin from './BootstrapMixin';
import Dropdown from './Dropdown';
import NavDropdown from './NavDropdown';
import CustomPropTypes from './utils/CustomPropTypes';
import deprecationWarning from './utils/deprecationWarning';
import omit from 'lodash/object/omit';
class Dropdown... | A component that can be used to show a dropdown dropdown menu or a dropdown menu item. |
//
// Component form in create user page
//
import React from 'react';
import Username from 'containers/CreateUser/Form/Username';
import Email from 'containers/CreateUser/Form/Email';
import Password from 'containers/CreateUser/Form/Password';
import PasswordConfirmation from 'containers/CreateUser/Form/PasswordConfi... | Component form in create user page |
/**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
impor... | JS code generation for a single non - default key |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrush = (props) => (
<SvgIcon {...props}>
<path d="M7 14c-1.66 0-3 1.34-3 3 0 1.31-1.16 2-2 2 .92 1.22 2.49 2 4 2 2.21 0 4-1.79 4-4 0-1.66-1.34-3-3-3zm13.71-9.37l-1.34-1.34c-.39-.39-1.02-.39-1.41 0L9 12.25... | A component that renders a block of icons that can be used to render a block of icons. |
import React from 'react';
import { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles';
import { blue } from '@material-ui/core/colors';
import Paper from '@material-ui/core/Paper';
import Header from '../components/Header';
const theme = createMuiTheme({
palette: {
primary: blue,
},
typogra... | The default implementation of a single node in a hierarchy. |
import React from 'react';
import Avatar from 'material-ui/Avatar';
import { blue500 } from 'material-ui/styles/colors';
import IconEdit from 'material-ui/svg-icons/image/edit';
import { SpeedDial, BubbleList, BubbleListItem } from '../../speed-dial';
import fakerImage from '../faker-image';
const list = {
items: [
... | A function that exports a single node in a hierarchy. |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Spinner } from 'patternfly-react';
import './LoadingState.scss';
class LoadingState extends Component {
constructor(props) {
super(props);
this.state = {
render: false,
};
}
componentDidMount() {
setTime... | The loading state class |
/* eslint-disable */
import React from 'react';
export default function Button({theme, children}) {
return <button color={theme}>{children}</button>;
}
| Button - > button |
import React from 'react';
import mapKeys from 'lodash/mapKeys';
import Text from './Text';
export const text = {
'Screaming': <Text screaming>Screaming text</Text>,
'Yelling': <Text yelling>Yelling text</Text>,
'Shouting': <Text shouting>Shouting text</Text>,
'Waving': <Text waving>Waving text</Text>,
'Whis... | Export text symbols as symbols |
/*
* Copyright (C) 2017 Ben Ockmore
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distr... | This function is exported to the console for a single object. |
import React from 'react'
import invariant from 'invariant'
import { routerShape } from './PropTypes'
import { ContextSubscriber } from './ContextUtils'
const { bool, object, string, func, oneOfType } = React.PropTypes
function isLeftClickEvent(event) {
return event.button === 0
}
function isModifiedEvent(event) {... | Creates a link tag that links to a route. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentGesture = (props) => (
<SvgIcon {...props}>
<path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.... | A component that renders a series of icons that can be used to render a series of icons. |
import React from 'react'
import { translate } from 'react-i18next'
import { withRouter } from 'react-router-dom'
import { action, extendObservable, reaction } from 'mobx'
import { inject, observer } from 'mobx-react'
/** Ant Design */
import Menu from 'antd/lib/menu'
@translate(['common'])
@inject('connections')
@ob... | A component that is a menu |
import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor toggleVisibilityKey="ctrl-H"
changePositionKey="ctrl-Q">
<LogMonitor /... | createDevTools creates a new devtools object from a single node. |
import { FontAwesome, ResponsiveButton } from '../../../common/';
import {
LABEL_AUTHOR,
LABEL_EDITION,
LABEL_LIBRARY_BOOKS,
LABEL_PUBLISHER,
LABEL_SUB_TITLE,
LABEL_TITLE
} from '../../../../labels/';
import { Book } from '../../../../api/books/';
import PropTypes from 'prop-types';
import React from 'reac... | Exports a single from a list of books. |
import React from 'react'
import lyraClient from 'part:@lyra/base/client'
import Button from 'part:@lyra/components/buttons/default'
import schema from 'part:@lyra/base/schema?'
import Select from './lyra/Select'
import Vision from './Vision'
import visionGui from './css/visionGui.css'
import jsonInspector from './css... | Create a new component with a single component. |
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import clsx from 'clsx';
import Accordion from '@material-ui/core/Accordion';
import AccordionDetails from '@material-ui/core/AccordionDetails';
import AccordionSummary from '@material-ui/core/AccordionSummary';
import AccordionActions fr... | Detailed accordion modal. |
// @flow
import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { Redirect } from 'react-router';
import { connect } from 'react-redux';
import { Dimmer, Header, Loader, Segment } from 'semantic-ui-react';
import MenuBar from './MenuBar';
import Balances from '../components/Transa... | The transactions page component. |
import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
| The first component of a sequence |
import React from 'react';
import { Link } from 'react-router';
import { SideBar } from './Shared';
import MainContent from './MainContent';
const links = [
<Link key='about' to='/'>About this blog</Link>,
<Link key='12ppm' to='/'>12PPM challenge</Link>,
<Link key='admin' to='/signin'>Sign in</Link>
];
const st... | The default component that displays a hidden hidden element with a side bar and a header. |
/** @jsx REACT.DOM */
import React from 'react';
import PianoKeyboard from './piano-keyboard';
import MicRecorder from './mic-recorder';
import SynthShape from './synth-shape';
export default React.createClass({
render: function () {
const trackType = this.props.track ? this.props.track.type : null;
const i... | The default component for missing node - jsx - nodelist |
import React from 'react';
import Samples from '../Samples'
import ReactPlayground from '../ReactPlayground'
export default function PopoverSection() {
return (
<div>
{/* Popovers */}
<ReactPlayground id="popovers" title='Popovers' desc='Popovers are designed to only fire from title bars. Set the value of th... | The default popover section |
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import Root from './components/Root.jsx';
// Client render (optional):
if (typeof document !== 'undefined') {
// Client render code goes here...
}
// Exported static site renderer.
// @param locals.path - The path currently being rendered
// ... | Exports a static site renderer that renders a single node in a browser. |
import React from 'react'
import { inject, observer } from 'mobx-react'
import styled from 'styled-components'
import { Link } from 'mobx-little-router-react'
import Modal from '../../components/Modal'
const ShowRoute = ({ route: { params, query }, className, ShowsStore }) => {
let prevShow, nextShow
if (ShowsSt... | Displays a single critical sequence sequence. |
import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from './avatar';
import AvatarOverlay from './avatar_overlay';
import RelativeTimestamp from './relative_timestamp';
import DisplayName from './display_name';
import MediaGallery from... | A component that renders a status page with a link to the status page. |
import { HotKeys, GlobalHotKeys, ObserveKeys, getApplicationKeyMap } from 'react-hotkeys';
import React from 'react';
import Node from './Node';
import HOCWrappedNode from './HOCWrappedNode';
const keyMap = {
DELETE: { name: 'Disable square', sequence: 'backspace', action: 'keyup'},
EXPAND: { name: 'Expand square... | Component which displays keyboard shortcuts and actions when a key is pressed on a node. |
import React from 'react'
import Container from 'components/Container/Container'
import List from 'components/List/List'
import Title from 'components/Title/Title'
import isEmpty from '../app/isEmpty'
export default function getErrorMessage(err, isReact) {
if (isEmpty(err))
return null;
if (typeof err === 'st... | Get error message |
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... | A component that displays a menu item in the history. |
/**
*
* NotFoundPage
* This is the component that will show when you have a 404
*/
import React from 'react';
function NotFoundPage(props) {
return (
<div>
<p>The page you're looking for doesn't exist.</p>
</div>
);
}
export default NotFoundPage;
| NotFoundPage - The component that will show when you have a 404 . |
/**
*
* PointListItem
*
*/
import React from 'react';
import { Link } from 'react-router';
import {Card, CardActions, CardMedia, CardTitle, CardText} from 'material-ui/Card';
import Star from 'Star';
import AddToItinerary from 'AddToItinerary';
import FlatButton from 'material-ui/FlatButton';
import MoreHoriz from '... | Provides a list of points in a single node. |
import React, { Component } from 'react';
import time from 'utility/time';
export default class Timer extends Component {
constructor(props) {
super(props);
this.timer = null;
this.state = {
remain: null
};
this.getRemain = this.getRemain.bind(this);
th... | A component that is a timer that will be rendered when the component is mounted. |
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render((
<App />
), document.getElementById('content')); | Imports a single node in the DOM. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFlipToBack = (props) => (
<SvgIcon {...props}>
<path d="M9 7H7v2h2V7zm0 4H7v2h2v-2zm0-8c-1.11 0-2 .9-2 2h2V3zm4 12h-2v2h2v-2zm6-12v2h2c0-1.1-.9-2-2-2zm-6 0h-2v2h2V3zM9 17v-2H7c0 1.1.89 2 2 2zm10-4h2v-2h-2... | ActionFlipToBack is a function that can be used to create a action flip to back on a hidden element. |
import React from 'react'
import { createComponentWithProxy } from 'react-fela'
const Header = ({ title, className }) => (
<div className={className}>{title}</div>
)
const rule = () => ({
'@media (min-width: 1024px)': {
color: 'red',
},
color: 'rgb(50, 50, 50)',
fontSize: 100,
padding: 50,
':hover':... | Create a header with a rule that creates a component with a proxy to the next state of a node. |
import React from 'react';
import Link from 'gatsby-link';
import Item from '../Item';
export default function makeSection (currentPath, layer, pathname) {
return layer.map((section, idx) => {
const locationArray = pathname.split('/');
const currentSection = locationArray[locationArray.length - 1];
const menuI... | Create a menu section |
import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExampleSegments = () => (
<Segment.Group>
<Segment>Top</Segment>
<Segment>Middle</Segment>
<Segment>Middle</Segment>
<Segment>Middle</Segment>
<Segment>Bottom</Segment>
</Segment.Group>
)
export default SegmentE... | Example of how to display a sequence of segments in a sequence of nodes. |
import React from 'react';
import Rotate from './rotate';
import calcFill from './fill';
export default ({
fill = null,
light = false,
disabled = false,
direction = 'down',
colors = {},
style = {},
...rest
}) => (
<Rotate direction={direction}>
{({ style: rotateStyle }) => (
<svg
vie... | Default function for linking a single node to a skeleton skeleton. |
import React from 'react';
import { Wrapper } from './styles';
const NoInjected = () => (
<Wrapper theme="warning">
<h2>Account doesn´t exists or locked</h2>
<p>
Please, create or unlock MetaMask account
</p>
</Wrapper>
);
export default NoInjected;
| The NoInjected function that will be used to inject a NoInjected function into a module. |
import React from 'react';
import Info from "./cv/info"
import WorkExperience from "./cv/workexperience"
import AwardsSkills from "./cv/awardskills"
import data from "../data/seed"
module.exports = React.createClass({
// RENDER
render: function() {
return (
<div className="cv">
... | Imports a single trait. |
import React from 'react';
import { isEmpty, map, trim, startCase } from 'lodash/fp';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import styled, { withTheme } from 'styled-components';
import { SIDEBAR_WIDTH } from 'constants/config';
import { filterSnippetsList, isTag } from 'utils/snip... | A function to render a Sidebar with a bunch of properties that can be used to render a single key. |
import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue';
var ArrayColumn = React.createClass({
displayName: 'ArrayColumn',
propTypes: {
col: React.PropTypes.object,
... | A component that can be used to create an array column with a single value. |
import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageBrightness2 = (props) => (
<SvgIcon {...props}>
<path d="M10 2c-1.82 0-3.53.5-5 1.35C7.99 5.08 10 8.3 10 12s-2.01 6.92-5 8.65C6.47 21.5 8.18 22 10 22c5.52 0 10-4.48 10-10S15.52 2 10 2z"/>
</SvgIcon>
);
ImageBrightness2.displayName = 'Im... | A component that exports a rightness image in a 2D group. |
import React from 'react';
import { composeWithTracker } from 'react-komposer';
import { Comments } from '/lib/collections';
import {CommentItem} from '../../components/feed/commentItem.jsx';
const composer = ( postId, onData ) => {
if (Meteor.subscribe('comments').ready()) {
var comment = Comments.findO... | This module is used to provide a composer for a comment item. |
import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor toggleVisibilityKey="H"
changePositionKey="W">
<LogMonitor />
</Dock... | createDevTools creates a new devtools object from a single node. |
import React from 'react';
import Alert from 'react-bootstrap/Alert'
import state from './state';
export default class Alerts extends React.Component {
render() {
if (!state.alerts.messages) {
return undefined;
}
return state.alerts.messages.map(message => (
<Alert ... | Alerts class. |
import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import { formatNumber, formatPercentage } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import Combatants from 'Parser/Core/Modul... | The base class for all of the components that are marked as protected by the BoWProcTracker class. |
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
// import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
// registerServiceWorker();
| Imports a single application. |
import React from 'react';
import classNames from 'classnames';
const Option = React.createClass({
propTypes: {
children: React.PropTypes.node,
className: React.PropTypes.string, // className (based on mouse position)
instancePrefix: React.PropTypes.string.isRequired, // unique prefix for the ids (... | Option component that handles the mouse down and touch start and click events. |
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; };
import React, { Component } from 'react';
import PropTypes fr... | Creates a component which is a component that adds addons to the DOM. |
import { CssBaseline, ThemeProvider } from '@material-ui/core';
import React from 'react';
import AboutHeader from '../../components/AboutHeader';
import CommunityValues from '../../components/CommunityValues';
import Footer from '../../components/Footer';
import JoinUs from '../../components/JoinUs';
import Navbar fro... | Generate a single About object. |
/*
* 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 - level functions for missing missing images. |
import React from 'react';
import { storiesOf } from '@storybook/react';
import WithTooltip from './WithTooltip';
import TooltipNote from './TooltipNote';
storiesOf('basics/tooltip/TooltipNote', module)
.addParameters({
component: TooltipNote,
})
.addDecorator(storyFn => (
<div style={{ height: '300px' ... | Add a decorator to show a hidden hidden |
import React from 'react'
import App from 'next/app'
import '../../styles/global.css'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
| A component that can be rendered by a component in a page. |
import React from 'react';
import EditarUnaTarea from './EditarUnaTarea';
class UnaTarea extends React.Component {
constructor(props) {
super(props);
this.state = {editar:false};
this.toggleEditar = this.toggleEditar.bind(this);
}
toggleEditar(){
let aux = !this.state.editar;
this.s... | A component that can be used to edit or uneditar a tarea. |
import React from 'react';
import Icon from './Icon';
const List = props => (
<Icon viewBox="0 0 512 512" {...props}>
<path d="M500 124H140c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h360c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm12 148v-32c0-6.627-5.373-12-12-12H140c-6.627 0-12 5.373-12 12v32c0 6.... | A component that renders a sequence of components that are not part of a sequence of components. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionOpenInNew = (props) => (
<SvgIcon {...props}>
<path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/>
</SvgIcon>
);... | ActionOpenInNew - ActionOpenInNew |
import React from 'react';
import { Aelexe, Zerotorescue, Sharrq, Matardarix, Korebian } from 'CONTRIBUTORS';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
export default [
{
date: new Date('2019-02-03'),
changes: <>Added a suggestion to not use <SpellLink id={SPELLS.SWEEPING_... | Imports a single node in the system as a module. |
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import {Provider} from 'react-redux';
import configureStore from './stores/configureStore';
import Layout from './components/Layout';
import LoginPage from './components/LoginPage';
imp... | Imports a single page. |
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import NavBar from './NavBar.js';
import ApplyForConcentForm from './ApplyForConcentForm.js';
class App extends Component {
render() {
return (
<div>
<NavBar />
<div className="container theme-showc... | The main app class. |
// @flow
/**
* This test represents a pattern which is commonly used to make tab bars, but
* this pattern is also used in many other places.
*/
import React from 'react';
class Tab extends React.Component<{}, void> {}
class NotTab extends React.Component<{}, void> {}
type TabBarNode =
| void
| null
| boole... | A non - null check for a missing node in a sequence of components. |
import React from 'react'
import CommunityListModel from '../../models/CommunityList'
const CommunityList = ({CommunityList}) => {
return (
<table>
<thead>
<tr>
<th>name</th>
</tr>
</thead>
<tbody>
{
CommunityList.communities.map((community) => {
... | Devuelve un objeto CommunityList |
import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debou... | The base component for blocked domains. |
import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdCameraRoll(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M28 11h16v30H28c0 2.21-1.79 4-4 4H8c-2.21 0-4-1.79-4-4V11c0-2.21 1.79-4 4-4h2V5c0-1.1.9-2 2-2h8c1.1 0 2 .9 2 2v2h2c2.21 0 4 1.79 4 4zm-4 26v-4h-4v... | The default function for missing icons. |
import React from 'react';
import { injectIntl } from 'react-intl';
import { SimpleTooltipOrigin } from '../widgets/tooltip/SimpleTooltip';
import Icon from '../widgets/Icon';
const BookmarkButton = ({ post, bookmarks, toggleBookmark, intl }) =>
<SimpleTooltipOrigin message={
intl.formatMessage({
id: bookm... | Imports a single node in the post feed list. |
'use strict'
import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import {
setCurrentTemplate
} from 'pods/templates/actions';
import {
currentTemplateSelector,
currentTemplateSetIdSelector,
currentTemplateSetSelector
} from 'pods/templates/selectors';
... | Imports a from a state object and a dispatch object. |
/**
* Copyright 2018-present Tuan Le.
*
* Licensed under the MIT License.
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://opensource.org/licenses/mit-license.html
*
* Unless required by applicable law or agreed to in writing, software
* d... | This method creates a new component which can be rendered to a target element of a React DOM server component. |
import React from 'react'
import {
FacebookButtonIcon,
TwitterButtonIcon,
LinkedinButtonIcon,
InstagramButtonIcon,
YoutubeButtonIcon,
} from './index'
import { DocsPage } from 'storybook/docs-page'
export default {
component: SocialButtonIcon,
title: 'Action/SocialButtonIcon',
parameters: {
docs: {... | Imports a single from React. |
import PropTypes from 'prop-types';
import React from 'react';
import { css, StyleSheet } from 'aphrodite/no-important';
import defaults from '../theme';
import { deepMerge } from '../utils';
import Icon from './Icon';
function Header ({
customControls,
onClose,
showCloseButton,
closeButtonTitle,
...props,
}, {
... | The header of a block |
import React from 'react'
import NavLink from './NavLink'
export default React.createClass({
render() {
return (
<div>
<h2>Repos</h2>
<ul>
<li><NavLink to="/repos/reactjs/react-router">React Router</NavLink></li>
<li><NavLink to="/repos/facebook/react">React</NavLink></l... | Create a default class with a hierarchy of children. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPartyMode = (props) => (
<SvgIcon {...props}>
<path d="M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 3c1.63 0 3.06.79 3.98 2H12c-1.66 0-3 1.34-3 3 0 .... | A component that renders a component that displays a social party mode. |
import React from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import { StaticQuery, graphql } from 'gatsby';
function SEO({ description, lang, meta, keywords, title }) {
return (
<StaticQuery
query={detailsQuery}
render={(data) => {
const metaDescription = ... | Seo - Seo - Seo. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesRvHookup = (props) => (
<SvgIcon {...props}>
<path d="M20 17v-6c0-1.1-.9-2-2-2H7V7l-3 3 3 3v-2h4v3H4v3c0 1.1.9 2 2 2h2c0 1.66 1.34 3 3 3s3-1.34 3-3h8v-2h-2zm-9 3c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1... | A function to create a default placeholder for missing icons. |
import React from 'react'
import { Switch, Route } from 'react-router'
import { Provider } from 'react-redux'
import routes from 'routes'
export default (store, Router, routerProps) =>
<Provider store={store}>
<Router {...routerProps}>
<Switch>
{routes.map(route => <Route key={route.path} {...rout... | Imports a bunch of components from react - router and react - redux. |
import React from 'react';
class Dashboard extends React.Component {
render () {
return (
<div>
<h3>Course Dashboard</h3>
</div>
);
}
}
export default Dashboard;
| The Dashboard class. |
import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { withKnobs, text, boolean, number, object } from '@kadira/storybook-addon-knobs';
import { setComposerStub } from 'react-komposer';
import NewPollForm from '../new_poll_form.jsx';
storiesOf('core.NewPollForm', module)
.addDecor... | Add a decorator to the main view of the Knobs module. |
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. |
import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor
toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-w"
>
<LogMonitor />
... | createDevTools creates a new devtools object with a single node with a single hierarchy of React elements. |
import React from 'react'
import PropTypes from 'prop-types'
import optclass from './OptClass'
import Button from '../Button'
import colors from '../internal/colors'
const ConfirmationOverlay = ({ prompt, handleConfirmation }) => {
const getTextStyle = () => {
return {
fontSize: '14px',
fontWeight: '... | The main function for the confirmation dialog. |
import React from 'react'
import { Td } from 'src/components/fake-table/Table'
import { ReactComponent as StripesSvg } from 'src/styling/icons/stripes.svg'
const Stripes = ({ width }) => (
<Td width={width}>
<StripesSvg />
</Td>
)
export default Stripes
| Imports a component with a stripes element. |
import React from 'react'
import api from '@lib/api'
export default function ResolveOrder() {
return <div>{api()}</div>
}
| Resolve order of |
import React from 'react';
import TextField from 'material-ui/TextField';
import {orange500, blue500} from 'material-ui/styles/colors';
const styles = {
errorStyle: {
color: orange500,
},
underlineStyle: {
borderColor: orange500,
},
floatingLabelStyle: {
color: orange500,
},
floatingLabelFocu... | The TextFieldExampleCustomize module provides a function to customize the Hint Text and Floating Label fields. |
/**
* Copyright (c) 2017-present, Viro Media, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import Re... | Private functions - Public |
import PropTypes from 'prop-types';
import React from 'react';
import PageContent from 'Components/Page/PageContent';
import translate from 'Utilities/String/translate';
import styles from './NotFound.css';
function NotFound({ message }) {
return (
<PageContent title={translate('MIA')}>
<div className={sty... | The default 404 page |
import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { component, components, falsy } from './InternalPropTypes';
var func = React.PropTypes.func;
/**
* An <IndexRoute> i... | The indexRoute is used to specify its parent s indexRoute. |
import React from 'react'
import Match from './Match'
class Counter extends React.Component {
constructor(props) {
super(props);
this.state = {
playerOne: "",
playerTwo: "",
result: ""
}
this.baseState = this.state
}
resetState(){
this.state = this.baseState
}
render(... | A component that creates a single unique match in a sequence of players. |
import React from 'react'
import { getSiteProps } from 'react-static'
//
import logoImg from '../logo.png'
export default getSiteProps(() => (
<div>
<h1 style={{ textAlign: 'center' }}>Welcome to</h1>
<img src={logoImg} alt="" />
</div>
))
| Get the site props of a . |
/**
* 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 . |
import React from 'react';
import { useIntl } from 'react-intl';
import { useQuery } from '@strapi/helper-plugin';
import { Box } from '@strapi/design-system/Box';
import { Main } from '@strapi/design-system/Main';
import { Flex } from '@strapi/design-system/Flex';
import { Link } from '@strapi/design-system/Link';
imp... | Imports a single node in the system where a user has been suspended. |
import React from 'react';
class SearchForm extends React.Component {
render() {
return 'test';
}
}
export default SearchForm;
| A component that can be rendered as a search form. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.