path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/components/TeamManagement/index.js
seanng/web-server
/** * * TeamManagement * */ import React from 'react'; // import styled from 'styled-components'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; function TeamManagement() { return ( <div> <FormattedMessage {...messages.header} /> </div> ); } TeamManagement.propTy...
app/components/List/index.js
iPhaeton/Selectors-study
import React from 'react'; import Ul from './Ul'; import Wrapper from './Wrapper'; function List(props) { const ComponentToRender = props.component; let content = (<div></div>); // If we have items, render them if (props.items) { content = props.items.map((item, index) => ( <ComponentToRender key={...
src/containers/rulelistContainer.js
koromiko/Repeat
import React from 'react' import RuleList from '../components/ruleList' class RulelistContainer extends React.Component { constructor(props){ super(); this.handleRuleHover = this.handleRuleHover.bind(this); this.handleRuleSelected = this.handleRuleSelected.bind(this); } handleRul...
packages/react-devtools-shell/src/app/InspectableElements/SimpleValues.js
TheBlasfem/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import React from 'react'; export default function SimpleValues() { return ( <ChildComponent string="abc"...
shared/routes.js
WillHearn/apoc
import { Route, IndexRoute } from 'react-router'; import React from 'react'; import App from './container/App'; import PostContainer from './container/PostContainer/PostContainer'; import PostDetailView from './container/PostDetailView/PostDetailView'; const routes = ( <Route path="/" component={App} > <IndexRou...
src/common/TraceResult/TraceResult.js
Syncano/syncano-dashboard
import React from 'react'; const styles = { root: { padding: 25, color: '#fff', whiteSpace: 'pre-wrap', font: '12px/normal \'Monaco\', monospace', backgroundColor: '#4C4A43' }, errorContainer: { borderTop: '1px solid rgba(255, 255, 255, .1)' } }; const TraceResult = ({ result, error, s...
src/components/TilesPanel.js
longyarnz/WelFurnish-E-Commerce
import React, { Component } from 'react'; import TilesContainer from './TilesContainer'; export default class TilesPanel extends Component { render() { return ( <section className="tile-panel"> <div className="block"> <TilesContainer tilesList={this.props.tilesList} /> </div> </sectio...
app/components/TextSpanner/components/Spanner.js
Goodly/TextThresher
import React from 'react'; import PropTypes from 'prop-types'; import { EditorState } from '../model/EditorState'; import { DisplayState } from '../model/DisplayState'; const debug = require('debug')('thresher:TextSpanner'); export class Spanner extends React.Component { constructor(props) { super(props); } ...
app/modules/humnos/components/Lists.bak.js
arizto/humnos-mobile
'use strict'; import React, { Component } from 'react'; import { InteractionManager, View, ListView, VirtualizedList, Text, ActivityIndicator, StyleSheet } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; import { List } from 'immutable'; import * as configs from '../../../constants/confi...
docs/src/app/components/pages/components/AppBar/Page.js
lawrence-yu/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import appBarReadmeText from './README'; import AppBarExampleIcon from './ExampleI...
src/client/components/navbar.js
peppesilletti/webpack-project
import React from 'react' import { NavLink } from 'react-router-dom' const Navbar = () => { return( <nav style={{ "width": "100%", "backgroundColor": 'grey' }}> <button><NavLink to="/">Go To Home Route</NavLink></button> <button><NavLink to="/test">Go To Test Route</NavLink></button> <span><strong>THIS NAV...
packages/react-router-website/modules/components/App.js
justjavac/react-router-CN
import React from 'react' // don't want the shimmed one // eslint-disable-next-line import BrowserRouter from '../../../react-router-dom/BrowserRouter' // this stuff is shimmed, see ReactRouterDOMShim.js for more details import { Switch, Route } from 'react-router-dom' import DelegateMarkdownLinks from './DelegateMa...
src/Chip.js
gregchamberlain/react-chips
import React from 'react' import PropTypes from 'prop-types'; import Radium from 'radium'; import themeable from 'react-themeable'; import { chipTheme } from './theme'; const Chip = ({ selected, theme, onRemove, children }) => { // if someone provided a theme, try and merge between the original and provided const ...
src/users/Student.js
GoldStarPDX/GoldStar
import React, { Component } from 'react'; import Header from '../app/Header'; import { Switch, Route } from 'react-router-dom'; import ProfileContainer from '../profile/ProfileContainer'; export default class Student extends Component { render() { const { status } = this.props; return ( <div> ...
pages/error/index.js
GoldenCrow/productforge-dementia-app
/** * 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/components/common/svg-icons/action/loyalty.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLoyalty = (props) => ( <SvgIcon {...props}> <path d="M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86....
react-flux-mui/js/material-ui/src/svg-icons/notification/network-locked.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationNetworkLocked = (props) => ( <SvgIcon {...props}> <path d="M19.5 10c.17 0 .33.03.5.05V1L1 20h13v-3c0-.89.39-1.68 1-2.23v-.27c0-2.48 2.02-4.5 4.5-4.5zm2.5 6v-1.5c0-1.38-1.12-2.5-2.5-2.5S17 13.12 17 1...
src/components/App.js
Marsellus47/parking
import React from 'react'; import {BrowserRouter as Router, Route, Switch} from 'react-router-dom'; import NotFoundPage from './common/NotFoundPage'; import Header from './common/Header'; import HomePage from './home/HomePage'; import SearchPage from './search/SearchPage'; import AddPage from './add/AddPage'; import L...
packages/mineral-ui-icons/src/IconCropSquare.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconCropSquare(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconPro...
docs/src/Root.js
omerts/react-bootstrap
import React from 'react'; import Router from 'react-router'; const Root = React.createClass({ statics: { /** * Get the list of pages that are renderable * * @returns {Array} */ getPages() { return [ 'index.html', 'introduction.html', 'getting-started.html',...
client/containers/HomePage/__tests__/Components/Header.spec.js
Vandivier/document-hello-world-docker-test
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import { shallow } from 'enzyme'; import { FormattedMessage } from 'react-intl'; import { Header } from '../../components/Header/Header'; import { intl } from '../../../../util/react-intl-test-helper'; const intlProp = { ...intl, enabledLang...
src/ActionViewer.js
soup-js/omnistream
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { reactiveComponent } from './reactiveComponent.js'; const STYLE = { 'wordWrap': 'break-word', 'border': '1px solid rgb(235, 235, 235)', 'padding': '5px', 'bottom': '80', 'position': 'relative', 'minHeight': '20p...
Libraries/Components/MapView/MapView.js
tgoldenberg/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/main.js
techcoop/techcoop.group
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import AppContainer from './containers/AppContainer' // ======================================================== // Store Instantiation // ======================================================== const initialState...
src/App.js
Dremora/mondo-hackathon-webapp
import React, { Component } from 'react'; import gaussian from 'gaussian' import _ from 'lodash' import moment from 'moment' import 'whatwg-fetch' import ChartWrapper from './ChartWrapper'; import body from './data' export class App extends Component { constructor() { super(...arguments) this.state = { ...
src/pages/Editor/pages/MapEditor/containers/MapContainer/components/DatamapBox/components/HoverInfo.js
caspg/datamaps.co
import React from 'react' import PropTypes from 'prop-types' import { grey300 } from '@src/styles/colors' HoverInfo.propTypes = { position: PropTypes.object.isRequired, active: PropTypes.bool.isRequired, name: PropTypes.string.isRequired, value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]), } fu...
src/parser/rogue/outlaw/modules/core/ComboPoints.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import resourceSuggest from 'parser/shared/modules/resourcetracker/ResourceSuggest'; import ComboPointTracker from '../../../shared/resources/ComboPointTracker'; class...
src/CollapsibleMixin.js
rapilabs/react-bootstrap
import React from 'react'; import TransitionEvents from './utils/TransitionEvents'; import deprecationWarning from './utils/deprecationWarning'; let warned = false; const CollapsibleMixin = { propTypes: { defaultExpanded: React.PropTypes.bool, expanded: React.PropTypes.bool }, getInitialState(){ l...
pages/blog/test-article-two.js
trungtin/mymy
import React, { Component } from 'react'; export default class extends Component { render() { return ( <div> <h1>Test Article 2</h1> <p>Coming soon.</p> </div> ); } }
node_modules/rebass/src/Toolbar.js
HasanSa/hackathon
import React from 'react' import Base from './Base' import config from './config' /** * Toolbar component that vertically centers children with display flex */ const Toolbar = (props, { rebass }) => { const { scale, colors } = { ...config, ...rebass } return ( <Base {...props} className='Toolb...
src/components/NotFound.js
mehmettugrulsahin/cotd-react-es6
import React from 'react'; class NotFound extends React.Component { render() { return ( <h2>not Found!!!</h2> ) } } export default NotFound;
features/taskboard/components/taskContainer.js
zymokey/mission-park
import React from 'react'; import { connect } from 'react-redux'; import Task from './task'; // import * as actionCreators from '../actions/taskActions'; import Spinner from '../../common/components/spinner'; class TaskContainer extends React.Component { constructor(props){ super(props); } render(){ let fetch...
packages/icons/src/md/communication/PhonelinkLock.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdPhonelinkLock(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M37 2H17c-2.2 0-4 1.8-4 4v6h4V8h20v32H17v-4h-4v6c0 2.2 1.8 4 4 4h20c2.2 0 4-1.8 4-4V6c0-2.2-1.8-4-4-4zM20.6 22c1.2 0 2.4 1.2 2.4 2.6v7c0 1.2-1....
src/js/components/nodes/NodesListView/NodesListView.js
knowncitizen/tripleo-ui
/** * Copyright 2017 Red Hat Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
src/routes/error/index.js
luznlun/kkRoom
/** * 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 ErrorPage from './ErrorP...
src/svg-icons/navigation/menu.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationMenu = (props) => ( <SvgIcon {...props}> <path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/> </SvgIcon> ); NavigationMenu = pure(NavigationMenu); NavigationMenu.displayName = 'NavigationMenu';...
src/Column.js
BobNisco/react-yarg
'use strict'; import React from 'react'; import Radium from 'radium'; import Utilities from './Utilities'; let styles = { columnMixin: (columnCount, props) => { return Object.assign({ position: 'relative', boxSizing: 'border-box', minHeight: '1px', float: 'left', marginLeft: ((prop...
src/svg-icons/action/extension.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionExtension = (props) => ( <SvgIcon {...props}> <path d="M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V...
src/utils/index.js
taikongfeizhu/webpack-develop-startkit
import React from 'react' import { COLUMNS, UNKNOW_COLUMN } from 'constant' import _ from 'lodash' import { Select, Radio } from 'antd' const Option = Select.Option const _findItem = (list = [], value, key = 'name') => { return list.find((item, index) => { return '' + item[key] === '' + value }) } let util = ...
src/routes/Measurements/components/MeasurementViewer.js
TheTorProject/ooni-wui
import React from 'react' import { FormattedMessage } from 'react-intl' import Modal from 'react-modal' import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table' import MeasurementDetails from './MeasurementDetails' import { formatViewButton, formatDate, rowClassNameFormat } from '../../../util/...
src/SafeAnchor.js
thealjey/react-bootstrap
import React from 'react'; import createChainedFunction from './utils/createChainedFunction'; /** * Note: This is intended as a stop-gap for accessibility concerns that the * Bootstrap CSS does not address as they have styled anchors and not buttons * in many cases. */ export default class SafeAnchor extends React...
src/about/index.js
marchisbogdan/licenta-front
/** * 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'; ...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/Generators.js
tharakawj/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function* load(limit) { let i = 1; while (i <= limit)...
src/js/components/date-selectors.js
donnierayjones/dayone-js-html
import React from 'react'; import ReactDOM from 'react-dom'; import moment from 'moment'; import $ from 'jquery'; import DateSelector from './date-selector'; export default class DateSelectors extends React.Component { constructor(props) { super(props); this.onChange = this.onChange.bind(this); } onCha...
webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTableSchema.js
johnpmitsch/katello
/* eslint-disable import/prefer-default-export */ import React from 'react'; import { Icon } from 'patternfly-react'; import { translate as __ } from 'foremanReact/common/I18n'; import { entitlementsInlineEditFormatter } from '../../../../move_to_foreman/components/common/table/formatters/EntitlementsInlineEditFormatte...
dva/dva-quickstart/src/components/Example.js
imuntil/React
import React from 'react'; const Example = () => { return ( <div> Example </div> ); }; Example.propTypes = { }; export default Example;
examples/star-wars/js/app.js
liuxiong332/graphql-client
/** * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNES...
packages/showcase/misc/gradient-example.js
uber/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/Switch.js
esbenp/react-native-clean-form
import React from 'react' import { Switch as BaseSwitch, View } from 'react-native' import styled from 'styled-components' import defaultTheme from './Theme' const Switch = styled(BaseSwitch)` ` Switch.propTypes = BaseSwitch.propTypes Switch.defaultProps = Object.assign({}, BaseSwitch.defaultProps, { theme: defaul...
docs/src/app/components/pages/components/Popover/ExampleAnimation.js
kasra-co/material-ui
import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import {Popover, PopoverAnimationVertical} from 'material-ui/Popover'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; export default class PopoverExampleAnimation extends React.Component { constructor(...
app/index.js
y-takey/shokushu
import { ipcRenderer } from 'electron'; import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router } from 'react-router'; import routes from './routes'; import configureStore from './store/configureStore'; import { exportJSON, importJSON } from './actions/Home...
src/PlayerListPlayer.js
Brianzchen/tabletennis-handicap
import React from 'react'; export default class PlayerListPlayer extends React.Component { render() { const playerName = ( this.state.edit ? (<form onSubmit={this.saveName}> <input ref={o => { this.input = o; }} type={`text`} placeholder={this.props.player.name} onChange={this.handleNameC...
es6/Menu/Menu.js
yurizhang/ishow
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
cm19/ReactJS/your-first-react-app-exercises-master/exercise-16/friends/Friends.entry.js
Brandon-J-Campbell/codemash
import React from 'react'; import getFriendsFromApi from './get-friends-from-api'; import Friends from './Friends'; export default class FriendsEntry extends React.Component { state = { friends: [] } async componentDidMount() { const friends = await getFriendsFromApi(); this.setState({ frien...
test/helpers/shallowRenderHelper.js
txw132130/react-gallery
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
packages/strapi-generate-plugin/files/admin/src/components/Button/index.js
lucusteen/strap
/** * * Button * */ import React from 'react'; import styles from './styles.scss'; class Button extends React.Component { // eslint-disable-line react/prefer-stateless-function render() { return ( <button className={`btn btn-primary ${styles.button}`} {...this.props}> {this.props.label} ...
example/examples/PolylineCreator.js
j0ergo/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, TouchableOpacity, } from 'react-native'; import MapView from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122.4324; const LA...
ui/src/core/components/PluginWrapper.js
mkacper/erlangpl
// @flow import React, { Component } from 'react'; import { ReflexContainer, ReflexSplitter, ReflexElement } from 'react-reflex'; import 'react-reflex/styles.css'; import Loader from './Loader'; import SidePanel from './SidePanel'; import { Container, Content } from './styled'; type Props = { sidePanel?: React$Ele...
app/javascript/mastodon/features/notifications/components/clear_column_button.js
Nyoho/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import Icon from 'mastodon/components/icon'; export default class ClearColumnButton extends React.PureComponent { static propTypes = { onClick: PropTypes.func.isRequired, }; render () { return ...
js/components/pages/HomePage.react.js
jfrost2420/student_response_front
/* * HomePage * This is the first thing users see of our App */ import { asyncChangeProjectName, asyncChangeOwnerName } from '../../actions/AppActions'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; class HomePage extends Component { constru...
admin/client/App/components/Navigation/Mobile/index.js
rafmsou/keystone
/** * The mobile navigation, displayed on screens < 768px */ import React from 'react'; import Transition from 'react-addons-css-transition-group'; import MobileSectionItem from './SectionItem'; const ESCAPE_KEY_CODE = 27; const MobileNavigation = React.createClass({ displayName: 'MobileNavigation', propTypes: ...
src/svg-icons/action/redeem.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRedeem = (props) => ( <SvgIcon {...props}> <path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.1...
src/components/LaborRightsSingle/index.js
goodjoblife/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import ReactPixel from 'react-facebook-pixel'; import R from 'ramda'; import { compose, setStatic } from 'recompose'; import Loader from 'common/Loader'; import { Section } from 'common/base'; import { formatTitle, fo...
frontend/src/MovieFile/Extras/ExtraFileTableContent.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import IconButton from 'Components/Link/IconButton'; import Table from 'Components/Table/Table'; import TableBody from 'Components/Table/TableBody'; import { icons } from 'Helpers/Props'; import translate from 'Utilities/String/translate'; im...
lib/ui/src/modules/ui/components/left_panel/stories.js
enjoylife/storybook
import PropTypes from 'prop-types'; import React from 'react'; import { baseFonts } from '../theme'; const listStyle = { ...baseFonts, }; const listStyleType = { listStyleType: 'none', paddingLeft: 0, }; const kindStyle = { fontSize: 15, padding: '10px 0px', cursor: 'pointer', borderBottom: '1px solid ...
src/cell/explain.js
HVF/franchise
import React from 'react' import ReactDOM from 'react-dom' import classList from 'classnames' export class ExplainVisualizer extends React.Component { static key = 'explain' static desc = 'Explain Visualizer' static icon = <i className="fa fa-cogs" /> static test(result) { return result.column...
src/withLocalState.js
zaptree/pyradux
import React, { Component } from 'react'; import Provider from './Provider'; import PropTypes from 'prop-types'; export default function withLocalState({createStore, ...options}, WrappedComponent) { class WithLocalStateComponent extends Component { constructor(props, context){ super(props, context); ...
node_modules/react-bootstrap/es/Popover.js
C0deSamurai/muzjiks
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
geonode/monitoring/frontend/monitoring/src/components/cels/health-check/index.js
tomkralidis/geonode
/* ######################################################################### # # Copyright (C) 2019 OSGeo # # 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 3 of the License, or # ...
examples/official-storybook/stories/addon-info/forward-ref.stories.js
storybooks/react-storybook
import React from 'react'; import { withInfo } from '@storybook/addon-info'; import ForwardedRefButton from '../../components/ForwardedRefButton'; import ForwardedRefButtonWDisplayName from '../../components/ForwardedRefButtonWDisplayName'; export default { title: 'Addons/Info/ForwardRef', decorators: [withInfo], ...
src/shared/components/linkButton/linkButton.js
OperationCode/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { Link as ScrollLink, Events as ScrollEvent } from 'react-scroll'; import ReactGA from 'react-ga'; import styles from './linkButton.css'; const LinkButton = ({ link, text, theme, scrollLink, isExter...
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch03/03_04/finish/src/components/SkiDayCount.js
yevheniyc/Autodidact
import React from 'react' import '../stylesheets/ui.scss' export const SkiDayCount = React.createClass({ percentToDecimal(decimal) { return ((decimal * 100) + '%') }, calcGoalProgress(total, goal) { return this.percentToDecimal(total/goal) }, render() { return ( <div className="ski-day-count"> <div c...
src/client/common/components/SimpleList.js
jmicmoore/merit-badge-university
import React from 'react'; import PropTypes from 'prop-types'; class SimpleList extends React.Component{ render(){ const propertyName = this.props.propertyName; const dataList = this.props.dataList; return ( <div className="form-group"> <label htmlFor={propert...
ee/app/engagement-dashboard/client/components/data/Histogram.js
VoiSmart/Rocket.Chat
import { ResponsiveBar } from '@nivo/bar'; import { Box, Flex } from '@rocket.chat/fuselage'; import React from 'react'; import { polychromaticColors } from './colors'; export function Histogram() { return <Flex.Item align='stretch' grow={1} shrink={0}> <Box style={{ position: 'relative' }}> <Box style={{ posit...
example/main.js
bgrsquared/d3-react-squared-c3-loader
require('babel/polyfill'); import React from 'react'; import ReactDOM from 'react-dom'; // load example component import C3Example from './c3example'; ReactDOM.render(<C3Example/>, document.getElementById('app'));
screens/ProductDetailScreen/Feature.js
nattatorn-dev/expo-with-realworld
import React from 'react' import { TouchableOpacity, Text, View } from 'react-native' import PropTypes from 'prop-types' import styles from './FeatureStyle' const Feature = ( { description, index, onPressFeature, title } ) => ( <View style={styles.containerStyle}> <View style={{ flexDirection: 'row' }}> <...
src/client/components/ResourceDisplayComponent.js
mitola/awesome-game
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import List, { ListItem, ListItemIcon, ListItemText, ListItemSecondaryAction} from 'material-ui/List'; import Divider from 'material-ui/Divider'; import InfoIcon from 'material-ui-icons/Info'; import AddToQue...
src/utils/helper.js
phodal/growth-ng
import React from 'react'; import { Platform, Linking } from 'react-native'; import { Icon } from 'react-native-elements'; import { Actions } from 'react-native-router-flux'; class Helper { static openLink(link) { Linking.canOpenURL(link).then((supported) => { if (supported) { Linking.openURL(link)...
app/js/views/forms.js
maxmechanic/resumaker
import React from 'react'; import resumeStructures from './resume-structures'; import { capitalize } from 'lodash'; const buildForm = ([section, attributes]) => props => { const handleSubmit = (e) => { e.preventDefault(); props.handleSubmit(section, e.target); }; return ( <form onSubmit={handleSubm...
app/containers/App.js
StatEngine/spade
// @flow import React, { Component } from 'react'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import AppBar from 'material-ui/AppBar'; import injectTapEventPlugin from 'react-tap-event-plugin'; import type { Children } from 'react' injectTapEventPlugin(); export default class App extends Comp...
ui/js/dfv/src/admin/edit-pod/edit-pod-name.js
pods-framework/pods
import React from 'react'; import PropTypes from 'prop-types'; // WordPress dependencies import { __ } from '@wordpress/i18n'; // Pods dependencies import Sluggable from 'dfv/src/components/sluggable'; const EditPodName = ( { podName, setPodName, isEditable, } ) => { return ( <h2> { __( 'Edit Pod: ', 'pods'...
src/components/home.js
thbgh/antdPro
/** * @Author: THB * @Date: 2017-07-26 20:50:59 PM Wednesday * @Email: thbwork2016@gmail.com * @Filename: home.js * @Last modified by: THB * @Last modified time: 2017-09-04 14:36:30 PM Monday */ import React, { Component } from 'react'; import './home.less'; import Complete from './autoComplete'; import Cc...
src/layout/SKLayout.js
ShaneKing/sk-antd
import {Layout} from 'antd'; import React from 'react'; import {SK} from 'sk-js'; import OriginLayout from './OriginLayout'; import AntdComp from '../AntdComp'; export default class SKLayout extends AntdComp { static SK_COMP_NAME = 'SKLayout'; static defaultProps = SK.extends(true, {}, AntdComp.defaultProps, Orig...
packages/leaflet/src/components/Legend.js
wq/wq.app
import React from 'react'; import PropTypes from 'prop-types'; import { LayersControl } from 'react-leaflet'; const { BaseLayer, Overlay } = LayersControl; export default function Legend({ position, collapsed, children }) { if (!position) { position = 'topright'; } if (collapsed === undefined) { ...
src/reducers/panes.js
LaserWeb/LaserWeb4
/** * Panes reducer. * @module */ // React import React from 'react' // Actions import * as panesActions from '../actions/panes' export const PANES_INITIALSTATE='cam' /** * Handle visible state. * @function * @protected * @param {Array} panes The current panes collection. * @param {module:lib/redux-action~...
public/src/redux/todos/index.js
codelegant/myReact
/** * Author: 赖传峰 * Email: laichuanfeng@hotmail.com * homepage: laichuanfeng.com */ import React from 'react'; import ReactDOM from 'react-dom'; import { createStore } from 'redux'; import { Provider } from 'react-redux'; import todoApp from './reducers/index'; import App from './components/App'; ReactDOM.render( ...
app/app.js
olivia-leach/jaylivia-react
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import 'babel-polyfill'; /* eslint-disable import/no-unresolved, import/extensions */ // Load the manifest.json file and the .htaccess file import '!file?name=[name].[ext]!./manifest.json'; import 'file?name=[name]....
app/components/pages/NotFound.js
dariobanfi/react-avocado-starter
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class NotFound extends Component { componentWillMount() { const { staticContext } = this.props; if (staticContext) { staticContext.missed = true; } } render() { return <div>Sorry, that page was not found.</div>; ...
src/svg-icons/device/sd-storage.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSdStorage = (props) => ( <SvgIcon {...props}> <path d="M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 6h-2V4h2v4zm3 0h-2V4h2v4zm3 0h-2V4h2v4z"/> </SvgIcon> ); DeviceSdStorage ...
src/widget/SearchBar.js
Cowboy1995/JZWXZ
/** * Copyright (c) 2017-present, Liu Jinyong * All rights reserved. * * https://github.com/huanxsd/MeiTuan * @flow */ import React, { Component } from 'react'; import { StyleSheet, View, TextInput, TouchableOpacity, Text, Image, Keyboard } from 'react-native'; import { screen, system, tool } from '../common'...
src/svg-icons/device/signal-cellular-connected-no-internet-3-bar.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularConnectedNoInternet3Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M17 22V7L2 22h15zm3-12v8h2v-8h-2zm0 12h2v-2h-2v2z"/> </SvgIcon> ); Devic...
examples/js/nextjs/pages/_app.js
bugsnag/bugsnag-js
import React from 'react' import App, { Container } from 'next/app' import Bugsnag from '../lib/bugsnag' import Error from './_error' const ErrorBoundary = Bugsnag.getPlugin('react') export default class MyApp extends App { static async getInitialProps ({ Component, router, ctx }) { let pageProps = {} if (...
src/scrollWrapper/index.js
denisraslov/react-spreadsheet-table
import React from 'react'; import PropTypes from 'prop-types'; import Grid from '../grid'; import ScrollDummy from './../scrollDummy'; import slice from 'lodash.slice'; import throttleWithRAF from './../kit/throttleWithRAF'; import tablePropTypes from './../kit/tablePropTypes'; import styles from './styles.css'; const...
src/hoc/withSpinner.js
Pavel-DV/ChronoMint
import React from 'react' import {CircularProgress} from 'material-ui' type propsType = { isFetching: boolean } const withSpinner = (Component) => { class Wrapped extends React.Component { props: propsType; render () { const {isFetching, ...restProps} = this.props return isFetching ? ...
docs/src/app/components/pages/components/FlatButton/ExampleSimple.js
andrejunges/material-ui
import React from 'react'; import FlatButton from 'material-ui/FlatButton'; const FlatButtonExampleSimple = () => ( <div> <FlatButton label="Default" /> <FlatButton label="Primary" primary={true} /> <FlatButton label="Secondary" secondary={true} /> <FlatButton label="Disabled" disabled={true} /> </...
packages/spust-koa/src/GraphiQL.js
michalkvasnicak/spust
// @flow import React from 'react'; import { graphiqlKoa } from 'graphql-server-koa'; import Middleware from './Middleware'; export type Props = { endpointURL: string, path: string, }; export default class GraphiQL extends React.Component<Props, Props, void> { static defaultProps = { endpointURL: '/graphq...
packages/xo-web/src/xo-app/sr/tab-advanced.js
vatesfr/xo-web
import _ from 'intl' import Copiable from 'copiable' import defined from '@xen-orchestra/defined' import React from 'react' import SortedTable from 'sorted-table' import TabButton from 'tab-button' import { addSubscriptions, connectStore, formatSize } from 'utils' import { Container, Row, Col } from 'grid' import { Cus...
example/components/zoom-control.js
boromisp/react-leaflet
import React, { Component } from 'react'; import { Map, TileLayer, ZoomControl } from '../../src'; export default class ZoomControlExample extends Component { render() { return ( <Map center={[51.505, -0.09]} zoom={13} zoomControl={false}> <TileLayer attribution='&copy; <a href="http://os...
actor-apps/app-web/src/app/components/modals/MyProfile.react.js
way1989/actor-platform
//import _ from 'lodash'; import React from 'react'; import { KeyCodes } from 'constants/ActorAppConstants'; import MyProfileActions from 'actions/MyProfileActions'; import MyProfileStore from 'stores/MyProfileStore'; import AvatarItem from 'components/common/AvatarItem.react'; import Modal from 'react-modal'; //i...
packages/bonde-admin/src/components/navigation/sidebar/sidebar.js
ourcities/rebu-client
import PropTypes from 'prop-types' import React from 'react' import { FormattedMessage } from 'react-intl' import * as paths from '@/paths' import * as mobilizationUtils from '@/mobilizations/utils' import { Loading } from '@/components/await' import { Sidenav, SidenavList, SidenavListItem } from '@/components/navigat...