path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
packages/material-ui-icons/src/Menu.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" /></g> , 'Menu');
demo/components/buttongroup/ButtonGroupOptions.js
f0zze/rosemary-ui
import React from 'react'; import {ButtonGroup} from '../../../src'; import OptionsTable from '../../helper/OptionsTable'; export default () => { return ( <OptionsTable component={ButtonGroup} propDescription={{}} /> ); };
app/react/containers/DevTools.js
WikiEducationFoundation/Wiki-Playlist
import React from 'react'; // Exported from redux-devtools import { createDevTools } from 'redux-devtools'; // Monitors are separate packages, and you can make a custom one import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; // createDevTools takes a monitor an...
node_modules/exponent/src/Components/Video.js
Helena-High/school-app
import React from 'react'; import ReactNative from 'react-native'; import Asset from '../Asset'; const { Component, PropTypes, } = React; const { StyleSheet, requireNativeComponent, NativeModules, View, } = ReactNative; const styles = StyleSheet.create({ base: { overflow: 'hidden', }, }); expor...
app/react-icons/fa/share-alt-square.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaShareAltSquare extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m31.6 26.7q0-2-1.4-3.4t-3.4-1.4q-1.9 0-3.2 1.3l-5.4-2.7q0-0.3 0-0.5t0...
client/views/About/index.js
shastajs/boilerplate
import React from 'react' import { Flex, Box } from 'reflexbox' import { Link } from 'shasta-router' import { Component } from 'shasta' import DocumentMeta from 'react-document-meta' import Title from 'components/Title' export default class AboutView extends Component { static displayName = 'AboutView' render() { ...
src/svg-icons/image/rotate-left.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageRotateLeft = (props) => ( <SvgIcon {...props}> <path d="M7.11 8.53L5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47zM6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1....
packages/react-scripts/fixtures/kitchensink/src/features/env/ShellEnvVariables.js
Clearcover/web-build
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; export default () => ( <span id="feature-shell-env-variables"> {process.env.REACT_APP_SHELL_ENV_MESSAG...
node_modules/react-transition-group/esm/TransitionGroup.js
jerednel/jerednel.github.io
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import _extends from "@babel/runtime/helpers/esm/extends"; import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized"; import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose"; im...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
Jamesm4/Cognitive-Computing-P1
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
rest-ui-scripts/fixtures/kitchensink/src/features/webpack/UnknownExtInclusion.js
RestUI/create-rest-ui-app
/** * 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...
examples/todomvc/index.js
CuthbertJungle/redux
import 'babel/polyfill'; import React from 'react'; import Root from './containers/Root'; import 'todomvc-app-css/index.css'; React.render( <Root />, document.getElementById('root') );
app/index.js
samgarg86/react-hackernews
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/configureStore'; import Root from './cont...
dac/ui-lib/src/components/IconInput/IconInput.js
dremio/dremio-oss
/* * Copyright (C) 2017-2019 Dremio Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
ui/src/main/js/components/PluginExample.js
thinker0/aurora
import React from 'react'; // See $/ui/plugin/src/js/component/PluginExample for an explanation of how to inject // your own custom components into the Aurora UI. export default function PluginExample() { return <div>Hello, World!</div>; }
app/screens/index/index.js
rocjs/getroc
import React from 'react'; import Hero from '../../components/hero'; import Highlights from '../../components/highlights'; import Extensions from '../../components/extensions'; import Readmore from '../../components/readmore'; export default class Index extends React.Component { render() { return ( ...
Libraries/Components/MapView/MapView.js
gitim/react-native
/** * 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. * * @provides...
src/images/SsIdPartsBeforeSelection.js
OCMC-Translation-Projects/ioc-liturgical-react
import React from 'react' import screenShot from './graphics/ScreenShotIdPartBeforeSelection.jpg' export default React.createClass({ render() { return <img role="presentation" src={screenShot} height="100%" width="100%"/> } })
Ch04/04_01/finish/src/index.js
Raziyehbazargan/React.js_Essential_Training
import React from 'react' import { render } from 'react-dom' import { SkiDayList } from './components/SkiDayList' window.React = React render( <SkiDayList days={ [ { resort: "Squaw Valley", date: new Date("1/2/2016"), powder: true, backcountry: false }, { resort: "Kirkwood", date: ...
src/svg-icons/action/settings-power.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsPower = (props) => ( <SvgIcon {...props}> <path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm2-22h-2v10h2V2zm3.56 2.44l-1.45 1.45C16.84 6.94 18 8.83 18 11c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-2.17 1.16-4.06 2.88-...
examples/todo-react-es6/src/app/todo-list.js
rintoj/statex
import React from 'react' import TodoItem from './todo-item' import { inject } from 'statex/react' @inject({ filteredTodos: state => (state.todos || []).filter(todo => { if (state.filter === 'COMPLETED') return todo.completed if (state.filter === 'ACTIVE') return !todo.completed return true }) }) expor...
src/svg-icons/maps/local-shipping.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalShipping = (props) => ( <SvgIcon {...props}> <path d="M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-...
src/components/mySwiper.js
Seeingu/borrow-book
import React, { Component } from 'react'; import { StyleSheet, View, Text, Image, } from 'react-native'; import Swiper from 'react-native-swiper'; import { width } from '../utils/DimensionUtil'; export default class MySwiper extends Component { render() { return ( <Swiper style={styles.wrapper} au...
src/components/home/saved/index.js
mpigsley/sectors-without-number
import React from 'react'; import dayjs from 'dayjs'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { FormattedMessage } from 'react-intl'; import FlexContainer from 'primitives/container/flex-container'; import Header, { HeaderType } from 'primitives/text/header'; import './styl...
docs/app/Examples/modules/Rating/Variations/index.js
Rohanhacker/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const RatingVariationsExamples = () => ( <ExampleSection title='Variations'> <ComponentExample title='Size' descript...
app/components/chart/stats.js
hichameyessou/blip
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; import bows from 'bows'; import { utils as vizUtils, components as vizComponents } from '@tidepool/viz'; import { BG_DATA_TYPES } from '../../core/constants'; const { Stat } = vizComponents; const { commonStats, ...
app/containers/GamesLibraryPage.js
SiDevesh/Bootleg
// @flow import React, { Component } from 'react'; import { connect } from 'react-redux'; import GamesLibraryPageComponent from '../components/GamesLibraryPageComponent'; const mapStateToProps = (state) => { return { gameShowOn: state.navPaneState.gameShowOn } } const GamesLibraryPage = connect( mapStateToP...
packages/components/src/Breadcrumbs/Breadcrumbs.component.js
Talend/ui
import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; import uuid from 'uuid'; import { withTranslation } from 'react-i18next'; import theme from './Breadcrumbs.scss'; import { Action, ActionDropdown } from '../Actions'; import Skeleton from '../Skeleton/Skeleton.component...
packages/material-ui-icons/src/TabUnselected.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M1 9h2V7H1v2zm0 4h2v-2H1v2zm0-8h2V3c-1.1 0-2 .9-2 2zm8 16h2v-2H9v2zm-8-4h2v-2H1v2zm2 4v-2H1c0 1.1.9 2 2 2zM21 3h-8v6h10V5c0-1.1-.9-2-2-2zm0 14h2v-2h-2v2zM9 5h2V3H9v2zM5 21h2v-2H5v2zM5 5h2V3H5v2zm16...
app/javascript/mastodon/components/column_back_button.js
Ryanaka/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import Icon from 'mastodon/components/icon'; import { createPortal } from 'react-dom'; export default class ColumnBackButton extends React.PureComponent { static contextTypes = { router: PropTypes.objec...
client/modules/Post/__tests__/components/PostListItem.spec.js
michaelkirschbaum/ender-site
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import PostListItem from '../../components/PostListItem/PostListItem'; import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper'; const post = { name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: ...
frontend/src/Components/Table/Cells/TableRowCell.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import styles from './TableRowCell.css'; class TableRowCell extends Component { // // Render render() { const { className, children, ...otherProps } = this.props; return ( <td className={c...
examples/cra-kitchen-sink/src/stories/button.stories.js
storybooks/react-storybook
/* eslint-disable react/destructuring-assignment */ import React from 'react'; import { action } from '@storybook/addon-actions'; import { withInfo } from '@storybook/addon-info'; import { Button } from '@storybook/react/demo'; import Container from '../components/Container'; const InfoButton = () => ( <span st...
src/shared/components/Provider.js
DarriusWrightGD/BloggingSite
import React from 'react'; export default class Provider extends React.Component{ getChildContext(){ return { store: this.props.store, muiTheme: this.props.muiTheme }; } render(){ return this.props.children; } } Provider.childContextTypes = { store: React.PropTypes.object, muiThem...
src/components/PersonView/PersonView.js
rlesniak/tind3r.com
// @flow import React, { Component } from 'react'; import { reaction, observable } from 'mobx'; import get from 'lodash/get'; import uniqueId from 'lodash/uniqueId'; import { observer, inject } from 'mobx-react'; import ReactTooltip from 'react-tooltip'; import Gallery from 'components/Gallery'; import ActionButtons ...
src/svg-icons/action/fingerprint.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFingerprint = (props) => ( <SvgIcon {...props}> <path d="M17.81 4.47c-.08 0-.16-.02-.23-.06C15.66 3.42 14 3 12.01 3c-1.98 0-3.86.47-5.57 1.41-.24.13-.54.04-.68-.2-.13-.24-.04-.55.2-.68C7.82 2.52 9.86 2 12...
frontend/src/containers/home/index.js
rkorkosz/home-finances
import React from 'react' import { push } from 'react-router-redux' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import { increment, incrementAsync, decrement, decrementAsync } from '../../modules/counter' const Home = props => ( <div> <h1>Home</h1> <p>Count: {props.count}<...
src/inner-slider.js
CondeNast/react-slick
'use strict'; import React from 'react'; import EventHandlersMixin from './mixins/event-handlers'; import HelpersMixin from './mixins/helpers'; import initialState from './initial-state'; import defaultProps from './default-props'; import createReactClass from 'create-react-class'; import classnames from 'classnames';...
app/components/newDefinitionWindow/OnlineDictionariesTabView.js
sedooe/cevirgec
import React, { Component } from 'react'; import {Button, Menu, Message, Segment } from 'semantic-ui-react'; import tr from '../../utils/Translation'; import WordBrowser from './WordBrowser'; const NoDictWarning = ({onAddOnlineSource}) => ( <Segment style={{display:'flex', flexDirection: 'column', flexGrow: 1}} clas...
packages/reactor-kitchensink/src/examples/FormFields/FieldSet/FieldSet.js
dbuhrman/extjs-reactor
import React from 'react'; import { FieldSet, TextField, FormPanel } from '@extjs/ext-react'; export default function FieldSetExample() { return ( <FormPanel shadow> <FieldSet title="About You" instructions="Tell us about yourself." width={300}> <TextField label="First Name" lab...
frontend/components/GroupAdd.js
SkyPicker/Skywall
import React from 'react' import {Button} from 'react-bootstrap' import {IndexLinkContainer} from 'react-router-bootstrap' import {compose, bindActionCreators} from 'redux' import {connect} from 'react-redux' import PropTypes from 'prop-types' import {NBSP} from '../constants/symbols' import * as routes from '../consta...
src/native/todos/Header.js
skallet/este
// @flow import type { State, Todo } from '../../common/types'; import React from 'react'; import { FormattedMessage, defineMessages } from 'react-intl'; import { connect } from 'react-redux'; import { values } from 'ramda'; import { Box, Text } from '../../common/components'; const messages = defineMessages({ leftT...
app/jsx/groups/components/PaginatedUserCheckList.js
djbender/canvas-lms
/* * Copyright (C) 2014 - 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...
saga/seata-saga-statemachine-designer/ggeditor/components/ContextMenu/Menu.js
seata/seata
import React from 'react'; class Menu extends React.Component { static create = function (type) { return class TypedMenu extends Menu { constructor(props) { super(props, type); } }; } constructor(props, type) { super(props); this.type = type; } render() { const { ch...
example/components/stuff/Button.demo.js
rpominov/react-demo-library
import React from 'react' import Demo, {props as P} from 'react-demo' import Button from './Button' export default <Demo target={Button} props={{ label: P.string('label'), value: P.string('value'), onChange: P.callback.log(), }} />
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Button.js
JamieMason/npm-cache-benchmark
import _Object$values from 'babel-runtime/core-js/object/values'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-...
client/src/components/template/header.js
RajivLinkites/Starter-Skeleton
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; class HeaderTemplate extends Component { renderLinks() { if (this.props.authenticated) { return [ <li key={`${1}header`}> <Link to="/">Home</Link> </li>, <...
src/components/AdminHomePage.js
oded-soffrin/gkm_viewer
import React from 'react'; import {Link} from 'react-router'; const AdminHomePage = () => { return ( <div> <h1>React Slingshot</h1> <h2>HomePage Menu</h2> <ol> <li><Link to="/admin/items">Items</Link></li> <li><Link to="/admin/gkm">Twitter</Link></li> <li><Link to="/adm...
docs/app/Examples/collections/Breadcrumb/Types/index.js
clemensw/stardust
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const BreadcrumbTypesExamples = () => ( <div> <ExampleSection title='Types'> <ComponentExample title='Breadcrumb' ...
e2e-tests/production-runtime/src/pages/page-2.js
mingaldrichgan/gatsby
import React from 'react' import { Link } from 'gatsby' import Layout from '../components/layout' const SecondPage = () => ( <Layout> <h1>Hi from the second page</h1> <p>Welcome to page 2</p> <Link to="/">Go back to the homepage</Link> </Layout> ) export default SecondPage
force_dir/node_modules/react-bootstrap/es/Badge.js
wolfiex/VisACC
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 ...
src/svg-icons/notification/vibration.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationVibration = (props) => ( <SvgIcon {...props}> <path d="M0 15h2V9H0v6zm3 2h2V7H3v10zm19-8v6h2V9h-2zm-3 8h2V7h-2v10zM16.5 3h-9C6.67 3 6 3.67 6 4.5v15c0 .83.67 1.5 1.5 1.5h9c.83 0 1.5-.67 1.5-1.5v-15c0...
src/DefaultPlayer/Volume/Volume.js
mderrick/react-html5video
import React from 'react'; import styles from './Volume.css'; import VolumeOff from './../Icon/volume_off.svg'; import VolumeUp from './../Icon/volume_up.svg'; export default ({ onChange, onClick, volume, muted, className, ariaLabelMute, ariaLabelUnmute, ariaLabelVolume }) => { const volumeValue = muted || !volume...
src/views/Test/FusionCharts.js
giux78/daf-dataportal
import React, { Component } from 'react'; import { Container } from 'reactstrap' import FusionCharts from 'fusioncharts'; import Charts from 'fusioncharts/fusioncharts.charts'; import ReactFC from 'react-fusioncharts'; import FusionTheme from 'fusioncharts/themes/fusioncharts.theme.fusion'; ReactFC.fcRoot(FusionCharts...
packages/react-error-overlay/src/containers/StackFrame.js
just-boris/create-preact-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React, { Component } from 'react'; import CodeBlock from './StackFrameCodeBlock'; import { getPrettyURL } from '../ut...
frontend/src/components/admin/UsersTable.js
VladimirAnaniev/LoggIt
import React from 'react' import { Table, Button } from 'react-materialize' import Auth from '../../utilities/Auth' export default function UsersTable ({users, onBlock, onMakeAdmin}) { return ( <Table> <thead> <tr> <th data-field='email'>Email</th> <th data-field='name'>Name</th...
examples/todomvc/index.js
ellbee/redux-devtools
import React from 'react'; import App from './containers/App'; import 'todomvc-app-css/index.css'; React.render( <App />, document.getElementById('root') );
modules/Link.js
jepezi/react-router
import React from 'react'; var { object, string, func } = React.PropTypes; function isLeftClickEvent(event) { return event.button === 0; } function isModifiedEvent(event) { return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey); } /** * <Link> components are used to create an <a> element t...
src/components/app.js
TomaszTokarz/shopping_assist
import React, { Component } from 'react'; export default class App extends Component { render() { return ( <div className="app"></div> ); } }
src/index.js
craveytrain/chores
import React from 'react'; import { render } from 'react-dom'; import { createStore } from 'redux'; import reducer from './reducers'; import { Provider } from 'react-redux'; // import io from 'socket.io-client'; import injectTapEventPlugin from 'react-tap-event-plugin'; import App from './components/App'; injectTapEv...
src/modules/Input/components/InputDevice/index.js
ruebel/synth-react-redux
import React from 'react'; import PropTypes from 'prop-types'; import Keyboard from './Keyboard'; import Midi from './Midi'; import Socket from './Socket'; import Stream from './Stream'; import { inputTypes } from '../../../../utils/input'; const InputDevice = ({ device }) => { if (!device) { return null; } ...
fields/types/cloudinaryimage/CloudinaryImageFilter.js
ratecity/keystone
import React from 'react'; import { SegmentedControl } from '../../../admin/client/App/elemental'; const OPTIONS = [ { label: 'Is Set', value: true }, { label: 'Is NOT Set', value: false }, ]; function getDefaultValue () { return { exists: true, }; } var CloudinaryImageFilter = React.createClass({ propTypes:...
app/javascript/mastodon/features/explore/results.js
musashino205/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import { expandSearch } from 'mastodon/actions/search'; import Account from 'mastodon/containers/account_contai...
docs/app/Examples/elements/Input/States/InputExampleLeftLoading.js
clemensw/stardust
import React from 'react' import { Input } from 'semantic-ui-react' const InputExampleLeftLoading = () => ( <Input loading icon='user' iconPosition='left' placeholder='Search...' /> ) export default InputExampleLeftLoading
src/routes/index.js
hahoocn/hahoo-admin
import React from 'react'; import Route from 'react-router/lib/Route'; import IndexRoute from 'react-router/lib/IndexRoute'; import { App, Home, Login, NotFound, Scml, ScmlEdit, ScmlView, Mcml, McmlView, McmlEdit, Cate, CateEdit } from '../containers'; import { isAuth } from '../actions/auth'; ...
admin/client/App/components/Navigation/Mobile/SectionItem.js
rafmsou/keystone
/** * A mobile section */ import React from 'react'; import MobileListItem from './ListItem'; import { Link } from 'react-router'; const MobileSectionItem = React.createClass({ displayName: 'MobileSectionItem', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, curren...
src/PlaylistFilter.js
billyryanwill/amplify
import React from 'react'; const PlaylistFilter = () => { return ( <section> </section> ) } export default PlaylistFilter;
examples/pinterest/app.js
chrisirhc/react-router
import React from 'react'; import { Router, Route, IndexRoute, Link } from 'react-router'; var PICTURES = [ { id: 0, src: 'http://placekitten.com/601/601' }, { id: 1, src: 'http://placekitten.com/610/610' }, { id: 2, src: 'http://placekitten.com/620/620' } ]; var Modal = React.createClass({ styles: { posi...
app/javascript/mastodon/features/account/components/header.js
ambition-vietnam/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import IconButton from '../../../components/icon_button'; import Motion from '../../ui/util/optional_motion'; import sprin...
app/components/avatar/index.js
it-surya/hack-jeninvest
import React from 'react'; import { Image, View } from 'react-native'; import { RkComponent, RkText, RkTheme } from 'react-native-ui-kitten'; import {FontAwesome} from '../../assets/icons'; export class Avatar extends RkComponent { componentName = 'Avatar'; typeMapping = { container: {}, image: {...
pages/_page.js
LlamaSantos/crackerbox
'use strict'; import React from 'react'; import SiteHeader from './components/site-header'; import SiteMenu from './components/site-menu'; export default React.createClass({ createMetas(tags) { return Object.keys(tags || {}).map((name) => { return ( <meta name={name} content={tags[name]} /> ...
src/components/blog/list-of-posts.js
joefraley/ratticusscript
'use strict' import { createMarkup } from '../../utilities' import { BlogTags } from './blog-post' import { Link } from 'react-router' import Moment from 'moment' import React from 'react' export const LinkToPost = ({ post }) => { const { attributes: meta } = post.meta return <Link to={ `/posts/${post.name}` }>{ m...
client/src/containers/SelectedProjectView.js
scandalouswool/rally
import React, { Component } from 'react'; import { connect } from 'react-redux'; class SelectedProjectView extends Component { constructor(props) { super(props); } render() { if (!this.props.project) { return <h3 className="selected">Please select or create a project to begin</h3>; } retu...
src/components/phpstorm/original-wordmark/PhpstormOriginalWordmark.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './PhpstormOriginalWordmark.svg' /** PhpstormOriginalWordmark */ function PhpstormOriginalWordmark({ width, height, className }) { return ( <SVGDeviconInline classNa...
Paths/React/05.Building Scalable React Apps/3-react-boilerplate-building-scalable-apps-m3-exercise-files/Before/app/app.js
phiratio/Pluralsight-materials
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import 'babel-polyfill'; /* eslint-disable import/no-unresolved */ // Load the manifest.json file and the .htaccess file import '!file?name=[name].[ext]!./manifest.json'; import 'file?name=[name].[ext]!./.htaccess';...
modules/react-router-2.5.2/modules/withRouter.js
nanyou-environment/enBackEnd
import React from 'react' import hoistStatics from 'hoist-non-react-statics' import { routerShape } from './PropTypes' function getDisplayName(WrappedComponent) { return WrappedComponent.displayName || WrappedComponent.name || 'Component' } export default function withRouter(WrappedComponent) { const WithRouter =...
src/components/index.js
daviddeejjames/dfjames-gatsby
import React from 'react' import PropTypes from 'prop-types' import { Link } from 'gatsby' import Helmet from 'react-helmet' import '../scss/styles.scss' const ListLink = props => ( <li> <Link activeClassName="active" to={props.to}> {props.children} </Link> </li> ) const Navigation = () => ( <nav...
app/components/agent/Index/quick-start.js
fotinakis/buildkite-frontend
import React from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay/classic'; import { Link } from 'react-router'; import classNames from 'classnames'; import Emojify from '../../shared/Emojify'; import Panel from '../../shared/Panel'; import 'highlight.js/styles/atom-one-light.css'; // Gra...
admin/client/components/List/ListControl.js
tony2cssc/keystone
import React from 'react'; import classnames from 'classnames'; var ListControl = React.createClass({ propTypes: { dragSource: React.PropTypes.func, onClick: React.PropTypes.func, type: React.PropTypes.oneOf(['check', 'delete', 'sortable']).isRequired, }, renderControl () { var icon = 'octicon octicon-'; ...
setup/src/universal/features/common_ui/form/inputs/InputSelectDate/index.js
ch-apptitude/goomi
/** * * InputSelectDate * */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; import styled from 'styled-components'; import InputSelect from 'features/common_ui/form/inputs/InputSelect'; import messages from './messages'; const StyledSelectDate = styled.div` d...
docs/src/components/ComponentDoc/ExampleEditor/ExampleEditorPlaceholder.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Placeholder } from 'semantic-ui-react' const ExampleEditorPlaceholder = () => ( <Placeholder> <Placeholder.Paragraph> <Placeholder.Line /> <Placeholder.Line /> <Placeholder.Line /> <Placeholder.Line /> <Placeholder.Line /> </Placeholder.Paragra...
app/javascript/mastodon/components/picture_in_picture_placeholder.js
lynlynlynx/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Icon from 'mastodon/components/icon'; import { removePictureInPicture } from 'mastodon/actions/picture_in_picture'; import { connect } from 'react-redux'; import { debounce } from 'lodash'; import { FormattedMessage } from 'react-intl'; export defau...
packages/icons/src/md/action/AssignmentReturn.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdAssignmentReturn(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M38 8c2.21 0 4 1.79 4 4v28c0 2.21-1.79 4-4 4H10c-2.21 0-4-1.79-4-4V12c0-2.21 1.79-4 4-4h8.37c.82-2.32 3.02-4 5.63-4s4.81 1.68 5.63 4H38zM24 ...
docs/src/pages/index.js
camunda/feel-scala
import React from 'react'; import clsx from 'clsx'; import Layout from '@theme/Layout'; import Link from '@docusaurus/Link'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import useBaseUrl from '@docusaurus/useBaseUrl'; import styles from './styles.module.css'; const features = [ { title: ...
src/Icons/GitHubMark.js
hasseboulen/WoWAnalyzer
import React from 'react'; const Icon = ({ ...other }) => ( <svg viewBox="0 0 256 250" version="1.1"> <path d="M128.00106,0 C57.3172926,0 0,57.3066942 0,128.00106 C0,184.555281 36.6761997,232.535542 87.534937,249.460899 C93.9320223,250.645779 96.280588,246.684165 96.280588,243.303333 C96.280588,240.251045 96.161...
src/webapp/components/_containers/RegisterContainer.js
nus-mtp/cubist
import _ from 'lodash'; import React from 'react'; import Helmet from 'react-helmet'; import Immutable from 'immutable'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import { pushState } from 'redux-router'; import PureComponent from 'react-pure-render/component'; import { Logger } from ...
app/renderer/minimal/components/DevTools.js
vincent/trippy
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 style={{ width:310 }} toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-q"...
src/containers/artist.js
daphnevisser/Upnotes
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { getArtistInfo, addTrack, setTrack } from '../actions/index'; import ArtistInfo from '../components/artist-info'; class Artist extends Component { componentDidMount() { this.props.getArtistInfo(this.props.params.id); } r...
src/svg-icons/image/audiotrack.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageAudiotrack = (props) => ( <SvgIcon {...props}> <path d="M12 3v9.28c-.47-.17-.97-.28-1.5-.28C8.01 12 6 14.01 6 16.5S8.01 21 10.5 21c2.31 0 4.2-1.75 4.45-4H15V6h4V3h-7z"/> </SvgIcon> ); ImageAudiotrack = p...
docs/src/sections/BreadcrumbSection.js
egauci/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function BreadcrumbSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> ...
frontend/node_modules/recharts/es6/shape/Polygon.js
justdotJS/rowboat
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; }; var _createClass = function () { function defineProperties(ta...
src/svg-icons/communication/stop-screen-share.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStopScreenShare = (props) => ( <SvgIcon {...props}> <path d="M21.22 18.02l2 2H24v-2h-2.78zm.77-2l.01-10c0-1.11-.9-2-2-2H7.22l5.23 5.23c.18-.04.36-.07.55-.1V7.02l4 3.73-1.58 1.47 5.54 5.54c.61-.33 1...
app/javascript/mastodon/components/display_name.js
pso2club/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; export default class DisplayName extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, others: ImmutablePropTypes.list, localDomain: PropTyp...
src/static/containers/Item/index.js
qwertypomy/rental
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as actionCreators from '../../actions/book'; class ItemView extends React.Component { static propTypes = { isFetching: React.PropTypes.bool.isRequired, token: React.PropTypes.string, ...
src/components/common/svg-icons/content/clear.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentClear = (props) => ( <SvgIcon {...props}> <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/> </SvgIcon> ); ContentClear = pure(ContentClea...
src/components/DrinkListExport.js
c-base/drinc-order
import React from 'react'; export default class DrinkListExport extends React.Component { static propTypes = { drinks: React.PropTypes.array } handleClick() { const stringified = JSON.stringify(this.props.drinks); console.log(stringified); } render() { return ( <div className="row"> ...
src/routes/login/index.js
zmj1316/InfomationVisualizationCourseWork
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../compo...
src/Breadcrumbs/Breadcrumbs.driver.js
skyiea/wix-style-react
import React from 'react'; import ReactDOM from 'react-dom'; import ReactTestUtils from 'react-dom/test-utils'; import {isClassExists} from '../../test/utils'; const breadcrumbsDriverFactory = ({element, wrapper, component}) => { const optionAt = position => element.childNodes[position]; return { exists: () =...
admin/client/App/shared/Portal.js
danielmahon/keystone
/** * Used by the Popout component and the Lightbox component of the fields for * popouts. Renders a non-react DOM node. */ import React from 'react'; import ReactDOM from 'react-dom'; module.exports = React.createClass({ displayName: 'Portal', portalElement: null, // eslint-disable-line react/sort-comp compone...
src/svg-icons/hardware/keyboard-capslock.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardCapslock = (props) => ( <SvgIcon {...props}> <path d="M12 8.41L16.59 13 18 11.59l-6-6-6 6L7.41 13 12 8.41zM6 18h12v-2H6v2z"/> </SvgIcon> ); HardwareKeyboardCapslock = pure(HardwareKeyboardCaps...