code stringlengths 26 5k | intent stringlengths 3 2.56k |
|---|---|
import React, { Component } from 'react';
import './ImportEpwing.css';
import SecondaryScreen from './SecondaryScreen.js';
import SystemBrowserLink from './SystemBrowserLink.js';
import Button from './Button.js';
import { importEpwing } from '../dictionary';
const { ipcRenderer } = window.require('electron'); // use... | Component that imports an EPWING dictionary into a new panel. |
import React from 'react';
import { List, ListItem } from 'material-ui/List';
import Paper from 'material-ui/Paper';
import QuestionAnswer from 'material-ui/svg-icons/action/question-answer';
import PropTypes from 'prop-types';
/**
* @description PropTypes for QuestionsList
* @type {{questions}}
*/
const propTypes ... | XML for a sequence of missing missing questions |
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { Router, browserHistory } from 'react-router';
import promise from 'redux-promise';
import reducers from './reducers';
import routes from './routes';
const ... | Imports a single node in the DOM. |
import React from 'react'
import { Button, Header, Icon, Modal } from 'semantic-ui-react'
import CharacterCardForm from './CharacterCardForm'
const CharacterCardEdit = ({ open, characters, selectedCharacterCard, updateSelectedCharacterCard, handleCreateComplete, handleEditCancel }) => {
if (selectedCharacterCard =... | Imports a single |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import Rea... | The base class for a single user - level lease. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSpellcheck = (props) => (
<SvgIcon {...props}>
<path d="M12.45 16h2.09L9.43 3H7.57L2.46 16h2.09l1.12-3h5.64l1.14 3zm-6.02-5L8.5 5.48 10.57 11H6.43zm15.16.59l-8.09 8.09L9.83 16l-1.41 1.41 5.09 5.09L23 13l-... | A component that exports a single action spellcheck. |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M7.59 5.41c-.78-.78-.78-2.05 0-2.83.78-.78 2.05-.78 2.83 0 .78.78.78 2.05 0 2.83-.79.79-2.05.79-2.83 0zM6 16V7H4v9c0 2.76 2.24 5 5 5h6v-2H9c-1.66 0-3-1.34-3-3zm14 4.07L14.93 15H11.5v-3.68c1.4 1.15 ... | A simple function to create a series of icons for a single . |
import React from 'react'
import PropTypes from 'prop-types'
import styles from './completed.less'
import classnames from 'classnames'
import { color } from '../../../utils'
import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts'
function Completed ({ data }) {
r... | Generate a single complete sequence. |
import React from 'react'
import {CardText} from 'material-ui/Card'
import prettyBytes from 'pretty-bytes'
import prettyMs from 'pretty-ms'
const RequestStats = ({ metadata = {} }) => {
return <CardText>
<div>Response time: {prettyMs(metadata.responseTime || 0)}</div>
<div>Response size: {prettyBytes(metadat... | export default request stats for |
import { Button, ButtonGroup } from '@rocket.chat/fuselage';
import React from 'react';
import { useTranslation } from '../../contexts/TranslationContext';
export function Pager({ disabled, onBackClick, isContinueEnabled = true }) {
const t = useTranslation();
return <ButtonGroup align='end'>
{onBackClick ? <But... | Renders a pager of a single |
import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, FormattedMessage } from 'react-intl';
import Button from '../../../components/button';
@injectIntl
export default class ConfirmationModal extends React.PureComponent {
static propTypes = {
message: PropTypes.node.isRequired,
... | A modal component that shows a confirmation dialog. |
import React from 'react';
const Home = (props) => {
return (
<div>
<h1 className="text-center">Feedr</h1>
<p className="text-center">Your offline rss reader</p>
<div className="jumbotron">
{props.children}
</div>
</div>
);
};
export default Home;
| The default module that exports a object. |
import React from 'react';
import SPELLS from 'common/SPELLS';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER';
import Events from 'parser/core/Events';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import SpellLink... | The Demonic class is used to create a single object that represents |
import React from 'react';
import TextField from 'material-ui/TextField';
const SignupForm = () => (
<div>
<TextField
hintText="Name"
id="nameField"
/><br />
<TextField
hintText="Email"
errorText="This field is required."
id="emailField"
type="email"
/><br />
<... | The default signupForm class |
// TODO: This module should be ElementChildren, and should use named exports.
import React from 'react';
/**
* Iterates through children that are typically specified as `props.children`,
* but only maps over children that are "valid components".
*
* The mapFunction provided index will be normalised to the compone... | This function is exported to provide a function that returns the list of children that are valid components. |
import React from 'react';
import Snackbar from 'material-ui/Snackbar';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
export default class SnackbarExampleSimple extends React.Component {
constructor(props) {
super(props);
this.state = {
autoHideDur... | Example of how to show a Snackbar in the calendar. |
import React from 'react'
import PropTypes from 'prop-types'
import Routes from './routing/Routes'
import UserDataContainer from 'client/containers/UserDataContainer'
/*
* The Provider component provides
* the React store to all its child
* components so we don't need to pass
* it explicitly to all the components.... | Component that renders a single child in a component s store. |
import React from 'react';
export default React.createElement; | Export default React element |
import React from 'react';
const DeletePermissionMsg = () => {
return (
<div className="alert alert-info">
<i className="fa fa-info-circle fa-lg" aria-hidden="true" /> You cannot delete this
institution until its classes are deleted
</div>
);
};
export { DeletePermissionMsg };
| Exports a function to delete a specific permission message. |
import React from 'react';
import moment from 'moment';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
var DateColumn = React.createClass({
displayName: 'DateColumn',
propTypes: {
col: React.PropTypes.object,
... | A component that displays a date column with a date field. |
import React from 'react';
import { colors as Colors } from 'material-ui/styles/';
import SocketWrapper from './SocketWrapper';
export default React.createClass({
displayName: 'ChannelSocket',
getDefaultProps() {
return {
tooltip: 'Create a Channel Socket'
};
},
getStyles() {
return {
... | Create a new ChannelSocket class with a series of props |
// TODO: cleanup
/* eslint-disable react/no-string-refs */
/* global _ */
/* global _jed */
import React from 'react'
import createReactClass from 'create-react-class'
import PropTypes from 'prop-types'
import Autocomplete from '@eins78/react-autocomplete'
export const HandoverAutocomplete = createReactClass({
pro... | Displays a menu with a single item in the tree. |
import React from 'react'
import { Button, Checkbox, Form } from 'semantic-ui-react'
const FormExampleForm = () => (
<Form>
<Form.Field>
<label>First Name</label>
<input placeholder='First Name' />
</Form.Field>
<Form.Field>
<label>Last Name</label>
<input placeholder='Last Name' ... | Example of how to display a sequence of words in a form. |
import React from 'react'
export default class FacebookSvg extends React.Component {
render () {
return (
<svg width="40px" height="40px" viewBox="0 0 40 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink">
<title>facebook-logo-button</title>
<... | The Facebook Svg component. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularNoSim = (props) => (
<SvgIcon {...props}>
<path d="M18.99 5c0-1.1-.89-2-1.99-2h-7L7.66 5.34 19 16.68 18.99 5zM3.65 3.88L2.38 5.15 5 7.77V19c0 1.1.9 2 2 2h10.01c.35 0 .67-.1.96-.26l1.88 1.88 ... | Devolve a device - signal cellular component. |
/*globals COURSES:true */
import React from 'react'
import { Link } from 'react-router'
class AnnouncementsSidebar extends React.Component {
render() {
let { announcements } = COURSES[this.props.params.courseId]
return (
<div>
<h3>Sidebar Assignments</h3>
<ul>
{announcements.... | A component that renders a single secondary secondary announcement. |
/* global window */
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import rafThrottle from 'raf-throttle';
import getScrollTop from '../utils/getScrollTop';
const ZINDEX = 1;
export const Container = styled.header`
height: ${props => props.theme.height.header... | A component that displays a header on top of a container with height 0. |
import React, { Component } from 'react';
import { Bar } from '.';
class App extends Component {
render() {
return (
<div className="app">
<Bar />
<div>{this.props.children}</div>
</div>
);
}
}
export default App;
| The base class for the missing - children components. |
import _ from 'lodash';
import React from 'react';
import Modal from 'react-modal';
import pureRender from 'pure-render-decorator';
import { Styles, TextField, FlatButton } from 'material-ui';
import AddContactStore from 'stores/AddContactStore';
import AddContactActionCreators from 'actions/AddContactActionCreators'... | A component that displays a modal window with a modal window with a message and a phone number. |
import React from 'react';
import { CardBuilder } from 'cf-builder-card';
import { Table, TableBody, TableRow, TableCell } from 'cf-component-table';
import { Button } from 'cf-component-button';
const EXAMPLE_CARD = 'EXAMPLE_CARD';
const MyButton = (
<Button type="default" onClick={() => console.log('Button clicke... | export a builder - card - related module |
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
TextInput,
View,
ListView,
NavigatorIOS,
Image,
TouchableHighlight
} from 'react-native';
import UserDogs from './UserDogs';
const styles = require('./style.js');
// URL to the API to get a specific user if you append... | Component that displays a user s information. |
import PropTypes from 'prop-types';
import React from 'react';
import classnames from 'classnames';
import Icon from '../Icon';
export const ListItem = ({ children, className, title, kind, ...other }) => {
const classNames = classnames('wfp--list__element', className, {
'wfp--list-item--checkmark': kind === 'che... | Create a list - item with a single child with a specific kind. |
import 'react-hot-loader/patch'
import React from 'react'
import { render } from 'react-dom'
import './main.less'
import App from './App'
import { AppContainer } from 'react-hot-loader'
const renderApp = (AppComponent) => {
render(<AppContainer><AppComponent /></AppContainer>, document.getElementById('app'))
}
ren... | Imports a single node in the DOM. |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M7 17v5h10v-5H7z" /><path fillOpacity=".3" d="M17 4h-3V2h-4v2H7v13h10V4z" /></React.Fragment>
, 'Battery20Sharp');
| Create a series of icons for a single node. |
import React from 'react';
import Document, { Head, Main, NextScript } from 'next/document';
import flush from 'styled-jsx/server';
import { COLORS } from '../lib/styles';
export default class MyDocument extends Document {
static getInitialProps({ renderPage }) {
const {
html, head, errorHtml, chunks
... | The base class for a single node in a hierarchy. |
import React from 'react';
import PropTypes from 'prop-types';
import HomelessnessCounts from './HomelessnessCounts';
import HomelessnessDemographics from './HomelessnessDemographics';
import HomelessnessEnrollment from './HomelessnessEnrollment';
import PageHeader from '../../shared/PageHeader';
import ButtonGroup fro... | The default implementation of the Homelessness feature. |
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import FormGroup from 'Components/Form/FormGroup';
import FormInputHelpText from 'Components/Form/FormInputHelpText';
import FormLabel from 'Components/Form/FormLabel';
import ReleaseStatusItem from './ReleaseStatusItem';
import styles from '... | Renders a single sequence of conditions that can be met in a sequence of related components. |
import React from 'react';
class Stairs extends React.Component {
render() {
return (
<div>
<h2>The Stairs</h2>
<p>This will be good!!</p>
</div>
);
}
}
export default Stairs;
| The Stairs component. |
import React, { Component } from 'react';
import * as Animated from 'animated/lib/targets/react-dom';
const AnimatedWrapper = WrappedComponent =>
class AnimatedWrapper extends Component {
constructor(props) {
super(props);
this.state = {
animate: new Animated.Value(0)
};
}
compo... | A component that wraps a component in a page and displays it in a hidden hidden area. |
import React from 'react';
import classNames from 'classnames';
import theme from '../theme/static';
import styles from './Card.css';
export default function Card({ children }) {
return (
<div className={classNames(styles.card, styles[theme])}>{children}</div>
);
}
| export default card |
import { Box, Margins } from '@rocket.chat/fuselage';
import React from 'react';
function Header({ children }) {
return (
<Box rcx-message__header display='flex' flexGrow={0} flexShrink={1} withTruncatedText>
<Box
mi='neg-x2'
display='flex'
flexDirection='row'
alignItems='baseline'
withTrunca... | export default Header |
import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './containers/app';
import ActivitiesList from './containers/ActivitiesList/activities_index';
import ActivitiesNew from './containers/ActivitiesNew/activities_new';
import FindRep from './containers/FindRep/findRepresentative... | export default route |
import React from 'react';
import App from './Components/App';
import { Route } from 'react-router';
import Counter from './Components/Counter/Counter';
export default <Route path="/" component={App}>
<Route path="counter" component={Counter} />
</Route>;
| default implementation of |
import React from 'react';
import _ from 'lodash';
// import Immutable from 'immutable';
class AbstractSystemComponent extends React.Component {
constructor(props, context) {
super(props, context);
this.id = Math.floor((1 + Math.random()) * 10000000000).toString(16);
this._propsChanged = t... | A component that can be used to create a batch of children. |
import React from 'react';
import { Route } from 'react-router';
import AppError from './AppError';
const ServerError = () => (
<AppError>
<center>
<h2 className="title">The Proverbial Internal Server Error :/</h2>
<div className="container-fluid">
<p>The minions broke something :(</p>
... | The default error handler for missing modules. |
import React from 'react';
import { formatNumber } from 'common/format';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SPECS from 'game/SPECS';
import Analyzer from 'parser/core/Analyzer';
class SharpenedBlades extends Analyzer {
constructor(...args) {
super(...args);
... | Class for handling the sharpened blades. |
import _transformLib from 'transform-lib';
const _components = {
Foo: {
displayName: 'Foo'
}
};
const _transformLib2 = _transformLib({
filename: '%FIXTURE_PATH%',
components: _components,
locals: [],
imports: []
});
function _wrapComponent(id) {
return function (Component) {
return _transformLib... | Private functions - Component that transforms a component into a component that can be rendered by a component. |
import React from 'react';
import Button from './Button';
import FormGroup from './FormGroup';
import InputBase from './InputBase';
import childrenValueValidation from './utils/childrenValueInputValidation';
class ButtonInput extends InputBase {
renderFormGroup(children) {
let {bsStyle, value, ...other} = this.p... | A component that can be used to render a form group and a button. |
/*
App
*/
import React from 'react';
import Rebase from 're-base';
const base = Rebase.createClass('https://catch-of-the-day-lulz.firebaseio.com/');
import Catalyst from 'react-catalyst';
import sampleFishes from '../sample-fishes';
import Inventory from './Inventory';
import Order from './Order';
import Head... | Component that creates a sequence of components that can be placed on a base object. |
import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement } from './RouteUtils';
import { formatPattern } from './URLUtils';
import { falsy } from './PropTypes';
var { string, object } = React.PropTypes;
export var Redirect = React.createClass({
statics: {
createRouteF... | Create a redirect class that can be used to redirect to a specific route. |
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
View
} from 'react-native';
const instructions = Platform.select({
ios: 'Press Cmd+R to reload,\n' +
'Cmd+D or shake for dev menu',
and... | Create a base class for a single missing - node node |
import React, { Component } from 'react';
import { StackNavigator } from 'react-navigation';
import { useAPIWeaver } from './tools/API/API.js';
import {
initNetEventListener,
} from './tools/API/NetManager.js';
import {
registerNavigator,
unRegisterNavigator,
InitailRoute,
getRouteMap,
} from './Route';
ini... | React. Component. prototype. _init = > App |
import _ from 'underscore';
import Field from '../Field';
import React from 'react';
import tinymce from 'tinymce';
import { FormInput } from 'elemental';
/**
* TODO:
* - Remove dependency on underscore
*/
var lastId = 0;
function getId() {
return 'keystone-html-' + lastId++;
}
module.exports = Field.create({
... | Private function to create a hidden field with a hidden field. |
import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdSlideShow(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M20 16v16l10-8-10-8zM38 6c2.21 0 4 1.79 4 4v28c0 2.21-1.79 4-4 4H10c-2.21 0-4-1.79-4-4V10c0-2.21 1.79-4 4-4h28zm0 32V10H10v28h28z" />
</IconBas... | MdSlideShow - Shows a menu with a specific layout. |
import io from 'socket.io-client';
import React from 'react';
import ReactDOM from 'react-dom';
import {prevPage, nextPage, opened} from './app.css';
const Book = window.comBook.default;
const socket = io(__dirname);
const book = {
author: {
full: 'S. O. Meone',
first: 's',
last: 'meone',
},
title:... | The home - bound - hero component. |
import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatNumber, formatPercentage } from 'common/format';
import { STATISTIC_ORDER } from 'Main/StatisticBox';
import St... | Implementation of the DimensionalRift class. |
import React from 'react'
import Head from 'next/head'
import Link from 'next/link'
import NProgress from 'nprogress'
import Router from 'next/router'
Router.onRouteChangeStart = (url) => {
console.log(`Loading: ${url}`)
NProgress.start()
}
Router.onRouteChangeComplete = () => NProgress.done()
Router.onRouteChange... | Imports a single from a URL. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPublic = (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 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9... | A component that exports a component with a component that displays a social public icon. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ToggleStar = (props) => (
<SvgIcon {...props}>
<path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/>
</SvgIcon>
);
ToggleStar = pure(ToggleStar);
ToggleStar.disp... | A component that renders a single node in a group of nodes that can be toggled. |
import React from 'react';
export default class DummyComponent extends React.Component {
render() {
throw 'this test has no visual component';
}
}
| A dummy component that is rendered when the test is not rendered. |
import React from 'react';
import RefreshIndicator from 'material-ui/RefreshIndicator';
const style = {
container: {
position: 'relative',
marginTop: 30,
},
refresh: {
display: 'inline-block',
position: 'relative',
},
};
const Loading = () => (
<div style={style.con... | export default loading function |
// @flow
import React from 'react';
import Constants from '../Constants';
export default (): React.Element => (
<object data={Constants.Image.AIRHORN_COUNTER} />
);
| The default export function for missing a missing element. |
import React from 'react'
import {Link} from 'react-router'
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
const styles = {
button: {
marginRight: 12,
}, contente: {
width: '100%',
marginLeft: 200
},
container: {
displ... | Kayıt Ol inkci komponente |
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 'todomvc-app-css/index.css';
import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import configureStore from './store/configureStore';
import Root from './containers/Root';
const store = configureStore();
render(
<AppContainer>
<Root
store=... | Imports the given node and renders it as a hidden hidden element. |
import React from 'react';
import H3 from 'components/H3';
import RaisedButton from 'material-ui/RaisedButton';
import CenteredSection from '../../containers/HomePage/CenteredSection';
import { graphql } from 'react-apollo';
import gql from 'graphql-tag';
import {
Table,
TableBody,
TableHeader,
TableHeaderColum... | The base class for all training - list components. |
/* eslint-disable quotes */
import React from 'react'
// const timeline = [{
// time: 0,
// fact: ''
// }]
//
export default function Voyeur() {
return (
<div className="track-info-page">
<div className="track-text voyeur" />
</div>
)
}
| Voyeur is a voyeur that displays a single missing missing element in a dropdown. |
import React from 'react'
import Search from './search'
function Navigation(props) {
function renderMenu() {
return Object.keys(props.docs).map(function(sectionKey, index) {
return (
<li
key={index}
className={`docs-navigation-item${props.sectionName === sectionKey ? ' active' :... | Navigation - navigation - menu |
import React, { Component } from 'react';
import { Button, Radio, Row, Col } from 'antd';
export default class Header extends Component {
render() {
const padding = '6px';
return (
<div className="main-footer footer">
<Row style={{padding: `${padding} 0`}}>
<Col span={8}>
... | A header for a sequence of states that can be used to show a single critical sequence. |
import styles from './../styles/global.styl';
import React from 'react';
import CSSModules from 'react-css-modules';
@CSSModules(styles)
export default class NotFound extends React.Component {
render() {
return (
<div styleName="wrapper">
<h1>Not Found</h1>
</div>
);
}
}
| The default component that is not found in the DOM. |
/**
*
* AboutPageComponents
*
*/
import React from 'react';
import styled from 'styled-components';
import { FormattedMessage } from 'react-intl';
import { PlatformsSection } from 'components/PlatformsPageComponents';
import VisibilitySensor from 'react-visibility-sensor';
import messages from './messages';
import Ma... | Component which exports a single missing - node error message in a modal dialog. |
import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import CustomPropTypes from './utils/CustomPropTypes';
const ButtonGroup = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
vertical: React.PropTypes.bool,
justified: React.PropTypes.b... | The button group is a button group that is rendered when the button is rendered. |
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { StyleSheet, css } from 'aphrodite/no-important';
import { createStore, combineReducers } from 'redux';
import { createStructuredSelector } from 'reselect';
import { connect, Provider } from 'react-redux';
import {
Binder,
keysInit,... | The base component that is used to render a single critical block of a keyboard. |
import React from 'react'
import { Form, FormGroup, FormControl, ControlLabel } from 'react-bootstrap'
import InvoiceAddress from './invoice-address.rt'
import extensibleComponent from '../extensible-component'
import FormLayoutPluginRenderer from '../form-layout-plugin-renderer'
const addressForm = {
Address1: (pro... | The default component for the missing - block - address - related counter - based plugin. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSpeakerNotes = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 14H6v-2h2v2zm0-3H6V9h2v2zm0-3H6V6h2v2zm7 6h-5v-2h5v2zm3-3h-8V9h8v2zm0-... | A component that renders a series of action effects in a series of icons. |
import _ from 'underscore';
import classNames from 'classnames';
import React from 'react';
import { FormField, FormInput, FormRow, FormSelect, SegmentedControl } from 'elemental';
const TOGGLE_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true }
];
const MODE_OPTIONS = [
{ lab... | The base implementation of a filter that can be used to filter a number or a text field. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareScanner = (props) => (
<SvgIcon {...props}>
<path d="M19.8 10.7L4.2 5l-.7 1.9L17.6 12H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-5.5c0-.8-.5-1.6-1.2-1.8zM7 17H5v-2h2v2zm12 0H9v-2h10v2z"/>
</... | HardwareScanner - HardwareScanner |
import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { injectIntl } from 'react-intl';
import { setupListEditor, clearListSuggestions, ... | A component that displays a list of items that can be selected by a user. |
import React from 'react'
import { Rating } from 'semantic-ui-react'
const RatingExampleStar = () => (
<Rating icon='star' defaultRating={3} maxRating={4} />
)
export default RatingExampleStar
| Imports a single - element and exports it as RatingExampleStar. |
/**
* Auth Scenes
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React from 'react';
import { Scene, ActionConst } from 'react-native-router-flux';
// Consts and Libs
import { AppConfig } from '@constants/';
// Scenes
import Authenticate from '@containers/auth/Authen... | Public API for importing a single authentication component. |
import React, { Component } from 'react';
import Header from './components/HeaderComponent';
import Sidebar from './components/SidebarComponent';
import Home from './components/HomeComponent';
import TypeForm from './components/forms/TypeFormComponent';
import ClientForm from './components/forms/ClientFormComponent';
i... | Package containing React Component |
import React from 'react';
import ReactDOM from 'react-dom';
class Wrapper extends React.Component {
constructor(props) {
super(props);
}
mount() {
ReactDOM.render(<App/>, document.getElementById(('container')));
}
unmount() {
ReactDOM.unmountComponentAtNode(document.getElementById('container')... | A component that can be mounted and unmounted. |
import {
FormattedRelative,
FormattedMessage,
defineMessages,
} from 'react-intl';
import React from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import withStyles from 'isomorphic-style-loader/withStyles';
import s from './Proposal.css';
import UserThumbnail from '../UserThumbnail';
... | Renders a single single node in the hierarchy. |
'use strict';
import React from 'react';
import Router, {Link, Route, DefaultRoute, NotFoundRoute} from 'react-router';
import Home from './pages/home';
import Map from './pages/map';
import Cats from './pages/cats';
require("./styles/normalize.css");
require("./styles/skeleton.css");
require("./styles/app.css");
Re... | The main function that runs the application. |
import React from 'react';
import warning from 'warning';
export const HtmlForTagName = 'htmlFor';
export const InputTypeName = 'input';
export const a11yButtonTagsToTest = [HtmlForTagName, 'aria-labelledby', 'aria-describedby'];
/*
* Check if the children have an input node.
* If there is an input node, check that... | Check if the children input has a node with a11y tag. |
import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageFilter4 = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"/>
</SvgIcon>
);
ImageFilt... | A filter for selecting images from a series of icons. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionChangeHistory = (props) => (
<SvgIcon {...props}>
<path d="M12 7.77L18.39 18H5.61L12 7.77M12 4L2 20h20L12 4z"/>
</SvgIcon>
);
ActionChangeHistory = pure(ActionChangeHistory);
ActionChangeHistory.display... | ActionChangeHistory is a function that exports action change history for a node in a group of nodes. |
/**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-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 localforage from 'loc... | Provides a function to render a single component in a DOM. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareHeadset = (props) => (
<SvgIcon {...props}>
<path d="M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h3c1.66 0 3-1.34 3-3v-7c0-4.97-4.03-9-9-9z"/>
</SvgIcon>
... | Hardware Headset. |
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default si... | The main function for the withViewport component. |
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... | A component that renders a link |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCameraRoll = (props) => (
<SvgIcon {...props}>
<path d="M14 5c0-1.1-.9-2-2-2h-1V2c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1v1H4c-1.1 0-2 .9-2 2v15c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2h8V5h-8zm-2 13h-2v-2h2v2zm0-9h-2V7h... | A component that exports a sequence of icons that can be used to render a sequence of images. |
// @flow
import React from 'react'
import cx from 'classnames'
import type { PropsC } from '../types'
class Backdrop extends React.Component {
props: PropsC
static defaultProps = {
component: 'div',
}
static displayName = 'Dialog.Backdrop'
render() {
const { component: Component, className, ...rest... | A component that is rendered when a user clicks on a hidden block of items. |
import React from 'react'
import { connect } from 'react-redux'
import { toFreq } from 'tonal-freq'
let Keyboard = ({ dispatch, octave }) => {
return (
<ul
className="piano"
onMouseUp={() => dispatch({ type: `CLEAR_KEYS` })}
>
<li
className="white"
onMouseDown={() => dispat... | The keyboard module that handles the keyboard sequence of keyboard events. |
import React from 'react'
import { Grid, Image } from 'semantic-ui-react'
const GridExampleRelaxed = () => (
<Grid relaxed columns={4}>
<Grid.Column>
<Image src='http://semantic-ui.com/images/wireframe/image.png' />
</Grid.Column>
<Grid.Column>
<Image src='http://semantic-ui.com/images/wirefr... | Imports a sequence of non - empty |
import React from 'react';
import Pronouns from '../pronouns';
import TensesList from '../tenses';
import Verbs from '../verbs';
import Form from '../containers/form'
import Counts from '../containers/counts'
import Footer from '../containers/footer'
class App extends React.Component {
constructor(props) {
... | Component class for a sequence of action - related components. |
import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import iconCode from '!raw!material-ui/FontIcon/FontIcon';
import iconReadmeText... | The default tag content is a page that renders the font icon. |
import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorVerticalAlignTop = (props) => (
<SvgIcon {...props}>
<path d="M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"/>
</SvgIcon>
);
EditorVerticalAlignTop = pure(EditorVerticalAlignTop);
EditorVerticalAlignTop.dis... | A component that |
import React from 'react'
import './Affiliation.css'
export default () =>
<section id="affiliation">
<a href="https://openfisca.fr?utm_source=affiliation&utm_campaign=widget_embauche" target="_blank">
<img alt="OpenFisca" src="https://www.openfisca.fr/hotlinks/logo-openfisca.svg" />
</a>
<a href="https://b... | Descripion d ajout d un affiliation dans la modernisation du simulateur d e mise l action publique |
import React, { Component } from 'react';
class Clock extends Component {
constructor(props) {
super(props);
var now = new Date();
this.state = {
now: now,
partOfDay: this.getGreeting(now)
};
}
componentDidMount() {
this.timerID = setInterv... | A class that implements a clock in the browser. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.