path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/components/sections/partials/SectionHeader.js
eddiesmithjr/eddiesmithjr.github.io
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; const propTypes = { data: PropTypes.shape({ title: PropTypes.string, paragraph: PropTypes.string }).isRequired, children: PropTypes.node, tag: PropTypes.oneOf(['h1', 'h2', 'h3']) } const defaultProps = ...
node_modules/react-router/es6/withRouter.js
ArtixZ/LyingMan2
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import invariant from 'invariant'; import React from 'react';...
src/components/Button/Base/__tests__/Button.spec.js
propertybase/react-lds
import React from 'react'; import { shallow } from 'enzyme'; import Button from '../Button'; import ButtonIcon from '../ButtonIcon'; const getComponent = (props = {}) => shallow(<Button {...props}>Download</Button>); describe('<Button />', () => { it('applies rest props and additional classes', () => { const mo...
src/routes/catalog/Catalog.js
Maryanushka/masterskaya
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Form from '../../comp...
src/Col.js
dongtong/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import styleMaps from './styleMaps'; import CustomPropTypes from './utils/CustomPropTypes'; const Col = React.createClass({ propTypes: { /** * The number of columns you wish to span * * for Extra small devices Phones (<768px) * ...
app/jsx/developer_keys/ScopesMethod.js
djbender/canvas-lms
/* * Copyright (C) 2018 - 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/docs/components/legend/LegendDoc.js
karatechops/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Legend from 'grommet/components/Legend'; import Anchor from 'grommet/components/Anchor'; import Button from 'grommet/components/Button'; import DocsArticle from '../../../components/DocsArticle'; cons...
src/client/components/Widget.js
andrerpena/tr-workbench
import React from 'react'; var Widget = React.createClass({ render: function() { return <div className="widget"> <div className="widget-header"> Widget </div> <div className="widget-body"> </div> </div>; } }); export default Widge...
node_modules/rc-calendar/es/full-calendar/CalendarHeader.js
yhx0634/foodshopfront
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React, { Component } from 'react'; im...
src/svg-icons/notification/sync-disabled.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSyncDisabled = (props) => ( <SvgIcon {...props}> <path d="M10 6.35V4.26c-.8.21-1.55.54-2.23.96l1.46 1.46c.25-.12.5-.24.77-.33zm-7.14-.94l2.36 2.36C4.45 8.99 4 10.44 4 12c0 2.21.91 4.2 2.36 5.64L4 20...
app/containers/Layout/ContentLong/index.js
hlex/vms
import React, { Component } from 'react'; class ContentGrid extends Component { render() { return ( <div className="content-long-wrapper"> { this.props.children } </div> ); } } export default ContentGrid;
src/index.js
ldimitrov/todo_react
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/components/PublicLayout/Layout.js
chunkiat82/rarebeauty-ui
/** * 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-...
fantasy-football/src/App.js
paulpooch/fantasy-football
import React, { Component } from 'react'; import { Button, Intent } from '@blueprintjs/core'; import { TagInput } from '@blueprintjs/labs'; import localforage from 'localforage'; import { times, DRAFTED_FLAGS, FILTER_TYPES, TAG_TYPES } from './utils'; import processed from './data/processed'; import Filters from './Fil...
src/components/statistics.js
orouvinen/dnf-ranks-frontend
import React, { Component } from 'react'; import { Link } from 'react-router'; import EloDistribution from './elo-distribution'; import TournamentHistoryContainer from '../containers/tournament-history-container'; class Statistics extends Component { render() { return ( <div className="rating-s...
js/components/Overlay.js
hihuz/mine-sweeper
import React from 'react'; import ModeDialog from './ModeDialog'; import HSDialog from './HSDialog'; import AboutDialog from './AboutDialog'; import CongratsDialog from './CongratsDialog'; const Overlay = ({ dialogOpened, closeDialog, highScores, time, mode }) => { function handleKeyDown(e) { if (e.key...
src/views/components/TextField.js
physiii/home-gateway
import React from 'react'; import PropTypes from 'prop-types'; import {getUniqueId} from '../../utilities.js'; import styles from './TextField.css'; const labelScale = 0.75; export class TextField extends React.PureComponent { constructor (props) { super(props); this.state = { isFocused: false, isOutlineS...
techCurriculum/ui/solutions/6.1/src/components/Title.js
AnxChow/EngineeringEssentials-group
/** * Copyright 2017 Goldman Sachs. * 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/__tests__/index.js
aymericbouzy/instantjob-calendar
import React from 'react' import {shallow, mount, render} from 'enzyme' import {expect} from 'chai' import sinon from 'sinon' import moment from 'common/moment' import Calendar from '../index' import {display_period} from '../period' const missions = [ {events: [{ start: moment().add(1, 'minute'), end: mom...
node_modules/eslint-config-airbnb/test/test-react-order.js
gioialab/APIHive
import test from 'tape'; import { CLIEngine } from 'eslint'; import eslintrc from '../'; import reactRules from '../rules/react'; import reactA11yRules from '../rules/react-a11y'; const cli = new CLIEngine({ useEslintrc: false, baseConfig: eslintrc, rules: { // It is okay to import devDependencies in tests....
app/javascript/mastodon/features/list_timeline/index.js
Chronister/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnBackButton from '../../co...
src/components/CircularIndeterminate.js
kazazor/coinsmarket
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles, createStyleSheet } from 'material-ui/styles'; import { CircularProgress } from 'material-ui/Progress'; const styleSheet = createStyleSheet((theme) => ({ root: { display: 'flex', justifyContent: 'center' } })); const Circul...
src/routes/endorsements/index.js
goldylucks/adamgoldman.me
import React from 'react' import Endorsements from './Endorsements' import Layout from '../../components/Layout' const path = '/endorsements' async function action() { return { chunks: ['endorsements'], title: 'Endorsements', path, description: 'Endorsements', component: ( <Layout path={...
test/BadgeSpec.js
omerts/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Badge from '../src/Badge'; describe('Badge', function () { it('Should output a badge with content', function () { let instance = ReactTestUtils.renderIntoDocument( <Badge> <strong>Content</strong> </Badge...
src/svg-icons/maps/rate-review.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsRateReview = (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-2zM6 14v-2.47l6.88-6.88c.2-.2.51-.2.71 0l1.77 1.77c.2.2.2.51 0 .71L8.47 14H6zm1...
packages/react-devtools-shared/src/devtools/views/Profiler/ChartNode.js
mjackson/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 styles from './ChartNode.css'; type Props = {| color: string, height: number, ...
amp-stories/src/component/base/AmpStoryIntro.js
ampproject/samples
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import {rem} from 'polished'; import AmpImage from '/component/amp/AmpImage'; import {omit} from 'ramda'; const Pill = styled((props) => { const rest = omit(['color', 'backgroundColor'], props); return <div {...r...
docs/src/sections/GlyphiconSection.js
apkiernan/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function GlyphiconSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> ...
test/CollapseSpec.js
andrew-d/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Collapse from '../src/Collapse'; describe('Collapse', function () { let Component, instance; beforeEach(function(){ Component = React.createClass({ render(){ let { children, ...props } = this.props; ...
src/client/js/components/stockGraph.js
ethanjurman/WebEngProject
import React, { Component } from 'react'; import request from 'ajax-request'; import { Paper, TextField, RaisedButton } from 'material-ui'; import { StockHighGraph } from './stockHighGraph'; import { Wallet, getWallet } from './wallet'; import { TransactionHistory, getTransactionHistory } from './transactionhistory'; i...
modules/react-documentation/src/components/Markdown.js
casesandberg/reactcss
'use strict'; import React from 'react' import reactCSS from 'reactcss' import markdown from '../helpers/markdown' import Code from './Code' module.exports = class Markdown extends React.Component { shouldComponentUpdate() { return false; } render() { const styles = reactCSS({ 'default': { ...
src/v2/stories/Cell.stories.js
aredotna/ervell
import uuidv4 from 'uuid/v4' import React from 'react' import { storiesOf } from '@storybook/react' import { Query } from '@apollo/client/react/components' import { gql } from '@apollo/client' import identifiableCellFragment from 'v2/components/Cell/components/Identifiable/fragments/identifiableCell' import konnectabl...
src/FlatButton/FlatButton.spec.js
frnk94/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import FlatButton from './FlatButton'; import getMuiTheme from '../styles/getMuiTheme'; import ActionAndroid from '../svg-icons/action/android'; describe('<FlatButton />', () => { const muiTheme = getMuiTh...
blueocean-material-icons/src/js/components/svg-icons/action/card-travel.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionCardTravel = (props) => ( <SvgIcon {...props}> <path d="M20 6h-3V4c0-1.11-.89-2-2-2H9c-1.11 0-2 .89-2 2v2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zM9 4h6v2H9V4zm11 15H4v-2h16v2zm0-5H4V8h3v2h2V8h6v2h2V...
src/components/icons/ReactIcon.js
dtjv/dtjv.github.io
import React from 'react' export const ReactIcon = ({ className, ...props }) => ( <svg {...props} className={`text-react ${className}`} role="img" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" > <title>React</title> <path d="M14.23 12.004a2.236 2.236 0 0...
packages/material-ui-icons/src/FiberDvr.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let FiberDvr = props => <SvgIcon {...props}> <path d="M17.5 10.5h2v1h-2zm-13 0h2v3h-2zM21 3H3c-1.11 0-2 .89-2 2v14c0 1.1.89 2 2 2h18c1.11 0 2-.9 2-2V5c0-1.11-.89-2-2-2zM8 13.5c0 .85-.65 1.5-1.5 1.5H3V9h3.5c.8...
src/components/Header/Header.js
SteveHoggNZ/Choice-As
import React from 'react' import { IndexLink, Link } from 'react-router' import { Navbar, NavbarBrand, Nav, NavItem, NavLink } from 'reactstrap' import { Spinner } from 'components/Spinner' import LoginFormContainer from 'containers/CognitoUsers/LoginFormContainer' import './Header.scss' export class Header extends Re...
src/redux/utils/createDevToolsWindow.js
stevecrozz/test-directory-client
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import DevTools from '../../containers/DevToolsWindow' export default function createDevToolsWindow (store) { const win = window.open( null, 'redux-devtools', // give it a name so it reuses the same window `...
src/client/pages/examples.react.js
terakilobyte/esterethinksocketchat
import Component from '../components/component.react'; import DocumentTitle from 'react-document-title'; import Editable from '../components/editable.react'; import Promise from 'bluebird'; import React from 'react'; import {msg} from '../intl/store'; class Examples extends Component { constructor(props) { supe...
app/layouts/app.js
gon250/personal-web
import React from 'react'; import Footer from 'layouts/footer'; import Header from 'layouts/header'; export default React.createClass({ render: function() { return ( <div className="app"> <Header /> <main className="mdl-layout__content"> {this.props.children} ...
app/javascript/mastodon/components/setting_text.js
WitchesTown/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; export default class SettingText extends React.PureComponent { static propTypes = { settings: ImmutablePropTypes.map.isRequired, settingKey: PropTypes.array.isRequired, label: PropT...
app/javascript/mastodon/components/column_header.js
masarakki/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { FormattedMessage, injectIntl, defineMessages } from 'react-intl'; const messages = defineMessages({ show: { id: 'column_header.show_settings', defaultMessage: 'Show settings' }, hide: { id: 'column_header.h...
src/routes/toolResponse/index.js
goldylucks/adamgoldman.me
import React from 'react' import ToolResponse from './ToolResponse' import Layout from '../../components/Layout' async function action({ params, path }) { return { chunks: ['toolResponse'], title: 'Tool process', description: 'Tool process', path, component: ( <Layout path={path}> ...
src/svg-icons/communication/email.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationEmail = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/> </SvgIcon> ); CommunicationEmai...
app/screens/other/splash.js
andry-baka/dapur-ngebul-app
import React from 'react'; import { StyleSheet, Image, View, Dimensions, StatusBar } from 'react-native'; import { RkText, RkTheme } from 'react-native-ui-kitten' import {ProgressBar} from '../../components'; import { KittenTheme } from '../../config/theme'; import {NavigationActions} from 'react-naviga...
demos/frontend-react/app/src/components/AvailableServices.js
ITISFoundation/oSPARC_Test
import React, { Component } from 'react'; import { Button, ButtonGroup } from 'react-bootstrap'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { newServiceRequested } from '../actions'; import './AvailableServices.css'; class AvailableServices extends Component { onServ...
src/components/slider/SliderSwatches.js
casesandberg/react-color
import React from 'react' import reactCSS from 'reactcss' import SliderSwatch from './SliderSwatch' export const SliderSwatches = ({ onClick, hsl }) => { const styles = reactCSS({ 'default': { swatches: { marginTop: '20px', }, swatch: { boxSizing: 'border-box', width: '...
src/components/teams/index.js
icodeninja/statr
import React, { Component } from 'react'; import { wobaFromStats, sumValues, sortArrayByKey, ipToInt } from '../../lib/calc'; import Dispatcher from '../../lib/dispatcher'; import Tab from '../../lib/tab'; import {Table, TableHead, TableRow, TableCell } from 'react-toolbox/lib/table'; import ...
src/scripts/app/redux/components/CartItem.js
vorobiovkirill/react-shopping-cart
import { Button, Card, Icon, Image } from 'semantic-ui-react'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; class CartItem extends Component { constructor(props) { super(props); this.handleRemove = this.handleRemove.bind(this); } handleRemove(id) { this.props.removeItemFrom...
app/ui/widgets/background.js
vnovick/RNSpacePong
import React, { Component } from 'react'; import { View, Image } from 'react-native'; import styles from '../../styles/shared'; export default function BackgroundScreen({ img, children, style }){ return ( <View style={[styles.container, style]}> <Image source={img || require('../../assets/imgs/backgrou...
node_modules/react-router/es6/Lifecycle.js
mrjkc/react-redux
import warning from './routerWarning'; import React from 'react'; import invariant from 'invariant'; var object = React.PropTypes.object; /** * The Lifecycle mixin adds the routerWillLeave lifecycle method to a * component that may be used to cancel a transition or prompt the user * for confirmation. * * On stan...
redux-elm-tomkis1/src/gif-viewer-pair-of-pairs/view.js
slorber/scalable-frontend-with-elm-or-redux
import React from 'react'; import { view, forwardTo } from 'redux-elm'; import GifViewerPair from '../gif-viewer-pair/view'; export default view(({ model, dispatch }) => ( <div> <div style={{ float: 'left' }}> <GifViewerPair model={model.leftPair} dispatch={forwardTo(dispatch, 'LeftPair')} /> </div> ...
src/components/Header/Header.js
dkmin/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Header.less'; import withStyles from '../../decorators/withStyles'; import Link from '../../utils/Link'; import Navigation from '../Navigation'; @withStyles(styles) class Header { render() { ...
src/svg-icons/communication/ring-volume.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationRingVolume = (props) => ( <SvgIcon {...props}> <path d="M23.71 16.67C20.66 13.78 16.54 12 12 12 7.46 12 3.34 13.78.29 16.67c-.18.18-.29.43-.29.71 0 .28.11.53.29.71l2.48 2.48c.18.18.43.29.71.29.27 0...
src/parser/warrior/protection/modules/talents/IntoTheFray.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatDuration, formatPercentage } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import StatisticBox from 'interface/ot...
app/javascript/mastodon/features/favourites/index.js
blackle/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchFavourit...
src/web/components/PatientSelect/index.js
asha-nepal/AshaFusionCross
/** * Copyright 2017 Yuichiro Tsuchiya * * 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 agr...
games/jab/game3/src/scripts/modules/Footer.js
jabrena/ReactLab
import React from 'react' export default React.createClass({ render() { return ( <div className="row"> <div className="col-xs-12"> <blockquote> Olympic React Games 2016. </blockquote> </div> </div> ) } })
app/components/HelpView/ValuesHelp.js
trevornelson/wld-frontend
/** * * ValuesHelp * */ import React from 'react'; import styled from 'styled-components'; import MenuList from 'components/Sidebar/MenuList'; import MenuListItem from 'components/Sidebar/MenuListItem'; const Wrapper = styled.div` `; class ValuesHelp extends React.PureComponent { // eslint-disable-line react/prefer...
src/routes/content/index.js
murphysierra/VinnyStoryPage
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Content from './Content'...
demo/examples/Carousel.js
OnsenUI/react-onsenui
import React from 'react'; import ReactDOM from 'react-dom'; import MyToolbar from './MyToolbar'; import { Page, Button, Navigator, Toolbar, List, ListItem, Ripple, Carousel, CarouselItem, BottomToolbar, ToolbarButton } from '../../src/index.js'; export default class extends React.Component { ...
src/components/InputTypeLocation.js
OpenCollective/frontend
import React from 'react'; import PropTypes from 'prop-types'; import Geosuggest from 'react-geosuggest'; import classNames from 'classnames'; import Location from './Location'; class InputTypeLocation extends React.Component { static propTypes = { value: PropTypes.object, className: PropTypes.string, on...
springboot/GReact/src/main/resources/static/app/components/activities/components/Task.js
ezsimple/java
import React from 'react' import classnames from 'classnames' import Moment from '../../utils/Moment' let Task = React.createClass({ render: function () { let item = this.props.item; return ( <span> <div className="bar-holder no-padding"> <p className="margin-bottom-5...
src/components/Footer/WhatsappIcon.js
Galernaya20/galernaya20.com
//@flow import React from 'react' import {Svg} from '../Svg/Svg' export const WhatsappIcon = (props: Object) => ( <Svg {...props}> <path d="M25,2C12.318,2,2,12.318,2,25c0,3.96,1.023,7.854,2.963,11.29L2.037,46.73c-0.096,0.343-0.003,0.711,0.245,0.966 C2.473,47.893,2.733,48,3,48c0.08,0,0.161-0.01,0.24-0.029l10.896...
examples/NavigationPlayground/js/SampleText.js
kkamperschroer/react-navigation
/* @flow */ import React from 'react'; import { StyleSheet, Text, } from 'react-native'; /** * Used across examples as a screen placeholder. */ const SampleText = ({ children }) => ( <Text style={styles.sampleText}>{children}</Text> ); export default SampleText; const styles = StyleSheet.create({ sampleT...
information/blendle-frontend-react-source/app/components/dialogues/ShareToEmail.js
BramscoChill/BlendleParser
import React from 'react'; import PropTypes from 'prop-types'; import { STATUS_INITIAL, STATUS_OK, STATUS_ERROR, STATUS_PENDING, keyCode } from 'app-constants'; import { translate } from 'instances/i18n'; import Dialogue from 'components/dialogues/Dialogue'; import classNames from 'classnames'; import { isMultipleEmail...
src/components/Feedback/Feedback.js
muriloreis/drfarm
/** * 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 withStyles from 'isom...
examples/todomvc/containers/TodoApp.js
clintonhalpin/redux
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Header from '../components/Header'; import MainSection from '../components/MainSection'; import * as TodoActions from '../actions/todos'; class TodoApp extends Component { render() { ...
docs/app/Examples/modules/Search/Types/SearchExampleCategoryCustom.js
shengnian/shengnian-ui-react
import PropTypes from 'prop-types' import React from 'react' import { Label } from 'shengnian-ui-react' import SearchExampleCategory from './SearchExampleCategory' const categoryRenderer = ({ name }) => <Label as={'span'} content={name} /> categoryRenderer.propTypes = { name: PropTypes.string, } const resultRende...
test/e2e/getserversideprops/app/pages/catchall/[...path].js
azukaru/next.js
import React from 'react' import Link from 'next/link' import { useRouter } from 'next/router' export async function getServerSideProps({ params }) { return { props: { world: 'world', params: params || {}, time: new Date().getTime(), random: Math.random(), }, } } export default ({ ...
source/patterns/00-atoms/forms/checkbox/docs/checkbox.example.js
apparena/patterns
import React from 'react'; import { Checkbox, ReactComponent } from 'apparena-patterns-react'; export default class CheckboxExample extends ReactComponent { getInitState() { return { checked1: false, checked2: false }; } handleCheckbox(event) { this.setState({ [`checked${event.targ...
AwesomeProject/index.android.js
mayank-mittal/Handson
/** * 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 AwesomeProject extends Component { render() { return ( <View style={styles.cont...
src/examples/react/hello.js
vinogradov/react-starter-kit
import React from 'react'; import PropTypes from 'prop-types'; import logo from './logo.svg'; export class Hello extends React.Component { constructor(props) { super(props); this.state = {toggle: true}; // We generally recommend binding in the constructor or using the property initializer syntax, //...
src/client/statics/EmptyUserProfile.js
busyorg/busy
import React from 'react'; import { FormattedMessage } from 'react-intl'; const EmptyUserProfile = () => ( <div className="text-center"> <h3> <FormattedMessage id="empty_user_profile" defaultMessage="This user doesn't have any story published yet." /> </h3> </div> ); export def...
src/components/svg/Crane.js
JoeTheDave/onitama
import PropTypes from 'prop-types'; import React from 'react'; export const Crane = ({ fillColor }) => ( <svg width="130px" height="130px" viewBox="0 0 238 228" preserveAspectRatio="xMidYMid meet"> <g transform="translate(0, 228) scale(0.1, -0.1)" fill={fillColor} stroke="none"> <path d="M1553 2184 c-3 -9 ...
scene/AnimatedTimingScene.js
withwind318/RNAppDemos
import React, { Component } from 'react'; import { StyleSheet, View, Image, Dimensions, Text, Animated, Easing, } from 'react-native'; export default class AnimatedTimingScene extends Component { constructor(props) { super(props); this.animatedValue = new Animated.Value(0); } componentDid...
src/index.js
luzeduardo/luzeduardo.github.io
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; import injectTapEventPlugin from 'react-tap-event-plugin'; // Needed for onTouchTap // http://stackoverflow.com/a/34015469/988941 injectTapEventPlugin(); ReactDOM.render( <App />, document.getElementById('r...
src/@ui/inputs/Text/Text.tests.js
NewSpring/Apollos
import React from 'react'; import renderer from 'react-test-renderer'; import Providers from '@ui/TestProviders'; import Icon from '@ui/Icon'; import Text from './'; describe('The Text Input component', () => { it('should render correctly', () => { const tree = renderer.create( <Providers> <Text ...
packages/web/src/components/Blog/PostCard.js
dvaJi/ReaderFront
import React from 'react'; import { useRouter } from 'next/router'; import useIntl from '@hooks/use-intl'; import { Card, CardOverlay, CardHero, CardBody, CardBodyTitle, CardBodyDescription, CardFooter, CardFooterWrapper, CardFooterTag, FlagWrapper } from './styles'; import Flag from '@components/...
classic/src/scenes/traypopout/src/Scenes/UnreadScene/UnreadMailbox/UnreadMailbox.js
wavebox/waveboxapp
import React from 'react' import PropTypes from 'prop-types' import shallowCompare from 'react-addons-shallow-compare' import { accountStore, accountActions } from 'stores/account' import { List, Divider } from '@material-ui/core' import UnreadMailboxControlListItem from './UnreadMailboxControlListItem' import UnreadSe...
src/svg-icons/image/compare.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCompare = (props) => ( <SvgIcon {...props}> <path d="M10 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v2h2V1h-2v2zm0 15H5l5-6v6zm9-15h-5v2h5v13l-5-6v9h5c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/> </SvgIcon> ); ImageCo...
src/svg-icons/device/network-cell.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceNetworkCell = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/><path d="M17 7L2 22h15z"/> </SvgIcon> ); DeviceNetworkCell = pure(DeviceNetworkCell); DeviceNetworkCell.displayNam...
client/sidebar/header/actions/Login.js
VoiSmart/Rocket.Chat
import { Sidebar } from '@rocket.chat/fuselage'; import React from 'react'; import { useSessionDispatch } from '../../../contexts/SessionContext'; import { useTranslation } from '../../../contexts/TranslationContext'; const Login = (props) => { const setForceLogin = useSessionDispatch('forceLogin'); const t = useTr...
src/js/components/Grommet.js
odedre/grommet-final
// (C) Copyright 2016 Hewlett Packard Enterprise Development LP import React from 'react'; import classnames from 'classnames'; const CLASS_ROOT = "grommet"; export default props => { const { children, className, ...restProps } = props; let classes = classnames(CLASS_ROOT, className); return ( <div {...re...
imports/startup/client/routes.js
KyneSilverhide/expense-manager
import React from 'react'; import { render } from 'react-dom'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import { Meteor } from 'meteor/meteor'; import App from '../../ui/layouts/App.js'; import Index from '../../ui/pages/Index.js'; import Login from '../../ui/pages/Login.js'; import Fri...
src/svg-icons/image/image-aspect-ratio.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageImageAspectRatio = (props) => ( <SvgIcon {...props}> <path d="M16 10h-2v2h2v-2zm0 4h-2v2h2v-2zm-8-4H6v2h2v-2zm4 0h-2v2h2v-2zm8-6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H...
app/web/components/buttonMenu/index.js
GilbertLS/MovieCircle
import React from 'react'; import ReactDOM from 'react-dom'; import { Menu, Button, } from 'react-toolbox'; import style from './style.scss'; export default class ButtonMenu extends React.Component { constructor(props) { super(props); this.state = { active: false, }; this.handleOnClick ...
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js
Nedomas/react-router
import React from 'react' class Assignments extends React.Component { render() { return ( <div> <h3>Assignments</h3> {this.props.children || <p>Choose an assignment from the sidebar.</p>} </div> ) } } export default Assignments
lib-es/components/modal/modal.js
bokuweb/re-bulma
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import React, { Component } from 'react'; import PropTypes fr...
src/components/Help.js
kpi-ua/ecampus.kpi.ua
import React, { Component } from 'react'; const link = 'https://a2c27d7243ea.blob.core.windows.net/kpi/files/InstructionTeacherCampusV1.pdf'; class Help extends Component { render() { return ( <div className="row"> <div className="col-md-12"> <h1>Інструкція користувача</h1> <...
src/elements/Label/LabelDetail.js
aabustamante/Semantic-UI-React
import cx from 'classnames' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' function LabelDetail(props) { const { children, className, content } = props const classes = cx('detail', cl...
node_modules/@shoutem/animation/src/animations/FadeOut.js
odapplications/WebView-with-Lower-Tab-Menu
import React, { Component } from 'react'; import { Animated, View } from 'react-native'; import { DriverShape } from '../drivers/DriverShape'; /* * FadeOut Component adds fade out effect to its children components. * Connect it to driver and pass the input range to animate it. * e.g.: * ... * const driver = new Sc...
src/routes/Home/components/HomeView.js
rkram5424/BentoBeats
import React from 'react' import SplitterLayout from 'react-splitter-layout'; import Instrument from '../../Instrument/components/Instrument'; import Mixer from '../../Mixer/components/Mixer'; import Pianoroll from '../../Pianoroll/components/Pianoroll'; import Pattern from '../../Pattern/components/Pattern'; export ...
test/fixtures/webpack-message-formatting/src/AppOutOfScopeImport.js
GreenGremlin/create-react-app
import React, { Component } from 'react'; import myImport from '../OutOfScopeImport'; class App extends Component { render() { return <div className="App">{myImport}</div>; } } export default App;
src/components/GoogleAdv2/GoogleAdv2.js
febobo/react-redux-start
import React, { Component } from 'react'; export default class GoogleAdv2 extends Component { componentDidMount (){ // console.log(adsbygoogle); // (adsbygoogle = window.adsbygoogle || []).push({}); const script2 = document.createElement("script"); script2.id="adv_home"; script2.async =...
src/components/LoginScreen/LoginForm.js
RahulDesai92/PHR
import React, { Component } from 'react'; import { View, Text, StyleSheet, ActivityIndicator, Image, KeyboardAvoidingView, TouchableOpacity } from 'react-native'; import { TextField } from 'react-native-material-textfield'; import MaterialIcon from 'react-...
src/components/TextButton.story.js
creditornot/wolt-web-common
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { withKnobs, boolean, number, select } from '@storybook/addon-knobs'; import CarIcon from '../icons/car.svg'; import TextButton from './TextButton'; storiesOf('TextButton', module) .add...
src/components/TextInput/TextInput.js
Manouli/styleguide
import React from 'react'; import PropTypes from 'prop-types'; import Label from '../Label'; /** Text input with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */ function TextInput({htmlId, name, label, type = "text", required = false, onChange, placehold...
src/client/js/admin/match/Turns.js
GoodBoy123/crendorianinvitational
import React from 'react'; import Actions from './Actions'; import _ from 'lodash'; class Turns extends React.Component { constructor(props) { super(props); this.state = { turns: [ { length:0, actions:[] } ] }; this.handleOnChange = this.handleOnChang...
client/scripts/components/config/declarations/declarations/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Lic...