path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
src/components/EditHost.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import { get } from 'lodash';
import { FormattedMessage } from 'react-intl';
import withIntl from '../lib/withIntl';
import styled from 'styled-components';
import { Flex, Box } from '@rebass/grid';
import { Radio } from '@material-ui/core';
import CreateH... |
amartonline-ui/src/components/app/app.js | gruberchris/AmartOnline | import React, { Component } from 'react';
import { Grid } from 'react-bootstrap';
import { Route, Switch } from 'react-router-dom';
import axios from 'axios';
import Header from '../header/header';
import Home from '../home/home';
import Orders from '../orders/orders';
import ShoppingCart from '../shoppingCart/shopping... |
RNAPPDemo/ReactComponent/node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js | xuchengcheng/RNAPPDemo | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
app/javascript/mastodon/features/blocks/index.js | increments/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import LoadingIndicator from '../../components/loading_indicator';
import { ScrollContainer } from 'react-router-scroll-4';
import Column from '../ui/componen... |
src/components/buttons/toggleDocProperties.js | DictumMortuum/dictum-dev | 'use strict';
import React from 'react';
import IconButton from 'material-ui/IconButton';
import Settings from 'material-ui/svg-icons/action/settings';
import { createSelector } from 'reselect';
import { connect } from 'react-redux';
import { Config } from '../../redux/actions';
class tpl extends React.Component {
... |
App/web/src/js/main.js | javierarmendariz/react-flux-material-design | import React from 'react';
import ReactDOM from 'react-dom';
import Scaffold from './views/scaffold/scaffold';
import injectTapEventPlugin from 'react-tap-event-plugin';
import AppCanvas from 'material-ui/lib/app-canvas';
injectTapEventPlugin();
ReactDOM.render(<AppCanvas><Scaffold /></AppCanvas>, document.getElementB... |
app/components/PostForm/ImageUploader.js | vlastoun/picture-uploader-crud | import React from 'react';
import PropTypes from 'prop-types';
import Script from 'react-load-script';
import RaisedButton from 'material-ui/RaisedButton';
const SCRIPT_URL = '//widget.cloudinary.com/global/all.js';
const buttonStyle = {
marginTop: '2em',
};
/* eslint-disable react/prefer-stateless-function */
/* es... |
src/pages/about.js | elliotschultz/gatsby-portfolio-test | import React from 'react'
import { Redirect } from 'react-router';
import Link from 'gatsby-link'
import styled, { keyframes } from 'styled-components'
import { GridProvider, Grid, Row, Col } from 'zooper-grid'
import * as theme from '../theme'
const AboutPage = () =>
<SiteWrapper>
<AboutWrap>
<Title>
... |
examples/IconSizes.js | mattBlackDesign/react-materialize | import React from 'react';
import Section from '../src/Section';
import Icon from '../src/Icon';
import Row from '../src/Row';
import Col from '../src/Col';
export default
<Section>
<Row className='center'>
<Col s={3}>
<Icon tiny>insert_chart</Icon>
<p>tiny</p>
</Col>
<Col s={3}>
<Icon ... |
webnn/src/App.js | lcgong/alchemy | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h1 className="App-title">Welco... |
client/components/AboutProfile.js | LinearAtWorst/cogile | import React, { Component } from 'react';
class AboutProfile extends Component {
render() {
return (
<div className="col-md-3">
<h3 className="about-names">{this.props.name}</h3>
<div className="img-container"><img className="about-img" src={this.props.image}></img>
</div>
<... |
src/DropdownButton.js | adampickeral/react-bootstrap | import React from 'react';
import BootstrapMixin from './BootstrapMixin';
import Dropdown from './Dropdown';
import NavDropdown from './NavDropdown';
import CustomPropTypes from './utils/CustomPropTypes';
import deprecationWarning from './utils/deprecationWarning';
import omit from 'lodash/object/omit';
class Dropdown... |
webapp/app/components/CreateUser/Form/index.js | EIP-SAM/SAM-Solution-Node-js | //
// Component form in create user page
//
import React from 'react';
import Username from 'containers/CreateUser/Form/Username';
import Email from 'containers/CreateUser/Form/Email';
import Password from 'containers/CreateUser/Form/Password';
import PasswordConfirmation from 'containers/CreateUser/Form/PasswordConfi... |
addons/knobs/src/components/__tests__/Panel.js | jribeiro/storybook | import React from 'react';
import { shallow } from 'enzyme'; // eslint-disable-line
import Panel from '../Panel';
describe('Panel', () => {
it('should subscribe to setKnobs event of channel', () => {
const testChannel = { on: jest.fn() };
const testApi = { onStory: jest.fn() };
shallow(<Panel channel={te... |
internals/templates/app.js | andyfrith/weather.goodapplemedia.com | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
impor... |
src/svg-icons/image/brush.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrush = (props) => (
<SvgIcon {...props}>
<path d="M7 14c-1.66 0-3 1.34-3 3 0 1.31-1.16 2-2 2 .92 1.22 2.49 2 4 2 2.21 0 4-1.79 4-4 0-1.66-1.34-3-3-3zm13.71-9.37l-1.34-1.34c-.39-.39-1.02-.39-1.41 0L9 12.25... |
containers/App.js | hutsi/bookkeeping | import React from 'react';
import { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles';
import { blue } from '@material-ui/core/colors';
import Paper from '@material-ui/core/Paper';
import Header from '../components/Header';
const theme = createMuiTheme({
palette: {
primary: blue,
},
typogra... |
src/examples/example-mouseover/example-mouseover.js | smollweide/react-speed-dial | import React from 'react';
import Avatar from 'material-ui/Avatar';
import { blue500 } from 'material-ui/styles/colors';
import IconEdit from 'material-ui/svg-icons/image/edit';
import { SpeedDial, BubbleList, BubbleListItem } from '../../speed-dial';
import fakerImage from '../faker-image';
const list = {
items: [
... |
tests/routes/Home/components/HomeView.spec.js | taikongfeizhu/webpack-develop-startkit | import React from 'react'
import { HomeView } from 'routes/Home/components/HomeView'
import { render } from 'enzyme'
describe('(View) Home', () => {
let _component
beforeEach(() => {
_component = render(<HomeView />)
})
it('Renders a welcome message', () => {
const welcome = _component.find('h4')
... |
app/javascript/mastodon/features/video/index.js | pinfort/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { is } from 'immutable';
import { throttle, debounce } from 'lodash';
import classNames from 'classnames';
import { isFullscreen, requestFullscreen, exitFullscreen } from '../... |
webpack/move_to_pf/LoadingState/LoadingState.js | tstrachota/katello | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Spinner } from 'patternfly-react';
import './LoadingState.scss';
class LoadingState extends Component {
constructor(props) {
super(props);
this.state = {
render: false,
};
}
componentDidMount() {
setTime... |
app/javascript/mastodon/features/account_gallery/index.js | kazh98/social.arnip.org | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { fetchAccount } from 'mastodon/actions/accounts';
import { expandAccountMediaTimeline } from '../../actions/timelines';
import LoadingIndicator from '... |
packages/recon-engine/src/engine/__tests__/__fixtures__/basic-app/src/button.js | recon-js/recon | /* eslint-disable */
import React from 'react';
export default function Button({theme, children}) {
return <button color={theme}>{children}</button>;
}
|
react/Text/Text.sketch.js | seekinternational/seek-asia-style-guide | import React from 'react';
import mapKeys from 'lodash/mapKeys';
import Text from './Text';
export const text = {
'Screaming': <Text screaming>Screaming text</Text>,
'Yelling': <Text yelling>Yelling text</Text>,
'Shouting': <Text shouting>Shouting text</Text>,
'Waving': <Text waving>Waving text</Text>,
'Whis... |
docs/app/Examples/elements/Header/Types/HeaderExampleContent.js | koenvg/Semantic-UI-React | import React from 'react'
import { Header } from 'semantic-ui-react'
const HeaderExampleContent = () => (
<div>
<Header size='huge'>Huge Header</Header>
<Header size='large'>Large Header</Header>
<Header size='medium'>Medium Header</Header>
<Header size='small'>Small Header</Header>
<Header size=... |
src/client/components/pages/entities/title.js | bookbrainz/bookbrainz-site | /*
* Copyright (C) 2017 Ben Ockmore
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distr... |
modules/Link.js | djkirby/react-router | import React from 'react'
import invariant from 'invariant'
import { routerShape } from './PropTypes'
import { ContextSubscriber } from './ContextUtils'
const { bool, object, string, func, oneOfType } = React.PropTypes
function isLeftClickEvent(event) {
return event.button === 0
}
function isModifiedEvent(event) {... |
src/components/common/svg-icons/content/gesture.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentGesture = (props) => (
<SvgIcon {...props}>
<path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.... |
src/components/menus/MainMenu.js | openvcash/vcash-electron | import React from 'react'
import { translate } from 'react-i18next'
import { withRouter } from 'react-router-dom'
import { action, extendObservable, reaction } from 'mobx'
import { inject, observer } from 'mobx-react'
/** Ant Design */
import Menu from 'antd/lib/menu'
@translate(['common'])
@inject('connections')
@ob... |
src/containers/DevTools/DevTools.js | UncleYee/crm-ui | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor toggleVisibilityKey="ctrl-H"
changePositionKey="ctrl-Q">
<LogMonitor /... |
src/components/library/managed/books/LibraryBooks.js | great-design-and-systems/cataloguing-app | import { FontAwesome, ResponsiveButton } from '../../../common/';
import {
LABEL_AUTHOR,
LABEL_EDITION,
LABEL_LIBRARY_BOOKS,
LABEL_PUBLISHER,
LABEL_SUB_TITLE,
LABEL_TITLE
} from '../../../../labels/';
import { Book } from '../../../../api/books/';
import PropTypes from 'prop-types';
import React from 'reac... |
packages/@lyra/vision/src/LyraVision.js | VegaPublish/vega-studio | import React from 'react'
import lyraClient from 'part:@lyra/base/client'
import Button from 'part:@lyra/components/buttons/default'
import schema from 'part:@lyra/base/schema?'
import Select from './lyra/Select'
import Vision from './Vision'
import visionGui from './css/visionGui.css'
import jsonInspector from './css... |
docs/src/pages/components/accordion/DetailedAccordion.js | lgollut/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import clsx from 'clsx';
import Accordion from '@material-ui/core/Accordion';
import AccordionDetails from '@material-ui/core/AccordionDetails';
import AccordionSummary from '@material-ui/core/AccordionSummary';
import AccordionActions fr... |
app/containers/TransactionsPage.js | soosgit/vessel | // @flow
import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { Redirect } from 'react-router';
import { connect } from 'react-redux';
import { Dimmer, Header, Loader, Segment } from 'semantic-ui-react';
import MenuBar from './MenuBar';
import Balances from '../components/Transa... |
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/actual.js | Technaesthetic/ua-tools | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
src/client/components/Home.js | josh--newman/blog | import React from 'react';
import { Link } from 'react-router';
import { SideBar } from './Shared';
import MainContent from './MainContent';
const links = [
<Link key='about' to='/'>About this blog</Link>,
<Link key='12ppm' to='/'>12PPM challenge</Link>,
<Link key='admin' to='/signin'>Sign in</Link>
];
const st... |
src/scripts/components/control-panel.js | brandly/ss15-queso | /** @jsx REACT.DOM */
import React from 'react';
import PianoKeyboard from './piano-keyboard';
import MicRecorder from './mic-recorder';
import SynthShape from './synth-shape';
export default React.createClass({
render: function () {
const trackType = this.props.track ? this.props.track.type : null;
const i... |
docs/src/sections/PopoverSection.js | lzcmaro/react-ratchet | import React from 'react';
import Samples from '../Samples'
import ReactPlayground from '../ReactPlayground'
export default function PopoverSection() {
return (
<div>
{/* Popovers */}
<ReactPlayground id="popovers" title='Popovers' desc='Popovers are designed to only fire from title bars. Set the value of th... |
src/entry.js | doeg/skeleton | import React from 'react';
import ReactDOMServer from 'react-dom/server';
import Root from './components/Root.jsx';
// Client render (optional):
if (typeof document !== 'undefined') {
// Client render code goes here...
}
// Exported static site renderer.
// @param locals.path - The path currently being rendered
// ... |
src/components/UIShell/HeaderNavigation.js | joshblack/carbon-components-react | /**
* 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 { settings } from 'carbon-components';
import cx from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
imp... |
examples/react-client/src/routes/shows/ShowRoute.js | mobx-little-router/mobx-little-router | import React from 'react'
import { inject, observer } from 'mobx-react'
import styled from 'styled-components'
import { Link } from 'mobx-little-router-react'
import Modal from '../../components/Modal'
const ShowRoute = ({ route: { params, query }, className, ShowsStore }) => {
let prevShow, nextShow
if (ShowsSt... |
app/javascript/mastodon/components/status.js | 8796n/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from './avatar';
import AvatarOverlay from './avatar_overlay';
import RelativeTimestamp from './relative_timestamp';
import DisplayName from './display_name';
import MediaGallery from... |
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... |
__tests__/index.android.js | nikolay-radkov/EBudgie | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
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 .... |
app/components/Editor/__tests__/Editor-test.js | TailorDev/monod | import React from 'react';
import { mount, shallow } from 'enzyme';
import { expect } from 'chai';
import Loader from 'react-loader';
import sinon from 'sinon';
// see: https://github.com/mochajs/mocha/issues/1847
const { before, describe, it } = global;
import Editor, { EditorModes } from '../presenter';
import Mark... |
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 = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.