path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/notification/live-tv.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationLiveTv = (props) => ( <SvgIcon {...props}> <path d="M21 6h-7.59l3.29-3.29L16 2l-4 4-4-4-.71.71L10.59 6H3c-1.1 0-2 .89-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.11-.9-2-2-2zm0 14H3V8h18v12zM9 10v8...
server/sonar-web/src/main/js/apps/background-tasks/components/Search.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info 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, o...
react-router-tutorial/lessons/02-rendering-a-route/index.js
zerotung/practices-and-notes
import React from 'react' import { render } from 'react-dom' import App from './modules/App' render(<App/>, document.getElementById('app'))
src/routes/home/Home.js
Maryanushka/masterskaya
/** * 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 PropTypes from 'prop-...
source/components/Modals/ConfirmModal.js
mikey1384/twin-kle
import PropTypes from 'prop-types'; import React from 'react'; import Modal from 'components/Modal'; import Button from 'components/Button'; ConfirmModal.propTypes = { onHide: PropTypes.func.isRequired, title: PropTypes.string.isRequired, onConfirm: PropTypes.func.isRequired }; export default function ConfirmMo...
src/views/TweetSlices/TweetSlicesContainer.js
btamayo/tweetstormer
import React, { Component } from 'react'; import Clipboard from 'clipboard/dist/clipboard.js'; import TweetSlice from './TweetSlice'; import cx from 'classnames'; class TweetSlicesContainer extends Component { constructor(props) { super(props); this.state = { lastCopiedIndex: -1, empty: false ...
geonode/contrib/monitoring/frontend/src/pages/alerts/index.js
simod/geonode
import React, { Component } from 'react'; import Header from '../../components/organisms/header'; import AlertList from '../../components/organisms/alert-list'; import styles from './styles'; class Alerts extends Component { render() { return ( <div style={styles.root}> <Header back="/" /> ...
client/src/components/Order.js
yhyecho/aa-journey
import React from 'react' import { connect } from 'react-redux' import { checkout } from '../redux/actions/cartActions' import '../css/order.css' class Order extends React.Component { constructor(props) { super(props) this.pay = this.pay.bind(this) } pay() { this.props.checkout(this.props.cart) } ...
app/components/ToggleOption/index.js
singaporesamara/SOAS-DASHBOARD
/** * * ToggleOption * */ import React from 'react'; import { injectIntl, intlShape } from 'react-intl'; const ToggleOption = ({ value, message, intl }) => ( <option value={value}> {message ? intl.formatMessage(message) : value} </option> ); ToggleOption.propTypes = { value: React.PropTypes.string.isRequir...
src/common/containers/App.js
ThinkingInReact/ThinkingInReact.xyz
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Header from 'components//reduxed/Header'; import TOC from 'components//static/TOC'; import Features from 'components//dumb/Features'; import Examples from 'components//dumb/Examples'; import AboutBook from 'components//static/AboutB...
src/MyChild.js
juliofornode/testing-react-with-enzyme-mocha-chai
import React from 'react'; const MyChild = () => { return( <div> <h5>This is MyChild component</h5> </div> ); }; export default MyChild;
src/components/StartAuction/StartAuctionInfo.js
ens-bid/ens-bid-dapp
import React from 'react'; import {shortFormatHash, momentFromNow} from '../../lib/util'; import Button from 'material-ui/Button'; import Card from 'material-ui/Card'; import Divider from 'material-ui/Divider'; import './StartAuctionInfo.css'; const RevealAuctionOn = (props) => <div className="RevealAuctionOn"> ...
app/addons/permissions/layout.js
apache/couchdb-fauxton
// 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 in writing, software // distributed un...
app/javascript/mastodon/components/icon_with_badge.js
Nyoho/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Icon from 'mastodon/components/icon'; const formatNumber = num => num > 40 ? '40+' : num; const IconWithBadge = ({ id, count, issueBadge, className }) => ( <i className='icon-with-badge'> <Icon id={id} fixedWidth className={className} /> ...
src/svg-icons/device/screen-lock-portrait.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceScreenLockPortrait = (props) => ( <SvgIcon {...props}> <path d="M10 16h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1v-1c0-1.11-.9-2-2-2-1.11 0-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1zm.8-6c0-.66.54-1.2 1.2-1....
src/components/BaseComponent/Overlay/Overlay.js
dreambo8563/RSK
import React, { Component } from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Overlay.css'; class Overlay extends Component { render() { return ( <div className={s.overlay}> </div > ); } } export default withStyles(s)(Overla...
src/components/alert/index.js
buttercomponents/butter-base-components
import React from 'react' import { translate } from 'react-i18next' import style from './style.styl' const Alert = ({t, message}) => ( <div className={style['success']}> <span>{t(message)}</span> <i className='material-icons'>check</i> </div> ) export default translate(['alert'])(Alert)
app/components/Tasks/index.js
theterra/newsb
import React from 'react'; import Feed from '../Feed'; import TripCard from '../TripCard'; import Search from '../Search'; import classNames from 'classnames'; import Flatpickr from 'react-flatpickr'; import moment from 'moment'; import OrderStyle from './OrderStyle'; export default class Tasks extends React.Component...
src/components/icons/SalesforceIcon.js
InsideSalesOfficial/insidesales-components
import React from 'react'; const SalesforceIcon = props => ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 4 28 12"> {props.title && <title>{props.title}</title>} <path d="M21.9593578,2.72659767 C25.2924879,2.72659767 27.9948018,5.46201583 27.9948018,8.83614765 C27.9948018,1...
app/javascript/mastodon/features/getting_started/index.js
imomix/mastodon
import React from 'react'; import Column from '../ui/components/column'; import ColumnLink from '../ui/components/column_link'; import ColumnSubheading from '../ui/components/column_subheading'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import Prop...
src/client.js
ueno-llc/starter-kit
/* eslint no-underscore-dangle: 0 */ import React from 'react'; import ReactDOM from 'react-dom'; import Router from 'react-router/lib/Router'; import browserHistory from 'react-router/lib/browserHistory'; import applyRouterMiddleware from 'react-router/lib/applyRouterMiddleware'; import useScroll from 'react-router-sc...
packages/react/src/components/SelectItemGroup/SelectItemGroup.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; import { settings } from 'carbon-componen...
web-app/src/shared/components/SquareSelect/index.js
crypticism/FF
import React from 'react'; import classNames from 'classnames'; import stylesheet from './SquareSelect.scss'; export default function SquareSelect({ selected, hasItemsSelected = false }) { return ( <span className={classNames(stylesheet.squareIcon, { [stylesheet.selected]: selected, 'is-se...
showcase/examples/dragable-chart/dragable-chart-example.js
Apercu/react-vis
// Copyright (c) 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
actor-apps/app-web/src/app/components/modals/create-group/ContactItem.react.js
TimurTarasenko/actor-platform
import React from 'react'; import AvatarItem from 'components/common/AvatarItem.react'; class ContactItem extends React.Component { static propTypes = { contact: React.PropTypes.object, onToggle: React.PropTypes.func } constructor(props) { super(props); this.onToggle = this.onToggle.bind(this)...
src/encoded/static/components/browse/components/FacetCharts.js
hms-dbmi/fourfront
'use strict'; import React from 'react'; import _ from 'underscore'; import url from 'url'; import { unhighlightTerms } from '@hms-dbmi-bgm/shared-portal-components/es/components/viz/utilities'; import { FlexibleDescriptionBox } from '@hms-dbmi-bgm/shared-portal-components/es/components/ui/FlexibleDescriptionBox'; im...
actor-apps/app-web/src/app/utils/require-auth.js
changjiashuai/actor-platform
import React from 'react'; import LoginStore from 'stores/LoginStore'; export default (Component) => { return class Authenticated extends React.Component { static willTransitionTo(transition) { if (!LoginStore.isLoggedIn()) { transition.redirect('/auth', {}, {'nextPath': transition.path}); }...
src/components/Main.js
joshsalom/quarrelofcuties
import React from 'react'; import {Switch, Route} from 'react-router-dom'; import Scrim from './Scrim'; import Leaderboard from './Leaderboard'; class Main extends React.Component { render() { return ( <main> <Switch> <Route exact path='/' component={Scrim}/> <Route path='/leade...
app/components/ResumeEducationSection/index.js
yagneshmodh/personalApplication
import React from 'react'; import Title from '../Title/index'; import baseStyle from '../../common/Style/baseStyle.css'; // import Paper from 'material-ui/Paper'; import SwipeWrapper from '../../containers/SwipeWrapper/index'; import ProjectCard from '../ProjectCard/index'; const PortfolioSection = (() => <div class...
src/svg-icons/image/switch-video.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageSwitchVideo = (props) => ( <SvgIcon {...props}> <path d="M18 9.5V6c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-3.5l4 4v-13l-4 4zm-5 6V13H7v2.5L3.5 12 7 8.5V11h6V8.5l3.5 3.5-3.5...
app/javascript/mastodon/containers/status_container.js
dunn/mastodon
import React from 'react'; import { connect } from 'react-redux'; import Status from '../components/status'; import { makeGetStatus } from '../selectors'; import { replyCompose, mentionCompose, directCompose, } from '../actions/compose'; import { reblog, favourite, bookmark, unreblog, unfavourite, unb...
lib/components/notifications.js
chabou/hyper
import React from 'react'; import {decorate} from '../utils/plugins'; import Notification_ from './notification'; const Notification = decorate(Notification_, 'Notification'); export default class Notifications extends React.PureComponent { render() { return ( <div className="notifications_view"> ...
assets/js/components/home.js
joshgagnon/sailjs-webpack-base
"use strict"; import React from 'react'; import { pureRender } from '../utils'; import AuthenticatedComponent from './authenticated'; @AuthenticatedComponent @pureRender export default class Home extends React.Component { render() { return <div/> } }
blueocean-material-icons/src/js/components/svg-icons/content/send.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ContentSend = (props) => ( <SvgIcon {...props}> <path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/> </SvgIcon> ); ContentSend.displayName = 'ContentSend'; ContentSend.muiName = 'SvgIcon'; export default ContentSend;
app/jsx/blueprint_courses/apps/BlueprintCourse.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...
src/components/Menu/TopMenu.js
joopand/presensi
import React from 'react' import { Link } from 'react-router' class TopMenu extends React.Component { constructor (props) { super(props) this.state = {openMenu: false} } openMenu () { console.log('hi') console.log(this.state.openMenu) if (this.state.openMenu) { this.setState({openMenu:...
docs/app/Examples/collections/Grid/Variations/GridExampleVerticalAlignmentRow.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Grid, Image } from 'semantic-ui-react' const GridExampleVerticalAlignmentRow = () => ( <Grid columns={4} centered> <Grid.Row verticalAlign='top'> <Grid.Column> <Image src='http://semantic-ui.com/images/wireframe/image.png' /> </Grid.Column> <Grid.Colum...
src/containers/organizations/components/OrganizationDetailsComponent.js
kryptnostic/gallery
import React from 'react'; import DocumentTitle from 'react-document-title'; import Immutable from 'immutable'; import styled from 'styled-components'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import LoadingSpinner from '../../../components/asynccontent/LoadingSpinner'; impo...
classic/src/scenes/wbfa/generated/FASMagic.free.js
wavebox/waveboxapp
import React from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faMagic } from '@fortawesome/free-solid-svg-icons/faMagic' export default class FASMagic extends React.Component { render () { return (<FontAwesomeIcon {...this.props} icon={faMagic} />) } }
react-native/Manager/src/components/EmployeeForm.js
vanyaland/react-demos
import React, { Component } from 'react'; import { View, Text, Picker } from 'react-native'; import { connect } from 'react-redux'; import { CardSection, Input } from './common'; import { employeeUpdate } from '../actions'; class EmployeeForm extends Component { render() { const { name, phone, shift, emp...
src/components/Card.js
pieroit/cheshire-cat
import React from 'react' import utils from './../utils' class Card extends React.Component { state = { 'filters' : {}, 'data' : [] } onFiltersChange = (filtersStatus) => { console.warn('CARD FILTER CHANGE', filtersStatus) this.setState({ 'filters': filter...
src/containers/Navigation/Navigation.js
prashanth-cpaul/ReactReduxSample
import React, { Component } from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import styles from './Navigation.css'; import { menuClicked } from 'state/navigation'; const headerIcon = require('../../images/header_icon.jpg'); var menuStylesClass = styles.menuStyles; class...
actor-apps/app-web/src/app/components/Login.react.js
bensonX/actor-platform
import _ from 'lodash'; import React from 'react'; import classNames from 'classnames'; import { Styles, RaisedButton, TextField } from 'material-ui'; import { AuthSteps } from 'constants/ActorAppConstants'; import Banner from 'components/common/Banner.react'; import LoginActionCreators from 'actions/LoginActionCre...
src/routes/Home/components/HomeView.js
38Slava/redux-webrtc
import React from 'react' import DuckImage from '../assets/Duck.jpg' import classes from './HomeView.scss' export const HomeView = () => ( <div> <h4>Welcome!</h4> <img alt='This is a duck, because Redux!' className={classes.duck} src={DuckImage} /> </div> ) export default HomeView
src/components/Html.js
willchertoff/Ben-Kinde
/** * 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 PropTypes from 'prop-...
src/components/RitualsForType.js
TrueWill/embracer
import React from 'react'; import PropTypes from 'prop-types'; export default function RitualsForType({ ritualType, displayName, permutations, selected, updateRituals }) { const handleChange = e => { const rituals = JSON.parse(e.target.value); updateRituals(ritualType, rituals); }; const opti...
BackUp FIrebase/IQApp/src/components/HomeInit.js
victorditadi/IQApp
import React, { Component } from 'react'; import { View, Text, Image, Dimensions, TouchableOpacity } from 'react-native'; import { Container, Content, Icon } from 'native-base'; import InfoCarousel from './InfoCarousel'; import { ButtonHome, CardSection } from './common'; var width = Dimensions.get('window').widt...
src/backend/middleware/ssr.js
opentechinstitute/piecewise
import fs from 'fs'; import { Readable } from 'stream'; import React from 'react'; import { renderToString } from 'react-dom/server'; import { HelmetProvider } from 'react-helmet-async'; import { StaticRouter } from 'react-router-dom'; import { ServerStyleSheets, StylesProvider, ThemeProvider, } from '@material-u...
docs/app/Examples/elements/Segment/Variations/SegmentExampleGroupSizes.js
aabustamante/Semantic-UI-React
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentGroupSizesExample = () => { const sizes = ['mini', 'tiny', 'small', 'large', 'big', 'huge', 'massive'] return ( <div> {sizes.map(size => ( <Segment.Group key={size} size={size}> <Segment> It'...
src/svg-icons/action/shop-two.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionShopTwo = (props) => ( <SvgIcon {...props}> <path d="M3 9H1v11c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2H3V9zm15-4V3c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H5v11c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5h-5zm-6-2h4...
src/js/components/List/stories/RenderedList.js
HewlettPackard/grommet
import React from 'react'; import { Box, List, Text } from 'grommet'; const locations = [ 'Boise', 'Fort Collins', 'Los Gatos', 'Palo Alto', 'San Francisco', ]; const data = []; for (let i = 0; i < 40; i += 1) { data.push({ entry: `entry-${i + 1}`, location: locations[i % locations.length], });...
app/javascript/mastodon/features/list_editor/index.js
kibousoft/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { injectIntl } from 'react-intl'; import { setupListEditor, clearListSuggestions, ...
src/BootstrapMixin.js
sheep902/react-bootstrap
import React from 'react'; import styleMaps from './styleMaps'; import CustomPropTypes from './utils/CustomPropTypes'; const BootstrapMixin = { propTypes: { /** * bootstrap className * @private */ bsClass: CustomPropTypes.keyOf(styleMaps.CLASSES), /** * Style variants * @type {("...
src/svg-icons/action/invert-colors.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionInvertColors = (props) => ( <SvgIcon {...props}> <path d="M17.66 7.93L12 2.27 6.34 7.93c-3.12 3.12-3.12 8.19 0 11.31C7.9 20.8 9.95 21.58 12 21.58c2.05 0 4.1-.78 5.66-2.34 3.12-3.12 3.12-8.19 0-11.31zM12 1...
src/Well.js
BespokeInsights/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Well = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'well' }; }, render() { let classes = this.getBsClassSet(); return ( <di...
src/components/SearchBox.js
afonsobarros/reactnd-project-readable
import React from 'react'; import TextField from 'material-ui/TextField'; import IconButton from 'material-ui/IconButton'; const SearchBox = () => { const styles = { iconButton: { float: 'left', paddingTop: 17 }, textField: { color: white, backgroundColor: blue500, borderRa...
src/components/Journal.js
evertisland/emmet
import React from 'react' import Link from 'gatsby-link' import styled from 'styled-components' import ui from '../layouts/theme' import HorizontalScrollContainer from '../components/HorizontalScrollContainer' const Container = styled.div` width: 100%; flex: 1; display: flex; flex-direction: row; flex-wrap...
src/index.js
sunyuis/galler-by-reat
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
src/js/react/presentational/Scroll.js
koluch/db-scheme
// @flow import React from 'react' import cn from 'bem-cn' const bem = cn('scroll') class Scroll extends React.Component { props: { children?: *, } render() { return ( <div className={bem()}> <div className={bem('body')}> {this.props.childre...
modules/UI/videolayout/LocalVideo.js
bgrozev/jitsi-meet
/* global $, config, interfaceConfig, APP */ /* eslint-disable no-unused-vars */ import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { JitsiTrackEvents } from '../../../react/features/base/lib-jitsi-meet'; import { VideoTrack } from '../../../reac...
src/svg-icons/hardware/keyboard-arrow-up.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardArrowUp = (props) => ( <SvgIcon {...props}> <path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/> </SvgIcon> ); HardwareKeyboardArrowUp = pure(HardwareKeyboardArrowUp); HardwareKeyboardAr...
lib/ItemWrapper.js
xadn/react-infinite-scroll
import React from 'react'; class ItemWrapper extends React.Component { constructor(props) { super(props); this.state = {renderedOnce: false}; } shouldComponentUpdate(nextProps, nextState) { return ( this.props.top !== nextProps.top || this.state.renderedOnce !== nextState.renderedOnce ...
fields/types/select/SelectFilter.js
stosorio/keystone
import React from 'react'; import { Checkbox, FormField, SegmentedControl } from 'elemental'; import PopoutList from '../../../admin/src/components/PopoutList'; const TOGGLE_OPTIONS = [ { label: 'Matches', value: false }, { label: 'Does NOT Match', value: true } ]; var SelectFilter = React.createClass({ getInitia...
client/modules/App/components/Footer/Footer.js
Dokvel/outfit_ua
import React from 'react'; import { FormattedMessage } from 'react-intl'; // Import Style import styles from './Footer.css'; // Import Images import bg from '../../header-bk.png'; export function Footer() { return ( <div style={{ background: `#FFF url(${bg}) center` }} className={styles.footer}> <p>&copy...
server/server.js
vibhas77/Student-Wallet
import Express from 'express'; import compression from 'compression'; import mongoose from 'mongoose'; import bodyParser from 'body-parser'; import path from 'path'; import IntlWrapper from '../client/modules/Intl/IntlWrapper'; // Webpack Requirements import webpack from 'webpack'; import config from '../webpack.confi...
src/components/SegmentedControl/index.js
r1cebank/react-native-boilerplate
import React from 'react'; import { View, ScrollView } from 'react-native'; import Styles from './resources/styles'; import { Components } from '../../global/globalIncludes'; class F8SegmentedControl extends React.Component { static propTypes = { values: React.PropTypes.array, selectedIndex: React...
src/components/antd/transfer/list.js
hyd378008136/olymComponents
import React from 'react'; import { findDOMNode } from 'react-dom'; import classNames from 'classnames'; import Animate from 'rc-animate'; import PureRenderMixin from 'rc-util/lib/PureRenderMixin'; import Checkbox from '../checkbox'; import Search from './search'; import Item from './item'; import triggerEvent from '.....
nailgun/static/views/cluster_page_tabs/network_tab.js
huntxu/fuel-web
/* * Copyright 2015 Mirantis, Inc. * * 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 ...
src/svg-icons/action/gif.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionGif = (props) => ( <SvgIcon {...props}> <path d="M11.5 9H13v6h-1.5zM9 9H6c-.6 0-1 .5-1 1v4c0 .5.4 1 1 1h3c.6 0 1-.5 1-1v-2H8.5v1.5h-2v-3H10V10c0-.5-.4-1-1-1zm10 1.5V9h-4.5v6H16v-2h2v-1.5h-2v-1z"/> </Svg...
src/routes/Questionnaire/components/Counter.js
tkshi/q
import React from 'react' import QuestionnaireList from './QuestionnaireList' export const Counter = (props) => ( <div style={{ margin: '0 auto' }} > <QuestionnaireList {...props}/> <button className='btn btn-default' onClick={props.fetchQuestionnaires}> fetchQuestionnaires (Async) </button> </di...
client/app/components/mobile_cloud_services.js
poddarh/nectarine
import React from 'react'; import {getUserCloudServices} from '../server'; import {Link} from 'react-router'; export default class MobileCloudServices extends React.Component { constructor(props){ super(props); this.port = location.port ? parseInt(location.port) : (location.protocol == "https:" ? 443 : 80); th...
src/js/components/SkipLinkAnchor.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import CSSClassnames from '../utils/CSSClassnames'; const CLASS_ROOT = CSSClassnames.SKIP_LINK_ANCHOR; export default class SkipLinkAnchor extends Component { render ()...
src/svg-icons/maps/local-parking.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalParking = (props) => ( <SvgIcon {...props}> <path d="M13 3H6v18h4v-6h3c3.31 0 6-2.69 6-6s-2.69-6-6-6zm.2 8H10V7h3.2c1.1 0 2 .9 2 2s-.9 2-2 2z"/> </SvgIcon> ); MapsLocalParking = pure(MapsLocalParking...
src/views/pages/DevPage.js
Domiii/project-empire
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { dataBind } from 'dbdi/react'; import { Alert, Button, Jumbotron, Well, Panel } from 'react-bootstrap'; import { LinkContainer } from 'react-router-bootstrap'; import { LoadOverlay } from 'src/views/components/overlays'; impor...
js/jqwidgets/demos/react/app/listbox/textwithicons/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxListBox from '../../../jqwidgets-react/react_jqxlistbox.js'; class App extends React.Component { render() { let source = [ { html: '<div style="height: 20px; float: left"><img width="16" height="16" style="f...
wwwroot/app/src/components/base/form/Label.js
AlinCiocan/PlanEatSave
import React from 'react'; const InputGroup = (props) => { return ( <label className="pes-form-label"> {props.text} </label> ); }; export default InputGroup;
packages/reactor-kitchensink/src/examples/Calendar/CalendarPanel/CalendarPanel.js
sencha/extjs-reactor
import React, { Component } from 'react'; import { Calendar } from '@extjs/ext-react-calendar'; import '../data'; export default class CalendarExample extends Component { store = Ext.create('Ext.calendar.store.Calendars', { autoLoad: true, proxy: { type: 'ajax', url: '/Kitc...
source/test/title/index.js
cloverfield-tools/universal-react-boilerplate
import React from 'react'; import reactDom from 'react-dom/server'; import test from 'tape'; import dom from 'cheerio'; import createTitle from 'shared/components/title'; const Title = createTitle(React); const render = reactDom.renderToStaticMarkup; test('Title', assert => { const titleText = 'Hello!'; const pr...
components/CustomUrl.js
sdumetz/sam
import React from 'react'; import ReactDOM from 'react-dom'; export default class CustomUrl extends React.Component{ constructor(props){ super(props) this.state = {url:""} } componentDidUpdate(){ this.setFocus(); } componentDidMount(){ this.setFocus(); } setFocus(){ } handleChange(even...
src/routes/not-found/index.js
foxleigh81/foxweb
/** * 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...
docs/app/Examples/addons/TextArea/Types/index.js
shengnian/shengnian-ui-react
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const TextAreaTypesExamples = () => ( <ExampleSection title='Types'> <ComponentExample title='TextArea' description=...
node_modules/@material-ui/core/esm/Breadcrumbs/BreadcrumbCollapsed.js
pcclarke/civ-techs
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties"; import React from 'react'; import PropTypes from 'prop-types'; import withStyles from '../styles/withStyles'; import { emphasize } from '../styles/colorManipulator'; import MoreH...
packages/slate-html-serializer/test/serialize/block-with-is-void.js
ashutoshrishi/slate
/** @jsx h */ import React from 'react' import h from '../helpers/h' export const rules = [ { serialize(obj, children) { if (obj.object == 'block' && obj.type == 'image') { return React.createElement('img') } }, }, ] export const input = ( <value> <document> <image /> ...
src/components/fieldComponents/ArrayContainer.js
gearz-lab/react-metaform
import React from 'react'; import metadataProvider from '../../lib/metadataProvider.js'; import MetaFormGroup from '../groupComponents/MetaFormGroup.js'; import Alert from 'react-bootstrap/lib/Alert.js'; import GlyphButton from '../GlyphButton.js'; import Glyphicon from 'react-bootstrap/lib/Glyphicon.js'; import Dropdo...
traveller/App/Containers/LoginScreen.js
Alabaster-Aardvarks/traveller
// @flow import React from 'react' import { View, ScrollView, Text, TextInput, TouchableOpacity, Image, Keyboard, LayoutAnimation } from 'react-native' import { connect } from 'react-redux' import Styles from './Styles/LoginScreenStyle' import {Images, Metrics} from '../Themes' import LoginActions from...
src/components/Content.js
nchathu2014/reactApp
import React from 'react'; export default class Content extends React.Component{ render(){ var i=6; var myStyle={ fontSize:100, color:"#d31145" } return( <div> <h3>Another content {8+9}</h3> <p data-myattribute="I am a attribute value">paragraph</p> <div> {(i==6)? <h4 styl...
app/javascript/mastodon/components/modal_root.js
cobodo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import 'wicg-inert'; import { createBrowserHistory } from 'history'; import { multiply } from 'color-blend'; export default class ModalRoot extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; static propTypes = { ...
imports/ui/components/Loading/Loading.js
jamiebones/Journal_Publication
import React from 'react'; import './Loading.scss' const Loading = () => ( <div className="loader"> Loading... </div> ); export default Loading;
src/wallet/Wallet.js
ryanbaer/busy
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { injectIntl } from 'react-intl'; import { openTransfer } from '../wallet/walletActions'; import Affix from '../components/Utils/Affix'; import LeftSidebar from '../app/Sidebar/LeftSidebar'; import Action from '...
src/client/components/search/Table.js
gearz-lab/hypersonic
import React from 'react'; import clone from 'clone'; import Loading from 'react-loading'; import {Table, Alert} from 'react-bootstrap'; import { getDetailsUrl } from '../../lib/routingHelper'; export default React.createClass({ propTypes: { selection: React.PropTypes.object, rows: React.PropTypes...
src/component/BarChart.js
dnadrshin/dashboard
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Bar } from 'react-chartjs-2'; class LineChart extends Component { render() { let chartData = { labels: ['1', '2', '3', '4', '5', '6', '7'], datasets: [ { label: 'Weather Amount', backgroundColor: 'rgba(25...
src/containers/PlaylistEdit.js
kellhellia/vkReduxLast
import React, { Component } from 'react'; import { connect } from 'react-redux'; import store from '../store'; import { getSearchTerm, search, getCurrentPlaylist, addTrackToPlaylist, removeTrackFromPlaylist, handleFriendsModalOpen, handleFriendsModalClose } from '../actions'; import Modal f...
docs/lib/examples/BigPlayButton.js
video-react/video-react
import React from 'react'; import { Player, BigPlayButton } from 'video-react'; export default props => { return ( <Player src="https://media.w3.org/2010/05/sintel/trailer_hd.mp4"> <BigPlayButton position="center" /> </Player> ); };
core/src/plugins/access.ajxp_conf/res/js/AdminWorkspaces/editor/FeaturesListWizard.js
pydio/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...
src-client/scripts/modal-window.js
VeryBarry/iLuggit
import React from 'react' let ModalWindow = React.createClass({ render:function(){ let modalClassName = 'modal-container' if (this.props.modalSettings.isShowing ===false){ modalClassName = 'modal-container is-hidden ' } console.log(this.props); return( <div className...
app/assets/javascripts/src/components/sharedComponents/InstagramIcon.js
talum/creamery
import React from 'react' const InstagramIcon = () => ( <div className="svg-container svg-container--small"> <svg viewBox="0 0 32 32"> <path d="M16 2.881c4.275 0 4.781 0.019 6.462 0.094 1.563 0.069 2.406 0.331 2.969 0.55 0.744 0.288 1.281 0.638 1.837 1.194 0.563 0.563 0.906 1.094 1.2 1.838 0.219 0.563 0.481 ...
app/containers/LanguageProvider/index.js
anhldbk/react-boilerplate
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
src/docs/examples/TextInput/ExampleEmail.js
MallikarjunaMG/react-components
import React from 'react' import TextInput from 'comps-root/TextInput'; /** * Email Textinput Field - Optional */ export default function ExampleEmail() { return <TextInput htmlId='example-email' label='Email' name='Email' type='email' placeholder='Enter Email' onChange={() => {}} /> }
app/javascript/mastodon/features/ui/components/column_link.js
rutan/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; const ColumnLink = ({ icon, text, to, href, method, badge }) => { const badgeElement = typeof badge !== 'undefined' ? <span className='column-link__badge'>{badge}</span> : null; if (href) { return ( <...
app/src/navigation/index.js
BlackBoxVision/react-native-redux-todo
import React from 'react'; import addNavigationHelpers from 'react-navigation/lib/addNavigationHelpers'; import connect from 'react-redux/lib/connect/connect'; import Navigator from './routes'; const mapStateToProps = state => ({ navigate: state.navigate }); @connect(mapStateToProps) export default class ScreenM...