path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
examples/src/App.js
Chrisui/react-hotkeys
import { HotKeys, GlobalHotKeys, ObserveKeys, getApplicationKeyMap } from 'react-hotkeys'; import React from 'react'; import Node from './Node'; import HOCWrappedNode from './HOCWrappedNode'; const keyMap = { DELETE: { name: 'Disable square', sequence: 'backspace', action: 'keyup'}, EXPAND: { name: 'Expand square...
src/helpers/validation/getErrorMessage.js
expdevelop/ultrastore
import React from 'react' import Container from 'components/Container/Container' import List from 'components/List/List' import Title from 'components/Title/Title' import isEmpty from '../app/isEmpty' export default function getErrorMessage(err, isReact) { if (isEmpty(err)) return null; if (typeof err === 'st...
src/js/components/icons/base/History.js
linde12/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...
react-apollo/src/containers/NotFoundPage/index.js
strapi/strapi-examples
/** * * NotFoundPage * This is the component that will show when you have a 404 */ import React from 'react'; function NotFoundPage(props) { return ( <div> <p>The page you're looking for doesn't exist.</p> </div> ); } export default NotFoundPage;
app/components/PointListItem/index.js
GuiaLa/guiala-web-app
/** * * PointListItem * */ import React from 'react'; import { Link } from 'react-router'; import {Card, CardActions, CardMedia, CardTitle, CardText} from 'material-ui/Card'; import Star from 'Star'; import AddToItinerary from 'AddToItinerary'; import FlatButton from 'material-ui/FlatButton'; import MoreHoriz from '...
frontend/src/components/Timer/index.js
XiaocongDong/mongodb-backup-manager
import React, { Component } from 'react'; import time from 'utility/time'; export default class Timer extends Component { constructor(props) { super(props); this.timer = null; this.state = { remain: null }; this.getRemain = this.getRemain.bind(this); th...
core/js/index.js
orgdown/orgdown-notebook
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(( <App /> ), document.getElementById('content'));
fields/types/location/LocationFilter.js
asifiqbal84/keystone
import _ from 'underscore'; import classNames from 'classnames'; import React from 'react'; import { FormField, FormInput, FormRow, SegmentedControl } from 'elemental'; const MODE_OPTIONS = [ { label: 'Exactly', value: 'exactly' }, { label: 'Contains', value: 'contains' } ]; const TOGGLE_OPTIONS = [ { labe...
src/svg-icons/action/flip-to-back.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFlipToBack = (props) => ( <SvgIcon {...props}> <path d="M9 7H7v2h2V7zm0 4H7v2h2v-2zm0-8c-1.11 0-2 .9-2 2h2V3zm4 12h-2v2h2v-2zm6-12v2h2c0-1.1-.9-2-2-2zm-6 0h-2v2h2V3zM9 17v-2H7c0 1.1.89 2 2 2zm10-4h2v-2h-2...
examples/example-react/components/Header.js
risetechnologies/fela
import React from 'react' import { createComponentWithProxy } from 'react-fela' const Header = ({ title, className }) => ( <div className={className}>{title}</div> ) const rule = () => ({ '@media (min-width: 1024px)': { color: 'red', }, color: 'rgb(50, 50, 50)', fontSize: 100, padding: 50, ':hover':...
src/svg-icons/places/beach-access.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesBeachAccess = (props) => ( <SvgIcon {...props}> <path d="M13.127 14.56l1.43-1.43 6.44 6.443L19.57 21zm4.293-5.73l2.86-2.86c-3.95-3.95-10.35-3.96-14.3-.02 3.93-1.3 8.31-.25 11.44 2.88zM5.95 5.98c-3.94 3.95...
code-samples/js/ViroMediaPlayer/Viro360Theatre.js
viromedia/viro
'use strict'; /** * Pull in all imports required for the controls within this scene. */ import React, { Component } from 'react'; import {StyleSheet} from 'react-native'; import { AppRegistry, ViroScene, ViroVideo, ViroSceneNavigator, ViroMaterials, Viro360Video, ViroButton, ViroImage, ViroNode, ...
website/components/Navbar/utils/makeSection.js
Pop-Code/keystone
import React from 'react'; import Link from 'gatsby-link'; import Item from '../Item'; export default function makeSection (currentPath, layer, pathname) { return layer.map((section, idx) => { const locationArray = pathname.split('/'); const currentSection = locationArray[locationArray.length - 1]; const menuI...
docs/app/Examples/elements/Segment/Groups/SegmentExampleSegments.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentExampleSegments = () => ( <Segment.Group> <Segment>Top</Segment> <Segment>Middle</Segment> <Segment>Middle</Segment> <Segment>Middle</Segment> <Segment>Bottom</Segment> </Segment.Group> ) export default SegmentE...
packages/icons/src/public.js
yldio/joyent-portal
import React from 'react'; import Rotate from './rotate'; import calcFill from './fill'; export default ({ fill = null, light = false, disabled = false, direction = 'down', colors = {}, style = {}, ...rest }) => ( <Rotate direction={direction}> {({ style: rotateStyle }) => ( <svg vie...
app/containers/Web3Alerts/NoInjected.js
VonIobro/ab-web
import React from 'react'; import { Wrapper } from './styles'; const NoInjected = () => ( <Wrapper theme="warning"> <h2>Account doesn´t exists or locked</h2> <p> Please, create or unlock MetaMask account </p> </Wrapper> ); export default NoInjected;
src/components/cv.js
ateixeira/andreteixeira.info
import React from 'react'; import Info from "./cv/info" import WorkExperience from "./cv/workexperience" import AwardsSkills from "./cv/awardskills" import data from "../data/seed" module.exports = React.createClass({ // RENDER render: function() { return ( <div className="cv"> ...
src/components/layout/sidebar/Sidebar.js
Gisto/Gisto
import React from 'react'; import { isEmpty, map, trim, startCase } from 'lodash/fp'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import styled, { withTheme } from 'styled-components'; import { SIDEBAR_WIDTH } from 'constants/config'; import { filterSnippetsList, isTag } from 'utils/snip...
fields/components/columns/ArrayColumn.js
tony2cssc/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue'; var ArrayColumn = React.createClass({ displayName: 'ArrayColumn', propTypes: { col: React.PropTypes.object, ...
blueocean-material-icons/src/js/components/svg-icons/image/brightness-2.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageBrightness2 = (props) => ( <SvgIcon {...props}> <path d="M10 2c-1.82 0-3.53.5-5 1.35C7.99 5.08 10 8.3 10 12s-2.01 6.92-5 8.65C6.47 21.5 8.18 22 10 22c5.52 0 10-4.48 10-10S15.52 2 10 2z"/> </SvgIcon> ); ImageBrightness2.displayName = 'Im...
imports/ui/containers/feed/commentItem.js
jiyuu-llc/jiyuu
import React from 'react'; import { composeWithTracker } from 'react-komposer'; import { Comments } from '/lib/collections'; import {CommentItem} from '../../components/feed/commentItem.jsx'; const composer = ( postId, onData ) => { if (Meteor.subscribe('comments').ready()) { var comment = Comments.findO...
app/client/containers/DevTools/index.js
bhargav175/dictionary-offline
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="H" changePositionKey="W"> <LogMonitor /> </Dock...
Shuttle.ProcessManagement/site.react/src/Alerts.js
Shuttle/Shuttle.Esb.Samples
import React from 'react'; import Alert from 'react-bootstrap/Alert' import state from './state'; export default class Alerts extends React.Component { render() { if (!state.alerts.messages) { return undefined; } return state.alerts.messages.map(message => ( <Alert ...
src/Parser/Paladin/Retribution/Modules/PaladinCore/BoWProcTracker.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import { formatNumber, formatPercentage } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import Combatants from 'Parser/Core/Modul...
react/src/index.js
tbauer516/rpimirror
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/Option.js
hannahsquier/react-select
import React from 'react'; import classNames from 'classnames'; const Option = React.createClass({ propTypes: { children: React.PropTypes.node, className: React.PropTypes.string, // className (based on mouse position) instancePrefix: React.PropTypes.string.isRequired, // unique prefix for the ids (...
lib-es/elements/addons.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...
bai/src/pages/About/index.js
blackinai/blackinai.github.io
import { CssBaseline, ThemeProvider } from '@material-ui/core'; import React from 'react'; import AboutHeader from '../../components/AboutHeader'; import CommunityValues from '../../components/CommunityValues'; import Footer from '../../components/Footer'; import JoinUs from '../../components/JoinUs'; import Navbar fro...
react-shrine-network-aware-code-splitting/src/components/ProductImage/ProductZoomImage/ProductZoomImage.js
GoogleChromeLabs/adaptive-loading
/* * Copyright 2019 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
docs/src/new-components/basics/tooltip/TooltipNote.stories.js
storybooks/react-storybook
import React from 'react'; import { storiesOf } from '@storybook/react'; import WithTooltip from './WithTooltip'; import TooltipNote from './TooltipNote'; storiesOf('basics/tooltip/TooltipNote', module) .addParameters({ component: TooltipNote, }) .addDecorator(storyFn => ( <div style={{ height: '300px' ...
test/integration/css-fixtures/single-global-src/src/pages/_app.js
azukaru/next.js
import React from 'react' import App from 'next/app' import '../../styles/global.css' class MyApp extends App { render() { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
teoria02/componentes/UnaTarea.js
mart-dominguez/OFA2017-S01-C02
import React from 'react'; import EditarUnaTarea from './EditarUnaTarea'; class UnaTarea extends React.Component { constructor(props) { super(props); this.state = {editar:false}; this.toggleEditar = this.toggleEditar.bind(this); } toggleEditar(){ let aux = !this.state.editar; this.s...
src/components/Book/Main/Views/Common/tpl.js
LifeSourceUA/lifesource.ua
/** * [IL] * Library Import */ import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; /** * [IS] * Style Import */ import Styles from './Styles/main.scss'; import Grid from 'theme/Grid.scss'; import Palette from 'theme/Palette'; /** * [IBP] * Pixel Perfect and Breakpoints ...
packages/editor/src/components/Icons/List.js
strues/boldr
import React from 'react'; import Icon from './Icon'; const List = props => ( <Icon viewBox="0 0 512 512" {...props}> <path d="M500 124H140c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h360c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm12 148v-32c0-6.627-5.373-12-12-12H140c-6.627 0-12 5.373-12 12v32c0 6....
src/svg-icons/action/open-in-new.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionOpenInNew = (props) => ( <SvgIcon {...props}> <path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/> </SvgIcon> );...
src/parser/warrior/arms/CHANGELOG.js
sMteX/WoWAnalyzer
import React from 'react'; import { Aelexe, Zerotorescue, Sharrq, Matardarix, Korebian } from 'CONTRIBUTORS'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; export default [ { date: new Date('2019-02-03'), changes: <>Added a suggestion to not use <SpellLink id={SPELLS.SWEEPING_...
src/app-client.js
keshan3262/weather
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import {Provider} from 'react-redux'; import configureStore from './stores/configureStore'; import Layout from './components/Layout'; import LoginPage from './components/LoginPage'; imp...
datarequester/src/App.js
e-nettet/CustomerConsentWallet
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; import NavBar from './NavBar.js'; import ApplyForConcentForm from './ApplyForConcentForm.js'; class App extends Component { render() { return ( <div> <NavBar /> <div className="container theme-showc...
tests/react_children/tabs.js
MichaelDeBoey/flow
// @flow /** * This test represents a pattern which is commonly used to make tab bars, but * this pattern is also used in many other places. */ import React from 'react'; class Tab extends React.Component<{}, void> {} class NotTab extends React.Component<{}, void> {} type TabBarNode = | void | null | boole...
front/client/components/CommunityList/index.js
ytorii/tebukuro
import React from 'react' import CommunityListModel from '../../models/CommunityList' const CommunityList = ({CommunityList}) => { return ( <table> <thead> <tr> <th>name</th> </tr> </thead> <tbody> { CommunityList.communities.map((community) => { ...
packages/react-vis/src/legends/discrete-color-legend.js
uber/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
app/javascript/mastodon/features/domain_blocks/index.js
pinfort/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debou...
src/SegmentedControl/macOs/Tabs/index.js
gabrielbull/react-desktop
import React, { Component } from 'react'; import Tab from './Tab'; import styles from '../style/10.11'; class Tabs extends Component { select(item) { this.refs[item.props.tabId].setState({ selected: true }); } unselect(item) { this.refs[item.props.tabId].setState({ selected: false }); } render() { ...
packages/icons/src/md/image/CameraRoll.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdCameraRoll(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M28 11h16v30H28c0 2.21-1.79 4-4 4H8c-2.21 0-4-1.79-4-4V11c0-2.21 1.79-4 4-4h2V5c0-1.1.9-2 2-2h8c1.1 0 2 .9 2 2v2h2c2.21 0 4 1.79 4 4zm-4 26v-4h-4v...
node_modules/semantic-ui-react/src/collections/Form/FormSelect.js
mowbell/clickdelivery-fed-test
import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' import Select from '../../addons/Select' import FormField from './FormField' /** * Sugar for <Form.Field control={Select} />. * @see Form * @see Select */ function FormSelect(props) { const { ...
src/bookmarks/BookmarkButton.js
Sekhmet/busy
import React from 'react'; import { injectIntl } from 'react-intl'; import { SimpleTooltipOrigin } from '../widgets/tooltip/SimpleTooltip'; import Icon from '../widgets/Icon'; const BookmarkButton = ({ post, bookmarks, toggleBookmark, intl }) => <SimpleTooltipOrigin message={ intl.formatMessage({ id: bookm...
app/pods/mockup/builder/container.js
slightlytyler/mocksy
'use strict' import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { setCurrentTemplate } from 'pods/templates/actions'; import { currentTemplateSelector, currentTemplateSetIdSelector, currentTemplateSetSelector } from 'pods/templates/selectors'; ...
libs/composites/interfaces/react-dom-server-interface-composite.js
tuantle/hyperflow
/** * Copyright 2018-present Tuan Le. * * Licensed under the MIT License. * You may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://opensource.org/licenses/mit-license.html * * Unless required by applicable law or agreed to in writing, software * d...
src/components/Homepage.js
NemethNorbert/restaurant-website
import React from 'react'; import Slider from 'react-slick'; import LeftArrow from './LeftArrow'; import RightArrow from './RightArrow'; import {NavLink} from 'reactstrap'; import { NavLink as RRNavLink } from 'react-router-dom'; class Homepage extends React.PureComponent { render() { const settings = { in...
spec/javascripts/jsx/gradezilla/default_gradebook/components/AssignmentColumnHeaderSpec.js
venturehive/canvas-lms
/* * Copyright (C) 2017 - 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...
assets/javascripts/kitten/components/action/social-button-icon/stories.js
KissKissBankBank/kitten
import React from 'react' import { FacebookButtonIcon, TwitterButtonIcon, LinkedinButtonIcon, InstagramButtonIcon, YoutubeButtonIcon, } from './index' import { DocsPage } from 'storybook/docs-page' export default { component: SocialButtonIcon, title: 'Action/SocialButtonIcon', parameters: { docs: {...
node_modules/react-images/src/components/Header.js
ed1d1a8d/macweb
import PropTypes from 'prop-types'; import React from 'react'; import { css, StyleSheet } from 'aphrodite/no-important'; import defaults from '../theme'; import { deepMerge } from '../utils'; import Icon from './Icon'; function Header ({ customControls, onClose, showCloseButton, closeButtonTitle, ...props, }, { ...
react-router-tutorial/lessons/11-productionish-server/modules/Repos.js
zerotung/practices-and-notes
import React from 'react' import NavLink from './NavLink' export default React.createClass({ render() { return ( <div> <h2>Repos</h2> <ul> <li><NavLink to="/repos/reactjs/react-router">React Router</NavLink></li> <li><NavLink to="/repos/facebook/react">React</NavLink></l...
src/svg-icons/social/party-mode.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPartyMode = (props) => ( <SvgIcon {...props}> <path d="M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 3c1.63 0 3.06.79 3.98 2H12c-1.66 0-3 1.34-3 3 0 ....
packages/core/__deprecated__/Arwes/sandbox.js
romelperez/arwes
import React from 'react'; import Arwes from './index'; export default () => ( <Arwes animate background='/images/background.jpg' pattern='/images/glow.png'> <h2>SciFi UI Framework</h2> <p> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dol...
src/components/seo.js
benjaminmodayil/modayilme
import React from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import { StaticQuery, graphql } from 'gatsby'; function SEO({ description, lang, meta, keywords, title }) { return ( <StaticQuery query={detailsQuery} render={(data) => { const metaDescription = ...
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...
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...
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...
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...
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...