path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
example/examples/CustomTiles.js
athaeryn/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, } from 'react-native'; import MapView, { MAP_TYPES, PROVIDER_DEFAULT } from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122.4...
examples/quick-start/app.js
maludwig/react-redux-form
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; // We'll create this in Step 5. import store from './store.js'; // We'll create this in Step 6. import UserForm from './components/user-form.js'; class App extends React.Component { render() { return ( <...
examples/real-world/server.js
ipluser/redux-saga
/* eslint-disable no-console */ import "babel-polyfill" import webpack from 'webpack' import webpackDevMiddleware from 'webpack-dev-middleware' import webpackHotMiddleware from 'webpack-hot-middleware' import config from './webpack.config' import express from 'express' import path from 'path' import favicon from 'serve...
react-flux-mui/js/material-ui/src/svg-icons/action/play-for-work.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPlayForWork = (props) => ( <SvgIcon {...props}> <path d="M11 5v5.59H7.5l4.5 4.5 4.5-4.5H13V5h-2zm-5 9c0 3.31 2.69 6 6 6s6-2.69 6-6h-2c0 2.21-1.79 4-4 4s-4-1.79-4-4H6z"/> </SvgIcon> ); ActionPlayForWork ...
app/javascript/chitchat/containers/App/index.js
fcbajao/chitchat
// @flow import React from 'react' import { connect } from 'react-redux' import { BrowserRouter as Router, Route } from 'react-router-dom' import PrivateRoute from '../../components/PrivateRoute' import Login from '../Login' import Room from '../../containers/Room' import type { Auth } from '../../ducks/auth/flowTy...
src/components/icons/LondonIcon.js
fathomlondon/fathomlondon.github.io
import React from 'react'; import { Icon } from './Icon'; export const LondonIcon = props => ( <Icon {...props} viewBox="0 0 180 209"> <g stroke="currentColor" fill="none" fillRule="evenodd" strokeDasharray="3,2" > <path d="M137.485 208.755V64.353h5.42v144.402M179.351 208.755L143.033 69.62M143.626 ...
app/config/routes.js
JoeDahle/fic
// core import React from 'react'; import { ReactRouter } from 'react-router'; import { Router } from 'react-router'; import { Route } from 'react-router'; import { hashHistory } from 'react-router'; import { IndexRoute } from 'react-router'; import { IndexRedirect } from 'react-router'; // components import MainConta...
docs/app/Examples/elements/Icon/Groups/IconExampleIconGroup.js
aabustamante/Semantic-UI-React
import React from 'react' import { Icon } from 'semantic-ui-react' const IconExampleIconGroup = () => ( <Icon.Group size='huge'> <Icon size='big' name='thin circle' /> <Icon name='user' /> </Icon.Group> ) export default IconExampleIconGroup
src/svg-icons/navigation/fullscreen.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationFullscreen = (props) => ( <SvgIcon {...props}> <path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/> </SvgIcon> ); NavigationFullscreen = pure(NavigationFullscre...
src/tools/code-template/ui/UserTable.js
steem/qwp-antd
import React from 'react' import PropTypes from 'prop-types' import { Modal, Button, Form, message } from 'antd' import styles from './UserTable.less' import classnames from 'classnames' import DateTable from 'components/DataTable' import { DropOption } from 'components' import { Link } from 'dva/router' import RandomA...
src/svg-icons/image/looks-one.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooksOne = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14h-2V9h-2V7h4v10z"/> </SvgIcon> ); ImageLooksOne = pure(ImageLooksOn...
src/Footer.js
battaile/time-tracking
import React from 'react'; const Footer = () => ( <div className="footer"> <a href="https://github.com/battaile/time-tracking" target="_blank"> View on Github </a> </div> ); export default Footer;
src/components/calendar/Calendar.js
reichert621/log-book
import React from 'react' import moment from 'moment' import classes from './Calendar.scss' import CalendarHeader from './CalendarHeader.js' import CalendarDay from './CalendarDay.js' const DAYS = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'] // TODO: move to container component? const generateWeeks = (month, yea...
app/javascript/mastodon/features/mutes/index.js
theoria24/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debou...
src/scripts/playground/react-router.js
lenshq/lens_front
import React, { Component } from 'react'; import Router, { Route, Link, DefaultRoute } from 'react-router'; import { history } from 'react-router/lib/HashHistory'; import { routerStateReducer, reduxRouteComponent, transitionTo } from 'redux-react-router'; class App extends Component { render() { return ( ...
src/components/users/PortfolioCard.js
jackson-/colorforcode
import React from 'react' import { Col, Image } from 'react-bootstrap' import PropTypes from 'prop-types' import Chips from '../utilities/chips/Chips' import './UserProfile.css' const PortfolioCard = ({opacity, title, src, skills, handleClick, handleOnLoad}) => ( <Col className='portfolio-card-container' xs={12} sm=...
react-flux-mui/js/material-ui/docs/src/app/components/pages/components/IconButton/ExampleSimple.js
pbogdan/react-flux-mui
import React from 'react'; import IconButton from 'material-ui/IconButton'; const IconButtonExampleSimple = () => ( <div> <IconButton iconClassName="muidocs-icon-custom-github" /> <IconButton iconClassName="muidocs-icon-custom-github" disabled={true} /> </div> ); export default IconButtonExampleSimple;
src/index.js
kiley0/personal-site
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; import 'skeleton-css/css/normalize.css'; import 'skeleton-css/css/skeleton.css'; import './bootstrap-utils.css'; import './index.css'; ReactDOM.render(<App />, document.get...
src/icons/SlideshowIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class SlideshowIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M20 16v16l10-8-10-8zM38 6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V10c0-2.21-1.79...
client/components/preview/Checkbox.react.js
blueberryapps/react-bluekit-web
import Component from 'react-pure-render/component'; import ErrorMessage from './ErrorMessage.react'; import Radium from 'radium'; import React from 'react'; import ToolTip from './ToolTip.react'; @Radium export default class Checkbox extends Component { static propTypes = { error: React.PropTypes.string, ...
catalog/app/containers/Auth/PassReset.js
quiltdata/quilt-compiler
import * as FF from 'final-form' import React from 'react' import * as RF from 'react-final-form' import * as redux from 'react-redux' import * as Config from 'utils/Config' import * as NamedRoutes from 'utils/NamedRoutes' import * as Sentry from 'utils/Sentry' import Link from 'utils/StyledLink' import defer from 'ut...
client/src/components/helpers/form/BlockSaveWrapper.js
pahosler/freecodecamp
import React from 'react'; import PropTypes from 'prop-types'; const propTypes = { children: PropTypes.node }; const style = { padding: '0 15px' }; function BlockSaveWrapper({ children, ...restProps }) { return ( <div style={style} {...restProps}> {children} </div> ); } BlockSaveWrapper.displa...
redux/todoList/src/test/app.js
yuanzhaokang/myAwesomeSimpleDemo
import React, { Component } from 'react'; import { connect } from 'react-redux'; import types from './actions'; class App extends Component { constructor(props) { super(props); } render() { let { dispatch, value } = this.props; return ( <div> {value} <div o...
app/javascript/flavours/glitch/features/lists/index.js
Kirishima21/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from 'flavours/glitch/components/loading_indicator'; import Column from 'flavours/glitch/features/ui/components/column'; import Column...
client/src/containers/pages/Home.js
shmilky/node-react-template
'use strict'; import React from 'react'; import {Link} from 'react-router-dom'; import routingHelpers from 'react-router-routing-helpers'; import {demoPages as demoPagesRoutes, modalNames} from '../../routes'; import {SharedComponent} from '../../components'; import styleGuide from '../../styleMain/styleG...
examples/mobx/src/App.js
gaearon/react-hot-loader
import React from 'react'; import { hot, setConfig } from 'react-hot-loader'; import Counter from './Counter'; const Element1 = ({ children }) => <div>Block1 {children}</div>; const Element2 = () => ( <div> Block2 <Counter /> </div> ); const App = () => ( <h1> Hello, mobx<br /> <Counter /> <Ele...
fields/types/markdown/MarkdownColumn.js
jacargentina/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var MarkdownColumn = React.createClass({ displayName: 'MarkdownColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue...
app/components/widgets/ResizeblePanel.js
sheldhur/Vector
// @flow import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { numberIsBetween } from '../../utils/helper'; export class ResizeblePanel extends Component { state = { size: this.props.defaultSize }; sendResizeEvent = () => { window.dispatchEvent(new CustomEvent('resize')...
templates/bootstrap/imports/startup/client/index.js
Batistleman/mgb
import { Meteor } from 'meteor/meteor'; import React from 'react'; import { render } from 'react-dom'; import HelloWorld from '/imports/ui/components/HelloWorld'; import './routes'; Meteor.startup(() => { render(<HelloWorld />, document.getElementById('app')); });
src/js/index.js
janjakubnanista/dnes.fetujem
import React from 'react'; import Game from './game'; React.render(<Game/>, document.getElementById('container'));
client/src/Home.js
ruslan2k/web-password
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Redirect } from 'react-router'; import { Button } from 'semantic-ui-react'; import { fetchGroups } from './actions'; class Home extends Component { componentDidMount() { const isLoggedIn = this.props.user.isLoggedIn; if...
fields/types/text/TextFilter.js
w01fgang/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import { FormField, FormInput, FormSelect, SegmentedControl, } from '../../../admin/client/App/elemental'; const INVERTED_OPTIONS = [ { label: 'Matches', value: false }, { label: 'Does NOT Match', value: true }, ]; const MODE_OPTIONS = [ { la...
lib/Selection/DefaultOptionFormatter.js
folio-org/stripes-components
import React from 'react'; import PropTypes from 'prop-types'; import OptionSegment from './OptionSegment'; const propTypes = { option: PropTypes.object, searchTerm: PropTypes.string, }; const DefaultOptionFormatter = ({ option, searchTerm }) => { if (option) { return <OptionSegment searchTerm={searchTerm}>...
src/containers/Form/DateTimePage.js
Aus0049/react-component
/** * Created by Aus on 2017/7/26. */ import React from 'react' import ListTitle from '../../components/DataDisplay/ListTitle/' import {DateTime} from '../../components/Form/' import Tools from '../../components/Tools/Tools' import moment from 'moment' class DateTimePage extends React.Component { constructor (pr...
app/components/H3/index.js
anhldbk/react-boilerplate
import React from 'react'; function H3(props) { return ( <h3 {...props} /> ); } export default H3;
tools/render.js
patmood/svg-jsx-online
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import glob from 'glob'; import { join, dirname } from 'path'; import React from 'react'; import ReactDOM from 'react-dom/server'; import Html from '../components/Html'...
node_modules/react-bootstrap/es/BreadcrumbItem.js
newphew92/newphew92.github.io
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 ...
app/containers/VideoViewerContainer.js
MutatedBread/binary-academy-rn
import React, { Component } from 'react'; import { bindActionCreators } from 'redux' import { connect } from 'react-redux'; import VideoViewer from './../components/views/VideoViewer.js' const mapStateToProps = state => ({ }); const mapDispatchToProps = (dispatch) => ({ goBackToRoot: () => { dispatch({ty...
src/svg-icons/action/feedback.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFeedback = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"/> </SvgIcon> ); ActionFeedback = pure(Acti...
src/routes/contact/Contact.js
rameshrr/dicomviewer
/** * 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 PropTypes from 'prop-...
data-browser-ui/public/app/components/tableComponents/td/fileTdComponent.js
CloudBoost/cloudboost
import React from 'react'; import ReactDOM from 'react-dom'; import LinearProgress from 'material-ui/LinearProgress'; import FilePicker from './filePicker' import CONFIG from '../../../config/app.js' import Axios from 'axios' import ReactTooltip from 'react-tooltip' class FileTdComponent extends React.Component { con...
src/views/HomeView/HomeView.js
gramulos/noteapp
import React from 'react' import { NoteInput, Notes } from '../../containers' const HomeView = () => { return ( <div className='container'> <h1>NotesApp</h1> <NoteInput /> <Notes /> </div> ) } export default HomeView
client/ui/button/index.js
marioblas/neptune
import React from 'react'; import PropTypes from 'prop-types'; import StyledA from './styled-a'; import StyledButton from './styled-button'; /** * Renders a link if href is specified, otherwise renders a button */ const Button = (props) => { const Component = props.href ? StyledA : StyledButton; return ( <C...
src/packages/@ncigdc/modern_components/ClinicalAnalysis/ClinicalVariableCard/modals/ContinuousCustomBinsModal/RangeInput.js
NCI-GDC/portal-ui
import React from 'react'; import styles from './styles'; const { column, input: { inputDisabled, inputError, inputInTable, inputInvalid, }, } = styles; const RangeInput = ({ disabled, error, errorVisible, handleChange, id, value, }) => { return ( <div style={column} > <input...
contracts/src/deprecated/SellerForm.js
merlox/dapp-transactions
import React from 'react' import './../stylus/index.styl' class SellerForm extends React.Component { constructor(props){ super(props) } handleSubmitForm(event){ event.preventDefault() const data = { sellerGpsLocation: this.refs['seller-gps-location'].value, sellerVatNumbe...
src/counter.js
giltayar/react-starter-pack
import {Component} from 'react'; import React from 'react'; export default class Counter extends Component { constructor() { super() this.state = {counter: 0}; } render() { return ( <div> <div onClick={(() => this.setState({counter: this.state.counter - 3})).bind(this)}>-</div> ...
js/src/dapps/githubhint.js
kushti/mpt
// Copyright 2015, 2016 Ethcore (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version....
pages/_document.js
tgrecojs/tgrecojs-static
// @flow import React from 'react'; import Document, { Head, Main, NextScript } from 'next/document'; import { ServerStyleSheet } from 'styled-components'; import styledNormalize from 'styled-normalize'; export default class MyDocument extends Document { render() { const sheet = new ServerStyleSheet(); cons...
src/v0/demo/react-native-indicator/index.js
huanganqi/wsapp
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, } from 'react-native'; import { TextLoader, PulseLoader, DotsLoader, BubblesLoader, CirclesLoader, BreathingLoader, RippleLoader, LinesLoader, MusicBarLoader, EatBeanLoader, Double...
examples/todomvc/index.js
dmin/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; import 'todomvc-app-css/index.css'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} ...
fields/types/datearray/DateArrayField.js
sendyhalim/keystone
import ArrayFieldMixin from '../../mixins/ArrayField'; import DateInput from '../../components/DateInput'; import Field from '../Field'; import React from 'react'; import moment from 'moment'; const DEFAULT_INPUT_FORMAT = 'YYYY-MM-DD'; const DEFAULT_FORMAT_STRING = 'Do MMM YYYY'; module.exports = Field.create({ dis...
src/components/blog/routes/PostEdit.js
sivael/simpleBlogThingie
import React from 'react' import PostEdit from 'containers/blog/PostEdit' export default class PostEditFromRouter extends React.Component { render() { return( <PostEdit id={this.props.params.id} /> ) } }
client/modules/MenuNews/components/MenuNewsNavBar/MenuNewsNavBar.js
lordknight1904/bigvnadmin
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Navbar, Nav, NavItem, MenuItem, Pagination, FormControl, Button } from 'react-bootstrap'; import { fetchMenuNews, setCurrentPage } from '../../MenuNewsActions'; import { getCurrentPage, getMenuN...
src/components/Scheduler/Days/Views/Mobile/tpl.js
HopeUA/tv.hope.ua-react
import React from 'react'; import cx from 'classnames'; import Styles from './Styles/main.scss'; export default function Common() { const dayClasses = cx({ [Styles.active]: true, [Styles.day]: true }); const dateClasses = cx({ [Styles.date]: true, [Styles.toDay]: true ...
app/src/components/Header/index.js
civa86/web-synth
import React from 'react'; import { ActionHandler } from '../../components/ActionHandler'; import icon from '../../../img/icon.png'; const Header = (props) => { const { height, repoUrl, libVersion, actions, linkMode, visiblePanel, numSelectedNodes, ...
src/components/Main.js
univa-new-user/my-app
require('normalize.css'); require('styles/App.css'); import React from 'react'; let yeomanImage = require('../images/yeoman.png'); const colors = ['red', 'white', 'green', 'black', 'gray']; let currentIndex = 0; function nextColor() { let color = colors[currentIndex % colors.length]; currentIndex++; return co...
src/svg-icons/av/recent-actors.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvRecentActors = (props) => ( <SvgIcon {...props}> <path d="M21 5v14h2V5h-2zm-4 14h2V5h-2v14zM14 5H2c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zM8 7.75c1.24 0 2.25 1.01 2.25 2.25S9....
src/server.js
Restry/vendornew
import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; import httpProxy from 'http-proxy'; import path from 'path'; import createStore from './redux/create'; import ApiC...
docs/src/app/components/pages/components/DropDownMenu/ExampleLabeled.js
ngbrown/material-ui
import React from 'react'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem'; export default class DropDownMenuLabeledExample extends React.Component { constructor(props) { super(props); this.state = {value: 2}; } handleChange = (event, index, value) => th...
src/svg-icons/action/view-carousel.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewCarousel = (props) => ( <SvgIcon {...props}> <path d="M7 19h10V4H7v15zm-5-2h4V6H2v11zM18 6v11h4V6h-4z"/> </SvgIcon> ); ActionViewCarousel = pure(ActionViewCarousel); ActionViewCarousel.displayName =...
src/components/views/author-user-list-view.js
HuangXingBin/goldenEast
import React from 'react'; import { Table, Button, Popconfirm } from 'antd'; import weiGuDong from '../../appConstants/assets/images/微股东.png'; import normalCard from '../../appConstants/assets/images/普卡.png'; import silverCard from '../../appConstants/assets/images/银卡.png'; import goldenCard from '../../appConstants/as...
src/Parser/Druid/Balance/Modules/Items/Tier21_4set.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import Combatants from 'Parser/Core/Modules/Combatants'; import Analyzer from 'Parser/Core/Analyzer'; import getDamageBonus from 'Parser/Mage/Shared/Modules/GetDamageBonus';...
src/components/played_cards.js
camboio/yooneau
import React from 'react'; import Card from './card'; export default class PlayedCards extends React.Component{ displayPlayedCards(){ let pc = [...this.props.cards]; pc.reverse(); const cards = pc.map((card, index) => <Card key={index} card={card} />); const amount = cards.length > 5 ? 5 : ...
src/client/pages/app/CBlocksAppBar.js
doemski/cblocks
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import AppBar from '@material-ui/core/AppBar'; import Toolbar from '@material-ui/core/Toolbar'; import Typography from '@material-ui/core/Typography'; import IconButton from '@material-ui/core/IconButt...
docs/src/app/components/pages/components/Snackbar/Page.js
kittyjumbalaya/material-components-web
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import SnackbarReadmeText from './README'; import SnackbarExampleSimple from './...
tests/lib/rules/vars-on-top.js
Akkuma/eslint
/** * @fileoverview Tests for vars-on-top rule. * @author Danny Fritz * @author Gyandeep Singh * @copyright 2014 Danny Fritz. All rights reserved. * @copyright 2014 Gyandeep Singh. All rights reserved. */ "use strict"; //------------------------------------------------------------------------------ // Requiremen...
src/svg-icons/action/alarm-on.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAlarmOn = (props) => ( <SvgIcon {...props}> <path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.0...
examples/js/selection/all-select.js
AllenFang/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-alert: 0 */ /* eslint guard-for-in: 0 */ /* eslint no-console: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i <...
src/client/components/search/GridSelectionActions.js
gearz-lab/hypersonic
import React from 'react'; import clone from 'clone'; import {ButtonGroup, Button, DropdownButton, MenuItem} from 'react-bootstrap'; import _ from 'underscore'; export default React.createClass({ propTypes: { selection: React.PropTypes.object, rows: React.PropTypes.array, handleSelectionC...
thingmenn-frontend/src/components/mp-details/index.js
baering/thingmenn
import React from 'react' import mpService from '../../services/mp-service' import totalsService from '../../services/totals-service' import mpSummaryService from '../../services/mp-summary-service' import KPI from '../../widgets/key-performance-indicator' import Topics from '../../widgets/topics' import Topic from '...
src/client/story_list.js
kevinnguy/hacker-menu
import React from 'react' import Story from './story.js' import _ from 'lodash' export default class StoryList extends React.Component { render () { var onUrlClick = this.props.onUrlClick var onMarkAsRead = this.props.onMarkAsRead var storyNodes = _.map(this.props.stories, function (story, index) { ...
src/js/components/breadcrumb.js
mdibaiee/Hawk
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { connect } from 'react-redux'; import changedir from 'actions/changedir'; import { bind } from 'store'; import Hammer from 'react-hammerjs'; @connect(props) export default class Breadcrumb extends Component { render() { let els =...
src/svg-icons/image/brush.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrush = (props) => ( <SvgIcon {...props}> <path d="M7 14c-1.66 0-3 1.34-3 3 0 1.31-1.16 2-2 2 .92 1.22 2.49 2 4 2 2.21 0 4-1.79 4-4 0-1.66-1.34-3-3-3zm13.71-9.37l-1.34-1.34c-.39-.39-1.02-.39-1.41 0L9 12.25...
local-cli/server/middleware/heapCapture/src/heapCapture.js
satya164/react-native
/** * Copyright (c) 2016-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. */ 'use strict...
lib/components/Spinner.js
gramakri/filepizza
import React from 'react' import classnames from 'classnames' import { formatSize } from '../util' export default class Spinner extends React.Component { render() { const classes = classnames('spinner', { 'spinner-animated': this.props.animated }) return <div className={classes}> <div clas...
Console/app/node_modules/rc-table/es/ColumnManager.js
RisenEsports/RisenEsports.github.io
import _toConsumableArray from 'babel-runtime/helpers/toConsumableArray'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import React from 'react'; var ColumnManager = function () { ...
app/routes.js
rfarine/ArtistRanking
import React from 'react'; import {Route} from 'react-router'; import App from './components/App'; import Home from './components/Home'; import AddArtist from './components/AddArtist'; export default ( <Route handler={App}> <Route path='/' handler={Home} /> <Route path='/add' handler={AddArtist} /> </Route...
cpat-client/src/components/target-types/person/forms/form-arrays/PersonOrganizationsFormArray.js
meddlin/CPAT
import React from 'react'; import { withFormik, Form, FieldArray } from 'formik'; import { Button, TextInput, Heading } from 'evergreen-ui'; import { validations } from '../../../../../data/form-helpers/formArray-property-validation'; import styled from 'styled-components'; export const PersonOrganizationsFormArray = ...
examples/components/Input.js
yesmeck/formsy-react
import React from 'react'; import Formsy from 'formsy-react'; const MyInput = React.createClass({ // Add the Formsy Mixin mixins: [Formsy.Mixin], // setValue() will set the value of the component, which in // turn will validate it and the rest of the form changeValue(event) { this.setValue(event.curren...
app/components/AddQuestion.js
jayteesanchez/project-4
import React from 'react'; import AddQuestionStore from '../stores/AddQuestionStore'; import AddQuestionActions from '../actions/AddQuestionActions'; class AddQuestion extends React.Component { constructor(props) { super(props); this.state = AddQuestionStore.getState(); this.onChange = this.onChange.bind...
src/components/Login/LoginButton.js
niekert/soundify
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import SoundcloudLogo from 'components/TopBar/SoundCloudLogo'; import styled from 'styled-components'; const Button = styled.button` background: #ff7700; color: white; cursor: pointer; padding: 5px 15px; margin: 0 auto; border-ra...
src/components/Result/Result.js
GovWizely/trade-event-search-app
import React from 'react'; import PropTypes from 'prop-types'; import { map } from 'lodash'; import Item from './SimpleCard'; import './Result.scss'; const Result = ({ results }) => { if (results.isFetching) return null; const items = map(results.items, result => ( <Item key={result.id} result={result} /> )...
src/Containers/Logout.js
mad-pirate/dashboard-example-frontend
import React from 'react'; import LogoutLink from '../Components/Layouts/Shared/LogoutLink'; /** Storage */ import Store from '../Controll/Store'; import * as Actions from '../Controll/Actions/Authorization'; class Logout extends React.Component { onClick(event) { event.preventDefault(); Store.d...
src/svg-icons/maps/local-florist.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalFlorist = (props) => ( <SvgIcon {...props}> <path d="M12 22c4.97 0 9-4.03 9-9-4.97 0-9 4.03-9 9zM5.6 10.25c0 1.38 1.12 2.5 2.5 2.5.53 0 1.01-.16 1.42-.44l-.02.19c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2....
src/parser/monk/brewmaster/modules/spells/CelestialFortune.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import StatTracker from 'parser/shared/modules/StatTracker'; import Combatants from 'parser/shared/modules/Combatants'; import StatisticBox from 'interface/others/StatisticBox'; import SPELLS from 'common/SPELLS'; import SPECS from 'game/SPECS'; im...
ReactJS/class-2017-11-19/my-app/src/index.js
tahashahid/cloud-computing-2017
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; // import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App data1="hello" />, document.getElementById('root')); // registerServiceWorker(); // import React from 'react'; // import Re...
src/native/app/Header.js
reedlaw/read-it
// @flow import type { State } from '../../common/types'; import Icon from 'react-native-vector-icons/Ionicons'; import React from 'react'; import color from 'color'; import { Box, Button, Text } from '../../common/components'; import { Platform, StyleSheet } from 'react-native'; import { appShowMenu } from '../../comm...
packages/react-devtools-shared/src/devtools/views/Button.js
Simek/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'; import Tooltip from '@reach/tooltip'; import styles from './Button.css'; import tooltipSty...
app/modules/layout/components/Footer/index.js
anton-drobot/frontend-starter
import React, { Component } from 'react'; import { observer } from 'mobx-react'; import { bem } from 'app/libs/bem'; import Copyright from 'app/modules/layout/components/Copyright'; const b = bem('Footer'); @observer export default class Footer extends Component { render() { return ( <footer...
src/components/PartiesPage/PartiesPage.js
cbellino/roster
import React, { Component } from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './PartiesPage.scss'; import PartyListContainer from '../../containers/PartyListContainer/PartyListContainer'; const PartiesPage = () => ( <div className={s.root}> <PartyListContainer /> </...
packages/node_modules/@ciscospark/react-component-avatar/src/index.js
bzang/react-ciscospark
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Icon, {ICON_TYPE_MESSAGE} from '@ciscospark/react-component-icon'; import styles from './styles.css'; function Avatar({baseColor, name, image, isSelfAvatar, size}) { let avatarClass, avatarContents; let backg...
src/parser/shaman/restoration/modules/talents/Torrent.js
FaideWW/WoWAnalyzer
import React from 'react'; import SpellLink from 'common/SpellLink'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import calculateEffectiveHealing from 'parser/core/calculateEffectiveHealing'; import StatisticListBoxItem from 'inter...
client/components/GalleryComponent.js
spectralsun/reactgur
import React from 'react'; import {Glyphicon} from 'react-bootstrap'; import xhttp from 'xhttp'; import MediaComponent from './../components/MediaComponent.js'; import ee from '../Emitter.js'; import Scroll from '../Scroll.js'; export default class GalleryComponent extends React.Component { constructor(props) ...
src/js/components/LocationListItem.js
grommet/grommet-people-finder
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React from 'react'; import PropTypes from 'prop-types'; import ListItem from 'grommet/components/ListItem'; import config from '../config'; const LocationListItem = (props) => { const { item } = props; return ( <ListItem justify...
src/containers/header/Header.js
Gullskatten/react-seating-map-webapp
import './Header.css'; import React, { Component } from 'react'; import Title from '../../components/title/Title'; import FontAwesome from 'react-fontawesome'; import Modal from '../../components/modal/Modal'; import { UrlAddTeam, UrlAddFloor } from '../constants/UrlConstants'; import axios from 'axios'; import { injec...
fixtures/packaging/systemjs-builder/prod/input.js
chicoxyzzy/react
import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( React.createElement('h1', null, 'Hello World!'), document.getElementById('container') );
node_modules/lite-server/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
ghanvatpriyanka/angular2demo
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/components/dialog/demos/FullWidthActions.js
isogon/styled-mdl
import React from 'react' import { withStateHandlers } from 'recompose' import { Dialog, DialogTitle, DialogActions, DialogContent, Button, } from '../../../' const mdSpecLink = 'https://www.google.com/design/spec/components/dialogs.html#dialogs-specs' export default withStateHandlers( { isShowingDialog...
demo/components/confirmation/ConfirmationDemo.js
f0zze/rosemary-ui
import DemoWithSnippet from '../../../demo/layout/DemoWithSnippet'; import Confirmation from '../../../src/components/Confirmation'; import React from 'react'; export default class ConfirmationDemo extends React.Component { constructor(props) { super(props); this.state = { open: false ...
packages/zensroom/lib/components/reviews/ReviewsList.js
SachaG/Zensroom
/* List of reviews, wrapped with withList http://docs.vulcanjs.org/data-loading.html#List-Resolver */ import React from 'react'; import { Components, registerComponent, withList, withCurrentUser, Loading } from 'meteor/vulcan:core'; import { FormattedMessage } from 'meteor/vulcan:i18n'; import Reviews from '../../...