path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/components/Header/HeaderComponent.js
TriPSs/popcorn-time-desktop
// @flow import React from 'react' import { withRouter } from 'react-router' import { Link } from 'react-router-dom' import classNames from 'classnames' import logoImage from 'images/logo.png' import * as HomeConstants from 'components/Home/HomeConstants' import classes from './Header.scss' import type { Props } from ...
src/svg-icons/communication/import-export.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationImportExport = (props) => ( <SvgIcon {...props}> <path d="M9 3L5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3z"/> </SvgIcon> ); CommunicationImportExport = pure(CommunicationImpo...
src/svg-icons/action/record-voice-over.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRecordVoiceOver = (props) => ( <SvgIcon {...props}> <circle cx="9" cy="9" r="4"/><path d="M9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4zm7.76-9.64l-1.68 1.69c.84 1.18.84 2.71 0 3.89l1.68 1.69c2.02-2....
client/views/omnichannel/agents/RemoveAgentButton.js
VoiSmart/Rocket.Chat
import { Table, Icon, Button } from '@rocket.chat/fuselage'; import { useMutableCallback } from '@rocket.chat/fuselage-hooks'; import React from 'react'; import DeleteWarningModal from '../../../components/DeleteWarningModal'; import { useSetModal } from '../../../contexts/ModalContext'; import { useToastMessageDispat...
docs/client.js
xiaoking/react-bootstrap
import 'bootstrap/less/bootstrap.less'; import './assets/docs.css'; import './assets/style.css'; import './assets/carousel.png'; import './assets/logo.png'; import './assets/favicon.ico'; import './assets/thumbnail.png'; import './assets/thumbnaildiv.png'; import 'codemirror/mode/htmlmixed/htmlmixed'; import 'codemir...
src/components/groups/AffectSummaryLaggerRowTableGroup.js
nbuechler/ample-affect-exhibit
import React from 'react'; import DivList from '../lists/DivList' export default class AffectSummaryLaggerRowTableGroup extends React.Component { constructor (props) { super(props); } render () { let array = this.props.data; let i = this.props.iterator; return ( <tr key={i + '-affect-ro...
src/svg-icons/maps/flight.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsFlight = (props) => ( <SvgIcon {...props}> <path d="M10.18 9"/><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/> </SvgIcon>...
packages/vx-shape/src/shapes/LinePath.js
Flaque/vx
import React from 'react'; import cx from 'classnames'; import { line } from 'd3-shape'; import { curveLinear } from '@vx/curve'; import additionalProps from '../util/additionalProps'; export default function LinePath({ data, xScale, yScale, x, y, defined = () => true, className, stroke = 'steelblue', ...
hw7-frontend/src/components/article/article.js
lanyangyang025/COMP531
import React from 'react' import { connect } from 'react-redux' import { Comment } from './comment' import { AddComment } from './addComment' import { searchKeyword,showComments,addArticle,addComments,editPost } from './articleActions' //content of a card export const Article = ({ count, article, _id, author, date, t...
src/static/containers/NotFound/index.js
AdrienAgnel/testDjangoApp
import React from 'react'; export default class NotFoundView extends React.Component { render() { return ( <div> <h1>NOT FOUND</h1> </div> ); } }
internals/templates/containers/HomePage/index.js
fascinating2000/productFrontend
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
src/components/Tree/Tree.js
wundery/wundery-ui-react
import React from 'react'; import TreeItem from './TreeItem'; class Tree extends React.Component { static propTypes = { // Tree data, see docs data: React.PropTypes.oneOfType([ React.PropTypes.array, React.PropTypes.object, ]).isRequired, // Triggered on item click onItemClick: React...
examples/huge-apps/routes/Course/components/Course.js
arbas/react-router
import React from 'react'; import Dashboard from './Dashboard'; import Nav from './Nav'; var styles = {}; styles.sidebar = { float: 'left', width: 200, padding: 20, borderRight: '1px solid #aaa', marginRight: 20 }; class Course extends React.Component { render () { let { children, params } = this.pro...
app/javascript/mastodon/features/ui/components/link_footer.js
d6rkaiz/mastodon
import { connect } from 'react-redux'; import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage, defineMessages, injectIntl } from 'react-intl'; import { Link } from 'react-router-dom'; import { invitesEnabled, version, repository, source_url } from 'mastodon/initial_state'; import { log...
src/routes/Simon/containers/PlayingView.js
dimitrisafendras/multiGame
import React from 'react' import { bindActionCreators } from 'redux' import { createStore } from 'redux' import { connect } from 'react-redux' import { Pads } from '../containers/Pads' import { startGame, reset } from '../modules/actions' import './PlayingView.scss' const buttonStyle = { border: '2px solid #a1a1a1',...
app/containers/HomePage/index.js
joegattnet/joegatt.net-client
/* * HomePage * * This is the first thing users see of our App, at the '/' route */ import React from 'react'; import Helmet from 'react-helmet'; import { FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { makeSelectNotes, mak...
src/routes/Signup/components/SignupForm/SignupForm.js
skylus/tom-rrf
import React from 'react' import PropTypes from 'prop-types' import { Field, reduxForm } from 'redux-form' import RaisedButton from 'material-ui/RaisedButton' import { TextField } from 'redux-form-material-ui' import { required, validateEmail } from 'utils/form' import { SIGNUP_FORM_NAME } from 'constants' import class...
milestones/03-inline-styles/After/src/index.js
jaketrent/react-drift
import React from 'react' import ReactDOM from 'react-dom' import DriftApp from './app.js' ReactDOM.render(<DriftApp />, document.getElementById('app'))
app/core.js
Cu7ious/Twitch-App
import React from 'react' import { render } from 'react-dom' import { createStore, combineReducers, applyMiddleware } from 'redux' import { Provider } from 'react-redux' import App from './components/App' import * as reducers from './reducers' import thunk from 'redux-thunk' // ** EDUCATIONAL ** // // ping middleware ...
src/main/jsx/client/BuildMetricsPageActions.js
dimacus/DotCi
import ReactDOM from 'react-dom'; import React from 'react'; import BuildMetricsPage from './../pages/BuildMetricsPage.jsx'; import {job} from './../api/Api.jsx'; import {removeFilter,addFilter} from './../api/Api.jsx'; import Drawer from './../Drawer.jsx'; function dataChange(buildMetrics){ ReactDOM.render(<Build...
imports/ui/components/organisms/AppNavigation/PublicNavigation.js
latotty/meteor-sweeper
import React from 'react'; import { LinkContainer } from 'react-router-bootstrap'; import { Nav, NavItem } from 'react-bootstrap'; export const PublicNavigation = () => ( <Nav pullRight> <LinkContainer to="signup"> <NavItem eventKey={1} href="/signup">Sign Up</NavItem> </LinkContainer> <LinkContain...
archimate-frontend/src/main/javascript/components/view/edges/model/accessRelationship.js
zhuj/mentha-web-archimate
import React from 'react' import { ModelLinkWidget } from '../BaseLinkWidget' export const TYPE='accessRelationship'; export class AccessRelationshipWidget extends ModelLinkWidget { getBaseClassName(link) { switch (this.props.conceptInfo['access']) { case "r": return TYPE + " r"; case "w": return TY...
definitions/npm/fixed-data-table-2_v0.7.x/flow_v0.47.x-v0.52.x/test_fixed-data-table-2_v0.7.x.js
splodingsocks/FlowTyped
/* @flow */ import React from 'react'; import {Cell, Column, ColumnGroup, Table} from 'fixed-data-table-2'; let cell = <Cell/>; cell = <Cell onColumnResize={(left, width, minWidth, maxWidth, columnKey, event) => {event.target;}}/>; // $FlowExpectedError cell = <Cell onColumnResize={(left, width, minWidth, maxWidth, co...
node_modules/react-bootstrap/es/Clearfix.js
GregSantulli/react-drum-sequencer
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/components/Pomodoro/Pomodoro.js
allanesquina/react-pomodoro
import React from 'react' import classes from './Pomodoro.scss' import ActionButton from './ActionButton' import AlertBox from './AlertBox' import Timer from './Timer' const Audio = window.Audio || (() => false) const START_LABEL = 'Start' const STOP_LABEL = 'Stop' const RESET_LABEL = 'Reset' const POMODORO_TIME = 25 ...
frontend/src/Components/Link/SpinnerErrorButton.js
lidarr/Lidarr
import _ from 'lodash'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Icon from 'Components/Icon'; import SpinnerButton from 'Components/Link/SpinnerButton'; import { icons, kinds } from 'Helpers/Props'; import styles from './SpinnerErrorButton.css'; function getTestResult(error)...
components/GameListing.js
turntwogg/final-round
import React from 'react'; import Card from './Card'; import Ratio from './Ratio'; import Image from './Image'; import FollowButton from './FollowButton'; const GameListing = ({ game }) => { const { fieldGameCardImage, fieldGameSlug, name, description } = game; const cardMedia = fieldGameCardImage && ( <Ratio...
app/javascript/mastodon/features/standalone/compose/index.js
kirakiratter/mastodon
import React from 'react'; import ComposeFormContainer from '../../compose/containers/compose_form_container'; import NotificationsContainer from '../../ui/containers/notifications_container'; import LoadingBarContainer from '../../ui/containers/loading_bar_container'; import ModalContainer from '../../ui/containers/mo...
src/components/test/HeatmapTest.js
opiskelija-dashboard/dashboard
import test from 'ava'; import React from 'react'; import {shallow, mount} from 'enzyme'; import ReactDOM from 'react-dom'; import Heatmap from '../Heatmap'; import CalendarHeatmap from "react-calendar-heatmap"; test.skip('renders without crashing', t => { const wrapper = shallow( <Heatmap endDate={new Da...
src/decorators/withViewport.js
ycjonlin/voca-toca
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from '../../node_modules/react/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height:...
src/views/card.js
jessy1092/react-semantify
import React from 'react'; import filter from '../filter'; import Div from '../commons/div'; const defaultClassName = 'ui card'; const componentName = 'Card'; const Card = new filter(Div) .classGenerator(defaultClassName) .getComposeComponent(componentName); export default Card;
src/svg-icons/image/grid-on.js
frnk94/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/Button/ButtonDeprecated.js
Barylskyigb/simple-debts-react-native
import React, { Component } from 'react'; import { Text, View, Platform, ActivityIndicator, ViewPropTypes } from 'react-native'; import PropTypes from 'prop-types'; import TouchableArea from '../TouchableArea/TouchableArea'; import styles from './Button.styles'; import * as colors from '../../utils/colors'; const isIO...
index.android.js
xclassworks/bmobileclient
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, ListView, NativeModules } from 'react-native'; import App from './app/component/App'; class bmobileclient extends Component { render() { return ( <App /> ); } } AppRegi...
src/js/components/PortfolioSixPic.js
hadnazzar/ModernBusinessBootstrap-ReactComponent
import React from 'react'; export default class PortfolioSixPic extends React.Component { render() { return( <div class="container"> <div class="row"> <div class="col-lg-12"> <h2 class="page-header">Portfolio Heading</h2> </div> ...
app/components/Manage.js
hlynn93/basic_ims
import React, { Component } from 'react'; import { Menu, Segment } from 'semantic-ui-react'; import { RestockForm, UpdateForm, CreateForm } from './AddComponents'; const RESTOCK = 'restock'; const EDIT = 'edit'; const CREATE = 'create'; const initialState = { item: {}, activeTab: EDIT }; class Manage extends Co...
src/js/components/nodes/registerNodes/driverFields/PXEAndIPMITool.js
knowncitizen/tripleo-ui
/** * Copyright 2017 Red Hat Inc. * * 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...
src/icons/IosCloudy.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosCloudy extends React.Component { render() { if(this.props.bare) { return <g> <style type="text/css"> .st0{fill:#010101;} </style> <path class="st0" d="M244,160c-43,0-78.3,35.2-78.3,78.5c0,2.6,0.1,5.2,0....
src/index.js
kad3nce/react-transform-boilerplate
import React from 'react'; import { App } from './App'; React.render(<App />, document.getElementById('root'));
src/svg-icons/image/timelapse.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTimelapse = (props) => ( <SvgIcon {...props}> <path d="M16.24 7.76C15.07 6.59 13.54 6 12 6v6l-4.24 4.24c2.34 2.34 6.14 2.34 8.49 0 2.34-2.34 2.34-6.14-.01-8.48zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.4...
examples/index.android.js
Recr0ns/react-native-material-switch
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import Switch from 'react-native-material-switch'; export default class examples extends Component { render() { return ( <View style={styles.container}> <Text style={styles.title}>{...
spec/javascripts/jsx/external_apps/components/DuplicateConfirmationFormSpec.js
djbender/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...
docs/src/PropTable.js
tonylinyy/react-bootstrap
import merge from 'lodash/object/merge'; import React from 'react'; import Label from '../../src/Label'; import Table from '../../src/Table'; let cleanDocletValue = str => str.trim().replace(/^\{/, '').replace(/\}$/, ''); function getPropsData(componentData, metadata){ let props = componentData.props || {}; i...
src/app/components/graphs/vectormap/VectorMap.js
backpackcoder/world-in-flames
import React from 'react' var VectorMap = React.createClass({ componentDidMount: function(){ var data = this.props.data; // $(this.getHold()).vectorMap({ // map: 'world_mill_en', // backgroundColor: '#fff', // regionStyle: { // initial: { ...
src/components/ExternalLink.js
joshforisha/fred-talks
import Color from 'lib/Color'; import PropTypes from 'prop-types'; import React from 'react'; import styled from 'styled-components'; const Link = styled.a` color: ${Color.Fuchsia}; cursor: pointer; text-decoration: underline; transition: color 100ms ease-out; :hover { color: ${Color.Purple}; } `; ex...
plugins/Files/js/components/searchfield.js
NebulousLabs/New-Sia-UI
import PropTypes from 'prop-types' import React from 'react' const SearchField = ({ searchText, path, actions }) => { const onSearchChange = e => actions.setSearchText(e.target.value, path) return ( <div className='search-field'> <input value={searchText} autoFocus onChange={onSearchChange} /> <i c...
lib/pages/index.js
adjohnston/react-css-modules-postcss-jspm-example
import React from 'react'; import ActionButton from '../atoms/action-button'; class IndexPage extends React.Component { render() { return ( <main role="main"> <ActionButton className="primary" text="Primary Button" /> <ActionButton className="warning"...
app/containers/ProjectSelector.js
arwilczek90/OpenPresenter
/** * Created by awilczek on 1/22/17. */ import React from 'react'; import PageWrapper from '../components/PageWrapper'; import ProjectSelectorButtons from '../components/ProjectSelectorButtons'; export default class ProjectSelector extends React.Component { constructor(props, context) { super(props, context);...
src/components/case-study/single/templates/cnbc/profit.js
adrienhobbs/redux-glow
import React from 'react'; import BaseTemplate from '../base-study-template'; import AboutSection from '../../../content-modules/about.js'; // import styles from './profit.css'; export class Profit extends BaseTemplate { static propTypes = { data: React.PropTypes.object }; constructor (props) { super(p...
app/js/pages/search-page.js
workco/hackathon-talent
'use strict'; import React from 'react'; import DocumentTitle from 'react-document-title'; import { Link } from 'react-router'; import Search from '../components/search'; export default React.createClass({ render() { return ( <DocumentTitle title="Search"> <Search/> </DocumentTitle> ); ...
src/elements/Placeholder/Placeholder.js
Semantic-Org/Semantic-UI-React
import cx from 'clsx' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, customPropTypes, getElementType, getUnhandledProps, useKeyOnly, } from '../../lib' import PlaceholderHeader from './PlaceholderHeader' import PlaceholderImage from './PlaceholderImage' import Placeholde...
fields/types/code/CodeField.js
michaelerobertsjr/keystone
import _ from 'lodash'; import CodeMirror from 'codemirror'; import Field from '../Field'; import React from 'react'; import { findDOMNode } from 'react-dom'; import { FormInput } from 'elemental'; import classnames from 'classnames'; /** * TODO: * - Remove dependency on underscore */ // See CodeMirror docs for AP...
src/components/arrowRight/index.js
treeok/react-es6-webpack
// react import React from 'react'; import Template from './template.jsx'; const ArrowRight = React.createClass({ render: Template }); export default ArrowRight;
app/javascript/mastodon/containers/compose_container.js
rainyday/mastodon
import React from 'react'; import { Provider } from 'react-redux'; import PropTypes from 'prop-types'; import configureStore from '../store/configureStore'; import { hydrateStore } from '../actions/store'; import { IntlProvider, addLocaleData } from 'react-intl'; import { getLocale } from '../locales'; import Compose f...
examples/react/src/ErrorBoundary.js
rollbar/rollbar.js
import React from 'react'; class ErrorBoundary extends React.Component { constructor(props) { super(props); this.state = { hasError: false }; } static getDerivedStateFromError(error) { // Update state so the next render will show the fallback UI. return { hasError: true }; } componentDidCat...
src/App.js
nolanlawson/react-wheel-jank-demo
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import logo from './logo.svg'; import './App.css'; import { times, noop } from 'lodash'; function wait(time) { var startTime = (new Date()).getTime(); var endTime = startTime + time; while ((new Date()).getTime() < endTime) { // wait...
app/javascript/mastodon/features/compose/components/poll_form.js
MitarashiDango/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import IconButton from 'mastodon/components/icon_butt...
docs/src/components/Docs/DataConversion/index.js
jpuri/react-draft-wysiwyg
/* @flow */ import React from 'react'; import Codemirror from 'react-codemirror'; import { RawEditorStateLink } from '../Props/EditorStateProp'; export default () => ( <div className="docs-section"> <h2>Data Conversion</h2> <h3>JSON</h3> <div className="docs-desc top-margined"> <RawEditorStateLink...
app/jsx/gradezilla/default_gradebook/components/LatePolicyGrade.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...
site/components/StaticHTMLBlock.js
longlho/react-dnd
import React, { Component } from 'react'; import CodeBlock from './CodeBlock'; export default class StaticHTMLBlock extends Component { static propTypes = { html: React.PropTypes.string.isRequired }; render() { const { html } = this.props; // Here goes a really hack-ish way to convert // areas ...
src/decorators/withViewport.js
RenRenTeam/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default si...
frontend/src/components/article/article-container/index.js
loganabsher/portfolio
'use strict'; import React from 'react'; import {connect} from 'react-redux'; import propTypes from 'prop-types'; import ArticleForm from '../../forms/article-form'; import ArticleTemplate from '../../templates/article-template'; import {articleCreateRequest, articleFetchRequest} from '../../../../actions/article-ac...
app/react-icons/fa/stethoscope.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaStethoscope extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m33.1 15.7q0-0.6-0.5-1t-1-0.4-1 0.4-0.4 1 0.4 1 1 0.4 1-0.4 0.5-1z m2.8 ...
examples/src/views/ToolBarView.js
LayGit/layui
import React from 'react' import { Container, ToolBar, Icon } from 'layui' const ToolBarItem = ToolBar.Item export default class ToolBarView extends React.Component { render () { return ( <div> <Container></Container> <ToolBar activeIndex={0}> <ToolBarItem icon={<Icon name="home" ...
src/index.js
hacklag/hacklag-website
// Global styles import 'styles/styles.css'; import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import App from 'views/App'; const $root = document.getElementById('root'); window.drift.load(DRIFT_WRITE_KEY); window.fbq('init', PIXEL_WRITE_KEY); window.ga('cr...
App/src/Event.js
hgoldwire/bikewatch
import React from 'react'; import PropTypes from 'prop-types'; import {StyleSheet, Text, View,} from 'react-native'; export class Event extends React.Component { shouldComponentUpdate(nextProps) { return this.props.event.id !== nextProps.event.id; } render() { const {event} = this.props; ...
js/DeleteDictionaryDialog.js
dmitriykovalev/slovareg
import React from 'react'; import {Button, Modal} from 'react-bootstrap'; const DeleteDictionaryDialog = React.createClass({ propTypes: { show: React.PropTypes.bool.isRequired, onDone: React.PropTypes.func.isRequired, onHide: React.PropTypes.func.isRequired, name: React.PropTypes.string, }, han...
classic/src/scenes/mailboxes/src/Scenes/AppScene/Sidelist/SidelistControls/SidelistControlDownloads/SidelistControlDownloads.js
wavebox/waveboxapp
import React from 'react' import SidelistControl from '../SidelistControl' import { settingsStore } from 'stores/settings' import { localHistoryStore } from 'stores/localHistory' import shallowCompare from 'react-addons-shallow-compare' import { UISettings } from 'shared/Models/Settings' import { withStyles } from '@ma...
projects/lost-text-mining/viz2/src/components/ButtonGroup/index.js
ebemunk/blog
import React from 'react' import classnames from 'classnames' import css from './ButtonGroup.css' export default function ButtonGroup({ options, onChange, selected, ...other }) { return ( <div className={css.wrapper} {...other}> {options.map(opt => ( <button children={opt.name} ...
node_modules/rc-slider/es/common/createSlider.js
prodigalyijun/demo-by-antd
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/help...
packages/zensroom/lib/components/rooms/RoomsNewPage.js
SachaG/Zensroom
/* Page for inserting a new room */ import React from 'react'; import { Components, registerComponent } from 'meteor/vulcan:core'; import { FormattedMessage } from 'meteor/vulcan:i18n'; // import RoomsNewForm from './RoomsNewForm'; const RoomsNewPage = () => <div className="page"> <h2 className="page-title"...
react-flux-mui/js/material-ui/src/svg-icons/navigation/first-page.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationFirstPage = (props) => ( <SvgIcon {...props}> <path d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"/> </SvgIcon> ); NavigationFirstPage = pure(NavigationFirstPage); NavigationFirstPag...
src/index.js
mathieulesniak/react-starter-kit
import React from 'react'; import { render } from 'react-dom'; import { Router, browserHistory } from 'react-router'; import { Provider } from 'react-redux'; import routes from './routes'; import configureStore from './store'; const store = configureStore(); render( <Provider store={store}> <Router history={br...
node_modules/react-router-dom/es/Link.js
aggiedefenders/aggiedefenders.github.io
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 = {...
client/component/redirect-edit/action/index.js
johngodley/redirection
/** * External dependencies */ import React from 'react'; /** * Internal dependencies */ import ActionLogin from './login'; import ActionUrl from './url'; import ActionUrlFrom from './url-from'; import { MATCH_URL, MATCH_LOGIN, MATCH_PAGE, hasUrlTarget, getMatchState, } from 'state/redirect/selector'; fun...
doc/workshop-react-laborator-11-12/solutie/my-dogs/src/index.js
bmnicolae/laborator-tehnici-web
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import reportWebVitals from './reportWebVitals'; ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getElementById('root') ); // If you want to start measuring performance in yo...
src/PaginationBox.js
panacholn/pagination
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; import PaginationItem from './PaginationItem'; class PaginationBox extends Component { handlePreviousPage = () => { if (this.props.page > 1) { return this.props.page - 1; } return this...
src/component/SkillsList.js
Valtena/valt-code
import React from 'react'; import MDLComponent from '../utils/MDLComponent.js'; import Skill from './Skill.js'; class SkillsList extends MDLComponent { render() { return ( <div className="skillsList"> <h2>{this.props.title}</h2> <ul className="mdl-list"> {this.props.items.map((ite...
src/svg-icons/maps/store-mall-directory.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsStoreMallDirectory = (props) => ( <SvgIcon {...props}> <path d="M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z"/> </SvgIcon> ); MapsStoreMallDirectory = pure(MapsStoreMallDirec...
client/modules/Exercise/components/ExerciseListItem.js
Danielbook/liftinglog
import React from 'react'; import PropTypes from 'prop-types'; import SetList from '../../Set/components/SetList'; import IconButton from 'material-ui/IconButton'; import ContentRemoveCircle from 'material-ui/svg-icons/content/remove-circle-outline'; import ContentAddCircle from 'material-ui/svg-icons/content/add-circl...
src/client/story_list.js
Ribeiro/hacker-menu
import React from 'react' import Story from './story.js' import _ from 'lodash' export default class StoryList extends React.Component { render () { var onUrlClick = this.props.onUrlClick var onMarkAsRead = this.props.onMarkAsRead var storyNodes = _.map(this.props.stories, function (story, index) { ...
src/components/FormItem/FormItem.js
wfp/ui
import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; import settings from '../../globals/js/settings'; const { prefix } = settings; const FormItem = ({ className, children, invalid, ...other }) => { const classNames = classnames( `${prefix}--form-item`, { ...
src/js/components/icons/base/PlatformSolaris.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
views/blocks/SearchBar/SearchBarParams/SearchBarParams.js
MozalovPavel/team5
import React from 'react'; import ImagesCountControl from './../../ImagesCountControl/ImagesCountControl'; import DropDownButton from './../../DropDownButton/DropDownButton'; import './SearchBarParams.css'; import Item from './Item'; import b from 'b_'; function itemWithDropDownButton(className, param, params) { r...
assets/jqwidgets/demos/react/app/input/autocomplete/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxInput from '../../../jqwidgets-react/react_jqxinput.js'; class App extends React.Component { render() { let source = (query, response) => { let dataAdapter = new $.jqx.dataAdapter ( { ...
docs/src/pages/components/popover/PopoverPopupState.js
lgollut/material-ui
import React from 'react'; import Typography from '@material-ui/core/Typography'; import Box from '@material-ui/core/Box'; import Button from '@material-ui/core/Button'; import Popover from '@material-ui/core/Popover'; import PopupState, { bindTrigger, bindPopover } from 'material-ui-popup-state'; export default funct...
src/svg-icons/action/assignment-turned-in.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssignmentTurnedIn = (props) => ( <SvgIcon {...props}> <path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 ....
src/DayOfWeek.js
ygt-mikekchar/react-calendar-pane
import React from 'react'; let DayOfWeek = React.createClass({ render() { return <th className="DayOfWeek">{this.props.date.format('dd')}</th> } }); export default DayOfWeek;
node_modules/react-router/modules/Link.js
kevinsimper/isomorphic-apps-presentation
import React from 'react'; var { object, string, func } = React.PropTypes; function isLeftClickEvent(event) { return event.button === 0; } function isModifiedEvent(event) { return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey); } /** * <Link> components are used to create an <a> element t...
actor-apps/app-web/src/app/components/common/AvatarItem.react.js
v2tmobile/actor-platform
import React from 'react'; import classNames from 'classnames'; class AvatarItem extends React.Component { static propTypes = { image: React.PropTypes.string, placeholder: React.PropTypes.string.isRequired, size: React.PropTypes.string, title: React.PropTypes.string.isRequired }; constructor(pro...
src/components/common/icons/Magnifiner.js
goodjoblife/GoodJobShare
import React from 'react'; /* eslint-disable */ const Magnifiner = (props) => ( <svg {...props} width="148" height="148" viewBox="0 0 148 148"> <path d="M60.2523446,120.503385 C75.1785042,120.503385 88.8220019,115.016701 99.3594914,106.00019 L139.985703,146.625988 C140.903228,147.541216 142.101627,148 143.304708...
demo/components/datepicker/DateRangePickerDemo.js
f0zze/rosemary-ui
import React from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import {DateRangePicker} from '../../../src'; import DemoWithSnippet from '../../layout/DemoWithSnippet'; import {updateDateFrom, updateDateTo,changePopupState} from '../../actions/date-picker-actions'; export cla...
techCurriculum/ui/solutions/4.7/src/index.js
tadas412/EngineeringEssentials
/** * Copyright 2017 Goldman Sachs. * 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 writ...
react-release/dominion-js/src/components/organisms/Organism.playSurface.js
ExplosiveHippo/Dominion.js
import React, { Component } from 'react'; import MoleculeTableCard from '../molecules/Molecule.tableCard'; import MoleculePlayerTracker from '../molecules/Molecule.playerTracker'; import '../../scss/App.scss'; export default class playSurface extends Component { constructor(props) { super(props); this.state = { ...
docs/app/Examples/views/Card/Variations/CardExampleColored.js
koenvg/Semantic-UI-React
import React from 'react' import { Card } from 'semantic-ui-react' const src = 'http://semantic-ui.com/images/wireframe/white-image.png' const CardExampleColored = () => ( <Card.Group itemsPerRow={4}> <Card color='red' image={src} /> <Card color='orange' image={src} /> <Card color='yellow' image={src} /...
packages/material-ui-icons/src/BurstMode.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let BurstMode = props => <SvgIcon {...props}> <path d="M1 5h2v14H1zm4 0h2v14H5zm17 0H10c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zM11 17l2.5-3.15L15.29 16l2.5-3.22L21 17H11z" /> ...
src/client/index.js
zebulonj/exygen
import PropTypes from 'prop-types'; import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter } from 'react-router-dom'; import { createStore, applyMiddleware } from 'redux'; import logger from 'redux-logger'; import thunk from 'redux-thunk'; import { Provider } from 'react-redux'; import { ...
es2015plus/react/src/components/Input/index.js
lshig/forms-challenge
import React from 'react'; import PropTypes from 'prop-types'; export default function Input({ className, label, name, onClick, type, value }) { return ( <label className={`input ${className}`}> {label} <input name={name} onClick={onClick} type={type} value={value} /> <div className...
frontend/src/DiscoverMovie/Table/DiscoverMovieActionsCell.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import VirtualTableRowCell from 'Components/Table/Cells/VirtualTableRowCell'; class DiscoverMovieActionsCell extends Component { // // Render render() { const { id, ...otherProps } = this.props; return ( ...
source/app/app.js
Vuanjun/meep-toy
import React from 'react'; import House from './lib/container'; import 'normalize.css/normalize.css!'; import 'font-awesome/css/font-awesome.min.css!'; // import Sidebar from './lib/sidebar'; // import Meeptv Vfrom './lib/meeptv'; import RouterStore from 'meepworks/stores/router-store'; // import ChatStore from './stor...