code
stringlengths
26
5k
intent
stringlengths
3
2.56k
import React from 'react'; import Icon from 'react-icon-base'; function IconUser(props) { return ( <Icon viewBox="0 0 24 24" {...props}> <g fill="currentColor"> <path d="M4.57694084,15.0573642 C3.09845147,15.2679649 2,16.5339712 2,18.0273845 L2,20.5 C2,21.3284271 2.67157288,22 3.5,22 L20.5,22 C21.3...
A user can create a sequence of components that are not part of a component.
import React from 'react' import { Icon } from 'antd' import styles from './index.less' const Error = () => (<div className="content-inner"> <div className={styles.error}> <Icon type="frown-o" /> <h1>404 Not Found</h1> </div> </div>) export default Error
The default error class for missing or unknown
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import refreshIndicatorReadmeText from './README'; import RefreshIndicatorExampl...
Imports a single node with a refresh indicator.
'use strict'; import React from 'react'; import Router from 'react-router'; import ReactDOM from 'react-dom'; import routes from './config/routes'; ReactDOM.render(( <Router> {routes} </Router> ), document.getElementById('app'));
Imports a single node in the app DOM.
import React from 'react' import { NavLink } from 'react-router-dom' import propTypes from 'prop-types' export default function PagerButtonLast({ base, category, page }) { return ( <NavLink to={`/${base}/${category}/${page}`} activeClassName="active" activeStyle={{ color: '#be3131' }} > ...
The last page button for a link that links to the last page of a category.
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ContentReplyAll = (props) => ( <SvgIcon {...props}> <path d="M7 8V5l-7 7 7 7v-3l-4-4 4-4zm6 1V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"/> </SvgIcon> ); ContentReplyAll.displayName = 'ContentReplyAll'; ContentReplyAll.muiName = 'Svg...
ContentReplyAll is a default content reply all icon
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Animate from 'grommet/components/Animate'; import Box from 'grommet/components/Box'; import Button from 'grommet/components/Button'; import Paragraph from 'grommet/components/Paragraph'; import Example...
Demonstrates how to render a single Sequence.
import React from 'react'; import { Route } from 'react-router'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { animateScroll } from 'react-scroll'; import IndexContainer from './containers/index'; import SharedContainer from './containers/shared'; import CategoryContainer fro...
The default implementation of a switch containers component.
import 'babel/polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import FastClick from 'fastclick'; import Dispatcher from './core/Dispatcher'; import getRoutes from './routes' import Location from './core/Location'; import ActionTypes from './common/constants/ActionTypes'; import { addEventListene...
Create a DOM and CSS container for the application
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCallEnd = (props) => ( <SvgIcon {...props}> <path d="M12 9c-1.6 0-3.15.25-4.6.72v3.1c0 .39-.23.74-.56.9-.98.49-1.87 1.12-2.66 1.85-.18.18-.43.28-.7.28-.28 0-.53-.11-.71-.29L.29 13.08c-.18-.17-.29-....
A component that
import React from 'react'; import { connect } from 'react-redux'; import { searchInput } from '../actions'; class SearchInput extends React.Component { constructor(props){ super(props); this.state = { search: '' } } handleInputChange(event){ const { model, attr, parentId } = this.props; const targe...
The base component for selecting a key in a model.
import React from 'react'; import FiltersMenuView from '../../view/filters/main'; // import RandomButtonContainer from './random-button'; import FiltersContainer from './filters/main-filter'; const RightSidebarContainer = () => <FiltersMenuView> {/* <RandomButtonContainer />*/} <FiltersContainer ...
Imports a single container that can be used to show a right - side menu.
import React from 'react'; import PropTypes from 'prop-types'; import Icon from 'common/Icon'; import ItemLink from 'common/ItemLink'; import ITEM_QUALITIES from 'game/ITEM_QUALITIES'; const EPIC_ITEMS_ILVL = 340; class Gear extends React.PureComponent { static propTypes = { gear: PropTypes.array.isRequired, ...
A component that renders a single unhandled item in a gear.
import React from 'react'; import { formatPercentage } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import SPELLS from 'common/SPELLS'; import Analyzer from 'parser/core/Analyzer'; import GuardianOfElune from './GuardianO...
The FrenziedRegenGoEProcs class
import React from 'react'; import { storiesOf } from '@storybook/react'; import withReadme from 'storybook-readme/with-readme'; import readme from '../readme.md'; import BasicUsage from './BasicUsage'; storiesOf('Highlighter', module) .addDecorator(withReadme(readme)) .add('Basic Usage', () => <BasicUsage />);
Imports a single node.
import React from 'react'; import { Route } from 'react-router'; import PrivateRoute from '../../../routes/PrivateRoute'; import EditKeywordLayout from '../layouts/EditKeywordLayout'; import KeywordPage from '../components/KeywordPage'; import KeywordDetailContainer from '../containers/KeywordDetailContainer'; const...
export a private route
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionEvent = (props) => ( <SvgIcon {...props}> <path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"/> </SvgIcon> ...
A component that renders a series of icons that can be used to show a series of icons.
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; ReactDOM.render( <App/>, document.body.appendChild(document.createElement('div')) );
Imports a single element into the body.
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __reactComponentEl from '../runtime-helpers/react-component-el.js'; import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js'; import __reactComponentSlots from '../runtime-...
A component that wraps a block with a div with a style and a slot to show the block.
import React from 'react' import { IndexLink, Link } from 'react-router' // import classes from './Start.scss' import { FormGroup, FormControl, ControlLabel, ButtonToolbar, Button } from 'react-bootstrap'; import { connect } from 'react-redux'; import { addUser } from '../../redux/modules/UserActions'; import { bindAct...
The main function that creates a component that can be used to handle a user name.
import React from 'react'; import { FormattedMessage } from 'react-intl'; import A from './A'; import Img from './Img'; import NavBar from './NavBar'; import HeaderLink from './HeaderLink'; import Banner from './banner.jpg'; import messages from './messages'; class Header extends React.Component { // eslint-disable-l...
export default Header
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStayCurrentLandscape = (props) => ( <SvgIcon {...props}> <path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/> </SvgIcon> ); Communicat...
A component that renders a communication story current landscape icon.
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterTiltShift = (props) => ( <SvgIcon {...props}> <path d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69c1.11-.86 2.44-1.44 3.9-1.62zm7.32.19C16.84 3.05 15.01 2.25 13 2.05v2.02c1.46.18 2.79.76 3.9 1.62...
A component that returns a sequence of icons that can be applied to a component.
import React, { Component } from 'react'; export default class DateLabel extends Component { toDate(timestamp) { return new Date(timestamp * 1000).toISOString().substring(0,10); } render() { return ( this.props.dateTaken ? ( <label id="imageDate" style={{ fontSize: '20px', float: 'right' }...
A component that renders a date label when the date is taken.
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
This function returns a string containing the HTML code of a single non - empty object.
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 { Route, IndexRoute } from 'react-router'; import App from './App'; import LoginPage from '../../pages/login/page'; import HomePage from '../../pages/home/page'; import TopicPage from '../../pages/topic/page'; import BookListPage from '../../pages/booklist/page'; export default ( <R...
This module is exported to allow for custom components that don t have a route.
import { t } from '@lingui/macro'; import { formatPercentage } from 'common/format'; import SPELLS from 'common/SPELLS'; import { SpellLink } from 'interface'; import React from 'react'; import EarlyDotRefreshesCore from './EarlyDotRefreshes'; const MINOR_THRESHOLD = 0.9; const AVERAGE_THRESHOLD = 0.8; const MAJOR_TH...
Package that implements the EarlyDotRefresh interface.
import React, { Component } from 'react'; import { Table, message, Button } from 'antd' import { Link } from 'react-router' import { info, list } from 'services/organize' import SearchInput from '../../components/SearchInput' class OrganizeList extends Component { constructor(props) { super(props) ...
Component that will show a list of records in a table.
import React, { Component } from 'react'; import Header from '../containers/Header'; export default class App extends Component { render() { return ( <div> <Header /> {this.props.children} </div> ); } }
The base class for all components that are not part of a component s children.
/* eslint-disable */ import React from 'react'; import Button from './Button'; import { storiesOf } from '@storybook/react'; storiesOf('Button', module) .add('with story parameters', () => <Button label="The Button" />, { header: false, inline: true, }) .add('foo', () => <Button label="Foo" />, { ba...
Imports a bunch of components from a module.
import React from 'react'; import 'whatwg-fetch'; import d3 from './d3'; import moment from 'moment'; import * as _ from 'lodash'; export default class Chart extends React.Component { constructor() { super(); this.state = { data: [], maxPoints : 1000, pollPeriod ...
Create a Chart for a series of data.
// (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 single missing - missing - missing icon in the dropdown.
import React from 'react' import _ from 'lodash' // import NavigationStore from '../stores/NavigationStore' export default class BigBreadcrumbs extends React.Component { // mixins: [Reflux.listenTo(NavigationStore, 'onNavigationChange')], constructor(props) { super(props); this.state = { items: th...
A component that shows a menu item with a link to the navigation store.
import React from 'react'; import getRelativeTimeAgo from '../../../utils/getRelativeTimeAgo'; import styles from './SessionInfo.css'; const SessionInfo = ({ name, status, lastSaved }) => ( <div className={styles.session}> <div className={styles.session__name}>{name}</div> <div className={ last...
export a session info
import React, { Component } from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import { reduxForm } from 'redux-form'; import { getCompany, updateCompany } from '../../actions/companies'; class CompaniesEdit extends Component { constructor(props) { super(props); this.s...
Diese un componento CompaniesEdit a partir de un nombre.
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionVerifiedUser = (props) => ( <SvgIcon {...props}> <path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z"/> </SvgIcon> ); ActionVerif...
A component that exports a sequence of action - based icons.
import React from 'react'; import {Route, Router, IndexRoute, hashHistory} from 'react-router'; import MainContainer from '../containers/MainContainer'; import HomeContainer from '../containers/HomeContainer'; export default ( <Router history={hashHistory}> <Route path="/" component={ MainContainer }> ...
default module that exports a sequence of Negotiate routes.
import React from 'react'; import PropTypes from 'prop-types'; import { ActivityIndicator, View } from 'react-native'; const ScreenActivityIndicator = (props) => { return ( <View style={{flex: 1, justifyContent: 'center', alignItems: 'center'}}> <ActivityIndicator animating color={props.col...
export default screen activity indicator
import React from 'react'; import PropTypes from 'prop-types'; const Image = (props) => { const { avatar, className, full, image, style } = props; const classes = ['image']; if (avatar) { classes.push('image--avatar'); } if (full) { classes.push('image--full'); } if (className) { classes.push...
Create a new Image component with optional optional image.
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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 * * http://www.apache.org/li...
Component which is a component that is rendered by a component that has a scope validation.
import React, { Component } from 'react'; import { Text, View } from 'react-native'; class About extends Component { static navigationOptions = { title: 'About', }; render() { return ( <View> <Text> This is an awesome app! Nothing to watch here... Yet. </Text> ...
A component that displays a menu with a link to the About page.
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 React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionSettingsEthernet = (props) => ( <SvgIcon {...props}> <path d="M7.77 6.76L6.23 5.48.82 12l5.41 6.52 1.54-1.28L3.42 12l4.35-5.24zM7 13h2v-2H7v2zm10-2h-2v2h2v-2zm-6 2h2v-2h-2v2zm6.77-7.52l-1.54 1.28L20.58 12l-4.35 5.24 1.54 1.28L23.18 12l-5...
A component that exports action settings for a specific node.
import React from 'react'; import PropTypes from 'prop-types'; import detectPassiveEvents from 'detect-passive-events'; import { scrollTop } from '../scroll'; export default class Column extends React.PureComponent { static propTypes = { children: PropTypes.node, }; scrollTop () { const scrollable = th...
A column that can be rendered on a node.
import React from 'react' import ReactDOM from 'react-dom' import DriftApp from './app.js' ReactDOM.render(<DriftApp />, document.getElementById('app'))
Imports a React component and renders it in a DriftApp.
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleRadioButtonChecked = (props) => ( <SvgIcon {...props}> <path d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3...
A component that renders a component that can be checked by a radio button.
/** * 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 - defined sequence of users.
import React from 'react'; import ClassGenerator from '../mixins/classGenerator'; let defaultClassName = 'ui table'; const Table = React.createClass({ mixins: [ClassGenerator], render: function () { let {className, ...other} = this.props; return ( <table {...other} className={this.getClassName(d...
The Table class that is used to render a single node in a table.
import React from 'react'; import cx from 'classnames'; import { symbol, symbolSquare } from 'd3-shape'; import Glyph from './Glyph'; import additionalProps from '../util/additionalProps'; export default function GlyphSquare({ children, className, top, left, size, ...restProps }) { const path = symbol();...
Create a GlyphSquare with a
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceAccessAlarm = (props) => ( <SvgIcon {...props}> <path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-...
A component that exports a device - access alarm.
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSentimentVerySatisfied = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.47 2 12s4.47 10 9.99 10S22 17.53 22 12 17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm1...
A component that exports a sequence of component types that are compatible with SocialSentimentVerySatisfied.
/* eslint react/no-multi-comp:0, no-console:0 */ import '../assets/index.less'; import React from 'react'; import moment from 'moment'; import Calendar from '../src'; import DatePicker from '../src/Picker'; import zhCN from '../src/locale/zh_CN'; import enUS from '../src/locale/en_US'; import 'moment/locale/zh-cn'; i...
Generates a calendar calendar with a single calendar component that can be used to render a calendar calendar.
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'utils/styled-components'; import WorkSection from '../WorkSection'; import Tool from '../Tool'; const StyledTool = styled(Tool)` margin: 10px 20px 0 0; `; const ToolsWrapper = styled.div` display: flex; flex-wrap: wrap; `; const g...
export default functions
import React from 'react'; const Surrounder = function ({ Top, Left, Right, Bottom, children }) { let contents = { top: null, left: null, right: null, bottom: null }; if (Top) { contents.top = (<div className={ `top horizontal` }>{ Top }</div>); } if (Left) { contents.left = (<div className={ `left ...
Imports a component that contains a sequence of top left right and bottom.
import React from 'react' import Header from 'components/Header' import { Link } from 'react-router' class App extends React.Component { render() { return ( <div> <Header /> { this.props.children } </div> ) } } export default App;
import React from react - router
import React, { Component } from 'react'; class PageContainer extends Component { render () { return ( <div>{this.props.children}</div> ); } }; export default PageContainer;
A page container that is a container that contains a list of children.
import React, { Component } from 'react'; export default class SearchBar extends Component { constructor(props) { super(props); this.state = { term: '' } this.onInputChange = this.onInputChange.bind(this); } onInputChange(term) { this.setState({term}) this.props....
A component that shows a search bar that shows the term of the search.
import React, { Component } from 'react'; class PreHeader extends Component { render() { return null; } } export default PreHeader;
The pre - header component is a class that implements a pre - header view.
import React from 'react'; import PropTypes from 'prop-types'; import { View, Text } from 'react-native'; import { Icon } from 'react-native-elements'; import AppColors from '../theme/colors'; class TabIcon extends React.Component { componentName = 'TabIcon'; render() { return ( <View> <Icon name...
A component that renders a tab - icon.
import React, { Component } from 'react'; import { Provider } from 'mobx-react'; import { initProductStore } from '../store/product'; import { SingleProduct } from '../components'; class Product extends Component { static async getInitialProps(context) { const isServer = !!context.req; const store = initProd...
The base class for all product components.
import React from 'react'; import classNames from 'classnames'; const Table = React.createClass({ propTypes: { striped: React.PropTypes.bool, bordered: React.PropTypes.bool, condensed: React.PropTypes.bool, hover: React.PropTypes.bool, responsive: React.PropTypes.bool }, getDefaultProps() { ...
Create a table with a series of children.
import React from 'react'; import { shape, func, number, arrayOf } from 'prop-types'; import { observer } from 'mobx-react'; import Status from './indicators'; import UserItem from './user-item'; const UserList = observer(({ users, isReloading, isLoading, ...rest }) => ( <div> {users.map( user => ( ...
Imports a single - user - order - list of users.
import React from 'react'; const ImportGeometryComponent = ({ geometry, importGeometry }) => ( <div className='import-geojson'> <p>Import Geometry from file</p> <div className='content-row'> <label className='gt-button-secondary' htmlFor="import-geojson-input" > Import Geo...
Imports a single missing feature from a GeoJSON file.
import React, { Component } from 'react'; import { View, Text, StyleSheet, TouchableOpacity } from 'react-native'; import { MenuItem } from 'react-native-componentes'; const ITENS = [ {nome: 'Criar'}, {nome: 'Atualizar'}, {nome: 'Deletar'}, ] export default class ExemploMenuItem extends Componen...
Descripcion de menu de menu de un componente
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentDrafts = (props) => ( <SvgIcon {...props}> <path d="M21.99 8c0-.72-.37-1.35-.94-1.7L12 1 2.95 6.3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2l-.01-10zM12 13L3.74 7.84 12 3l8.26 4.84L12 13z"/>...
A component that exports a series of content drafts.
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { themr } from 'react-css-themr'; import { LINK } from '../identifiers'; import { FontIcon } from '../font_icon/FontIcon'; const Link = ({ active, children, className, count, icon, label, theme, ...others }) => {...
Link component for a node with a count of children.
import React from 'react'; export default class IdeaInput extends React.Component{ constructor(props){ super(props); this.state = { newTask: {value: ''}, } } handleChange(e){ let task = this.state.newTask task.value = e.target.value this.setState({newTask: task}) } handleSave(...
A component that displays a single new task in the journal.
import React from 'react' import PropTypes from 'prop-types' import { compose, bindActionCreators } from 'redux' import { connect } from 'react-redux' import { Form, Alert, Switch, Button, message } from 'antd' const FormItem = Form.Item const connectForm = Form.create() import { layout } from '../../../../....
Create a component that can be attached to a state s state s state s children with a unique name.
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 { Button } from 'antd'; import { actions } from 'mirrorx'; import { translate } from '../../i18n'; const CreateButton = ({ translate, model }) => ( <Button type="primary" icon="plus" onClick={() => actions.routing.push(`/${model}/create`)}> {t...
A component that creates a link to the action menu.
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboard = (props) => ( <SvgIcon {...props}> <path d="M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v...
Hardware keyboard.
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class HelloWorld extends Component { render() { return ( <View style={styles.containe...
Create a component which is not a component of a component type that
import cx from 'classnames' import PropTypes from 'prop-types' import React from 'react' import { Header, Icon } from 'shengnian-ui-react' import { updateForKeys } from 'docs/app/HOC' const headerStyle = { cursor: 'pointer', display: 'inline-flex', margin: '1em 0.5em', marginLeft: 0, } const linkStyle = { co...
Create a header with a link to a single node in a tree.
require('smoothscroll-polyfill').polyfill(); import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import configureStore from './store/configureStore'; import {Router, hashHistory} from 'react-router'; import routes from './routes'; const initialState = window.__INITIAL_S...
The main function that creates a node that can be used to render a hidden component.
import React from 'react'; import AutoComplete from 'wix-style-react/AutoComplete'; const style = { display: 'inline-block', padding: '0 5px 0', width: '200px', lineHeight: '22px' }; const options = [ {id: 0, value: 'First option'}, {id: 1, value: 'Unselectable option', unselectable: true}, {id: 2, valu...
Renders a single - node with a hidden hidden or disabled state.
/** * The signin page, it renders a page with a username and password input form. * * This is decoupled from the main app (in the "App/" folder) because we inject * lots of data into the other screens (like the lists that exist) that we don't * want to have injected here, so this is a completely separate route and...
Renders a signin page with a username and password input form.
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
create a component that wraps a component with a bootstrap class that is used to render a block of media.
import PropTypes from 'prop-types' import React from 'react' export default class ImageLoader extends React.Component { static propTypes = { src: PropTypes.string.isRequired, children: PropTypes.func.isRequired } state = { isLoading: true, image: null, error: null } componentWillMount()...
The ImageLoader class
import React from 'react'; import { ActivityIndicator, StyleSheet, Image, Text, View, ListView, TouchableOpacity } from 'react-native'; import Dimensions from 'Dimensions'; const {width, height} = Dimensions.get('window'); import globalVariables from '../globalVariables.js'; const DoneFooter = React.cre...
Imports a single object.
import React from 'react'; import Transition from 'react-overlays/lib/Transition'; import CustomPropTypes from './utils/CustomPropTypes'; import deprecationWarning from './utils/deprecationWarning'; class Fade extends React.Component { render() { let timeout = this.props.timeout || this.props.duration; retu...
A fade animation that fades out a component when it is shown or unmounted.
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconFolderShared(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconP...
IconFolderShared - Icon folder shared
import React from 'react'; import Paper from 'material-ui/Paper'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; import Divider from 'material-ui/Divider'; const style = { display: 'inline-block', margin: '16px 32px 16px 0', }; const MenuExampleDisable = () => ( <div> <Pap...
The default menu example disable function
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { ConnectedRouter } from 'react-router-redux'; import { Provider } from 'react-redux'; import App from './App'; export default class Root extends Component { render() { const { store, history } = this.props; return ( <...
The root component of a node.
import React, { Component } from 'react'; // eslint-disable-line import/first import LoginPanel from '../../components/LoginPanel/LoginPanel'; export default class LoginContainer extends Component { render(){ return ( <div><LoginPanel /></div> ); } }
The first component in a login container is the first element in a login panel.
/** * @fileOverview A component to change interval of the package * @name Time.js * @license GNU General Public License v3.0 */ import React from 'react' import PropTypes from 'prop-types' import InputRange from 'react-input-range' import { connect } from 'react-redux' import { changeTimePackage } from 'actions/pa...
A component to change the interval of the package availables
/** * 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 static function that renders a single missing - missing key sequence in the DOM.
import React, { Component } from 'react'; import { CircularProgress } from 'material-ui'; import '../styles/LoadingIndicator.css'; export default class LoadingIndicator extends Component { render() { return( <div id="twitchcast-loadingindicator"> {this.props.show ? <CircularProgress size={35} colo...
A loading indicator component that shows a circular progress indicator when the loading indicator is shown.
import React from 'react'; import Layout from './Layout'; export default class NotFound extends React.Component { render() { return <Layout> <div id="notfound"> <img src="https://cloud.githubusercontent.com/assets/3898898/23833528/2e1e198c-0782-11e7-8e13-664b39a29d4b.png" alt=""/> <div clas...
The default implementation of a missing component.
import React from 'react'; import Card from '../common/cardLogin'; import LoginForm from './loginForm'; const messages = { title: 'UN Partner Portal', }; const Login = () => ( <Card title={messages.title}> <LoginForm /> </Card> ); export default Login;
export a default login function
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let AddCircleOutline = props => <SvgIcon {...props}> <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8...
A component that renders a single missing - missing
/** * @license AGPL-3.0 * @author aAXEe (https://github.com/aAXEe) */ import viewSize from 'screen-size' import React from 'react' import { FormattedMessage } from 'react-intl' export function floatEqual (num1, num2, eps = 0.0001) { if (num1 === num2) return true return Math.abs(num1 - num2) <= eps } export func...
Check if a node is missing a reserved word.
import React from 'react'; import _ from 'lodash'; import ReplConsoleStore from '../stores/ReplConsoleStore'; import ReplDOM from '../common/ReplDOM'; import ReplConsoleMessageFilters from './ReplConsoleMessageFilters'; import ReplConsoleHook from '../common/ReplConsoleHook'; export default class ReplConsole extends R...
The default console component that displays a list of messages that can be displayed on the console.
import React from 'react' import PropTypes from 'prop-types' import { StyledField } from '@ui/components/form' import { slugify } from '@ui/common' import AlertCircleIcon from 'mdi-react/AlertCircleIcon' import CheckCircleOutlineIcon from 'mdi-react/CheckCircleOutlineIcon' /* eslint-disable */ class Field extends Reac...
A component that can be rendered in a hidden state.
import React from 'react'; import styles from './facts.css'; import family3 from '../../../../images/Family-3.jpg'; const Facts = () => ( <div className={styles.facts}> <div className={styles.factsList}> <div className={styles.factsHeading}> <h5>The Facts</h5> </div> <ul> <li cl...
The facts that are used by the fact system are generated by the fact system.
import React from 'react'; import Section from 'shared/components/section/section'; const chapterLeaders = () => ( <div> <Section title="Chapter Leaders" theme="white"> <div> <p> Operation Code is looking for volunteer Chapter Leaders to build local communities nationwide! Tell ...
Add a sequence of features that can be found in a specific language.
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionGroupWork = (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 2zM8 17.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5...
A component that renders a series of action groups that can be used to render a series of actions.
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
A dropdown toggle component that shows a dropdown menu.
import React from 'react' import Header from '../../components/Header' import './CoreLayout.scss' import '../../styles/core.scss' export const CoreLayout = ({ children }) => ( <div className='container text-center'> <Header /> <div className='core-layout__viewport'> {children} </div> </div> ) Co...
React - core - layout
/* eslint-disable react/prop-types */ import Radium from 'radium'; import React from 'react'; const styles = { root: { position: 'absolute', cursor: 'pointer', width: 0, height: 0, borderColor: 'transparent', borderStyle: 'solid', borderTopWidth: 0, transform: 'translate(50%, 50%)', ...
Default configuration for