path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
boxroom/archive/backup-js-surface-2018-01-28/boxroom/archive/2018-01-21/src/main/js-surface-react-native.js
js-works/js-surface
import adaptComponentClass from './adaption/adaptComponentClass'; import adaptReactifiedDefineComponent from './adaption/adaptReactifiedDefineComponent'; import Config from './config/Config'; import ElementInspector from './helper/ElementInspector'; import React from 'react'; import ReactNative from 'react-native'; c...
src/components/Direction.js
paulhoughton/remember
import React from 'react'; import PropTypes from 'prop-types'; import { getDegrees } from '../helpers/geo'; import { Icon } from 'react-mdl'; const Direction = ({ geo, longitude, latitude, dist }) => { if (!geo || !geo.latitude) return <div/>; if (dist < 0.02) return <Icon name="star" />; const deg =...
components/SessionList.js
sunday-school/sundayschool.rocks
import R from 'ramda' import React from 'react' import Link from 'next/link' import ReversibleList from './ReversibleList' const SessionLink = ({date, theme}) => <Link href={`sessions?date=${date}`}> <a><small>{date}:</small> <em>{theme}</em></a> </Link> const SessionList = ({sessions}) => R.pipe( R.keys, ...
src/client/story_list.js
2braincells2go/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/components/Footer.js
RicardoG2016/WRFD-project-site
import React, { Component } from 'react'; import '../App.css'; import insta from '../images/logos/instagram.png'; import fb from '../images/logos/fb.png'; import tw from '../images/logos/twitter.png'; import yt from '../images/logos/youtube.png'; class Footer extends Component { render() { return ( <foot...
app/containers/NotFoundPage/index.js
kaizen7-nz/gold-star-chart
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route */ import React from 'react'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; import messages from './messages'; export default function NotFound() { return ( <article> ...
src/entypo/Download.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Download'; let EntypoDownload = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M15,7h-3V1H8v6H5l5,5L15,7z M19.338,13.532c-0.21-0.224-1.611-1.723-2.011-2.114C17.062,11.159,16.68...
src/App.js
D-TUCKER/react-fartscroll
import React from 'react'; import logo from './logo.svg'; import './App.css'; import FartScroll from './fart-scroll/FartScroll' function App() { return ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <p> Edit <code>src/App...
frontend/src/lib/mui-components/ComboboxDialog/components/ListVirtualized.js
jf248/scrape-the-plate
import React from 'react'; import classnames from 'classnames'; import * as Mui from '@material-ui/core'; import * as Virtualized from 'react-virtualized'; import StickyList from 'lib/react-virtualized-sticky-list'; import ListItem from './ListItem'; const styles = theme => ({ root: { backgroundColor: theme.pa...
src/components/Games.js
bplabombarda/3on3bot.com
import React, { Component } from 'react'; import Game from './Game'; require('../styles/Games.scss'); export default class Games extends Component { render() { return ( <ul className="gamesList"> {this.props.games.map((game, i) => { return <Game key={game.gamePk} game={game} handleSelect...
client/app/components/H2/index.js
jjt/ffsssshh
import React from 'react'; import styles from './styles.css'; class H2 extends React.Component { render() { return ( <h2 className={ this.props.className || styles.heading2 }>{ this.props.children }</h2> ); } } export default H2;
docs/index.js
lzcmaro/react-bootstrap-datatable
import React from 'react'; import { render } from 'react-dom'; import DataViewExample from './src/DataViewExample'; render(<DataViewExample />, document.getElementById('root'));
client/components/Settings/Email.js
yacoma/auth-boilerplate
import React from 'react' import { connect } from '@cerebral/react' import { state, signal } from 'cerebral/tags' import { Grid, Header, Form, Segment, Button, Dimmer, Message, Loader, List, } from 'semantic-ui-react' import { PasswordField, EmailField } from '../fields' export default connect( { ...
client-portal/src/components/Body/ScrapeStatus/index.js
choiboi/web-scraper-architecture
import React, { Component } from 'react'; import classnames from 'classnames'; import ReactBootstrapTable from '../Table/ReactBootstrapTable'; class ScrapeStatus extends Component { render() { const { className, ...props } = this.props; return ( <div className={classnames('body', className)} ...
webpack/scenes/ContentViews/Table/tableDataGenerator.js
Katello/katello
import React from 'react'; import { fitContent, expandable, sortable } from '@patternfly/react-table'; import { Link } from 'react-router-dom'; import { urlBuilder } from 'foremanReact/common/urlHelpers'; import { translate as __ } from 'foremanReact/common/I18n'; import LongDateTime from 'foremanReact/components/commo...
src/views/Item/ItemImage.js
jcarbo/stardust
import React from 'react' import { getElementType, getUnhandledProps, META, } from '../../lib' import Image from '../../elements/Image/Image' /** * An item can contain an image * */ function ItemImage(props) { const ElementType = getElementType(ItemImage, props) const rest = getUnhandledProps(ItemImage, pr...
src/icons/GearB.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class GearB extends React.Component { render() { if(this.props.bare) { return <g> <path d="M448,294.4v-76.8h-42.8c-3.4-14.4-8.9-28-16.1-40.5l29.8-29.7l-54.3-54.3l-29.1,29.1c-12.6-7.7-26.4-13.5-41.1-17.3V64 h-76.8v...
ui/internals/templates/containers/LanguageProvider/index.js
StamusNetworks/scirius
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'...
source/containers/App/Header/AccountMenu.js
mikey1384/twin-kle
import PropTypes from 'prop-types'; import React from 'react'; import Button from 'components/Button'; import DropdownButton from 'components/Buttons/DropdownButton'; import { openSigninModal } from 'redux/actions/UserActions'; import { connect } from 'react-redux'; AccountMenu.propTypes = { buttonStyle: PropTypes.o...
react_ref/RefTest.js
devSC/react-native
/** * Created by Wilson on 2017/6/29. */ import React, { Component } from 'react'; import { View, Text, Image } from 'react-native'; export default class RefTest extends Component { state = { size: 80 } getSize() { return this.state.size } render() { return <...
lib/Indicator.js
moschan/react-native-pull-to-refresh
'use strict' import Style from './Style' import React from 'react' import PropTypes from 'prop-types' import { View, ActivityIndicator, Image } from 'react-native' export default class Indicator extends React.Component { render () { var display_object = '' if (this.props.needPull) { display_obje...
JS Web/ReactJS/Final Project/zoo-market/src/components/postComponents/Post.js
mitaka00/SoftUni
import React, { Component } from 'react'; import { Link } from 'react-router-dom' class Post extends Component{ constructor(props){ super(props) this.state={ role:'' } this.addAdminBtn=()=>{ if(this.state.role==='admin' || localStorage.getItem('username')=...
admin/client/components/ItemsTableValue.js
kumo/keystone
import blacklist from 'blacklist'; import classnames from 'classnames'; import React from 'react'; var ItemsTableValue = React.createClass({ displayName: 'ItemsTableValue', propTypes: { className: React.PropTypes.string, exterior: React.PropTypes.bool, field: React.PropTypes.string, href: React.PropTypes.str...
information/blendle-frontend-react-source/app/components/moduleNavigation/NavOthersItem.js
BramscoChill/BlendleParser
import React from 'react'; import createReactClass from 'create-react-class'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import DropdownMixin from 'components/mixins/DropdownMixin'; function getNumberOfColumns(numberOfItems) { const itemHeight = 42; const availableSpace = window.inner...
views/invocation.js
bestwpw/black-screen
import React from 'react'; import Prompt from './prompt'; export default React.createClass({ componentWillMount() { this.props.invocation .on('data', _ => this.setState({canBeDecorated: this.props.invocation.canBeDecorated()})) .on('status', status => this.setState({status: status})...
app/javascript/mastodon/components/loading_indicator.js
kirakiratter/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; const LoadingIndicator = () => ( <div className='loading-indicator'> <div className='loading-indicator__figure' /> <FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' /> </div> ); export default LoadingIndicat...
src/components/ProposalInput/OptionInput.js
nambawan/g-old
import React from 'react'; import PropTypes from 'prop-types'; import Button from '../Button'; import Box from '../Box'; import CheckBox from '../CheckBox'; import PollOptionPreview from './PollOptionPreview'; import FormValidation from '../FormValidation'; import ProposalBody from './ProposalBody'; const validateOpt...
src/components/ui/navigator/index.js
boxal/boxal
import React from 'react'; function Navigator({ children }) { return ( <nav className="flex items-center p1 bg-white border-bottom"> {children} </nav> ); } Navigator.propTypes = { children: React.PropTypes.node, }; export default Navigator;
packages/icons/src/md/maps/LocalActivity.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdLocalActivity(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M40 24c0 2.21 1.79 4 4 4v8c0 2.21-1.79 4-4 4H8c-2.21 0-4-1.79-4-4l.01-8C6.21 28 8 26.21 8 24c0-2.2-1.78-3.99-3.99-4l.01-8c0-2.21 1.77-4 3.98-4h...
docs/src/app/components/pages/components/Divider/ExampleForm.js
w01fgang/material-ui
import React from 'react'; import Divider from 'material-ui/Divider'; import Paper from 'material-ui/Paper'; import TextField from 'material-ui/TextField'; const style = { marginLeft: 20, }; const DividerExampleForm = () => ( <Paper zDepth={2}> <TextField hintText="First name" style={style} underlineShow={fal...
src/components/Layout/Header.js
RyszardRzepa/React-Redux-Firebase-Boilerplate
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React, { Component }...
src/snack-overflow/emcit/client/desktop/src/routes/index.js
civiclee/Hack4Cause2017
import React from 'react'; import { connect } from 'react-redux'; import Chrome from 'c/chrome'; import Splash from 'c/splash'; import LoginPage from 'common/components/views/LoginPage' import ReportTablePage from 'c/views/analyze/ReportTablePage' import ReportMapPage from 'c/views/analyze/ReportMapPage' import Report...
src/js/app.js
akornatskyy/sample-blog-react-redux
import React from 'react'; import ReactDOM from 'react-dom'; import {createStore, compose, applyMiddleware} from 'redux'; import {createHashHistory as createHistory} from 'history'; import {routerMiddleware, ConnectedRouter} from 'connected-react-router'; import {Provider} from 'react-redux'; import thunk from 'redux-t...
src/entypo/ControllerVolume.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--ControllerVolume'; let EntypoControllerVolume = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M19,13.805C19,14.462,18.462,15,17.805,15H1.533c-0.88,0-0.982-0.371-0.229-0.822l16...
src/components/Chip.js
MichelML/masaq.com
import React from 'react'; const Chip = (props) => { const shouldRender = (props.typeOfChips) ? true : false; if (!shouldRender) { return null; } const classes = `md-chip ${props.extraClasses || ""}`; return ( <div className={classes}> <span className="md-chip-text">{props...
packages/showcase/treemap/dynamic-treemap.js
uber-common/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
src/containers/About/About.js
TackleboxBeta/betabox-seed
import React, { Component } from 'react'; import Helmet from 'react-helmet'; import MiniInfoBar from 'components/MiniInfoBar/MiniInfoBar'; import { isLoaded as isInfoLoaded, load as loadInfo } from 'redux/modules/info'; import { asyncConnect } from 'redux-connect'; @asyncConnect([{ promise: ({ store: { dispatch, get...
src/helpers/universalRouter.js
jxzly229190/react-redux-universal-hot-example
import React from 'react'; import Router from 'react-router'; import createRoutes from '../routes'; import {Provider} from 'react-redux'; const getFetchData = (component = {}) => { return component.WrappedComponent ? getFetchData(component.WrappedComponent) : component.fetchData; }; export function createTr...
docs/src/ComponentsPage.js
jesenko/react-bootstrap
import React from 'react'; import AutoAffix from 'react-overlays/lib/AutoAffix'; import Nav from '../../src/Nav'; import NavItem from '../../src/NavItem'; import Anchor from './Anchor'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; import SubNav from '....
src/index.js
cungen/www
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, hashHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import injectTapEventPlugin from 'react-tap-event-plugin'; import configureStore from './store/configureS...
client/index.js
SanderSijbrandij/slimpoll
import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import store, { history } from './store' import { Router, Route, IndexRoute } from 'react-router' import injectTapEventPlugin from 'react-tap-event-plugin' import App from './App' import Home from './components/generic/...
src/Demo.js
touqeerkhan11/react-portal-example
import React, { Component } from 'react'; import Modal from './Modal' class Demo extends Component { constructor(props) { super(props); this.state = { open: false } } componentWillMount() {} componentWillUnmount() {} toggleModal = () => { this.setState((pre...
node_modules/react-native/Libraries/Image/ImageBackground.js
vinicius-ov/Livefy
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
node_modules/react-bootstrap/es/Breadcrumb.js
Technaesthetic/ua-tools
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 ...
loc8-react-redux-front-end/src/components/Home/Tags.js
uberslackin/django-redux-loc8-ARweb
import React from 'react'; import agent from '../../agent'; const Tags = props => { const tags = props.tags; if (tags) { return ( <div className="tag-list"> { tags.map(tag => { const handleClick = ev => { ev.preventDefault(); props.onClickTag(tag,...
admin/client/App/shared/Popout/PopoutFooter.js
matthewstyers/keystone
/** * Render a footer for a popout */ import React from 'react'; const BUTTON_BASE_CLASSNAME = 'Popout__footer__button Popout__footer__button--'; const PopoutFooter = React.createClass({ displayName: 'PopoutFooter', propTypes: { children: React.PropTypes.node, primaryButtonAction: React.PropTypes.func, pri...
src/components/modal.js
thbgh/antdPro
/** * @Author: THB * @Date: 2017-07-27 16:33:12 PM Thursday * @Email: thbwork2016@gmail.com * @Filename: modal.js * @Last modified by: THB * @Last modified time: 2017-08-28 13:44:08 PM Monday */ import React from 'react'; import { Modal, Button } from 'antd'; export default class extends React.Component {...
docs/src/components/code.js
adrianleb/nuclear-js
import React from 'react' import { PrismCode } from 'react-prism' export default React.createClass({ render() { var languageClass = 'language-' + this.props.lang return ( <div className="highlighted-code"> <pre className={languageClass}> <PrismCode className={languageClass} async={fal...
docs/src/app/components/pages/components/IconMenu/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 iconMenuReadmeText from './README'; import IconMenuExampleSimple from './...
ajax/libs/react-instantsearch/4.0.0-beta.4/Dom.js
pvnr0082t/cdnjs
/*! ReactInstantSearch 4.0.0-beta.4 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof def...
src/js/components/header/deploymentnotifications.js
michaelatmender/gui
import React from 'react'; import { Link } from 'react-router-dom'; // material ui import RefreshIcon from '@mui/icons-material/Refresh'; import { colors } from '../../themes/Mender'; const style = { color: colors.grey, margin: '0 7px 0 10px', top: '5px', fontSize: '20px' }; const DeploymentNotifications = props => ...
src/js/admin/articles/filters/filter-item/filter-item-label.js
ucev/blog
import React from 'react' import './filter-item.style.scss' export default ({ title = '' }) => ( <label className="table-filter-item-label">{title}</label> )
app/javascript/mastodon/components/attachment_list.js
mosaxiv/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; const filename = url => url.split('/').pop().split('#')[0].split('?')[0]; export default class AttachmentList extends Immutabl...
webapp/app/components/ButtonPopover/index.js
EIP-SAM/SAM-Solution-Node-js
// // Button with popover // import React from 'react'; import { Glyphicon, Button, OverlayTrigger, Popover } from 'react-bootstrap'; import { LinkContainer } from 'react-router-bootstrap'; import styles from './styles.css'; /* eslint-disable react/prefer-stateless-function */ export default class ButtonPopover exten...
app/routes.js
hlex/vms
/* eslint flowtype-errors/show-errors: 0 */ import React from 'react'; import { Switch, Route } from 'react-router'; // ====================================================== // Containers // ====================================================== import App from './containers/App'; import HomePage from './containers/Ho...
src/client/components/Button/Button.stories.js
jahe/jahe-react-starter
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { text, select } from '@kadira/storybook-addon-knobs'; import Button from './Button'; const types = { '': '', primary: 'primary', disabled: 'disabled' }; storiesOf('Components', module).addWithInfo( 'Button with Info', ...
src/util/default-component/index.js
aruberto/react-foundation-components
import React from 'react'; import elementType from 'prop-types-extra/lib/elementType'; export const DefaultComponent = ({ componentClass: ComponentClass, ...restProps, }) => <ComponentClass {...restProps} />; DefaultComponent.propTypes = { componentClass: elementType, }; DefaultComponent.defaultProps = { comp...
src/svg-icons/av/videocam.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVideocam = (props) => ( <SvgIcon {...props}> <path d="M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z"/> </SvgIcon> ); AvVideocam = pure(AvVideocam); Av...
src/mui/list/DatagridHeaderCell.js
matteolc/admin-on-rest
import React from 'react'; import PropTypes from 'prop-types'; import defaultsDeep from 'lodash.defaultsdeep'; import shouldUpdate from 'recompose/shouldUpdate'; import { TableHeaderColumn } from 'material-ui/Table'; import FlatButton from 'material-ui/FlatButton'; import ContentSort from 'material-ui/svg-icons/content...
src/main.js
the-simian/reforged-prepack
import './assets/css/flexboxgrid.css'; import './assets/css/font-awesome.css'; import './assets/css/main.css'; import injectTapEventPlugin from "react-tap-event-plugin"; injectTapEventPlugin(); import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import getRoutes from '...
node_modules/react-bootstrap/es/ModalHeader.js
saltypaul/SnipTodo
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 ...
examples/js/column-filter/number-filter.js
rolandsusans/react-bootstrap-table
/* eslint max-len: 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 < quantity; i++) { const id = startId + i; products.push({ id: id, ...
src/components/Entry/DomainArchitectures/IDAResults.js
ProteinsWebTeam/interpro7-client
// @flow import React from 'react'; import T from 'prop-types'; import { createSelector } from 'reselect'; import { connect } from 'react-redux'; import { toggleAccessionDBForIDA } from 'actions/creators'; import { format } from 'url'; import descriptionToPath from 'utils/processDescription/descriptionToPath'; impor...
src/components/Header.js
goblinbr/manager-react-native-app
import React from 'react'; import { Text, View } from 'react-native'; import styles from './styles'; const Header = (props) => ( <View style={styles.headerView}> <Text style={styles.headerText}>{props.text}</Text> </View> ); export { Header };
src/js/components/_registerFields/OrientationField.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import translate from '../../i18n/Translate'; import LoginActionCreators from '../../actions/LoginActionCreators'; import * as UserActionCreators from '../../actions/UserActionCreators'; @translate('OrientationField') export default class Or...
src/Native/NativeOverlayResizeMode.js
infinitered/reactotron
import React from 'react' import PropTypes from 'prop-types' import Colors from '../Theme/Colors' const Styles = { container: {}, row: { display: 'flex', flexDirection: 'row' }, button: { height: 30, width: 75, fontSize: 13, marginRight: 4, backgroundColor: Colors.subtleLine, bo...
js/components/splashscreen/index.js
amandamfielding/Coffee-Shop-Mobile
import React, { Component } from 'react'; import { Image } from 'react-native'; const launchscreen = require('../../../images/beans2.jpg'); export default class SplashPage extends Component { static propTypes = { navigator: React.PropTypes.shape({}), } componentWillMount() { const navigator = this.pr...
demo/slider/slider.js
Graf009/react-mdl
import React from 'react'; import ReactDOM from 'react-dom'; import Slider from '../../src/Slider'; function linkToState(target, property) { return event => { target.setState({ [property]: event.target.value }); }; } class Demo extends React.Component { constructor(props) { ...
app/components/Roll.js
mzanini/DeeMemory
import React from 'react' import PropTypes from 'prop-types' import { withStyles } from '@material-ui/core/styles' import Radio from '@material-ui/core/Radio' import RadioGroup from '@material-ui/core/RadioGroup' import TextField from '@material-ui/core/TextField' import FormControlLabel from '@material-ui/core/FormCon...
src/components/Feed/index.js
RayBenefield/halo-forge
import map from 'lodash/map'; import values from 'lodash/values'; import React from 'react'; import classes from 'classnames'; import ReactTransitionGroup from 'react-addons-transition-group'; import Post from 'src/components/Post'; import NewsCard from 'src/components/Cards/news-card'; import equip from './equip'; co...
components/Form/Input/Input.story.js
NGMarmaduke/bloom
import React from 'react'; import { storiesOf, action } from '@storybook/react'; import { withKnobs, boolean, select } from '@storybook/addon-knobs'; import Input from './Input'; const stories = storiesOf('FormComponents', module); stories.addDecorator(withKnobs); const inputTypes = [ 'text', 'email', 'password...
rating/components/ImageComponent.js
kuip/meteor-packs
import React from 'react'; import './ImageComponent.css'; const ImageComponent = React.createClass({ render() { return React.createElement( "img", { className: this.props.className, src: this.props.src, alt: "Image" //width: '100%', //height: '80%' }); } }); ...
src/containers/organizations/components/DropdownListGroup.js
kryptnostic/gallery
import React from 'react'; import Immutable from 'immutable'; import PropTypes from 'prop-types'; import Select from 'react-select'; import styles from './styles.css'; import StyledFlexContainerStacked from '../../../components/flex/StyledFlexContainerStacked'; import { AddButton, RemoveButton, StyledElement, ...
packages/wix-style-react/src/Page/test/examples/SomeTailComponent.js
wix/wix-style-react
import React from 'react'; import { Tabs } from 'wix-style-react'; const SomeTailComponent = () => ( <Tabs activeId={'1'} hasDivider={false} items={[1, 2, 3].map(i => ({ id: `${i}`, title: `#${i} item` }))} /> ); export default SomeTailComponent;
src/Modal.js
lzcmaro/react-ratchet
import React from 'react'; import BaseModal from './BaseModal'; import Fade from './Fade'; import ModalHeader from './ModalHeader'; import NavTitle from './NavTitle'; import ModalBody from './ModalBody'; import classnames from 'classnames'; import ratchetUtils from './utils/ratchetUtils'; let Modal = React.createCla...
src/Parser/VengeanceDemonHunter/Modules/PainChart/Pain.js
mwwscott0/WoWAnalyzer
// Based on Main/Mana.js import React from 'react'; import PropTypes from 'prop-types'; import ChartistGraph from 'react-chartist'; import Chartist from 'chartist'; import 'chartist-plugin-legend'; import makeWclUrl from 'common/makeWclUrl'; import SPELLS from 'common/SPELLS'; import specialEventIndicators from 'Ma...
packages/material-ui-icons/src/KeyboardBackspace.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M21 11H6.83l3.58-3.59L9 6l-6 6 6 6 1.41-1.41L6.83 13H21z" /></g> , 'KeyboardBackspace');
src/icons/FormatSizeIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class FormatSizeIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M18 8v6h10v24h6V14h10V8H18zM6 24h6v14h6V24h6v-6H6v6z"/></svg>;} };
src/svg-icons/action/exit-to-app.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionExitToApp = (props) => ( <SvgIcon {...props}> <path d="M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c...
app/javascript/mastodon/features/notifications/components/notification.js
hugogameiro/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import StatusContainer from '../../../containers/status_container'; import AccountContainer from '../../../containers/account_container'; import { injectIntl, FormattedMessage } from 'react-intl'; ...
src/common/containers/build-details.js
canonical-websites/build.snapcraft.io
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import BuildsList from '../components/builds-list'; import BuildLog from '../components/build-log'; import { HelpBox, HelpInstallSnap, HelpPromoteSnap } from '.....
src/svg-icons/action/https.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHttps = (props) => ( <SvgIcon {...props}> <path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-...
spec/javascripts/jsx/shared/SpeedGraderLinkSpec.js
djbender/canvas-lms
/* * Copyright (C) 2019 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas 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, version 3 of the License. * * Canvas is distribut...
src/FormLabel.js
glenjamin/react-bootstrap
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import warning from 'warning'; import mapContextToProps from 'react-context-toolbox/mapContextToProps'; import Col from './Col'; import FormContext from './FormContext'; import { createBootstrapComponent } from './Theme...
frontend/src/containers/AddFundsContainer.js
OpenCollective/opencollective-website
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; // components import AddFundsForm from '../components/AddFundsForm'; import PublicGroupThanks from '../components/PublicGroupThanks'; // actions import addFundsToCollective from '../ac...
examples/cra-storybook/src/stories/index.js
enjoylife/storybook
import React from 'react'; import EventEmiter from 'eventemitter3'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { linkTo } from '@storybook/addon-links'; import WithEvents from '@storybook/addon-events'; import Button from './Button'; import Welcome from '....
components/GuidedThematicTours.js
joaojusto/just-come-tours
import React from 'react'; import '../css/GuidedThematicTours'; import Text from './Text'; import Title from './Title'; import Button from './Button'; import ImageContainer from './ImageContainer'; import GuidedThematicToursImage from '../images/photo9.jpg'; import GuidedThematicToursImage2 from '../images/photo10.jpg...
src/features/Members/Members.js
ubc-subbots/ubc-subbots.github.io
import React from 'react'; import Col from 'react-bootstrap/Col'; import Row from 'react-bootstrap/Row'; import content from '../../content'; import { ViewHeader, ViewContainer } from '../../components'; import { MemberCard } from './Components'; import './styles.scss'; export default class Members extends React.Compo...
docs/src/app/components/pages/get-started/ServerRendering.js
ngbrown/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import serverRenderingText from './serverRendering.md'; const ServerRendering = () => ( <div> <Title render={(previousTitle) => `Server Rendering - ${previousTitle}`} /> <MarkdownElemen...
lessons/git-on-your-computer.js
hamzasurti/git-started
/* eslint-disable max-len */ /* eslint-disable no-undef */ // We don't need to define ipcRenderer because it will be loaded by the time this file runs. // Import React so we can use JSX. import React from 'react'; // Create a variable to hold the name of the current directory. // We will update this variable once we ...
examples/03 Nesting/Drag Sources/index.js
konce/react-dnd
import React from 'react'; import Container from './Container'; export default class NestingDragSources { render() { return ( <div> <p> <b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/03%20Nesting/Drag%20Sources'>Browse the Source</a></b> </p> <p> ...
molgenis-core-ui/src/main/javascript/modules/react-components/jobs/JobContainer.js
marieke-bijlsma/molgenis
/** * The JobContainer retrieves progress for a single Job execution and renders it * using the Job component. * * @module JobContainer * * @exports JobContainer factory */ import React from 'react'; import RestClient from "rest-client/RestClientV2"; import { Spinner } from '../Spinner' import $ from 'jquery'; ...
source/client/containers/Root.js
lawshe/boda
import React from 'react'; import { Connector as HorizonConnector } from 'horizon-react'; import routes from '../routes'; import store from '../store'; import horizon from '../db'; export default () => ( <HorizonConnector horizon={horizon} store={store}> {routes} </HorizonConnector> );
src/js/components/ui/FloatingToolbar.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
AgentME/react-animate-reorder
/* @flow */ import zipObject from 'lodash/array/zipObject'; import React from 'react'; import ReactDOM from 'react-dom'; import Kefir from 'kefir'; import kefirBus from 'kefir-bus'; const TICK = 17; // Using React.Children.toArray changes the key properties! function _childrenToList(children: any): Array<React.Eleme...
app/common/components/LoadingCrabigator/index.js
Kaniwani/KW-Frontend
import React from 'react'; import styled, { keyframes } from 'styled-components'; import { transparent } from 'common/styles/colors'; import { gutter } from 'common/styles/layout'; const fadeOut = keyframes` 50% { opacity: 0; } `; const fadeIn = keyframes` 50% { opacity: 1; } `; const LayoutWrapper = styled.div`...
src/components/builds/build-list-item.js
frigg/frigg-hq-frontend
/* eslint-disable react/no-multi-comp */ import React from 'react'; import {Link} from 'react-router'; import moment from 'moment'; import BuildTitle from './build-title'; import {getUrlForProject} from '../../helpers/projects'; export default class BuildListItem extends React.Component { getUrl() { const bui...
src/parser/druid/restoration/modules/features/Checklist/Module.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import BaseChecklist from 'parser/shared/modules/features/Checklist/Module'; import CastEfficiency from 'parser/shared/modules/CastEfficiency'; import Combatants from 'parser/shared/modules/Combatants'; import PreparationRuleAnalyzer from 'parser/shared/modules/features/Checklist/Preparation...
src/components/board.js
kmark1625/Game-of-Life
import React, { Component } from 'react'; import '../styles/board.css'; import Square from './square'; class Board extends Component { render() { return ( <div> {this.renderRows()} </div> ); } renderRows() { return this.props.squares.map((row...
classic/src/scenes/wbfa/generated/FARCheck.free.js
wavebox/waveboxapp
import React from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faCheck } from '@fortawesome/free-solid-svg-icons/faCheck' export default class FARCheck extends React.Component { render () { return (<FontAwesomeIcon {...this.props} icon={faCheck} />) } }