path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/auth/signup.js
cynthiacd/capstone-factoring-app
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import { Field, reduxForm, reset } from 'redux-form'; import * as actions from '../../actions'; class Signup extends Component { onSubmit( {username, password, password_confirmation} ) { this.p...
src/svg-icons/notification/sync.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSync = (props) => ( <SvgIcon {...props}> <path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25...
src/notebook/components/transforms/text.js
0u812/nteract
/* @flow */ import React from 'react'; import Ansi from 'ansi-to-react'; type Props = { data: string, } export default class TextDisplay extends React.Component { props: Props; shouldComponentUpdate(): boolean { return true; } render(): ?React.Element<any> { return <Ansi>{this.props.data}</Ansi>;...
src/demos/building-a-geospatial-app/4-basic-charts/src/index.js
uber-common/vis-academy
import React from 'react'; import ReactDOM from 'react-dom'; import App from './app'; ReactDOM.render(<App />, document.getElementById('app')); module.hot.accept();
src/app/components/Area/index.js
Krekotun/seat-booking
import React from 'react'; import cx from 'classnames' import { connect } from 'react-redux' import Seats from 'components/Seats' import InfoPopup from 'components/InfoPopup' import FormPopup from 'components/FormPopup' const Area = (props) => { let klass = cx('iquiz_tables--area', `-area_${props.pagination}`) retur...
src/svg-icons/action/toll.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionToll = (props) => ( <SvgIcon {...props}> <path d="M15 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zM3 12c0-2.61 1.67-4.83 4-5.65V4.26C3.5...
src/routes/app/routes/forms/routes/steppers/components/HonrizontalNonLinear.js
ahthamrin/kbri-admin2
import React from 'react'; import { Step, Stepper, StepButton, } from 'material-ui/Stepper'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; /** * Non-linear steppers allow users to enter a multi-step flow at any point. * * This example is similiar t...
src/components/Result.js
hagl/neural-net-demo
import React from 'react'; import NeuralNet from '../NeuralNet'; import model from '../model'; let nn = new NeuralNet(model); function Result(props) { let result = nn.predict(props.data); let list = result.map((v,i) => { let style = {width: 200*v}; return ( <div key={"row" + i} className="...
src/svg-icons/action/view-carousel.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewCarousel = (props) => ( <SvgIcon {...props}> <path d="M7 19h10V4H7v15zm-5-2h4V6H2v11zM18 6v11h4V6h-4z"/> </SvgIcon> ); ActionViewCarousel = pure(ActionViewCarousel); ActionViewCarousel.displayName =...
packages/wix-style-react/src/DragAndDrop/docs/Styles/examples/ItemPlaceholder.js
wix/wix-style-react
import React from 'react'; import { dndStyles } from 'wix-style-react'; export default () => ( <div className={dndStyles.itemPlaceholder}>a simple item</div> );
components/Select/index.js
insane-ux/rebulma
// @flow import React from 'react' import { themr } from 'react-css-themr' import cn from 'classnames' export const defaultStyles = { root: '', select: '', } const Select = ({ theme, className, options = [], ...props }: { theme: { [key: string]: string }, className?: string, options?: Array<{ label...
lib/views2/components/Left.js
guoliim/curritae
import React from 'react' import PropTypes from 'prop-types' import EduList from './EduList' import Lang from './Lang' import SkillList from './SkillList' const Left = ({ detail = {} }) => { return ( <div className="left"> <div className="left-school"> <EduList edus={detail.ed...
pkg/ui/src/i18n/labels/index.js
matt-deboer/kuill
import React from 'react' import IconButton from 'material-ui/IconButton' import IconHelp from 'material-ui/svg-icons/action/help-outline' import en from './en' var localeMap = {en: en} async function textForLocale(locale) { if (locale in localeMap) { return localeMap[locale] } else { // code-split loadin...
src/components/about-us/utils/error-boundary.js
twreporter/twreporter-react
import PropTypes from 'prop-types' import React from 'react' import styled from 'styled-components' import { colorSupportive } from '@twreporter/core/lib/constants/color' const ErrorContainer = styled.div` height: 70vh; width: 100%; display: flex; flex-direction: column; align-items: center; justify-conten...
src/containers/Tables/antTables/index.js
EncontrAR/backoffice
import React, { Component } from 'react'; import { Tabs } from 'antd'; import fakeData from '../fakeData'; import { tableinfos } from './configs'; import * as TableViews from './tableViews/'; const TabPane = Tabs.TabPane; const dataList = new fakeData(10); export default class AntTable extends Component { renderTabl...
src/components/App.js
hao123-fe/weeport
import React from 'react' import {HashRouter as Router, Route} from 'react-router-dom' import UwpContainer from '@/components/UwpContainer.js' import Edit from '@/components/Edit/Index.js' import List from '@/components/List/Index.js' import Settings from '@/components/Settings/Index.js' import Help from '@/components/...
app/js/components/app-ctrls.js
workco/hackathon-talent
'use strict'; import React from 'react'; import { Link } from 'react-router'; import ModalActions from '../actions/modal-actions'; export default React.createClass({ render() { return ( <ul className='app-ctrls'> <li className='app-ctrls__add'> <a href='#' onClick...
frontend/src/components/h5/Button.js
sunlong/h5
/** * Created by sunlong on 2017/3/20. */ import React from 'react'; import Rnd from '../common/rnd/ReactRnd'; import store from '../../store'; import { changeFocus } from '../../actions/h5Actions'; function Input({ value, focusId }) { const onClicked = () => { store.dispatch(changeFocus({ id: value.id, ...
frontend/src/components/Footer.js
mayk93/OpenWeatherApp
/* React */ import React from 'react'; /* Font Awesome */ import FontAwesome from 'react-fontawesome'; /* Inline styles */ import {footer_style} from '../style/js/Footer'; /* CSS */ import '../style/css/Footer.css'; export default (props) => { return ( <div> <div style={footer_style}> ...
packages/material-ui-icons/legacy/Battery20.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M7 17v3.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V17H7z" /><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V17h10V5.33z" /></React...
packages/react-scripts/fixtures/kitchensink/src/index.js
g3r4n/create-esri-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById(...
app/components/RightofHome/index.js
yoohan-dex/myBlog
/** * * RightofHome * */ import React from 'react'; import { Col } from 'react-bootstrap'; const RightofHome = () => ( <Col md={4} sm={12} xs={12} xsHidden> {this.props.children} </Col> ); export default RightofHome;
src/svg-icons/maps/person-pin-circle.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsPersonPinCircle = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm0 2c1.1 0 2 .9 2 2 0 1.11-.9 2-2 2s-2-.89-2-2c0-1.1.9-2 2-2zm0 10c-1.67 0...
app/utils/injectReducer.js
romanvieito/ball-simpler
import React from 'react'; import PropTypes from 'prop-types'; import hoistNonReactStatics from 'hoist-non-react-statics'; import getInjectors from './reducerInjectors'; /** * Dynamically injects a reducer * * @param {string} key A key of the reducer * @param {function} reducer A reducer that will be injected * ...
src/components/Editor.js
pcardune/pyret-ide
import React from 'react'; import Radium from 'radium'; import SplitPane from '@mnmtanish/react-split-pane'; import {connect} from 'react-redux'; import * as selectors from '../redux/selectors'; import Toolbar from './Toolbar'; import CodeWindow from './CodeWindow'; import Spinner from './Spinner'; import ErrorBox from...
src/components/Common/DisplayField.js
oraclesorg/ico-wizard
import React from 'react'; import '../../assets/stylesheets/application.css'; export const DisplayField = props => { return ( <div className={props.side}> <div className="display-container"> <p className="label">{props.title}</p> <p className="value">{props.value}</p> <p className="...
app/javascript/mastodon/containers/account_container.js
WitchesTown/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { makeGetAccount } from '../selectors'; import Account from '../components/account'; import { followAccount, unfollowAccount, blockAccount, unblockAccount, muteAc...
src/component/Contact.js
munyrasirio/mss-chat
import React, { Component } from 'react'; import { StyleSheet, TouchableHighlight, Image, Text, View } from 'react-native'; import Hr from './Hr'; export default class Contact extends Component { render() { return ( <TouchableHighlight style={styles.contact} underlayColor="#E8E8E8" onPress={this.props.onPress...
mlflow/server/js/src/model-registry/components/DirectTransitionForm.js
mlflow/mlflow
import { Checkbox, Tooltip, Form } from 'antd'; import React from 'react'; import PropTypes from 'prop-types'; import { ACTIVE_STAGES, archiveExistingVersionToolTipText, Stages, StageTagComponents, } from '../constants'; import { FormattedMessage, injectIntl } from 'react-intl'; export class DirectTransitionFo...
src/svg-icons/content/add-circle-outline.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentAddCircleOutline = (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.5...
src/svg-icons/action/view-column.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewColumn = (props) => ( <SvgIcon {...props}> <path d="M10 18h5V5h-5v13zm-6 0h5V5H4v13zM16 5v13h5V5h-5z"/> </SvgIcon> ); ActionViewColumn = pure(ActionViewColumn); ActionViewColumn.displayName = 'Actio...
frontend-web-v2/src/components/MainPage.js
ClubCedille/jardiniot
import React, { Component } from 'react'; import LightToggle from './LightToggle'; import FanToggle from './FanToggle'; import _ from 'lodash'; import API from '../Api'; export default class MainPage extends Component { constructor(props) { super(props); this.state = { temp: '', hum: '', light1: [], l...
src/examples/redux/separate-files/counter.js
vinogradov/react-starter-kit
import React from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import {mapStateToProps} from './map-state'; import {incrementAction, decrementAction, decrementAsyncAction} from './actions'; class Counter$ extends React.Component { constructor(props) { super(props); this.o...
app/jsx/new_user_tutorial/trays/ImportTray.js
venturehive/canvas-lms
/* * Copyright (C) 2017 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
frontend/src/Components/Page/Sidebar/PageSidebar.js
Radarr/Radarr
import classNames from 'classnames'; import _ from 'lodash'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import QueueStatusConnector from 'Activity/Queue/Status/QueueStatusConnector'; import OverlayScroller from 'Components/Scroller/OverlayScroller'; i...
src/common/components/layouts/AppLayout.js
gocreating/express-react-hmr-boilerplate
import React from 'react'; import Head from '../widgets/Head'; const AppLayout = ({ children }) => ( <div> <Head title="Express-React-HMR-Boilerplate" metas={[ {charset: 'utf-8'}, { name: 'viewport', content: 'width=device-width, initial-scale=1.0', }, ...
old-or-not-typescript/learn-redux/todos-with-undo/containers/UndoRedo.js
janaagaard75/framework-investigations
import React from 'react' import { ActionCreators as UndoActionCreators } from 'redux-undo' import { connect } from 'react-redux' let UndoRedo = ({ canUndo, canRedo, onUndo, onRedo }) => ( <p> <button onClick={onUndo} disabled={!canUndo}> Undo </button> <button onClick={onRedo} disabled={!canRedo}>...
packages/glip-widgets/components/GlipGroupItem/index.js
ringcentral/ringcentral-js-widget
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { getPostAbstract } from '../../lib/formatPost'; import styles from './styles.scss'; import GlipGroupAvatar from '../GlipGroupAvatar'; import GlipGroupName from '../GlipGroupName'; function LatestPost({ latest...
src/HelpSearch.js
OCMC-Translation-Projects/ioc-liturgical-react
import React from 'react'; import PropTypes from 'prop-types'; import {Accordion, Panel} from 'react-bootstrap' import DocIds from './modules/docs/DocIds'; import DocProps from './modules/docs/DocProps'; import DocComparison from './modules/docs/DocComparison'; import DocSearchTypes from './modules/docs/DocSearchTypes...
example/src/Video/Video.js
lokiuz/redraft
/* eslint-disable jsx-a11y/media-has-caption */ import React from 'react'; import PropTypes from 'prop-types'; import withHover from '../withHover'; import './Video.css'; const imgStyles = { medium: { height: 300, }, small: { height: 200, }, }; const figStyles = { small: { float: 'left', ma...
src/index.redux.js
BuiltByBig/laserbot-client
import Application from './containers/application' import logger from 'redux-logger' import React from 'react' import reducers from './reducers' import thunk from 'redux-thunk' import {fetchDevices } from './actions/devices' import { createStore, applyMiddleware } from 'redux' import { Provider } from 'react-redux' imp...
admin/client/App/screens/Item/components/EditFormHeader.js
Adam14Four/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import { connect } from 'react-redux'; import Toolbar from './Toolbar'; import ToolbarSection from './Toolbar/ToolbarSection'; import { FormIconField, FormInput, ResponsiveText } from 'elemental'; import { Link } from 'react-router'; import Drilldown...
renderer/components/Channels/ChannelCardList.js
LN-Zap/zap-desktop
import React from 'react' import PropTypes from 'prop-types' import { Box } from 'rebass/styled-components' import styled from 'styled-components' import { Grid, AutoSizer } from 'react-virtualized' import { space as baseSpace } from 'themes/base' import ChannelCardListItem from './ChannelCardListItem' const StyledLis...
src/pages/404.js
singuerinc/blog
import React from 'react' const NotFoundPage = () => ( <div> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </div> ) export default NotFoundPage
app/javascript/mastodon/features/report/components/status_check_box.js
corzntin/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import emojify from '../../../emoji'; import Toggle from 'react-toggle'; export default class StatusCheckBox extends React.PureComponent { static propTypes = { status: ImmutablePropTypes.ma...
src/components/showcase/ShowCase.js
roden0/webapp
import React from 'react'; import {Link} from 'react-router'; class ShowCase extends React.Component { render () { return ( <div> <h3>ShowCase</h3> </div> ); } } export default ShowCase;
src/components/pages/Articles/ArticlesListingPage.js
ESTEBANMURUZABAL/bananaStore
/** * Imports */ import React from 'react'; import async from 'async'; import connectToStores from 'fluxible-addons-react/connectToStores'; import {FormattedMessage} from 'react-intl'; import {Link} from 'react-router'; import config from '../../../config'; import {slugify} from '../../../utils/strings'; // Flux im...
frontend/app/js/components/service/settingsmodal.js
serverboards/serverboards
import React from 'react' import Settings from './settings' import Modal from '../modal' import {MarkdownPreview} from 'react-marked-markdown'; import { get_template } from '../service/utils' import {i18n} from 'app/utils/i18n' function SettingsModal(props){ let servicedef=get_template(props.service.type, props.serv...
node_modules/react-router/es6/withRouter.js
hkim53/insta
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import invariant from 'invariant'; import React from 'react';...
components/Faixa.js
victorditadi/IQApp
import React, { Component } from 'react'; import { Header, Title } from 'native-base'; export default class Faixa extends Component { constructor() { super(); } render() { return ( <Header> <Title>IQMail</Title> </Header> ); } }
pwa/src/index.js
cmilfont/biohacking
import 'typeface-roboto'; import 'normalize.css'; import './css/zonaextrema.css'; import './css/static.css'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); re...
src/components/views/context_menus/GenericTextContextMenu.js
aperezdc/matrix-react-sdk
/* Copyright 2017 Michael Telatynski <7t3chguy@gmail.com> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
client/components/Flass/Upload/QuestionInsertion/Quiz/QuizMultipleChoice/QuizSingleChoice/QuizSingleChoiceComponent.js
Nexters/flass
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import autobind from 'autobind-decorator'; import classNames from 'classnames'; import './QuizSingleChoiceComponentStyles.scss'; import DeleteIcon from '../icons/x-copy-2@2x.png'; const { string, bool, func, number } = PropTypes; const p...
src/pages/Todos.js
ludovers/FirstReactApp
import React, { Component } from 'react'; export default class Todos extends React.Component { constructor(){ super(); this.state = { todos: [] } } updateItems = (newTodo) => { var allTodos = this.state.todos.concat([newTodo]); this.setState({todos: allTodos}); } render() { return ( <div c...
src/common/icons/Github.js
k2052/journal.k2052.me
import React from 'react' class Github extends React.Component { render() { return ( <svg x="0px" y="0px" width="512px" height="512px" viewBox="0 0 512 512"> <path d="M256,32C132.3,32,32,134.9,32,261.7c0,101.5,64.2,187.5,153.2,217.9c1.4,0.3,2.6,0.4,3.8,0.4c8.3,0,11.5-6.1,11.5-11.4 c0-5.5-0....
app/javascript/mastodon/components/common_counter.js
pinfort/mastodon
// @ts-check import React from 'react'; import { FormattedMessage } from 'react-intl'; /** * Returns custom renderer for one of the common counter types * * @param {"statuses" | "following" | "followers"} counterType * Type of the counter * @param {boolean} isBold Whether display number must be displayed in bold ...
ui/js/components/Filter.js
ericsoderberg/pbc-web
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import FilterIcon from '../icons/Filter'; export default class Filter extends Component { constructor() { super(); this._onActivate = this._onActivate.bind(this); this._onBlur = this._onBlur.bind(this); this.state = { act...
game-new/src/views/itemsets/index.js
d07RiV/d3planner
import React from 'react'; import { Route, Switch } from 'react-router-dom'; import { ErrorView, withAsync, scrollView, Cache } from 'utils'; import { ItemSetsDiff } from './diff'; import { ItemSetView, highlightBox } from './common'; import './itemsets.css'; const ItemSetsList = ({build, data, items, names, pathna...
src/modules/widget/FormSubmit.js
lenxeon/react
'use strict' import React from 'react' import Button from './Button' export default class FormSubmit extends React.Component { static displayName = 'FormSubmit' static propTypes = { children: React.PropTypes.any, locked: React.PropTypes.bool, onClick: React.PropTypes.func, style: React.PropTypes....
docs/app/Examples/elements/Label/Types/LabelExamplePointing.js
clemensw/stardust
import React from 'react' import { Divider, Form, Label } from 'semantic-ui-react' const LabelExamplePointing = () => ( <Form> <Form.Field> <input type='text' placeholder='First name' /> <Label pointing>Please enter a value</Label> </Form.Field> <Divider /> <Form.Field> <Label poin...
src/routes.js
GLeviRodriguez/BFQ
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import Router from 'react-routing/src/Router'; import http from './core/HttpClient'; import App from './components/App'; import ContentPage from './components/ContentPage'; import ContactPage from './components/ContactP...
src/Parser/Rogue/Subtlety/Modules/Legendaries/ShadowSatyrsWalk.js
hasseboulen/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import Combatants from 'Parser/Core/Modules/Combatants'; import Analyzer from 'Parser/Core/Analyzer'; import Wrapper from 'common/Wrapper'; import EnergyTracker from '../../../Common/Resources/EnergyTracker'; class Sha...
installer/frontend/form.js
everett-toews/tectonic-installer
import _ from 'lodash'; import React from 'react'; import { connect } from 'react-redux'; import { dispatch as dispatch_ } from './store'; import { configActions, registerForm } from './actions'; import { toError, toIgnore, toAsyncError, toExtraData, toInFly, toExtraDataInFly, toExtraDataError } from './utils'; import...
src/components/FormInputs/renderField.js
chaitanya1375/Myprojects
import React from 'react'; import TextInput from './TextInput'; import Checkbox from './Checkbox'; import Radio from './Radio'; const renderField = (props) => ( <div> { (props.type === 'email' || props.type === 'password' || props.type === 'text' || props.type === 'number') && <TextInp...
src/common/components/ResourceThumb.js
adamarthurryan/personal-database
import React from 'react'; import * as PathTools from '../database/PathTools' export default class ResourceThumb extends React.Component { render() { let thumbOptions = "thumb="+this.props.size; let [_, width, height]= this.props.size.match(/(\d+)x(\d+)/) var style = { width, height } ...
app/javascript/mastodon/features/ui/components/modal_loading.js
mosaxiv/mastodon
import React from 'react'; import LoadingIndicator from '../../../components/loading_indicator'; // Keep the markup in sync with <BundleModalError /> // (make sure they have the same dimensions) const ModalLoading = () => ( <div className='modal-root__modal error-modal'> <div className='error-modal__body'> ...
src/js/components/icons/status/Disabled.js
linde12/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; const CLASS_ROOT = CSSClassnames.STATUS_ICON; let _lastId = 0; export defa...
app/js/components/Markdown.js
niksoc/srmconnect
import Remarkable from 'remarkable'; import React from 'react'; import {pure} from 'recompose'; const Markdown = (props) => { var md = new Remarkable(); var rawMarkup = md.render(props.children.toString()); return ( <span dangerouslySetInnerHTML={{__html:rawMarkup}} /> ); }; export defaul...
examples/src/CustomRenderer/CustomRenderer.js
vezetvsem/react-autosuggest
require('./CustomRenderer.less'); import React, { Component } from 'react'; import utils from '../utils'; import Autosuggest from '../../../src/Autosuggest'; import SourceCodeLink from '../SourceCodeLink/SourceCodeLink'; import suburbs from 'json!../suburbs.json'; function population(suburbObj) { return suburbObj.s...
src/svg-icons/image/panorama-horizontal.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePanoramaHorizontal = (props) => ( <SvgIcon {...props}> <path d="M20 6.54v10.91c-2.6-.77-5.28-1.16-8-1.16-2.72 0-5.4.39-8 1.16V6.54c2.6.77 5.28 1.16 8 1.16 2.72.01 5.4-.38 8-1.16M21.43 4c-.1 0-.2.02-.31.06C...
src/modules/LogPicker/component.js
svmn/ace-fnd
'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import DatePickerDialog from 'material-ui/DatePicker/DatePickerDialog'; import emitter from '../../emitter'; export default class LogPicker extends Component { componentDidMount() { emitter.on('openLogPicker', () => this...
packages/react-router-website/examples/Recursive.js
rafrex/react-router
import React from 'react' import Route from 'react-router/Route' import Router from 'react-router-dom/BrowserRouter' import Link from 'react-router-dom/Link' const PEEPS = [ { id: 0, name: 'Michelle', friends: [ 1, 2, 3 ] }, { id: 1, name: 'Sean', friends: [ 0, 3 ] }, { id: 2, name: 'Kim', friends: [ 0, 1, 3 ], ...
src/index.js
ariabuckles/perseus
// Demo page index for create-react-app /* import React from 'react'; import ReactDOM from 'react-dom'; import * as Perseus from './perseus'; //import "./lib/mathquill/mathquill.css"; const itemData = { "question": { "content": "Testing an expression:\n\nSimplify $(2x + 3)(x - 1)$\n\n[[☃ expression 1]]", ...
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js
jhardin293/colorize
import React from 'react' import { reduxForm } from 'redux-form' export const fields = [] const validate = (values) => { const errors = {} return errors } type Props = { handleSubmit: Function, fields: Object, } export class <%= pascalEntityName %> extends React.Component { props: Props; defaultProps = ...
app/packs/src/components/qc/components/summary/LineScore.js
ComPlat/chemotion_ELN
import React from 'react'; import PropTypes from 'prop-types'; import { OverlayTrigger, Tooltip } from 'react-bootstrap'; import { evalMsg, evalLabel, evalScoreTxt } from './eval'; const tpMsg = score => ( <Tooltip id="tp-msg"> { evalMsg(score) } </Tooltip> ); const LineScore = ({ score }) => { const clsNa...
client/components/data/Counter.stories.js
Sing-Li/Rocket.Chat
import React from 'react'; import Counter from './Counter'; export default { title: 'components/data/Counter', component: Counter, }; export const Default = () => <Counter count={123} />; export const WithPositiveVariation = () => <Counter count={123} variation={4} />; export const WithNegativeVariation = () =...
src/svg-icons/hardware/cast-connected.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareCastConnected = (props) => ( <SvgIcon {...props}> <path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H5v1.63c3.96 1.28 7.09 4.41 8.37 8.37H19V7zM1 10v2c4.97 0 9 4.03 ...
client/components/Flass/Upload/QuestionInsertion/QuestionInsertionComponent.js
Nexters/flass
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import autobind from 'autobind-decorator'; import VideoComponent from './Video/VideoComponent'; import QuizComponent from ...
src/components/AppSettingsMenu/ThemeControls/DeleteButton.js
Charlie9830/pounder
import React from 'react'; import { IconButton } from '@material-ui/core'; import DeleteIcon from '@material-ui/icons/Delete'; const DeleteButton = (props) => { return ( <IconButton onClick={props.onClick}> <DeleteIcon fontSize="small"/> </IconButton> ); }; export default D...
springboot/GReact/src/main/resources/static/app/components/forms/inputs/Tagsinput.js
ezsimple/java
import React from 'react' import 'script-loader!bootstrap-tagsinput/dist/bootstrap-tagsinput.min.js' export default class Tagsinput extends React.Component { componentDidMount() { $(this.refs.input).tagsinput(); } render() { return ( <input type="text" {...this.props} ref="input"/> ) } }
src/px-navbar/index.js
jonniespratley/px-components-react
import React from 'react'; import style from './style.scss'; /** * px-navbar component */ export default({ title, subtitle, showBackButton, backButtonLabel, showMenuButton, onBackButtonClick, onMenuButtonClick, rightContent, children }) => ( <div className='px-navbar'> <nav id="navbar" className="navb...
src/svg-icons/device/battery-30.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBattery30 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V15h10V5.33z"/><path d="M7 15v5.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 ...
src/svg-icons/editor/format-textdirection-r-to-l.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatTextdirectionRToL = (props) => ( <SvgIcon {...props}> <path d="M10 10v5h2V4h2v11h2V4h2V2h-8C7.79 2 6 3.79 6 6s1.79 4 4 4zm-2 7v-3l-4 4 4 4v-3h12v-2H8z"/> </SvgIcon> ); EditorFormatTextdirectionRTo...
node_modules/react-select/src/utils/defaultArrowRenderer.js
ivanhristov92/bookingCalendar
import React from 'react'; export default function arrowRenderer ({ onMouseDown }) { return ( <span className="Select-arrow" onMouseDown={onMouseDown} /> ); };
src/svg-icons/toggle/star-border.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleStarBorder = (props) => ( <SvgIcon {...props}> <path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1...
src/Containers/ChartContainer/AddChartForm.js
sirjuan/harmonical-oscillation
import React from 'react'; import { Button, Form, FormGroup, Label, Input, ModalFooter } from 'reactstrap'; export default class Example extends React.Component { constructor() { super() this.changeValue = this.changeValue.bind(this); this.handleSubmit = this.handleSubmit.bind(this); this.sta...
src/svg-icons/action/settings-bluetooth.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsBluetooth = (props) => ( <SvgIcon {...props}> <path d="M11 24h2v-2h-2v2zm-4 0h2v-2H7v2zm8 0h2v-2h-2v2zm2.71-18.29L12 0h-1v7.59L6.41 3 5 4.41 10.59 10 5 15.59 6.41 17 11 12.41V20h1l5.71-5.71-4.3-4....
node_modules/npm/docs/gatsby-browser.js
giovannic/giovannic.github.com
import React from 'react' import Layout from './src/components/layout' require('prismjs/themes/prism-tomorrow.css') require('./src/main.css') export const wrapPageElement = ({ element, props }) => { return <Layout {...props} >{element}</Layout> }
src/components/LanguageMenu.js
kazazor/coinsmarket
import React, { Component } from 'react'; import {connect} from 'react-redux'; import PropTypes from 'prop-types'; import {withStyles, createStyleSheet} from 'material-ui/styles'; import {IconButton} from 'material-ui'; import Menu, { MenuItem } from 'material-ui/Menu'; import T from 'i18n-react'; import config from '...
fields/types/cloudinaryimages/CloudinaryImagesField.js
jacargentina/keystone
import _ from 'lodash'; import React from 'react'; import ReactDOM from 'react-dom'; import Field from '../Field'; import { Button, FormField, FormInput, FormNote } from 'elemental'; import Lightbox from '../../components/Lightbox'; import classnames from 'classnames'; const SUPPORTED_TYPES = ['image/gif', 'image/png'...
examples/huge-apps/components/Dashboard.js
cgrossde/react-router
import React from 'react'; import { Link } from 'react-router'; class Dashboard extends React.Component { render () { let { courses } = this.props; return ( <div> <h2>Super Scalable Apps</h2> <p> Open the network tab as you navigate. Notice that only the amount of ...
app/jsx/files/FilesUsage.js
venturehive/canvas-lms
/* * Copyright (C) 2015 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
Js/Core/Lib/Core/AppModule.js
Webiny/Webiny
import React from 'react'; import _ from 'lodash'; import Webiny from 'webiny'; import Menu from './Menu'; class Module { /** * Instantiate a module of given app instance * @param app */ constructor(app) { this.app = app; this.settings = []; } /** * Setup the modul...
src/components/Utils/progress_bar.js
Betree/democracy-watcher
import React from 'react'; class ProgressBar extends React.Component { state = {progress: this.props.progress != null ? this.props.progress : 0} render() { const progress_style = {width: `${this.state.progress}%`} return ( <div className="progress-bar-indication"> <span className="meter" sty...
example/story.js
nutgaard/react-storybook-addon-sections
import React from 'react'; import { storiesOf } from '@storybook/react'; import Button from './button'; import Inline from '../src/components/groupings/inline'; import Collapsable from '../src/components/groupings/collapsable'; import Tabbable from '../src/components/groupings/tabbable'; import HtmlView from '../src/co...
frontend/src/Settings/Tags/Details/TagDetailsModal.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React from 'react'; import Modal from 'Components/Modal/Modal'; import { sizes } from 'Helpers/Props'; import TagDetailsModalContentConnector from './TagDetailsModalContentConnector'; function TagDetailsModal(props) { const { isOpen, onModalClose, ...otherProps ...
app/javascript/mastodon/components/status_content.js
codl/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { isRtl } from '../rtl'; import { FormattedMessage } from 'react-intl'; import Permalink from './permalink'; import classnames from 'classnames'; export default class StatusContent extends ...
src/parser/warlock/demonology/modules/talents/DemonicStrength.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER, SELECTED_PLAYER_PET } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import Pets from 'parser/shared/modules/Pets'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { formatThousands } from 'commo...
versions/2.16.4/core/server/lib/members/static/auth/components/CheckoutForm.js
EdwardStudy/myghostblog
import React, { Component } from 'react'; import { CardElement } from 'react-stripe-elements'; class CheckoutForm extends Component { constructor(props) { super(props); } render() { let style = { base: { '::placeholder': { color: '#8795A1', ...
fields/types/geopoint/GeoPointFilter.js
concoursbyappointment/keystoneRedux
import React from 'react'; import { FormField, FormInput, Grid, SegmentedControl, } from '../../../admin/client/App/elemental'; const DISTANCE_OPTIONS = [ { label: 'Max distance (km)', value: 'max' }, { label: 'Min distance (km)', value: 'min' }, ]; function getDefaultValue () { return { lat: undefined, l...