path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
frontend/src/components/archive.js
aliasfalse/rowboat
import React, { Component } from 'react'; import { globalState } from '../state'; import SimpleMarkdown from 'simple-markdown'; import url from 'url'; import punycode from 'punycode'; import highlight from 'highlight.js'; import moment from 'moment'; /* Archive view from Tiemen */ function copy(text) { con...
src/catalog/catalog-list.js
KleeGroup/focus-showcase
//dependencies import React from 'react'; const {Component} = React; //Other component const ComponentCard = require('./component-card'); class CatalogListComponent extends Component{ constructor(props){ super(props); } _showLiveComponentHandler(comp) { return () => { this.pro...
assets/registration/components/DangerAlert.js
janta-devs/nyumbani
import React, { Component } from 'react'; const DangerAlert = (props) => { return( <div className="alert alert-danger"> <strong>Warning!</strong> Please Fill all the fields. </div> ) } export default DangerAlert;
src/index.js
nicholaswbowen/Drill-Table
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();
basic/node_modules/react-router/es6/Redirect.js
jintoppy/react-training
'use strict'; import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { formatPattern } from './PatternUtils'; import { falsy } from './PropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropT...
blueprints/view/files/__root__/views/__name__View/__name__View.js
DonHansDampf/whattoeat_website
import React from 'react' type Props = { }; export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } export default <%= pascalEntityName %>
examples/src/components/CustomComponents.js
realestate-com-au/react-select
import React from 'react'; import Select from 'react-select'; import Gravatar from 'react-gravatar'; const USERS = require('../data/users'); const GRAVATAR_SIZE = 15; const GravatarOption = React.createClass({ propTypes: { children: React.PropTypes.node, className: React.PropTypes.string, isDisabled: React.Pro...
lib/react/components/ImageUploader/index.js
bwyap/ptc-amazing-g-race
import React from 'react'; import PropTypes from 'prop-types'; import autobind from 'core-decorators/es/autobind'; import ImageCompressor from '@xkeshi/image-compressor'; import { Spinner, NonIdealState } from '@blueprintjs/core'; import '../../scss/components/_image-uploader.scss'; @autobind class ImageUploader ext...
components/JEDI/AllyshipSpaceCard.js
uclaacm/website
import Image from 'next/image'; import Link from 'next/link'; import React from 'react'; import styles from '../../styles/pages/jedi.module.scss'; // TODO: flesh out docs /** * creates an allyship space card from input parameters, using * next/image and next/link */ function AllyshipSpaceCard({ title, presenters, ...
app/containers/Jobs/index.js
dijahmac/JobWeasel-FrontEnd
/* * * Jobs * */ import React from 'react'; import Helmet from 'react-helmet'; import {Link} from 'react-router-dom'; import './style.css'; import './styleM.css'; import '../../global.css'; import LeftIcon from 'react-icons/lib/fa/chevron-left'; import RightIcon from 'react-icons/lib/fa/chevron-right'; import Na...
client/index.js
andela-jomadoye/JedDoc-Manager
import React from 'react'; import { render } from 'react-dom'; import jwtDecode from 'jwt-decode'; import { Router, browserHistory } from 'react-router'; import { Provider } from 'react-redux'; import routes from './routes'; import './styles/styles.scss'; import setAuthorizationToken from './utils/setAuthorizationToken...
src/register.js
cemiltokatli/ClearNotes
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import './assets/css/login-register.css'; import UserIcon from './assets/images/user-icon.png'; import PassIcon from './assets/images/lock-icon.png'; class Register extends Component { constructor(props) { super(props); this.form...
examples/todomvc/containers/TodoApp.js
clessg/redux
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Header from '../components/Header'; import MainSection from '../components/MainSection'; import * as TodoActions from '../actions/todos'; class TodoApp extends Component { render() { ...
src/components/ListItems.js
nikordaris/redux-form-jsonschema-reactstrap
import React, { Component } from 'react'; import { ListGroupItem, Button } from 'reactstrap'; import { get } from 'lodash'; import { templateStrings } from '../utils'; import { injectSheet } from '../Jss'; const SCHEMA_TEMPLATE = 'template'; @injectSheet({ listItem: { display: 'inline-flex', width: '100%',...
src/svg-icons/action/offline-pin.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionOfflinePin = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm5 16H7v-2h10v2zm-6.7-4L7 10.7l1.4-1.4 1.9 1.9 5.3-5.3L17 7.3 10.3 14z"/> </SvgIcon> ...
common/app/helperComponents/SlimWidthRow.js
FreeCodeCampQuito/FreeCodeCamp
import React from 'react'; import PropTypes from 'prop-types'; import { Row, Col } from 'react-bootstrap'; function SlimWidthRow({ children, ...restProps }) { return ( <Row {...restProps}> <Col md={ 6 } mdOffset={ 3 } sm={ 12 }> { children } </Col> </Row> ); } SlimWidthRow.displayName ...
app/page/Welcome.js
LiuJunb/reactNativeTest
/** * Created by Administrator on 2016/9/11 0011. */ 'use strict'; /**导包*/ import React from 'react'; import { StyleSheet, Navigator, StatusBar, BackAndroid, View, Text, Platform } from 'react-native'; /**导包:一个启动界面*/ import Splash from '../Splash'; /**导一个工具类*/ import { NaviGoBack } from '....
app/javascript/mastodon/features/notifications/components/notifications_permission_banner.js
maa123/mastodon
import React from 'react'; import Icon from 'mastodon/components/icon'; import Button from 'mastodon/components/button'; import IconButton from 'mastodon/components/icon_button'; import { requestBrowserPermission } from 'mastodon/actions/notifications'; import { changeSetting } from 'mastodon/actions/settings'; import ...
src/components/ReactPullToRefresh.js
bryaneaton13/react-pull-to-refresh
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import WebPullToRefresh from '../pull-to-refresh/wptr.1.1'; export default class ReactPullToRefresh extends Component { constructor(props) { super(props); this.state = { initialized: false }; this.handleRefresh = thi...
app/javascript/mastodon/containers/mastodon.js
blackle/mastodon
import React from 'react'; import { Provider } from 'react-redux'; import PropTypes from 'prop-types'; import configureStore from '../store/configureStore'; import { showOnboardingOnce } from '../actions/onboarding'; import { BrowserRouter, Route } from 'react-router-dom'; import { ScrollContext } from 'react-router-sc...
src/svg-icons/editor/attach-file.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorAttachFile = (props) => ( <SvgIcon {...props}> <path d="M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2...
actor-apps/app-web/src/app/components/dialog/MessagesSection.react.js
hejunbinlan/actor-platform
import React from 'react'; import _ from 'lodash'; import VisibilityStore from 'stores/VisibilityStore'; import MessageActionCreators from 'actions/MessageActionCreators'; import MessageItem from 'components/common/MessageItem.react'; let _delayed = []; let flushDelayed = () => { _.forEach(_delayed, (p) => { ...
Agenda/src/components/autenticar_cadastro.js
interlegis/agenda-evento
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { cadastroAutenticado } from '../actions'; class AutenticarCadastro extends Component { componentWillMount() { const token = this.props.params.token; this.props.cadastroAutenticado({ token }); } renderAlert(){ if...
src/index.js
esausilva/live-markdown-editor
import React from 'react'; import ReactDOM from 'react-dom'; import './styles/index.css'; import App from './components/App'; import './utils/GoogleAnalytics'; // Remove after cloning import './utils/DownloadMarkdownFile'; ReactDOM.render(<App />, document.getElementById('root'));
js/pages/iptt_report/components/report/buttons.js
mercycorps/TolaActivity
import React from 'react'; import ReactDOM from 'react-dom'; import { inject, observer } from 'mobx-react'; import { BootstrapPopoverButton } from '../../../../components/helpPopover'; @observer class PinPopover extends React.Component { NOT_SENT = 0; SENDING = 1; SENT = 2; FAILED = 3; constructor...
packages/arwes/src/Animation/sandbox.js
romelperez/prhone-ui
import React from 'react'; import Animation from './index'; const baseStyles = { display: 'block', width: '100%', height: '300px', textAlign: 'center', lineHeight: '300px', fontSize: 32, color: '#fff', transition: 'all 250ms ease-out' }; const styles = { entering: { background: '#079382' }, entere...
components/connected/composer/input/emoji/index.js
marrus-sh/mastodon-go
// <ConnectedComposerInputEmoji> // ============================= // This provides an input area for emoji, including custom emoji. // Mostly it just displays a collection of // `<ConnectedComposerInputEmojiTable>`s. // * * * * * * * // // Imports // ------- // Package imports. import classNames from 'cla...
src/components/PageRouter.js
oVirt/ovirt-web-ui
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { matchRoutes } from 'react-router-config' import { withRouter } from 'react-router-dom' import { push } from 'connected-react-router' import { RouterPropTypeShapes } from '_/propTypeShapes' import { changePage } ...
packages/veritone-widgets/src/widgets/FolderSelectionDialog/index.js
veritone/veritone-sdk
import React from 'react'; import { isEmpty } from 'lodash'; import { bool, func, string, shape, number, any } from 'prop-types'; import { connect } from 'react-redux'; import cx from 'classnames'; import { CircularProgress, Grid, Dialog, DialogTitle, DialogContent, DialogActions, Typography, Button } f...
src/routes.js
xiaobuu/react-native-redux-router-boilerplate
// Move routes here for easier routes managerment import React, { Component } from 'react'; import { connect } from 'react-redux'; import { changeTab, init, pop, push, reset, replace } from './modules/router'; import { bindActionCreators } from 'redux'; import { Route, Router, Schema, TabRoute } from './route...
src/Parser/Core/Modules/Items/Legion/TombOfSargeras/EngineOfEradication.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Wrapper from 'common/Wrapper'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import { calculatePrimaryStat } from 'common/stats'; import Analyzer from 'Parser/Core/Anal...
src/components/Register/Register.js
febobo/react-redux-start
import React from 'react' import {Link} from 'react-router' import GoogleAd from 'react-google-ad' import classes from './Register.scss' import Strength from '../Strength' import dynamicIco from '../../static/images/dynamicIco.png' import aboutIco from '../../static/images/aboutIco.png' import { Alert , Button } from '...
pages/contact.js
InnoD-WebTier/irc
import React, { Component } from 'react'; import Helmet from 'react-helmet'; import { config } from 'config'; import { Link } from 'react-router'; import { prefixLink } from 'gatsby-helpers'; import FontAwesome from 'react-fontawesome'; export default class Contact extends Component { render () { return ( ...
src/routes/login/index.js
DaveyEdwards/myiworlds
/** * 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 { graphql } from 'rel...
app/javascript/components/DatePickerPopup.js
leihs/leihs_legacy
import React from 'react' const DatePicker = window.DatePicker class DatePickerPopup extends React.Component { render() { return ( <div style={{ position: 'relative' }}> <div style={{ position: 'absolute', zIndex: '1', display: 'block' }} ...
app/components/ToggleOption/index.js
AK33M/scalable-react
/** * * ToggleOption * */ import React from 'react'; import { injectIntl, intlShape } from 'react-intl'; const ToggleOption = ({ value, message, intl }) => ( <option value={value}> {intl.formatMessage(message)} </option> ); ToggleOption.propTypes = { value: React.PropTypes.string.isRequired, message: Rea...
src/views/app/MyTestComponent.js
dilansri/smart-note-taker
import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; const MyTestComponent = ()=> ( <RaisedButton label="Default" /> ); export default MyTestComponent;
src/packages/@ncigdc/components/Aggregations/RangeFacet.js
NCI-GDC/portal-ui
import React from 'react'; import { compose, lifecycle, mapProps, pure, withState, } from 'recompose'; import { isEqual } from 'lodash'; import styled from '@ncigdc/theme/styled'; import withRouter from '@ncigdc/utils/withRouter'; import { parseFilterParam } from '@ncigdc/utils/uri'; import Input from '@ncig...
src/internal/AppCanvas.js
rscnt/material-ui
import React from 'react'; class AppCanvas extends React.Component { static propTypes = { children: React.PropTypes.node, }; static contextTypes = { muiTheme: React.PropTypes.object.isRequired, }; render() { const { baseTheme, prepareStyles, } = this.context.muiTheme; const...
examples/FloatingButton.js
15lyfromsaturn/react-materialize
import React from 'react'; import Button from '../src/Button'; export default <Button floating large className='red' waves='light' icon='add' />;
Study/Udemy Docker and Kubernetes/Section14/kub-network-06-added-frontend/frontend/src/components/TaskList.js
tarsoqueiroz/Docker
import React from 'react'; import './TaskList.css'; function TaskList(props) { return ( <ul> {props.tasks.map((task) => ( <li key={task.title}> <h2>{task.title}</h2> <p>{task.text}</p> </li> ))} </ul> ); } export default TaskList;
src/index.js
redsheep-io/redsheep.io
/* eslint-disable import/default */ import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import configureStore, { history } from './store/configureStore'; import Root from './components/Root'; import './styles/styles.scss'; // Yep, that's right. You can import...
src/svg-icons/action/http.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHttp = (props) => ( <SvgIcon {...props}> <path d="M4.5 11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5v2zm2.5-.5h1.5V15H10v-4.5h1.5V9H7v1.5zm5.5 0H14V15h1.5v-4.5H17V9h-4.5v1.5zm9-1.5H18v6h1.5v-2h2c.8 0 1.5-.7 1.5-1.5v-...
app/components/Card/index.js
kenaku/react-boilerplate
/** * * Mdl * */ import React from 'react' import {Card, CardTitle, CardText, CardActions, Button, CardMenu, IconButton} from 'react-mdl' // import styles from './styles.css' const CardMdl = () => <Card shadow={0} style={{margin: '0 auto'}}> <CardTitle style={{color: '#fff', height: '176px', background: 'url(ht...
src/svg-icons/image/camera.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCamera = (props) => ( <SvgIcon {...props}> <path d="M9.4 10.5l4.77-8.26C13.47 2.09 12.75 2 12 2c-2.4 0-4.6.85-6.32 2.25l3.66 6.35.06-.1zM21.54 9c-.92-2.92-3.15-5.26-6-6.34L11.88 9h9.66zm.26 1h-7.49l.29.5 4...
modules/dreamview/frontend/src/components/DataCollectionMonitor/ScenarioCollectionMonitor.js
jinghaomiao/apollo
import React from 'react'; import { observer } from 'mobx-react'; import classNames from 'classnames'; @observer export default class ScenarioCollectionMonitor extends React.Component { renderCategoryProgress(description, progressInPercentage, isUpdated, isCompleted) { return ( <div key={description}...
stories/select/index.js
lanyuechen/dh-component
import React from 'react'; import { Select } from '../../src'; const Option = Select.Option; import { storiesOf, action, linkTo } from '@kadira/storybook'; const options = { inline: true, propTables: false } storiesOf('Select 选择器', module) .addWithInfo( '选择器', () => ( <div style={{marginLeft: '30px'}...
src/routes/user/index.js
102010cncger/antd-admin
import React from 'react' import PropTypes from 'prop-types' import { routerRedux } from 'dva/router' import { connect } from 'dva' import { Row, Col, Button, Popconfirm } from 'antd' import { Page } from 'components' import queryString from 'query-string' import List from './List' import Filter from './Filter' import ...
src/svg-icons/device/bluetooth-connected.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBluetoothConnected = (props) => ( <SvgIcon {...props}> <path d="M7 12l-2-2-2 2 2 2 2-2zm10.71-4.29L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1....
src/js/components/acl/modals/close_modal_button.js
rafaelfbs/realizejs
import React, { Component } from 'react'; import PropTypes from '../../../prop_types'; import $ from 'jquery'; import { autobind } from '../../../utils/decorators'; import { Button } from '../../../components'; export default class CloseModalButton extends Component { static propTypes = { name: PropTypes.string...
sources/js/welcome.js
dhartunian/streetlivesnyc
'use strict'; import React from 'react'; import '../scss/welcome.scss'; module.exports.Welcome = React.createClass({ render: function() { return ( <div className="Welcome Dialog"> <div className="Welcome-inner Dialog-inner"> <div className="Welcome-content...
src/navigators/StackNavigator.js
kkamperschroer/react-navigation
/* @flow */ import React from 'react'; import createNavigationContainer from '../createNavigationContainer'; import createNavigator from './createNavigator'; import CardStack from '../views/CardStack'; import StackRouter from '../routers/StackRouter'; import type { NavigationContainerConfig, NavigationStackRouter...
src/components/combatant/Showdown.js
teamNOne/showdown
import React from 'react'; import Combatant from './Combatant'; import Form from '../app/form/Form'; import SelectGroup from '../app/form/SelectGroup'; export default class Showdown extends React.Component { render() { return ( <div className='container'> <h3 className='text-cen...
src/svg-icons/image/flash-on.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFlashOn = (props) => ( <SvgIcon {...props}> <path d="M7 2v11h3v9l7-12h-4l4-8z"/> </SvgIcon> ); ImageFlashOn = pure(ImageFlashOn); ImageFlashOn.displayName = 'ImageFlashOn'; ImageFlashOn.muiName = 'SvgIco...
src/features/VFS/actions.js
nuagenetworks/visualization-framework
import React from 'react'; import { push } from 'react-router-redux'; import { change } from 'redux-form'; import { ServiceManager } from "../../services/servicemanager"; import { selectFieldValues } from '../../ui-components/utils'; import { getError } from '../../components/Editor/utils'; import { getNetworkProto...
src/MetadataResponseInfo.js
manywho/whomiboo
import React, { Component } from 'react'; import { Button, Panel } from 'react-bootstrap'; import Modal from 'react-modal'; class MetadataResponseInfo extends Component { constructor(props) { super(props); } render () { const customStyles = { content : { top ...
src/ModalTitle.js
albertojacini/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalTitle extends React.Component { render() { return ( <h4 {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> { this.props.children } </h4> ); } } ModalTitle.pr...
packages/material-ui-icons/src/DesktopMac.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let DesktopMac = props => <SvgIcon {...props}> <path d="M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7l-2 3v1h8v-1l-2-3h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 12H3V4h18v10z" /> </SvgIcon>; DesktopMac = pure(Desk...
src/components/page/RadarHomePageComponent.js
RxKotlin/techradar-reactjs
'use strict'; import React from 'react'; import {Button, Image, Grid, Row, Col} from 'react-bootstrap'; require('styles/page/RadarHomePage.scss'); class RadarHomePageComponent extends React.Component { constructor(props) { super(props); this.onCreateRadar = props.showRadar; } render() { retur...
test/integration/image-component/base-path/pages/index.js
flybayer/next.js
import React from 'react' import Image from 'next/image' const Page = () => { return ( <div> <p>Home Page</p> <Image id="basic-image" src="/docs/test.jpg" width="400" height="400" ></Image> <p id="stubtext">This is the index page</p> </div> ) } expor...
app/javascript/mastodon/features/compose/components/compose_dropdown.js
Chronister/mastodon
// Package imports // import React from 'react'; import PropTypes from 'prop-types'; // Mastodon imports // import IconButton from '../../../components/icon_button'; const iconStyle = { height : null, lineHeight : '27px', }; export default class ComposeDropdown extends React.PureComponent { ...
workbench/src/js/index.js
eeyang92/react-flow-webpack-bp
// @flow import React from 'react' import { render } from 'react-dom' import Hello from 'react-flow-webpack-bp' render( <Hello />, window.document.getElementById('app-container') )
extensions/genericdata/client.js
axax/lunuc
import React from 'react' import Hook from 'util/hook' export default () => { Hook.on('CmsViewContainerSubscription', ({subscription, storedData, resolvedDataJson}) => { if (subscription.type === 'GenericData' && subscription.autoUpdate) { resolvedDataJson[subscription.autoUpdate].results.for...
src/svg-icons/device/network-wifi.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceNetworkWifi = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M3.53 10.95l8.46 10.54.01.0...
stories/BasicContentState/index.js
jpuri/react-draft-wysiwyg
/* @flow */ import React, { Component } from 'react'; import { Editor } from '../../src'; class BasicContentState extends Component { state = { contentState: JSON.parse('{"entityMap":{},"blocks":[{"key":"1ljs","text":"Initializing from content state","type":"unstyled","depth":0,"inlineStyleRanges":[],"entityRan...
src/features/employees/details/employee-details/assessments-history.js
fmoliveira/wannagrow-client
import React from 'react' import DateTime from 'components/formatters/date-time' const AssessmentItem = ({ date, comments, rating }) => ( <tr> <td><DateTime value={date} /></td> <td>{comments}</td> <td>{rating}</td> </tr> ) export const AssessmentsHistory = ({ history }) => { if (!history) { re...
admin/client/App/screens/List/components/ItemsTable/ItemsTableDragDrop.js
benkroeger/keystone
import React from 'react'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; import { Sortable } from './ItemsTableRow'; import DropZone from './ItemsTableDragDropZone'; var ItemsTableDragDrop = React.createClass({ displayName: 'ItemsTableDragDrop', propTypes: { colum...
app/react-icons/fa/comments-o.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaCommentsO extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m15.7 8.6q-3.4 0-6.4 1.1t-4.7 3.2-1.7 4.2q0 1.9 1.1 3.6t3.4 2.9l2.1 1.3-0....
ui/src/components/IssuePage/BreadcrumbNav/BreadcrumbNav.js
BranislavLazic/akka-cqrs-activator
import React from 'react'; import { Breadcrumb } from 'antd'; import { Link } from 'react-router-dom'; import { CalendarOutlined } from '@ant-design/icons'; const BreadcrumbNav = ({ date, className }) => ( <div className={className}> <Breadcrumb> <Breadcrumb.Item key="home"> <Link to="/"> ...
.storybook/config.js
Hacker0x01/react-storybook-addon-info
import React from 'react'; import { configure, setAddon, addDecorator } from '@kadira/storybook'; import InfoAddon from '../src/'; addDecorator((story) => ( <div style={{padding: 20}}> {story()} </div> )); setAddon(InfoAddon); configure(function () { require('../example/story'); }, module);
client/src/components/JSONSchemaForm/Tags.js
Wiredcraft/jekyllpro-cms
import React, { Component } from 'react'; import Select, { Creatable } from 'react-select'; export default class Tags extends Component { constructor(props) { super(props); this.state = { tags: (props.value && props.value.map(v => { return { label: v, value: v }; ...
templates/rubix/redux/redux-example/src/components/Todo.js
jeffthemaximum/jeffline
import React from 'react'; import { withRouter } from 'react-router'; import { Col, Row, Grid, Icon, Button, Checkbox, ButtonGroup, } from '@sketchpixy/rubix'; @withRouter export default class Todo extends React.Component { toggleCompletion() { let { _id } = this.props.todo; let { dispatch, ac...
src/html.js
xenotime-india/CV
import React from 'react' import Helmet from 'react-helmet' let stylesStr if (process.env.NODE_ENV === 'production') { try { stylesStr = require('!raw-loader!../public/styles.css') } catch (e) { console.log(e) } } export default class HTML extends React.Component { render() { const head = Helmet.r...
components/Navigation/Navigation.js
trungtin/staticPage
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React from 'react'; import './Navigation.scss'; import Link from '../Link'; function Navigation() { return ( <ul className="Navigation" role="menu"> ...
sam-front/src/pages/ReleaseNotes.js
atgse/sam
import React from 'react'; import { connect } from 'react-redux'; import LoadingIndicator from '../components/LoadingIndicator'; import isString from 'lodash/isString'; import { fromReleaseNotes } from '../reducers'; const ReleaseNotesContainer = ({ error, releaseNotesHtml, isLoading }) => { if (isLoading) return ...
web/src/containers/Home/index.js
shiyangzhaoa/call-club
import React from 'react'; import { Route, Switch, } from 'react-router-dom'; import NavBar from './../../components/NavBar'; import CategoryList from './../CategoryList'; const Home = (pros) => { return ( <NavBar> <Switch> <Route path="/" exact component={CategoryList} /> <Route path=...
fall-colors/components/default/equation.js
mathisonian/idyll
import React from 'react'; const ReactDOM = require('react-dom'); const Latex = require('react-latex'); const select = require('d3-selection').select; const format = require('d3-format').format; if (typeof document !== 'undefined') { document.write('<link href="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.3.0/katex.min....
packages/example-phone/src/scripts/containers/page-sections/incoming-call-panel.js
glhewett/spark-js-sdk
import React from 'react'; import {Well} from 'react-bootstrap'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import IncomingCallAlertList from '../../components/incoming-call-alert-list'; import {injectSpark} from '../../modules/redux-spark'; import {answer, decline} from '../../actio...
node_modules/react-bootstrap/es/CarouselCaption.js
soniacq/LearningReact
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 ...
src/components/projects/content/XBOX.js
tehfailsafe/portfolio
import React from 'react'; import Section from '../show/Section' import CopySplitLeft from '../show/CopySplitLeft' import CopySplitRight from '../show/CopySplitRight' import Copy from '../show/Copy' import ImageFull from '../show/ImageFull' import VideoPlayer from '../show/VideoPlayer' export default React.createClas...
paraviewweb/src/React/Widgets/SelectionEditorWidget/rule/RuleRender.js
CordyChen/VisMechan
import React from 'react'; import OperatorRender from './OperatorRender'; import FiveClauseRender from './FiveClauseRender'; import DepthMatchingRender from '../DepthMatchingRender'; export default function ruleRender(props) { const ruleSelector = props.rule.type; if (ruleSelector === 'logical') { return ( ...
app/javascript/mastodon/components/admin/Trends.js
im-in-space/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import api from 'mastodon/api'; import { FormattedMessage } from 'react-intl'; import classNames from 'classnames'; import Hashtag from 'mastodon/components/hashtag'; export default class Trends extends React.PureComponent { static propTypes = { lim...
docs/src/pages/PageFooter.js
chris-gooley/react-materialize
import React from 'react'; import Footer from 'Footer'; const PageFooter = () => { render() { let links = ( <ul> <li> <a className="grey-text text-lighten-3" href='https://github.com/react-materialize/react-materialize'>GitHub</a> </li> </ul> ); let moreLinks = <a hr...
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/redux-epic/0.3.0/src/contain.js
JamieMason/npm-cache-benchmark
import React from 'react'; import { helpers } from 'rx'; import { createElement } from 'react'; import shallowCompare from 'react-addons-shallow-compare'; import debug from 'debug'; import invariant from 'invariant'; // // Using rtype signatures // interface Action { // type: String, // payload?: Any, // ...meta...
example-exponent/Bedtime/main.js
Volinspire/react-native-circular-slider
import Exponent from 'exponent'; import React, { Component } from 'react'; import { StyleSheet, Text, View } from 'react-native'; import Svg, { G, Path } from 'react-native-svg'; import CircularSlider from 'react-native-circular-slider'; import TimerText from './components/TimerText'; const WAKE_ICON = ( <G> <P...
js/components/DayView.js
wraithyz/reactNative-menu
import React, { Component } from 'react'; import { Text, View, ScrollView } from 'react-native'; import styles from './styles/RestaurantViewStyle'; import RestaurantView from './RestaurantView'; export default class DayView extends Component { render() { let menu; if (this.props.menu) { menu ...
app/javascript/flavours/glitch/features/account/components/profile_column_header.js
glitch-soc/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ColumnHeader from '../../../components/column_header'; import { injectIntl, defineMessages } from 'react-intl'; const messages = defineMessages({ profile: { id: 'column_header.profile', defaultMessage: 'Profile' }, }); export default @injectIntl ...
src/components/MediaItem.js
n1207n/react-like-or-not
import React from 'react'; const defaultProps = { width: 200, height: 200, videoAutoPlay: true, videoLoop: true, videoMuted: true, }; const styles = { cursor: 'pointer', }; /** * MediaItem React component * * @param {[string]} mediaType "image" or "video" * @param {[string]} mediaSrcUrl "http://w...
src/DocumentationView.js
tkawa/alps-console
import React from 'react'; import _ from 'lodash'; class DocumentationView extends React.Component { getAllDescendantNames(node) { const names = []; node.forEach((n) => { names.push(n.data.name); }) return names; } // include self getAllAncestorNames(node) { let nodes = node.ancestor...
src/docs/components/list-placeholder/ListPlaceholderExamplesDoc.js
grommet/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import ListPlaceholder from 'grommet-addons/components/ListPlaceholder'; import Button from 'grommet/components/Button'; import AddIcon from 'grommet/components/icons/base/Add'; import InteractiveExample from...
html.js
juanhenao21/webpage
import React from 'react' import PropTypes from 'prop-types' import Helmet from 'react-helmet' import { prefixLink } from 'gatsby-helpers' import { TypographyStyle } from 'react-typography' import typography from './utils/typography' const BUILD_TIME = new Date().getTime() export default class HTML extends React.Com...
2-state/src/TodoItem.js
mariusz-malinowski/tutorial-react
import React from 'react'; export default (props) => { return ( <li>{props.todo.name}</li> ); };
src/utils.js
itsolutions-dev/react-tablify
// @flow import React from 'react'; // eslint-disable-next-line export const flatten = (array: Array<any>) => [].concat.apply([], array); export const toArray = (array: any, reactChildren: boolean) => { let result = []; const isArray = Array.isArray(array); if (isArray === true) { result = array; } else ...
front_end/src/pages/Errors/Error404Page.js
mozilla/splice
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { updateDocTitle } from 'actions/App/AppActions'; class Error404Page extends Component { componentDidMount() { updateDocTitle('Page Not Found'); } render() { return ( <div className="module"> <div clas...
app/routes/Budget/index.js
sahilkhan99/PosApp
import React, { Component } from 'react'; import Chunk from 'components/Chunk'; const loadBudgetContainer = () => import('containers/Budget' /* webpackChunkName: "budget" */); class Budget extends Component { render() { return <Chunk load={loadBudgetContainer} />; } } export default Budget;
src/index.js
nishanbajracharya/leapicons-ui
import 'normalize.css'; import './styles/main.scss'; import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { AppContainer } from 'react-hot-loader'; import store from './store'; import Home from './components/home'; const mountNode = document.getElementById('ap...
Realization/frontend/czechidm-core/src/content/form/FormDefinitionValues.js
bcvsolutions/CzechIdMng
import React from 'react'; import * as Basic from '../../components/basic'; import FormValueTable from './FormValueTable'; import SearchParameters from '../../domain/SearchParameters'; /** * Form values - for given form definition * * @author Roman Kučera * @author Radek Tomiška */ export default class FormValues...
packages/api/src/hooks/utils/ErrorBoundary.js
billba/botchat
import React, { Component } from 'react'; import PropTypes from 'prop-types'; const RenderChildrenFunction = ({ children }) => (typeof children === 'function' ? children() : children); class ErrorBoundary extends Component { constructor() { super(); this.state = { hasError: false }; } componentDidCatc...
packages/lit-dev-content/samples/examples/react-litelement/index.js
lit/lit.dev
import React, { Component } from 'react'; import { render } from 'react-dom'; import 'chessboard-element'; import './style.css'; class App extends Component { constructor() { super(); this.state = { name: 'React', }; } render() { return ( <div> <h1>&lt;chess-board&gt; and R...
app/javascript/mastodon/features/mutes/index.js
lindwurm/mastodon
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...