path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/FullOverview.js
sateez/salestracker
import React from 'react'; import PersonalInfoSection from './PersonalInfoSection'; import SalesInfoSection from './SalesInfoSection'; import FullAnalytics from './FullAnalytics'; const FullOverview = ({cars, totalCarsInfo}) => { console.log('fullOverview totalCarsInfo:--->', totalCarsInfo); return ( ...
src/wdui/Text.js
phodal/play-app
import PropTypes from 'prop-types'; import React from 'react'; import {Text, StyleSheet, Platform} from 'react-native'; import fonts from './config/fonts'; import normalize from './helpers/normalizeText'; const styles = StyleSheet.create({ text: { ...Platform.select({ android: { ...fonts.android.re...
src/svg-icons/communication/present-to-all.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPresentToAll = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h18c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2zm0 16.02H3V4.98h18v14.04zM10 12H8l4-4 4 4h-2v4h-4v-4z"/...
src/svg-icons/hardware/keyboard-voice.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardVoice = (props) => ( <SvgIcon {...props}> <path d="M12 15c1.66 0 2.99-1.34 2.99-3L15 6c0-1.66-1.34-3-3-3S9 4.34 9 6v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 15 6.7 12H5c0 3.42 2.72 6....
app/router.js
ashley-jelks-truss/DoDidDone
import React from 'react'; import { Router, Route, browserHistory, IndexRedirect } from 'react-router'; import requireAuth from './utils/requireAuth'; import App from './containers/App'; import TodoListContainer from './containers/TodoListContainer'; import LandingPageContainer from './containers/LandingPageContainer';...
src/components/BusListItem.js
one-stop-team/ripta-app
import React from 'react' import { Col, Row } from 'react-bootstrap' import logo from '../images/ripta_logo.png' export default class BusListItem extends React.Component { render() { const { bus } = this.props return ( <Row> <Col xs={12}> Bus {bus.number} </Col> </Row> ...
website/Application.js
bvaughn/react-highlight.js
import React from 'react' import HighlightDemo from '../src/Highlight.example' import Highlight from '../src/Highlight' export default class Application extends React.Component { render () { return ( <div> <h1 className='page-header'> react-highlight.js &nbsp; <small> ...
docs/app/Examples/modules/Rating/Types/RatingExampleClearable.js
mohammed88/Semantic-UI-React
import React from 'react' import { Rating } from 'semantic-ui-react' const RatingExampleClearable = () => ( <Rating maxRating={5} clearable /> ) export default RatingExampleClearable
src/components/user.js
voidxnull/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2015 Loki Education (Social Enterprise) This program 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, either version 3 of the License, o...
proto/data-refining/front/workdir/components/Footer.js
cttgroup/oceanhub
import React from 'react' import FilterLink from '../containers/FilterLink' const Footer = () => ( <p> Show: {' '} <FilterLink filter="SHOW_ALL"> All </FilterLink> {', '} <FilterLink filter="SHOW_ACTIVE"> Active </FilterLink> {', '} <FilterLink filter="SHOW_COMPLETED">...
app/javascript/mastodon/features/ui/components/tabs_bar.js
res-ac/mstdn.res.ac
import React from 'react'; import PropTypes from 'prop-types'; import { NavLink, withRouter } from 'react-router-dom'; import { FormattedMessage, injectIntl } from 'react-intl'; import { debounce } from 'lodash'; import { isUserTouching } from '../../../is_mobile'; export const links = [ <NavLink className='tabs-bar...
src/icons/KitchenIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class KitchenIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M36 4.02L12 4C9.79 4 8 5.79 8 8v32c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4V8c0-2.21-1.79-3.98-4-3.98zM36 40...
webpack/scenes/RedHatRepositories/components/RepositorySet.js
adamruzicka/katello
import React from 'react'; import PropTypes from 'prop-types'; import { ListView, Icon } from 'patternfly-react'; import RepositoryTypeIcon from './RepositoryTypeIcon'; import RepositorySetRepositories from './RepositorySetRepositories'; const RepositorySet = ({ type, id, name, label, product, recommended, }) => ( ...
src/Parser/Hunter/Marksmanship/Modules/Traits/LegacyOfTheWindrunners.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import SPELLS from 'common/SPELLS'; import SpellIcon from "common/SpellIcon"; import SpellLink from "common/SpellLink"; import ItemDamageDone from 'Main/ItemDamageDone'; /** * Aimed Shot ...
src/svg-icons/notification/event-available.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationEventAvailable = (props) => ( <SvgIcon {...props}> <path d="M16.53 11.06L15.47 10l-4.88 4.88-2.12-2.12-1.06 1.06L10.59 17l5.94-5.94zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 ...
app/components/ShippingCostsButton.js
Byte-Code/lm-digitalstore
/* eslint-disable */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import glamorous from 'glamorous'; import ShippingDialog from './ShippingDialog'; export default class ShippingCostsButton extends Component { constructor(pr...
react/examples/Code/Prop_Types/src/index.js
jsperts/workshop_unterlagen
import React from 'react'; import { render } from 'react-dom'; import App from './App'; const list = [ { id: 1, title: 'Element 1' }, { id: 2, title: 'Element 2' }, { id: '3', title: 'Element 3' }, { id: 4 }, ]; render(<App list={list} />, document.getElementById('root'));
public/js/components/chat/ChatPrevious.react.js
rajikaimal/Coupley
import React from 'react'; import List from 'material-ui/lib/lists/list'; import ListItem from 'material-ui/lib/lists/list-item'; import Divider from 'material-ui/lib/divider'; import Avatar from 'material-ui/lib/avatar'; import Colors from 'material-ui/lib/styles/colors'; import IconButton from 'material-ui/lib/icon-b...
src/content/Skill.js
ericshortcut/ericshortcut.github.io
import React from 'react'; export default function content({ title, skillList }) { return ( <div className="skill"> {title}: <ul className="skill-list"> { skillList.map(skill => <li className="skill-list-item" key={skill.split(' ').join('-')}> ...
src/containers/DevToolsWindow.js
daimagine/gh-milestone
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' export default createDevTools( <LogMonitor /> )
app/javascript/mastodon/features/video/index.js
mhffdq/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { throttle } from 'lodash'; import classNames from 'classnames'; import { isFullscreen, requestFullscreen, exitFullscreen } from '../ui/util/fullscreen'; import { displaySensi...
src/svg-icons/action/language.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLanguage = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 ...
src/popup/app/components/Boobs/Post/BoobsCreatePost.js
BoomBoobs/chrome-extension
import React from 'react'; import cx from 'classnames'; import { props, pure, skinnable, t } from 'revenge'; import App from '../../../../BoomBoobsApp'; import Select from 'react-select'; import { includes } from 'lodash'; import { FlexView, LoadingSpinner } from 'Basic'; import 'buildo-react-components/src/loading-sp...
src/components/EditorItem.js
casesandberg/squash
'use strict'; import React from 'react'; import ReactCSS from 'reactcss'; // import SVGO from 'svgo'; // const convertSVG = new SVGO(); class EditorItem extends React.Component { classes() { return { 'default': { asset: { Absolute: '0 0 0 0', display: 'flex', alignIte...
src/svg-icons/communication/chat.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationChat = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"/> </SvgIcon> ); Communicatio...
src/Gandalf/components/buttons.js
mrpotatoes/react-gandalf
import React from 'react' import PropTypes from 'prop-types' import SaveButton from 'Gandalf/components/saveButton' import ExitButton from 'Gandalf/components/cancelButton' /* eslint-disable */ const Bottons = ({ buttons, fn, save, cancel }) => ( <div className="gandalf-buttons"> <For each="item" index="idx" of=...
app/components/views/todo-filter.js
joawan/todo-ui-react
import React from 'react'; import style from 'todomvc-app-css/index.css'; import classNames from 'classnames'; function TodoFilter(props) { return ( <div> <footer className={style.footer}> <span className={style.todoCount}> <strong>{props.count}</strong> left </span> ...
client/components/settings/bank-accesses/confirm-delete-access.js
bnjbvr/kresus
import React from 'react'; import { connect } from 'react-redux'; import { displayLabel, translate as $t } from '../../../helpers'; import { get, actions } from '../../../store'; import { registerModal } from '../../ui/modal'; import ModalContent from '../../ui/modal/content'; import CancelAndDelete from '../../ui/mo...
src/Adress.js
icaropires/Interlogex
import React from 'react'; import { Link } from 'react-router-dom'; import { Grid,Icon, Tooltip } from 'react-mdl'; import 'mdi/css/materialdesignicons.min.css'; export default class Adress extends React.Component { render(){ return ( <div className="contact-container-item"> <div className="home-s...
src/svg-icons/file/folder-open.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileFolderOpen = (props) => ( <SvgIcon {...props}> <path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"/> </SvgIcon> ); FileFolderOpen = pure(F...
src/containers/Landing.js
AlexeySmolyakov/likeometer-redux
import React from 'react'; import API from 'api'; import splash02 from 'assets/splash-02.svg'; import splash03 from 'assets/splash-03.svg'; import splash04 from 'assets/splash-04.svg'; import splash05 from 'assets/splash-05.svg'; import splash06 from 'assets/splash-06.svg'; import splash07 from 'assets/splash-07.svg';...
app/javascript/mastodon/features/standalone/public_timeline/index.js
codl/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../../ui/containers/status_list_container'; import { refreshPublicTimeline, expandPublicTimeline, } from '../../../actions/timelines'; import Column from '../../../components/column...
src/app/d3components/piechart/PieChart.js
cox-auto-kc/react-d3-responsive
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import d3 from 'd3'; import Legend from '../utilities/legend'; class PieChart extends React.Component { constructor(props) { super(props); this.state = { width: this.props.width, height: this.props.height }; } c...
src/docs/examples/EyeIcon/Example.js
peadar33/react-component
import React from 'react'; import EyeIcon from 'ps-react/EyeIcon'; export default function EyeIconExample() { return <EyeIcon />; }
src/index.js
sean-m-mccullough/ReduxSimpleStarter
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import App from './components/app'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware()(createStore); ReactDOM.render( <Provi...
src/components/Views/ServicesSingle/index.js
jmikrut/keen-2017
import React, { Component } from 'react'; import ViewWrap from '../../ViewWrap'; import DocumentMeta from 'react-document-meta'; import ServicesContinue from '../../ServicesContinue'; import ProjectCTA from '../../Elements/ProjectCTA'; import servicesContent from '../../../content/services'; import PageNotFound from '...
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-forms-v3-basic-form.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, SectionMixin} from './../common/common.js'; import {Button} from './../bricks/bricks.js'; import FormMixin from './mixins/form-mixin.js'; import './basic-form.less'; export const BasicForm = React.createClass({ mixins: [ BaseMixin, ElementaryMi...
src/index.js
shuichitakano/ymf825playFA
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();
addons/comments/src/manager/components/CommentForm/index.js
enjoylife/storybook
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { window } from 'global'; import Textarea from 'react-textarea-autosize'; import marked from 'marked'; import style from './style'; const renderer = new marked.Renderer(); renderer.heading = text => text; marked.setOptions({ render...
node_modules/react-router/es/Link.js
raptor1989/MobileHeader
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; }; function _objectWithoutProperties(obj, keys) { var target = {...
src/meta/CalculatePlanList.js
guanzhou-zhao/calculate-cabinet-plan
import React, { Component } from 'react'; import _ from 'lodash'; import Category from '../model/Category'; import CalculatePlanForm from './CalculatePlanForm' export default class ClaculatePlanList extends Component { constructor(props) { super(props); this.showCalculatePlanForm = this.showCalculatePlanForm...
src/components/pages/HomageToBarraganPage/index.js
RussHR/github_page_src
import React from 'react'; import ContentLayout from '../../layout/ContentLayout'; import VideoIFrame from '../../VideoIFrame'; export default function HomageToBarraganPage() { return ( <ContentLayout header="homage to Barrágan" subheader="completed - january 2017" ...
src/components/Dashboard/InstagramCard.js
jmporchet/bravakin-client
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import Swing from 'react-swing'; import { Direction } from 'swing'; import { connect } from 'react-redux'; import './card.css'; import KeyHandler, {KEYPRESS} from 'react-key-handler'; class InstagramCard extends Component { constructor(p...
pages/goodhart_campbell.js
mvasilkov/mvasilkov.ovh
import React from 'react' import Article from '../app/article' export const pagePath = 'goodhart_campbell' export const pageTitle = "Goodhart's law, Campbell's law" export default class extends React.Component { render() { return ( <Article path={pagePath} title={pageTitle}> <h...
server/sonar-web/src/main/js/apps/settings/components/DefinitionsList.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
packages/frint-react/src/components/observe.js
Travix-International/frint
/* eslint-disable import/no-extraneous-dependencies */ import React from 'react'; import PropTypes from 'prop-types'; import { BehaviorSubject } from 'rxjs/BehaviorSubject'; import composeHandlers from 'frint-component-utils/lib/composeHandlers'; import ObserveHandler from 'frint-component-handlers/lib/ObserveHandler'...
client/views/setupWizard/steps/FinalStep.stories.js
iiet/iiet-chat
import React from 'react'; import FinalStep from './FinalStep'; export default { title: 'views/setupWizard/steps/FinalStep', component: FinalStep, }; export const _default = () => <FinalStep logoSrc='https://open.rocket.chat/images/logo/logo.svg' />;
examples/todo/js/app.js
heracek/relay
/** * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNES...
packages/ringcentral-widgets/components/IconField/index.js
u9520107/ringcentral-js-widget
import React from 'react'; import PropTypes from 'prop-types'; import styles from './styles.scss'; export default function IconField(props) { return ( <div className={props.className}> <div className={styles.content}> {props.children} </div> <div className={styles.iconHolder}> ...
src/svg-icons/av/volume-down.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVolumeDown = (props) => ( <SvgIcon {...props}> <path d="M18.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM5 9v6h4l5 5V4L9 9H5z"/> </SvgIcon> ); AvVolumeDown = pure(AvVolumeDown); AvVolumeD...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestAndDefault.js
paweljedrzejczyk/create-react-app
/** * 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...
src/svg-icons/maps/local-printshop.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalPrintshop = (props) => ( <SvgIcon {...props}> <path d="M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"...
src/js/components/grid/grid_pagination.js
rafaelfbs/realizejs
import React, { Component } from 'react'; import PropTypes from '../../prop_types'; import { mixin } from '../../utils/decorators'; import { CssClassMixin } from '../../mixins'; import { Input, Pagination } from '../../components'; @mixin(CssClassMixin) export default class GridPagination extends Component { static...
src/svg-icons/device/battery-std.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryStd = (props) => ( <SvgIcon {...props}> <path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"/> </SvgIcon> ); D...
src/components/marker/index.js
datea/datea-webapp-react
import './marker.scss'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; import L from 'leaflet'; const MARKER_CONFIG = { width : 29, height : 42, defaultColor : '#28BC45', path : `M14.087,0.485c-7.566,0-13.694,6.133-13.698,13.695c0.027,3.938,2.02,8.328,4.637,10.87...
app/components/App.js
kensworth/olyranks
import React from 'react'; import Navbar from './Navbar'; import Footer from './Footer'; class App extends React.Component { render() { return ( <div> <Navbar history={this.props.history} /> {this.props.children} <Footer /> </div> ); } } export default App;
assets/jqwidgets/demos/react/app/datatable/aggregates/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDataTable from '../../../jqwidgets-react/react_jqxdatatable.js'; class App extends React.Component { render() { let source = { dataType: 'xml', dataFields: [ { name: 'Supp...
packages/idyll-document/src/components/author-tool.js
idyll-lang/idyll
import React from 'react'; import ReactTooltip from 'react-tooltip'; class AuthorTool extends React.PureComponent { constructor(props) { super(props); this.state = { isAuthorView: false, debugHeight: 0, componentHeight: 0, hasPressedButton: false }; this.handleClick = this.han...
lib/Navigation/Tabs/tabTwo/views/TabTwoScreenThree.js
Ezeebube5/Nairasense
import React from 'react'; import { View, Text } from 'react-native'; export default class TabTwoScreenThree extends React.Component { static navigationOptions = { tabBarLabel: 'Podcasts'} render() { return ( <View style={{ flex: 1, backgroundColor: 'white', alignItems: 'cente...
wrappers/json.js
waigo/waigo.github.io
import React from 'react'; import ApiTemplate from '../components/apiTemplate'; export default class Layout extends React.Component { render () { return <ApiTemplate page={this.props.route.page} />; } } Layout.propTypes = { route: React.PropTypes.object, };
src/components/Tabs/Tabs.stories.js
Galernaya20/galernaya20.com
// @flow import React from 'react' import {storiesOf} from '@storybook/react' import {TabsComponent} from './Tabs' import {tabs} from '../pages/Equipment/fixture' storiesOf('TabsComponent', module).add('default', () => <TabsComponent tabs={tabs} />)
src/Parser/ElementalShaman/Modules/Talents/Aftershock.js
mwwscott0/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatNumber } from 'common/format'; import Module from 'Parser/Core/Module'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; class Aftershock extends Module { refund = 0; on_ini...
ReactDialogBoxes.js
Apollo-11/react_dialog_boxes
import React from 'react'; /* usage import Msg from './ReactDialogBoxes'; <Msg ref={msg => {this.msg = msg;}}/> this.msg.alert('header', 'text' [,'buttonText']).then(() => { // code }); this.msg.confirm('header', 'text' [, 'okButtonText', 'cancelButtonText']).then(result => { // code }); this.ms...
js/jqwidgets/demos/react/app/formattedinput/righttoleftlayout/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxFormattedInput from '../../../jqwidgets-react/react_jqxformattedinput.js'; class App extends React.Component { render() { return ( <JqxFormattedInput width={250} height={25} radix={'binary'} rtl={true} ...
assets/js/application/src/imaginery/component/Imaginery.js
ominidi/ominidi.org
import React from 'react'; import PropTypes from 'prop-types'; import Triangles from '../animation/Triangles'; /** * Render a canvas where the animation will be paint. * * @author Gabriele D'Arrigo <darrigo.g@gmail.com> */ export default class Imaginery extends React.Component { constructor(props) { ...
src/desktop/apps/auction/components/artwork_browser/sidebar/MediumFilter.js
kanaabe/force
import _BasicCheckbox from './BasicCheckbox' import PropTypes from 'prop-types' import React from 'react' import _, { contains } from 'underscore' import block from 'bem-cn-lite' import { connect } from 'react-redux' import { updateMediumParams } from 'desktop/apps/auction/actions/artworkBrowser' // FIXME: Rewire let ...
app/javascript/mastodon/features/following/index.js
palon7/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchAccount, fetchFollowing, expandFollowing, } from '../../actions/account...
src/account.js
angustas/company
import React, { Component } from 'react'; import Sidebar from './common/sidebar'; import $ from 'jquery'; import { Icon,Card,Input,Button,message,Modal,Table,Tag} from 'antd'; import { hashHistory } from 'react-router'; export default class Account extends Component { constructor(props) { super(props); ...
app/javascript/mastodon/features/notifications/components/setting_toggle.js
koba-lab/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Toggle from 'react-toggle'; export default class SettingToggle extends React.PureComponent { static propTypes = { prefix: PropTypes.string, settings: ImmutablePropTypes.map.isReq...
docs/src/app/components/pages/components/List/ExampleSimple.js
hai-cea/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import ContentInbox from 'material-ui/svg-icons/content/inbox'; import ActionGrade from 'material-ui/svg-icons/action/grade'; import ContentSend from 'material-ui/svg-icons/content/send'; ...
client/pages/ImportExportJson.js
nb256/kanbanello
import React from 'react'; import { formElementsStyle } from '../styles/styles'; import { connect } from 'react-redux'; import actions from '../actions'; class ImportExportJson extends React.Component { handleFile() { const file = this.fileUpload.files[0]; const read = new FileReader(); read.readAsBina...
src/ButtonToolbar.js
reactstrap/reactstrap
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { mapToCssModules, tagPropType } from './utils'; const propTypes = { tag: tagPropType, 'aria-label': PropTypes.string, className: PropTypes.string, cssModule: PropTypes.object, role: PropTypes.string, }...
frontend/src/Settings/General/AnalyticSettings.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React from 'react'; import FieldSet from 'Components/FieldSet'; import FormGroup from 'Components/Form/FormGroup'; import FormInputGroup from 'Components/Form/FormInputGroup'; import FormLabel from 'Components/Form/FormLabel'; import { inputTypes, sizes } from 'Helpers/Props';...
src/components/icons/SkipIcon.js
austinknight/ui-components
import React from 'react'; const SkipIcon = (props) => { const outline = props.outline ? { fill: 'none', strokeLinejoin: 'round', strokeWidth: '0.8', stroke: 'currentColor' } : {}; return ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24"...
src/components/sidebar/hiveInfo/demandChart.js
beehive-spg/beehive-frontend
import React from 'react' import { XYPlot, LineSeries, XAxis, YAxis, HorizontalGridLines, VerticalGridLines, } from 'react-vis' import { graphql } from 'react-apollo' import { addHours, subHours, addMinutes, differenceInMinutes, differenceInSeconds, } from 'date-fns' import { statistics } from 'graphql/queri...
node_modules/react-bootstrap/es/Image.js
CallumRocks/ReduxSimpleStarter
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/pages/password-reset.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2015 Loki Education (Social Enterprise) This program 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, either version 3 of the License, o...
src/svg-icons/notification/phone-forwarded.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPhoneForwarded = (props) => ( <SvgIcon {...props}> <path d="M18 11l5-5-5-5v3h-4v4h4v3zm2 4.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26...
src/svg-icons/places/all-inclusive.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesAllInclusive = (props) => ( <SvgIcon {...props}> <path d="M18.6 6.62c-1.44 0-2.8.56-3.77 1.53L12 10.66 10.48 12h.01L7.8 14.39c-.64.64-1.49.99-2.4.99-1.87 0-3.39-1.51-3.39-3.38S3.53 8.62 5.4 8.62c.91 0 1.7...
src/routes/index.js
mortenryum/loanCalculator
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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 App from '../components/...
docs/src/examples/collections/Message/Variations/MessageExampleWarning.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Message } from 'semantic-ui-react' const MessageExampleWarning = () => ( <Message warning> <Message.Header>You must register before you can do that!</Message.Header> <p>Visit our registration page, then try again.</p> </Message> ) export default MessageExampleWarning
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/src/Popover.js
GoogleCloudPlatform/prometheus-engine
import React from 'react'; import classNames from 'classnames'; import TooltipPopoverWrapper, { propTypes } from './TooltipPopoverWrapper'; const defaultProps = { placement: 'right', placementPrefix: 'bs-popover', trigger: 'click', }; const Popover = (props) => { const popperClasses = classNames( 'popover...
src/Spinner.entry.js
giovanni0918/react-component-catalog
import React from 'react'; import { render } from 'react-dom'; import {Spinner} from './components/Spinner/Spinner'; render( <Spinner status="Loading"></Spinner>, document.getElementById('Spinner') );
client/src/components/Draftail/Tooltip/Tooltip.js
torchbox/wagtail
import PropTypes from 'prop-types'; import React from 'react'; const TOP = 'top'; const LEFT = 'left'; const TOP_LEFT = 'top-left'; const getTooltipStyles = (target, direction) => { const top = window.pageYOffset + target.top; const left = window.pageXOffset + target.left; switch (direction) { case TOP: ...
src/main/resources/code/react/Apps/Admin/components/ManageUsers/UserRow.js
artieac/technologyradar
'use strict' import React from 'react'; import ReactDOM from 'react-dom'; import Reflux from 'reflux'; import createReactClass from 'create-react-class'; import { Link } from 'react-router-dom'; import { connect } from "react-redux"; import RoleDropdownItem from "./RoleDropdownItem"; class UserRow extends React.Compon...
src/routes.js
xebia-studio/lv-oneprofile
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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 Router from 'react-routi...
src/ModalHeader.js
pivotal-cf/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalHeader extends React.Component { render() { return ( <div {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> { this.props.closeButton && <button cla...
core/src/plugins/gui.ajax/res/js/ui/HOCs/animations/make-motion.js
ChuckDaniels87/pydio-core
/** * Copyright (c) 2013-present, Facebook, Inc. All rights reserved. * * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCL...
src/components/MyNavbar.js
Korkemoms/amodahl.no
// @flow import React from 'react' import NavLink from '../components/NavLink' import NavIndexLink from '../components/NavIndexLink' import { Nav, Navbar, NavDropdown } from 'react-bootstrap' /* Purely presentational component */ const MyNavbar = (props: { user: Object, page: string }) => { const userSpeci...
src/views/WidgetList/widgets/Recommended/RecommendedWidget.js
GovReady/GovReady-Agent-Client
import React, { Component } from 'react'; import { PropTypes as PT } from 'prop-types'; import Accordion from 'react-bootstrap/lib/Accordion'; import Panel from 'react-bootstrap/lib/Panel'; class RecommendedWidget extends Component { recommendedList (plugins) { const header = (plugin) => { return ( ...
assets/javascripts/kitten/components/action/button-question-mark-icon/index.js
KissKissBankBank/kitten
import React from 'react' import { Button } from '../../action/button' import { QuestionMarkIcon } from '../../graphics/icons/question-mark-icon' export const ButtonQuestionMarkIcon = props => ( <Button modifier="helium" size="nano" rounded fit="icon" type="button" {...props} > <Questio...
es/components/PlaylistManager/SearchResults/SearchResultsList.js
welovekpop/uwave-web-welovekpop.club
import _jsx from "@babel/runtime/helpers/builtin/jsx"; import React from 'react'; import PropTypes from 'prop-types'; import MediaList from '../../MediaList'; import AddToPlaylistAction from '../../MediaList/Actions/AddToPlaylist'; var makeActions = function makeActions(onOpenAddMediaMenu) { return function (media, ...
src/svg-icons/image/grid-on.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageGridOn = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 20H4v-4h4v4zm0-6H4v-4h4v4zm0-6H4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6...
src/components/search-bar.js
codingkapoor/technology-jukebox
import React, { Component } from 'react'; import { Form, FormGroup, Input, Button } from 'reactstrap'; import AutoSuggest from 'react-autosuggest'; export default class SearchBar extends Component { constructor(props) { super(props); this.state = { value: '', suggestions: [] }; this.onF...
client/trello/src/app/routes/login/Login.js
Madmous/madClones
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { push } from 'react-router-redux'; import { Link } from 'react-router'; import { LoginForm } from './components/index'; import './Login.css'; const propTypes = { isAuthenticatingSuccessful: PropTypes.bool.isRequired, isAuthen...
test/test_helper.js
kevinw123/ReduxBlog
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
app/addons/replication/components/common-activity.js
popojargo/couchdb-fauxton
// 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 to in writing, software // distributed un...
src/components/App.js
hongalex/mining-visualizer
import React, { Component } from 'react'; import './App.css'; import pick from '../img/pick.png'; import Blockchain from './Blockchain'; class App extends Component { constructor(props) { super(props); this.state = { blockData: '' } }; updateBlockData = (event) => { this.setState({blockData: event....
src/svg-icons/alert/add-alert.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AlertAddAlert = (props) => ( <SvgIcon {...props}> <path d="M10.01 21.01c0 1.1.89 1.99 1.99 1.99s1.99-.89 1.99-1.99h-3.98zm8.87-4.19V11c0-3.25-2.25-5.97-5.29-6.69v-.72C13.59 2.71 12.88 2 12 2s-1.59.71-1.59 1.59v...
votrfront/js/router.js
fmfi-svt/votr
import PropTypes from 'prop-types'; import React from 'react'; import _ from 'lodash'; import $ from 'jquery'; export function trackPageView() { if (!window.ga) return; var current = location.protocol + '//' + location.hostname + location.pathname + location.search; if (current == trackPageView....