path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
client/components/app-layout.js
pradel/octon
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import compose from 'recompose/compose'; import Router from 'next/router'; import styled from 'styled-components'; import withUser from '../lib/with-user'; import Theme from '../lib/theme'; import Alert from '../lib/alert'; import Header from...
src/svg-icons/content/forward.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentForward = (props) => ( <SvgIcon {...props}> <path d="M12 8V4l8 8-8 8v-4H4V8z"/> </SvgIcon> ); ContentForward = pure(ContentForward); ContentForward.displayName = 'ContentForward'; ContentForward.muiNam...
src/client/assets/js/nodes/datastores/temperature/node.js
me-box/platform-sdk
import React from 'react'; //import composeNode from 'utils/composeNode'; import Textfield from 'components/form/Textfield'; import Textarea from 'components/form/Textarea'; import Select from 'components/form/Select'; import Cell from 'components/Cell'; import Cells from 'components/Cells'; //import '../../../../style...
geonode/contrib/monitoring/frontend/src/components/cels/alert/index.js
MapStory/geonode
import React from 'react'; import PropTypes from 'prop-types'; import HoverPaper from '../../atoms/hover-paper'; import styles from './styles'; class Alert extends React.Component { static propTypes = { alert: PropTypes.object.isRequired, } constructor(props) { super(props); this.state = { d...
src/components/PhoneInput/PhoneInput.js
eliaslopezgt/ps-react-eli
import React from 'react'; import PropTypes from 'prop-types'; import TextInput from '../TextInput'; /** PhoneInput with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */ function PhoneInput({htmlId, onChange, ...props}) { return ( <TextInput h...
app/imports/ui/auction/Auction.js
raiden-network/raiden-token
import React, { Component } from 'react'; import PriceChart from './PriceChart'; import ValueChart from './ValueChart'; // TODO: separate into components export default class Auction extends Component { constructor(props) { super(props); this.state = this.getInitialState(); this.priceUpdateInterval = 1...
reactNativeDebugging/Preferences.js
micahrye/LearnByDoing
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Button, } from 'react-native'; import { StackNavigator, } from 'react-navigation'; export default class Preferences extends Compo...
examples/src/views/DateTimePickerView.js
LayGit/layui
import React from 'react' export default class DateTimePickerView extends React.Component { render () { return ( <div></div> ) } } module.exports = exports['default']
src/svg-icons/notification/adb.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAdb = (props) => ( <SvgIcon {...props}> <path d="M5 16c0 3.87 3.13 7 7 7s7-3.13 7-7v-4H5v4zM16.12 4.37l2.1-2.1-.82-.83-2.3 2.31C14.16 3.28 13.12 3 12 3s-2.16.28-3.09.75L6.6 1.44l-.82.83 2.1 2.1C6.14...
hocs/withEither.js
YongYuH/Ludo
import React from 'react'; const withEither = (conditionalRenderingFn, EitherComponent) => BaseComponent => props => ( conditionalRenderingFn(props) ? <EitherComponent {...props} /> : <BaseComponent {...props} /> ); export default withEither;
src/svg-icons/communication/speaker-phone.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationSpeakerPhone = (props) => ( <SvgIcon {...props}> <path d="M7 7.07L8.43 8.5c.91-.91 2.18-1.48 3.57-1.48s2.66.57 3.57 1.48L17 7.07C15.72 5.79 13.95 5 12 5s-3.72.79-5 2.07zM12 1C8.98 1 6.24 2.23 4.25 ...
6.ReactRouter/src/fullRoster.js
vishaljadav94/ReactBasic
import React from 'react' import PlayerAPI from '../api' import { Link } from 'react-router-dom' // The FullRoster iterates over all of the players and creates // a link to their profile page. const FullRoster = () => ( <div> <ul> { PlayerAPI.all().map(p => ( ...
src/index.js
akiran/react-highlight
import hljs from 'highlight.js'; import React from 'react'; class Highlight extends React.Component { constructor(props) { super(props) this.setEl = this.setEl.bind(this) } componentDidMount() { this.highlightCode(); } componentDidUpdate() { this.highlightCode(); } ...
app/javascript/mastodon/features/ui/components/bundle_column_error.js
kagucho/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import Column from './column'; import ColumnHeader from './column_header'; import ColumnBackButtonSlim from '../../../components/column_back_button_slim'; import IconButton from '../../../components/...
components/dialogs/AuthorDialog.js
FredTingaud/quick-bench-front-end
import React from 'react'; import { Modal, Button } from 'react-bootstrap'; class AboutDialog extends React.Component { render() { return ( <Modal show={this.props.show} onHide={this.props.onHide}> <Modal.Header closeButton> <Modal.Title>About me</Modal.Title...
src/app/core/atoms/icon/icons/vessel-side-loaded.js
blowsys/reservo
import React from 'react'; const VesselSideLoaded = (props) => <svg {...props} viewBox="0 0 24 24"><g><g><polygon points="20 10 20 7 20 5 13 5 13 7 12 7 12 10"/><path d="M16,11 L8,11 L2,11 L4.513,17.702 C4.806,18.483 5.552,19 6.386,19 L17.614,19 C18.4976309,19 20.0059727,19 20.0059727,19 C21.1154685,19 22.0132419,18.11...
node_modules/react-bootstrap/es/PagerItem.js
ASIX-ALS/asix-final-project-frontend
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 ...
src/shared/containers/Scores/Scores.js
tejans24/bball-stats-app
import React from 'react' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import './Scores.scss' import * as ScoresActions from '../../actions/scores.js' let Scores = (props) => { return ( <div className="section--Scores"> <h1>Scoressss</h1> </div> ) } const mapSta...
src/app/components/team/TeamLists/index.js
meedan/check-web
import React from 'react'; import { QueryRenderer, graphql } from 'react-relay/compat'; import Relay from 'react-relay/classic'; import TeamListsComponent from './TeamListsComponent'; const TeamLists = () => { const teamSlug = window.location.pathname.match(/^\/([^/]+)/)[1]; return ( <QueryRenderer envi...
taskflow-front-end/src/LoginForm.js
maikowtesch/task-flow
import React, { Component } from 'react'; import { Button, Form, Grid, Header, Image, Message, Segment, Label } from 'semantic-ui-react'; import 'semantic-ui/dist/semantic.min.css'; class LoginForm extends Component { constructor(props) { super(props); this.state = { user:'' , password:'', loginButtonDisabled...
docs/src/app/components/pages/components/FloatingActionButton/ExampleSimple.js
pradel/material-ui
import React from 'react'; import FloatingActionButton from 'material-ui/FloatingActionButton'; import ContentAdd from 'material-ui/svg-icons/content/add'; const style = { marginRight: 20, }; const FloatingActionButtonExampleSimple = () => ( <div> <FloatingActionButton style={style}> <ContentAdd /> ...
src/pages/conference/topic/index.js
sunway-official/acm-admin
import React, { Component } from 'react'; import { Subheader, IconButton } from 'material-ui'; import { Link } from 'react-router-dom'; import { ActionHome, HardwareKeyboardArrowRight } from 'material-ui/svg-icons'; import { graphql } from 'react-apollo'; import { queries } from './helpers'; import TopicList from './to...
src/components/RouterLink.js
rodrigocipriani/br-react-utils
import React from 'react'; // import {Link} from 'react-router'; // import { Link } from 'react-router-dom' // {/*<Link activeClassName='light-blue-text text-darken-4 grey lighten-4' className="waves-effect" {...props}>*/} // {/*{children}*/} // {/*</Link>*/} const RouterLink = ({...props, children, ...
src/client/components/user/header.js
uuchat/uuchat
import React, { Component } from 'react'; import { Row, Col, notification } from 'antd'; class Header extends Component{ statusToggle = () => { let state = this.props.customerSuccess.state; let status = state.status; let statusType = 1; if (status === 3) { this.props.c...
src/components/Body.js
GuramDuka/reorders
//------------------------------------------------------------------------------ import React, { Component } from 'react'; import connect from 'react-redux-connect'; import * as Sui from 'semantic-ui-react'; import disp from '../store'; import DictListView from './DictList/List'; import SearcherResults from './Searcher...
src/components/details.js
Omar-Ceesay/WeatherApp
import React from 'react'; import _ from 'lodash'; import dateFormat from 'dateFormat'; const Details = (props) => { const cityData = props.cityData; const kelvin = cityData.list[0].main.temp; const date = cityData.list; const temp = function(number){ let temp = cityData.list[number].main.temp; return...
jenkins-design-language/src/js/components/material-ui/svg-icons/social/cake.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const SocialCake = (props) => ( <SvgIcon {...props}> <path d="M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2zm4.6 9.99l-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l-1.07-1.07-1.09 1.07C6.75 16.64 5...
stories/components/form/formZipCode/index.js
tal87/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import FormZipCode from 'shared/components/form/formZipCode/formZipCode'; storiesOf('shared/components/form/formZipCode', module) .add('Default', () => ( <FormZipCode label="Zip co...
modules/Route.js
cgrossde/react-router
import React from 'react' import warning from 'warning' import invariant from 'invariant' import { createRouteFromReactElement } from './RouteUtils' import { component, components } from './PropTypes' const { string, bool, func } = React.PropTypes /** * A <Route> is used to declare which components are rendered to t...
docs/src/app/pages/components/Textarea/ExampleTextareaReadOnly.js
GetAmbassador/react-ions
import React from 'react' import Textarea from 'react-ions/lib/components/Textarea' const ExampleTextareaReadOnly = () => ( <Textarea value='' readOnly /> ) export default ExampleTextareaReadOnly
packages/ringcentral-widgets-docs/src/app/pages/Components/ActiveCallPanel/index.js
u9520107/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...
app/components/Menu/index.js
code4romania/monitorizare-vot-votanti-client
import React from 'react'; import User from './User'; import Admin from './Admin'; import { isLoggedIn } from '../../utils/authUtils'; const MENU_ITEMS = { ACASA: { title: 'Adaugă o sesizare', path: 'acasa', }, SESIZARI: { title: 'Sesizări', path: 'sesizari', }, STATISTICI: { title: 'Stat...
src/svg-icons/editor/insert-comment.js
rscnt/material-ui
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/route/home/container.js
vicvinc/yimanga
import React, { Component } from 'react'; import { withRouter } from 'react-router-dom'; import MainNavgation from '../../component/navgation/main'; import marvelApi from '../../api'; import Carousel from './carousel'; import ComicCard from '../../component/vomic/comic.card'; import ComicCardCol2 from '../../compone...
app/javascript/mastodon/features/compose/index.js
yi0713/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...
client/src/components/ingredient/Show.js
noinc/SimpleStorefront
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link, Redirect } from 'react-router-dom'; import PropTypes from 'prop-types'; import { retrieve, reset } from '../../actions/ingredient/show'; import { del } from '../../actions/ingredient/delete'; class Show extends Component { ...
packages/instance-steps/src/footer/index.js
yldio/joyent-portal
import React from 'react'; import { Row, Col } from 'joyent-react-styled-flexboxgrid'; import { Margin, Padding } from 'styled-components-spacing'; import Flex from 'styled-flex-component'; import styled from 'styled-components'; import remcalc from 'remcalc'; import { Anchor, CloseIcon as Close, H3, Textarea,...
admin/client/App/shared/Kbd.js
w01fgang/keystone
import React from 'react'; import { css, StyleSheet } from 'aphrodite/no-important'; import theme from '../../theme'; import { darken, lighten } from '../../utils/color'; function Kbd ({ className, ...props }) { props.className = css(classes.kbd); return <kbd {...props} />; }; const classes = StyleSheet.create({ ...
components/Accordion.js
hellobrian/carbon-components-react
import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; const propTypes = { children: PropTypes.node, className: PropTypes.string, }; const Accordion = ({ children, className, ...other }) => { const classNames = classnames('bx--accordion', className); return ( <...
resources/assets/admin/Administration.js
DoSomething/northstar
import React from 'react'; import { BrowserRouter, Route, Switch, Redirect } from 'react-router-dom'; import { ApolloProvider } from '@apollo/react-hooks'; import { env } from './helpers'; import graphql from './graphql'; import ShowClub from './pages/ShowClub'; import ShowPost from './pages/ShowPost'; import ShowUser...
react/route.js
shenqingling/myTemplates
import 'bootstrap-webpack'; import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, Link, hashHistory} from 'react-router'; import CommentEditor from './component/content'; import App from './app'; var HelloMessage = React.createClass({ render: function() { return ( ...
js/src/main.js
syslo/file_publisher
import React from 'react' import ReactDOM from 'react-dom' import App from './App' const rootElement = document.getElementById('file_publisher_app') const body = ( <App config={rootElement.dataset} /> ) ReactDOM.render(body, rootElement)
site/demos/gitxplore-dark/src/index.js
appbaseio/reactivesearch
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('app'));
docs/src/app/components/pages/components/Stepper/VerticalLinearStepper.js
lawrence-yu/material-ui
import React from 'react'; import { Step, Stepper, StepLabel, StepContent, } from 'material-ui/Stepper'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; /** * Vertical steppers are designed for narrow screen sizes. They are ideal for mobile. * * To use t...
hw7-frontend/src/index.js
brendazhao/comp531
require('./styles.css') require('expose?$!expose?jQuery!jquery') import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import createLogger from 'redux-logger' import { createStore, applyMiddleware } from 'redux' import thunk from 'redux-thunk' import Reducer f...
app/creation/index.js
hukaibaihu/dogsay
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { StyleSheet, Text, View, ListView, Image, TouchableHighlight, ActivityIndicator, RefreshControl, Alert, Dimensions } from 'react-native'; import Icon from 'react...
src/Well.js
Cellule/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Well = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'well' }; }, render() { let classes = this.getBsClassSet(); return ( <di...
examples/huge-apps/components/App.js
pjuke/react-router
import React from 'react'; import Dashboard from './Dashboard'; import GlobalNav from './GlobalNav'; class App extends React.Component { render() { var courses = COURSES; return ( <div> <GlobalNav /> <div style={{ padding: 20 }}> {this.props.children || <Dashboard courses={co...
src/components/Navbar/Navbar.js
tarkanlar/eskimo
/* * React.js Starter Kit * Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC. * * 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'; // eslint-disable-line no-unused-vars class Navbar { rende...
data-browser-ui/public/app/components/tableComponents/td/relationComponents/date.js
CloudBoost/cloudboost
import React from 'react'; import ReactDOM from 'react-dom'; import DatePicker from 'material-ui/DatePicker'; import TimePicker from 'material-ui/TimePicker'; class DateC extends React.Component { constructor(){ super() this.state = { } } componentDidMount(){ } openInput(which){ this.refs[which].openD...
frontend/src/components/common/SelectResourceDialog/SelectResourceDialogPres.js
jf248/scrape-the-plate
import React from 'react'; import classNames from 'classnames'; import * as Mui from '@material-ui/core'; import * as Enhanced from 'lib/mui-components'; const styles = () => ({ root: {}, dialogActions: { flex: '0 0 auto', justifyContent: 'flex-start', }, }); SelectResourceDialogPres.defaultProps = {};...
app/scripts/Widget/plugins/Match/components/Page.js
igr-santos/hub-client
import React from 'react' import * as Paths from '../../../../Paths' import { Menu } from './' import { SettingsPageLayout } from '../../../../../components/Layout' const MatchPage = ({ widget, mobilization, location, children }) => ( <SettingsPageLayout> <Menu widget={widget} mobilization={mobiliza...
renderer/components/logtable.js
trainto/Catalogger
'use strict'; import React from 'react'; import {Table, Column, Cell} from 'fixed-data-table-2'; import Measure from 'react-measure'; import {dispatcher} from '../dispatcher'; import {dataWrapper} from '../datawrapper'; import './styles/fixed-data-table.css'; import './styles/logtable.css'; class LogTable extends Rea...
src/main/resources/static/bower_components/jqwidgets/demos/react/app/listmenu/defaultfunctionality/app.js
dhawal9035/WebPLP
import React from 'react'; import ReactDOM from 'react-dom'; import JqxListMenu from '../../../jqwidgets-react/react_jqxlistmenu.js'; class App extends React.Component { render () { let listMenuHTML = ` <ul id="list" data-role="listmenu"> <li> <img src="../../../images/andre...
examples/src/components/CustomComponents.js
paulmillr/react-select
import React from 'react'; import Select from 'react-select'; import Gravatar from 'react-gravatar'; const USERS = require('../data/users'); const GRAVATAR_SIZE = 15; const GravatarOption = React.createClass({ propTypes: { children: React.PropTypes.node, className: React.PropTypes.string, isDisabled: React.Pro...
src/parser/warrior/fury/modules/buffdebuff/Enrage.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import StatTracker from 'parser/shared/modules/StatTracker'; import Events from 'parser/core/Events'; import { SELECTED_PLAYER } from 'parser/core/EventFilter'; import SPELLS from...
src/components/StreetCard.js
nickooms/racing-webgl2
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Card, CardTitle, CardText } from 'material-ui/Card'; import muiThemeable from 'material-ui/styles/muiThemeable'; import { List, ListItem } from 'material-ui/List'; import Divider from 'material-ui/Divider'; import { Link } from 'reac...
src/components/Textarea.js
robwalkerco/caerurfapugs
import React from 'react' import styled from 'styled-components' export default styled.textarea` width: 80%; `
src/routes/notFound/index.js
Artemuch727/UserList-React-Isomorhic-
/** * 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 Layout from '../../compo...
src/containers/Accounts/Verify/Pending/index.js
westoncolemanl/tabbr-web
import React from 'react' import Card, { CardContent } from 'material-ui/Card' import Typography from 'material-ui/Typography' import { LinearProgress } from 'material-ui/Progress' import { CardLogoHeader } from 'components' export default () => <Card raised > <CardLogoHeader /> <CardContent> ...
src/svg-icons/navigation/subdirectory-arrow-left.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationSubdirectoryArrowLeft = (props) => ( <SvgIcon {...props}> <path d="M11 9l1.42 1.42L8.83 14H18V4h2v12H8.83l3.59 3.58L11 21l-6-6 6-6z"/> </SvgIcon> ); NavigationSubdirectoryArrowLeft = pure(Navigation...
src/collections/Message/MessageContent.js
shengnian/shengnian-ui-react
import cx from 'classnames' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' /** * A message can contain a content. */ function MessageContent(props) { const { children, className, content } ...
examples/react/src/index.js
thangngoc89/react-howler
import React from 'react' import ReactDOM from 'react-dom' import App from './App' import './styles/index.css' ReactDOM.render( <App />, document.getElementById('app') )
public/app/components/base/theme.js
vincent-tr/mylife-wine
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import * as muiStyles from 'material-ui/styles/index'; const theme = muiStyles.getMuiTheme(muiStyles.lightBaseTheme); const Theme = (props) => ( <muiStyles.MuiThemeProvider muiTheme={theme}> { props.children } </muiStyles.MuiThemePr...
examples/js/others/table-in-tabs.js
neelvadgama-hailo/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; import { Tabs, Tab } from 'react-bootstrap'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = star...
public/controllers/management/components/management/ruleset/ruleset-table.js
wazuh/wazuh-kibana-app
/* * Wazuh app - React component for registering agents. * Copyright (C) 2015-2022 Wazuh, Inc. * * 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 ...
src/svg-icons/device/brightness-high.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBrightnessHigh = (props) => ( <SvgIcon {...props}> <path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 ...
src/helpers/interaction.js
casesandberg/react-color
/* eslint-disable no-invalid-this */ import React from 'react' export const handleFocus = (Component, Span = 'span') => class Focus extends React.Component { state = { focus: false } handleFocus = () => this.setState({ focus: true }) handleBlur = () => this.setState({ focus: false }) render() { ...
docs/src/examples/elements/Button/GroupVariations/ButtonExampleGroupIcon.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Button, Icon } from 'semantic-ui-react' const ButtonExampleGroupIcon = () => ( <Button.Group icon> <Button> <Icon name='play' /> </Button> <Button> <Icon name='pause' /> </Button> <Button> <Icon name='shuffle' /> </Button> </Button.Group>...
src/routes.js
nopphawitKar/petMarket
'use strict'; import React from 'react' import { Route, IndexRoute } from 'react-router' import App from './components/App'; import Home from './components/Home'; import Products from './components/Products'; import Gallery from './components/Gallery'; import pocketDogs from './data/pocketDogs'; import largeDogs from...
client/core/routes.js
ygotthilf/react-fullstack-boilerplate
import React from 'react'; import Router, {Route, DefaultRoute, HashLocation} from 'react-router'; import App from '../components/app/App'; import TodoApp from '../components/todo/Todo'; import About from '../components/about/About'; const routes = ( <Route handler={App}> <Route name="about" handler={About}/> ...
common/main-layout/Footer.js
gobble43/gobble-dist-web
import React from 'react'; const Footer = () => ( <div className="footer"> <div className="footer-links"> <a className="footer-link" href="/about">About</a> <a className="footer-link" href="https://github.com/gobble43" target="_blank">Github</a> <a className="footer-link" href="https://github.c...
src/components/topic/platforms/IncompletePlatformWarning.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import { injectIntl, FormattedMessage } from 'react-intl'; import { Grid, Row, Col } from 'react-flexbox-grid/lib'; import Permissioned from '../../common/Permissioned'; import { PERMISSION_TOPIC_WRITE } from '../../.....
frontend/src/components/applications/unsolicited/directSelectionCell.js
unicef/un-partner-portal
import Typography from 'material-ui/Typography'; import React from 'react'; import { TableCell } from 'material-ui/Table'; import PropTypes from 'prop-types'; import Check from 'material-ui-icons/Check'; const DirectSelectionCell = (props) => { const { directSelection } = props; return ( <TableCell padding="n...
packages/wix-style-react/src/Sidebar/SidebarContentWrapper.js
wix/wix-style-react
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { st, classes } from './Sidebar.st.css'; import { dataHooks, sidebarSkins } from './constants'; /** A sidebar content children wrapper to add gradient */ export class SidebarContentWrapper extends Component { static propTypes = { ...
app/components/LoadingIndicator/index.js
c-dagostino/react-boilerplate-example
import React from 'react'; import Circle from './Circle'; import Wrapper from './Wrapper'; const LoadingIndicator = () => ( <Wrapper> <Circle /> <Circle rotate={30} delay={-1.1} /> <Circle rotate={60} delay={-1} /> <Circle rotate={90} delay={-0.9} /> <Circle rotate={120} delay={-0.8} /> <Cir...
stories/dialogs/lnurl-withdrawal-prompt.stories.js
LN-Zap/zap-desktop
import React from 'react' import { storiesOf } from '@storybook/react' import { LnurlWithdrawPrompt } from 'components/Lnurl' import { Window } from '../helpers' storiesOf('Dialogs', module) .addDecorator(story => <Window>{story()}</Window>) .add('Lnurl withdraw confirmation', () => ( <LnurlWithdrawPrompt ...
step6-serviceapi/node_modules/react-router/es6/IndexLink.js
jintoppy/react-training
'use strict'; 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; }; import React from 'react'; import Link from '....
packages/material-ui-icons/src/SlowMotionVideo.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let SlowMotionVideo = props => <SvgIcon {...props}> <path d="M13.05 9.79L10 7.5v9l3.05-2.29L16 12zm0 0L10 7.5v9l3.05-2.29L16 12zm0 0L10 7.5v9l3.05-2.29L16 12zM11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69c1....
src/inactive/New-form.js
MichaelLSmith/recipeBox
import React, { Component } from 'react'; import { Field, reduxForm } from 'redux-form'; import { connect } from 'react-redux'; import shortid from 'shortid'; import { createRecipe, getRecipes } from '../actions/actions'; class NewRecipe extends Component { onSubmit(values) { //this = component console.log(...
src/components/login/loginByPassword.js
liuweiGL/eastcoal_mgr_react
import React from 'react' import { Form, Input, message as msgTool } from 'antd' import { resultEnum } from '../../utils' import styles from './index.less' const FormItem = Form.Item; class LoginByPassword extends React.Component { componentWillReceiveProps( nextProps ) { const { validator, form: { setField...
src/client/components/filter/SearchBar/SearchBar.component.js
DBCDK/content-first
import React from 'react'; import {isMobile} from 'react-device-detect'; import TagsSuggester from './TagsSuggester.component'; import Icon from '../../base/Icon'; import Button from '../../base/Button'; import {withTagsFromUrl} from '../../hoc/AdressBar'; import withPermissions from '../../hoc/Permissions'; import {wi...
imports/ui/components/DocumentEditor.js
zarazi/movies-listie
/* eslint-disable max-len, no-return-assign */ import React from 'react'; import PropTypes from 'prop-types'; import { FormGroup, ControlLabel, FormControl, Button } from 'react-bootstrap'; import documentEditor from '../../modules/document-editor.js'; export default class DocumentEditor extends React.Component { c...
src/components/notauthenticated.js
rajatsharma305/eldritch
import React from 'react' import Box from 'grommet/components/Box' import Card from 'grommet/components/Card' import { Link } from 'react-router' const NotAuthenticated = props => <Box justify="center" pad="large" align="center" appCentered full texture="http://photos.imageevent.com/afap/wall...
src/client/app/page_list_sidebar/sub_components/AddPageComponent.js
raghuveerkancherla/yata
import React from 'react'; import ReactDOM from 'react-dom'; import styles from './styles.less'; import {Popover, Overlay} from 'react-bootstrap'; var AddPageComponent = React.createClass({ propTypes: { onAddPage: React.PropTypes.func }, getInitialState: function () { return { 'display': false ...
stories/Card.stories.js
react-materialize/react-materialize
import React from 'react'; import { storiesOf } from '@storybook/react'; import Card from '../src/Card'; import CardPanel from '../src/CardPanel'; import CardTitle from '../src/CardTitle'; import Col from '../src/Col'; import Row from '../src/Row'; const stories = storiesOf('Components/Card', module); stories.addPara...
node_modules/react-widgets/lib/Listbox.js
yomolify/cc-server
"use strict"; // import React from 'react'; // import cn from 'classnames'; // import TimeoutMixin from './mixins/TimeoutMixin'; // import PureRenderMixin from './mixins/PureRenderMixin'; // import PopupScrollToMixin from './mixins/PopupScrollToMixin'; // import RtlParentContextMixin from './mixins/RtlParentContextMix...
scripts/stores/NearByBookStore.js
nverdhan/satticentre
import React from 'react'; import { register } from '../AppDispatcher'; import { createStore, mergeIntoBag, isInBag } from '../utils/StoreUtils'; import { getDistanceFromLatLonInKm } from '../utils/HelperUtils';; import selectn from 'selectn'; const listBooks = [] // For Pagination, e.g. say In one Chuck 10 books are...
src/resume/sections/Education.js
Ciunkos/ciunkos.com
import React from 'react' import styled from 'styled' import { Section, InlineLink } from 'components' import contracts from 'resume/contracts' import { education as cover } from './covers' const Contracts = ({ contracts }) => ( <styled.Contracts spacing-3> {contracts.map(contract => ( <styled.Contract ke...
src/Trails.js
melaniebmn/peaktrails
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import styled from 'styled-components'; import SectionHeading from './SectionHeading'; import TrailsPostTile from './TrailsPostTile'; import trails from './trails.json'; const TrailsContainer = styled.div` justify-content: space-betwe...
fields/types/location/LocationField.js
andreufirefly/keystone
import _ from 'lodash'; import React from 'react'; import Field from '../Field'; import { Button, Checkbox, FormField, FormInput, FormNote, FormRow } from 'elemental'; /** * TODO: * - Remove dependency on underscore * - Custom path support */ module.exports = Field.create({ displayName: 'LocationField', getIn...
src/icons/Checkmark.js
ericyd/surfplot-ui
/** * Modified from iconmonstr * http://iconmonstr.com/check-mark-2/ */ import React from 'react'; import Icon from './Icon'; const Checkmark = props => ( <Icon className={props.className}> <path d='M 37.372881,97.035 0,61.165339 11.589746,49.247542 37.152797,73.639576 87.855339,21.998559 99.661017 33.6...
packages/cf-component-loading/example/basic/component.js
mdno/mdno.github.io
import React from 'react'; import Loading from 'cf-component-loading'; const LoadingComponent = () => ( <div> <Loading /> </div> ); export default LoadingComponent;
video-player/src/components/VideoDetail.js
HeroSizy/Modern-react-with-redux
import React from 'react' const VideoDetail = ({video}) => { if (!video) { return <div>Loading...</div> } const videoId = video.id.videoId; // const playerOptions = { // fs : 1, // // }; // let optionsString = ''; const title = video.snippet.title; const descripti...
src/web/client/src/components/audit/audit.js
devmynd/cloud-access-manager
import React from 'react' import graphqlApi from '../../graphql-api' import './audit.scss' import AuditFlags from './audit-flags' import ReviewFlags from './review-flags' import AuditProgress from '../shared/audit-progress' import lodash from 'lodash' import MessagesContainer from '../shared/messages-container' export...
gbe/resources/assets/js/components/SimpleCard.js
DemocracyApps/Community-Budget-Explorer
import React from 'react'; var cardStore = require('../stores/CardStore'); var SimpleCard = React.createClass({ propTypes: { site: React.PropTypes.object.isRequired, componentData: React.PropTypes.object.isRequired, componentProps: React.PropTypes.object.isRequired, storeId: React...
pyxis/components/Select/index.js
gtkatakura/furb-desenvolvimento-plataformas-moveis
import React from 'react'; import { View, Text, Button, StyleSheet, Picker } from 'react-native'; const styles = new StyleSheet.create({ }); class Select extends React.Component { constructor(props) { super(props); this.state = { value: this.props.value.id, }; } onChange(value, index) { ...
app/javascript/mastodon/features/account/components/header.js
narabo/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import emojify from '../../../emoji'; import escapeTextContentForBrowser from 'escape-html'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import IconButton from '../.....
node_modules/semantic-ui-react/dist/es/elements/Step/Step.js
mowbell/clickdelivery-fed-test
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...
core/src/plugins/access.ajxp_conf/res/js/AdminWorkspaces/editor/WorkspaceCreator.js
pydio/pydio-core
/* * Copyright 2007-2017 Charles du Jeu - Abstrium SAS <team (at) pyd.io> * This file is part of Pydio. * * Pydio is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, o...