path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/notification/phone-missed.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPhoneMissed = (props) => ( <SvgIcon {...props}> <path d="M6.5 5.5L12 11l7-7-1-1-6 6-4.5-4.5H11V3H5v6h1.5V5.5zm17.21 11.17C20.66 13.78 16.54 12 12 12 7.46 12 3.34 13.78.29 16.67c-.18.18-.29.43-.29.71...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ObjectDestructuring.js
IamJoseph/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, { Component } from 'react'; import PropTypes from 'prop-types'; function load() { return [ { id: 1, name: '1' }, ...
server/sonar-web/src/main/js/apps/permission-templates/permission-template-defaults.js
vamsirajendra/sonarqube
import _ from 'underscore'; import React from 'react'; import QualifierIcon from '../../components/shared/qualifier-icon'; export default React.createClass({ propTypes: { permissionTemplate: React.PropTypes.object.isRequired, topQualifiers: React.PropTypes.array.isRequired }, renderIfSingleTopQualifier(...
src/index.js
b1alpha/Smoothie-Du-Jour
/** * Index - this is where everything * starts - but offloads to app.js * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ /* global __DEV__ */ import React from 'react'; import { applyMiddleware, compose, createStore } from 'redux'; import { connect, Provider } from 'react-re...
src/svg-icons/image/monochrome-photos.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageMonochromePhotos = (props) => ( <SvgIcon {...props}> <path d="M20 5h-3.2L15 3H9L7.2 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 14h-8v-1c-2.8 0-5-2.2-5-5s2.2-5 5-5V7h8v12zm-3...
src/components/StepNavigation/StepNavigation.Skeleton.js
wfp/ui
import React from 'react'; export default class TabsSkeleton extends React.Component { render() { const tab = ( <li className="wfp--tabs__nav-item"> <div className="wfp--tabs__nav-link">&nbsp;</div> </li> ); return ( <nav className="wfp--tabs wfp--skeleton"> <div classNa...
node_modules/antd/es/button/button.js
ZSMingNB/react-news
import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/actual.js
darklilium/Factigis_2
import React, { Component } from 'react'; class Foo extends Component { render() {} }
boilerplates/app/src/routes/user/List.js
hexagonframework/antd-admin-cli
import React from 'react' import PropTypes from 'prop-types' import { Table, Modal } from 'antd' import { Link } from 'dva/router' import classnames from 'classnames' import styles from './List.less' import AnimTableBody from '../../components/DataTable/AnimTableBody' import { DropOption } from '../../components' con...
src/components/Section.js
TrueWill/embracer
import React from 'react'; import PropTypes from 'prop-types'; export default function Section({ header, footer, children }) { return ( <div className="row"> <div className="col-sm-12"> <div className="card"> <div className="card-header">{header}</div> <div className="card-body"...
packages/idyll-components/src/stepper.js
idyll-lang/idyll
import React from 'react'; const { filterChildren, mapChildren } = require('idyll-component-children'); class Stepper extends React.PureComponent { constructor(props) { super(props); this.SCROLL_STEP_MAP = {}; this.SCROLL_NAME_MAP = {}; } registerStep(elt, name, val) { this.SCROLL_STEP_MAP[elt] ...
src/views/RemoveView.js
tuomashatakka/tool-bar-gui
'use babel' import self from 'autobind-decorator' import React from 'react' import BaseView from './BaseView' import List from '../components/DraggableList' let addedSubscription export default class RemoveView extends BaseView { title = 'Remove items' subtitle = 'Remove items from the tool bar.' className = ...
app/javascript/packs/component-definitions-common.js
ManageIQ/manageiq-ui-classic
import React from 'react'; import { TagGroup, TableListView, GenericGroup } from '../components/textual_summary'; import { Quadicon } from '../components/quadicon'; import { Toolbar } from '../components/toolbar'; import ActionForm from '../components/action-form'; import AddRemoveSecurityGroupForm from '../component...
app/jsx/bundles/discussion.js
djbender/canvas-lms
/* * Copyright (C) 2012 - 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...
web-ui/src/backup_account/page.js
pixelated/pixelated-user-agent
/* * Copyright (c) 2017 ThoughtWorks, Inc. * * Pixelated 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, or * (at your option) any later version. * * Pixelated i...
src/svg-icons/action/open-in-new.js
ngbrown/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/components/onsen/ons-toolbar/button.js
c58/onsenui-react
import React from 'react'; import { applyModifiers } from '../modifier-util'; const scheme = { 'toolbar-button': 'toolbar-button--*' }; export default class OnsToolbarButton extends React.Component { render() { return applyModifiers(this.props, scheme, 0, <ons-toolbar-button {...this.props} ...
public/js/components/profile/Photos.react.js
IsuruDilhan/Coupley
import React from 'react'; import RaisedButton from 'material-ui/lib/raised-button'; import ProfileActions from '../../actions/profile/ProfileActions'; import ProfileStore from '../../stores/ProfileStore'; import Photo from './Photo.react'; const Photos = React.createClass({ getInitialState: function() { return ...
examples/todomvc/src/components/Todo.js
4Catalyzer/found-relay
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { createFragmentContainer, graphql } from 'react-relay'; import ChangeTodoStatusMutation from '../mutations/ChangeTodoStatusMutation'; import RemoveTodoMutation from '../mutations/RemoveTodoMutation'; import Rena...
packages/react-interactions/events/src/dom/Keyboard.js
rricard/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type { ReactDOMResponderEvent, ReactDOMResponderContext, } from 'shared/ReactDOMTypes'; import type {ReactE...
src/PlacesAutocomplete.js
kenny-hibino/react-places-autocomplete
/* * Copyright (c) 2016-present, Ken Hibino. * Licensed under the MIT License (MIT). * See https://kenny-hibino.github.io/react-places-autocomplete */ import React from 'react'; import PropTypes from 'prop-types'; import debounce from 'lodash.debounce'; import { compose } from './helpers'; // transform snake_case to ...
SSBW/Tareas/Tarea9/restaurantes2/node_modules/react-bootstrap/es/CloseButton.js
jmanday/Master
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import * as PropTypes from 'prop-types'; import React from 'react'; var propTypes = { label: PropTypes....
local-cli/templates/HelloNavigation/components/KeyboardSpacer.js
hoastoolshop/react-native
/** * Copyright (c) 2013-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. */ 'use strict'; /* @flow */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Platform, View, ...
src/shared/components/authenticatedRoute/authenticatedRoute.js
hollomancer/operationcode_frontend
import React from 'react'; import SocialLogin from 'shared/components/socialLogin/socialLogin'; import PropTypes from 'prop-types'; import { Route, Redirect } from 'react-router-dom'; const AuthenticatedRoute = (props) => { if (!props.isAuth) { return <Redirect to={{ pathname: '/login', state: { referrer: props....
docs/src/app/components/pages/components/Dialog/ExampleScrollable.js
ichiohta/material-ui
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; import {RadioButton, RadioButtonGroup} from 'material-ui/RadioButton'; const styles = { radioButton: { marginTop: 16, }, }; /** * Dialog co...
src/Col.js
insionng/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import styleMaps from './styleMaps'; import CustomPropTypes from './utils/CustomPropTypes'; const Col = React.createClass({ propTypes: { /** * The number of columns you wish to span * * for Extra small devices Phones (<768px) * ...
client/index.js
Dokvel/outfit_ua
/** * Client entry point */ import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import App from './App'; import { configureStore } from './store'; // Initialize store const store = configureStore(window.__INITIAL_STATE__); const mountApp = document.getEleme...
src/components/chart.js
oswaldosalazar/ReactReduxWeather
import _ from 'lodash'; import React from 'react'; import { Sparklines, SparklinesLine, SparklinesReferenceLine } from 'react-sparklines'; function average(data) { return _.round(_.sum(data)/data.length) } export default (props) => { return ( <div> <Sparklines svgHeight={120} svgWidth={180} data={props....
actor-apps/app-web/src/app/components/sidebar/ContactsSectionItem.react.js
hejunbinlan/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 ...
client/app/components/Room/FeedbackHint.js
Zuehlke/poinz
import React from 'react'; import {connect} from 'react-redux'; import PropTypes from 'prop-types'; import Avatar from '../common/Avatar'; import {hideNewUserHints} from '../../state/actions/uiStateActions'; import {StyledFeedbackHint} from './_styled'; const FeedbackHint = ({hintsHidden, hideNewUserHints}) => { i...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
medaymenourabi/HikingZoneFront
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'));
src/components/ui/FormInput.js
elarasu/roverz-chat
/** * Text Input * <FormInput></FormInput> * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { FormInput } from 'react-native-elements'; // Consts and Libs import { AppColors, AppFonts } ...
app/jsx/actAs/ActAsModal.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...
EduChainApp/js/tabs/tasks/TaskListRow.js
bkrem/educhain
/** * Created by BK on 21/06/16. * * @flow */ 'use strict'; import React from 'react'; import { Text, View, TouchableOpacity, StyleSheet } from 'react-native'; import type {Task} from '../../reducers/tasks'; type Props = { onPress: () => void, row: Task } export default cl...
clients/components/DocSearch/Components/Pagination.js
CalderaWP/Caldera-Forms
import React from 'react'; import { Pager } from 'react-bootstrap'; export class Pagination extends React.Component { constructor(props){ super(props); this.disablePrev = this.disablePrev.bind(this); this.disableNext = this.disableNext.bind(this); this.showPagination = this.showPag...
src/containers/async/components/AsyncContentComponent.js
kryptnostic/gallery
import React from 'react'; import PropTypes from 'prop-types'; import map from 'lodash/map'; import mapValues from 'lodash/mapValues'; import isPlainObject from 'lodash/isPlainObject'; import flatMapDeep from 'lodash/flatMapDeep'; import isArrayLikeObject from 'lodash/isArrayLikeObject'; import { connect } from 'reac...
source/components/home-intro.js
oldirony/portfolio
import React from 'react' const Intro = () => ( <div className="c-home-intro"> <h1 className="c-home-intro__title o-animate-on-load o-animate-on-load--1"> Raffaele Abramini </h1> <h2 className="c-home-intro__description o-animate-on-load o-animate-on-load--2"> is a frontend engineer </h2...
frontend/src/components/library/index.js
Kilte/scrobbler
import React from 'react'; import {Link} from 'react-router'; import Error from '../shared/error'; import {Pagination, FIRST_PAGE, INITIAL_OFFSET, LIMIT} from '../shared/pagination'; import ProgressBar from '../shared/progress-bar'; import Spinner from '../shared/spinner'; class Library extends React.Component { ...
fixtures/dom/src/components/fixtures/input-change-events/RadioGroupFixture.js
wmydz1/react
import React from 'react'; import Fixture from '../../Fixture'; class RadioGroupFixture extends React.Component { constructor(props, context) { super(props, context); this.state = { changeCount: 0, }; } handleChange = () => { this.setState(({changeCount}) => { return { chan...
packages/mcs-lite-ui/src/Overlay/Overlay.js
MCS-Lite/mcs-lite
/* eslint react/no-find-dom-node: 0 */ import React from 'react'; import PropTypes from 'prop-types'; import { findDOMNode } from 'react-dom'; import Portal from 'react-overlays/lib/Portal'; import Transition from 'react-motion-ui-pack'; import DomAlign from 'react-overlay-pack/lib/DomAlign'; import ClickOutside from ...
app/javascript/mastodon/features/ui/components/report_modal.js
mhffdq/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { changeReportComment, changeReportForward, submitReport } from '../../../actions/reports'; import { refreshAccountTimeline } from '../../../actions/timelines'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-pr...
ReactTest/node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/actual.js
HybridHome/ReactNativeProject
import React from 'react'; const First = React.createNotClass({ displayName: 'First' }); class Second extends React.NotComponent {}
nCoda-win32-x64/resources/app/js/react/codemirror.js
nCoda/Windows
// -*- coding: utf-8 -*- // ------------------------------------------------------------------------------------------------ // Program Name: Julius // Program Description: User interface for the nCoda music notation editor. // // Filename: js/react/codemirror.js // Purpose: Re...
react-lessons/src/App4.js
anderson-amorim/egghead-react
import React, { Component } from 'react'; import PropTypes from 'prop-types'; const HOC = (InnerComponent) => class extends Component { constructor() { super(); this.state = { count: 0 }; } update() { this.setState({ count: this.state.count + 1 }); } componentWillMount() { ...
lib/components/Footer.js
Peter-Springer/peter-springer.github.io
import React from 'react'; class Footer extends React.Component { render() { return ( <section id="footer"> <a target="_blank" href="mailto:peterspringer829@gmail.com"> <img className="footer-links" src="../../img/mail.svg"/> </a> <a target="_blank" href="https://github.co...
web/src/server/components/cards/trend-card.js
opendaylight/spectrometer
/** # @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0> ############################################################################## # Copyright (c) 2016 The Linux Foundation and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Eclipse Public L...
src/routes/PatronBlockContainer.js
folio-org/ui-users
import React from 'react'; import PropTypes from 'prop-types'; import { stripesConnect } from '@folio/stripes/core'; import { PatronBlockLayer } from '../components/PatronBlock'; import { MAX_RECORDS } from '../constants'; class PatronBlockContainer extends React.Component { static manifest = Object.freeze({ sel...
actor-apps/app-web/src/app/components/modals/Contacts.react.js
vanloswang/actor-platform
// // Deprecated // import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import ContactActionCreators from 'actions/ContactActionCreators'; import DialogActionCreators from 'actions/DialogActionCreators'; import ContactStore from 'stores/ContactStore'; import Modal from...
techCurriculum/ui/solutions/6.1/src/components/User.js
tadas412/EngineeringEssentials
/** * Copyright 2017 Goldman Sachs. * 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 law or agreed to...
src/Dialog/Dialog.js
tleunen/react-mdl
import React from 'react'; import PropTypes from 'prop-types'; import { findDOMNode } from 'react-dom'; import classNames from 'classnames'; const propTypes = { className: PropTypes.string, onCancel: PropTypes.func, onBackdropClick: PropTypes.func, open: PropTypes.bool }; const defaultProps = { on...
ui/src/main/js/components/UpdateInstanceSummary.js
apache/aurora
import React from 'react'; import InstanceViz from 'components/InstanceViz'; import { instanceSummary, updateStats } from 'utils/Update'; function UpdateStats({ update }) { const stats = updateStats(update); return (<div className='update-summary-stats'> <h5>Instance Summary</h5> <span className='stats'>...
src/svg-icons/action/exit-to-app.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionExitToApp = (props) => ( <SvgIcon {...props}> <path d="M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c...
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-forms-select.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, ContentMixin} from './../common/common.js'; import {Glyphicon} from './../bricks/bricks.js'; import TextInputMixin from './text-input-mixin.js'; import Select from './select-input.js'; import SelectMultiple from './select-multiple.js'; import './select.les...
examples/main.js
christiaanderidder/react-googlecharts
import React from 'react'; import Examples from './Examples'; var node = document.getElementById('main'); window.render = function(){ React.render(<Examples />, node); }; window.unmount = function() { React.unmountComponentAtNode(node); }; window.render();
project/src/components/ProtectedRoute/ProtectedRoute.js
boldr/boldr
// @flow import React from 'react'; import Route from 'react-router-dom/Route'; import Redirect from 'react-router-dom/Redirect'; import { getToken } from '@boldr/core'; import type { RouterLocation } from '../../types/boldr'; export const hasAccessToken = () => { const token = getToken(); return token; }; export...
app/react/routes/index.js
NikaBuligini/whistleblower-server
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import { ViewerQueries, ProjectQuery } from '../queries'; import { AuthLayout, DefaultLayout } from '../containers/layouts'; import Dashboard from '../containers/dashboard'; import { Login, SignUp } from '../containers/auth'; import Project...
docs/app/Examples/elements/Segment/Variations/SegmentExampleSizes.js
clemensw/stardust
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentExampleSizes = () => { const sizes = ['mini', 'tiny', 'small', 'large', 'big', 'huge', 'massive'] return ( <div> {sizes.map(size => ( <Segment key={size} size={size}> It's a {size} segment </Segm...
node_modules/react-interactive/src/index.js
swapnilabnave/swapnilabnave.github.io
import React from 'react'; import objectAssign from 'object-assign'; import propTypes from './propTypes'; import compareProps from './compareProps'; import mergeAndExtractProps from './mergeAndExtractProps'; import { extractStyle, setActiveAndFocusProps, joinClasses } from './extractStyle'; import recursiveNodeCheck fr...
src/svg-icons/navigation/arrow-downward.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowDownward = (props) => ( <SvgIcon {...props}> <path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"/> </SvgIcon> ); NavigationArrowDownward = pure(NavigationArrowDownward); Na...
src/components/Clash.js
stayradiated/clashjs
import React from 'react' import _ from 'lodash' import * as fx from './../lib/sound-effects' import Tiles from './Tiles' import Ammos from './Ammos' import Players from './Players' import Stats from './Stats' import Shoots from './Shoots' import Notifications from './Notifications' import ClashJS from '../clashjs/C...
fields/types/relationship/RelationshipFilter.js
everisARQ/keystone
import async from 'async'; import React from 'react'; import xhr from 'xhr'; import { FormField, FormInput, SegmentedControl } from 'elemental'; import PopoutList from '../../../admin/client/App/shared/Popout/PopoutList'; const INVERTED_OPTIONS = [ { label: 'Linked To', value: false }, { label: 'NOT Linked To', va...
client/src/pages/app/Logout.js
wujichao/wencheng
import React from 'react' import auth from '../../util/auth' const Logout = React.createClass({ componentDidMount() { auth.logout() }, render() { return <p>登出成功</p> } }); export default Logout
src/Parser/Priest/Discipline/Modules/Features/PowerWordShieldWasted.js
hasseboulen/WoWAnalyzer
import React from 'react'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import { formatNumber } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import SPELLS from 'common/SPELLS'; import Analyzer from 'Parser/Core/Analyzer'; class PowerWordShieldWasted extends Analyzer { waste...
public/js/components/profile/Photo.react.js
IsuruDilhan/Coupley
import React from 'react'; import Divider from 'material-ui/lib/divider'; import Avatar from 'material-ui/lib/avatar'; import Paper from 'material-ui/lib/paper'; import GridList from 'material-ui/lib/grid-list/grid-list'; import GridTile from 'material-ui/lib/grid-list/grid-tile'; import IconButton from 'material-ui/li...
javascript/canopy-listing/Waiting.js
AppStateESS/carousel
'use strict' import React from 'react' import PropTypes from 'prop-types' const Waiting = (props) => { let message if (props.message.length === 0) { message = <span>Loading {props.label}...</span> } else { message = props.message } return ( <div className="lead text-center"> <i className="f...
examples/filters/src/Paginator.js
vtaits/redux-filterlist
import React from 'react' const buttonStyle = { display: 'inline-block', marginRight: '10px', } const clickableButtonStyle = Object.assign({}, buttonStyle, { color: 'blue', cursor: 'pointer', }) const Paginator = ({ count, perPage, current, setPage, }) => { const pagesLength = Math.ceil(count / pe...
server/sonar-web/src/main/js/components/shared/pending-icon.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
frontend/app/components/SearchDictionary/SearchDictionaryContainer.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import SearchDictionaryPresentation from 'components/SearchDictionary/SearchDictionaryPresentation' import SearchDictionaryData from 'components/SearchDictionary/SearchDictionaryData' /** * @summary SearchDictionaryContainer * @version 1.0.1 * @component * * @param {object} props * * @...
src/react/components/Header/Header.js
formtools/core
import React from 'react'; import styles from './Header.scss'; const Header = ({ constants }) => ( <section className={styles.header}> <div className={styles.logo}> <a href="https://formtools.org"> <img src={`${constants.rootUrl}/themes/default/images/logo_green2x.png`} border="0" width="220" height="67" /> ...
index.js
chrisdlangton/devops-at-scale
import React from 'react' import {render} from 'react-dom' import {Provider} from 'react-redux' import {Router, Route, IndexRoute, browserHistory} from 'react-router' import {syncHistoryWithStore} from 'react-router-redux' import {Wrapper} from './components/Elements' import {Home, Team, Services, Contact} from...
src/components/Markdown/Break.js
jonahjoughin/blog.jough.in
import React from 'react'; const Break = () => ( <br/> ); export default Break;
app/containers/app.container.js
jmsstudio/sc-player
/** * Created with IntelliJ IDEA. * * @author: jefferson.souza * @dateCreated: 13/05/16 */ import React from 'react'; import Axios from 'axios'; import Sound from 'react-sound'; import Search from '../components/search.component.js'; import Details from '../components/details.component.js'; import Player from '.....
dev/components/molecules/filterableProductTable.js
Thr1ve/Dispense
import sortBy from 'amp-sort-by' import React from 'react' import SearchField from '../atoms/searchField.js' import app from 'ampersand-app' import Fuse from'fuse.js' import mui from 'material-ui' let { Menu } = mui var FilterableProductTable = React.createClass({ contextTypes: { router: React.PropTypes.func ...
src/options/settings/components/SearchInjection.js
WorldBrain/WebMemex
import React from 'react' import PropTypes from 'prop-types' import styles from './settings.css' const SearchInjection = ({ children }) => { return ( <div className={styles.section}> <div className={styles.sectionTitle}> Show Memex Results in Search Engines </div> ...
examples/FloatingButton.js
chris-gooley/react-materialize
import React from 'react'; import Button from '../src/Button'; export default <Button floating large className='red' waves='light' icon='add' />;
app/components/Post/index.js
vonkanehoffen/wp-react
/** * * Post * */ import React from 'react' import ReactDOM from 'react-dom' import { Link } from 'react-router' import DateMeta from 'components/DateMeta' import Tags from 'components/Tags' import CommentCount from 'components/CommentCount' import Comments from 'containers/Comments' import './style.scss' import lineM...
src/collections/Form/FormButton.js
mohammed88/Semantic-UI-React
import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' import Button from '../../elements/Button' import FormField from './FormField' /** * Sugar for <Form.Field control={Button} /> * @see Button * @see Form */ function FormButton(props) { const ...
blueprints/view/files/__root__/views/__name__View/__name__View.js
bingomanatee/ridecell
import React from 'react' type Props = { }; export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } export default <%= pascalEntityName %>
src/index.js
Andrew-He/moka
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; import './App.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/svg-icons/av/volume-off.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVolumeOff = (props) => ( <SvgIcon {...props}> <path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86...
src/svg-icons/image/filter-none.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterNone = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"/> </SvgIcon> ); Ima...
src/components/views/elements/AddressTile.js
aperezdc/matrix-react-sdk
/* Copyright 2015, 2016 OpenMarket Ltd Copyright 2017 New Vector Ltd 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 la...
src/svg-icons/content/add.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentAdd = (props) => ( <SvgIcon {...props}> <path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/> </SvgIcon> ); ContentAdd = pure(ContentAdd); ContentAdd.displayName = 'ContentAdd'; ContentAdd.muiName = 'SvgIcon...
src/gatsby-theme-docz/wrapper.js
thegrinder/basic-styled-uikit
/* eslint-disable */ import React from 'react'; import { ThemeProvider } from 'styled-components'; import theme from '../../../src/theme/theme'; const Wrapper = ({ children }) => ( <ThemeProvider theme={theme}> <div>{children}</div> </ThemeProvider> ); export default Wrapper;
NavigationReactMobile/sample/medley/Scene.js
grahammendick/navigation
import React from 'react'; import {NavigationContext, NavigationBackLink, NavigationLink} from 'navigation-react'; const nextDirection = { North: 'East', East: 'South', South: 'West', West: 'North', }; export default ({direction, color}) => ( <NavigationContext.Consumer> {({stateNavigator}) => ( <...
react/features/chat/components/web/ChatPrivacyDialog.js
gpolitis/jitsi-meet
/* @flow */ import React from 'react'; import { Dialog } from '../../../base/dialog'; import { translate } from '../../../base/i18n'; import { connect } from '../../../base/redux'; import { AbstractChatPrivacyDialog, _mapDispatchToProps, _mapStateToProps } from '../AbstractChatPrivacyDialog'; /** * Implements a com...
src/components/Loader/Loader.stories.js
InsideSalesOfficial/insidesales-components
import React from "react"; import { storiesOf } from "@storybook/react"; import Loader from "./"; import { wrapComponentWithContainerAndTheme, colors } from "../styles"; const darkExample = { height: "40px", backgroundColor: "#2a434a", padding: "16px" }; function renderChapterWithTheme(theme) { return { ...
assets/javascripts/kitten/components/information/icon-badge/stories.js
KissKissBankBank/kitten
import React from 'react' import { IconBadge } from './index' import { StarIcon, COLORS } from 'kitten' import { DocsPage } from 'storybook/docs-page' export default { title: 'Information/IconBadge', component: IconBadge, parameters: { docs: { page: () => <DocsPage filepath={__filename} importString="I...
src/svg-icons/device/airplanemode-active.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceAirplanemodeActive = (props) => ( <SvgIcon {...props}> <path d="M10.18 9"/><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/...
src/components/Hero.js
justinlawrence/chordboard
import React from 'react' import { styled } from '@material-ui/core/styles' import cx from 'classnames' import Grid from '@mui/material/Grid' const PREFIX = 'Hero' const classes = { root: `${PREFIX}-root`, } const Root = styled('div')(({ theme }) => ({ [`&.${classes.root}`]: theme.mixins.gutters({ backgroundCol...
src/components/Toolbar.js
robshox/boostv1
import React from 'react'; import { showAddDeck, filterCards } from '../actions'; import { Link } from 'react-router'; import { connect } from 'react-redux'; const mapDispatchToProps = dispatch => ({ showAddDeck: () => dispatch(showAddDeck()), onFilter: query => dispatch(filterCards(query)) }); const Toolbar = ({...
fields/explorer/components/FieldType.js
creynders/keystone
import React from 'react'; import Markdown from 'react-markdown'; import Col from './Col'; import Row from './Row'; import FieldSpec from './FieldSpec'; const ExplorerFieldType = React.createClass({ getInitialState () { return { readmeIsVisible: !!this.props.readme, filter: this.props.FilterComponent.getDefa...
examples/huge-apps/routes/Course/components/Nav.js
kelsadita/react-router
import React from 'react'; import { Link } from 'react-router'; import AnnouncementsRoute from '../routes/Announcements'; import AssignmentsRoute from '../routes/Assignments'; import GradesRoute from '../routes/Grades'; const styles = {}; styles.nav = { borderBottom: '1px solid #aaa' }; styles.link = { display: ...
src/svg-icons/image/filter-none.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterNone = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"/> </SvgIcon> ); Ima...
test/helpers/history-wrapper.js
travi/travi.org-admin
import React from 'react'; import {shape} from 'prop-types'; import {createMemoryHistory} from 'react-router'; export default class HistoryWrapper extends React.Component { getChildContext() { const historyInstance = createMemoryHistory(); historyInstance.isActive = () => undefined; historyInstance.setR...
src/client/index.js
Albyxyz/oszoo
import React from 'react'; import ReactDOM from 'react-dom'; import injectTapEventPlugin from 'react-tap-event-plugin'; import { Provider } from 'react-redux'; import createStore from './store/configureStore'; import App from './containers/app'; const store = createStore(); injectTapEventPlugin(); ReactDOM.render(...
frontend/src/components/organizationProfile/edit/projectImplementation/partnerProfileProjectImplementationManagement.js
unicef/un-partner-portal
import React from 'react'; import { formValueSelector, FormSection } from 'redux-form'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import RadioForm from '../../../forms/radioForm'; import TextFieldForm from '../../../forms/textFieldForm'; import { visibleIfYes, BOOL_VAL } from '../../../...
app/assets/javascripts/src/components/sharedComponents/IceCreamCone4.js
talum/creamery
import React from 'react' const IceCreamCone4 = () => ( <div className="button button--circle button--has-icon button--color-mint"> <div className="button__icon"> <svg viewBox="600 -630 400 320"> <g transform="matrix(1,0,0,-1,0,1)" id="g10"> <g transform="scale(...
examples/index.js
pavkout/react-devices
import React from 'react'; import ReactDOM from 'react-dom'; import App from './app.jsx'; ReactDOM.render(<App />, document.getElementById('app'));
test/test_helper.js
xMiLkx/react-router
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...