path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/image/camera-front.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCameraFront = (props) => ( <SvgIcon {...props}> <path d="M10 20H5v2h5v2l3-3-3-3v2zm4 0v2h5v-2h-5zM12 8c1.1 0 2-.9 2-2s-.9-2-2-2-1.99.9-1.99 2S10.9 8 12 8zm5-8H7C5.9 0 5 .9 5 2v14c0 1.1.9 2 2 2h10c1.1 0 2-....
imports/ui/components/Navigation/Navigation.js
jamiebones/Journal_Publication
import React from 'react'; import PropTypes from 'prop-types'; import { Navbar , Nav, NavItem } from 'react-bootstrap'; import { Link } from 'react-router-dom'; import { LinkContainer } from 'react-router-bootstrap'; import Icon from '../../components/Icon/Icon'; import PublicNavigation fro...
styleguide.js
mazzcris/sortello
import {render} from 'react-dom' import React from 'react' import StyleguideApp from './StyleguideApp.jsx' import Bootstrap from 'bootstrap/dist/css/bootstrap.min.css' import "./css/style.css"; import "./css/animate-sortello.css"; import "./css/buttons.css"; import "./css/api-key.css"; import "./css/board-column__selec...
docs/src/examples/elements/Reveal/States/RevealExampleDisabled.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Image, Reveal } from 'semantic-ui-react' const RevealExampleDisabled = () => ( <Reveal animated='move' disabled> <Reveal.Content visible> <Image src='/images/wireframe/square-image.png' size='small' /> </Reveal.Content> <Reveal.Content hidden> <Image src='/i...
modules/useRouterRestoreScroll.js
jshin49/react-router-restore-scroll
import React from 'react' import RestoreWindowScroll from './RestoreWindowScroll' const useRouterRestoreScroll = () => ({ renderRouterContext: (child, props) => ( <RestoreWindowScroll restoreWindow={props.router.restoreScroll.restoreWindow} location={props.location} children={child} /> ) ...
examples/real-world/index.js
nickhudkins/redux
import 'babel-core/polyfill'; import React from 'react'; import Root from './containers/Root'; import BrowserHistory from 'react-router/lib/BrowserHistory'; React.render( <Root history={new BrowserHistory()} />, document.getElementById('root') );
app/components/PointList/index.js
GuiaLa/guiala-web-app
/** * * PointList * */ import React from 'react'; import PointListItem from 'PointListItem' import styles from './styles.css'; class PointList extends React.Component { render() { const { items, params } = this.props; return ( <div className={ styles.wrapper }> { items.map((item, key) => <Po...
tests/react_native_tests/test_data/native_code/ToolbarAndroid/app/components/Mobile/index.js
ibhubs/sketch-components
/** * @flow */ import React from 'react' import PropTypes from 'prop-types' import { observer } from 'mobx-react/native' import styles from './styles' import Mobile from './component' @observer class MobileWrapper extends React.Component { render() { return ( <Mobile {...this.props} ></Mob...
src/rodal.js
chenjiahan/rodal
/* =============================== * Rodal v1.8.2 https://chenjiahan.github.com/rodal * =============================== */ import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; // env const IN_BROWSER = typeof window !== 'undefined'; const UA = IN_BROWSER && window.navigator.us...
notebook/experience/web/webpack4-upgrade-log/simple-webpack-config/src/components/confirm.js
JMwill/wiki
import React from 'react' import modal from './modal' /** * 弹出确认窗 * @param {[type]} options.message 消息 * @param {[type]} options.ok 确认的回调函数 * @param {String} okLabel 确认按钮标签 * @param {[type]} cancel 取消的回调函数 * @param {String} cancelLabel 取消按钮标签 * @return {[type]} 销毁...
src/routes/register/index.js
rameshrr/dicomviewer
/** * 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 Layout from '../../co...
tom-binary-tree/src/Button.js
slorber/scalable-frontend-with-elm-or-redux
import React from 'react' // EVENTS class Toggle { update(model) { return { model: !model } } } // APP export default { init() { return { model: true } }, update(model, event) { return event.update(model) }, view(model, dispatch) { const onClick = () => dispatch(new Toggle()) co...
react/features/device-selection/components/DeviceSelector.js
parisjulien/arkadin-jitsimeet
import AKDropdownMenu from '@atlaskit/dropdown-menu'; import ExpandIcon from '@atlaskit/icon/glyph/expand'; import React, { Component } from 'react'; import { translate } from '../../base/i18n'; const EXPAND_ICON = <ExpandIcon label = 'expand' />; /** * React component for selecting a device from a select element. ...
src/packages/recompose/__tests__/types/test_withStateHandlers.js
acdlite/recompose
/* eslint-disable no-unused-vars, no-unused-expressions */ /* @flow */ import React from 'react' import { compose, withProps, withStateHandlers } from '../..' import type { HOC } from '../..' type EnhancedCompProps = { initialCounter: number, } const enhancer: HOC<*, EnhancedCompProps> = compose( withStateHandl...
src/components/TopNav.js
one-stop-team/ripta-app
import React from 'react' import * as bs from 'react-bootstrap' import logo from '../images/ripta_logo.png' const LinkContainer = ({children}) => ( <span>{children}</span> ) export default class TopNav extends React.Component { render() { return ( <bs.Navbar fixedTop fluid> <bs.Navbar.Header> ...
src/modules/Hemmo.js
futurice/PelaryHemmo
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { StyleSheet, Modal, AppState, Text, View, Platform, TouchableOpacity, } from 'react-native'; import { getSizeByWidth, getFontSize } from '../services/graphics'; import AudioPlayerVi...
examples/with-clerk/pages/index.js
azukaru/next.js
import React from 'react' import Head from 'next/head' import Link from 'next/link' import styles from '../styles/Home.module.css' import { SignedIn, SignedOut } from '@clerk/nextjs' const ClerkFeatures = () => ( <Link href="/user"> <a className={styles.cardContent}> <img src="/icons/layout.svg" /> <...
src/components/ProgressBar/ProgressBar.js
vonZ/rc-vvz
import React from 'react'; import PropTypes from 'prop-types'; class ProgressBar extends React.Component {   getColor = (percent) => {     if (this.props.percent === 100) return 'green';     return this.props.percent > 50 ? 'lightgreen' : 'red';   } getWidthAsPercentOfTotalWidth = () => { return parseInt(this.p...
src/containers/HomeContainer.js
hoppispace/hoppi-space-web-app
import React from 'react'; import { URL_FACEBOOK, URL_INSTAGRAM, URL_TWITTER } from "../constants"; import SearchForm from '../components/Search/SearchForm'; const HomePage = () => { return ( <main id="home-container"> <div className="container-fluid"> <div className="row"> ...
code/web/node_modules/react-bootstrap/es/Label.js
zyxcambridge/RecordExistence
import _Object$values from 'babel-runtime/core-js/object/values'; 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-...
packages/ringcentral-widgets/components/CallListV2/index.js
ringcentral/ringcentral-js-widget
import React from 'react'; import PropTypes from 'prop-types'; import { List } from 'react-virtualized'; import CallItem from '../CallItem'; import NoCalls from '../NoCalls'; export default class CallListV2 extends React.PureComponent { constructor(props) { super(props); this.state = { extendedIndex: n...
src/svg-icons/av/fiber-new.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFiberNew = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zM8.5 15H7.3l-2.55-3.5V15H3.5V9h1.25l2.5 3.5V9H8.5v6zm5-4.74H11v...
examples/todomvc/containers/TodoApp.js
rt2zz/redux
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { Connector } from 'redux/react'; import Header from '../components/Header'; import MainSection from '../components/MainSection'; import * as TodoActions from '../actions/TodoActions'; export default class TodoApp extends Comp...
src/svg-icons/action/perm-device-information.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermDeviceInformation = (props) => ( <SvgIcon {...props}> <path d="M13 7h-2v2h2V7zm0 4h-2v6h2v-6zm4-9.99L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/> ...
node_modules/react-router/es6/IndexRedirect.js
wojtczat/WeatherApp
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import Redirect from './Redirect'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var object = _React$PropTypes.object; /** * An <IndexRedir...
frontend/src/Settings/ImportLists/ImportLists/ImportLists.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Card from 'Components/Card'; import FieldSet from 'Components/FieldSet'; import Icon from 'Components/Icon'; import PageSectionContent from 'Components/Page/PageSectionContent'; import { icons } from 'Helpers/Props'; import AddImportLi...
screens/PersonDetail.js
FindEarth/app
import React from 'react' import PropTypes from 'prop-types' import Colors from '../constants/Colors' import Styles from '../styles/PersonDetail' import HeaderTitle from '../components/HeaderTitle' import PersonDetailView from '../components/PersonDetailView' import { Share } from 'react-native' import { bindActionCre...
src/mongostick/frontend/src/screens/Collections.js
RockingRolli/mongostick
import React from 'react' import { Col, Row, Table } from 'antd' import { connect } from 'react-redux' import { formatBytes } from '../lib/mongodb' class Collections extends React.Component { getColumns = () => { return [ { title: 'Name', dataIndex: 'ns', key: 'ns', }, ...
app/javascript/mastodon/features/status/components/action_bar.js
Arukas/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import IconButton from '../../../components/icon_button'; import ImmutablePropTypes from 'react-immutable-proptypes'; import DropdownMenuContainer from '../../../containers/dropdown_menu_container'; import { defineMessages, injectIntl } from 'react-intl'; i...
packages/reactor-kitchensink/src/examples/D3/Hierarchy/ConfigurablePivotTreeMap/ConfigurablePivotTreeMap.js
markbrocato/extjs-reactor
import React, { Component } from 'react'; import { Toolbar, Button, Spacer } from '@extjs/ext-react'; import { PivotD3Container } from '@extjs/ext-react-pivot-d3'; import createData from './createData'; import './styles.css'; const regions = { "Belgium": 'Europe', "Netherlands": 'Europe', "United Kingdom":...
src/svg-icons/hardware/keyboard-return.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardReturn = (props) => ( <SvgIcon {...props}> <path d="M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"/> </SvgIcon> ); HardwareKeyboardReturn = pure(HardwareKeyboardReturn); Hardware...
app/components/DrawerHeader/DrawerHeader.js
danielzy95/oaa-chat
import React from 'react' import { observer } from 'mobx-react' import IconButton from 'material-ui/IconButton' import styles from './DrawerHeader.css' const DrawerHeader = ({ title, backgroundColor, color, close }) => ( <div class={styles.root} style={{ backgroundColor: backgroundColor || '#493553' }}> <IconButton...
src/app.js
williambryan777/react-blog-with-es6
import React, { Component } from 'react'; import { BlogBox } from './components'; import $ from 'jquery'; class App extends Component { constructor(props) { super(props); this.state = { blogList: [], }; } componentDidMount() { const postUrl = '/Social/Home/GetHotMicroBlogs'; const queryP...
app/javascript/mastodon/features/ui/components/bundle_modal_error.js
cobodo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import IconButton from '../../../components/icon_button'; const messages = defineMessages({ error: { id: 'bundle_modal_error.message', defaultMessage: 'Something went wrong while loading this comp...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/SvgInclusion.js
gutenye/create-react-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. */ import React from 'react'; import logo from './assets/logo.svg'; export default () => <img id="feature-svg-inclusion" src={logo} alt="l...
analysis/shamanelemental/src/modules/features/Overload.js
yajinni/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import { SpellIcon } from 'interface'; import Analyzer from 'parser/core/Analyzer'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import StatisticBox, { STATISTIC_ORDER } from 'parser/ui/StatisticBox'; import Events from 'parser/core...
docs-ui/components/alertLink.stories.js
beeftornado/sentry
import React from 'react'; import {withInfo} from '@storybook/addon-info'; import AlertLink from 'app/components/alertLink'; import {IconDocs, IconGeneric, IconMail, IconStack, IconStar} from 'app/icons'; export default { title: 'Core/Alerts/AlertLink', }; export const Default = withInfo( 'A way to loudly link b...
app/components/CollectionHeader.js
jackokerman/react-discogs-dj
import React from 'react'; import HeaderColumn from './HeaderColumn.js'; const columns = [ { column: 'artist', display: 'Artist' }, { column: 'title', display: 'Title' }, { column: 'year', display: 'Year' }, { column: 'added', display: 'Added' }, ]; const CollectionHeader = props => ( <tr> {columns.map(...
src/components/Hello/index.js
lijinfengworm/ant-design-reactjs
import React from 'react'; import './index.less'; /** * 测试用 */ class Hello extends React.PureComponent { render() { return <div><h1 className="testStyle">Hello, React!</h1></div>; } } export default Hello;
app/components/welcome0.js
nyc-bobolinks-2016/TemoApp
import React, { Component } from 'react'; import { Navigator, StyleSheet, Text, TextInput, TouchableOpacity, View } from 'react-native'; import SendBird from 'sendbird' import NavMenu from './navMenu'; export default class Signup extends Component { constructor() { super(); console.disableYellow...
examples/Box.js
casesandberg/workbench
import React from 'react' import _ from 'lodash' import ReactCSS from 'reactcss' const build = (element, property, obj, toApply) => { return toApply ? _.mapValues(obj, (value) => { return { [element]: { [property]: value } } }) : {} } const justifyContent = { left: 'flex-start', center: 'center', right:...
src/app.js
jeiker26/react
import React from 'react'; import ReactDom from 'react-dom'; import SearchGot from './components/search'; ReactDom.render(<SearchGot />, document.getElementById('app'));
app/components/mapMarker/mapMarkerView.js
UsabilitySoft/Proximater
import React, { Component } from 'react'; import { AppRegistry, Text, View, Image, Button } from 'react-native'; import { styles } from './styles'; const images = require('../images'); export class MapMarkerView extends Component { render() { return ( <View style={styles.container}> <Image ...
client/index.js
gigavinyl/pern-starter
'use-strict'; import { configureStore } from '../shared/redux/store/configureStore'; import { Provider } from 'react-redux'; import postReducer from '../shared/redux/reducers/reducer'; import { render } from 'react-dom'; import React from 'react'; import App from '../shared/container/App'; import PostListView from '.....
demo/components/navbar/NavBarOptions.js
f0zze/rosemary-ui
import React from 'react'; import {NavItem, NavHrefItem} from '../../../src'; import OptionsTable from '../../helper/OptionsTable'; export default () => { let commonPropDesc = { active: { values: 'boolean', description: 'Set link to be active' }, right: { ...
lib/components/App.js
sanack/atom-jq
/** @babel */ import React from 'react' import InputBottomView from './InputBottomView' import { Provider } from 'react-redux' export const App = (store) => ( <Provider store={store}> <InputBottomView /> </Provider> )
definitions/npm/radium_v0.19.x/test_radium-v0.19.x.js
mkscrg/flow-typed
// @flow import React from 'react'; import Radium from 'radium'; import type { FunctionComponent } from 'radium' type Props1 = { a: number, b: string }; const C1: FunctionComponent<Props1, void> = (props: Props1) => <div>{props.a} {props.b}</div> type Props2 = { a: number, b: string, }; class C2 ext...
src/components/attributes/scatter-plot/local-attributes/GridLines.js
eveafeline/D3-ID3-Naomi
import React, { Component } from 'react'; class GridLines extends Component { constructor(props) { super(props) this.state = { checkbox: false } this.handleCheckbox = this.handleCheckbox.bind(this); this.onSubmit = this.onSubmit.bind(this); } onSubmit(event) { event.preventDefault...
modules/dreamview/frontend/src/components/PNCMonitor/ControlMonitor.js
jinghaomiao/apollo
import React from 'react'; import { inject, observer } from 'mobx-react'; import SETTING from 'store/config/ControlGraph.yml'; import ScatterGraph, { generateScatterGraph } from 'components/PNCMonitor/ScatterGraph'; @inject('store') @observer export default class ControlMonitor extends React.Component { render() { ...
src/js/container/ScrollSpy.js
tpucci/jobads-webapp
import React from 'react'; let latestKnownScrollY; let raf; let ticking; let waiting; let endScrollHandle; export default class ScrollSpy extends React.Component { constructor(props) { super(props); this.state = { top: 0, inertia: 0, isAtTop: true }; ...
sub-packs/themes/zealder-default-theme/src/components/Html.js
Zealder/zealder-cms
// @flow // this is the most generic content component that only export content as html import React from 'react'; export default class Html extends React.Component { componentDidMount() { if ($(".as-html form").length) { // since there is form on page, add recaptcha grecaptcha.ready(function() { ...
src/components/Contact/Contact.js
notaurologist/jasonlemoine.com
import React from 'react'; import styles from './contact.css'; const Contact = () => ( <main className={ styles.contact }> <form action="https://formspree.io/site@lemoine.io" method="POST"> <input type="hidden" name="_next" value="http://www.jasonlemoine.com/contact/thanks" /> <input type="text" name="_gotcha...
src/containers/community/InvitationList.js
Hylozoic/hylo-redux
import React from 'react' import { humanDate } from '../../util/text' import A from '../../components/A' import Avatar from '../../components/Avatar' import { fetchInvitations, sendCommunityInvitation, notify, resendAllCommunityInvitations } from '../../actions' import { FETCH_INVITATIONS } from '../../actions/cons...
test/fixtures/webpack-message-formatting/src/AppAliasUnknownExport.js
timlogemann/create-react-app
import React, { Component } from 'react'; import { bar as bar2 } from './AppUnknownExport'; class App extends Component { componentDidMount() { bar2(); } render() { return <div />; } } export default App;
app/javascript/mastodon/features/ui/components/columns_area.js
WitchesTown/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl } from 'react-intl'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ReactSwipeableViews from 'react-swipeable-views'; import { links, getIndex, get...
modules/IndexLink.js
upraised/react-router
import React from 'react' import Link from './Link' const IndexLink = React.createClass({ render() { return <Link {...this.props} onlyActiveOnIndex={true} /> } }) export default IndexLink
src/js/components/icons/base/Power.js
odedre/grommet-final
/** * @description Power SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @prop...
src/Transition.js
cesarandreu/react-overlays
import React from 'react'; import transitionInfo from 'dom-helpers/transition/properties'; import addEventListener from 'dom-helpers/events/on'; import classnames from 'classnames'; let transitionEndEvent = transitionInfo.end; export const UNMOUNTED = 0; export const EXITED = 1; export const ENTERING = 2; export cons...
src/svg-icons/hardware/laptop-windows.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareLaptopWindows = (props) => ( <SvgIcon {...props}> <path d="M20 18v-1c1.1 0 1.99-.9 1.99-2L22 5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2v1H0v2h24v-2h-4zM4 5h16v10H4V5z"/> </SvgIcon> ); Hardwar...
actor-apps/app-web/src/app/components/sidebar/ContactsSectionItem.react.js
voidException/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import DialogActionCreators from 'actions/DialogActionCreators'; import AvatarItem from 'components/common/AvatarItem.react'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class ...
src/cms/preview-templates/page-preview.js
wall3/wall3.github.io
// @flow strict import React from 'react'; import type { Entry, WidgetFor } from '../../types'; type Props = { entry: Entry, widgetFor: WidgetFor }; const PagePreview = ({ entry, widgetFor }: Props) => { const body = widgetFor('body'); const title = entry.getIn(['data', 'title']); return ( <div classNa...
core/src/plugins/gui.ajax/res/js/ui/Workspaces/search/components/FileSizePanel.js
huzergackl/pydio-core
/* * Copyright 2007-2017 Charles du Jeu - Abstrium SAS <team (at) pyd.io> * This file is part of Pydio. * * Pydio is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, o...
cm19/ReactJS/your-first-react-app-exercises-master/exercise-11/complete/App.js
Brandon-J-Campbell/codemash
import React, { Component } from 'react'; import Exercise from './Exercise'; import styles from './App.css'; import classNames from 'classnames'; class App extends Component { render() { return ( <div className={styles.app}> <header className={styles.appHeader}> <h1 className={styles.app...
examples/react-native/index.ios.js
natew/rxdb
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import { AppRegistry, } from 'react-native'; import React, { Component } from 'react'; import App from './src' AppRegistry.registerComponent('reactNative', () => App);
app/components/ProgressBar.js
AngelGallegosE/Osiris
import React from 'react'; class ProgressBar extends React.Component { render() { return ( <div id="MainProgressBarContainer"> <progress id="progressBar" value={this.props.value} max="100" className={this.props.value===0?'hidden':''}></progress> </div> ); } } ProgressBar.propTypes = { ...
src/server.js
brecht/react-redux-universal-hot-example
import Express from 'express'; import React from 'react'; import Location from 'react-router/lib/Location'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; import httpProxy from 'http-proxy'; import path from 'path'; import createStore from './redux/create'; im...
test/integration/image-component/default/pages/style-inheritance.js
azukaru/next.js
import React from 'react' import Image from 'next/image' import style from '../style.module.css' const Page = () => { return ( <div id="main-container" className={style.mainContainer}> <h1>Image Style Inheritance</h1> <Image id="img-fixed" layout="fixed" src="/test.jpg" ...
frontend/src/components/dir-view-mode/dir-column-view.js
miurahr/seahub
import React from 'react'; import PropTypes from 'prop-types'; import DirColumnNav from './dir-column-nav'; import DirColumnFile from './dir-column-file'; import DirListView from './dir-list-view'; const propTypes = { path: PropTypes.string.isRequired, repoID: PropTypes.string.isRequired, // repoinfo currentRe...
app/javascript/mastodon/features/account_timeline/index.js
sylph-sin-tyaku/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { fetchAccount } from '../../actions/accounts'; import { expandAccountFeaturedTimeline, expandAccountTimeline } from '../../actions/timelines'; import ...
src/web/solutions/SolveError/SolutionForm.js
whybug/whybug-server
import React from 'react'; export var SolutionForm = React.createClass({ propTypes: { solution: React.PropTypes.object, onChange: React.PropTypes.func, onSave: React.PropTypes.func }, render() { var solution = this.props.solution || {}; return form({}, ...
test/regressions/site/src/tests/Divider/InsetDivider.js
und3fined/material-ui
// @flow weak import React from 'react'; import Divider from 'material-ui/Divider'; export default function InsetDivider() { return ( <div style={{ padding: 2, width: 100 }}> <Divider inset /> </div> ); }
shared/components/Comment.js
AndrewGibson27/react-webpack-express-isomorphic-boilerplate
import React, { Component } from 'react'; const Comment = ({ body }) => ( <p>{body}</p> ); export default Comment;
src/parser/warrior/arms/modules/core/Execute/MortalStrike.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import { formatPercentage } from 'common/format'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Abilities from 'parser/core/modules/Abilities'; import calculateMaxCasts from 'parser/core/c...
packages/icons/src/md/maps/Navigation.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdNavigation(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <polygon points="24 5 9 41.59 10.41 43 24 37 37.59 43 39 41.59" /> </IconBase> ); } export default MdNavigation;
RNApp/node_modules/react-native/local-cli/generator/templates/index.android.js
abhaytalreja/react-native-telescope
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class <%= name %> extends Component { render() { return ( <View style={styles.container}> <T...
src/main.js
daveham/ilgmrdx
import React from 'react'; import ReactDOM from 'react-dom'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import { useRouterHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import createStore from 'store/createStore'; import Root from 'containers/Root'; ...
analysis/deathknightblood/src/CONFIG.js
anom0ly/WoWAnalyzer
import SPELLS from 'common/SPELLS'; import { Yajinni, joshinator } from 'CONTRIBUTORS'; import SPECS from 'game/SPECS'; import { SpellLink } from 'interface'; import React from 'react'; import CHANGELOG from './CHANGELOG'; export default { // The people that have contributed to this spec recently. People don't have...
packages/example-universal-react-app/src/index.js
raymondsze/create-react-scripts
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();
packages/components/src/List/Toolbar/ItemsNumber/ItemsNumber.component.js
Talend/ui
import React from 'react'; import PropTypes from 'prop-types'; import getDefaultT from '../../../translate'; function ItemsNumber({ id, totalItems, selected, label, labelSelected, t }) { return ( <div className="tc-items-number" id={id}> {selected ? labelSelected || t('LIST_TOOLBAR_NUMBER_OF_SELECTED_I...
src/components/relativeLink/index.js
LiskHQ/lisk-nano
import React from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { withRouter } from 'react-router'; import buttonStyle from 'react-toolbox/lib/button/theme.css'; import offlineStyle from '../offlineWrapper/offlineWrapper.css'; import dialogs from '../dialog/dialogs'; c...
client/src/components/StreamField/blocks/FieldBlock.js
torchbox/wagtail
/* global $ */ import { escapeHtml as h } from '../../../utils/text'; import ReactDOM from 'react-dom'; import React from 'react'; import Icon from '../../Icon/Icon'; export class FieldBlock { constructor( blockDef, placeholder, prefix, initialState, initialError, parentCapabilities, ) { ...
server/prerenderer.js
firegoby/react-ecosystem-aurora
import React from 'react' import Router from 'react-router' import Flux from '../app/flux.js' import routes from '../app/routes.js' import performRouteHandlerStaticMethod from '../app/shared/performRouteHandlerStaticMethod' export default function (req, res) { const flux = new Flux() // let's just assume `n...
modules/IndexLink.js
littlefoot32/react-router
import React from 'react' import Link from './Link' var IndexLink = React.createClass({ render() { return <Link {...this.props} onlyActiveOnIndex={true} /> } }) export default IndexLink
src/parser/monk/brewmaster/modules/core/MasteryValue.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import HIT_TYPES from 'game/HIT_TYPES'; import Analyzer from 'parser/core/Analyzer'; import StatTracker from 'parser/shared/modules/StatTracker'; import LazyLoadStatisticBox from 'interface/others/LazyLoadStatisticBox'; import SpellIcon from 'common/SpellIc...
src/js/components/AccordionPanel.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import Header from './Header'; import Button from './Button'; import ListItem from './ListItem'; import CaretNextIcon from './icons/bas...
local-cli/templates/HelloNavigation/components/ListItem.js
makadaw/react-native
'use strict'; import React, { Component } from 'react'; import { Platform, StyleSheet, Text, TouchableHighlight, TouchableNativeFeedback, View, } from 'react-native'; /** * Renders the right type of Touchable for the list item, based on platform. */ const Touchable = ({onPress, children}) => { const c...
packages/starter-scripts/fixtures/kitchensink/src/features/webpack/ScssModulesInclusion.js
chungchiehlun/create-starter-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. */ import React from 'react'; import styles from './assets/scss-styles.module.scss'; import indexStyles from './assets/index.module.scss'; ...
components/navbar/DropDownMenu.js
telemark/portalen
import React from 'react' import { Icon } from '../styles' export default class extends React.Component { constructor (props) { super(props) this.state = { isOpen: false } this.handleOutsideClick = this.handleOutsideClick.bind(this) this.handleClick = this.handleClick.bind(this) } hand...
src/files/explore-form/FilesExploreForm.stories.js
ipfs/webui
import React from 'react' import { storiesOf } from '@storybook/react' import { action } from '@storybook/addon-actions' import { checkA11y } from '@storybook/addon-a11y' import i18n from '../../i18n-decorator' import FilesExploreForm from './FilesExploreForm' storiesOf('Files', module) .addDecorator(checkA11y) .a...
src/svg-icons/av/high-quality.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvHighQuality = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 11H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm7-1c0 .55-.45 1-1 1h-.75v1.5h-1....
client/components/ReactHotLoader.js
KCPSoftware/KCPS-React-Starterkit
/* eslint-disable global-require */ /* eslint-disable import/no-extraneous-dependencies */ import React from 'react'; // We create this wrapper so that we only import react-hot-loader for a // development build. Small savings. :) const ReactHotLoader = process.env.NODE_ENV === 'development' ? require('react-hot-lo...
src/icons/IosListOutline.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosListOutline extends React.Component { render() { if(this.props.bare) { return <g> <g> <g> <path d="M432,80v352H80V80H432 M448,64H64v384h384V64L448,64z"></path> <g> <rect x="192" y="152" width="192"...
src/elements/List/ListHeader.js
aabustamante/Semantic-UI-React
import cx from 'classnames' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' /** * A list item can contain a header. */ function ListHeader(props) { const { ch...
src/routes.js
Rosita13/react-redux
/* eslint-disable */ import React from 'react'; import { IndexRoute, Route } from 'react-router'; import { routerActions } from 'react-router-redux'; import { UserAuthWrapper } from 'redux-auth-wrapper'; import { App, Home, NotFound } from 'containers'; import getRoutesUtils from 'utils/routes'; // eslint-disable-next...
app/javascript/components/FieldShape/FieldShape.js
SumOfUs/Champaign
import React, { Component } from 'react'; import { map, pick } from 'lodash'; import SweetInput from '../SweetInput/SweetInput'; import SelectCountry from '../SelectCountry/SelectCountry'; import SweetSelect from '../SweetSelect/SweetSelect'; import Checkbox from '../Checkbox/Checkbox'; export default class FieldShape...
client/app/containers/LocaleToggle/index.js
KamillaKhabibrakhmanova/postcardsforchange-api
/* * * LanguageToggle * */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import Toggle from 'components/Toggle'; import Wrapper from './Wrapper'; import messages from './messages'; import { appLocales } from '../../i18n'; import { changeLocale } from ...
src/components/table/TableQuickInput.js
metasfresh/metasfresh-webui-frontend
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import cx from 'classnames'; import { getLayout, patchRequest } from '../../api'; import { addNotification } from '../../actions/AppActions'; import { completeRequest, createInstance } from '../../actio...
client/modules/App/__tests__/Components/Header.spec.js
GTDev87/stylizer
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import { shallow } from 'enzyme'; import { FormattedMessage } from 'react-intl'; import { Header } from '../../components/Header/Header'; import { intl } from '../../../../util/react-intl-test-helper'; const intlProp = { ...intl, enabledLang...
src/svg-icons/action/settings-overscan.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsOverscan = (props) => ( <SvgIcon {...props}> <path d="M12.01 5.5L10 8h4l-1.99-2.5zM18 10v4l2.5-1.99L18 10zM6 10l-2.5 2.01L6 14v-4zm8 6h-4l2.01 2.5L14 16zm7-13H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18...
src/index.js
erdgabios/react-youtube-search
import _ from 'lodash'; import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import YTSearch from 'youtube-api-search'; import SearchBar from './components/search_bar'; import VideoList from './components/video_list'; import VideoDetail from './components/video_detail'; // Put here your youtube-...