path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
test/components/App-test.js
primozs/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import {test} from 'tape'; import React from 'react'; import TestUtils from 'react-addons-test-utils'; import App from '../../src/js/components/App'; import CSSClassnames from '../../src/js/utils/CSSClassnames'; const CLASS_ROOT = CSSClassnames.APP...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
marcoshtm/counselors
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/index.js
asdelday/redux-boilerplate
import React from 'react'; import ReactDom from 'react-dom'; import App from './components/App'; ((window) => { const app = document.createElement('div'); window.document.body.appendChild(app); ReactDom.render(<App />, app); })(window);
packages/react-scripts/fixtures/kitchensink/src/features/webpack/SassModulesInclusion.js
timlogemann/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import styles from './assets/sass-styles.module.sass'; import indexStyles from './assets/index.module.sass'; ...
src/packages/@ncigdc/modern_components/SampleType/SampleType.relay.js
NCI-GDC/portal-ui
import React from 'react'; import { graphql } from 'react-relay'; import { compose, withPropsOnChange } from 'recompose'; import { makeFilter } from '@ncigdc/utils/filters'; import { withRouter } from 'react-router-dom'; import { BaseQuery } from '@ncigdc/modern_components/Query'; const fieldMap = { sample: 'cases....
app/javascript/mastodon/features/ui/components/focal_point_modal.js
kazh98/social.arnip.org
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { connect } from 'react-redux'; import classNames from 'classnames'; import { changeUploadCompose } from '../../../action...
src/components/button.js
cereigido/react-native-ez-layouts
import React from 'react'; import { Text, TouchableOpacity } from 'react-native'; const Button = ({ children, onPress, inverse }) => { const gstyles = global.ezstyles || {}; const containerStyle = { alignSelf: 'stretch', backgroundColor: (inverse ? gstyles.buttonBackgroundColorInverse || '#555'...
src/Parser/WindwalkerMonk/CombatLogParser.js
mwwscott0/WoWAnalyzer
import React from 'react'; import SuggestionsTab from 'Main/SuggestionsTab'; import Tab from 'Main/Tab'; import Talents from 'Main/Talents'; import CoreCombatLogParser from 'Parser/Core/CombatLogParser'; // Features import DamageDone from 'Parser/Core/Modules/DamageDone'; import AlwaysBeCasting from './Modules/Featu...
app/javascript/mastodon/features/ui/components/bundle_column_error.js
palon7/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import Column from './column'; import ColumnHeader from './column_header'; import ColumnBackButtonSlim from '../../../components/column_back_button_slim'; import IconButton from '../../../components/...
frontend/src/components/dashboard/agencyDashboard/partnerDecisions.js
unicef/un-partner-portal
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import Typography from 'material-ui/Typography'; import R from 'ramda'; import Grid from 'material-ui/Grid'; import Paper from 'material-ui/Paper'; import { withStyles } from 'material-ui/styles'; import...
src/App.js
funki-chicken/simple-tunes
import React, { Component } from 'react'; import ReactPlayer from 'react-player'; import fetch from 'node-fetch'; import Forwards from 'react-icons/lib/md/arrow-forward'; import Backwards from 'react-icons/lib/md/arrow-back'; const openInTab = (url) => { var win = window.open(url, '_blank'); win.focus(); }; const...
admin/client/App/shared/Portal.js
joerter/keystone
/** * Used by the Popout component and the Lightbox component of the fields for * popouts. Renders a non-react DOM node. */ import React from 'react'; import ReactDOM from 'react-dom'; module.exports = React.createClass({ displayName: 'Portal', portalElement: null, // eslint-disable-line react/sort-comp compone...
src/stories/table/table-with-clickable-row.js
kemuridama/rectangle
import React from 'react'; export default class TableWithClickableRow extends React.Component { render() { const { onClick } = this.props; return ( <div className="con"> <div className="p"> <div className="p__body p__body--without-padding"> <table className="tbl"> ...
src/svg-icons/action/bookmark.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionBookmark = (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> ); ActionBookmark = pure(ActionBookmark); ActionBookmark.displayName = 'Ac...
frontend/node_modules/recharts/es6/component/ResponsiveContainer.js
justdotJS/rowboat
import _debounce from 'lodash/debounce'; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable...
docs/src/pages/system/positions/ZIndex.js
lgollut/material-ui
import React from 'react'; import Typography from '@material-ui/core/Typography'; import Box from '@material-ui/core/Box'; export default function ZIndex() { return ( <Typography component="div" variant="body1" style={{ height: 100, width: '100%', position: 'relative' }} > <Box ...
src/components/HeaderUserTip.js
BinaryCool/LaceShop
require('styles/HeaderUserTip.scss'); import React from 'react'; export default class HeaderUserTip extends React.Component { render() { return ( <a className="header-user-tip-item" href="javascript:;"> <img alt={this.props.title} src={this.props.src}/> </a> ); } }
app/javascript/mastodon/components/avatar_overlay.js
riku6460/chikuwagoddon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class AvatarOverlay extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, friend:...
src/packages/@ncigdc/routes/Login.js
NCI-GDC/portal-ui
import React from 'react'; import { connect } from 'react-redux'; import { compose, pure, setDisplayName, } from 'recompose'; import queryString from 'query-string'; import { fetchUser } from '@ncigdc/dux/auth'; import awgLogo from '@ncigdc/theme/images/logo-GDC-AWG-portal.png'; import Button from '@ncigdc/uikit...
src/shared/SellerProfile/Row.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react'; import styles from './SellerProfile.css'; // eslint-disable-line no-unused-vars const Row = ({ title, children, marginBot, show }) => { if (!show) { return null; } return ( <div className="row" styleName={marginBot ? "styles.row rowNoMargin" : "styles.row"}> ...
frontend/src/index.js
pschlan/cron-job.org
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; import { store } from './redux'; import { Provider } from 'react-redux'; import { BrowserRouter } from 'react-router-dom'; import { ThemeProvider, createTheme } f...
src/shared/form/Textarea.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react'; import PropTypes from 'prop-types' import { Control, controls } from 'react-redux-form'; import StatefulError from './StatefulError'; import TextareaComponent from '../Textarea'; import { limitWords, validCharacters } from '../../validators'; const Textarea = (props) => { let { name,...
packages/mineral-ui-icons/src/IconAlarm.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconAlarm(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps}> ...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
JacksonLee2019/CS341-VolunteerSchedule
import React from 'react'; import { render } from 'react-dom'; // 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'; render(<HelloWorld />, document.getElementById('react-root'));
fields/types/date/DateFilter.js
Pylipala/keystone
import _ from 'underscore'; import classNames from 'classnames'; import React from 'react'; import { FormField, FormInput, FormRow, FormSelect, SegmentedControl } from 'elemental'; const TOGGLE_OPTIONS = [ { label: 'Matches', value: false }, { label: 'Does NOT Match', value: true } ]; const MODE_OPTIONS = [ { lab...
src/client/home/index.react.js
hsrob/league-este
import Component from '../components/component.react'; import DocumentTitle from 'react-document-title'; import React from 'react'; import {FormattedHTMLMessage} from 'react-intl'; import {Link} from 'react-router'; export default class HomeIndex extends Component { static propTypes = { msg: React.PropTypes.obj...
src/svg-icons/content/sort.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentSort = (props) => ( <SvgIcon {...props}> <path d="M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"/> </SvgIcon> ); ContentSort = pure(ContentSort); ContentSort.displayName = 'ContentSort'; ContentSort.mui...
public/js/components/profile/visitor/Photo.react.js
TRomesh/Coupley
import React from 'react'; import Divider from 'material-ui/lib/divider'; import Avatar from 'material-ui/lib/avatar'; import Paper from 'material-ui/lib/paper'; import GridList from 'material-ui/lib/grid-list/grid-list'; import GridTile from 'material-ui/lib/grid-list/grid-tile'; import IconButton from 'material-ui/li...
www/src/components/GitHubEditLink.js
TaitoUnited/taito-cli
import React from 'react'; import { MdModeEdit } from 'react-icons/md'; import styled from '@emotion/styled'; import { IS_BROWSER } from '../constants'; const GitHubEditLink = ({ path }) => { const pathname = IS_BROWSER && window.location.pathname.replace(/\/+$/, ''); const filename = path ? path : pathname; ...
node_modules/react-navigation/src/TypeDefinition.js
gunaangs/Feedonymous
/* @flow */ import React from 'react'; // @todo when we split types into common, native and web, // we can properly change Animated.Value to its real value type AnimatedValue = *; export type HeaderMode = 'float' | 'screen' | 'none'; export type HeaderProps = NavigationSceneRendererProps & { mode: HeaderMode, r...
src/svg-icons/notification/airline-seat-flat-angled.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatFlatAngled = (props) => ( <SvgIcon {...props}> <path d="M22.25 14.29l-.69 1.89L9.2 11.71l2.08-5.66 8.56 3.09c2.1.76 3.18 3.06 2.41 5.15zM1.5 12.14L8 14.48V19h8v-1.63L20.52 19l.69-1.89-19....
src/index.js
AihuishouFE/AiChat
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import 'antd/dist/antd.css'; ReactDOM.render(<App />, document.getElementById('root'));
docs/Banner.js
jxnblk/cxs
import React from 'react' import cxs from 'cxs/component' const Banner = cxs('header')(props => ({ display: 'flex', flexDirection: 'column' })) export default Banner
examples/huge-apps/components/GlobalNav.js
gdi2290/react-router
import React from 'react'; import { Link } from 'react-router'; const styles = {}; class GlobalNav extends React.Component { static defaultProps = { user: { id: 1, name: 'Ryan Florence' } }; constructor (props, context) { super(props, context); this.logOut = this.logOut.bind(this);...
src/components/DataTable/DataTable.js
miaoji/guojibackend
import React from 'react' import PropTypes from 'prop-types' import { Table } from 'antd' import { request } from '../../utils' import lodash from 'lodash' import './DataTable.less' class DataTable extends React.Component { constructor (props) { super(props) const { dataSource, pagination = { showSizeC...
app/components/ClubCard/index.js
NathanBWaters/jb_club
/** * * ClubCard * */ import React from 'react'; import styles from './styles.css'; import { Col, Grid, Button } from 'react-bootstrap'; class ClubCard extends React.Component { // eslint-disable-line react/prefer-stateless-function static propTypes = { title: React.PropTypes.string, }; render() { re...
app/javascript/mastodon/features/ui/components/tabs_bar.js
h-izumi/mastodon
import React from 'react'; import NavLink from 'react-router-dom/NavLink'; import { FormattedMessage } from 'react-intl'; class TabsBar extends React.Component { render () { return ( <div className='tabs-bar'> <NavLink className='tabs-bar__link primary' activeClassName='active' to='/statuses/new'>...
docs/app/Examples/collections/Table/Variations/TableExampleSingleLine.js
clemensw/stardust
import React from 'react' import { Table } from 'semantic-ui-react' const TableExampleSingleLine = () => { return ( <Table singleLine> <Table.Header> <Table.Row> <Table.HeaderCell>Name</Table.HeaderCell> <Table.HeaderCell>Registration Date</Table.HeaderCell> <Table.Hea...
src/routes/index.js
mortondev/rapport
import ReactDOM from 'react-dom'; import React from 'react'; import { Router, Route } from 'react-router'; import Html from '../components/Html.jsx'; import App from '../components/App.jsx'; import Login from '../components/Login.jsx'; const routes = ( <Route path="/" component={App}> <Route path="login" co...
src/Accordion.js
wjb12/react-bootstrap
import React from 'react'; import PanelGroup from './PanelGroup'; const Accordion = React.createClass({ render() { return ( <PanelGroup {...this.props} accordion> {this.props.children} </PanelGroup> ); } }); export default Accordion;
app/react-icons/fa/y-combinator.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaYCombinator extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m21.1 22.4l5.9-11.1h-2.5l-3.5 6.9q-0.5 1.1-1 2.1l-0.9-2.1-3.5-6.9h-2.7l5...
src/components/DictList/Props.js
GuramDuka/reorders
//------------------------------------------------------------------------------ import React, { Component } from 'react'; import connect from 'react-redux-connect'; import * as Sui from 'semantic-ui-react'; import disp, { sscat } from '../../store'; import BACKEND_URL, { transform, serializeURIParams } from '../../bac...
examples/with-ioc/pages/blog.js
BlancheXu/test
import React from 'react' import { provide, types } from 'ioc' import { Link, Router } from '../routes' import Component1 from '../components/component1' const posts = [ { slug: 'hello-world', title: 'Hello world' }, { slug: 'another-blog-post', title: 'Another blog post' }, ] @provide({ @types.func.isRequired ...
app/javascript/mastodon/components/attachment_list.js
Craftodon/Craftodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; const filename = url => url.split('/').pop().split('#')[0].split('?')[0]; export default class AttachmentList extends ImmutablePureComponent { static propTypes...
ui/src/js/profile/NoTeamAvailable.js
Dica-Developer/weplantaforest
import counterpart from 'counterpart'; import React, { Component } from 'react'; import IconButton from '../common/components/IconButton'; export default class NoTeamAvailable extends Component { constructor() { super(); this.state = { isLoggedIn: localStorage.getItem('jwt') != null && localStorage.get...
client/util/react-intl-test-helper.js
vladmokryi/Nation-Forecast
/** * Components using the react-intl module require access to the intl context. * This is not available when mounting single components in Enzyme. * These helper functions aim to address that and wrap a valid, * English-locale intl context around them. */ import React from 'react'; import { IntlProvider, intlSha...
src/routes/Wheels/components/Wheels.js
k2data/svg-react-playground
// @flow import React from 'react' import Route from 'react-router-dom/Route' import { Wheel1, Wheel2 } from 'components/Wheels' import styles from './Wheels.css' type Props = {} const Wheel = (props: Props) => ( <div className={styles['wheels']}> <Route path='/wheels/1' component={Wheel1} exact /> <Route p...
src/node.js
zjfjiayou/react-native-mind
import React, { Component } from 'react'; import {emitter} from './core/utils'; import {G} from 'react-native-svg'; import Connect from './connect'; import Expand from './expand'; import Title from './nodeExt/title'; import Image from './nodeExt/image'; import File from './nodeExt/file'; import Content from './nodeE...
src/components/historical-prices/price-list.js
SupasitC/Pricetrolley
import React from 'react' import { Row, Col } from 'react-bootstrap' export default class PriceList extends React.Component { render() { const style = require('./price-list.scss'); return ( <div className={style.priceList}> <Row> <Col md={3}> <span className={style.price}>...
js/account/src/components/Registry/RegistryNone.js
fogfish/oauth2
import React from 'react' import { H5, Button, Intent } from '@blueprintjs/core' const RegistryNone = ({ showRegistrar }) => ( <div> <H5>No OAuth applications in your account...</H5> <p>OAuth applications are used to access REST API.</p> <Button intent={Intent.PRIMARY} onClick={() => showRegistrar(true)}...
src/pages/ImportExport.js
oglimmer/linky
import React from 'react'; import { connect } from 'react-redux'; import { Button, FormGroup } from 'react-bootstrap'; import { Form } from 'react-redux-form'; import PropTypes from 'prop-types'; import UIInputElement from '../components/UIInputElement'; import { importBookmarks, exportBookmarks } from '../redux/acti...
docs/src/app/components/pages/components/Stepper/CustomIcon.js
ngbrown/material-ui
import React from 'react'; import { Step, Stepper, StepLabel, } from 'material-ui/Stepper'; import WarningIcon from 'material-ui/svg-icons/alert/warning'; import {red500} from 'material-ui/styles/colors'; /** * Custom icons can be used to create different visual states. */ class CustomIcon extends React.Compon...
src/deposit/DepositMobile.js
qingweibinary/binary-next-gen
import React from 'react'; import MobilePage from '../containers/MobilePage'; import DepositContainer from './DepositContainer'; export default (props) => ( <MobilePage toolbarShown={false} backBtnBarTitle="Deposit"> <DepositContainer {...props} /> </MobilePage> );
modules/gui/src/app/home/body/tasks/tasks.js
openforis/sepal
import {Button} from 'widget/button' import {ButtonGroup} from 'widget/buttonGroup' import {Content, SectionLayout, TopBar} from 'widget/sectionLayout' import {HoverDetector, HoverOverlay} from 'widget/hover' import {Progress} from 'widget/progress' import {Scrollable, ScrollableContainer} from 'widget/scrollable' impo...
src/components/Header/Header.js
CarlTheLandlord/spotify-checker
import React from 'react' import { IndexLink, Link } from 'react-router' import './Header.scss' export const Header = () => ( <div> <h1>React Redux</h1> <IndexLink to='/' activeClassName='route--active'> Home </IndexLink> {' · '} <Link to='/spotify' activeClassName='route--active'> Sp...
src/svg-icons/notification/sd-card.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSdCard = (props) => ( <SvgIcon {...props}> <path d="M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 6h-2V4h2v4zm3 0h-2V4h2v4zm3 0h-2V4h2v4z"/> </SvgIcon> ); NotificationS...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
tessy2728/Angular2Sample
import React from 'react'; import { render } from 'react-dom'; // 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'; render(<HelloWorld />, document.getElementById('react-root'));
src/js/components/WorldMap/stories/Simple.js
HewlettPackard/grommet
import React from 'react'; import { Box, WorldMap } from 'grommet'; export const Simple = () => ( <Box align="center" pad="large"> <WorldMap /> </Box> ); Simple.parameters = { // chromatic disabled because snapshot is the same as SelectPlace chromatic: { disable: true }, }; export default { title: 'Vi...
pages/index.js
sakulstra/firebase-nextjs-mobx
import React from 'react' import { initializePage } from '~/utils' import { BaseLayout } from '~/ui/layouts' const Home = () => ( <BaseLayout> I bims de home page. </BaseLayout> ) export default initializePage(Home)
packages/icons/src/dv/CodePen.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function DvCodePen(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M43.985 17.682c.009.074.015.148.015.224v12.187c0 .076-.006.15-.015.226l-.014.073a1.646 1.646 0 0 1-.03.144c-.008.029-.018.056-.027.083-.014.042-.028....
app/containers/DevTools.js
leofle/electron_manifesto
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-q" > <LogMonitor /> ...
src/components/graphlist/graphlistitem.js
jamjar919/bork
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; const GraphListItem = props => ( <li className={`graphListItem ${props.className}`}> <Link to={`/${props.id}`}>{props.name}</Link> - <Link to={`/${props.id}/edit`}>Edit</Link> </li> ); GraphListItem...
src/react/components/Buttons/index.js
formtools/core
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import MButton from '@material-ui/core/Button'; // primary buttons styles for default green theme only const useStyles = makeStyles(() => ({ primary: { margin: '8px 4px 8px 0', boxShadow: 'none', textTransform: 'none', letterSpa...
src/Parser/Monk/Mistweaver/Modules/Spells/SoothingMist.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Wrapper from 'common/Wrapper'; import Combatants from 'Parser/Core/Modules/Combatants'; import Analyzer from 'Parser/Core/Analyzer'; const debug = false; class SoothingMist extends Analyzer { static de...
packages/material-ui-icons/src/FormatAlignRight.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let FormatAlignRight = props => <SvgIcon {...props}> <path d="M3 21h18v-2H3v2zm6-4h12v-2H9v2zm-6-4h18v-2H3v2zm6-4h12V7H9v2zM3 3v2h18V3H3z" /> </SvgIcon>; FormatAlignRight = pure(FormatAlignRight); FormatAl...
src/parser/hunter/marksmanship/modules/spells/PreciseShots.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS/hunter'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import SpellIcon from 'common/SpellIcon'; import calculateEffectiveDamage from 'parser/core/calculateEffectiveDamage'; import...
src/issues/IssueCard.js
easyCZ/open-sourcery
import React from 'react'; import { Button, Card, Image } from 'semantic-ui-react' import { Header } from 'semantic-ui-react' import { Icon, Label } from 'semantic-ui-react' const IssueCard = ({ img, owner, name, description, stars, language }) => ( <Card style={{ minWidth: '400px' }}> <Card.Content style={{ ...
roguelike-dungeon-crawler-game/src/index.js
mstoyanovca/front-end
import React from 'react'; import ReactDOM from 'react-dom'; import './css/index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/components/App/App.js
joshwcomeau/framework.js
/* * React.js Starter Kit * Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ 'use strict'; import './App.less'; import React from 'react'; import invariant from 're...
src/components/Header/Moves/index.js
tasos14/reactQueens
import React from 'react'; import styled from 'styled-components'; import { useQueensContext } from 'components/App/context'; const Wrapper = styled.div` min-height: 2.5em; min-width: 5em; position: relative; background: #c0a58b; font-size: 25px; height: 25px; line-height: 47px; font-we...
src/js/components/MovieThumbnail.js
nicholasodonnell/moonshine
import React from 'react'; import Truncate from 'react-truncate'; class MovieThumbnail extends React.Component { constructor() { super(); } componentWillMount() { } render() { const { movie } = this.props; const { genre, poster, title } = movie; return ( ...
src/pages/signup.js
guzmonne/mcp
import React from 'react' import SignupForm from '../components/signup/form.signup.js' import RowColXS12 from '../components/bootstrap/row.col-xs-12.js' import Logo from '../components/helpers/logo.helper.js' export default class Signup extends React.Component { render(){ return ( <div className="Signup"> <R...
admin/client/App/elemental/ScreenReaderOnly/index.js
frontyard/keystone
import React from 'react'; import { css } from 'glamor'; function ScreenReaderOnly ({ className, ...props }) { props.className = css(classes.srOnly, className); return <span {...props} />; }; const classes = { srOnly: { border: 0, clip: 'rect(0,0,0,0)', height: 1, margin: -1, overflow: 'hidden', paddi...
src/routes.js
harouf/react-redux-searchportal
import React from 'react'; import {Route} from 'react-router'; import { App, Chat, Home, Widgets, About, Login, LoginSuccess, Survey, NotFound, } from 'containers'; export default (store) => { const requireLogin = (nextState, replaceState) => { const { auth: { user }} = stor...
src/components/AboutBox.js
nm-t/STS
import React from 'react'; import InfoBox from './InfoBox'; const HowToUseBox = ({open, onRequestClose}) => ( <InfoBox title="About" open={open} onRequestClose={onRequestClose}> <h3>Background</h3> Sequential study designs are an important approach in pioneer (first-in-human) drug safety and effectivenes...
webpack/components/TemplateSyncResult/components/SyncedTemplate/EmptyInfoItem.js
theforeman/foreman_templates
import React from 'react'; import PropTypes from 'prop-types'; import InfoItem from './InfoItem'; import { itemIteratorId } from './helpers'; const EmptyInfoItem = ({ template, attr }) => ( <InfoItem itemId={itemIteratorId(template, attr)} /> ); EmptyInfoItem.propTypes = { template: PropTypes.object.isRequired, ...
src/components/ForecastNext5DayWeather/ForecastNext5DayWeather.js
Andumino/SimpleWeatherApp
import React from 'react'; import {connect} from 'react-redux'; import LoadingIndicator from 'react-loading-indicator'; class ForecastNext5DayWeather extends React.Component { getTimeStr(dt) { const options = { day: 'numeric', month: 'numeric', year: 'numeric', hour: 'numeric', minu...
client/src/components/dashboard/Community/SocialLinks.js
no-stack-dub-sack/alumni-network
import { hoverTransition } from '../../../styles/style-utils'; import React from 'react'; import styled from 'styled-components'; export const Icon = styled.i` color: grey; ${ hoverTransition() } `; const IconLinks = ({ user, handleClick }) => { const { social } = user; return( <div> <a href...
index.ios.js
budasuyasa/warungapp
/** * 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 warungapp extends Component { render() { return ( <View style={styles.container...
modules/react-docs/src/components/MarkdownTitle.js
Scratch-it/react-color
/* jshint node: true, esnext: true */ "use strict"; import React from 'react'; import ReactCSS from 'reactcss'; class MarkdownTitle extends ReactCSS.Component { constructor() { super(); this.state = { hover: false, }; this.handleHover = this.handleHover.bind(this); } classes() { retu...
src/svg-icons/maps/local-mall.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalMall = (props) => ( <SvgIcon {...props}> <path d="M19 6h-2c0-2.76-2.24-5-5-5S7 3.24 7 6H5c-1.1 0-1.99.9-1.99 2L3 20c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-7-3c1.66 0 3 1.34 3 3H9c0-1.66 1.3...
src/components/subscription/subscription.js
modestack/modestack.github.io
import React from 'react'; import PropTypes from 'prop-types'; import styles from './subscription.module.scss'; import BadgeIcon from '../icons/airplane-badge'; import {SecondaryButton, SecondaryLink} from '../common/link/link'; import closeIconSVG from '../../assets/svgs/ic_close_white_24px.svg'; class Subscription e...
node_modules/enzyme/src/version.js
vietvd88/developer-crawler
import React from 'react'; export const VERSION = React.version; export const REACT013 = VERSION.slice(0, 4) === '0.13'; export const REACT014 = VERSION.slice(0, 4) === '0.14'; export const REACT15 = VERSION.slice(0, 3) === '15.';
fields/types/date/DateField.js
everisARQ/keystone
import DateInput from '../../components/DateInput'; import Field from '../Field'; import moment from 'moment'; import React from 'react'; import { Button, InputGroup, FormInput } from 'elemental'; /* TODO: Implement yearRange Prop, or deprecate for max / min values (better) */ const DEFAULT_INPUT_FORMAT = 'YYYY-MM-DD...
src/containers/Home/Home.js
dskliarov/aotweb
import React, { Component } from 'react'; import Helmet from 'react-helmet'; import InternalCarousel from '../Carousel/Carousel'; export default class Home extends Component { render() { const styles = require('./Home.scss'); // require the logo image both from client and server return ( <div> ...
src/components/SearchResults.js
kmcarter/karaoke-song-lister
import React from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import * as types from '../constants/searchTypes'; import * as appActions from '../actions/appActions'; import * as searchActions from '../actions/searchActions'; import Paginati...
client/src/pages/account/AccountSettingForm.js
ccwukong/lfcommerce-react
import React from 'react'; import { Formik, Form } from 'formik'; import * as Yup from 'yup'; import { FormattedMessage } from 'react-intl'; import { Col, Row, FormGroup, Label, Card, CardHeader, CardBody, Input, Button, } from 'reactstrap'; import { MdSave } from 'react-icons/md'; const accountSetti...
src/js/components/icons/base/SocialAmazon.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/packages/@ncigdc/routes/RepositoryRoute.js
NCI-GDC/portal-ui
/* @flow */ /* eslint fp/no-class:0 */ import React from 'react'; import Relay from 'react-relay/classic'; import { connect } from 'react-redux'; import { parse } from 'query-string'; import { handleStateChange } from '@ncigdc/dux/relayProgress'; import RepositoryPage from '@ncigdc/containers/RepositoryPage'; import ...
src/components/common/svg-icons/editor/vertical-align-bottom.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorVerticalAlignBottom = (props) => ( <SvgIcon {...props}> <path d="M16 13h-3V3h-2v10H8l4 4 4-4zM4 19v2h16v-2H4z"/> </SvgIcon> ); EditorVerticalAlignBottom = pure(EditorVerticalAlignBottom); EditorVertical...
src/client/components/comments/CommentWrapper.component.js
DBCDK/content-first
import React from 'react'; import {connect} from 'react-redux'; import ProfileImage from '../general/ProfileImage.component'; import { UPDATE_COMMENT, TOGGLE_EDIT_COMMENT, DELETE_COMMENT, FETCH_COMMENTS } from '../../redux/comment.reducer'; import Spinner from '../general/Spinner/Spinner.component'; import {ti...
src/components/TeamItem.js
mariovalney/mariovalney-app
import React from 'react'; import PropTypes from 'prop-types'; import { StyleSheet, Text, Image, TouchableOpacity, } from 'react-native'; import { withNavigation } from 'react-navigation'; const styles = StyleSheet.create({ flag: { borderWidth: 1, borderColor: '#c7c6c6', flex: 1, height: 22,...
src/components/Weui/cell/cells_title.js
ynu/res-track-wxe
/* eslint-disable */ import React from 'react'; import classNames from 'classnames'; export default class CellsTitle extends React.Component { render() { const {className, children, ...others} = this.props; const cls = classNames({ 'weui-cells__title': true, [className]:...
app/static/src/diagnostic/TestTypeResultForm_modules/VisualTestForm.js
SnowBeaver/Vision
import React from 'react'; import Form from 'react-bootstrap/lib/Form'; import Panel from 'react-bootstrap/lib/Panel'; import Button from 'react-bootstrap/lib/Button'; import FormControl from 'react-bootstrap/lib/FormControl'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import ControlLabel from 'react-bootst...
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js
MattSPalmer/react-router
import React from 'react'; import { Link } from 'react-router'; export default class AnnouncementsSidebar extends React.Component { render () { var announcements = COURSES[this.props.params.courseId].announcements; return ( <div> <h3>Sidebar Assignments</h3> <ul> {announcemen...
packages/bonde-admin/src/pages/admin/mobilizations/widgets/container.js
ourcities/rebu-client
import React from 'react' import { connect } from 'react-redux' import { Route } from 'react-router-dom' // Components import { Loading } from '@/components/await' // Redux import { selectWidget } from '@/mobrender/redux/action-creators' import MobSelectors from '@/mobrender/redux/selectors' // Pages import Donation...
src/components/button/index.js
rangle/react-redux-starter
import React from 'react'; import classNames from 'classnames'; function Button({ children, className, type = 'button', onClick, ...props }) { const buttonClasses = classNames('btn', 'btn-primary', className); return ( <button type={ type } className={ buttonClasses } onClick={ onC...
src/react/BaseApp.js
laundree/laundree
// @flow import React from 'react' import { Switch, Route } from 'react-router' import Support from './Support' import StateCheckRedirectRoute from './StateCheckRedirectRoute' import NotFound from './NotFound' import LeftNav from './LeftNav' import UserSettings from './UserSettings' import Home from './Home' import Lan...
src/js/routes.js
7sleepwalker/addicted-to-mnt
import React from 'react'; // import propTypes from "prop-types"; import { Switch, Route, BrowserRouter } from 'react-router-dom'; import HomePage from './Containers/HomePage'; import Error404 from './Containers/error404'; import App from './Containers/App'; import About from './Containers/About'; import Gallery from...
src/svg-icons/action/note-add.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionNoteAdd = (props) => ( <SvgIcon {...props}> <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z"/> </SvgIcon> );...