path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
docs/src/app/components/pages/components/Badge/Page.js
ArcanisCz/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 badgeReadmeText from './README'; import BadgeExampleSimple from './Exampl...
src/svg-icons/image/filter-2.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter2 = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-4-4h-4v-2h2c1.1 0 2-.89 ...
featuring-react-gui/src/index.js
ccortezia/featuring
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import 'font-awesome/css/font-awesome.min.css'; import 'bootstrap/dist/css/bootstrap.min.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root'...
app/containers/App.js
lgarcin/LatexElectronReact
// @flow import React, { Component } from 'react'; export default class App extends Component { props: { children: HTMLElement }; render() { return ( <div> {this.props.children} </div> ); } }
app/javascript/mastodon/features/mutes/index.js
ebihara99999/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { ScrollContainer } from 'react-router-scroll'; import Column from '../ui/components...
node_modules/antd/es/date-picker/Calendar.js
ZSMingNB/react-news
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/inherits'; import React from 'react'; import CalendarLo...
src/components/Footer/index.js
andywillis/uws
// Dependencies import React from 'react'; // Style import './style.css'; /** * @function Header * @return {jsx} Component */ const Header = () => { return ( <div className="Footer"> &copy; Andy Willis 2017 </div> ); }; export default Header;
node_modules/react-native-admob/RNAdMobBanner.js
odapplications/WebView-with-Lower-Tab-Menu
import React from 'react'; import { NativeModules, requireNativeComponent, View, NativeEventEmitter, } from 'react-native'; const RNBanner = requireNativeComponent('RNAdMob', AdMobBanner); export default class AdMobBanner extends React.Component { constructor() { super(); this.onSizeChange = this.o...
src/client/auth/login.react.js
terakilobyte/socketreact
import * as actions from './actions'; import Component from '../components/component.react'; import DocumentTitle from 'react-document-title'; import React from 'react'; import exposeRouter from '../components/exposerouter.react'; import immutable from 'immutable'; import {focusInvalidField} from '../../lib/validation'...
app/components/layout/newProject/MainStepTwo.js
communicode-source/communicode
import React from 'react'; import PropTypes from 'prop-types'; class newProject extends React.Component { constructor(props) { super(props); this.props = props; } componentWillMount() { if(this.props.location !== 2) { this.props.moveToStepTwo(); } } ren...
blueocean-material-icons/src/js/components/svg-icons/editor/format-strikethrough.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const EditorFormatStrikethrough = (props) => ( <SvgIcon {...props}> <path d="M10 19h4v-3h-4v3zM5 4v3h5v3h4V7h5V4H5zM3 14h18v-2H3v2z"/> </SvgIcon> ); EditorFormatStrikethrough.displayName = 'EditorFormatStrikethrough'; EditorFormatStrikethrough.mui...
app/components/Users/Actions.js
klpdotorg/tada-frontend
import React from 'react'; import PropTypes from 'prop-types'; const ActionsView = (props) => { return ( <div> <button className="btn btn-primary delete-users-button" onClick={props.deleteUsers}> Delete </button> <button className="btn btn-primary">Deactivate</button> </div> ); };...
internals/templates/containers/HomePage/index.js
kaizen7-nz/gold-star-chart
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
src/components/views/delegatesList/components/introduction/Description.js
LiskHunt/LiskHunt
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import { bindActionCreators } from 'redux'; class Description extends Component { render() { return ( <div className="column"> <h1>Delegates-hunt</h1> <div className...
src/components/Feedback/Feedback.js
sbassan/Kingsthorpe
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import withStyles from 'isomorp...
native/app/components/Search.js
madison-kerndt/native
import React, { Component } from 'react'; import connect from 'react-redux'; import { AsyncStorage, StyleSheet, Text, TouchableHighlight, View, Button, ScrollView, TextInput, Image, WebView, ListView, Linking } from 'react-native'; import { client_id, client_secret, grant_type } from '../../env...
src/common/SpellLink.js
mwwscott0/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPELLS from './SPELLS'; const SpellLink = ({ id, children, category = undefined, ...other }) => { if (process.env.NODE_ENV === 'development' && !children && !SPELLS[id]) { throw new Error(`Unknown spell: ${id}`); } return ( <a href={`...
components/Perfil.js
wrariza/wrariza
import React from 'react' import styled, { keyframes } from 'styled-components' import { Row, Col , BASE_CONF} from 'react-styled-flexboxgrid' import Icon from 'react-icons-kit' import { linkedinSquare, github, graduationCap } from 'react-icons-kit/fa/' const Container = styled(Row)` width: 100%; margin-top: 1...
www/src/pages/components/jumbotron.js
glenjamin/react-bootstrap
import { graphql } from 'gatsby'; import React from 'react'; import LinkedHeading from '../../components/LinkedHeading'; import ComponentApi from '../../components/ComponentApi'; import ReactPlayground from '../../components/ReactPlayground'; import JumbotronBasic from '../../examples/Jumbotron/Basic'; import Jumbotro...
app/js/components/layout.js
leon-4A6C/tplay
import React from 'react'; import MainInfo from "./mainInfo.js"; import Page from "./page.js"; // import Settings from "./settings.js"; // import Nav from "./nav.js"; import Player from "./player.js"; export default class Layout extends React.Component { constructor(props) { super(props) this.state = { ...
app/views/Routes.js
bboysathish/react-boilerplate
import React from 'react'; import { Link, Match, Miss } from 'react-router'; import Home from './Home'; const NoMatch = () => (<div className="text-center"> <h3 className="text-danger">{ `404: Page not found!` } </h3> <Link to="/">{ `Back To Home` }</Link> </div>); const RouteConfig = () => ( <div> <Match ...
services/ui/src/components/errors/ProjectNotFound.js
amazeeio/lagoon
import React from 'react'; import ErrorPage from 'pages/_error'; export default ({ variables }) => ( <ErrorPage statusCode={404} errorMessage={`Project "${variables.name}" not found`} /> );
js/components/home.js
frequencyasia/website
import React from 'react'; import $ from 'jquery'; import { Link } from 'react-router-component'; require('swiper'); import i18next from 'i18next'; import Constants from './../constants'; module.exports = React.createClass({ propTypes: { nowPlayingSlug: React.PropTypes.string.isRequired, }, numShowcaseIte...
src/svg-icons/editor/short-text.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorShortText = (props) => ( <SvgIcon {...props}> <path d="M4 9h16v2H4zm0 4h10v2H4z"/> </SvgIcon> ); EditorShortText = pure(EditorShortText); EditorShortText.displayName = 'EditorShortText'; EditorShortText...
local-cli/templates/HelloWorld/index.android.js
Ehesp/react-native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class HelloWorld extends Component { render() { return ( <View style={styles.containe...
frontend/src/courses/index.js
OptimusCrime/youkok2
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import LoaderWrapperContainer from './containers/loader-wrapper/loader-wrapper'; import configureStore from './redux/configureStore'; import {getSearchFromUrl, queryPresentInUrl} from "./prefill"; import {COURSES_UPDAT...
modules/SearchResults/Carousel2.js
cloudytimemachine/frontend
import React from 'react' import Carousel from 'nuka-carousel' import moment from 'moment' export default React.createClass({ mixins: [Carousel.ControllerMixin], getInitialState() { return { finished: false, slideIndex: 0, sliderVal: 0, sliderMin: 0, sli...
frontend/jqwidgets/jqwidgets-react/react_jqxcheckbox.js
yevgeny-sergeyev/nexl-js
/* jQWidgets v5.7.2 (2018-Apr) Copyright (c) 2011-2018 jQWidgets. License: https://jqwidgets.com/license/ */ import React from 'react'; const JQXLite = window.JQXLite; export const jqx = window.jqx; export default class JqxCheckBox extends React.Component { componentDidMount() { let options = this.manag...
web/src/client/main.js
neozhangthe1/framedrop-web
import React from 'react'; import ReactDOM from 'react-dom'; import Router from 'react-router'; import {configureStore} from '../../../common'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import createRoutes from './createRoutes'; import {IntlProvider} from 'react-intl'; import {Provider} from ...
src/components/youtube/VideoDetail.js
notMasterpiece/youtube
import React from 'react'; const VideoDetail = ({video}) => { console.log(video); if( !video ) return <div className="col-sm-8"><div>Loading...</div></div>; console.log(video); const videoId = video.id.videoId; // console.log(videoId); const videoUrl = `https://www.youtube.com/embed/${videoI...
packages/xo-web/src/common/timezone-picker.js
vatesfr/xo-web
import ActionButton from 'action-button' import map from 'lodash/map' import moment from 'moment-timezone' import PropTypes from 'prop-types' import React from 'react' import _ from './intl' import Component from './base-component' import { getXoServerTimezone } from './xo' import { Select } from './form' const SERVE...
templates/rubix/rubix-bootstrap/src/Well.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import classNames from 'classnames'; import BWell from 'react-bootstrap/lib/Well'; export default class Well extends React.Component { static propTypes = { sm: React.PropTypes.bool, lg: React.PropTypes.bool, noMargin: React.PropTypes.bool, }; render() { let props = {.....
src/components/Todo/TodoFooter.js
divyanshu013/impulse-tabs
import React from 'react'; import FontIcon from 'material-ui/FontIcon'; import { BottomNavigation, BottomNavigationItem } from 'material-ui/BottomNavigation'; const recentsIcon = <FontIcon className="material-icons">home</FontIcon>; const favoritesIcon = <FontIcon className="material-icons">favorite</FontIcon>; let s...
src/client.js
taekungngamonosus/monoreact
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-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 'whatwg-fetch'; import React from 'react'; impor...
src/components/Result.js
lukaszmakuch/quiz
import React, { Component } from 'react'; import Grid from 'material-ui/Grid'; import Button from 'material-ui/Button'; import Paper from 'material-ui/Paper'; import Table, { TableBody, TableCell, TableRow, TableFooter } from 'material-ui/Table'; const Frame = props => <Grid container style={({ flex: ...
packages/material-ui-icons/src/Subscriptions.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Subscriptions = props => <SvgIcon {...props}> <path d="M20 8H4V6h16v2zm-2-6H6v2h12V2zm4 10v8c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2v-8c0-1.1.9-2 2-2h16c1.1 0 2 .9 2 2zm-6 4l-6-3.27v6.53L16 16z" /> </SvgIcon>;...
views/decoration_toggle.js
jacobmarshall/black-screen
import React from 'react'; export default React.createClass({ getInitialState() { return {enabled: this.props.invocation.state.decorate}; }, handleClick(event) { stopBubblingUp(event); var newState = !this.state.enabled; this.setState({enabled: newState}); this.prop...
test/integration/client-navigation/pages/link.js
azukaru/next.js
import React from 'react' import Link from 'next/link' export default () => ( <div> Hello World.{' '} <Link href="/about"> <a>About</a> </Link> </div> )
src/js/components/Qikshot.js
grommet/grommet-qikshot
import React, { Component } from 'react'; import { browserHistory } from 'react-router'; import Anchor from 'grommet/components/Anchor'; import Button from 'grommet/components/Button'; import Box from 'grommet/components/Box'; import FormField from 'grommet/components/FormField'; import Form from 'grommet/components/F...
public/js/cat_source/es6/components/header/manage/SearchInput.js
matecat/MateCat
import React from 'react' import _ from 'lodash' class SearchInput extends React.Component { constructor(props) { super(props) this.onKeyPressEvent = this.onKeyPressEvent.bind(this) let self = this this.filterByNameDebounce = _.debounce(function (e) { self.filterByName(e) }, 500) } fil...
app/components/common/Spinner.js
klpdotorg/tada-frontend
import React from 'react'; import PropTypes from 'prop-types'; const SpinnerView = (props, style) => { if (!props.show) { return <div />; } return ( <div className="loading-spinner"> <div style={style}> <i className="fa fa-cog fa-spin fa-lg fa-fw" /> <span className="text-muted">{p...
packages/example-phone/src/scripts/containers/page-sections/call-page-header.js
udaysrinath/spark-js-sdk
import React from 'react'; import {connect} from 'react-redux'; import {PageHeader} from 'react-bootstrap'; function CallPageHeader({callStatus}) { return ( <PageHeader>Call Status: <small className="call-status">{callStatus}</small></PageHeader> ); } CallPageHeader.propTypes = { callStatus: React.PropTypes...
src/svg-icons/image/lens.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLens = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z"/> </SvgIcon> ); ImageLens = pure(ImageLens); ImageLens.displayName = 'ImageLens'; ex...
src/components/Footer.js
ayastreb/bandwidth-hero
import React from 'react' import { Button, Container } from 'semantic-ui-react' export default () => { return ( <Container className="footer" textAlign="right"> <Button basic content="How it works?" href="https://bandwidth-hero.com/" target="_blank" icon="home" ...
src/LoadingLine.js
jgallegoweb/react-loading-line
import React, { Component } from 'react'; import '../assets/css/LoadingLine.css'; class LoadingLine extends Component { constructor(props) { super(props); this.calculate = this.calculate.bind(this); this.run = this.run.bind(this); this.finalize = this.finalize.bind(this); this.init = this.init....
src/statics/Help.js
Sekhmet/busy
import React from 'react'; import { FormattedMessage } from 'react-intl'; import MenuHelp from '../app/Menu/MenuHelp'; export default () => <div className="main-panel"> <MenuHelp /> <div className="container text-center my-5"> <h1><FormattedMessage id="help" defaultMessage="Help" /></h1> <h2> ...
packages/showcase/axes/parallel-coordinates-example.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...
blueocean-material-icons/src/js/components/svg-icons/notification/airline-seat-legroom-reduced.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const NotificationAirlineSeatLegroomReduced = (props) => ( <SvgIcon {...props}> <path d="M19.97 19.2c.18.96-.55 1.8-1.47 1.8H14v-3l1-4H9c-1.65 0-3-1.35-3-3V3h6v6h5c1.1 0 2 .9 2 2l-2 7h1.44c.73 0 1.39.49 1.53 1.2zM5 12V3H3v9c0 2.76 2.24 5 5 5h4v-2H8c...
app/routes.js
websash/q-and-a-react-redux-app
import React from 'react' import {Route, IndexRoute} from 'react-router' import App from './containers/App' import Login from './containers/Login' import Questions from './containers/Questions' import Answers from './containers/Answers' import AskQuestion from './containers/AskQuestion' import User from './containers/U...
modules/Route.js
Dodelkin/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...
_site/src/components/header/index.js
eemp/elasticsearch-scribe
import React from 'react' import Paper from 'material-ui/lib/paper' import Toolbar from 'material-ui/lib/toolbar/toolbar' import ToolbarTitle from 'material-ui/lib/toolbar/toolbar-title' import ToolbarGroup from 'material-ui/lib/toolbar/toolbar-group' import FontIcon from 'material-ui/lib/font-icon' import Popover fro...
cb_browser_ui/src/toolbar.js
citybound/citybound
import React from 'react'; import { Tooltip } from 'antd'; export function Toolbar(props) { return <div id={props.id} className="toolbar">{Object.keys(props.options).filter(key => props.options[key]).map(key => { const { description, color, disabled } = props.options[key]; return <Tooltip title={de...
monkey/monkey_island/cc/ui/src/components/attack/techniques/T1105.js
guardicore/monkey
import React from 'react'; import ReactTable from 'react-table'; import {ScanStatus} from './Helpers' import MitigationsComponent from './MitigationsComponent'; class T1105 extends React.Component { constructor(props) { super(props); } static getFilesColumns() { return ([{ Header: 'Files copied'...
client/components/CommentList.js
parthi22/forum
import React from 'react'; import Comment from './Comment'; class CommentList extends React.Component{ handleSubmit(){ this.props.addComment(12,this.refs.comment,this.props.postId,'Parthi',new Date()); } render(){ return( <div className="wallComments"> <div className="comments"> ...
docs/src/app/components/pages/discover-more/RelatedProjects.js
kittyjumbalaya/material-components-web
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import relatedProjectsText from './related-projects.md'; const RelatedProjects = () => ( <div> <Title render={(previousTitle) => `Related Projects - ${previousTitle}`} /> <MarkdownElemen...
src/DropdownMenu.js
pandoraui/react-bootstrap
import React from 'react'; import keycode from 'keycode'; import classNames from 'classnames'; import RootCloseWrapper from 'react-overlays/lib/RootCloseWrapper'; import ValidComponentChildren from './utils/ValidComponentChildren'; import createChainedFunction from './utils/createChainedFunction'; class DropdownMenu e...
src/components/Header.js
tborisova/fridment-react
import React, { Component } from 'react'; import { Collapse, Navbar, NavbarToggler, NavbarBrand, Nav, NavItem, NavLink, NavButton } from 'reactstrap'; import Milestones from './Milestones'; import Issues from './Issues'; import Milestone from './Milestone'; import GenerateIssues from './GenerateIssues'...
fluxArchitecture/src/js/components/cart/app-cart.js
wandarkaf/React-Bible
import React from 'react'; import AppStore from '../../stores/app-store'; import AppCartItem from './app-cart-item'; import StoreWatchMixin from '../../mixins/StoreWatchMixin' import { Link } from 'react-router'; const cartItems = () => { return { items: AppStore.getCart() } } const Cart = ( props ) => { var to...
src/js/components/ui/Toolbar/ToolbarFiltersForm.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/index.js
lotas/message-flow
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; import 'semantic-ui-css/semantic.min.css'; ReactDOM.render( <App />, document.getElementById('root') );
node_modules/react-bootstrap/es/SafeAnchor.js
mohammed52/something.pk
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/components/ReportIndex.js
blaqbern/report-generator
import React from 'react' function ReportIndex() { return ( <h1>{'Generate Reportzzzzz!'}</h1> ) } export default ReportIndex
docs/src/app/components/pages/components/TextField/ExampleError.js
nathanmarks/material-ui
import React from 'react'; import TextField from 'material-ui/TextField'; const TextFieldExampleError = () => ( <div> <TextField hintText="Hint Text" errorText="This field is required" /><br /> <TextField hintText="Hint Text" errorText="The error text can be as long as you want, i...
modules/gui/src/app/home/map/imageLayerSource/assetImageLayer.js
openforis/sepal
import {CursorValue} from '../cursorValue' import {MapAreaLayout} from '../mapAreaLayout' import {Subject} from 'rxjs' import {VisualizationSelector} from './visualizationSelector' import {compose} from 'compose' import {msg} from 'translate' import {selectFrom} from 'stateUtils' import {withMapAreaContext} from '../ma...
src/js/components/MaskedInput/stories/Date.js
HewlettPackard/grommet
import React from 'react'; import { Box, Grommet, MaskedInput } from 'grommet'; import { grommet } from 'grommet/themes'; const daysInMonth = month => new Date(2019, month, 0).getDate(); export const DateMaskedInput = () => { const [value, setValue] = React.useState(''); return ( <Grommet full theme={grommet...
src/svg-icons/action/turned-in.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTurnedIn = (props) => ( <SvgIcon {...props}> <path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"/> </SvgIcon> ); ActionTurnedIn = pure(ActionTurnedIn); ActionTurnedIn.displayName = 'Ac...
src/routes/home/index.js
veskoy/ridiko
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-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'; import Home from './Home'; i...
src/svg-icons/maps/my-location.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsMyLocation = (props) => ( <SvgIcon {...props}> <path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.1...
src/App.js
SomeHats/somehats.github.io
import React from 'react'; import CSSTransitionGroup from 'react-addons-css-transition-group'; import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'; import { ThemeNames } from './lib/Themes'; import Layout from './components/Layout'; import ScrollToTop from './components/ScrollToTop'; import HomePa...
templates/rubix/relay/relay-example/src/routes.js
jeffthemaximum/jeffline
import React from 'react'; import Relay from 'react-relay'; import classNames from 'classnames'; import { IndexRoute, Route } from 'react-router'; import { Grid, Row, Col, MainContainer } from '@sketchpixy/rubix'; import Footer from './common/footer'; import Header from './common/header'; import Sidebar from './commo...
src/svg-icons/av/hd.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvHd = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-...
src/components/Dock/SoundCloudPlayer.js
bibleexchange/be-front-new
import React from 'react' class SoundCloudPlayer extends React.Component { render() { let srcString = null let player = <p>(no audio was selected)</p> if (this.props.status === true){ srcString = srcString = 'https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/' +...
common/components/ide/tabs/ProcessTab.js
ebertmi/webbox
import React from 'react'; import Tab from './Tab'; import Icon from '../../Icon'; export default class ProcessTab extends React.Component { constructor(props) { super(props); this.onBell = this.onBell.bind(this); this.onTitle = this.onTitle.bind(this); this.state = { bell: false, titl...
src/docs/examples/EyeIcon/Example.js
StudentOfJS/ps-react-rod
import React from 'react'; import EyeIcon from 'ps-react-rod/EyeIcon'; export default function EyeIconExample() { return <EyeIcon />; }
src/main.js
bingomanatee/ridecell
import React from 'react'; import ReactDOM from 'react-dom'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import { useRouterHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import makeRoutes from './routes'; import Root from './containers/Root'; import co...
src/routes/zookeeper.js
Capgemini/mesos-ui
import _ from 'lodash'; import fs from 'fs'; import path from 'path'; import React from 'react'; import Router from 'react-router'; import routes from './react-routes'; import proxy from 'express-http-proxy'; import express from 'express'; module.exports = function(app) { var zookeeper = require('node-zookeeper-cli...
client/components/calendar.js
vijayneophyte/react_redux_node_express
import React from "react"; import EventCalendar from 'react-event-calendar' import 'style-loader!react-event-calendar/style.css'; // import BigCalendar from 'react-big-calendar'; // import 'style-loader!react-big-calendar/lib/css/react-big-calendar.css'; // import moment from 'moment'; // BigCalendar.momentLocalizer(...
src/server.js
Maryanushka/masterskaya
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-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 path from 'path'; import express from 'express';...
docs/src/app/components/pages/components/List/ExampleFolders.js
ichiohta/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import ActionInfo from 'material-ui/svg-icons/action/info'; import Divider from 'material-ui/Divider'; import Subheader from 'material-ui/Subheader'; import Avatar from 'material-ui/Avatar...
src/icons/SuccessIcon.js
resmio/mantecao
import React from 'react' import Icon from '../Icon' const SuccessIcon = props => <Icon {...props}> <g strokeWidth="1.3" transform="translate(0, -0.5)"> <path d="M16.5 29C23.4 29 29 23.4 29 16.5 29 9.6 23.4 4 16.5 4 9.6 4 4 9.6 4 16.5 4 23.4 9.6 29 16.5 29ZM10 16.6L13.8 20.4C14.2 20.8 14.8 20.8 15.2 20.4L2...
src/client.js
trungtin/mP
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel/polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import createHistory from 'history/lib/createBrowserHistory'; import createStore from './redux/create'; import ApiClient from '....
src/svg-icons/editor/format-underlined.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatUnderlined = (props) => ( <SvgIcon {...props}> <path d="M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z"/> </SvgIcon> ); EditorF...
src/components/button/index.js
enapupe/know-your-bundle
import PropTypes from 'prop-types' import React from 'react' const Button = ({ btnType, btnClicked, children }) => ( <button type={btnType} onClick={btnClicked}> {children} </button> ) Button.propTypes = { btnType: PropTypes.string, btnClicked: PropTypes.func.isRequired, children: PropTypes.node.isRequi...
src/static/containers/Protected/index.js
spiskommg/mm-v2
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import PropTypes from 'prop-types'; import * as actionCreators from '../../actions/data'; class ProtectedView extends React.Component { static propTypes = { isFetching: PropTypes.bool.isRequired, ...
client/src/Dashboard.js
chi-bumblebees-2017/gnomad
import React, { Component } from 'react'; import Interests from './components/Interests'; import RecentChats from './RecentChats'; import NewProfile from './NewProfile'; import { Button, Loader } from 'semantic-ui-react' import { Link, Redirect } from 'react-router-dom'; class Dashboard extends Component { construct...
src/js/components/author-item.js
noknot/bnf-hackathon
import React from 'react' import { sparqlConnect } from '../sparql/configure-sparql' import { List, ListItem, ListSubHeader, ListDivider, ListCheckbox } from 'react-toolbox/lib/list' function AuthorItem({ author, name, dateOfBirth, dateOfDeath, placeOfBirth, placeOfDeath, thumbnail, count }) { ...
app/javascript/mastodon/features/lists/index.js
lindwurm/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import Column from '../ui/components/column'; import ColumnBackButtonSlim from '../../compo...
integration/examples/TableExamples.js
wundery/wundery-ui-react
import React from 'react'; import { Example, ExampleSet } from 'components'; import { tableData } from 'utils'; import { Table, TableColumn } from 'wundery-ui-react/components/Table'; import { FormValidation } from 'wundery-ui-react/components/Form'; class TableExamples extends React.Component { constructor(props) ...
clients/packages/admin-client/src/pages/admin/mobilizations/widgets/donation/settings/autofire/page.js
nossas/bonde-client
import PropTypes from 'prop-types'; import React from 'react'; import { Loading } from '../../../../../../../components/await'; import { FormAutofire } from '../../../../../../../mobilizations/widgets/components'; const DonationSettingsAutofirePage = (props) => !props.widget ? <Loading /> : <FormAutofire {...props}...
analysis/warlockdemonology/src/modules/talents/DemonicStrength.js
yajinni/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER, SELECTED_PLAYER_PET } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import Pets from 'parser/shared/modules/Pets'; import SPELLS from 'common/SPELLS'; import { formatThousands } from 'common/format'; import STATISTIC_CATEGORY from...
contrib/hello-world-react/src/www/js/components/login.js
intuit/wasabi
/*global WASABI*/ import React from 'react'; export class LoginComponent extends React.Component { constructor(props) { super(props); this.state = { username: '', password: '', errorMessage: '' }; this.onChange = this.onChange.bind(this); ...
docs/general/flex/index.js
valzav/react-foundation-components
import React from 'react'; import { FlexParent, FlexChild } from '../../../src/flex'; const rowStyle = { border: 'solid 1px #c6c6c6', marginTop: '0.5rem', marginBottom: '0.5rem' }; const styleOdd = { background: '#eee', minWidth: '250px' }; const styleEven = { background: '#e1e1e1', minWidth: '250px' }; const FlexPa...
app/javascript/mastodon/features/list_adder/index.js
Ryanaka/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { injectIntl } from 'react-intl'; import { setupListAdder, resetListAdder } from '...
src/parser/paladin/holy/modules/beacons/BeaconHealingDone.js
fyruna/WoWAnalyzer
import React from 'react'; import { Trans } from '@lingui/macro'; import Panel from 'interface/statistics/Panel'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import HealingValue from 'parser/shared/modules/HealingValue'; import HealingDone from 'parser/shared/modules/throughput/HealingDone'; imp...
webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/UpdateDialog.js
ares/katello
import React from 'react'; import PropTypes from 'prop-types'; import { sprintf } from 'foremanReact/common/I18n'; import { MessageDialog } from 'patternfly-react'; import { buildPools } from '../../SubscriptionsTableHelpers'; import { renderTaskStartedToast } from '../../../../../Tasks/helpers'; import { BLOCKING_FORE...
imports/ui/components/personalInfo/components/StudentLocation.js
AdmitHub/ScholarFisher
import React, { Component } from 'react'; import Collapse from 'react-collapse'; export default class StudentLocation extends Component { constructor(props) { super(props); this.state = { studentlocationopened: false }; this.drawCircle = this.drawCircle.bind(this); this.handleStudentLocationOpened =...
src/svg-icons/editor/drag-handle.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorDragHandle = (props) => ( <SvgIcon {...props}> <path d="M20 9H4v2h16V9zM4 15h16v-2H4v2z"/> </SvgIcon> ); EditorDragHandle = pure(EditorDragHandle); EditorDragHandle.displayName = 'EditorDragHandle'; Edi...
src/svg-icons/social/public.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPublic = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9...
stories/Configure.stories.js
algolia/react-instantsearch
import React from 'react'; import { storiesOf } from '@storybook/react'; import { Configure } from 'react-instantsearch-dom'; import { WrapWithHits } from './util'; const stories = storiesOf('Configure', module); stories.add('default', () => <ConfigureExample />); class ConfigureExample extends React.Component { c...
packages/react/components/messages-title.js
AdrianV/Framework7
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __reactComponentSlots from '../runtime-helpers/react-component-slots.js'; import __reactComponentSetProps from '../runtime-helpers/react-component-set-props.js'; class F7MessagesTitle extends React.Component { ...