path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
demo/prism-async-light.js
conorhastings/react-syntax-highlighter
import React from 'react'; import { render } from 'react-dom'; import SyntaxHighlighter from '../src/prism-async-light'; import prismStyles from './styles/prism'; import ExamplesLinks from './examples-links'; import clike from '../src/languages/prism/clike'; import javascript from '../src/languages/prism/javascript'; ...
src/components/common/svg-icons/places/rv-hookup.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesRvHookup = (props) => ( <SvgIcon {...props}> <path d="M20 17v-6c0-1.1-.9-2-2-2H7V7l-3 3 3 3v-2h4v3H4v3c0 1.1.9 2 2 2h2c0 1.66 1.34 3 3 3s3-1.34 3-3h8v-2h-2zm-9 3c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1...
src/components/App.js
HackArdennes2017/Project06
import React from 'react' import { Switch, Route } from 'react-router' import { Provider } from 'react-redux' import routes from 'routes' export default (store, Router, routerProps) => <Provider store={store}> <Router {...routerProps}> <Switch> {routes.map(route => <Route key={route.path} {...rout...
docs/src/CodeExample.js
JimiHFord/react-bootstrap
import React from 'react'; export default class CodeExample extends React.Component { render() { return ( <pre className="cm-s-solarized cm-s-light"> <code> {this.props.codeText} </code> </pre> ); } componentDidMount() { if (CodeMirror === undefined) { ret...
examples/huge-apps/routes/Course/components/Dashboard.js
ryardley/react-router
import React from 'react'; class Dashboard extends React.Component { render () { return ( <div> <h3>Course Dashboard</h3> </div> ); } } export default Dashboard;
client/modules/core/components/.stories/new_poll_form.js
thancock20/voting-app
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { withKnobs, text, boolean, number, object } from '@kadira/storybook-addon-knobs'; import { setComposerStub } from 'react-komposer'; import NewPollForm from '../new_poll_form.jsx'; storiesOf('core.NewPollForm', module) .addDecor...
src/svg-icons/editor/monetization-on.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorMonetizationOn = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1.41 16.09V20h-2.67v-1.93c-1.71-.36-3.16-1.46-3.27-3.4h1.96c.1 1.05.82 1.87 2...
client/modules/App/components/DevTools.js
GTDev87/stylizer
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-w" > <LogMonitor /> ...
src/components/internal/ConfirmationOverlay.js
GetAmbassador/react-ions
import React from 'react' import PropTypes from 'prop-types' import optclass from './OptClass' import Button from '../Button' import colors from '../internal/colors' const ConfirmationOverlay = ({ prompt, handleConfirmation }) => { const getTextStyle = () => { return { fontSize: '14px', fontWeight: '...
app/containers/AlgorithmContainer.js
omeryagmurlu/algoriv
import React, { Component } from 'react'; import _pickBy from 'lodash.pickby'; import _mapValues from 'lodash.mapvalues'; import { makeCancelable, cancelCatch, AlgorithmError } from 'app/utils'; import AnimatorContainer from 'app/containers/AnimatorContainer'; import LoadingView from 'app/views/LoadingView'; const sn...
new-lamassu-admin/src/components/tables/Stripes.js
naconner/lamassu-server
import React from 'react' import { Td } from 'src/components/fake-table/Table' import { ReactComponent as StripesSvg } from 'src/styling/icons/stripes.svg' const Stripes = ({ width }) => ( <Td width={width}> <StripesSvg /> </Td> ) export default Stripes
test/integration/jsconfig-paths/pages/resolve-order.js
flybayer/next.js
import React from 'react' import api from '@lib/api' export default function ResolveOrder() { return <div>{api()}</div> }
docs/src/app/components/pages/components/TextField/ExampleCustomize.js
kittyjumbalaya/material-components-web
import React from 'react'; import TextField from 'material-ui/TextField'; import {orange500, blue500} from 'material-ui/styles/colors'; const styles = { errorStyle: { color: orange500, }, underlineStyle: { borderColor: orange500, }, floatingLabelStyle: { color: orange500, }, floatingLabelFocu...
test/js/AR/onPinchRotateTest.js
viromedia/viro
/** * Copyright (c) 2017-present, Viro Media, 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. */ import Re...
frontend/src/Components/NotFound.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React from 'react'; import PageContent from 'Components/Page/PageContent'; import translate from 'Utilities/String/translate'; import styles from './NotFound.css'; function NotFound({ message }) { return ( <PageContent title={translate('MIA')}> <div className={sty...
src/SideBar/__tests__/SideBar.js
Detaysoft/react-chat-elements
import React, { Component } from 'react'; import { shallow } from 'enzyme'; import toJson from 'enzyme-to-json'; import SideBar from '../SideBar'; describe('SideBar component', () => { it('should render without issues', () => { const component = shallow(<SideBar />); expect(component.length).toBe(1); ex...
node_modules/react-router/es/IndexRoute.js
soniacq/LearningReact
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { component, components, falsy } from './InternalPropTypes'; var func = React.PropTypes.func; /** * An <IndexRoute> i...
frontend/test/app/components/NewsletterFooter-test.js
mathjazz/testpilot
import React from 'react'; import { expect } from 'chai'; import sinon from 'sinon'; import { shallow } from 'enzyme'; import NewsletterFooter from '../../../src/app/components/NewsletterFooter'; describe('app/components/NewsletterFooter', () => { const _subject = (form) => { const props = { newsletterF...
src/routes/Counter/components/Counter.js
Dylan1312/pool-elo
import React from 'react' import Match from './Match' class Counter extends React.Component { constructor(props) { super(props); this.state = { playerOne: "", playerTwo: "", result: "" } this.baseState = this.state } resetState(){ this.state = this.baseState } render(...
src/app/components/public/Details.js
cherishstand/OA-react
import React, { Component } from 'react'; import Header from './Header'; // require('es6-promise').polyfill(); import {Link} from 'react-router' import Subheader from 'material-ui/Subheader'; import AppBar from 'material-ui/AppBar'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton...
src/components/PendingChallengeDetail.js
jrzimmerman/bestrida-rn
import React from 'react'; import { Dimensions, View, StatusBar, Text, TouchableOpacity } from 'react-native'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import SegmentMap from './SegmentMap'; import styles from '../styles/styles'; import pendingStyles from '../styles/pendingSt...
examples/styled-components/src/containers/Home.js
calvinrbnspiess/react-static
import React from 'react' import { getSiteProps } from 'react-static' // import logoImg from '../logo.png' export default getSiteProps(() => ( <div> <h1 style={{ textAlign: 'center' }}>Welcome to</h1> <img src={logoImg} alt="" /> </div> ))
app/containers/NotFoundPage/index.js
thuy616/react-d3-charts
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
packages/core/admin/admin/src/pages/AuthPage/components/Oops/index.js
wistityhq/strapi
import React from 'react'; import { useIntl } from 'react-intl'; import { useQuery } from '@strapi/helper-plugin'; import { Box } from '@strapi/design-system/Box'; import { Main } from '@strapi/design-system/Main'; import { Flex } from '@strapi/design-system/Flex'; import { Link } from '@strapi/design-system/Link'; imp...
client/modules/Search/components/SearchForm/SearchForm.js
XuHaoJun/tiamat
import React from 'react'; class SearchForm extends React.Component { render() { return 'test'; } } export default SearchForm;
src/js/components/Retail/Login/partial/LoginFormOTP.js
ajainsyn/project
import React from 'react'; import { Link } from 'react-router-dom'; const LoginFormOTP = ({...props}) => { return ( <div className="retail-login"> <div className="retail-login-header"> <h3> Enter your One Time Password (OTP) <span className="info-otp">Please check your ...
src/parser/monk/brewmaster/CHANGELOG.js
sMteX/WoWAnalyzer
import React from 'react'; import { emallson, Zerotorescue } from 'CONTRIBUTORS'; import ITEMS from 'common/ITEMS'; import ItemLink from 'common/ItemLink'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; export default [ { date: new Date('2019-04-11'), changes: <>Fixed a bug in...
app/containers/ThemeProvider/index.js
juanda99/arasaac-frontend
/* * * ThemeProvider * * this component connects the redux state theme to the * */ import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider' import { makeSelectDirection } from 'containers/LanguageProvider...
src/components/Link/Link.js
AaronHartigan/DudeTruck
/** * 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-...
src/components/Navigation/SideNavbar.js
strongharris/Dashboard
import React from 'react'; import { Link } from 'react-router-dom'; const SideNavbar = () => { return ( <div id="menubar" className="menubar-inverse "> <div className="menubar-fixed-panel"> <div> <a className="btn btn-icon-toggle btn-default menubar-toggle" data-toggle="menubar" hre...
src/fit-items-popover/index.js
SodhanaLibrary/react-examples
import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import App from './app'; render( <AppContainer><App/></AppContainer>, document.querySelector("#app")); if (module.hot) { module.hot.accept('./app.js', () => { const App = require('./app.js').default; ...
src/components/Popup/Popup.js
Barylskyigb/simple-debts-react-native
import React from 'react'; import { View, KeyboardAvoidingView, Platform, Text, ViewPropTypes } from 'react-native'; import PropTypes from 'prop-types'; import Modal from 'react-native-modal'; import styles from './Popup.styles'; import KeyboardDismissingView from '../KeyboardDismissingView/KeyboardDismissing...
src/botPage/view/react-components/HeaderWidgets.js
binary-com/binary-bot
import React from 'react'; const ServerTime = ({ api }) => { const [hasApiResponse, setHasApiResponse] = React.useState(false); const [date, setDate] = React.useState(); const [dateString, setDateString] = React.useState(); const updateTime = () => { if (!date) return; date.setSeconds...
src/v2/stories/Buttons.stories.js
aredotna/ervell
import React from 'react' import { storiesOf } from '@storybook/react' import theme from 'v2/styles/theme' import Specimen from 'v2/stories/__components__/Specimen' import States from 'v2/stories/__components__/States' import GenericButton from 'v2/components/UI/GenericButton' import { DividerButton, FilledButton } ...
node_modules/react-element-to-jsx-string/AnonymousStatelessComponent.js
Snatch-M/fesCalendar
import React from 'react'; export default function(props) { const {children} = props; // eslint-disable-line react/prop-types return <div>{children}</div>; }
src/components/experience.js
DoWhileGeek/resume
import React from 'react' const PageBreak = () => <div className="page-break" /> export default ({ company, title, dateRange, children, pageBreak = false }) => { return ( <> <div className="experience-container"> <div className="experience-header"> <span> <b>{title}</b> at {c...
frontend/tests/components/Header.spec.js
Svjard/sagedesk
import expect from 'expect'; import React from 'react'; import TestUtils from 'react-addons-test-utils'; import { Header } from 'components/Header'; describe('Header', () => { it('should should show the correct user name', () => { const renderedComponent = TestUtils.renderIntoDocument( <Header /> ); ...
packages/material-ui-icons/src/LibraryAdd.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let LibraryAdd = props => <SvgIcon {...props}> <path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9h-4v4h-2v-4H9V9h4V5h2v4h4v2z" /> </...
src/Parser/Core/Modules/Items/Legion/AntorusTheBurningThrone/TarratusKeystone.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import ItemHealingDone from 'Main/ItemHealingDone'; /* * Tarratus Keystone - * Use: Open a portal at an ally's locati...
modules/RoutingContext.js
Nedomas/react-router
import React from 'react' import invariant from 'invariant' import getRouteParams from './getRouteParams' const { array, func, object } = React.PropTypes /** * A <RoutingContext> renders the component tree for a given router state * and sets the history object and the current location in context. */ const RoutingC...
client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/rates-step/index.js
Automattic/woocommerce-services
/** @format */ /** * External dependencies */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { localize } from 'i18n-calypso'; import { find, forEach, isEmpty, mapValues, some } from 'lodash'; import formatCurre...
packages/react/src/components/UIShell/__tests__/HeaderName-test.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import { mount } from 'enzyme'; import { HeaderName } from '../'; describe('HeaderName', () => { let mockProps;...
app/jsx/navigation_header/trays/GroupsTray.js
djbender/canvas-lms
/* * Copyright (C) 2015 - 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...
test/integration/image-component/custom-resolver/pages/client-side.js
zeit/next.js
import React from 'react' import Image from 'next/image' const myLoader = ({ src, width, quality }) => { return `https://customresolver.com/${src}?w~~${width},q~~${quality}` } const MyImage = (props) => { return <Image loader={myLoader} {...props}></Image> } const Page = () => { return ( <div> <p id=...
internals/templates/containers/HomePage/index.js
VeloCloud/website-ui
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
src/tags/size.js
JimLiu/bbcode-to-react
// https://github.com/vishnevskiy/bbcodejs/blob/master/src/coffee/tags.coffee import React from 'react'; import Tag from '../tag'; export default class SizeTag extends Tag { toHTML() { const size = this.params.size; if (isNaN(size)) { return this.getContent(); } return [`<span style="font-siz...
demo/components/Head.js
flybears/component-react
/** * Created by flybear on 15/11/18. */ import React from 'react' export default class Head extends React.Component { constructor(props) { super(props); this.handleClick = this.handleClick.bind(this); } handleClick(){ console.log("---") } render() { return ( ...
opentech/static_src/src/app/src/components/MessagesList/index.js
OpenTechFund/WebApp
import React from 'react' import PropTypes from 'prop-types' import MessageBar from '@components/MessageBar' const MessagesList = ({ children }) => { return ( <ul className="messages"> { children } </ul> ) } MessagesList.propTypes = { children: PropTypes.oneOfType([PropTypes.a...
server/sonar-web/src/main/js/apps/overview/gate/gate-condition.js
vamsirajendra/sonarqube
import React from 'react'; import { getPeriodLabel, getPeriodDate } from '../helpers/periods'; import { DrilldownLink } from '../../../components/shared/drilldown-link'; import { formatMeasure } from '../../../helpers/measures'; const Measure = React.createClass({ render() { if (this.props.value == null || isN...
examples/simple/src/App.js
treyhoover/react-greedy-text
import React, { Component } from 'react'; import GreedyText from 'react-greedy-text'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <header> <GreedyText> Greedy Text! </GreedyText> </header> <main style={...
components/User/UserProfile/PrivatePublicUserProfile/PrivatePublicUserProfile.js
slidewiki/slidewiki-platform
import PropTypes from 'prop-types'; import React from 'react'; import { List, Segment, Checkbox, Header } from 'semantic-ui-react'; import PublicUserData from '../PublicUserData'; import UserDecks from './UserDecks'; import UserCollections from '../../../DeckCollection/UserCollections'; import UserMenu from './UserMen...
packages/react/src/internal/__tests__/useDelayedState-test.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import { cleanup, render, screen } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import React from 'rea...
packages/core/upload/admin/src/components/EditAssetDialog/RemoveAssetDialog.js
wistityhq/strapi
import React from 'react'; import PropTypes from 'prop-types'; import { ConfirmDialog } from '@strapi/helper-plugin'; import { useRemoveAsset } from '../../hooks/useRemoveAsset'; export const RemoveAssetDialog = ({ onClose, asset }) => { const { isLoading, removeAsset } = useRemoveAsset(onClose); const handleConf...
src/parser/shaman/restoration/modules/spells/HealingRain.js
fyruna/WoWAnalyzer
import React from 'react'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import SPELLS from 'common/SPELLS'; import { TooltipElement } from 'common/Tooltip'; import Analyzer from 'parser/core/Analyzer...
WebApp/wwwroot/ReactApp/src/components/codecamp/speakers/SpeakerListItem.js
pkellner/svcc-react4
import React from 'react'; import PropTypes from 'prop-types'; export default function SpeakerListItem(props) { const { id, firstName, lastName, company, imageUrl } = props; const img = () => { if (process.env.NODE_ENV === 'development') { return ( <img src={`assets/images/speakers/Spe...
docs/src/pages/landing/Sponsors.js
lgollut/material-ui
import React from 'react'; import * as PropTypes from 'prop-types'; import { useSelector } from 'react-redux'; import { makeStyles } from '@material-ui/core/styles'; import NoSsr from '@material-ui/core/NoSsr'; import MarkdownElement from 'docs/src/modules/components/MarkdownElement'; import Container from '@material-u...
app/components/Home.js
albertmejia/empire_room
import React from 'react'; import {home} from '../styles/home.scss'; import Carousel from './Carousel'; import UpcomingEvents from './UpcomingEvents'; import axios from 'axios'; import { WP_DOMAIN } from '../../wp.config'; class Home extends React.Component { constructor(props) { super(props); this...
todo-list/src/List.js
Nodewarrior/react-examples
import React, { Component } from 'react'; const List = props => ( <ul> {props.items.map((item, index) => <li key={index}>{item}</li>)} </ul> ); export default List;
src/components/App.js
tanykim/julie-and-julia
import React, { Component } from 'react'; import Script from './../data/data.json'; import SearchForm from './SearchForm'; import Visualization from './Visualization'; import SecretStory from './SecretStory'; import TextLineList from './TextLineList'; class App extends Component { constructor(props) { super(pro...
src/backward/Widgets/Container.js
sampsasaarela/NativeBase
/* @flow */ import React from 'react'; import { View, Image, ScrollView } from 'react-native'; import { connectStyle } from 'native-base-shoutem-theme'; import { Footer } from '../../basic/Footer'; import { Fab } from '../../basic/Fab'; import _ from 'lodash'; import mapPropsToStyleNames from '../../Utils/mapPropsToSt...
index.js
toubou91/react-lorem
import React from 'react'; import { render } from 'react-dom'; import Lorem from './Lorem'; render( <div> <Lorem /> <Lorem reps={{ times: 4, lineBreak: true }} color={'yellow'} fontSize={'medium'} /> <Lorem color={'blue'} fontSize={30} /> <Lorem color={'rgb(154,67,123)'} fontSize={'large'} /> </div...
client/app/components/IssueIcon/index.js
Kielan/onDemanager
import React from 'react'; class IssueIcon extends React.Component { render() { return ( <svg height="1em" width="0.875em" className={ this.props.className } > <path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.1...
test/specs/shape/PolygonSpec.js
recharts/recharts
import React from 'react'; import { expect } from 'chai'; import { Surface, Polygon } from 'recharts'; import { mount, render } from 'enzyme'; describe('<Polygon />', () => { const points = [ { x: 100, y: 300 }, { x: 300, y: 300 }, { x: 200, y: 50 }, ]; it('Render 1 path in simple Polygon', () => { ...
test/helpers/shallowRenderHelper.js
jc784999074/study-react
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
app/javascript/mastodon/components/button.js
rekif/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class Button extends React.PureComponent { static propTypes = { text: PropTypes.node, onClick: PropTypes.func, disabled: PropTypes.bool, block: PropTypes.bool, secondary: PropTypes....
app/index.js
AidanNichol/stedwards-booking-system
import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import { browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { AppContainer } from 'react-hot-loader'; import {configureStore} from 'store'; import Root from 'containers/Root'; //...
src/product.js
slx-dev/react-testing
import React from 'react'; import {Row,Col} from 'reactstrap'; import PRODUCTS from './products.json'; // import Gallery from './gallery'; var $ = require ('jquery'); export default class Product extends React.Component { render() { var getProductData = id => $.grep(PRODUCTS, function(e){ retu...
analysis/demonhuntervengeance/src/modules/talents/SpiritBombSoulsConsume.js
anom0ly/WoWAnalyzer
import { t } from '@lingui/macro'; import { formatPercentage } from 'common/format'; import SPELLS from 'common/SPELLS'; import { SpellLink } from 'interface'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import BoringSpellValueText from 'parser/ui/BoringSpe...
docs/src/Routes.js
wjb12/react-bootstrap
import React from 'react'; import Root from './Root'; import HomePage from './HomePage'; import IntroductionPage from './IntroductionPage'; import GettingStartedPage from './GettingStartedPage'; import ComponentsPage from './ComponentsPage'; import SupportPage from './SupportPage'; import NotFoundPage from './NotFound...
src/routes/Recover/components/EmailForm/EmailForm.js
ronihcohen/magic-vote
import React from 'react' import PropTypes from 'prop-types' import { Field, reduxForm } from 'redux-form' import { TextField } from 'redux-form-material-ui' import RaisedButton from 'material-ui/RaisedButton' import { required, email } from 'utils/forms' import { RECOVER_EMAIL_FORM_NAME } from 'constants' import class...
node_modules/react-navigation/src/routers/__tests__/StackRouter-test.js
aksharora/ReactNativeDemoBasic
/* @flow */ import React from 'react'; import StackRouter from '../StackRouter'; import TabRouter from '../TabRouter'; import NavigationActions from '../../NavigationActions'; const ListScreen = () => <div />; const ProfileNavigator = () => <div />; ProfileNavigator.router = StackRouter({ list: { path: 'list...
src/articles/Single.js
NewSpring/Apollos
import React from 'react'; import { ScrollView } from 'react-native'; import { compose, mapProps, pure } from 'recompose'; import withArticle from '@data/withArticle'; import withCachedContent from '@data/withCachedContent'; import BackgroundView from '@ui/BackgroundView'; import Header from '@ui/Header'; import Conte...
frontend/app/js/components/settings/plugins/index.js
serverboards/serverboards
import React from 'react' import rpc from 'app/rpc' import Flash from 'app/flash' import PluginDetails from './details' import plugin from 'app/utils/plugin' import {merge, object_list_to_map} from 'app/utils' import event from 'app/utils/event' import i18n from 'app/utils/i18n' import {set_modal, goto} from 'app/utils...
test/CategorizedTagInput_spec.js
mvader/react-categorized-tag-input
import expect from 'expect'; import React from 'react'; import TestUtils from 'react-addons-test-utils'; import jsdomReact from './jsdomReact'; import CategorizedTagInput from '../src/CategorizedTagInput.jsx'; describe('CategorizedTagInput', () => { jsdomReact(); });
modules/__tests__/transitionHooks-test.js
dmitrigrabov/react-router
/*eslint-env mocha */ /*eslint react/prop-types: 0*/ import expect, { spyOn } from 'expect' import React from 'react' import createHistory from 'history/lib/createMemoryHistory' import execSteps from './execSteps' import Router from '../Router' describe('When a router enters a branch', function () { let node, Dashb...
1m_Redux_Lynda/Ex_Files_Learning_Redux/Exercise Files/Ch05/05_03/finished/src/index.js
yevheniyc/C
import C from './constants' import React from 'react' import { render } from 'react-dom' import routes from './routes' import sampleData from './initialState' import storeFactory from './store' import { Provider } from 'react-redux' import { addError } from './actions' const initialState = (localStorage["redux-store"]...
src/react.js
joshblack/redux
import React from 'react'; import createAll from './components/createAll'; export const { Provider, Connector, provide, connect } = createAll(React);
src/__tests__/Popup.js
snario/react-mapbox-gl
import React from 'react'; jest.dontMock('../BaseTileLayer'); jest.dontMock('../MapComponent'); jest.dontMock('../MapLayer'); jest.dontMock('../PopupContainer'); jest.dontMock('../Map'); jest.dontMock('../Marker'); jest.dontMock('../Popup'); jest.dontMock('../TileLayer'); jest.dontMock('../index'); const {Map, Marker...
src/components/about.js
MichaelMansourati/earCamera
import React from 'react' import { Helmet } from 'react-helmet' import '../styles/about.css' const About = () => ( <div className="page-goes-here" id="about"> <Helmet> <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrit...
fixtures/kitchensink/src/features/webpack/UnknownExtInclusion.js
saschatimme/reason-react-scripts
/** * 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. */ import Rea...
frontend/sections/timeline/explore/explore.js
apostolidhs/wiregoose
import isEmpty from 'lodash/isEmpty'; import React from 'react'; import PropTypes from 'prop-types'; import CSSModules from 'react-css-modules'; import { LinkContainer } from 'react-router-bootstrap'; import Nav from 'react-bootstrap/lib/Nav'; import NavItem from 'react-bootstrap/lib/NavItem'; import Panel from 'react-...
docs/src/sections/ReferListSection.js
tigerandgirl/ssc-refer
import React from 'react'; import PropTable from '../PropTable'; import Anchor from '../Anchor'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function ReferListSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> ...
src/containers/search_result_list.js
etchoi/theTenSpot
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import axios from 'axios'; import { showItem } from '../actions'; class SearchResultList extends Component { formatPrice(str) { let price = parseInt(str); return (price/100).toFixed(...
webpack/scenes/Subscriptions/components/SubscriptionsToolbar/SubscriptionsToolbar.js
mccun934/katello
import React from 'react'; import PropTypes from 'prop-types'; import { Row, Col, Form, FormGroup, Button } from 'patternfly-react'; import { LinkContainer } from 'react-router-bootstrap'; import { noop } from 'foremanReact/common/helpers'; import { translate as __ } from 'foremanReact/common/I18n'; import Search from...
src/components/Home/break.js
pritchardtw/ReactPersonalSite
import React, { Component } from 'react'; export default class Break extends Component { render() { return ( <div className="break"> </div> ); } }
frontend/src/clue.js
wadobo/socializa
import React from 'react'; import { withRouter } from 'react-router'; import Purifier from 'html-purify'; import { user, getIcon } from './auth'; import Bucket from './bucket'; import Loading from './loading'; import API from './api'; import { EventSolveOpt } from './eventsolve'; import { ResolvableComponent } from '....
src/index.js
spirosikmd/reflow
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; const root = document.getElementById('root'); ReactDOM.render(<App />, root); if (module.hot) { module.hot.accept('./App', () => { const NextApp = require('./App').default; ReactDOM.render(<NextApp />, root); }); }
src/give/AddAccount/Failure.js
NewSpring/Apollos
import React from 'react'; import PropTypes from 'prop-types'; import styled from '@ui/styled'; import PaddedView from '@ui/PaddedView'; import Icon from '@ui/Icon'; import { H3, H4, BodyText } from '@ui/typography'; import { withTheme } from '@ui/theme'; import Button, { ButtonLink } from '@ui/Button'; import WebBrows...
server/sonar-web/src/main/js/apps/overview/main/main.js
vamsirajendra/sonarqube
import _ from 'underscore'; import moment from 'moment'; import React from 'react'; import { GeneralDebt } from './debt'; import { GeneralCoverage } from './coverage'; import { GeneralDuplications } from './duplications'; import { GeneralStructure } from './structure'; import { CoverageSelectionMixin } from '../compon...
src/routes/contact/Contact.js
stanxii/laiico
/** * 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-...
src/main.js
EragonJ/Kaku
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import Electron, { ipcRenderer as IpcRenderer, shell as Shell, remote as Remote, } from 'electron'; const Dialog = Remote.dialog; const App = Remote.app; import ReactTooltip from 'react-tooltip'; // general modules import ErrorMonitor ...
src/components/MinimapZoom/Minimap.js
vogelino/design-timeline
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createScaleFunction, getLanes } from '../../helpers/timelineHelper'; import { SIDEBAR_WIDTH, TOPICS_LIST_WIDTH, MINIMAP_MARGIN } from '../../redux/constants/uiConstants'; import EventsLane from '../EventsLane/...
js/jqwidgets/demos/react/app/tabs/defaultfunctionality/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTabs from '../../../jqwidgets-react/react_jqxtabs.js'; import JqxCheckBox from '../../../jqwidgets-react/react_jqxcheckbox.js'; class App extends React.Component { componentDidMount() { this.refs.animation.on('change', (event) => { ...
src/components/counts/ShortCountVol.js
availabs/avail_app_bootstrap
import React from 'react'; import StackedBarGraph from '../graphs/StackedBarGraph'; import directionCodes from '../utils/directionCodes'; class ShortCountVol extends React.Component { render() { var data = this.props.data; var countDate = `${data.month}/${data.dayOfFirstData}/${data.year}`; var infoTable...
test/fixtures/stateless-assignment/expected.js
layershifter/babel-plugin-transform-react-handled-props
import PropTypes from 'prop-types'; import React from 'react'; const Example = function () { return <div />; }; Example.handledProps = ["active", "children", "className"]; Example.defaultProps = { active: true }; Example.propTypes = { children: PropTypes.node, className: PropTypes.string }; export default Exa...
node_modules/semantic-ui-react/src/modules/Popup/PopupContent.js
mowbell/clickdelivery-fed-test
import cx from 'classnames' import PropTypes from 'prop-types' import React from 'react' import { createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' /** * A PopupContent displays the content body of a Popover. */ export default function PopupContent(props)...
src/client/index.js
playnogames/stacks
import React from 'react'; import ReactDom from 'react-dom'; import App from './components/App'; import './scss/index.scss'; ReactDom.render( <App />, document.getElementById('app') );
client/components/requestUApproved.js
marhyorh/booktrade
import React from 'react'; export default (props) => { const onRemove = (book, event) => { event.preventDefault(); Meteor.call('book.unApprove', book); } const reqApproved = () => { return props.books.map(book => { return ( <li className="list-group-item" key={book._id}> {bo...
src/components/VenueList.js
mgaebler/kicknow-client-web
import React from 'react' export default class VenueList extends React.Component { render () { function generateVenueButton (venue){ return ( <a className="list-group-item" href={`/location/add/${venue.id}`} key={venue.id} > <h4 className="list-grou...
node_modules/react-bootstrap/es/MediaHeading.js
soniacq/LearningReact
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 ...