path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
webapp/src/SlotSelector.storybook.js
dtinth/promptpay-qr
import React from 'react' import SlotSelector from './SlotSelector' import { action } from '@storybook/addon-actions' import { storiesOf } from '@storybook/react' storiesOf('SlotSelector', module) .add('selector', () => ( <div style={{ position: 'relative', margin: '20px auto', widt...
docs/app/Examples/modules/Checkbox/States/CheckboxExampleIndeterminate.js
clemensw/stardust
import React from 'react' import { Checkbox } from 'semantic-ui-react' const CheckboxExampleIndeterminate = () => ( <Checkbox label='This checkbox is indeterminate' defaultIndeterminate /> ) export default CheckboxExampleIndeterminate
app/filter/filter-page-layout.js
jaketrent/photo-surf
import React from 'react' import styleable from 'react-styleable' import css from './filter-page-layout.css' function FilterPageLayout(props) { return ( <div className={props.css.root}> {props.children} </div> ) } export default styleable(css)(FilterPageLayout)
src/charts/scatter-plot.js
WaldoJeffers/react-dc
import React from 'react' import dc from 'dc' import BaseChart from './base-chart' import coordinateGridMixin from '../mixins/coordinate-grid-mixin' import scatterMixin from '../mixins/scatter-mixin' @scatterMixin @coordinateGridMixin export default class ScatterPlot extends BaseChart{ static displayName = 'ScatterP...
app/containers/Catalogue/containers/DetailOffres.js
Proxiweb/react-boilerplate
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Paper from 'material-ui/Paper'; import FlatButton from 'material-ui/FlatButton'; import { createStructuredSelector } from 'reselect'; import { makeSelectOffresDuProduit, makeSelectTypesProdui...
src/containers/Game/GameGUI.js
DelvarWorld/some-game
import React, { Component } from 'react'; import localStorage from 'store'; import React3 from 'react-three-renderer'; import THREE from 'three'; import { toScreenPosition, } from 'helpers/Utils'; import { GameRenderer, } from 'containers'; import { TitleScreen, GameResources, PausedScreen, ConfirmRestartScreen,...
contrib/webui/src/components/input/textarea/index.js
roscopecoltran/papernet
import PropTypes from 'prop-types'; import React, { Component } from 'react'; class TextArea extends Component { static propTypes = { autoresize: PropTypes.bool, className: PropTypes.string, onChange: PropTypes.func.isRequired, placeholder: PropTypes.string, value: PropTypes.string, } static...
app/javascript/mastodon/containers/account_container.js
pixiv/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { makeGetAccount } from '../selectors'; import Account from '../components/account'; import { followAccount, unfollowAccount, blockAccount, unblockAccount, muteAc...
docs/app/Examples/modules/Dropdown/Types/DropdownExampleMultipleSearchInMenu.js
mohammed88/Semantic-UI-React
import React from 'react' import { Dropdown, Input } from 'semantic-ui-react' import { tagOptions } from '../common' // tagOptions = [ // { // text: 'Important', // value: 'Important', // label: { color: 'red', empty: true, circular: true }, // }, // ... // ] const DropdownExampleMultipleSearchInMe...
app/react-icons/fa/hdd-o.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaHddO extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m26.2 27.1q0 0.8-0.5 1.3t-1.3 0.5-1.2-0.5-0.6-1.3 0.6-1.2 1.2-0.5 1.3 0.5 0.5 1...
src/containers/Charts/reactChart2/components/pie/pie.js
EncontrAR/backoffice
import React from 'react'; import {Pie} from 'react-chartjs-2'; import {data} from './pieConfig'; class PieChart extends React.Component { render() { return ( <Pie data={data} /> ); } }; export default PieChart;
test/test_helper.js
Schachte/React-Routes-Learning
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
src/routes/login/index.js
geoffreyfloyd/op
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Login from './Login'; e...
app/packs/src/components/contextActions/ModalExportCollection.js
ComPlat/chemotion_ELN
import React from 'react'; import {Button, ButtonToolbar} from 'react-bootstrap'; import UIStore from './../stores/UIStore'; import CollectionStore from './../stores/CollectionStore'; export default class ModalExportCollection extends React.Component { constructor(props) { super(props); let collecState = Co...
js/jqwidgets/demos/react/app/grid/customlistitemswithkeyvalue/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; class App extends React.Component { componentDidMount() { this.refs.myGrid.on('filter', (event) => { // get filter information. let filterInformation = this...
example/examples/MarkerTypes.js
j0ergo/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, } from 'react-native'; import MapView from 'react-native-maps'; import flagBlueImg from './assets/flag-blue.png'; import flagPinkImg from './assets/flag-pink.png'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = w...
src/svg-icons/image/collections-bookmark.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCollectionsBookmark = (props) => ( <SvgIcon {...props}> <path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 10l-2.5-1.5L15 12V4h5v8z"/>...
assets/jqwidgets/demos/react/app/expander/righttoleftlayout/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxExpander from '../../../jqwidgets-react/react_jqxexpander.js'; class App extends React.Component { render() { return ( <JqxExpander width={350} rtl={true}> <div>Early History of the Internet</div> ...
src/components/Catalog/Catalog.js
OlegVitiuk/Majsternia
import React from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Catalog.css'; import Link from '../Link'; import CatalogItem from '../CatalogItem'; const Photos = [ { src: 'https://ucarecdn.com/7f5654d3-7b37-42a4-b66f-f974691437d5/1.jpg', alt: 'sculpture', t...
app/invest/index.js
Right-Men/Ironman
import React, { Component } from 'react'; import { StyleSheet, Dimensions, View, Text } from 'react-native'; import Account from '../test3'; import Invest1 from '../invest1'; import Invest2 from '../invest2'; import Invest3 from '../invest3'; import Posts from '../invest4' const {width} = Dimension...
src/client.js
stevoland/react-redux-universal-hot-example
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel/polyfill'; import React from 'react'; import BrowserHistory from 'react-router/lib/BrowserHistory'; import Location from 'react-router/lib/Location'; import queryString from 'query-string'; import cre...
react/src/components/dashboard/qrModal/qrModal.render.js
pbca26/EasyDEX-GUI
import React from 'react'; import translate from '../../../translate/translate'; import QRCode from 'qrcode.react'; import QrReader from 'react-qr-reader'; export const QRModalRender = function() { return ( <span> <span className="qrcode-modal" title={ translate('INDEX.QRCODE') } on...
clients/libs/webpage/src/lib/plugins/donation/plugin.connected.js
nossas/bonde-client
import React from 'react' import PropTypes from 'prop-types' import Donation from './plugin' class DonationConnected extends React.Component { constructor (props) { super(props) this.state = { donationCustomerData: undefined } } handleTransactionCreate (values) { const { mobilizatio...
app/components/App.js
googlefonts/korean
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { windowResize, changeBackgroundMode, changeCurrentViewFont, changeHeaderMode, changeHeaderCollapsedTop, changeAnimationIdx, changeAnimationScriptIdx, changeIsOnScript } from '../actions'; import { Header, HeaderCollapsed, FontsList...
src/index.js
carlpagelsLNU/2DV607_project
import React from 'react'; import ReactDOM from 'react-dom'; import Board from './Board'; import { observe } from './Game'; const rootEl = document.getElementById('root'); observe(imagePosition => ReactDOM.render( <Board imagePosition={imagePosition} />, rootEl ) );
webapp/auth/components/Topbar/style.js
oorococo/smcoco_com
import React from 'react' const rule = ` .topbar { position: absolute; width: 100%; left: 0; top: 0; z-index: 9999; background-color: rgba(0,0,0,.15); border-bottom: 1px solid rgba(0,0,0,.2); } .topbar-link { color: #fff; display: inline-block; padding: 3px 10px; te...
src/uic/Toast.js
ajaycheenath/earthquake
import React, { Component } from 'react'; import uicStyle from "../css/uic.css"; //This class will show toast message ( a message stays on the screen for few seconds). //An nice way to alert user aboout any change.. class Toast extends Component { render() { return ( <div>Toast message goes here...</div> ...
src/containers/AboutPage.js
danpersa/remindmetolive-react
import React from 'react'; import TopPageTwoColumns from './TopPageTwoColumns'; // Since this component is simple and static, there's no parent container for it. class AboutPage extends React.Component { constructor() { super(); } render() { return ( <TopPageTwoColumns teaser="/images/stories/201...
src/components/address-input.js
ScottDowne/donate.mozilla.org
import React from 'react'; import Input from './input.js'; import listener from '../lib/listener.js'; import form from '../lib/form.js'; var countryOptions = [ <option key="AF" value="AF">Afghanistan</option>, <option key="AL" value="AL">Albania</option>, <option key="DZ" value="DZ">Algeria</option>, <option k...
node_modules/react-color/src/components/common/Hue.js
ottomajik/react-demo
'use strict'; /* @flow */ import React from 'react'; import ReactCSS from 'reactcss'; export class Hue extends ReactCSS.Component { constructor() { super(); this.handleChange = this.handleChange.bind(this); this.handleMouseDown = this.handleMouseDown.bind(this); this.handleMouseUp = this.handleMou...
src/components/DataViewer/DataViewer.js
sparksc/frc-scouting-pi
// @flow // src/components/DataViewer/DataViewer.js import React, { Component } from 'react'; import { PageHeader } from 'react-bootstrap'; import DataTable from './DataTable'; class DataViewer extends Component { // static propTypes = {} // static defaultProps = {} // state = {} render() { return ( ...
src/routes/service/index.js
medevelopment/updatemeadmin
import React from 'react'; import Service from './Service'; import Layout from '../../components/Layout'; export default { path: '/service', async action({ fetch }) { const resp = await fetch('/graphql', { body: JSON.stringify({ query: '{news{title,link,content}}', }), }); const ...
src/components/SocialLink.js
kazupooot/kazupooot.github.io
import React from 'react'; import FontAwesome from 'react-fontawesome'; import { Link } from 'rebass'; import { Tooltip } from 'react-tippy'; import styled from 'styled-components'; import PropTypes from 'prop-types'; const IconLink = styled(Link)` transition: color 0.5s; color: ${props => props.theme.colors.prima...
src/components/PhotoGallery.js
kgosse/photo-gallery
import React from 'react'; import { Grid, Row, Col } from 'react-bootstrap'; import ImageCard from './ImageCard'; class PhotoGallery extends React.Component{ render(){ let cards = this.props.images.map((img, i)=>{ let card = ( <Col xs={6} md={4} key={'card' + i}> ...
src/svg-icons/communication/clear-all.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationClearAll = (props) => ( <SvgIcon {...props}> <path d="M5 13h14v-2H5v2zm-2 4h14v-2H3v2zM7 7v2h14V7H7z"/> </SvgIcon> ); CommunicationClearAll = pure(CommunicationClearAll); CommunicationClearAll.di...
client/src/assets/images/AsFeatureLogo.js
jonathanihm/freeCodeCamp
/* eslint-disable max-len */ import React from 'react'; const propTypes = {}; function AsSeenLogo(props) { return ( <svg id='featured-logos' viewBox='0 0 1700 340' xmlns='http://www.w3.org/2000/svg' xmlnsXlink='http://www.w3.org/1999/xlink' {...props} fill='var(--quaternary-c...
code/web/src/components/Home.js
zyxcambridge/RecordExistence
import '../styles/RootIndex.css'; import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, Link } from 'react-router'; import TopNavBar from "./TopNavBar.js" import Links from "./Links.js" import { Button } from 'react-bootstrap'; import { Modal } from 'react-bootstrap'; import { Popover } ...
src/javascripts/config/layers/seamarkDebug.js
aAXEe/online_chart_ol3
/** * @license AGPL-3.0 * @author aAXEe (https://github.com/aAXEe) */ 'use strict' import React from 'react' import { ClickOnMarkersMessage } from 'utils' import {TabSidebarDetails} from 'features/tabs' import controlIds from '../../controls/ol3/controls' import orderIds from '../layerOrderNumbers' import ol from 'op...
node_modules/react-icons/md/airline-seat-legroom-reduced.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const MdAirlineSeatLegroomReduced = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m8.4 20q0 2 1.4 3.5t3.6 1.5h6.6v3.4h-6.6q-3.5 0-5.9-2.5t-2.5-5.9v-15h3.4v15z m24.9 12q0.2 1.2-0.5 2.1t-1.9 0.9h-7.5v-5l1.6-6.6h-10q-2 0-3.5-1.5t-1.5...
lib/masters_of_venice/src/connectModal.js
sgottreu/game-scoring
import React, { Component } from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import Dialog from 'material-ui/Dialog'; import TextField from 'material-ui/TextField'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; import FontIcon from 'material-ui/FontIc...
app/components/Toggle/index.js
anneback/react-quiz
/** * * LocaleToggle * */ import React from 'react'; import Select from './Select'; import ToggleOption from '../ToggleOption'; function Toggle(props) { let content = (<option>--</option>); // If we have items, render them if (props.values) { content = props.values.map((value) => ( <ToggleOption key...
index.android.js
eilianlove/OneWeekOneProjectOfReactNative
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class OneDayOneProjectOfReactNative extends Component { render() { return ( <View sty...
node_modules/react-icons/fa/snapchat-ghost.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const FaSnapchatGhost = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m20.4 2.9q3-0.1 5.4 1.5t3.6 4.3q0.7 1.3 0.7 4 0 1-0.2 4.2 0.3 0.2 0.6 0.2 0.4 0 1.1-0.3t1.2-0.3q0.6 0 1.2 0.4t0.6 1q0 0.7-0.7 1.2t-1.5 0.7-1.6 0.7-0.7 1q0 0.4 0...
lib/components/notifications.js
zeit/hyperterm
import React from 'react'; import {decorate} from '../utils/plugins'; import Notification_ from './notification'; const Notification = decorate(Notification_, 'Notification'); export default class Notifications extends React.PureComponent { render() { return ( <div className="notifications_view"> ...
lib/ui/components/LatestRequestNotifications.js
500tech/bdsm
import React from 'react'; import styled from 'styled-components'; import URLStamp from 'ui/components/common/URLStamp'; import Icon from 'ui/components/common/Icon'; import throttle from 'lodash/throttle'; import EVENTS from 'api/constants/events'; import get from 'lodash/get'; import API from 'api'; import UIState f...
web/src/js/components/comuns/select.js
helderfarias/ges
'use strict'; import React from 'react'; export default React.createClass({ getInitialState() { return { selected: null }; }, selected() { if (this.state.selected) { return this.state.selected; } let id = this.props.trackById; let label = this.props.t...
client/userinterface/gebouwen/Gebouwen/Input.js
benstuijts/darkage-framework
import React from 'react'; export default class Input extends React.Component { handleChange(e) { const name = e.target.value; this.props.changeName(name); } render() { return( <div class="form-group"> <label for="">{ this.props.label }</label> ...
node_modules/react-native-wheel-picker/index.js
marsinearth/decisionmaker
'use strict'; import React from 'react'; import { PickerIOS, Platform, } from 'react-native'; import WheelCurvedPicker from './WheelCurvedPicker' module.exports = (Platform.OS === 'ios' ? PickerIOS : WheelCurvedPicker)
client/components/data/PositiveGrowthSymbol.stories.js
Sing-Li/Rocket.Chat
import { Box } from '@rocket.chat/fuselage'; import React from 'react'; import PositiveGrowthSymbol from './PositiveGrowthSymbol'; export default { title: 'components/data/PositiveGrowthSymbol', component: PositiveGrowthSymbol, decorators: [ (fn) => <Box children={fn()} margin='x16' />, ], }; export const Defa...
src/App.js
gnkatchmar/new-gkatchmar
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import Button from 'material-ui/Button'; import UpIcon from "material-ui-icons/ArrowUpward"; import ScrollToTop from "react-scroll-up"; import NavTabs from "./NavTabs"; const styles = theme => ({ }); funct...
packages/@sanity/base/src/components/stories/appLoadingScreen.js
sanity-io/sanity
import React from 'react' import AppLoadingScreen from '../AppLoadingScreen' export function DefaultFormFieldStory() { return <AppLoadingScreen text="Connecting to Sanity.io…" /> }
jenkins-design-language/src/js/components/material-ui/svg-icons/places/child-friendly.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const PlacesChildFriendly = (props) => ( <SvgIcon {...props}> <path d="M13 2v8h8c0-4.42-3.58-8-8-8zm6.32 13.89C20.37 14.54 21 12.84 21 11H6.44l-.95-2H2v2h2.22s1.89 4.07 2.12 4.42c-1.1.59-1.84 1.75-1.84 3.08C4.5 20.43 6.07 22 8 22c1.76 0 3.22-1.3 3.4...
src/components/AddPlayerCard.js
jeremyfry/init-tracker
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as actions from '../actions/playerActions'; import TextInput from './textInput'; import DropdownInput from './DropdownInput'; import NumberInput from ...
src/components/App.js
caesarsol/sequencer
/* eslint-disable react/jsx-no-bind */ import React from 'react' import Sequencer from 'components/Sequencer' import { genBuffer, playBuffer, drawBufData, Osc, Envl } from 'lib/math-synth' import { getNoteFreq } from 'lib/notes' // import Synth from 'lib/synth' // const synth = new Synth() // const play = chord => syn...
wagtail/wagtailadmin/static_src/wagtailadmin/app/wagtailadmin.entry.js
hamsterbacke23/wagtail
import React from 'react'; import ReactDOM from 'react-dom'; import Explorer from 'components/explorer'; document.addEventListener('DOMContentLoaded', e => { const top = document.querySelector('.wrapper'); const div = document.createElement('div'); const trigger = document.querySelector('[data-explorer-menu-url...
js/components/form/textArea.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, Textarea, Body, Left, Right, IconNB } from 'native-base'; import { Actions } from 'react-native-router-flux'; import sty...
src/components/TextField/TextField.js
ronihcohen/magic-vote
import React from 'react' import PropTypes from 'prop-types' import MaterialTextField from 'material-ui/TextField' export const TextField = ({ input, label, meta: { touched, error }, ...custom }) => ( <MaterialTextField hintText={label} floatingLabelText={label} errorText={touched && error} {...
client/main/main.js
mordrax/cotwmtor
import React from 'react'; import { connect } from 'react-redux'; import {GameScreen} from '/core/maps.js'; import _ from 'lodash'; import createFragment from 'react-addons-create-fragment'; import MapView from './mapComponent.js'; export const MainView = ({game, area, player}) => ( <div> <h1>Welcome to Castle o...
app/javascript/mastodon/features/ui/components/bundle_column_error.js
pixiv/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import Column from './column'; import ColumnHeader from './column_header'; import ColumnBackButtonSlim from '../../../components/column_back_button_slim'; import IconButton from '../../../components/...
src/js/components/FormFields.js
samogami/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import classnames from 'classnames'; const CLASS_ROOT = 'form-fields'; export default class FormFields extends Component { render () { let classes = classnames(CLASS_ROOT, this.props.className); ...
src/components/type-matchup.js
tylerchilds/pokedex
import React from 'react'; import TypeLink from '../components/type-link'; import TypeSanitizer from '../services/type-sanitizer'; export default class TypeMatchup extends React.Component{ constructor(props){ super(); this.state = { matchups: TypeSanitizer.filterMatchup(props.types) }; } componentWillR...
app/scripts/components/kuchyne/kitchen_g.js
kroupaTomass/Rondo-kuchyne
import React from 'react'; import { Link } from 'react-router'; class Kitchen_g extends React.Component { constructor(props, context) { super(props); } render() { return ( <div className="col-md-4 no_padding"> <div className="single_image"> <a id="kitchen_g" href="#animatedModal_...
src/components/Svg/Stop.js
weaintplastic/react-sketchapp
import React from 'react'; import PropTypes from 'prop-types'; import { numberProp } from './props'; // eslint is broken doesn't like when we just check the props without "using" them /* eslint-disable react/no-unused-prop-types */ module.exports = class Stop extends React.Component { static propTypes = { stopCo...
fields/types/relationship/RelationshipFilter.js
andrewlinfoot/keystone
import _ from 'lodash'; import async from 'async'; import React from 'react'; import { findDOMNode } from 'react-dom'; import xhr from 'xhr'; import { FormField, FormInput, SegmentedControl, } from '../../../admin/client/App/elemental'; import PopoutList from '../../../admin/client/App/shared/Popout/PopoutList'; ...
src/routes.js
cbellino/roster
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Router from 'react-routi...
Libraries/Components/TextInput/TextInput.js
salanki/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/component/formTopic.spec.js
sjcrank/viz-data-generator
import test from 'ava'; import { shallow } from 'enzyme'; import React from 'react'; import { StyleSheetTestUtils } from 'aphrodite'; import FormTopic from './formTopic'; test.beforeEach('disable style injection', () => { StyleSheetTestUtils.suppressStyleInjection(); }); test.afterEach('resume style injection', (...
app/javascript/mastodon/containers/status_container.js
tateisu/mastodon
import React from 'react'; import { connect } from 'react-redux'; import Status from '../components/status'; import { makeGetStatus } from '../selectors'; import { replyCompose, mentionCompose, directCompose, } from '../actions/compose'; import { reblog, favourite, unreblog, unfavourite, pin, unpin, }...
src/dev-tools/ReduxDevTool.js
gouxlord/dev-insight
import React from 'react'; // Exported from redux-devtools import { createDevTools } from 'redux-devtools'; // Monitors are separate packages, and you can make a custom one import DockMonitor from 'redux-devtools-dock-monitor'; import DiffMonitor from 'redux-devtools-diff-monitor'; import SliderMonitor from 'redux-sl...
docs/app/server.js
tercenya/compendium
/* eslint no-console: 0 */ import 'colors'; import express from 'express'; import httpProxy from 'http-proxy'; import ip from 'ip'; import path from 'path'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; import {match, RouterContext} from 'react-router'; import Root from './src/Root'; impor...
app/components/Progress/index.js
beingmohit/tranium
import React from 'react'; import styles from './styles.css'; export default (props) => { const { speed = 1.4, loading, } = props; const rootStyle = loading ? { opacity: 1 } : { opacity: 0 }; const barStyle = loading ? { width: '97%', transition: `${speed}s width`, } : { width: '0%', ...
app/screens/containers/buyer/news-detail.js
yiyinsong/react-native-example-jdh
/** * Component: 动态详情 * author: yiyinSong * date: 2017-11-09 */ import React, { Component } from 'react'; import { Text, View, InteractionManager, WebView } from 'react-native'; import HTMLView from 'react-native-htmlview'; import moment from 'moment'; import Config from '../../../config/confi...
js/containers/ApplicationTabs/OrderDone/index.js
Seedstars/reactnative-mobile-app-base
import React, { Component } from 'react'; import { View, Text, } from 'react-native'; import Icon from 'react-native-vector-icons/MaterialIcons'; import { connect } from 'react-redux'; import { actions as navigationActions } from 'react-native-navigation-redux-helpers'; import { COLOR_WHITE } from '../../../st...
src/components/withViewport.js
codyromano/destiny
/** * 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...
app/javascript/mastodon/features/union_timeline/index.js
pso2club/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader fro...
js/jqwidgets/demos/react/app/popover/bottompositioning/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxPopover from '../../../jqwidgets-react/react_jqxpopover.js'; import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js'; class App extends React.Component { componentDidMount() { let data = new Array(); let firstNames...
packages/components/src/RatioBar/RatioBar.stories.js
Talend/ui
import React from 'react'; import { RatioBar } from './RatioBar.component'; export default { title: 'Data/Dataviz/RatioBar', }; export const _RatioBar = () => ( <section style={{ 'max-width': 500, padding: 20 }}> <header>Ratio Bar</header> <div> <div>Not applicable amount</div> <RatioBar total={12} /> ...
client/components/Issue/Issues.js
Mignon-han/issue-processing
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import Issue from './Issue'; import Progressbar from '../Utils/Progressbar' import { Well } from 'react-bootstrap'; import { fetchOneRepo, fetchUsers } from '../../service/service' class Issues extends Component { constructor(props) { super(...
core/router.js
migelleluigi/dota2teams
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; ...
src/svg-icons/notification/airline-seat-legroom-extra.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatLegroomExtra = (props) => ( <SvgIcon {...props}> <path d="M4 12V3H2v9c0 2.76 2.24 5 5 5h6v-2H7c-1.66 0-3-1.34-3-3zm18.83 5.24c-.38-.72-1.29-.97-2.03-.63l-1.09.5-3.41-6.98c-.34-.68-1.03-1....
src/containers/key.js
shawware/react-calculator
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { keyPress } from '../actions/keyPress'; /* * A calculator key as a container */ class CalculatorKey extends Component { render() { let style = "calc-button-normal"; if ((this.pr...
packages/retabulate-local-provider/src/RetabulateProvider.js
jasonphillips/retabulate
import React from 'react'; import PropTypes from 'prop-types'; import { ApolloClient } from "apollo-client"; import { InMemoryCache } from "apollo-cache-inmemory"; import { SchemaLink } from "apollo-link-schema"; import schema from 'retabulate-graphql'; class RetabulateProvider extends React.Component { constructor(...
src/components/Homepage/SecondaryPage.js
Dynatos/personal-website
import React, { Component } from 'react'; import NavBar from '../NavBar/NavBar'; import PictureAndInfoBox from './components/PictureAndInfoBox'; import ProfessionalSection from './components/ProfessionalSection'; import { resumeData } from './data/secondaryPage'; class SecondaryPage extends Component { render() {...
examples/react/src/components/App.js
router5/router5
import React from 'react' import Nav from './Nav' import Main from './Main' export default function App({ emails }) { return ( <div className="mail-client"> <aside> <Nav /> </aside> <main> <Main emails={emails} /> </main> ...
js/components/elements/List.react.js
theinterned/statflo_ui_challenge
import React, { Component } from 'react'; import { Link } from 'react-router'; class List extends React.Component { constructor(props) { super(props); } render() { var renderItem = this.props.renderItem || this.renderItem; var className = this.props.className; return <ul className={className}> {...
src/router.js
eafelix/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import Router from 'react-routing/src/Router'; import http from './core/http'; import App from './components/App'; import ContentPage from './components/ContentPage'; import ContactPage from './components/ContactPage'; ...
app/youtube/index.js
Raymond-Zhu/music-video-app
import React, { Component } from 'react'; import { render } from 'react-dom'; import { ipcRenderer } from 'electron'; import Youtube from 'react-youtube'; import '../app.global.css'; class YoutubeWindow extends Component { constructor(props) { super(props); this.state = {videoId: ''}; this.onEnd = this.o...
src/svg-icons/action/shopping-basket.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionShoppingBasket = (props) => ( <SvgIcon {...props}> <path d="M17.21 9l-4.38-6.56c-.19-.28-.51-.42-.83-.42-.32 0-.64.14-.83.43L6.79 9H2c-.55 0-1 .45-1 1 0 .09.01.18.04.27l2.54 9.27c.23.84 1 1.46 1.92 1.46h1...
src/components/maps/GeoMap.js
metasfresh/metasfresh-webui-frontend
import React, { Component } from 'react'; import cx from 'classnames'; import GoogleMapReact from 'google-map-react'; import OSMap from 'pigeon-maps'; import Marker from 'pigeon-marker'; import PropTypes from 'prop-types'; import MapMarker from './MapMarker'; class Map extends Component { static defaultProps = { ...
src/client/node_modules/react-router-dom/es/BrowserRouter.js
severnsc/brewing-app
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 &...
src/DropdownButton.js
victorzhang17/react-bootstrap
import React from 'react'; import BootstrapMixin from './BootstrapMixin'; import Dropdown from './Dropdown'; import NavDropdown from './NavDropdown'; import CustomPropTypes from './utils/CustomPropTypes'; import deprecationWarning from './utils/deprecationWarning'; import omit from 'lodash-compat/object/omit'; class D...
source/components/Modals/PlaylistModal.js
mikey1384/twin-kle
import React from 'react'; import PropTypes from 'prop-types'; import Modal from 'components/Modal'; import Button from 'components/Button'; import Playlist from 'components/Playlist'; import Link from 'components/Link'; import ErrorBoundary from 'components/Wrappers/ErrorBoundary'; PlaylistModal.propTypes = { onHid...
src/packages/@ncigdc/components/analysis/SetOperations/SetTable.js
NCI-GDC/portal-ui
import React from 'react'; import _ from 'lodash'; import { compose } from 'recompose'; import ExploreLink from '@ncigdc/components/Links/ExploreLink'; import EntityPageHorizontalTable from '@ncigdc/components/EntityPageHorizontalTable'; import Alias from '@ncigdc/components/Alias'; const enhance = compose(); // left ...
components/sections/footer/form.js
wulkano/kap-website
import React from 'react' import Confetti from 'react-dom-confetti' import colors from '../../../lib/colors' import RightArrow from '../../../static/images/arrow-right-white.svg' const Input = ({ boom }) => ( <div className="container"> <input type="email" id="EMAIL" name="EMAIL" placeholder="Email address" /> ...
src/routes.js
alexmasselot/medlineGeoWebFrontend
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import Router from 'react-routing/src/Router'; import http from './core/HttpClient'; import App from './components/App'; import InteractiveView from './components/InteractiveView'; import HexaMapPage from './components/...
examples/named-components/routes.js
dlmr/react-router-redial
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/App'; import Footer from './components/Footer'; import Head from './components/Header'; import Index from './components/Index'; import LoremIpsum from './components/LoremIpsum'; import Main from './components/Mai...
admin/client/components/List/ListFiltersAdd.js
wmertens/keystone
import React from 'react'; import ReactDOM from 'react-dom'; import Transition from 'react-addons-css-transition-group'; import classnames from 'classnames'; import CurrentListStore from '../../stores/CurrentListStore'; import ListFiltersAddForm from './ListFiltersAddForm'; import Popout from '../Popout'; import Popout...
tools/public-components.js
lo1tuma/react-bootstrap
import React from 'react'; import index from '../src/index'; let components = []; Object.keys(index).forEach(function (item) { if (index[item] instanceof React.Component.constructor) { components.push(item); } }); export default components;
src/index.js
vitaliipetrenko/mobx-react-proto1
require('./styles/main.scss') import React from 'react' import ReactDOM from 'react-dom' import { AppContainer } from 'react-hot-loader' import App from './components/App' import AppState from './stores/AppState' const appState = new AppState() ReactDOM.render( <AppContainer> <App store={appState} /> </AppCon...
lib/components/term-group.js
martinvd/hyper
import React from 'react'; import {connect} from 'react-redux'; import Component from '../component'; import {decorate, getTermProps, getTermGroupProps} from '../utils/plugins'; import {resizeTermGroup} from '../actions/term-groups'; import Term_ from './term'; import SplitPane_ from './split-pane'; const Term = decor...