path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/topic/attention/FociAttentionComparisonContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import * as d3 from 'd3'; import { FormattedMessage, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import { Row, Col } from 'react-flexbox-grid/lib'; import MenuItem from '@material-ui/core/MenuItem'; import Divider from '@material-...
src/components/Header/Header.js
rivertam/jygabyte
/*! 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...
lib/components/elements/line-divider/style.js
GordonDiggs/relax
import React from 'react'; import {Types} from '../../../data-types'; import Colors from '../../../colors'; export default { type: 'lineDivider', options: [ { label: 'Line Height', type: Types.Pixels, id: 'size' }, { label: 'Style', type: Types.String, id: 'style' ...
client/src/components/Logout/index.js
mick842/react-node-auth
import React, { Component } from 'react'; import { User } from '../../modules'; class Logout extends Component { componentWillMount() { User.remove(); this.props.onLogout(); } render() { return ( <div> </div> ); } } export default Logout;
src/browser/auth/AuthPage.react.js
vacuumlabs/este
import Component from 'react-pure-render/component'; import Helmet from 'react-helmet'; import Login from './Login.react'; import React from 'react'; import linksMessages from '../../common/app/linksMessages'; import { injectIntl, intlShape } from 'react-intl'; import { locationShape } from 'react-router'; class AuthP...
src/FloatingActionButton/FloatingActionButton.js
skarnecki/material-ui
import React from 'react'; import transitions from '../styles/transitions'; import ColorManipulator from '../utils/colorManipulator'; import EnhancedButton from '../internal/EnhancedButton'; import FontIcon from '../FontIcon'; import Paper from '../Paper'; import {extendChildren} from '../utils/childUtils'; import warn...
docs/src/app/components/pages/get-started/Installation.js
ArcanisCz/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import installationText from './installation.md'; const Installation = () => ( <div> <Title render={(previousTitle) => `Installation - ${previousTitle}`} /> <MarkdownElement text={insta...
web/src/components/Calendar/components/Weekly/index.js
AcrylicInc/totalblu
import PropTypes from 'prop-types'; import React from 'react'; import dates from 'components/Calendar/utils/dates'; import localizer from 'components/Calendar/localizer'; import { navigate } from 'components/Calendar/utils/constants'; import TimeGrid from 'components/Calendar/components/Time/TimeGrid'; class Week ext...
docs/app/Examples/modules/Search/Types/index.js
koenvg/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const SearchTypesExamples = () => ( <ExampleSection title='Types'> <ComponentExample title='Standard' description='A ...
docs/src/sections/ThumbnailSection.js
apkiernan/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function ThumbnailSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> ...
src/svg-icons/editor/format-clear.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatClear = (props) => ( <SvgIcon {...props}> <path d="M3.27 5L2 6.27l6.97 6.97L6.5 19h3l1.57-3.66L16.73 21 18 19.73 3.55 5.27 3.27 5zM6 5v.18L8.82 8h2.4l-.72 1.68 2.1 2.1L14.21 8H20V5H6z"/> </SvgIcon...
initializers/server/render.js
MaksimPW/blog-on-react
import React from 'react'; import ReactDOMServer from 'react-dom/server'; import { Provider } from 'react-redux'; import Helmet from 'react-helmet'; import url from 'url'; import _ from 'lodash'; import { parse } from 'qs'; import webpackAsset from './webpackAsset'; import createStore from './../../src/client/app/st...
views/blocks/SearchResult/ResultItem.js
MozalovPavel/team5
import React from 'react'; import './ResultItem.css'; import b from 'b_'; export default class SearchResultItem extends React.Component { render() { return ( <div className={b('quests', 'item')}> {this.props.children} </div> ); } }
src/components/save-info-modal/index.js
drogimex/regexp
import './style.scss'; import React from 'react'; import { connect } from 'react-redux'; import cancelSave from '../../actions/cancelSave'; import savePattern from '../../actions/savePattern'; import visibilityChange from '../../actions/visibilityChange'; import patternNameChange from '../../actions/patternNameChange';...
src/entypo/ThunderCloud.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--ThunderCloud'; let EntypoThunderCloud = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M15.213,6.641c-0.276,0-0.546,0.023-0.809,0.066C13.748,4.562,11.715,3,9.309,3C6.37,3,3.989...
admin/client/App/screens/List/components/ItemsTable/ItemsTableDragDrop.js
ONode/keystone
import React from 'react'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; import { Sortable } from './ItemsTableRow'; import DropZone from './ItemsTableDragDropZone'; var ItemsTableDragDrop = React.createClass({ displayName: 'ItemsTableDragDrop', propTypes: { colum...
docs/app/Examples/elements/Button/Groups/ButtonExampleGroup.js
mohammed88/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleGroup = () => ( <Button.Group> <Button>One</Button> <Button>Two</Button> <Button>Three</Button> </Button.Group> ) export default ButtonExampleGroup
packages/demos/demo/src/index.js
yusufsafak/cerebral
import React from 'react' import { render } from 'react-dom' import { Controller } from 'cerebral' import { state } from 'cerebral/tags' import { Container } from 'cerebral/react' import FirebaseProvider from '@cerebral/firebase' import firebaseConfig from './firebaseConfig' import * as visibility from './helpers/visib...
client-react/src/components/Elements/Tooltip.js
diman84/Welthperk
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import OverlayTrigger from 'react-bootstrap/lib/OverlayTrigger'; import Tooltip from 'react-bootstrap/lib/Tooltip'; export default class WithTooltip extends Component { static propTypes = { children: PropTypes.node.isRequired, id: ...
internals/templates/containers/LanguageProvider/index.js
gtct/wallet.eine.com
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
src/svg-icons/image/music-note.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageMusicNote = (props) => ( <SvgIcon {...props}> <path d="M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z"/> </SvgIcon> ); ImageMusicNote = pure(ImageMusicNote); ImageM...
docs/src/screens/home/features.js
FormidableLabs/spectacle
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { BodyCopy } from '../../components/body-copy'; import { SecondaryTitle } from '../../components/secondary-title'; import { SectionTitle } from '../../components/section-title'; import { Stack } from '../../co...
Libraries/Components/TextInput/TextInput.js
alin23/react-native
/** * 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. * * @provides...
src/Components/Temperature.js
vpodolyan/measurements
import React from 'react'; import PropTypes from 'prop-types'; import Measure from './Measure'; import SimpleValue from './SimpleValue'; const Temperature = (props, context) => { const {data} = context; return ( <div> {data && data.Temperature && <Measure {...data.Temperature} ValueEleme...
src/parser/druid/restoration/modules/talents/TreeOfLife.js
sMteX/WoWAnalyzer
import React from 'react'; import { formatNumber, formatPercentage } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import SPELLS from 'common/SPELLS'; import Analyzer from 'parser/core/Analyzer'; import HealingDone from 'parser/shared/modules/throughput/Heali...
src/components/landing/index.js
datea/datea-webapp-react
import React from 'react'; import DIcon from '../../icons'; import {Tr} from '../../i18n'; import Button from '@material-ui/core/Button'; import MappingColumnLayout from '../mapping-card-grid'; import {observer, inject} from 'mobx-react'; import './landing.scss'; import dateritos from './dateritos.svg'; @inject('stor...
Realization/frontend/czechidm-acc/src/content/contract/ContractAccounts.js
bcvsolutions/CzechIdMng
import PropTypes from 'prop-types'; import React from 'react'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; import _ from 'lodash'; // import { Basic, Advanced, Domain, Managers, Utils } from 'czechidm-core'; import { ContractAccountManager, AccountManager } from '../../redux'; import Accou...
src/stories/index.js
chenqingspring/react-lottie
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import LottieControl from './lottie-control'; import LottieControlSegments from './lottie-control-segments'; import ToggleLike from './toggle-like'; import TransitionLoop from './TransitionLoop'; import TransitionWithOptions from './TransitionWit...
app/assets/scripts/components/Sidebar/index.js
bartoszkrawczyk2/curves.js
import React, { Component } from 'react'; import './style.scss'; class Sidebar extends Component { render() { return ( <div className='sidebar' id='sidebar'> <div className='sidebar__top'> {this.props.children} </div> <div clas...
examples/huge-apps/routes/Messages/components/Messages.js
schnerd/react-router
import React from 'react' class Messages extends React.Component { render() { return ( <div> <h2>Messages</h2> </div> ) } } export default Messages
src/svg-icons/toggle/radio-button-checked.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleRadioButtonChecked = (props) => ( <SvgIcon {...props}> <path d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3...
src/index.js
kmcarter/karaoke-song-lister
/* eslint-disable import/default */ import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import configureStore, { history } from './store/configureStore'; import Root from './components/Root'; import '../node_modules/bootstrap/dist/css/bootstrap.min.css'; impo...
packages/material-ui-icons/src/Face.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Face = props => <SvgIcon {...props}> <path d="M9 11.75c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zm6 0c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25...
server/sonar-web/src/main/js/components/common/MultiSelectOption.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info 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, o...
src/utils/ValidComponentChildren.js
omerts/react-bootstrap
import React from 'react'; /** * Maps children that are typically specified as `props.children`, * but only iterates over children that are "valid components". * * The mapFunction provided index will be normalised to the components mapped, * so an invalid component would not increase the index. * * @param {?*} ...
app/containers/AssessmentEntry/AssessmentEntryColHeader.js
klpdotorg/tada-frontend
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import get from 'lodash.get'; import orderBy from 'lodash.orderby'; const getHeaderName = (boundaryType) => { if (boundaryType === 'institution') { return 'Institution Name'; } if (boundaryType === 'student...
src/javascripts/features/downloadBundles/downloadTabControl.js
aAXEe/online_chart_ol3
/** * @license AGPL-3.0 * @author mojoaxel (https://github.com/mojoaxel) */ 'use strict' import React from 'react' import DownloadFilter from './downloadFilter' import DownloadResultList from './downloadResultList' class DownloadTabControl extends React.Component { render () { return ( <div> <Down...
src/client/app/components/pages/login/index.js
LINKIWI/apache-auth
import {browserHistory} from 'react-router'; import Duo from 'react-duo-web'; import Fingerprint from 'fingerprintjs2'; import Helmet from 'react-helmet'; import LoadingHOC from 'react-loading-hoc'; import Lock from 'react-icons/lib/md/lock-outline'; import React from 'react'; import request from 'browser-request'; imp...
docs/src/app/components/pages/components/Drawer/ExampleSimple.js
nathanmarks/material-ui
import React from 'react'; import Drawer from 'material-ui/Drawer'; import MenuItem from 'material-ui/MenuItem'; import RaisedButton from 'material-ui/RaisedButton'; export default class DrawerSimpleExample extends React.Component { constructor(props) { super(props); this.state = {open: false}; } handl...
client/src/head/preloads.js
pahosler/freecodecamp
import React from 'react'; import styleSheets from './styleSheets'; const preloads = styleSheets.map((styleSheet, i) => ( <React.Fragment> <link as='style' href={styleSheet.props.href} key={`preload-${i}`} rel='preload' /> {styleSheet} </React.Fragment> )); export default prelo...
app/client/components/PageFooter.js
jmdesiderio/swan-cms
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' const Wrapper = styled.footer` border-bottom: 1px solid ${p => p.theme.colors.gainsboro}; border-top: 1px solid ${p => p.theme.colors.gainsboro}; padding: 1rem; text-align: center; ` const PageFooter = ({ helpU...
src/svg-icons/maps/local-cafe.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalCafe = (props) => ( <SvgIcon {...props}> <path d="M20 3H4v10c0 2.21 1.79 4 4 4h6c2.21 0 4-1.79 4-4v-3h2c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2zm0 5h-2V5h2v3zM2 21h18v-2H2v2z"/> </SvgIcon> ); MapsLocalCa...
src/components/text.js
waywaaard/spectacle
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { getStyles } from '../utils/base'; import Radium from 'radium'; @Radium export default class Text extends Component { constructor() { super(); this.resize = this.resize.bind(this); this.state = { scale: 1, h...
src/components/Callback/index.js
OttoH/rereKit
import React from 'react' class Callback extends React.Component { componentDidMount() { window.setTimeout(opener.SC.connectCallback, 1); } render() { return ( <div> <p>This page should close soon.</p> </div> ) } } export default Callback
internals/templates/app.js
brobey8/toomanynotes
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import 'babel-polyfill'; // TODO constrain eslint import/no-unresolved rule to this block // Load the manifest.json file and the .htaccess file import '!file?name=[name].[ext]!./manifest.json'; // eslint-disable-li...
src/components/Ceres.js
cotontigeh/ceres
import React, { Component } from 'react'; import {Editor, EditorState, RichUtils} from 'draft-js'; // Utils import decorators from "../decorators"; // partials import Buttons from "./Buttons"; import ModalLink from "./ModalLink"; // Styles import "./Ceres.css"; class Ceres extends Component { constructor(props)...
internals/templates/containers/HomePage/index.js
dbrelovsky/react-boilerplate
/* * 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 neccessity for you then you can refactor it and remove * the ...
src/main.js
raulmatei/raulmatei.com
import React from 'react' import {render} from 'react-dom' import {Provider} from 'react-redux' import configureStore from './configureStore' import './styles/application.less' export function initialize(Component, options = {}) { const store = configureStore() render(( <Provider store={store}> ...
internals/templates/app.js
alexsmartman/weather-react
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
src/routes.js
rasvaan/digibird_client
import React from 'react'; import {IndexRoute, Route} from 'react-router'; import { App, Monitor, Blog, Home, People, Species, Annotations, NotFound, } from 'containers'; export default () => { /** * Please keep routes in alphabetical order */ return ( <Route path="/" co...
addons/knobs/src/components/types/Boolean.js
jribeiro/storybook
import PropTypes from 'prop-types'; import React from 'react'; const styles = { display: 'table-cell', boxSizing: 'border-box', verticalAlign: 'top', height: 21, outline: 'none', border: '1px solid #ececec', fontSize: '12px', color: '#555', }; class BooleanType extends React.Component { render() { ...
src/scripts/containers/menu-container.js
k-takam/simple-text-translator
import React from 'react'; import { connect } from 'react-redux'; import Menu from '../components/menu'; import { openModal } from '../actions'; const mapStateToProps = (state) => { return { outputText: state.text.outputText }; }; const mapDispatchToProps = (dispatch) => { return { openModal: (type, mod...
src/icons/TimelapseIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class TimelapseIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M32.49 15.51C30.14 13.17 27.07 12 24 12v12l-8.49 8.49c4.69 4.69 12.28 4.69 16.97 0 4.69-4.69 4.69-12.29....
client/src/components/SignOut/index.js
stanographer/aloft
import React from 'react'; import{ Button } from 'reactstrap'; import { withFirebase } from '../Firebase'; const SignOutButton = ({ firebase }) => ( <Button type="button" className="ml-sm-3 d-none d-md-block" onClick={ firebase.doSignOut }> Sign Out </Button> ); export default withFireb...
src/components/video_list_item.js
vanessamuller/ReduxSimpleStarter
import React from 'react'; const VideoListItem = ({video, onVideoSelect}) => { const imageUrl= video.snippet.thumbnails.default.url; return ( <li onClick={() => onVideoSelect(video)} className="list-group-item"> <div className="video-list-media"> <div className="media-left"> <img class...
src/js/ModifyButton.js
reynolek/playing-with-redux
import React from 'react'; export default class ModifyButton extends React.Component { render() { return <button onClick={e => this.handleClick(e)}>{this.props.btnText}</button>; } handleClick(e) { e.preventDefault(); this.props.handleBtnClick(this.props.incrementAmount); } }
src/components/DataTable.js
jakeowns/react-live-graph
import React from 'react'; import DataRow from './DataRow'; import NewDataRow from './NewDataRow'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import * as actions from '../actions/actions'; class DataTable extends React.Component { constructor(props, context) { super(props, con...
addons/storyshots/stories/required_with_context/Welcome.js
bigassdragon/storybook
import React from 'react'; const styles = { main: { margin: 15, maxWidth: 600, lineHeight: 1.4, fontFamily: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif', }, logo: { width: 200, }, link: { color: '#1474f3', textDecoration: 'none', borderBottom: '1px ...
src/index.js
levadadenys/graphic-designer-portfolio-react
import React from 'react'; import ReactDOM from 'react-dom'; import 'bootstrap/dist/css/bootstrap.min.css'; import 'bootstrap/dist/js/bootstrap.min'; import './main.css'; import App from './js/App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); ...
stories/Menu.js
City-Bus-Stops/search-route
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import Menu from '../src/components/Menu/Menu'; storiesOf('Menu', module) .add('Default menu', () => ( <Menu pathname="search-route" userName="Denis Krivichanin" /> ));
app/components/sign/operations/fields/asset.js
soosgit/vessel
// @flow import React, { Component } from 'react'; import { Dropdown, Form, Input } from 'semantic-ui-react' export default class OperationsPromptFieldAsset extends Component { constructor(props) { super(props) let defaultAsset = 'STEEM' if(props.meta.type === 'sbd') { defaultAsset = 'SBD' } ...
app/components/Admin/Commissioned/DeleteGallery.js
1Green/projectAout
import React from 'react'; export const DeleteGallery = React.createClass({ render(){ return ( <div>Delete</div> ) } });
frontend/app_v2/src/components/_TEMPLATE/TEMPLATEContainer.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' // import PropTypes from 'prop-types' // FPCC import TEMPLATEPresentation from 'components/TEMPLATE/TEMPLATEPresentation' import TEMPLATEData from 'components/TEMPLATE/TEMPLATEData' function TEMPLATEContainer() { const { exampleOutput } = TEMPLATEData({ exampleInput: 'passedInToData' }) ...
src/SettingsSectionPersonal/index.js
christianalfoni/ducky-components
import SectionHeaderGeneral from '../SectionHeaderGeneral'; import SettingsItemBirthday from '../SettingsItemBirthday'; import SettingsItemGender from '../SettingsItemGender'; import SettingsItemLocation from '../SettingsItemLocation'; import Spacer from '../Spacer'; import React from 'react'; import PropTypes from 'pr...
src/components/base/RefusableDate.js
GHImplementationTeam/FrontEnd
import React from 'react'; import ComposedComponent from 'react-schema-form/lib/ComposedComponent'; import DatePicker from 'material-ui/DatePicker/DatePicker'; class Date extends React.Component { constructor(props) { super(props); this.onDatePicked = this.onDatePicked.bind(this); } onDatePicked(empty,...
app/javascript/mastodon/components/regeneration_indicator.js
5thfloor/ichiji-social
import React from 'react'; import { FormattedMessage } from 'react-intl'; import illustration from 'mastodon/../images/elephant_ui_working.svg'; const MissingIndicator = () => ( <div className='regeneration-indicator'> <div className='regeneration-indicator__figure'> <img src={illustration} alt='' /> <...
src/modules/Modal/ModalDimmer.js
Semantic-Org/Semantic-UI-React
import { Ref } from '@fluentui/react-component-ref' import cx from 'clsx' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, useClassNamesOnNode, useKeyOnly, } from '../../lib' /** * A modal ha...
src/Day.js
atondelier/react-moment-datepicker
"use strict"; import moment from 'moment'; import momentPropTypes from 'react-moment-proptypes'; import React from 'react'; import classnames from 'classnames'; import './Day.css'; const Day = ({date, onClick, displayedStartDate, isSelected, isDefault}) => { const classes = classnames('rm_day', { 'rm_day...
lib/react/components/forms/FormInput.js
bwyap/ptc-amazing-g-race
import React from 'react'; import PropTypes from 'prop-types'; import autobind from 'core-decorators/es/autobind'; import { InputGroup, Intent } from '@blueprintjs/core'; // Intent mapper const IntentMap = ['primary', 'success', 'warning', 'danger']; @autobind class FormInput extends React.Component { static propTy...
front-end/src/index.js
mkalpana/km-react-reddit-clone
import React from 'react'; import ReactDOM from 'react-dom'; import { createStore, applyMiddleware, compose } from 'redux'; import { Provider } from 'react-redux'; import thunk from 'redux-thunk'; import './index.css'; import { App } from './views'; import reducer from './reducers'; import registerServiceWorker from '....
src/components/infinite/results.js
thinktopography/reframe
export Loader from '../loader' import Message from '../message' import React from 'react' export const Appending = () => ( <div className="reframe-infinite-loader"> <div className="ui active inverted dimmer"> <div className="ui small loader"></div> </div> </div> ) export const Delayed = () => { c...
src/App.js
mkery/SSUI-Homework-4
import React, { Component } from 'react'; import './App.css'; import Store from './Store.js'; import About from './About.js'; import dogCookieBackdrop from './images/dog-cookies.jpg'; import pupIcon from './images/pupIcon.svg'; import boneIcon from './images/bone.svg'; class App extends Component { constructor(props...
ui/src/components/Spinner/index.js
LearningLocker/learninglocker
import React from 'react'; import styled from 'styled-components'; import { rotation } from 'ui/utils/styled/animations'; const Spinner = styled.div` height: 30px; width: 30px; margin: auto; animation: ${rotation} .6s infinite linear; border-left: 4px solid rgba(245, 170, 53, 0.15); border-right: 4px soli...
src/routes.js
TribeMedia/react-redux-universal-hot-example
import React from 'react'; import {IndexRoute, Route} from 'react-router'; import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth'; import { App, Home, About, Login, LoginSuccess, Survey, NotFound, } from 'containers'; export default (store) => { const requireLog...
src/About/about.js
jasongforbes/jforbes.io
import React from 'react'; import { Helmet } from 'react-helmet'; import PropTypes from 'prop-types'; import Grid from '@material-ui/core/Grid'; import Hidden from '@material-ui/core/Hidden'; import Typography from '@material-ui/core/Typography'; import { withStyles } from '@material-ui/core/styles'; import about from ...
src/tos.js
gourie/ParkingPlaza
/* * Author: Joeri Nicolaes * ====================== */ import 'babel-polyfill'; import React from 'react'; import ReactDom from 'react-dom'; import TosApp from './TosApp'; import HeaderApp from './HeaderApp'; // read attribute sent via script and convert String into list of cities var scriptTag = document.getEl...
assets/jqwidgets/demos/react/app/combobox/multiselect/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxComboBox from '../../../jqwidgets-react/react_jqxcombobox.js'; import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js'; class App extends React.Component { componentDidMount() { this.refs.myComboBox.selectItem('Unated Stat...
src/components/App.js
shaunanoordin/zooniverse-mapexplorer
import React from 'react'; import { Link } from 'react-router'; import packageJSON from '../../package.json'; export default class App extends React.Component { returnSomething(something) { // this is only for testing purposes. Check /test/components/App-test.js return something; } render() { const v...
js/pages/iptt_report/components/report/tableBody.js
mercycorps/TolaActivity
import React from 'react'; import { observer, inject } from 'mobx-react'; import { LevelGroup, IndicatorRow } from './tableRows'; const ReportTableBody = inject('rootStore', 'filterStore')( observer(({ rootStore, filterStore }) => { return ( <tbody> { rootStore.levelRow...
actor-apps/app-web/src/app/components/sidebar/HeaderSection.react.js
cnbin/actor-platform
import _ from 'lodash'; import React from 'react'; import mixpanel from 'utils/Mixpanel'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import classNames from 'classnames'; import MyProfileActions from 'actions/MyProfileActions'; import LoginActionCreators from 'action...
techCurriculum/ui/solutions/2.6/src/components/Message.js
AnxChow/EngineeringEssentials-group
/** * 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...
node_modules/react-bootstrap/es/Checkbox.js
saltypaul/SnipTodo
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 ...
app/app.js
yogakurniawan/phone-catalogues
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
packages/ringcentral-widgets-docs/src/app/pages/Components/Eula/Demo.js
ringcentral/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import Eula from 'ringcentral-widgets/components/Eula'; const props = {}; props.brandId = 'test string'; props.currentLocale = 'en-US'; /** * A example of `Eula` */ const EulaDemo = () => <Eula {...props} />; export default EulaDemo;
ignite/DevScreens/PluginExamplesScreen.js
infinitered/ChainReactApp
// Fair Warning: PluginExamples has a good bit of Ignite automation in editing. // Though robust, if you should modify this file, review your changes with us // As to not break the automated addition/subtractions. import React from 'react' import { View, ScrollView, Text, TouchableOpacity, Image } from 'react-native' ...
app/routes.js
beverku/wtimer-react
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/App'; import FilterableTable from './containers/FilterableTable'; import About from './components/About'; export default ( <Route path="/" component={App}> <IndexRoute component={FilterableTable} /> <Route p...
app/javascript/mastodon/features/standalone/community_timeline/index.js
res-ac/mstdn.res.ac
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../../ui/containers/status_list_container'; import { expandCommunityTimeline } from '../../../actions/timelines'; import Column from '../../../components/column'; import ColumnHeader fr...
fields/types/cloudinaryimages/CloudinaryImagesColumn.js
benkroeger/keystone
import React from 'react'; import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; const moreIndicatorStyle = { color: '#888', fontSize: '.8rem', }; var Cloudin...
src/js/components/icons/base/Standards-3dEffects.js
linde12/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...
client/trello/src/index.js
Madmous/Trello-Clone
import { browserHistory, IndexRoute, Router, Route } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { Provider } from 'react-redux'; import ReactDOM from 'react-dom'; import React from 'react'; import { RequiresAuthentication } from './utils/authentiationWrappers';...
src/_common/SizeProvider.js
qingweibinary/binary-next-gen
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; export default class SizeProvider extends Component { constructor(props) { super(props); const { height, width } = props.style; this.state = { height, width, resize: ::this.onResi...
src/cms/preview-templates/BlogPostPreview.js
emjayoh/nsii
import React from 'react' import PropTypes from 'prop-types' import { BlogPostTemplate } from '../../templates/blog-post' const BlogPostPreview = ({ entry, widgetFor }) => ( <BlogPostTemplate content={widgetFor('body')} description={entry.getIn(['data', 'description'])} tags={entry.getIn(['data', 'tags']...
src/TableHeader.js
AllenFang/react-bootstrap-table
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import Const from './Const'; import classSet from 'classnames'; import SelectRowHeaderColumn from './SelectRowHeaderColumn'; import ExpandRowHeaderColumn from './ExpandRowHeaderColumn'; import Utils from './u...
app/components/Product/Products.js
abakusbackup/abacash-client
// @flow import React from 'react'; import Style from './Product.css'; type Props = { children?: Array<*> }; const ProductContainer = (props: Props) => ( <div className={Style.productContainer}> {props.children} </div> ); export default ProductContainer;
docs/src/pages/elements/SegmentPage.js
gocreating/react-tocas
import React from 'react'; import DemoPageLayout from '../../utils/DemoPageLayout'; import PlayGround from '../../utils/PlayGround'; import { Segment, Segments, } from '../../../../lib'; let SegmentPage = () => ( <DemoPageLayout title="Segment"> <h1 className="ts dividing header">Types</h1> <PlayGround ...
src/components/Widget/index.js
happyboy171/Feeding-Fish-View-
import React, { Component } from 'react'; import { Panel } from 'react-bootstrap'; import Link from '../Link'; class StatWidget extends Component{ // eslint-disable-line static propTypes = { style: React.PropTypes.string, count: React.PropTypes.string, headerText: React.PropTypes.string, icon: React....
src/components/ScrantonHacksLogo/ScrantonHacksLogo.js
ScrantonHacks/website
import React from 'react'; import Image from 'grommet/components/Image'; import styled from 'styled-components' import ScrantonHacksLogo from '../../pictures/ScrantonHacks_official_logo.svg'; import Anime from 'react-anime'; const Logo = styled.img` padding-top: 40px; padding-bottom: 30px; `; export default (...
srcForIOS/components/ButtonCircle.js
designrad/Jotunheimen-tracking
import React, { Component } from 'react'; import ReactNative from 'react-native'; const { StyleSheet, Text, View, TouchableOpacity, Image } = ReactNative; /** * ButtonCircle component */ export default class ButtonCircle extends Component { /** * Render a ButtonCircle * @return {jsxresult} resu...
test/integration/basic/pages/nav/as-path-using-router.js
callumlocke/next.js
import React from 'react' import Router from 'next/router' export default class extends React.Component { constructor (...args) { super(...args) this.state = {} } componentDidMount () { const asPath = Router.asPath this.setState({ asPath }) } render () { return ( <div className='a...
vertex_ui/src/components/ColorPicker/Compact/CompactFields.js
zapcoop/vertex
import React from 'react'; import reactCSS from 'reactcss'; import { EditableInput } from 'react-color/lib/components/common'; export const CompactFields = ({ hex, rgb, onChange }) => { const styles = reactCSS({ default: { fields: { display: 'flex', paddingBottom: '6px', paddingRig...