path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/redux.js
bigwisu/asik-sehat
import React from 'react' import { Provider } from 'react-redux' import { initializeStore } from './store' import App from 'next/app' export const withRedux = (PageComponent, { ssr = true } = {}) => { const WithRedux = ({ initialReduxState, ...props }) => { const store = getOrInitializeStore(initialReduxState) ...
src/weather/index.js
jimboslicethat/rpi-home-dashboard
import { startCase, toLower } from 'lodash' import React from 'react' import CssModules from 'react-css-modules' import * as actions from './actions' import connect from '../common/store/connect' import Error from '../common/components/error' import * as locationActions from '../location/actions' import { selector as ...
tp-4/euge/src/pages/users/Listado.js
jpgonzalezquinteros/sovos-reactivo-2017
import React from 'react'; import PropTypes from 'prop-types'; import { Layout, Table, Button } from 'antd'; const { Content } = Layout; const columns = [{ title: 'Nombre', dataIndex: 'name', width: '20%', }, { title: 'User Name', dataIndex: 'username', width: '20%', },{ title: 'Email', dataIndex: 'em...
src/encoded/static/components/schema.js
T2DREAM/t2dream-portal
import React from 'react'; import PropTypes from 'prop-types'; import marked from 'marked'; import { Panel, PanelHeading, PanelBody, TabPanel, TabPanelPane } from '../libs/bootstrap/panel'; import { collapseIcon } from '../libs/svg-icons'; import { Param, FetchedData } from './fetched'; import * as globals from './glob...
src/components/Demo3.js
dkozar/react-liberator
import React, { Component } from 'react'; import { Alert, Button } from 'react-bootstrap'; import Toolbar from './Toolbar'; import Liberator from './Liberator'; import SourceLink from './SourceLink'; import ReactWrappyText from 'react-wrappy-text'; require('./../styles/demo3.css'); export default class Demo3 extends ...
packages/bonde-admin-canary/src/components/PageLogged/Header/Title.js
ourcities/rebu-client
import React from 'react' import { Title } from 'bonde-styleguide' export default ({ children }) => <Title.H3 color='#fff'>{children}</Title.H3>
src/components/Tabset/EventTab.js
xander-salesforce/lcc-react-quickstart-app
import React, { Component } from 'react'; import * as LCC from 'lightning-container'; import PropTypes from 'prop-types'; class EventTab extends Component { static propTypes = { isActive: PropTypes.string.isRequired, } constructor(props) { super(props); this.state = {isActive: false}; this.handle...
routes/routes.js
jordanallen98/nimblecode
import React from 'react'; import { Router, Route, browserHistory, hashHistory, IndexRoute, useRouterHistory } from 'react-router'; import { createHashHistory } from 'history'; import App from '../client/components/App.js'; import Singleplayer from '../client/containers/Singleplayer.js'; import Multiplayer from '../cli...
src/pages/page-2.js
budimulyawan/demo-midback-office-build
import React from 'react' import Link from 'gatsby-link' const SecondPage = () => ( <div> <h1>Hi from the second page</h1> <p>Welcome to page 2</p> <Link to="/">Go back to the homepage</Link> </div> ) export default SecondPage
src/components/SplitIt/RestaurantSearch.js
tfrankie88/splitzi_react
import React, { Component } from 'react'; class RestaurantSearch extends Component { constructor() { super(); this.state = { search: '' }; } handleRestaurantSubmit(event) { event.preventDefault(); this.props.searchRestaurant(this.state.search); this.setState({ search: '' }); } ...
nailgun/static/views/cluster_page_tabs/dashboard_tab.js
eayunstack/fuel-web
/* * Copyright 2015 Mirantis, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
src/client/components/user-home/user-home.js
nemecec/base
'use strict'; import './user-home.less'; import React from 'react'; import Bootstrap from 'react-bootstrap'; import UserActions from '../../flux/actions/user-actions'; import UserStore from '../../flux/stores/user-store'; import ActionTypes from '../../flux/constants/action-types'; import UserProfile from '../user-pro...
src/components/common/svg-icons/editor/insert-comment.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertComment = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/> </SvgIcon> ); EditorInsertCom...
src/app.js
bstst/react-csv-parser
import React from 'react' import Parser from './parser' import styles from './app.css' class App extends React.Component { state = { loading: false, value: "a,b,\n1,\"2,222\",3\n4,,6" } render () { return ( <div className={styles.content}> <h1>A Super Simple CSV parser</h1> <p...
fields/components/ItemsTableValue.js
xyzteam2016/keystone
import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; import { Link } from 'react-router'; var ItemsTableValue = React.createClass({ displayName: 'ItemsTableValue', propTypes: { className: React.PropTypes.string, exterior: React.PropTypes.bool, field: React.PropType...
examples/rasteropacity/app.js
boundlessgeo/sdk
/** Raster opacity example. */ import {createStore, combineReducers} from 'redux'; import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import SdkZoomControl from '@boundlessgeo/sdk/components/map/zoom-control'; import SdkMapReducer from '@boundlessgeo/sdk/reducers/map...
src/utils/CustomPropTypes.js
pivotal-cf/react-bootstrap
import React from 'react'; import warning from 'react/lib/warning'; import childrenToArray from './childrenToArray'; const ANONYMOUS = '<<anonymous>>'; /** * Create chain-able isRequired validator * * Largely copied directly from: * https://github.com/facebook/react/blob/0.11-stable/src/core/ReactPropTypes.js#L9...
apps/marketplace/components/Reports/ReportItem.js
AusDTO/dto-digitalmarketplace-frontend
/* eslint-disable jsx-a11y/no-noninteractive-tabindex */ import React from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' import includes from 'lodash/includes' import { uniqueID } from '../helpers' import * as styles from './ReportItem.scss' const computeClassname = (base, alt, formatt...
app/root.js
csujedihy/react-native-textgo
import React, { Component } from 'react'; import { createStore, applyMiddleware, combineReducers } from 'redux'; import { Provider } from 'react-redux'; import thunk from 'redux-thunk'; import * as reducers from './Reducers'; import App from './index'; const createStoreWithMiddleware = applyMiddleware(thunk)(createSt...
jenkins-design-language/src/js/components/material-ui/svg-icons/av/playlist-play.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvPlaylistPlay = (props) => ( <SvgIcon {...props}> <path d="M19 9H2v2h17V9zm0-4H2v2h17V5zM2 15h13v-2H2v2zm15-2v6l5-3-5-3z"/> </SvgIcon> ); AvPlaylistPlay.displayName = 'AvPlaylistPlay'; AvPlaylistPlay.muiName = 'SvgIcon'; export default AvP...
js/example.js
everolth/bootstrap-toggle-react
import Toggle from './bootstrap-toggle.js'; import React from 'react'; export default React.createClass({ getInitialState: function () { return { disabled: false, checked: true } }, render : function () { return ( <div> <h3>Props</h3> <p>Props can be used to control ...
node_modules/semantic-ui-react/dist/es/elements/Step/Step.js
SuperUncleCat/ServerMonitoring
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/i...
src/docs/examples/PasswordInput/ExampleAllFeatures.js
wsherman67/UBA
import React from 'react'; import PasswordInput from 'ps-react/PasswordInput'; /** All features enabled */ class ExampleAllFeatures extends React.Component { constructor(props) { super(props); this.state = { password: '' }; } getQuality() { const length = this.state.password.length; r...
src/containers/comment/commentList.js
motion123/mbookmakerUI
/** * Created by tomihei on 17/04/05. */ import React from 'react' import { connect } from 'react-redux' import CommentList from '../../components/comment/commentList' import * as commentAction from '../../actions/comment' function mapStateToProps(state) { return { isFetching: state.comment.isFetching, com...
src/components/alerts/ErrorAlert.js
TheKooxd/cat-analytics-dashboard
import React from 'react'; import {Alert, Button} from 'react-bootstrap'; export default class ErrorAlert extends React.Component { constructor(props) { super(props); this.state = {alertVisible: true, icon: "glyphicon"}; this.handleAlertDismiss = this.handleAlertDismiss.bind(this); this.handleAlertS...
app/components/Footer/index.js
kdprojects/nichesportapp
import React, { Component } from 'react'; import FontIcon from 'material-ui/FontIcon'; import { BottomNavigation, BottomNavigationItem } from 'material-ui/BottomNavigation'; import Paper from 'material-ui/Paper'; import IconLocationOn from 'material-ui/svg-icons/communication/location-on'; import MuiThemeProvider from ...
src/index.js
dachi023/snippets
import React from 'react' import ReactDOM from 'react-dom' import {Router, browserHistory} from 'react-router' import injectTapEventPlugin from 'react-tap-event-plugin' injectTapEventPlugin() import routes from './routes' ReactDOM.render(<Router history={browserHistory} routes={routes} />, document.getElementById('ro...
app/components/variable-editor.js
BrackCurly/qwery-me
import _ from 'lodash'; import React from 'react'; import Variable from './variable'; import AddVariableButton from './add-variable-button'; import store from '../store'; import {deleteVariable, updateVariable, addVariable} from '../actions'; export default class VariableEditor extends React.Component { render () { ...
src/Parser/Core/Modules/Items/Legion/TombOfSargeras/SpectralThurible.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import ItemDamageDone from 'Main/ItemDamageDone'; // Spear appears to be kinda slow, saw hits from same spear seperated...
src/board/AWBoard.js
corbig/AfterWorkManager
import React from 'react'; import AWBoardPic from './components/AWBoardPicture'; import Container from 'muicss/lib/react/container'; import Row from 'muicss/lib/react/row'; import Col from 'muicss/lib/react/col'; import AWTodoList from './components/AWTodoList'; import AWChat from './components/AWChat'; import AWMapCar...
tests/lib/rules/vars-on-top.js
spadgos/eslint
/** * @fileoverview Tests for vars-on-top rule. * @author Danny Fritz * @author Gyandeep Singh * @copyright 2014 Danny Fritz. All rights reserved. * @copyright 2014 Gyandeep Singh. All rights reserved. */ "use strict"; //------------------------------------------------------------------------------ // Requiremen...
app/javascript/mastodon/features/compose/components/upload_progress.js
rekif/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import { FormattedMessage } from 'react-intl'; export default class UploadProgress extends React.PureComponent { static propTypes = { active: PropTypes...
src/mui/button/CreateButton.js
RestUI/rest-ui
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; import onlyUpdateForKeys from 'recompose/onlyUpdateForKeys'; import FlatButton from 'material-ui/FlatButton'; import FloatingActionButton from 'material-ui/FloatingActionButton'; import ContentAdd from 'material-ui/svg-i...
src/index.js
Reditr-Software/reditr
import React from 'react' import ReactDOM from 'react-dom' import './index.css' import App from './components/App' import registerServiceWorker from './registerServiceWorker' ReactDOM.render(<App />, document.getElementById('root')) registerServiceWorker()
lib/carbon-fields/vendor/htmlburger/carbon-fields/assets/js/fields/components/media-gallery/list.js
boquiabierto/wherever-content
/** * The external dependencies. */ import $ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import observeResize from 'observe-resize'; import { compose, withState, withHandlers, lifecycle, } from 'recompose'; import { isUndefined } from 'lodash'; ...
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store_new/source/src/app/components/Login/LoginBase.js
abimarank/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/li...
src/components/maps/Choropleth.js
NuCivic/react-dash
import React, { Component } from 'react'; import Registry from '../../utils/Registry'; import BaseComponent from '../BaseComponent'; import Card from '../Card'; import Loader from '../Loader'; import Datamap from './Datamap'; import HoverInfo from './HoverInfo'; import { feature } from 'topojson' import d3 from 'd3'; i...
src/browser/cards/Singleplayer.js
xiankai/triple-triad-solver
import React from 'react'; import { connect } from 'react-redux'; import { ActionCreators } from 'redux-undo'; import { populateDeck, resetGame, } from '../../common/cards/actions'; import { Button, Grid, Flex, } from '../app/components'; import { generateRandomDeck } from '../../common/cards/logic'; con...
src/interface/statistics/Panel.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import InterfacePanel from 'interface/others/Panel'; import STATISTIC_CATEGORY from 'interface/others/STATISTIC_CATEGORY'; import ErrorBoundary from 'interface/common/ErrorBoundary'; const Panel = ({ category, position, ...others }) => ( <ErrorBoundary>...
src/hermes/HermesMessageItem.js
Synchro-TEC/apollo
import React from 'react'; import PropTypes from 'prop-types'; import HermesAPI from './HermesApi'; import HermesStyles from './HermesStyles'; import classNames from 'classnames'; const HermesMessageItem = ({ message }) => { const classButtonMap = { info: 'link-info', error: 'link-danger', success: 'link...
es/_wlk/icons/Github.js
welovekpop/uwave-web-welovekpop.club
import _jsx from "@babel/runtime/helpers/builtin/jsx"; import _extends from "@babel/runtime/helpers/builtin/extends"; import React from 'react'; import SvgIcon from "@material-ui/core/es/SvgIcon"; /* eslint-disable max-len */ var _ref = /*#__PURE__*/ _jsx("path", { d: "M409.132 114.573c-19.608-33.596-46.205-60.194-7...
src/index.js
betoesquivel/pili_frontend
import React from 'react'; import ReactDOM from 'react-dom'; import { ApolloClient, ApolloProvider, createNetworkInterface, } from 'react-apollo'; import App from './App'; import './index.css'; const networkInterface = createNetworkInterface({ uri: 'https://wbdfwma4ag.execute-api.us-west-2.amazonaws.com/dev/...
src/layouts/Footer.js
akhatri/portfolio-website
import React from 'react'; const Footer = () => { const FooterStyles = { 'borderTop': '1px solid #bebebe', 'backgroundColor': 'whitesmoke', 'paddingTop': '2rem', 'paddingBottom': '2rem' } return ( <footer style={FooterStyles}> <div className="container"> <h3 className="text-ce...
fluxArchitecture/src/js/components/catalog/app-catalog.js
3mundi/React-Bible
import React from 'react'; import AppStore from '../../stores/app-store'; import CatalogItem from './app-catalogitem'; import StoreWatchMixin from '../../mixins/StoreWatchMixin'; function getCatalog(){ return { items: AppStore.getCatalog() } } const Catalog = (props) => { let items = props.items.map( item => { ...
na-frontend/js/components/Main.js
d3spis3d/na-streamer
import React from 'react'; import Queue from './Queue'; import Library from './Library'; const divStyles = { flex: 9, display: 'flex' }; export default class Main extends React.Component { render() { return ( <div style={divStyles}> <Queue queue={this.props.queue} refr...
src/components/Blitz/HideShow.js
Anshul-HL/blitz-row
import React, { Component } from 'react'; export default class HideShow extends Component { constructor(props) { super(props); this.state = { isToggleOn: false }; } handleToggle(event) { event.preventDefault(); this.setState({ isToggleOn: !(this.state.isToggleOn) }); } ren...
docs/src/app/components/pages/components/IconMenu/ExampleSimple.js
w01fgang/material-ui
import React from 'react'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import IconButton from 'material-ui/IconButton'; import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert'; /** * Simple Icon Menus demonstrating some of the layouts possible using the `anc...
ajax/libs/react-instantsearch/5.0.2/Connectors.js
seogi1004/cdnjs
/*! ReactInstantSearch 5.0.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :...
src/renderer/components/Settings/SettingsAudio.react.js
MrBlenny/museeks
import React, { Component } from 'react'; import { connect } from 'react-redux'; import lib from '../../lib'; class SettingsAudio extends Component { static propTypes = { config: React.PropTypes.object, setPlaybackRate: React.PropTypes.func, } constructor(props) { super(props); ...
packages/showcase/showcase-components/source-linker.js
uber-common/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
src/components/header.component.js
steven-fernandez/electron-react-bootstrap-starter
import React, { Component } from 'react'; import styles from './header.component.styles'; class Header extends Component { render() { return ( <div style={styles.HeaderWrapper}> <div className="row"> <div className="col-md-12"> <div className="jumbotron"> <h1>{th...
frontend/src/shared-file-view-text.js
miurahr/seahub
import React from 'react'; import ReactDOM from 'react-dom'; import { Utils } from './utils/utils'; import SharedFileView from './components/shared-file-view/shared-file-view'; import SharedFileViewTip from './components/shared-file-view/shared-file-view-tip'; import CodeMirror from 'react-codemirror'; import 'codemir...
src/app/LeftMenu.js
leoliew/react-webpack-example
/** * Created by leoliew on 2016/11/25. */ import React from 'react'; import Drawer from 'material-ui/Drawer'; import MenuItem from 'material-ui/MenuItem'; import RaisedButton from 'material-ui/RaisedButton'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import AppBar from 'material-ui/AppBar'; ...
[2]. Demo_RN/[13]. shop_cart_demo/index.ios.js
knightsj/RN_Demo
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; var Dimensions = require('Dimensions'); import { AppRegistry, StyleSheet, Text, View, Image, NavigatorIOS, ScrollView, AsyncStorage, TouchableOpacity, } from 'react-nativ...
packages/bootstrap-shell/cra-template-bs/template/src/pages/Home/Home.js
TarikHuber/react-most-wanted
import React from 'react' import Page from 'bootstrap-shell/lib/containers/Page/Page' export default function Home() { return ( <Page>Hallo</Page> ) }
src/js/views/cincin.js
astagi/cincin
import Container from 'react-container'; import React from 'react'; import { Link, UI } from 'touchstonejs'; import Timers from 'react-timers'; import getBarStore from '../stores/barstore' module.exports = React.createClass({ mixins: [Timers], componentDidMount () { let watchID = navigator.acceleromete...
js/jqwidgets/demos/react/app/treegrid/filteringapi/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTreeGrid from '../../../jqwidgets-react/react_jqxtreegrid.js'; import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js'; import JqxListBox from '../../../jqwidgets-react/react_jqxlistbox.js'; import JqxDropDownList from '../../../jqwidg...
src/v0/demo/react-navigation/HomeScreen.js
huanganqi/wsapp
import React from 'react'; import { View, Button, Text, } from 'react-native'; export default class HomeScreen extends React.Component { static navigationOptions = { title: '首页', }; render() { const { navigate } = this.props.navigation; return ( <View> <Text>带参数的跳转!</Text> ...
app/components/common/BubbleWrap.js
JoaoCnh/picto-pc
import React, { Component } from 'react'; import Bubbles from './Bubbles'; import styles from './Common.css'; export default class BubbleWrap extends Component { render() { return ( <div className={styles.bubbleWrapper}> {this.props.children} <Bubbles /> ...
src/components/auction/teams/Rosters.js
akeely/twoguysandadream-js
import React from 'react'; import Roster from './Roster'; export default class Rosters extends React.Component { render() { var teams = this.props.teams.filter((team) => team.id === this.props.currentTeam); var rosters = teams.map((team) => <Roster key={'roster.' + team.id} team={tea...
src/js/components/icons/base/Trash.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/analytics/components/pages/analytics/assetAnalytics/PredictionChart.js
Haaarp/geo
import React from 'react'; import AmCharts from 'amcharts3-react'; import moment from 'moment'; import { modal } from './../../../../../common/actions/'; import { chart } from './../../../../actions/'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import * as ModalType from './../../....
app/admin/dashboard/HomeNavigate.js
in42/internship-portal
import React from 'react'; import PropTypes from 'prop-types'; import { Route } from 'react-router-dom'; import HomeTab from './HomeTab'; import PostView from '../post/PostView'; const HomeNavigate = ({ match }) => ( <div> <Route exact path={match.url} component={HomeTab} /> <Route path={`${match.url}/:id`}...
src/views/Feed/FeedUser.js
aabustamante/Semantic-UI-React
import cx from 'classnames' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' /** * A feed can contain a user element. */ function FeedUser(props) { const { children, className, content ...
src/svg-icons/editor/format-shapes.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatShapes = (props) => ( <SvgIcon {...props}> <path d="M23 7V1h-6v2H7V1H1v6h2v10H1v6h6v-2h10v2h6v-6h-2V7h2zM3 3h2v2H3V3zm2 18H3v-2h2v2zm12-2H7v-2H5V7h2V5h10v2h2v10h-2v2zm4 2h-2v-2h2v2zM19 5V3h2v2h-2zm-...
webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepository.js
snagoor/katello
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { ListView } from 'patternfly-react'; import { sprintf, translate as __ } from 'foremanReact/common/I18n'; import RepositoryTypeIcon from '../RepositoryTypeIcon'; import EnabledRepositoryContent from './EnabledRepositoryContent'; cl...
page/src/components/RegisterModal.js
swpark6/Dumbledore
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Button, Header, Icon, Modal, Form, Message } from 'semantic-ui-react'; class registerModal extends Component { constructor() { super(); this.state = { apiKey: '', }; this.onChange = this.onChange.bind(this);...
docs/app/Examples/elements/Loader/Variations/Sizes.js
jcarbo/stardust
import React from 'react' import { Loader, Image, Segment } from 'stardust' // TODO: Update <Dimmer> usage after its update to v1 API const Sizes = () => ( <div> <Segment> <div className='ui active dimmer'> <Loader size='mini'>Loading</Loader> </div> <Image src='http://semantic-ui.com...
addons/ondevice-knobs/src/PropForm.js
storybooks/react-storybook
/* eslint no-underscore-dangle: 0 */ import React from 'react'; import PropTypes from 'prop-types'; import { View } from 'react-native'; import PropField from './PropField'; export default class PropForm extends React.Component { makeChangeHandler(name, type) { return value => { const { onFieldChange } = ...
app/routes.js
snicksnk/draggable-d3-react-redux-chart
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/App'; import LineChart from './containers/LineChart'; export default ( <Route path="/" component={App}> <IndexRoute component={LineChart} /> <Route path="/line-chart" component={LineChart} /> </Route>...
packages/ringcentral-widgets-docs/src/app/pages/Components/Button/index.js
ringcentral/ringcentral-js-widget
import React from 'react'; import { parse } from 'react-docgen'; import CodeExample from '../../../components/CodeExample'; import ComponentHeader from '../../../components/ComponentHeader'; import PropTypeDescription from '../../../components/PropTypeDescription'; import Demo from './Demo'; // eslint-disable-next-lin...
docs/src/app/components/pages/components/RefreshIndicator/ExampleLoading.js
hwo411/material-ui
import React from 'react'; import RefreshIndicator from 'material-ui/RefreshIndicator'; const style = { container: { position: 'relative', }, refresh: { display: 'inline-block', position: 'relative', }, }; const RefreshIndicatorExampleLoading = () => ( <div style={style.container}> <RefreshI...
src/components/Goodyear/MonthNames.js
Hypnosphi/goodyear-react
import React, { Component } from 'react'; import { cellHeight, yearLength, linear } from './consts'; import moment from 'moment'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Goodyear.scss'; import cx from 'classnames'; const speed = yearLength / (12 * cellHeight); class Slider ex...
js/src/dapps/localtx/Application/application.js
jesuscript/parity
// Copyright 2015, 2016 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any la...
webapp/app/components/Notifications/Form/Users/AllUsers/index.js
EIP-SAM/SAM-Solution-Node-js
// // Component all users form notifications // import React from 'react'; import { FormGroup, FormControl, ControlLabel } from 'react-bootstrap'; import ButtonPopover from 'components/ButtonPopover'; import Option from 'components/Option'; import NotificationsFormAllUsersSelectAll from 'containers/Notifications/Form/...
src/components/common/building/NotYet.js
landrysoules/mmdb_front_react
import React from 'react'; const NotYet = () => { return ( <div className="row"> <div className="col-md-12" style={{ textAlign: 'center' }}> <div> <img src="/images/bulldogs.jpeg" alt="bulldogs" /> </div> <div> <h2>Not yet implemented...</h2> <h3>In the meantime please try the search a...
docs/app/Examples/elements/Icon/IconSet/IconExampleWebContent.js
ben174/Semantic-UI-React
import React from 'react' import { Grid, Icon } from 'semantic-ui-react' const IconExampleWebContent = () => ( <Grid columns='5' doubling> <Grid.Column> <Icon name='add to calendar' /> <p>add to calendar</p> </Grid.Column> <Grid.Column> <Icon name='alarm outline' /> <p>alarm outli...
src/ThemeProvider.js
jxnblk/cxs
import createTheme from './createTheme' import PropTypes from 'prop-types' import React from 'react' const h = React.createElement class ThemeProvider extends React.Component { getChildContext () { return { theme: createTheme(this.props.theme) } } render () { return ( h('div', null, thi...
fields/types/cloudinaryimages/CloudinaryImagesColumn.js
pr1ntr/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/index.js
knowbody/router-playground
import React from 'react' import { render } from 'react-dom'; import Root from './Main' render(<Root />, document.getElementById('root'));
tests/lib/rules/indent.js
ultranaut/eslint
/** * @fileoverview This option sets a specific tab width for your code * @author Dmitriy Shekhovtsov * @author Gyandeep Singh * @copyright 2014 Dmitriy Shekhovtsov. All rights reserved. * @copyright 2015 Gyandeep Singh. All rights reserved. */ "use strict"; //----------------------------------------------------...
script/comments.js
bendro/bendro-react
import React from 'react'; import {immutableRenderDecorator} from 'react-immutable-render-mixin'; import CommentForm from './comment-form'; import CommentList from './comment-list'; @immutableRenderDecorator export default class Comments extends React.Component { render() { let error = null; if (this.props.error)...
src/parser/warlock/destruction/modules/talents/Cataclysm.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import Events from 'parser/core/Events'; import CombatLogParser from 'parser/core/CombatLogParser'; import SPELLS from 'common/SPELLS'; import { formatThousan...
src/routes/user/UserList.js
IssaTan1990/antd-admin
import React from 'react' import PropTypes from 'prop-types' import { Table, Modal } from 'antd' import styles from './UserList.less' import classnames from 'classnames' import AnimTableBody from '../../components/DataTable/AnimTableBody' import { DropOption } from '../../components' import { Link } from 'dva/router' ...
frontend/src/InteractiveImport/Track/SelectTrackModalContentConnector.js
lidarr/Lidarr
import _ from 'lodash'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { updateInteractiveImportItem } from 'Store/Actions/interactiveImportActions'; import { clearTracks, fetchTracks, setTracksSort }...
frontend/src/index.js
adaptive-learning/robomission
import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter, Route, Switch } from 'react-router-dom'; import AppContainer from './containers/AppContainer'; import { Provider } from 'react-intl-redux'; import { globalConfiguration } from './config'; import { createFlocsStore } from './store'; imp...
client/src/javascript/components/icons/StopIcon.js
jfurrow/flood
import React from 'react'; import BaseIcon from './BaseIcon'; export default class Stop extends BaseIcon { render() { return ( <svg className={`icon icon--stop ${this.props.className}`} viewBox={this.getViewBox()}> <path d="M11.9 11.9H48v36.2H11.9V11.9z" /> </svg> ); } }
src/components/Home.js
slightlytyler/arrowsmith-web-starter
import React, { Component } from 'react'; export default class Home extends Component { render() { return ( <div>Home</div> ); } }
src/components/EditLink/index.js
cssinjs/cssinjs
import React from 'react' import injectSheet from 'react-jss' import {Pencil} from '../icons' import styles from './styles' const EditLink = ({url, classes}) => ( <a className={classes.editLink} href={url} target="_blank" rel="noopener noreferrer"> <Pencil className={classes.icon} /> <span className={classe...
src/svg-icons/maps/local-gas-station.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalGasStation = (props) => ( <SvgIcon {...props}> <path d="M19.77 7.23l.01-.01-3.72-3.72L15 4.56l2.11 2.11c-.94.36-1.61 1.26-1.61 2.33 0 1.38 1.12 2.5 2.5 2.5.36 0 .69-.08 1-.21v7.21c0 .55-.45 1-1 1s-1-.4...
jenkins-design-language/src/js/components/material-ui/svg-icons/file/folder-shared.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const FileFolderShared = (props) => ( <SvgIcon {...props}> <path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-5 3c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm4 8h-8v-1c0-1.33 2.67-2 4-2s4 .67 4 2v1z...
project-templates/reactfiber/externals/react-fiber/fixtures/fiber-debugger/src/index.js
itsa-server/itsa-cli
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/components/Test/Test.js
taekungngamonosus/monoreact
import React, { Component } from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Test.css'; class Test extends Component { render() { return ( <div> <p>asdas</p> </div> ); } } export default withStyles(s)(Test);
src/Image.js
Lucifier129/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const Image = React.createClass({ propTypes: { /** * Sets image as responsive image */ responsive: React.PropTypes.bool, /** * Sets image shape as rounded */ rounded: React.PropTypes.bool, /** * Sets imag...
examples/react-learning/app/scripts/components/reference/ScrollWrap.js
demones/react-guide
import React from 'react'; import ScrollWatch from './ScrollWatch'; class ScrollWrap extends React.Component { render() { return ( <div {...this.props}> <ScrollWatch /> </div> ) } } module.exports = ScrollWrap
src/components/tour/withTour.js
ipfs/webui
import React from 'react' import { connect } from 'redux-bundler-react' import { STATUS } from 'react-joyride' const withTour = WrappedComponent => { class WithTour extends React.Component { handleJoyrideCallback = (data) => { const { doDisableTours } = this.props const { action, status } = data ...
src/client/components/infinite-scroll/InfiniteScroll.js
developersdo/opensource
import React from 'react' import InfiniteScroller from 'react-infinite-scroller' import { get } from 'lodash' import Loading from '~/components/loading/Loading' /** * The InfiniteScroll class object acts as a wrapper around `react-infinite-scroller` * specialized for static array (that doesn't need to be fetched). A...
app/components/NavBar2/index.js
cbradley3/CharlieBradleyIII
/** * * NavBar2 * */ import React from 'react'; import {Link} from "react-router"; import Responsive from 'react-responsive'; import MenuIcon from "material-ui/svg-icons/navigation/menu"; import IconButton from 'material-ui/IconButton'; class NavBar2 extends React.PureComponent { constructor(props) { super(pro...
client/util/react-intl-test-helper.js
SwanCourses/Mokryi-Vlad
/** * Components using the react-intl module require access to the intl context. * This is not available when mounting single components in Enzyme. * These helper functions aim to address that and wrap a valid, * English-locale intl context around them. */ import React from 'react'; import { IntlProvider, intlSha...
src/routes/content/index.js
N4N0/resume
/** * 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 Content from './Content'...