path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/Team/FourButtons.react.js
madhavrathi/chat.susi.ai
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import IconButton from 'material-ui/IconButton'; import { CardActions } from 'material-ui/Card'; class FourButtons extends Component { render() { const flatButtonStyle = { minWidth: '25%', fontSize: '25...
ajax/libs/react-instantsearch/5.4.0/Connectors.js
joeyparrish/cdnjs
/*! React InstantSearch 5.4.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) ...
src/main.js
availabs/weather-enterprise
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import { Provider } from 'react-redux' import { browserHistory, Router } from 'react-router' // ======================================================== // Store Instantiation // ===================================...
gatsby-strapi-tutorial/cms/admin/admin/src/containers/AdminPage/index.js
strapi/strapi-examples
/* * AdminPage * * This is the first thing users see of our AdminPage, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a neccessity for you then you can refactor it and remove ...
src/GoogleAddressInputWithLabel/GoogleAddressInputWithLabel.js
skyiea/wix-style-react
import React from 'react'; import {children, optional, once} from '../Composite'; import Label from '../Label'; import GoogleAddressInput from '../GoogleAddressInput'; import InputAreaWithLabelComposite from '../Composite/InputAreaWithLabelComposite/InputAreaWithLabelComposite'; const GoogleAddressInputWithLabel = ({....
webapp/app/components/ImageManagement/ListImage/index.js
EIP-SAM/SAM-Solution-Node-js
// // Image List main components // import React from 'react'; import { Table } from 'react-bootstrap'; import Tr from 'components/Tr'; import Th from 'components/Th'; import Td from 'components/Td'; import ButtonPopover from 'components/ButtonPopover'; import styles from './styles.css'; const columns = ['#', 'Name'...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/LifecycleMethodsNone.js
jamesgpearce/flow
// @flow import React from 'react'; class MyComponent1 extends React.Component { componentWillReceiveProps() {} } class MyComponent2 extends React.Component { shouldComponentUpdate() {} } class MyComponent3 extends React.Component { componentWillUpdate() {} } class MyComponent4 extends React.Component { co...
src/Footer.js
myflwq/big-demo
import React from 'react'; class Footer extends React.Component { getStyles() { return { footer: { padding: '30px 0', color: '#fff', backgroundColor: '#212121', textAlign:'center', lineHeight:'200px', fontSize: '30px' }, img: { display: 'bl...
src/mobile/components/UsersDrawer/UserList.js
welovekpop/uwave-web-welovekpop.club
import React from 'react'; import PropTypes from 'prop-types'; import withProps from 'recompose/withProps'; import { translate } from 'react-i18next'; import List from '@material-ui/core/List'; import ListSubheader from '@material-ui/core/ListSubheader'; import Divider from '@material-ui/core/Divider'; import Button fr...
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js
BrandyMint/uvedomi-proto
import React from 'react' import { reduxForm } from 'redux-form' export const fields = [] const validate = (values) => { const errors = {} return errors } type Props = { handleSubmit: Function, fields: Object, } export class <%= pascalEntityName %> extends React.Component { props: Props; defaultProps = ...
app/components/Curtain/index.js
acebusters/ab-web
import React from 'react'; import styled from 'styled-components'; import { gray, curtainStickyWidth, curtainWidth, menuClose, } from '../../variables'; import { Logo } from '../Logo'; import Link from '../Link'; export const CurtainWrapper = styled.div` width: ${curtainWidth}; max-width: 100%; backgro...
app/components/ProgressBar/index.js
sasidharkanumuri/Lambda
import React from 'react'; import ProgressBar from './ProgressBar'; function withProgressBar(WrappedComponent) { class AppWithProgressBar extends React.Component { constructor(props) { super(props); this.state = { progress: -1, loadedRoutes: props.location && [props.location.pathname]...
newclient/scripts/components/admin/disclosure-filter-by-status/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program 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 Lic...
src/components/ChatApp/Settings/Settings.react.js
RMCoder198/chat.susi.ai
import './Settings.css'; import $ from 'jquery'; import RaisedButton from 'material-ui/RaisedButton'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem'; import PropTypes from 'prop-types'; import UserPreferencesStore from '../../../stores/UserPreferencesStore'; import User...
app/javascript/mastodon/features/ui/components/columns_area.js
primenumber/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ReactSwipeableViews from 'react-swipeable-views'; import TabsBa...
app/javascript/mastodon/features/status/components/action_bar.js
res-ac/mstdn.res.ac
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...
client/src/Camembert.js
iwazaru/all-stereotypes-are-wrong
import React from 'react'; import { Pie } from 'react-chartjs-2'; import './Camembert.css'; export default function Camembert({ counts, otherColor }) { const total = counts.reduce((total, current) => total + current, 0); const colors = counts.map((count) => count >= total / 2 ? '#46BFBD' : '#F7464A' ); i...
docs/app/Examples/elements/Loader/States/LoaderExampleIndeterminate.js
clemensw/stardust
import React from 'react' import { Dimmer, Loader, Image, Segment } from 'semantic-ui-react' const LoaderExampleIndeterminate = () => ( <div> <Segment> <Dimmer active> <Loader indeterminate>Preparing Files</Loader> </Dimmer> <Image src='http://semantic-ui.com/images/wireframe/short-par...
src/components/Circle.js
gabergg/react-scene-graph
import React, { Component } from 'react'; export default class Circle extends Component { render() { return <circle {...this.props}>{this.props.children}</circle>; } }
lib/Navigation/Tabs/tabSix/views/TabSixNavigation.js
Ezeebube5/Nairasense
// React import React from 'react'; // Redux import { connect } from 'react-redux'; // Icon import Icon from 'react-native-vector-icons/FontAwesome'; // Navigation import { addNavigationHelpers } from 'react-navigation'; import { NavigatorTabSix } from '../navigationConfiguration'; class TabSixNavigation extends Reac...
app/components/IssueIcon/index.js
joegattnet/joegatt.net-client
import React from 'react'; function IssueIcon(props) { return ( <svg height="1em" width="0.875em" className={props.className} > <path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v...
src/components/ToggleSlider/ToggleSlider.js
austinknight/ui-components
import React from 'react'; import styled from 'styled-components'; import PropTypes from 'prop-types'; import { colors, renderThemeKeyOrDefaultValue, renderThemeIfPresentOrDefault, ifThemeInPropsIsPresentUse } from '../styles'; const SliderBase = styled.label` cursor: ${props => props.disabled ? 'not-allowe...
node_modules/react-bootstrap/es/FormGroup.js
ivanhristov92/bookingCalendar
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 ...
example/examples/FitToCoordinates.js
carleryd/react-native-maps
import React from 'react'; import { StyleSheet, View, Dimensions, TouchableOpacity, Text, } from 'react-native'; import MapView from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122.4324; const LA...
node_modules/rc-tabs/es/utils.js
prodigalyijun/demo-by-antd
import _defineProperty from 'babel-runtime/helpers/defineProperty'; import React from 'react'; export function toArray(children) { // allow [c,[a,b]] var c = []; React.Children.forEach(children, function (child) { if (child) { c.push(child); } }); return c; } export function getActiveIndex(chi...
src/entypo/Baidu.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Baidu'; let EntypoBaidu = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M17.4116364,6.9370399c-0.3587151-0.2830696-0.923996-0.4004283-1.4627256-0.3652954c-0.4163361,0.0265503-...
src/components/DictList/Toolbar.js
GuramDuka/reorders
//------------------------------------------------------------------------------ import React from 'react'; import PropTypes from 'prop-types'; import * as Mui from 'material-ui'; import { Autorenew, Refresh, ViewList } from 'material-ui-icons'; import disp from '../../store'; //----------------------------------...
app/routes.js
danielstorch/PPS-Tool-Desk
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './containers/App'; import HomePage from './containers/index'; import AnleitungPage from './containers/anleitung'; import DownloadPage from './containers/download'; import KapazitaetsplanungPage from './containers/kapazitaetsp...
src/svg-icons/editor/drag-handle.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorDragHandle = (props) => ( <SvgIcon {...props}> <path d="M20 9H4v2h16V9zM4 15h16v-2H4v2z"/> </SvgIcon> ); EditorDragHandle = pure(EditorDragHandle); EditorDragHandle.displayName = 'EditorDragHandle'; Edi...
source/components/groups/pages.js
phorque/ac2-frontend
import React from 'react'; import PureRenderMixin from 'components/pure-render-mixin'; import browserHistory from 'react-router/lib/browserHistory'; import PagesContainer from 'components/pages/pages-container'; import PageCreateForm from 'components/pages/page-create-form'; import Groups from 'components/groups/grou...
site/src/pages/404.js
LastCallMedia/Mannequin
import React from 'react' import Page from '../components/Page' import PageWrapper from '../components/PageWrapper' export default function NotFoundPage() { const menu = [{ to: '/', title: 'Home', below: [] }] return ( <Page title="Not Found" menu={menu}> <p>Oops! We couldn't find the page you were looki...
src/decorators/withViewport.js
keshavnandan/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from '../../node_modules/react/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height:...
example/index.js
thedgbrt/react-native-masonry
/** * Masonry demo app * @flow */ import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import Masonry from '../lib/Masonry'; const data = [ { text: "Hello" }, { text: "GoodBye" }, { text: "How are you doing today? I'm fine thank you" }, { text: "Who's a good boy?" } ]; let lot...
src/components/suggest/box.js
Erliz/DS61-food-searcher
import React from 'react'; import $ from 'jquery'; import Code from '../input/code'; import Title from '../input/title'; import SuggestList from './list'; class SuggestBox extends React.Component { constructor(props) { super(props); this.state = { codeValue: '', titleValue: ...
app/javascript/mastodon/components/permalink.js
pso2club/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class Permalink extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; static propTypes = { className: PropTypes.string, href: PropTypes.string.isRequired, to: PropTypes.string.isRequired, ...
src/svg-icons/maps/local-taxi.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalTaxi = (props) => ( <SvgIcon {...props}> <path d="M18.92 6.01C18.72 5.42 18.16 5 17.5 5H15V3H9v2H6.5c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.4...
packages/ringcentral-widgets-docs/src/app/pages/Components/DropdownNavigationItem/Demo.js
u9520107/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import DropdownNavigationItem from 'ringcentral-widgets/components/DropdownNavigationItem'; // eslint-disable-next-line import dynamicsFont from 'ringcentral-widgets/assets/DynamicsFont/DynamicsFont.scss'; const props = {}; props.icon = (<span className={dynamicsF...
src/Dialog/DialogTitle.js
react-mdl/react-mdl
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; const DialogTitle = (props) => { const { className, component, children, ...otherProps } = props; return React.createElement(component || 'h4', { className: classNames('mdl-dialog__title', className), ...
src/svg-icons/notification/mms.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationMms = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM5 14l3.5-4.5 2.5 3.01L14.5 8l4.5 6H5z"/> </SvgIcon> ); NotificationMms = ...
client/signup/controller.js
tinkertinker/wp-calypso
/** * External Dependencies */ import ReactDom from 'react-dom'; import React from 'react'; import { Provider as ReduxProvider } from 'react-redux'; import page from 'page'; import qs from 'qs'; import isEmpty from 'lodash/isEmpty'; import i18n from 'i18n-calypso'; /** * Internal Dependencies */ import config from...
app/components/UsernameField/index.js
WCLDN/WordCamp-Contribution-Wall
import React from 'react'; // noinspection JSUnresolvedVariable import styles from './username.css'; export default class UsernameField extends React.Component { constructor(props) { super(props); this.state = { 'value': '', 'showValidation': false, 'valid': false }; } componentWillMount() { this....
src/svg-icons/communication/stay-primary-landscape.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStayPrimaryLandscape = (props) => ( <SvgIcon {...props}> <path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/> </SvgIcon> ); Communicat...
webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/TasksDonutCard/TasksDonutCard.js
adamruzicka/foreman-tasks
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { Card } from 'patternfly-react'; import { noop } from 'foremanReact/common/helpers'; import { TASKS_DASHBOARD_AVAILABLE_QUERY_MODES, TASKS_DASHBOARD_AVAILABLE_TIMES, TASKS_DASHBOARD_CURRENT_TIME, } from '....
src/components/ProgressBar/ProgressBar.stories.js
guilhermecvm/react-dribbble-components
// import React from 'react' // // import { storiesOf } from '@storybook/react' // import { ProgressBar } from './ProgressBar' // // class ProgressBarWrapper extends React.Component { // constructor(props) { // super(props) // this.state = { pct: 0 } // } // // componentDidMount() { // setTimeout(() =...
src/Parser/AfflictionWarlock/Modules/Talents/MaleficGrasp.js
mwwscott0/WoWAnalyzer
import React from 'react'; import Module from 'Parser/Core/Module'; import Enemies from 'Parser/Core/Modules/Enemies'; import Combatants from 'Parser/Core/Modules/Combatants'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatNumber, formatPercentage } from 'common/format'; ...
app/components/ProductTable.js
pacmessica/hackathon-frontend
import PropTypes from 'prop-types'; import React from 'react'; import ProductRow from './ProductRow'; const products = [ { category: 'Sporting Goods', price: '$49.99', stocked: true, name: 'Football' }, { category: 'Sporting Goods', price: '$9.99', stocked: true, name: 'Baseball' }, { category: 'Sporting Goods',...
docs/src/components/header.js
FormidableLabs/spectacle
import React from 'react'; import styled from 'styled-components'; import Hero from '../screens/home/hero'; import bgImg from '../static/bg_hero_feather.jpg'; import headerTriangle from '../static/svgs/header-triangle.svg'; import logoFormidableWhite from '../assets/logo_formidable_white.png'; const Container = style...
frontend/src/screens/camera-log/camera-log.js
linea-it/qlf
import React from 'react'; import PropTypes from 'prop-types'; import Terminal from '../../components/terminal/terminal'; import Paper from '@material-ui/core/Paper'; const styles = { close: { float: 'right', cursor: 'pointer', }, main: { width: 'calc(100vw - 64px)', margin: '16px', padding: ...
stories/Typography.js
abouthiroppy/scuba
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import { Container } from '../src'; storiesOf('Typography', module).add('list', () => ( <Container> <h1>h1 Hello!</h1> <h2>h2 Hello!</h2> <h3>h3 Hello!</h3> <h4>h4 Hello!</h4> <h5>h5 Hello!</h5> <h6>h6 Hello!</h6> </C...
node_modules/react-bootstrap/es/MenuItem.js
yeshdev1/Everydays-project
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 ...
packages/material-ui-icons/src/DesktopMac.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7l-2 3v1h8v-1l-2-3h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 12H3V4h18v10z" /></g> , 'DesktopMac');
src/components/pages/NotFoundPage.js
annamaz/pokedex
import React from 'react'; import {Link} from 'react-router'; const NotFoundPage = () => { return ( <div className="not-found-page"> <h4> 404 Page Not Found </h4> <Link to="/">Go back to homepage</Link> </div> ); }; export default NotFoundPage;
src/app/routes.js
Drathal/redux-playground
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from '../containers/App' import LayoutDashboard from '../components/LayoutDashboard' import LayoutMain from '../components/LayoutMain' import NotFound from '../components/NotFound' import ProductListContainer from '../containers/P...
src/App.js
rbtpzk/react-redux-currency-xchange
import React, { Component } from 'react'; import './App.css'; import NumberInput from './Components/NumberInput' import { fetchData, swapThem, updateSettings } from "./Actions/dataActions" import { connect } from 'react-redux' import Button from './Components/Button'; import Dropdown from './Components/Dropdown'; impor...
packages/web/examples/mongo-examples/DataSearch/src/index.js
appbaseio/reactivesearch
import React from 'react'; import ReactDOM from 'react-dom'; import { ReactiveBase, DataSearch, ReactiveList, ResultCard, SelectedFilters, } from '@appbaseio/reactivesearch'; import './index.css'; const Main = () => ( <ReactiveBase enableAppbase app="default" url="https://us-east-1.aws.webhooks.mongodb-r...
src/components/Preview.js
rsamec/react-designer
import React from 'react'; import Binder from 'react-binding'; import _ from 'lodash'; import {HtmlPagesRenderer} from 'react-html-pages-renderer'; export default class Preview extends React.Component { constructor(props) { super(props); this.state = {data: _.cloneDeep(this.props.schema.props && this.props.s...
packages/example-phone/src/scripts/containers/page-sections/call-page-header.js
good-joe/spark-js-sdk
import React from 'react'; import {connect} from 'react-redux'; import {PageHeader} from 'react-bootstrap'; function CallPageHeader({callStatus}) { return ( <PageHeader>Call Status: <small className="call-status">{callStatus}</small></PageHeader> ); } CallPageHeader.propTypes = { callStatus: React.PropTypes...
src/containers/referrals/index.js
dylanlott/bridge-gui
import React, { Component } from 'react'; import { connect } from 'react-apollo'; import { hashHistory } from 'react-router'; import client from 'utils/api-client'; import gql from 'graphql-tag'; import { ReferralInfo, ReferralLink, SendReferralEmail } from '../../components'; import { isValidEmail } from '../../...
src/scripts/views/form/index.js
JanKuukkanen/Oauth-client-react
import page from 'page'; import React from 'react'; import Broadcaster from '../../components/broadcaster'; import FormData from '../../views/form/form-map'; import BroadcastAction from '../../actions/broadcast'; /** * */ export default React.createClass({ mixins: [ React.addons.LinkedStateMixin ], p...
renderer/components/Icon/Plus.js
LN-Zap/zap-desktop
import React from 'react' const SvgPlus = props => ( <svg className="plus_svg__feather plus_svg__feather-plus" fill="none" height="1em" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} viewBox="0 0 24 24" width="1em" {...props} > <path d...
website/src/PhoneGraphic.js
half-shell/react-navigation
import React, { Component } from 'react'; export default class PhoneGraphic extends Component { props: { sources: { android: string, iphone: string } }; state = { activeExample: this.props.alt ? 'android' : 'iphone' }; render() { const {activeExample} = this.state; return ( <div className="example-...
client/node_modules/react-error-overlay/lib/index.js
bourdakos1/Visual-Recognition-Tool
/** * 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 ReactDOM from 'react-dom'; import CompileErrorContainer from './containers/CompileErrorContainer'; im...
blueocean-material-icons/src/js/components/svg-icons/maps/local-phone.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const MapsLocalPhone = (props) => ( <SvgIcon {...props}> <path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45...
src/components/Feedback/Feedback.js
bmatthews/haze-lea
/** * 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 withStyles from 'isom...
app/javascript/mastodon/features/account_timeline/index.js
hyuki0000/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 { refreshAccountTimeline, expandAccountTimeline } from '../../actions/timelines'; import StatusL...
Realization/frontend/czechidm-core/src/components/advanced/Form/EavForm.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import _ from 'lodash'; // import * as Basic from '../../basic'; import * as Utils from '../../../utils'; import { FormAttributeManager } from '../../../redux'; import FormInstance from '../../../domain/FormInstance'; //...
src/main.js
Mrancois/barduino
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-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 'babel-polyfill'; im...
app/components/NewRecipeDialog.js
tempestaddepvc/proyecto-electron
import React from 'react'; import axios from "axios"; import Dialog from 'material-ui/Dialog'; import NavigationClose from 'material-ui/svg-icons/navigation/close'; import AppBar from 'material-ui/AppBar'; import IconButton from 'material-ui/IconButton'; import Divider from 'material-ui/Divider' import Steps from './St...
public/js/components/chat/tabs1.react.js
MadushikaPerera/Coupley
import React from 'react'; import List from 'material-ui/lib/lists/list'; import ListItem from 'material-ui/lib/lists/list-item'; import TextField from 'material-ui/lib/text-field'; import Divider from 'material-ui/lib/divider'; import IconButton from 'material-ui/lib/icon-button'; import Tabs from 'material-ui/lib/tab...
src/components/common/svg-icons/device/airplanemode-inactive.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceAirplanemodeInactive = (props) => ( <SvgIcon {...props}> <path d="M13 9V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5v3.68l7.83 7.83L21 16v-2l-8-5zM3 5.27l4.99 4.99L2 14v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L1...
docs/src/app/components/pages/get-started/Usage.js
pancho111203/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import usageText from './usage.md'; const Usage = () => ( <div> <Title render={(previousTitle) => `Usage - ${previousTitle}`} /> <MarkdownElement text={usageText} /> </div> ); export...
le-react-app/src/Components/Footer.js
TS000/react-app
import React, { Component } from 'react'; class Footer extends Component { render() { return ( <footer className="App-footer"> <h1 className="FooterText">I am the Footer!</h1> </footer> ); } } export default Footer;
geonode/monitoring/frontend/monitoring/src/components/cels/errors/index.js
tomkralidis/geonode
/* ######################################################################### # # Copyright (C) 2019 OSGeo # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # ...
app/react-icons/fa/circle-thin.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaCircleThin extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m20.1 5.7q-2.9 0-5.5 1.2t-4.6 3-3 4.6-1.1 5.5 1.1 5.5 3 4.6 4.6 3 5.5 1.2...
examples/huge-apps/components/GlobalNav.js
hgezim/react-router
import React from 'react'; import { Link } from 'react-router'; const styles = {}; class GlobalNav extends React.Component { static defaultProps = { user: { id: 1, name: 'Ryan Florence' } }; constructor (props, context) { super(props, context); this.logOut = this.logOut.bind(this);...
examples/react-native-counter/index.js
6061960/react_native
import React, { Component } from 'react'; import { AppRegistry, Text } from 'react-native'; var Counter = React.createClass({ getInitialState: function() { return {counter: 0}; }, componentWillMount: function() { setInterval(this.minus, 1000, this); }, add: function() { le...
src/wallet/Transfer.js
ryanbaer/busy
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { injectIntl, FormattedMessage } from 'react-intl'; import steem from 'steem'; import steemConnect from 'sc2-sdk'; import { Form, Input, Radio, Modal } from 'antd'; import { closeTransfer } from './walletActions...
src/frontend/index.js
Tjorriemorrie/pokeraide
import React from 'react'; import ReactDOM from 'react-dom'; import {Router, Route, IndexRoute, browserHistory} from 'react-router'; import rootRoute from './views' ReactDOM.render( <Router routes={rootRoute} history={browserHistory} />, document.getElementById('app') );
Libraries/Components/MapView/MapView.js
mrspeaker/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/svg-icons/image/filter-none.js
owencm/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/ListPicker.js
pixel-glyph/better-reads
import React from 'react'; import PropTypes from 'prop-types'; import BookList from './BookList'; import Plus from './svg/Plus'; class ListPicker extends React.Component { componentDidMount() { if(this.props.newListInputActive) { this.newListName.focus(); } } getNumbooks = (list, i) => { c...
app/javascript/mastodon/features/ui/components/report_modal.js
anon5r/mastonon
import React from 'react'; import { connect } from 'react-redux'; import { changeReportComment, changeReportForward, submitReport } from '../../../actions/reports'; import { expandAccountTimeline } from '../../../actions/timelines'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-pro...
docs/src/app/components/pages/components/List/ExampleContacts.js
ngbrown/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import ActionGrade from 'material-ui/svg-icons/action/grade'; import Divider from 'material-ui/Divider'; import Avatar from 'material-ui/Avatar'; import {pinkA200, transparent} from 'mater...
app/javascript/mastodon/components/error_boundary.js
gol-cha/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { version, source_url } from 'mastodon/initial_state'; import StackTrace from 'stacktrace-js'; export default class ErrorBoundary extends React.PureComponent { static propTypes = { children: Prop...
packages/ringcentral-widgets-docs/src/app/pages/Components/ActiveCallActionMenu/index.js
ringcentral/ringcentral-js-widget
import React from 'react'; import { parse } from 'react-docgen'; import CodeExample from '../../../components/CodeExample'; import ComponentHeader from '../../../components/ComponentHeader'; import PropTypeDescription from '../../../components/PropTypeDescription'; import Demo from './Demo'; // eslint-disable-next-lin...
client/components/App.js
brucelane/react-redux
import React from 'react'; import NavigationBar from './NavigationBar'; import FlashMessagesList from './flash/FlashMessagesList'; class App extends React.Component { render() { return ( <div className="container"> <NavigationBar /> <FlashMessagesList /> {this.props.children} ...
examples/ColorPicker/index.android.js
crowtec/react-native-pixel-color
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class ColorPicker extends Component { render() { return ( <View style={styles.contain...
app/javascript/mastodon/components/missing_indicator.js
pointlessone/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; const MissingIndicator = () => ( <div className='regeneration-indicator missing-indicator'> <div> <div className='regeneration-indicator__figure' /> <div className='regeneration-indicator__label'> <FormattedMessage id=...
packages/react-router-website/modules/examples/Basic.js
goblortikus/react-router
import React from 'react' import { BrowserRouter as Router, Route, Link } from 'react-router-dom' const BasicExample = () => ( <Router> <div> <ul> <li><Link to="/">Home</Link></li> <li><Link to="/about">About</Link></li> <li><Link to="/topics">Topics</Link></li> </ul> ...
src/svg-icons/action/change-history.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionChangeHistory = (props) => ( <SvgIcon {...props}> <path d="M12 7.77L18.39 18H5.61L12 7.77M12 4L2 20h20L12 4z"/> </SvgIcon> ); ActionChangeHistory = pure(ActionChangeHistory); ActionChangeHistory.display...
website/src/components/gameSummary/MatchupHistory/HistoricalMatchup/index.js
jwngr/notreda.me
import _ from 'lodash'; import React from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import {push} from 'connected-react-router'; import FootballShape from '../../../common/FootballShape'; import {Season, FootballScoreWrapper, HistoricalMatchupWrapper} from './index.styles'; co...
modules/RouteUtils.js
brownbathrobe/react-router
import React from 'react' import warning from 'warning' function isValidChild(object) { return object == null || React.isValidElement(object) } export function isReactChildren(object) { return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild)) } function checkPropTypes(componentName, p...
server/sonar-web/src/main/js/apps/code/components/Component.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...
elements/Line.js
udfalkso/react-native-svg
import React from 'react'; import createReactNativeComponentClass from 'react-native/Libraries/Renderer/src/renderers/native/createReactNativeComponentClass'; import {LineAttributes} from '../lib/attributes'; import Shape from './Shape'; import {pathProps, numberProp} from '../lib/props'; import extractProps from '../l...
src/common/components/header/index.js
canonical-ols/build.snapcraft.io
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { signOut } from '../../actions/auth-store'; import { conf } from '../../helpers/config'; import style from '../../style/vanilla/css/navigation.css'; import containerStyles from '../../containers/container.css'; import { IconUser }...
src/containers/Main.js
Warm-men/Investment-by-react
import React from 'react' class App extends React.Component { render() { return ( <div>{this.props.children}</div> ) } } export default App
components/Footer/Footer.js
Kudrik/ReactTest
import React, { Component } from 'react'; import './footer.scss'; class Footer extends Component { render() { return ( <footer className='footer'></footer> ); } } export default Footer;
packages/node_modules/@ciscospark/widget-message-meet-demo/src/index.js
Altocloud/alto-react-ciscospark
import React from 'react'; import ReactDOM from 'react-dom'; import {IntlProvider} from 'react-intl'; import {CookiesProvider} from 'react-cookie'; // import messages from './locales/en'; import '@ciscospark/react-component-spark-fonts'; import injectTapEventPlugin from 'react-tap-event-plugin'; import MuiThemeProv...
app/main.js
DenisPronin/react-starter
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux' import DevTools from './redux/utils/DevTools' import configureStore from './redux/configureStore' import { rootReducers } from './redux/appRoot' import AppLayout from './views/AppLayout'; const store = configureStore({...
src/scenes/home/informationForm/formComponents/militaryInfo.js
NestorSegura/operationcode_frontend
import React, { Component } from 'react'; import { Line } from 'rc-progress'; import Form from 'shared/components/form/form'; import PropTypes from 'prop-types'; import FormSelect from 'shared/components/form/formSelect/formSelect'; import { MILSTATUS, BRANCH, BRANCH_PROMPT } from 'shared/constants/status'; import styl...