path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/star/ui/acceptBidbutton/AcceptBidSection.js
flysonic10/initial-celestial-offering
import React from 'react' import AcceptBidButton from './AcceptBidButtonContainer'; class AcceptBidSection extends React.Component { constructor(props) { super(props); this.state = { minAmount: 0 } } updateMinAmount() { this.setState({minAmount: this.refs.minAmount.value}); } render(...
src/Table/TableHeader.js
abouthiroppy/scuba
// @flow import type { CommonProps } from '../CommonTypes'; import React from 'react'; import classnames from 'classnames'; import excludeProps from '../utils/excludeProps'; import styles from './style'; const TableHeader = (props: CommonProps) => ( <thead {...excludeProps(props)} style={props.style} c...
frontend/webapp/js/Dashboard.js
damorton/lovat
import React from 'react'; import Navbar from '../js/Navbar' import Form from '../js/Form'; import EventList from '../js/EventList'; import TwitterApi from '../js/TwitterApi'; import CryptoCurrencies from '../js/CryptoCurrencies'; import WebsocketChat from '../js/WebsocketChat'; class App extends React.Component { co...
src/svg-icons/content/remove.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentRemove = (props) => ( <SvgIcon {...props}> <path d="M19 13H5v-2h14v2z"/> </SvgIcon> ); ContentRemove = pure(ContentRemove); ContentRemove.displayName = 'ContentRemove'; ContentRemove.muiName = 'SvgIcon...
docs/app/Examples/modules/Accordion/Types/AccordionExamplePanelsProp.js
vageeshb/Semantic-UI-React
import React from 'react' import { Accordion } from 'semantic-ui-react' import faker from 'faker' import _ from 'lodash' const panels = _.times(3, () => ({ title: faker.lorem.sentence(), content: faker.lorem.paragraphs(), })) const AccordionExamplePanelsProp = () => ( <Accordion panels={panels} /> ) export def...
src/client/components/pages/error.js
bookbrainz/bookbrainz-site
/* * Copyright (C) 2016 Daniel Hsing * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is dist...
src/containers/Navigation.js
houkah26/reddit-clone
import React, { Component } from 'react'; import NavItem from '../components/NavItem'; import './Navigation.css'; const filterSubs = (subs, filters) => { return subs.filter(sub => ( !checkNameForFilters(sub.data.display_name, filters) )) } const checkNameForFilters = (name, filters) => ( filters.some(filte...
docs/src/app/components/pages/components/Toggle/ExampleSimple.js
ArcanisCz/material-ui
import React from 'react'; import Toggle from 'material-ui/Toggle'; const styles = { block: { maxWidth: 250, }, toggle: { marginBottom: 16, }, thumbOff: { backgroundColor: '#ffcccc', }, trackOff: { backgroundColor: '#ff9d9d', }, thumbSwitched: { backgroundColor: 'red', }, trac...
docs/app/Examples/elements/Button/Variations/ButtonExampleVerticallyAttached.js
shengnian/shengnian-ui-react
import React from 'react' import { Button, Segment } from 'shengnian-ui-react' const ButtonExampleVerticallyAttached = () => ( <div> <Button attached='top'>Top</Button> <Segment attached> <img src='/assets/images/wireframe/paragraph.png' /> </Segment> <Button attached='bottom'>Bottom</Button> ...
src/svg-icons/device/signal-cellular-2-bar.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellular2Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/><path d="M14 10L2 22h12z"/> </SvgIcon> ); DeviceSignalCellular2Bar = pure(DeviceSignalCellular2Bar); Device...
mm-react/src/components/data/DataDownloaderSpawner.js
Ameobea/tickgrinder
//! A component to spawn a data downloader. import React from 'react'; import { connect } from 'dva'; import { Select, Button, Form } from 'antd'; const FormItem = Form.Item; const Option = Select.Option; import { dataDownloaders } from '../../utils/data_util'; class DataDownloaderSpawner extends React.Component { ...
app/containers/HtmlCanvasPage/index.js
Statfine/reactDemo
/** * Created by easub on 2017/3/8. */ import React from 'react'; import { RaisedButton } from 'material-ui'; import './html2canvas'; export default class HtmlCanvas extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function state = { cover: '', } handleClick = () => { html2...
frontend/components/NotFoundPage.js
heekzz/PowerHour
'use strict'; import React from 'react'; import { Link } from 'react-router'; /* * Component to display of the page doesn't exists */ export default class NotFoundPage extends React.Component { render() { return ( <div className="not-found"> <h1>404</h1> <h2>Page not found!</h2> ...
blog/src/components/menu-link.js
alcarney/stylo
import React from 'react' import { Link } from 'gatsby' export default function MenuLink({ title, path }) { return ( <div style={{ padding: `1rem` }}> <Link style={{ color: `white`, textDecoration: `none`, fontSize: `1.45rem` }} className="title" to={path}> {titl...
actor-apps/app-web/src/app/components/common/ConnectionState.react.js
luoxiaoshenghustedu/actor-platform
import React from 'react'; import classnames from 'classnames'; import ConnectionStateStore from 'stores/ConnectionStateStore'; const getStateFromStore = () => { return { connectionState: ConnectionStateStore.getState() }; }; class ConnectionState extends React.Component { constructor(props) { super(pro...
imports/ui/components/giveaways/giveaway-comments-card.js
irvinlim/free4all
import React from 'react'; import { Meteor } from 'meteor/meteor'; import Paper from 'material-ui/Paper'; import Divider from 'material-ui/Divider'; import TextField from 'material-ui/TextField'; import Toggle from 'material-ui/Toggle'; import FlatButton from 'material-ui/FlatButton'; import { Scrollbars } from 'react-...
examples/src/SongSelector.js
UniversalAvenue/react-sound
import React from 'react'; export default class SongSelector extends React.Component { render() { return <label> Select a song: {' '} <select value={this.props.songs.indexOf(this.props.selectedSong)} onChange={this.handleSongChange.bind(this)}> <option></option> {this.renderSong...
components/pages/WorkLoadOptimator.js
juhojo/WLO
import React, { Component } from 'react'; import SwipeableViews from 'react-swipeable-views'; import Banner from '../Banner.js'; import Footer from '../Footer.js'; import Knapsack from '../Knapsack.js'; import GraphTheory from '../GraphTheory.js'; export class WorkLoadOptimator extends Component { constructor(props...
blueocean-material-icons/src/js/components/svg-icons/content/unarchive.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ContentUnarchive = (props) => ( <SvgIcon {...props}> <path d="M20.55 5.22l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.15.55L3.46 5.22C3.17 5.57 3 6.01 3 6.5V19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.49-.17-.93-.45-1.28zM12 9.5l5.5 5....
information/blendle-frontend-react-source/app/modules/campaigns/module.js
BramscoChill/BlendleParser
import React from 'react'; import Auth from 'controllers/auth'; import { history } from 'byebye'; import { couponCampaigns as campaigns } from 'config/campaigns'; import { getLocale } from 'instances/i18n'; import NewsletterSignUpContainer from 'modules/campaigns/NewsletterSignUpContainer'; import CouponContainer from ...
docs/src/pages/guides/composition/LinkRouter.js
lgollut/material-ui
/* eslint-disable jsx-a11y/anchor-is-valid */ import React from 'react'; import { MemoryRouter as Router } from 'react-router'; import { Link as RouterLink } from 'react-router-dom'; import Link from '@material-ui/core/Link'; const LinkBehavior = React.forwardRef((props, ref) => ( <RouterLink ref={ref} to="/getting-...
src/components/contact-list/contact-list.js
HendrikThePendric/webpack-demo
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Reorder from 'react-reorder'; import Subheader from 'material-ui/Subheader'; import { getVisibleContacts } from '../../store'; import ContactListItem from './contact-list-item'; import { updateCustomSortOrder, setCurrentContact, sho...
client-portal/src/components/Body/TableExperiment/index.js
choiboi/web-scraper-architecture
import React, { Component } from 'react'; import classnames from 'classnames'; import ReactBootstrapTable from '../Table/ReactBootstrapTable'; import MaterialUITable from '../Table/MaterialUITable'; import ReactToolboxTable from '../Table/ReactToolboxTable'; class TableExperiment extends Component { render(...
src/components/common/svg-icons/social/mood-bad.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialMoodBad = (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 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c....
app/javascript/mastodon/features/follow_requests/components/account_authorize.js
kazh98/social.arnip.org
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Permalink from '../../../components/permalink'; import Avatar from '../../../components/avatar'; import DisplayName from '../../../components/display_name'; import IconButton from '../../../...
src/components/UserList/UserRow.js
u-wave/web
import cx from 'clsx'; import React from 'react'; import PropTypes from 'prop-types'; import Avatar from '../Avatar'; import Username from '../Username'; const UserRow = ({ className, user }) => ( <div className={cx('UserRow', className)}> <Avatar className="UserRow-avatar" user={user} /> <Us...
frontend/app/components/Nav/NavBar.js
briancappello/flask-react-spa
import React from 'react' import { compose } from 'redux' import { connect } from 'react-redux' import { withRouter } from 'react-router' import classnames from 'classnames' import { ROUTES } from 'routes' import NavLink from './NavLink' import './navbar.scss' class NavBar extends React.Component { constructor(pr...
js/app.js
clairefritz/todo
import 'babel-polyfill'; import App from './components/App'; import AppHomeRoute from './routes/AppHomeRoute'; import React from 'react'; import ReactDOM from 'react-dom'; import Relay from 'react-relay'; ReactDOM.render( <Relay.RootContainer Component={App} route={new AppHomeRoute()} onReadyStateChange...
client/components/display-ourPageHeader.js
VaRt-io/V-aRt
import React from 'react'; import {Link} from 'react-router-dom'; import {PageHeader} from 'react-bootstrap'; export default function OurPageHeader (props){ const currentGallery = props.currentGallery; const artistName = props.artistName; const artistId = props.artistId; return ( <PageHeader>{cu...
MobileApp/node_modules/react-native-elements/src/list/List.js
VowelWeb/CoinTradePros.com
import PropTypes from 'prop-types'; import React from 'react'; import { View, StyleSheet } from 'react-native'; import colors from '../config/colors'; const List = props => { const { children, containerStyle, ...attributes } = props; return ( <View style={[styles.listContainer, containerStyle && containe...
src/svg-icons/action/lock-outline.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLockOutline = (props) => ( <SvgIcon {...props}> <path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c...
analysis/warlockdestruction/src/CONFIG.js
yajinni/WoWAnalyzer
import React from 'react'; import SPECS from 'game/SPECS'; import CHANGELOG from './CHANGELOG'; export default { // The people that have contributed to this spec recently. People don't have to sign up to be long-time maintainers to be included in this list. If someone built a large part of the spec or contributed ...
src/svg-icons/device/access-alarm.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceAccessAlarm = (props) => ( <SvgIcon {...props}> <path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-...
src/components/cadeautip.js
yvanbister/WeddingSite
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Icon from './icon'; class Cadeautip extends Component { render() { return ( <div className="section-container" id="cadeautip"> <div className="cadeautip-container"> <h1>{this.props.language ? 'Idée cade...
src/shared/components/timeline/MomentPage.js
sbekti/path-web-client
import React from 'react' import ReactDOM from 'react-dom' import { Map, Set } from 'immutable' import request from 'superagent' import Moment from './Moment' class MomentPage extends React.Component { constructor(props) { super(props) this.state = { moments: Map(), locations: Map(), plac...
src/ui/elements/svg/Vignette.js
gouxlord/dev-insight
import React from 'react' var Vignette = React.createClass({ render: function () { return ( <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 347.676 350" preserveAspectRatio="xMinYMin meet"> <linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="28.45...
view/component/course3.js
leechuanjun/TLReactNativeProject
/** * Course 3 * React Native控件之Image组件讲解与美团首页顶部效果实例 * 模仿美团首页顶部分类效果 */ import React, { Component } from 'react'; import { StyleSheet, Text, View, Image, TouchableHighlight } from 'react-native'; import Util from '../utils'; import Icon from 'react-native-vector-icons/Ionicons'; export default...
src/components/CheckoutButton.js
longyarnz/WelFurnish-E-Commerce
import React from 'react'; export default function CheckoutButton (props) { const { actions } = props.actions; const number = actions.cart.length > 0 ? actions.cart.length : 0; const className = `${actions.appView.nav} checkout-button`; return ( <div className={className} onClick={actions.viewCart}> <spa...
spec/javascripts/jsx/context_cards/StudentContextTraySpec.js
djbender/canvas-lms
/* * Copyright (C) 2016 - 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...
src/ItemList.js
hannes-hochreiner/more-podcasts
import React, { Component } from 'react'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; import Chip from '@material-ui/core/Chip'; import IconButton from '@material-ui/core/IconButton'; import NewIcon from '@material-ui/icons/NewReleases'; import MoreVertIcon from '@mater...
app/javascript/mastodon/features/generic_not_found/index.js
codl/mastodon
import React from 'react'; import Column from '../ui/components/column'; import MissingIndicator from '../../components/missing_indicator'; const GenericNotFound = () => ( <Column> <MissingIndicator /> </Column> ); export default GenericNotFound;
src/components/shop/ShopMenu.js
mangal49/HORECA
import React from 'react'; import ListItem from 'material-ui/List/ListItem'; import History from 'material-ui/svg-icons/action/history'; import EuroSymbol from 'material-ui/svg-icons/action/euro-symbol'; import Extention from 'material-ui/svg-icons/action/add-shopping-cart'; import Store from 'material-ui/svg-icons/act...
app/SideBar/SideBar.js
RyanWangGit/poi
import React from 'react'; import PropTypes from 'prop-types'; import Paper from 'material-ui/Paper'; import AppBar from 'material-ui/AppBar'; import IconButton from 'material-ui/IconButton'; import MapsPlace from 'material-ui/svg-icons/maps/place'; import Scrollbars from 'react-custom-scrollbars'; import styles from '...
src/components/icons/RightArrowIcon.js
Galernaya20/galernaya20.com
/* eslint max-len: off */ import React from 'react' import {Svg} from '../Svg/Svg' export const RightArrowIcon = ({className}) => ( <Svg width="32" height="32" viewBox="0 0 451.846 451.847" className={className}> <path d="M345.441,248.292L151.154,442.573c-12.359,12.365-32.397,12.365-44.75,0c-12.354-12.354-12.354...
templates/rubix/rubix-bootstrap/src/Icon.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import classNames from 'classnames'; export default class Icon extends React.Component { static propTypes = { bundle: React.PropTypes.string, glyph: React.PropTypes.string.isRequired, }; render() { let _glyph = this.props.glyph || ""; let _bundle = this.props.bundle ||...
src/scripts/views/form/index.js
santtusulander/teamboard-client-react
import page from 'page'; import React from 'react'; import Broadcaster from '../../components/broadcaster'; import FormData from '../../views/form/form-map'; import BroadcastAction from '../../actions/broadcast'; import localeMixin from '../../mixins/locale'; /** * */ export default React.createClas...
admin/src/component/DateShow.js
zentrope/webl
// // Copyright (c) 2017 Keith Irwin // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published // by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // // This program is distri...
opentech/static_src/src/app/src/components/Transitions/SlideInRight.js
OpenTechFund/WebApp
import React from 'react' import PropTypes from 'prop-types'; import Transition from 'react-transition-group/Transition'; const SlideInRight = ({ children, in: inProp }) => { const duration = 250; const defaultStyle = { transition: `transform ${duration}ms ease-in-out`, transform: 'translate3...
src/components/d3charts/BarChart.js
nbuechler/ample-affect-exhibit
import React from 'react'; import d3 from 'd3'; import _ from 'underscore'; import DataSeries from '../d3components/DataSeries'; import Wrapper from '../d3components/Wrapper'; export default class BarChart extends React.Component { static defaultProps = { width: 500, height: 500 } constructor (props) {...
ajax/libs/recompose/0.20.0/Recompose.js
extend1994/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["Recompose"] = facto...
src/TableColumn.js
opensourcegeek/react-bootstrap-table
import React from 'react'; import Const from './Const'; class TableColumn extends React.Component{ constructor(props) { super(props); } shouldComponentUpdate(nextProps, nextState) { const { children } = this.props; let shouldUpdated = this.props.width !== nextProps.width || this.props.classNa...
src/scenes/home/header/burger/burger.js
tskuse/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import burger from 'images/icons/menu.svg'; import styles from './burger.css'; function Burger(props) { return ( <div className={styles.burger}> <a className="burger" href="/" onClick={props.onClick}><img src={burger} alt="" /></a> </div> ...
src/svg-icons/action/watch-later.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionWatchLater = (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 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z"/> </SvgIcon> ); ActionWatchLater = pure(Ac...
actor-apps/app-web/src/app/components/DialogSection.react.js
nguyenhongson03/actor-platform
import _ from 'lodash'; import React from 'react'; import { PeerTypes } from 'constants/ActorAppConstants'; import MessagesSection from 'components/dialog/MessagesSection.react'; import TypingSection from 'components/dialog/TypingSection.react'; import ComposeSection from 'components/dialog/ComposeSection.react'; i...
docs/src/NavMain.js
pandoraui/react-bootstrap
import React from 'react'; import { Link } from 'react-router'; import Navbar from '../../src/Navbar'; import Nav from '../../src/Nav'; const NAV_LINKS = { 'introduction': { link: 'introduction', title: 'Introduction' }, 'getting-started': { link: 'getting-started', title: 'Getting started' }, ...
web/static/js/app.js
applede/media-bot
import React, { Component } from 'react'; import Login from './login.jsx'; export class App extends Component { render() { return ( <div> <Login /> </div> ); } } React.render(<App />, document.getElementById('root'));
imports/client/ui/pages/NewEvent/loadable.js
focallocal/fl-maps
import React from 'react' import Loadable from 'react-loadable' const LoadableComponent = Loadable({ loader: () => import('./index'), render (loaded, props) { let Component = loaded.default return <Component { ...props } /> }, loading () { return <div /> } }) export default LoadableComponent
src/components/withViewport.js
mauphes/own-git-project
/** * 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, { Component } from 'react'; // eslint-disabl...
books-redux/components/app.js
vamc-anne/react-redux-poc
// Vendor(npm) Libraries import React from 'react'; import { Route, Link, Switch } from 'react-router-dom'; import { BASICCOMPONENTS } from './basicComponents'; import { BOOKS } from './booksScreen'; export class AppComponent extends React.Component { constructor(props) { super(); } componentDidMo...
client/src/components/sales/pricing-table.js
iNeedCode/mern-starter
import React, { Component } from 'react'; import { Link } from 'react-router'; class PricingTable extends Component { render() { const componentStyle = { backgroundColor: this.props.color || '#5BC0DE', color: this.props.fontColor || '#FFF', }; return ( <div className="pricing-table"> ...
src/client/auth/requireauth.react.js
sljuka/bucka-portfolio
import Component from '../components/component.react'; import React from 'react'; import {usersCursor} from '../state'; // Higher order component. // https://medium.com/@dan_abramov/mixins-are-dead-long-live-higher-order-components-94a0d2f9e750 export default function requireAuth(BaseComponent) { class Authenticate...
src/FieldSet.js
Codafication/react-schema-form
/** * Created by steve on 11/09/15. */ import React from 'react'; import utils from './utils'; import Number from './Number'; import Text from './Text'; import TextArea from './TextArea'; import Select from './Select'; import Radios from './Radios'; import Date from './Date'; import Checkbox from './Checkbox'; import...
source/components/Section/index.js
everydayhero/impact-board
import React from 'react' import css from 'cxsync' import * as styles from './styles' import connectTheme from '../../lib/connectTheme' const Section = ({ theme, id, className = {}, children }) => ( <section id={id} className={css({...styles.wrapper(theme), ...className})} > {children} </sect...
src/svg-icons/maps/directions-run.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsRun = (props) => ( <SvgIcon {...props}> <path d="M13.49 5.48c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-3.6 13.9l1-4.4 2.1 2v6h2v-7.5l-2.1-2 .6-3c1.3 1.5 3.3 2.5 5.5 2.5v-2c-1.9 0-3.5-1-4.3-2.4l...
node_modules/react-router/es/Prompt.js
juhov/travis-test
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
packages/components/src/DataViewer/Virtualized/TreeCellMeasurer/TreeCellMeasurer.component.js
Talend/ui
import React from 'react'; import PropTypes from 'prop-types'; import get from 'lodash/get'; import { CellMeasurer } from 'react-virtualized'; export default function TreeCellMeasurer({ index, parent, style, cellRenderer, className }) { return ( <CellMeasurer cache={get(parent, 'props.cache')} columnIndex={0}...
src/components/clojurescript/ReplOutputCljsFun.js
princejwesley/Mancy
import React from 'react'; import ReplOutput from '../../common/ReplOutput'; export default class ReplOutputCljsVal extends React.Component { constructor(props) { super(props); const type = this.props.token.type; const parts = type.split(/[\s.]/); this.type = parts[parts.length - 1]; } render() ...
react/dynamic-css/src/app/ProgressBar/index.js
kobeCan/practices
import React from 'react'; class ProgressBar extends React.Component { static defaultProps = { width: 100, btnW: 10, height: 5 } constructor (props) { super(props); this.state = { progress: 1 }; } handleScroll = (e) => { let obj = e.target; let { onscroll } = this.props; let sta...
imports/ui/components/Footer/Footer.js
hwillson/meteor-solr-demo
import React from 'react'; import moment from 'moment'; const Footer = () => { const year = moment().format('YYYY'); return ( <footer className="container"> <div className="row"> <div className="col-md-12 text-center"> Some Company &copy; {year} </div> </div> </footer>...
src/components/Sidebar.js
hedgepigdaniel/gnomocracy
import React from 'react' import { connect } from 'react-redux' import Link, { NavLink } from 'redux-first-router-link' import { goToPage } from '../actions' import styles from '../css/Sidebar' const Sidebar = ({ onClick, path }) => ( <div className={styles.sidebar}> <NavLink activeClassName={styles.active} exa...
wail-ui/loadingScreens/firstTime/components/javaCheck/downloadJDk/downloadDarwinJdk.js
N0taN3rd/wail
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import LinearProgress from 'material-ui/LinearProgress' import { branch, renderComponent } from 'recompose' import Flexbox from 'flexbox-react' import { namedUpdateKeys } from '....
src/static/containers/Root/Root.dev.js
Seedstars/django-react-redux-base
import React from 'react'; import { Provider } from 'react-redux'; import { ConnectedRouter } from 'react-router-redux'; import PropTypes from 'prop-types'; import routes from '../../routes'; import DevTools from './DevTools'; import App from '../../app'; export default class Root extends React.Component { stati...
js/components/footer/iconFooter.js
LetsBuildSomething/vmag_mobile
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Button, Footer, FooterTab, Text, Body, Left, Right, Icon } from 'native-base'; import { Actions } from 'react-native-router-flux'...
malax/src/modules/cesium/index.js
cseale/nasa-space-jockey
import React from 'react'; class Cesium extends React.Component { render() { return ( <div className="Lightbox"> <div className="Cesium"> <iframe src="https://space-cowboys-sat-view.glitch.me/" width="800" ...
src/components/withViewport.js
Fedulab/FeduLab
/** * 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, { Component } from 'react'; // eslint-disabl...
src/components/common/svg-icons/image/exposure-neg-1.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageExposureNeg1 = (props) => ( <SvgIcon {...props}> <path d="M4 11v2h8v-2H4zm15 7h-2V7.38L14 8.4V6.7L18.7 5h.3v13z"/> </SvgIcon> ); ImageExposureNeg1 = pure(ImageExposureNeg1); ImageExposureNeg1.displayName...
src/js/embedded.js
tangrams/tangram-play
// Polyfills import 'babel-polyfill'; import 'whatwg-fetch'; import 'url-search-params-polyfill'; // React import React from 'react'; import ReactDOM from 'react-dom'; // Libraries import Raven from 'raven-js'; // Components import AppEmbedded from './components/AppEmbedded'; // Redux import store from './store'; i...
src/svg-icons/social/plus-one.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPlusOne = (props) => ( <SvgIcon {...props}> <path d="M10 8H8v4H4v2h4v4h2v-4h4v-2h-4zm4.5-1.92V7.9l2.5-.5V18h2V5z"/> </SvgIcon> ); SocialPlusOne = pure(SocialPlusOne); SocialPlusOne.displayName = 'Social...
resources/assets/admin/components/utilities/UserInformation.js
DoSomething/northstar
import React from 'react'; import gql from 'graphql-tag'; import { isEmpty } from 'lodash'; export const UserInformationFragment = gql` fragment UserInformation on User { id displayName age emailPreview mobilePreview addrCity addrState } `; /** * Returns a readable City and State stri...
src/FilteredChatList/index.js
bolshchikov-public/wazzapp
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import './FilteredChatList.css'; import * as firebase from 'firebase/app'; import ChatListItem from '../ChatListItem'; class FilteredChatList extends Component { constructor() { super(); this.state = null; } componentWillMount...
Demo/src/components/Films.js
bspaulding/presentation-react-router-4-universal-links
import React, { Component } from 'react'; import { getFilms } from '../api/SWApi'; import ListView from './ListView'; class Films extends Component { render() { return ( <ListView loader={getFilms} name='films' /> ); } } export default Films;
src/svg-icons/av/closed-caption.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvClosedCaption = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 7H9.5v-.5h-2v3h2V13H11v1c0 .55-.45 1-1 1H7c-.55 0-1-.45-1-1v-4c0-.5...
stories/addons/dragAndDrop/props/onEventResize.stories.js
jquense/react-big-calendar
import React from 'react' import moment from 'moment' import { Calendar, momentLocalizer } from '../../../../src' import Basic from '../../../demos/exampleCode/resizable' import mdx from './onEventResize.mdx' export default { title: 'Addons/Drag and Drop/props', component: Calendar, parameters: { docs: { ...
src/components/errors/Errors.js
ello/webapp
import React from 'react' import PropTypes from 'prop-types' import { EditorialOverlay } from '../editorials/EditorialParts' import { css, media } from '../../styles/jss' import * as s from '../../styles/jso' import * as ENV from '../../../env' const spinGif = '/static/images/support/ello-spin.gif' const imageStyle =...
stories/props/resourceIdAccessor.stories.js
jquense/react-big-calendar
import React from 'react' import { Calendar } from '../../src' import { resourceAccessorStoryArgs } from './storyDefaults' import mdx from './resourceIdAccessor.mdx' export default { title: 'props', component: Calendar, argTypes: { localizer: { control: { type: null } }, events: { control: { type: null }...
src/index.js
c764023940/reactDemo
import 'babel-polyfill'; import injectTapEventPlugin from 'react-tap-event-plugin'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import configureStore from './store/configureStore'; import...
src/components/Timeline/Timeline.js
dantix/waterly
import React from 'react'; import { compose, withProps, withHandlers } from 'recompose'; import Swipeable from 'react-swipeable'; import format from 'date-fns/format'; import isToday from 'date-fns/is_today'; import isYesterday from 'date-fns/is_yesterday'; import cx from 'classnames'; import './Timeline.css'; const ...
packages/component/src/Middleware/ActivityStatus/Timestamp.js
billba/botchat
import { hooks } from 'botframework-webchat-api'; import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import AbsoluteTime from './AbsoluteTime'; import RelativeTime from './RelativeTime'; import useStyleSet from '../../hooks/useStyleSet'; const { useStyleOptions } = hoo...
dashboard-ui/app/components/analytics/storageAnalytics.js
CloudBoost/cloudboost
/** * Created by Darkstar on 11/29/2016. */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Chart from 'chart.js'; export class StorageAnalytics extends React.Component { static propTypes = { analyticsStorage: PropTypes.shape({ usage: PropTypes...
client/components/AppMenu/index.js
dnshi/rrwkg
import React from 'react' import classNames from 'classnames' import _appMenu from './appMenu.scss' // import { Link } from 'react-router' import NavLink from './NavLink' export default function AppMenu() { let style = { backgroundImage: 'url("http://www.adiumxtras.com/images/thumbs/dango_menu_bar_icon_set_11_1...
docs/src/app/components/pages/components/Card/ExampleWithoutAvatar.js
pradel/material-ui
import React from 'react'; import {Card, CardActions, CardHeader, CardText} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; const CardExampleWithoutAvatar = () => ( <Card> <CardHeader title="Without Avatar" subtitle="Subtitle" actAsExpander={true} showExpandableB...
blueprints/dumb/files/__root__/components/__name__/__name__.js
Rkiouak/react-redux-python-stocks
import React from 'react' type Props = { }; export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } export default <%= pascalEntityName %>
src/scenes/home/faq/question/question.js
tal87/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import styles from './question.css'; const Question = ({ q, a }) => ( <div className={styles.accordionSingle}> <input className={styles.accordionSingleHidden} type="checkbox" id={q} /> <label className={styles.accordionSingleQuestion} htmlFor={q}...
react/features/prejoin/components/PrejoinThirdParty.js
gpolitis/jitsi-meet
// @flow import React, { Component } from 'react'; import { translate } from '../../base/i18n'; import { isVideoMutedByUser } from '../../base/media'; import { PreMeetingScreen } from '../../base/premeeting'; import { connect } from '../../base/redux'; import { getLocalJitsiVideoTrack } from '../../base/tracks'; impo...
src/components/Header/Header.js
nicolasmoise/CMC-2
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Header.css'; import withStyles from '../../decorators/withStyles'; import Link from '../Link'; import Navigation from '../Navigation'; @withStyles(styles) class Header extends Compo...
src/universal/components/Loader/index.js
sanchitgangwar/remind-plus
import React, { Component } from 'react'; import { CircularProgress } from 'material-ui/Progress'; import styles from './index.css'; import LogoSmall from '../../../../assets/images/LogoSmall_131.png'; class Loader extends Component { render() { return ( <div className={styles.container}> ...
src/scripts/components/page/Page.component.js
kodokojo/kodokojo-ui-commons
/** * Kodo Kojo - Software factory done right * Copyright © 2017 Kodo Kojo (infos@kodokojo.io) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at ...
admin/client/App/shared/CreateForm.js
sendyhalim/keystone
/** * The form that's visible when "Create <ItemName>" is clicked on either the * List screen or the Item screen */ import React from 'react'; import assign from 'object-assign'; import vkey from 'vkey'; import AlertMessages from './AlertMessages'; import { Fields } from 'FieldTypes'; import InvalidFieldType from '...
src/parser/warlock/demonology/modules/talents/FromTheShadows.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Enemies from 'parser/shared/modules/Enemies'; import Events from 'parser/core/Events'; import calculateEffectiveDamage from 'parser/core/calculateEffectiveDamage'; import SPELLS from 'common/SPELLS'; import { formatTho...
app/javascript/mastodon/features/ui/components/column.js
honpya/taketodon
import React from 'react'; import ColumnHeader from './column_header'; import PropTypes from 'prop-types'; import { debounce } from 'lodash'; import { scrollTop } from '../../../scroll'; import { isMobile } from '../../../is_mobile'; export default class Column extends React.PureComponent { static propTypes = { ...