path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/javascript/mastodon/components/permalink.js
primenumber/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class Permalink extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; static propTypes = { className: PropTypes.string, href: PropTypes.string.isRequired, to: PropTypes.string.isRequired, ...
frontend/src/components/helper/LazyFadeIn.js
VitaC123/YouTube-Mixtape
import React from 'react'; import LazyLoad from 'react-lazyload'; import { CSSTransitionGroup } from 'react-transition-group'; const LazyFadeIn = props => ( <LazyLoad height={props.height || 400} offset={150} once={true}> <CSSTransitionGroup transitionName='fadeInOnLoad' transitionAppear={true} ...
src/features/Teams/Components.js
ubc-subbots/ubc-subbots.github.io
import React from 'react'; import Button from 'react-bootstrap/Button'; import Col from 'react-bootstrap/Col'; import Row from 'react-bootstrap/Row'; import Card from 'react-bootstrap/Card'; import { Image } from '../../components' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faWrench, faL...
app/javascript/mastodon/features/compose/components/privacy_dropdown.js
im-in-space/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, defineMessages } from 'react-intl'; import IconButton from '../../../components/icon_button'; import Overlay from 'react-overlays/lib/Overlay'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spr...
src/components/FilterHeader/index.js
r1cebank/react-native-boilerplate
import React from 'react'; import { Text, TouchableOpacity, View, Image } from 'react-native'; import { Assets } from '../../global/globalIncludes'; import Styles from './resources/styles'; class FilterHeader extends React.Component { static propTypes = { selectedFilters: React.PropTypes.object, o...
utils/utils.js
tradle/tim
/*global Intl*/ import React from 'react' import { NativeModules, // findNodeHandle, Dimensions, Linking, PixelRatio, Platform, StyleSheet } from 'react-native' import querystring from 'querystring' import traverse from 'traverse' import DeviceInfo from 'react-native-device-info' import Keychain from 're...
actor-apps/app-web/src/app/components/common/Stateful.react.js
WangCrystal/actor-platform
/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ import _ from 'lodash'; import React from 'react'; import { AsyncActionStates } from 'constants/ActorAppConstants'; export class Root extends React.Component { static propTypes = { className: React.PropTypes.string, currentState: React.PropTypes.num...
src/components/editaccount.js
michaelsund/kronos
import React from 'react'; import { connect } from 'react-redux'; import { PropTypes } from 'prop-types'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; import TextField from 'material-ui/TextField'; import MenuItem from 'ma...
lib/ui/src/modules/ui/routes.js
nfl/react-storybook
import React from 'react'; import ReactDOM from 'react-dom'; import Layout from './containers/layout'; import LeftPanel from './containers/left_panel'; import DownPanel from './containers/down_panel'; import ShortcutsHelp from './containers/shortcuts_help'; import SearchBox from './containers/search_box'; export defau...
src/maquinas/perfiladeiras/n3/manual.js
MarceloProjetos/react-router-node-red
import React, { Component } from 'react'; export default class IHM extends Component { render() { return( <div> <h1>Tela de inicio de AJUSTE MANUAL Coluna N3...</h1> </div> ) } }
react/features/prejoin/components/PrejoinThirdParty.js
jitsi/jitsi-meet
// @flow import React, { Component } from 'react'; import { translate } from '../../base/i18n'; import { isVideoMutedByUser } from '../../base/media'; import { PreMeetingScreen } from '../../base/premeeting'; import { connect } from '../../base/redux'; import { getLocalJitsiVideoTrack } from '../../base/tracks'; impo...
app/packs/src/components/report/Archives.js
ComPlat/chemotion_ELN
import React from 'react'; import { Button, Label, PanelGroup, Panel, OverlayTrigger, Tooltip } from 'react-bootstrap'; import ReportActions from '../actions/ReportActions'; import LoadingActions from '../actions/LoadingActions'; import UIActions from '../actions/UIActions'; import { stopBubble } from '../utils/DomHe...
src/components/Feedback/Feedback.js
Nikhil22/trooper
/** * 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 withStyles from 'isomorp...
lib/widgets/CrudForm/views/ModelAttributesArrayField.js
ExtPoint/yii2-gii
import React from 'react'; import PropTypes from 'prop-types'; import {html} from 'components'; import ModelAttributeRow from './ModelAttributeRow'; import './ModelAttributesArrayField.less'; const bem = html.bem('ModelAttributesArrayField'); export default class ModelAttributesArrayField extends React.Component { ...
src/svg-icons/editor/merge-type.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorMergeType = (props) => ( <SvgIcon {...props}> <path d="M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"/> </SvgIcon> ); EditorMergeType = pure(Editor...
src/svg-icons/navigation/more-horiz.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationMoreHoriz = (props) => ( <SvgIcon {...props}> <path d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-...
src/containers/Charts/reactVis/charts/candleStick/index.js
EncontrAR/backoffice
import React, { Component } from 'react'; import { XYPlot, XAxis, YAxis, LineSeries, makeWidthFlexible } from 'react-vis'; import './candlestick.scss'; import Candlestick from './candlestick'; const FlexibleXYPlot = makeWidthFlexible(XYPlot); export default class Example extends Component { state = { ...
app/javascript/mastodon/features/list_timeline/index.js
theoria24/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnBackButton from '../../co...
app/javascript/mastodon/features/compose/index.js
danhunsaker/mastodon
import React from 'react'; import ComposeFormContainer from './containers/compose_form_container'; import NavigationContainer from './containers/navigation_container'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import { mountCom...
src/containers/navbar/navbar.js
warrenwchan/tango-tropical-grill
import React, { Component } from 'react'; import Link from 'gatsby-link'; import styles from './styles.scss'; import logo from './../../assets/tangologo.svg'; const NavBar = () => ( <div className="navBar"> <div className="mobileLogoContain"> <img className="mobileLogo" src={logo} alt="Tango Logo"/> <...
examples/todomvc/containers/TodoApp.js
PatrickEifler/redux
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Header from '../components/Header'; import MainSection from '../components/MainSection'; import * as TodoActions from '../actions/todos'; class TodoApp extends Component { render() { ...
src/components/Footer/index.js
gomesalexandre/gomesalexandre.github.io
import React from 'react'; import {Flex, Box} from '@rebass/grid'; import GatsbyLogo from '../../static/img/gatsby-logo.svg'; import ReactLogo from '../../static/img/react-logo.svg'; import GraphQlLogo from '../../static/img/graphql-logo.svg'; const Footer = () => ( <Flex className="footer" justifyContent='center'>...
src/infopages/ScikicProfile.js
VasilyShelkov/scikic-app
import React from 'react'; const ScikicProfile = () => ( <div className="ui fluid card"> <div className="image"> <img src="../images/EmilyTheStrange.png" alt="Emily the Strange Scikic Logo" style={{ width: '300px', height: '300px', display: 'block', margin: 'auto' }} /> </div> <div classNa...
client/trello/src/app/components/BoardOptions/BoardOptions.js
Madmous/madClones
import React from 'react'; import { BoardOptionsItems } from '../index'; import './BoardOptions.css'; export default function BoardOptions() { return ( <div className="BoardOptions"> <BoardOptionsItems /> </div> ); }
src/index.js
codeschool/silo
import React from 'react'; import { render } from 'react-dom'; const CHALLENGES = [ { instructions: "Which CSS property would we use to italicize text?", code: (selections)=> { return (<div class='answer'> <p class='lead pull-left'>box-shadow:</p> <ul class='list-inline answer-list pu...
src/server.js
bazanowsky/react-ssr-exercise
import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; import httpProxy from 'http-proxy'; import path from 'path'; import createStore from './redux/create'; import ApiC...
src/components/form/controls/Check.js
TechyFatih/Nuzlog
import React from 'react'; import { Checkbox } from 'react-bootstrap'; export default class Check extends React.Component { constructor() { super(); this.handleChange = this.handleChange.bind(this); } handleChange(e) { if (typeof this.props.onChange == 'function') this.props.onChange(e.target....
src/ModalDialog.js
IveWong/react-bootstrap
/*eslint-disable react/prop-types */ import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const ModalDialog = React.createClass({ mixins: [ BootstrapMixin ], propTypes: { /** * A Callback fired when the header closeButton or non-static backdrop ...
node_modules/react-router/es6/Router.js
Starnes81/ReduxBlogTut
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 = {...
packages/material-ui-icons/src/MoreVert.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let MoreVert = props => <SvgIcon {...props}> <path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" /> </...
src/components/getPublicKey.js
Tasemu/Simple-PGP
import React, { Component } from 'react'; import { css, StyleSheet } from 'aphrodite'; import { inject, observer, PropTypes as MobxPropTypes } from 'mobx-react'; import { colours } from 'utils/constants'; const { clipboard } = require('electron'); const componentStyles = StyleSheet.create({ form: { width: '100%...
src/TitleBar/windows/Controls/Minimize.js
gabrielbull/react-desktop
import React, { Component } from 'react'; import WindowFocus from '../../../windowFocus'; import { themeContextTypes } from '../../../style/theme/windows'; import { backgroundContextTypes } from '../../../style/background/windows'; import { isDarkColor } from '../../../color'; import Radium from 'radium' var styles = ...
app/src/components/Loader.js
RekkyRek/tic
import '../assets/css/Loading/Loading.sass'; import React, { Component } from 'react'; class Loader extends React.Component { constructor(props) { super(props); this.state = { } } componentDidMount() { setTimeout(()=>{ if(this.refs.reload != undefined) { this.refs.reload.className ...
src/components/eventData.js
Scya597/Caltcha
import React, { Component } from 'react'; import DatePicker from 'react-datetime'; import axios from 'axios'; import { Link } from 'react-router-dom'; import { Col, Button, Glyphicon, Label } from 'react-bootstrap'; function finaldateFormat(finaldate) { if (typeof finaldate === 'undefined' || typeof finaldate.date =...
src/svg-icons/device/signal-cellular-no-sim.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularNoSim = (props) => ( <SvgIcon {...props}> <path d="M18.99 5c0-1.1-.89-2-1.99-2h-7L7.66 5.34 19 16.68 18.99 5zM3.65 3.88L2.38 5.15 5 7.77V19c0 1.1.9 2 2 2h10.01c.35 0 .67-.1.96-.26l1.88 1.88 ...
packages/app/app/components/NavButtons/index.js
nukeop/nuclear
import React from 'react'; import PropTypes from 'prop-types'; import FontAwesome from 'react-fontawesome'; import cx from 'classnames'; import styles from './styles.scss'; import {withRouter} from 'react-router'; export class NavButtons extends React.Component { constructor(props) { super(props); this.enab...
src/controller/EventExample.js
dazhifu/react-touch-ui
import React from 'react'; import { NavBar } from "../components/NavBar.js" import { View } from "../components/View.js" import { VLayout} from "../components/VLayout.js" import { Container} from "../components/Container.js" import { Button } from "../components/Button.js" import { Event1Example } ...
frontend/src/components/eois/buttons/awardApplicationButtonContainer.js
unicef/un-partner-portal
import React from 'react'; import PropTypes from 'prop-types'; import Button from 'material-ui/Button'; import Tooltip from 'material-ui/Tooltip'; import { Link } from 'react-router'; import AwardApplicationButton from './awardApplicationButton'; import { APPLICATION_STATUSES } from '../../../helpers/constants'; cons...
src/containers/FeatureAnalysisPage/FeatureAnalysisPage.js
armaniExchange/work-genius
import React, { Component } from 'react'; class FeatureAnalysisPage extends Component { render() { return ( <div className="feature-analysis-page"> { this.props.children } </div> ); } } export default FeatureAnalysisPage;
src/Level/LevelLeft.js
boldr/boldr-ui
/* @flow */ import React from 'react'; import classNames from 'classnames'; import { StyleClasses } from '../theme/styleClasses'; import { createWrappedComponent } from '../util/boldrui'; export type Props = { tag?: string, className?: string, }; const BASE_ELEMENT = StyleClasses.LEVEL_LEFT; export function Leve...
client/routes.js
brucelane/react-redux
import React from 'react'; import {Route, IndexRoute} from 'react-router'; import App from './components/App'; import Welcome from './components/Welcome'; import SignupPage from './components/signup/SignupPage'; export default ( <Route path="/" component={App}> <IndexRoute component={Welcome} /> <Route path...
src/main/js/src/components/comment/CommentList.js
fernandojunior/spring-react-boilerplate
import React from 'react'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { RouterType } from '../../propTypes'; import Comment from './Comment'; import { deleteComment, refreshComments } from './actions'; import './CommentList.less'; const actionCreators = { deleteComment, ref...
common/components/postlist.js
hackersync/HackerSync
/** * Component that renders list of top Hacker News posts * @flow */ import React, { Component } from 'react'; import DataFetch from './datafetch.js'; import Post from './post.js'; import { Image, ListView, StyleSheet, TouchableHighlight, View, } from 'react-native'; import Firebase from 'firebase'; let Fir...
fields/types/email/EmailColumn.js
dvdcastro/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var EmailColumn = React.createClass({ displayName: 'EmailColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue () { ...
EduChainApp/js/common/Header.js
bkrem/educhain
/** * This component was partially adapted from Facebook's open-source `F8Header` component * SOURCE: https://github.com/fbsamples/f8app/blob/df8846840a481f7ac50dd4861c326fcbab85c504/js/common/F8Header.js * * @flow */ 'use strict'; import React from 'react'; import { View, Text, StyleSheet, Touch...
website/modules/components/SourceViewer.js
DelvarWorld/react-router
/*eslint-disable react/no-danger*/ import React from 'react' import PropTypes from 'prop-types' import 'prismjs/themes/prism-tomorrow.css' import { Block } from 'jsxstyle' const SourceViewer = ({ code, ...rest }) => ( <Block component="pre" background="rgb(45, 45, 45)" color="white" margin="0" ov...
index.js
Jocs/counter_with_redux
import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import storeConfig from './store/storeConfig' import App from './components/App' const store = storeConfig() render( <Provider store={store}> <App/> </Provider>, document.querySelector('#root') )
node_modules/react-router/es6/Redirect.js
rekyyang/ArtificalLiverCloud
'use strict'; import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { formatPattern } from './PatternUtils'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _Rea...
frontend/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
SokolovArtur/tochka
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
packages/lightning-core/request/PaymentRequestPopup.js
DaReaper/lightning-app
import React from 'react' import reactCSS from 'reactcss' import { remote } from 'electron' import { Popup } from 'lightning-popup' import { Head, Input } from '../common' const { Menu, MenuItem } = remote export const POPUP_NAME = 'paymentRequest' export const PaymentRequestPopup = ({ paymentRequest, closePopup }) ...
app/containers/common/CreateInstitution.js
klpdotorg/tada-frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Formsy from 'formsy-react'; import FRC from 'formsy-react-components'; import reduce from 'lodash.reduce'; import get from 'lodash.get'; import isEmpty from 'lodash.isempty'; import { DEFAULT_YEAR } from 'config'; import 'react-select...
src/svg-icons/action/event-seat.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionEventSeat = (props) => ( <SvgIcon {...props}> <path d="M4 18v3h3v-3h10v3h3v-6H4zm15-8h3v3h-3zM2 10h3v3H2zm15 3H7V5c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2v8z"/> </SvgIcon> ); ActionEventSeat = pure(ActionEventSe...
app/screens/containers/seller/home-address-list.js
yiyinsong/react-native-example-jdh
import React, { Component } from 'react'; import { View, Text, TouchableOpacity, Image, ScrollView, DeviceEventEmitter, InteractionManager } from 'react-native'; import styles from '../../../css/styles'; import Config from '../../../config/config'; import ScreenInit from '../../../config/screenInit'; i...
fields/types/relationship/RelationshipFilter.js
stunjiturner/keystone
import async from 'async'; import React from 'react'; import xhr from 'xhr'; import { Button, FormField, FormInput, InputGroup, SegmentedControl } from 'elemental'; import PopoutList from '../../../admin/client/components/PopoutList'; const TOGGLE_OPTIONS = [ { label: 'Linked To', value: false }, { label: 'NOT Lin...
pootle/static/js/auth/components/RequestPasswordResetProgress.js
Finntack/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import { PureRenderMixin } from...
demo-react/src/index.js
renhongl/Summary
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
node_modules/react-native/Libraries/Utilities/throwOnWrongReactAPI.js
horizon-z40/RN-homework
/** * 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...
internals/templates/containers/App/index.js
kaizen7-nz/gold-star-chart
/** * * App.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot ...
client/state/ui/guided-tours/test/fixtures/config.js
tinkertinker/wp-calypso
import React from 'react'; /** * Internal dependencies */ import { combineTours, makeTour, Tour, Step, } from 'layout/guided-tours/config-elements'; import { isNewUser, inSection } from 'state/ui/guided-tours/contexts'; export const MainTour = makeTour( <Tour name="main" version="test" path="/" when={ isNewUs...
front_end/src/components/App/Navigation/TopBar.js
ncloudioj/splice
import React, { Component } from 'react'; import { Link } from 'react-router'; window.$ = require('jquery'); import SideBar from 'components/App/Navigation/SideBar.js'; import AccountNavigation from 'components/App/Navigation/AccountNavigation.js'; import BreadCrumbs from 'components/App/Navigation/BreadCrumbs.js'; i...
src/svg-icons/action/query-builder.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionQueryBuilder = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5...
src/editable/html/containers/GridLayout.js
webcerebrium/ec-react15-lib
import React from 'react'; import { Logger, getStyling, renderChildren } from './../../../services'; import './GridLayout.css'; export const GridLayout = ({ section, index, props, context, pos, childIndex }) => { Logger.of('render.html.GridLayout').info('section', section, 'index', index, 'props', props, 'pos', pos)...
elements/Circle.js
udfalkso/react-native-svg
import React from 'react'; import createReactNativeComponentClass from 'react-native/Libraries/Renderer/src/renderers/native/createReactNativeComponentClass'; import Shape from './Shape'; import {CircleAttributes} from '../lib/attributes'; import {pathProps, numberProp} from '../lib/props'; import extractProps from '.....
examples/src/components/SelectedValuesField.js
reynolek/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var SelectedValuesField = React.createClass({ displayName: 'SelectedValuesField', propTypes: { allowCreate: React.PropTy...
packages/examples/pages/activity-indicator/index.js
necolas/react-native-web
import { ActivityIndicator, StyleSheet, View } from 'react-native'; import React from 'react'; import Example from '../../shared/example'; export default function ActivityIndicatorPage() { const [animating, setAnimating] = React.useState(true); React.useEffect(() => { const interval = setInterval(() => { ...
src/index.js
swarajd/todo-redux
import React from 'react'; import {render} from 'react-dom'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; import './styles/styles.scss'; //Yep, that's right. You can import SASS/CSS files too! Webpack will run the associated loader and ...
frontend/jqwidgets/jqwidgets-react/react_jqxtagcloud.js
yevgeny-sergeyev/nexl-js
/* jQWidgets v5.7.2 (2018-Apr) Copyright (c) 2011-2018 jQWidgets. License: https://jqwidgets.com/license/ */ import React from 'react'; const JQXLite = window.JQXLite; export const jqx = window.jqx; export default class JqxTagCloud extends React.Component { componentDidMount() { let options = this.manag...
Components/Alert.js
webismymind/Mycelium
import React from 'react'; import Component from './Component'; import { Easing, StyleSheet, Text, View, Animated, TouchableOpacity } from 'react-native'; export default class extends Component { constructor(props) { super(props); this.state = { isVisible : false, style ...
views/decoration_toggle.js
noikiy/black-screen
import React from 'react'; export default React.createClass({ getInitialState() { return {enabled: this.props.invocation.state.decorate}; }, handleClick(event) { stopBubblingUp(event); var newState = !this.state.enabled; this.setState({enabled: newState}); this.prop...
src/util/getElementHTML.js
HubSpot/draft-convert
import invariant from 'invariant'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; import splitReactElement from './splitReactElement'; function hasChildren(element) { return ( React.isValidElement(element) && React.Children.count(element.props.children) > 0 ); } export default f...
src/components/PasswordInput/PasswordInput.js
ibenavides/ps-react-ibenavides
import React from 'react'; import PropTypes from 'prop-types'; import ProgressBar from '../ProgressBar'; import EyeIcon from '../EyeIcon'; import TextInput from '../TextInput'; /** Password input with integrated label, quality tips, and show password toggle. */ class PasswordInput extends React.Component { construct...
client/index.js
vgamula/sp
require('babel-polyfill') import React from 'react' import ReactDOM from 'react-dom' import Application from 'app' ReactDOM.render(<Application name="World" />, document.getElementById('app')) if (module.hot) { module.hot.accept(['./app', './index', 'app', 'index'], () => { const NextApp = require('./...
src/index.js
jeetiss/magazfr
import React from 'react' import ReactDOM from 'react-dom' import App from './App' import { Provider } from 'react-redux' import createStore from './createStore' const mountPoint = document.getElementById('root') const store = createStore() ReactDOM.render( <Provider store={store}> <App /> </Provider>, moun...
srcjs/components/BookForm.js
spapas/react-tutorial
import React from 'react' import { addBookResult, updateBookResult, deleteBookResult, loadBook, showSuccessNotification, showErrorNotification, loadCategories, loadSubCategories, submittingChanged } from '../actions' import { reduxForm } from 'redux-form'; import { routeActions } from 'react-router-redux' import ...
app/components/eventList.js
merj4/merj
import React, { Component } from 'react'; import {EventItem} from './eventItem'; class EventList extends Component { constructor(props) { super(props) this.state = {list: this.props.events, updated: false} this.deleteEvent = this.deleteEvent.bind(this) } deleteEvent(newList) { this.setState({ list...
src/client/views/index.js
uuchat/uuchat
import React from 'react'; import ReactDOM from 'react-dom'; import { Route, Switch,BrowserRouter } from 'react-router-dom'; import AsyncComponent from '../components/common/asyncComponent.js'; import LoginView from './login/index'; import '../static/css/app.css'; const CustomerSuccessView = AsyncComponent(() => impor...
src/svg-icons/maps/directions-subway.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsSubway = (props) => ( <SvgIcon {...props}> <path d="M12 2c-4.42 0-8 .5-8 4v9.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h12v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V6c0-3.5-3.58-4-8-4zM7.5 17c-.83 0-1.5-.67-1.5...
src/parser/priest/discipline/modules/spells/Castigation.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import { formatNumber, formatPercentage } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import isAtonement from '...
lib/components/pages/Journal.js
michaelbontyes/journey
import React from 'react' import { Link } from 'react-router' import { defineMessages, FormattedMessage } from 'react-intl' //import Explorer from '../wordpress/Explorer' const messages = defineMessages({ aboutThanks: { id: 'about.specialThanks', description: 'Thanks to Dan Abramov for the idea of Redux', ...
docs/client.js
erictherobot/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/Snackbar.js
kctang/mdl-ui
import React from 'react'; import * as Mdl from 'react-mdl'; export default class Snackbar extends React.Component { constructor(props) { super(props); this.hideSnackbar = this.hideSnackbar.bind(this); this.state = { snackbarActive: false, }; } componentDidMount() { if (this.props.snac...
src/index.js
blurbyte/hack-the-news
//required for redux-saga generatos import "regenerator-runtime/runtime"; /*eslint-disable import/default */ import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; //styles reset import 'sanitize.css/sanitize.css'; //router import { Router, browserHistory, applyRouterM...
Project 04 - Custom splash screen/src/App.js
DCKT/30DaysofReactNative
import React from 'react' import { Provider } from 'react-redux' import store from './store' import { StackNavigator } from 'react-navigation' import Home from './containers/Home' const Router = StackNavigator({ Home: { screen: Home } }) export default class App extends React.Component { render () { return (...
src/reactReduxMiddleware/entries/reactReduxMiddleware.js
JackZhangXL/react-redux
import React, { Component } from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import { createStore } from 'redux'; import { Provider } from 'react-redux'; import reducer from '../reducers/index'; import Sample from '../containers/sample/sample'; import { middleware1,...
stories/NoBorders/index.js
henrybuilt/react-sticky-table
import React, { Component } from 'react'; import { StickyTable, Row, Cell } from '../../src'; export default class NoBorders extends Component { render() { var rows = []; var cells; for (var r = 0; r < 50; r++) { cells = []; for (var c = 0; c < 20; c++) { cells.push(<Cell key={c}>{...
src/browser/extension/popup/index.js
zalmoxisus/crossbuilder
import React from 'react'; import { render } from 'react-dom'; import Root from 'app/containers/Root'; chrome.runtime.getBackgroundPage(background => { const { store, unsubscribe } = background.getStore(); render( <Root store={store} />, document.getElementById('root') ); addEventListener('unload', uns...
src/index.js
shangraochq/gallery-by-react
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
app/javascript/mastodon/features/list_timeline/index.js
riku6460/chikuwagoddon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnBackButton from '../../co...
app/src/Frontend/modules/weui/pages/msg/index.js
ptphp/ptphp
/** * Created by jf on 15/12/10. */ "use strict"; import React from 'react'; import {Button, Msg} from '../../../../index'; import Page from '../../component/page'; export default class MsgDemo extends React.Component { state = { buttons: [{ type: 'primary', label: '确定', ...
ui/Home/index.js
samuelngs/px
import React, { Component } from 'react'; import { View, Image, Text, StyleSheet, TouchableHighlight } from 'react-native'; import ImageGrid from 'px/components/ImageGrid'; import ImageList from 'px/components/ImageList'; import ActionSheet, { ActionMenu } from 'px/components/ActionSheet'; import { SharedView } from ...
src/components/settings/SetCurrency.js
whphhg/vcash-electron
import React from 'react' import { translate } from 'react-i18next' import { inject, observer } from 'mobx-react' /** Ant Design */ import Select from 'antd/lib/select' @translate(['common']) @inject('gui', 'rates') @observer class SetCurrency extends React.Component { constructor(props) { super(props) this...
scripts/generateStorybook.js
Thorium-Sim/thorium
const fs = require("fs"); // Loop through all of the cards fs.readdirSync("./src/components/views") .map(f => ({path: `./src/components/views/${f}`, name: f})) .filter(f => { return fs.statSync(f.path).isDirectory(); }) .forEach((f, i) => { if (fs.existsSync(`${f.path}/index.stories.js`)) return; //...
src/encoded/static/libs/ui/tooltip.js
ENCODE-DCC/encoded
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; // Render tooltips to the document body // This prevents cropping when the tooltips overflow their parent containers // Code modified from: http://jamesknelson.com/rendering-react-components-to-the-document-body/ class Ren...
src/client/components/meeting/meeting-grid-view.js
pgryko/meeting
/* * Copyright (C) 2015-2016 InSeven Limited. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program...
src-rx/src/components/JsonConfigComponent/ConfigPassword.js
ioBroker/ioBroker.admin
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import TextField from '@material-ui/core/TextField'; import IconButton from '@material-ui/core/IconButton'; import InputAdornment from '@material-ui/core/InputAdornment'; import Visibility from '@mate...
src/Table2.js
yuyaohshimo/react-handsontable-mock
import React from 'react'; import ReactDOM from 'react-dom'; // ... Handsontable with its main dependencies... import moment from 'moment'; import numbro from 'numbro'; import pikaday from 'pikaday'; import Zeroclipboard from 'zeroclipboard'; import Handsontable from 'handsontable'; // ... and HotTable import HotTabl...
src/components/ColorPicker.js
Charlie9830/pounder
import React from 'react'; import { IconButton } from '@material-ui/core'; import ColorChit from './AppSettingsMenu/ThemeControls/ColorChit'; let nativeColorInputStyle = { visibility: 'hidden', // Dont use display: none. Doing so will stop the onChange event from firing. width: '0px', height: '0px', } cla...
ie8/src.js
mcraiganthony/react-bootstrap
import React from 'react'; import Button from '../src/Button'; import DropdownButton from '../src/DropdownButton'; import MenuItem from '../src/MenuItem'; import Accordion from '../src/Accordion'; import Panel from '../src/Panel'; import ButtonToolbar from '../src/ButtonToolbar'; import OverlayTrigger from '../src/Over...
sc/src/main/javascript/bundles/gene-search/src/ExperimentsHeader.js
gxa/atlas
import React from 'react' import styled from 'styled-components' import PropTypes from "prop-types" const CardContainerDiv = styled.div` height: 100%; width: 100%; display: flex !important; flex-wrap: nowrap; align-items: center; padding: 1rem; font-weight: bolder; font-size: 0.9rem; ` const IconDiv =...
client/modules/Post/__tests__/components/PostListItem.spec.js
Alex-Keyes/socialmediabot
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import PostListItem from '../../components/PostListItem/PostListItem'; import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper'; const post = { name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: ...