path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
frontend-new/src/js/components/common/header/dropdownlist/index.js
leapfrogtechnology/vyaguta-resource
import React, { Component } from 'react'; class DropDownList extends Component { logOut = () => { localStorage.removeItem('access_token'); localStorage.removeItem('refresh_token'); localStorage.removeItem('vyaguta_user'); window.location.href = window.location.origin; }; render() { return ( ...
src/index.js
eko/king
import React from 'react'; import { render } from 'react-dom'; import injectTapEventPlugin from 'react-tap-event-plugin'; injectTapEventPlugin(); import Root from './root'; render( <Root />, document.getElementById('app') );
game-new/src/views/home.js
d07RiV/d3planner
import React from 'react'; import { Panel } from 'react-bootstrap'; import { withAsync, Cache, ErrorView } from 'utils'; const HomeComponent = ({versions}) => { const vertext = ( <React.Fragment> {versions.live != null && <p> Current Live game version: {versions.versions[versions.live] |...
docs/public/static/examples/v36.0.0/tutorial/sharing-simple.js
exponent/exponent
import React from 'react'; import { Image, StyleSheet, Text, TouchableOpacity, View } from 'react-native'; import * as ImagePicker from 'expo-image-picker'; import * as Sharing from 'expo-sharing'; export default function App() { let [selectedImage, setSelectedImage] = React.useState(null); let openImagePickerAsy...
src/routes/Oppgave3Fasit/components/Oppgave3Text.js
andreasnc/summer-project-tasks-2017
import React from 'react'; const Oppgave3Text = () => <div> <p>a) Til nå har vi lastet inn characters fra en .json fil direkte til komponenten *View.js. Denne gangen skal vi få den ifra en action istedet. Funksjonen med filnavn fetchCharacters returnerer nå listen av karakterer gjennom en action med type "FETCH_...
srcjs/components/PagingPanel.js
spapas/react-tutorial
import React from 'react'; export default ({page=1, page_size=5, count, onNextPage, onPreviousPage, ...props}) => { const total_pages = Math.ceil(count / page_size); return <div className="row"> {page==1?null:<button onClick={e => { e.preventDefault(); onPreviousPage(); }}>&lt;</button>} &nbsp...
docs/src/examples/elements/Reveal/index.js
Semantic-Org/Semantic-UI-React
import React from 'react' import Types from './Types' import Content from './Content' import States from './States' import Variations from './Variations' const RevealExamples = () => ( <div> <Types /> <Content /> <States /> <Variations /> </div> ) export default RevealExamples
app/javascript/flavours/glitch/features/account_timeline/containers/header_container.js
im-in-space/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { makeGetAccount, getAccountHidden } from 'flavours/glitch/selectors'; import Header from '../components/header'; import { followAccount, unfollowAccount, unblockAccount, unmuteAccount, pinAccount, unpinAccount, } from 'flavours/glitch...
src/components/HintContainer.js
serzhshakur/quest-application-reactjs
import React from 'react' import Spinner from './Spinner.js' import GetHintLink from './GetHintLink.js' import Timer from './Timer.js' import Hint from './Hint.js' import {fetchHint} from '../api/api.js' class HintContainer extends React.PureComponent { constructor(props) { super(props) this.state...
frontend/src/utils/mount-component.js
1905410/Misago
import React from 'react'; // jshint ignore:line import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; // jshint ignore:line import store from 'misago/services/store'; // jshint ignore:line export default function(Component, rootElementId, connected=true) { let rootElement = document.getElementBy...
docs/src/app/components/pages/components/Drawer/ExampleSimple.js
hwo411/material-ui
import React from 'react'; import Drawer from 'material-ui/Drawer'; import MenuItem from 'material-ui/MenuItem'; import RaisedButton from 'material-ui/RaisedButton'; export default class DrawerSimpleExample extends React.Component { constructor(props) { super(props); this.state = {open: false}; } handl...
src/js/components/ControllerNavs.js
AlexBai1991/react-images-gallery
'use strict'; import React, { Component } from 'react'; import React, { Component, PropTypes } from 'react'; export default class ControllerNavs extends Component { constructor(props, context) { super(props, context); this.centerImage = this.centerImage.bind(this); } centerImage(index) { return (e)...
src/Parser/Warlock/Destruction/Modules/Items/Legendaries/LessonsOfSpaceTime.js
enragednuke/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import ItemDamageDone from 'Main/ItemDamageDone'; import getDamageBonus from '../../WarlockCore/getDamageBonus'; const...
src/index.js
reprap-io/reprap.io
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import 'semantic-ui-css/semantic.min.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
frontend/src/admin/components/main.component.js
holandajunior/workaday
import React from 'react'; import { Link } from 'react-router'; // Internal dependencies import Sidebar from './sidebar.component'; import Navbar from './navbar.component'; import { DashboardComponent } from '../pages'; import { requireAuth } from 'appComponents'; export default class Main extends React.Component { ...
src/svg-icons/action/receipt.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionReceipt = (props) => ( <SvgIcon {...props}> <path d="M18 17H6v-2h12v2zm0-4H6v-2h12v2zm0-4H6V7h12v2zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-...
src/parser/warrior/arms/modules/core/SweepingStrikes.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import { formatPercentage } from 'common/format'; import SpellLink from 'common/SpellLink'; import SPELLS from 'common/SPELLS'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Abilities from 'parser/core/modules/Abilities'; import Events from 'parser/core/Events'; imp...
src/PeopleLabel/index.js
christianalfoni/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import Avatar from '../Avatar'; import classNames from 'classnames'; import styles from './styles.css'; function PeopleLabel(props) { return ( <div className={classNames(styles.wrapper, { [props.className]: props.cla...
src/components/nodewebkit/plain-wordmark/NodewebkitPlainWordmark.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './NodewebkitPlainWordmark.svg' /** NodewebkitPlainWordmark */ function NodewebkitPlainWordmark({ width, height, className }) { return ( <SVGDeviconInline className=...
Paths/React/05.Building Scalable React Apps/2-react-boilerplate-building-scalable-apps-m2-exercise-files/Before/app/containers/LanguageProvider/index.js
phiratio/Pluralsight-materials
/* * * 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...
docs/0.703a7199b3ad794cfe2a.js
quark-ui/quark-ui
webpackJsonp([0],{"/3hJ":function(e,t){e.exports='import Popover from \'../Popover\';\nimport { Component } from \'react\';\nimport Button from \'../../button/Button\';\n// import CSSModules from \'react-css-modules\';\nimport { allowMultiple } from \'../../../constants\';\nimport styles from \'./index.css\';\n\nexport...
examples/components/CardPlayground.js
nikgraf/belle
import React from 'react'; import { Card } from 'belle'; export default React.createClass({ render() { return ( <div> <h2>Card</h2> <Card><p>Looks nice!</p></Card> <Card style={{ color: '#2994BB' }} data-custom-attribute={'custom'}>What about another font color?</Card> <...
src/parser/priest/holy/modules/talents/75/CircleOfHealing.js
sMteX/WoWAnalyzer
import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox'; import React from 'react'; import ItemHealingDone from 'interface/others/ItemHealingDone'; import { formatPercentage, formatThousands } from 'common...
src/components/Snackbar.js
branch-bookkeeper/pina
import React, { Component } from 'react'; import Button from '@material-ui/core/Button'; import { default as BaseSnackbar } from '@material-ui/core/Snackbar'; class Snackbar extends Component { render() { const { open, message, onClose, onButtonClick, ...
src/useDispatcher.js
nheyn/react-async-dispatcher
/* @flow */ import React from 'react'; import type { Dispatcher } from 'async-dispatcher'; import type { HigherOrderComponent } from 'react-async-dispatcher'; /** * */ export default function useDispatcher(dispatcher: Dispatcher): HigherOrderComponent { return (Component) => { class UseDispatcher extends Reac...
src/components/docker/plain/DockerPlain.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './DockerPlain.svg' /** DockerPlain */ function DockerPlain({ width, height, className }) { return ( <SVGDeviconInline className={'DockerPlain' + ' ' + className} ...
docs/src/examples/addons/Pagination/Types/PaginationExampleCompact.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Pagination } from 'semantic-ui-react' const PaginationExampleCompact = () => ( <Pagination boundaryRange={0} defaultActivePage={1} ellipsisItem={null} firstItem={null} lastItem={null} siblingRange={1} totalPages={10} /> ) export default PaginationExam...
src/Chart/BarChartChallengeMobile/index.js
DuckyTeam/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import chart from './chart'; import Chart from './../index'; function BarChartMobile(props) { return ( <Chart chart={chart} height={"80px"} {...props} /> ); } BarChartMobile.propTypes = { data: PropTypes.arrayOf(PropTypes...
examples/huge-apps/components/Dashboard.js
cold-brew-coding/react-router
import React from 'react'; import { Link } from 'react-router'; class Dashboard extends React.Component { render () { let { courses } = this.props; return ( <div> <h2>Super Scalable Apps</h2> <p> Open the network tab as you navigate. Notice that only the amount of ...
stories/examples/Form/FormGridFormRow.js
reactstrap/reactstrap
import React from 'react'; import { Col, Row, Button, Form, FormGroup, Label, Input } from 'reactstrap'; const Example = (props) => { return ( <Form> <Row> <Col md={6}> <FormGroup> <Label for="exampleEmail">Email</Label> <Input type="email" name="email" id="example...
client/src/pages/activeRelease/collectionIndicator/index.js
csleary/nemp3
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { Link } from 'react-router-dom'; import PropTypes from 'prop-types'; import React from 'react'; import { faCheck } from '@fortawesome/free-solid-svg-icons'; import styles from './collectionIndicator.module.css'; const CollectionIndicator = ({ in...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/DefaultPropsNoneButState.js
jamesgpearce/flow
// @flow import React from 'react'; class MyComponent extends React.Component<void, Props, State> { defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component<void, Props, State> { defaultProps: T; static prop...
src/containers/Asians/TabControls/BreakRounds/CreateBreakRooms/2_AllocateAdjudicators/Navigation/index.js
westoncolemanl/tabbr-web
import React from 'react' import Button from 'material-ui/Button' export default ({ onNext, onNextDisabled }) => <div className={'flex flex-row justify-end mt3'} > <Button variant={'raised'} color={'primary'} onTouchTap={onNext} children={'NEXT'} disabled={onNextDisabled}...
actor-apps/app-web/src/app/components/Deactivated.react.js
chieryw/actor-platform
import React from 'react'; class Deactivated extends React.Component { render() { return ( <div className="deactivated row center-xs middle-xs"> <div className="deactivated__window"> <h2>Tab deactivated</h2> <p> Oops, you have opened another tab with Actor, so we had...
Realization/frontend/czechidm-core/src/content/notification/sms/SmsContent.js
bcvsolutions/CzechIdMng
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import * as Basic from '../../../components/basic'; import { SmsManager } from '../../../redux'; import NotificationDetail from '../NotificationDetail'; const manager = new SmsManage...
src/js/ui/pages/settings/backupRestore.js
hiddentao/heartnotes
import React from 'react'; import Layout from './layout'; import BackupFile from '../../components/settings/backupFile'; import RestoreFile from '../../components/settings/restoreFile'; import ExportData from '../../components/settings/exportData'; module.exports = React.createClass({ render: function() { retu...
src/components/FormField.js
ShevaDas/exhibitor-management
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { FormGroup, ControlLabel, FormControl, HelpBlock } from 'react-bootstrap'; class FormField extends Component { constructor(props) { super(props); this.state = { value: '' }; } // TODO: Better validation, perh...
components/buttons/CancelRegistrationButton/index.js
shinosakarb/tebukuro-client
// @flow import React from 'react' import Button from '@material/react-button' import MaterialIcon from '@material/react-material-icon' type Props = { eventId: ?number, onClick: Function, } const CancelRegistrationButton = (props: Props) => { const onClickHandler = (e: SyntheticEvent<>) => { e.preventDefaul...
react-router-demo/lessons/08-index-routes/modules/Repo.js
zhangjunhd/react-examples
import React from 'react' export default React.createClass({ render() { return ( <div> <h2>{this.props.params.repoName}</h2> </div> ) } })
docs/app/Examples/modules/Sidebar/Uncover/index.js
Rohanhacker/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const SidebarVariationsExamples = () => ( <ExampleSection title='Uncover'> <ComponentExample title='Left Uncover' de...
src/components/Layoutx/Footer/index.js
wz-one-piece/Antd-Demo
import React from 'react' import styles from './index.less' import { config } from 'utils' const Footer = () => <div className={styles.footer}> {config.footerText} </div> export default Footer
public/js/site.js
MelanistOnca/bookList
import React from 'react'; import { render } from 'react-dom'; //react-router may belong in app.js rather than here // import { Router, Route, IndexRoute, hashHistory } from 'react-router'; //review react-router to see if you need anything else, or for more detail on the imported. //components import Nav from './com...
components/Sidebar.js
rbardini/bandeco
import React from 'react' import Balance from './Balance' class Sidebar extends React.Component { render () { return ( <div className='c-sidebar'> <Balance /> </div> ) } } export default Sidebar
boxroom/archive/backup-js-glow-2018-01-28/boxroom/archive/js-surface-2018-01-27/boxroom/archive/2017-10-23-before-redesign/js-unify/src/demo/pagination/pagination.js
mcjazzyfunky/js-surface
import { defineClassComponent, defineFunctionalComponent, hyperscript as h, mount } from 'js-unify'; import { Seq } from 'js-essential'; import PaginationHelper from './helper/PaginationHelper.js'; import ComponentHelper from './helper/ComponentHelper.js'; import React from 'react'; import ReactDOM...
vertex_ui/src/components/Footer_old/Footer.js
zapcoop/vertex
import React from 'react'; export const Footer = props => ( <footer> <div className={props.container || 'container-fluid'}> <p className="text-gray-dark"> <strong className="m-r-1">SPIN Dashboard </strong>{' '} <span className="text-gray-dark"> © 2009 - 2016. Made by <i className=...
components/animals/kunPrevalskeho.child.js
marxsk/zobro
import React, { Component } from 'react'; import { Text } from 'react-native'; import styles from '../../styles/styles'; import InPageImage from '../inPageImage'; import AnimalText from '../animalText'; import AnimalTemplate from '../animalTemplate'; const IMAGES = [ require('../../images/animals/kunPrevalskeho/01....
app/assets/scripts/components/pill.js
openaq/openaq.org
import React from 'react'; import { PropTypes as T } from 'prop-types'; export default function Pill({ title, action }) { return ( <button className="button--pill" onClick={action} data-cy="simple-pill"> <span>{title}</span> </button> ); } Pill.propTypes = { title: T.string.isRequired, action: T...
common/routes/Player/containers/Player.js
kuguarpwnz/musix
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { provideHooks } from 'redial'; import { loadPlayer } from '../../Main/actions/player'; import { setCurrentTrack, loadTracks } from '../../Main/actions/tracks'; import { getCurrentTrack, getTracks } from '../../Main/reducers/tracks'...
src/svg-icons/editor/border-style.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderStyle = (props) => ( <SvgIcon {...props}> <path d="M15 21h2v-2h-2v2zm4 0h2v-2h-2v2zM7 21h2v-2H7v2zm4 0h2v-2h-2v2zm8-4h2v-2h-2v2zm0-4h2v-2h-2v2zM3 3v18h2V5h16V3H3zm16 6h2V7h-2v2z"/> </SvgIcon> ); E...
webapp/src/App.js
crpoon/nwHacks2017
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <div className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h2>Welcome to React</h2> ...
app/javascript/src/pages/Dashboard.js
michelson/chaskiq
import React from 'react' import PageHeader from '../components/PageHeader' import Progress from '../components/Progress' import moment from 'moment' import HeatMap from '../components/charts/heatMap' import Pie from '../components/charts/pie' import Count from '../components/charts/count' import DashboardCard from '.....
examples/real-world/index.js
james4388/redux
import 'babel-core/polyfill'; import React from 'react'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import { Provider } from 'react-redux'; import { Router, Route } from 'react-router'; import configureStore from './store/configureStore'; import App from './containers/App'; import UserPage fro...
src/js/Components/GalleryImage.js
7sleepwalker/addicted-to-mnt
import React, { Component } from 'react'; import { Parallax } from 'react-parallax'; class GalleryImage extends Component { componentDidMount() { if (!this.props.featured) { // const controller = new ScrollMagic.Controller(); // const imageSelector = document.getElementById(`gallery-image__imgBox--id...
internals/templates/containers/App/index.js
projectcashmere/web-server
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
client/node_modules/uu5g03/dist-node/forms-v3/internal/message.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ContentMixin} from './../../common/common.js'; import {Div} from '../../bricks/bricks.js'; import './message.less'; export default React.createClass({ //@@viewOn:mixins mixins: [ BaseMixin, ContentMixin ], //@@viewOff:mixins //@@viewOn:statics static...
lib/components/Bootstrap.js
Ribeiro/filepizza
import React from 'react' export default class Bootstrap extends React.Component { render() { return <script id="bootstrap" type="application/json" dangerouslySetInnerHTML={{ __html: this.props.data}} /> } }
src/component/picture-item/index.js
abdih17/celebrityMatch
import React from 'react' // TODO: Consider using Lodash (3rd party module) to shuffle and chunk the array of images. // NOTE: Make sure to understand the ins and outs of how it works. //TODO: Restructure the component! import { pictureCreate, pictureReset, } from '../../action/picture-action.js' let counter = ...
src/Tabs/TabList.js
kareem3d/react-swipeable-tabs
import React from 'react'; import autoprefixer from './prefixer'; import TabListItem from './TabListItem'; export default class TabList extends React.Component { static propTypes = { items: React.PropTypes.arrayOf(React.PropTypes.shape({ element: React.PropTypes.element.isRequired, width: React.Prop...
components/animals/kulikPisecny.adult.js
marxsk/zobro
import React, { Component } from 'react'; import { Text } from 'react-native'; import styles from '../../styles/styles'; import InPageImage from '../inPageImage'; import AnimalText from '../animalText'; import AnimalTemplate from '../animalTemplate'; const IMAGES = [ require('../../images/animals/kulikPisecny/01.jp...
src/svg-icons/action/settings-phone.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsPhone = (props) => ( <SvgIcon {...props}> <path d="M13 9h-2v2h2V9zm4 0h-2v2h2V9zm3 6.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-...
httpdocs/theme/react/hooks-app/opendesktop-home/components/ProductsMyGitContainer.js
KDE/ocs-webserver
import React, { Component } from 'react'; import ProductGit from './ProductGit'; class ProductsMyGitContainer extends React.Component { constructor(props){ super(props); this.gitUrl = `/json/gitlab?username=${props.user.username}`; this.gitUserUrl = '/json/gitlabfetchuser?username='; this.state = {ite...
socket.io/client/src/components/Header.js
EcutDavid/socket.io-firebase-quickstart
import React from 'react'; import 'styles/header.scss'; export default class Header extends React.Component { constructor() { super(); this.state = { hasUser1: true, hasUser2: true, requestSent: false }; } componentWillMount() { this.props.socket.on('update', ({userInfo}) => { this.setState({...
blueocean-material-icons/src/js/components/svg-icons/hardware/speaker-group.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const HardwareSpeakerGroup = (props) => ( <SvgIcon {...props}> <path d="M18.2 1H9.8C8.81 1 8 1.81 8 2.8v14.4c0 .99.81 1.79 1.8 1.79l8.4.01c.99 0 1.8-.81 1.8-1.8V2.8c0-.99-.81-1.8-1.8-1.8zM14 3c1.1 0 2 .89 2 2s-.9 2-2 2-2-.89-2-2 .9-2 2-2zm0 13.5c-2....
app/components/avatar/index.js
andry-baka/dapur-ngebul-app
import React from 'react'; import { Image, View } from 'react-native'; import { RkComponent, RkText, RkTheme } from 'react-native-ui-kitten'; import {FontAwesome} from '../../assets/icons'; export class Avatar extends RkComponent { componentName = 'Avatar'; typeMapping = { container: {}, image: {...
src/components/layout.js
itzsaga/slack-list
import React from 'react' import PropTypes from 'prop-types' import { Helmet } from 'react-helmet' import { StaticQuery, graphql } from 'gatsby' import Hero from './hero' import Footer from './footer' import './layout.sass' const Layout = ({ children, location }) => ( <StaticQuery query={graphql` query Si...
src/svg-icons/action/settings-input-antenna.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsInputAntenna = (props) => ( <SvgIcon {...props}> <path d="M12 5c-3.87 0-7 3.13-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.87-3.13-7-7-7zm1 9.29c.88-.39 1.5-1.26 1.5-2.29 0-1.38-1.12-2.5-2.5-2.5S9.5 ...
webpack/scenes/Subscriptions/Details/SubscriptionDetails.js
johnpmitsch/katello
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { translate as __ } from 'foremanReact/common/I18n'; import { Nav, NavItem, TabPane, TabContent, TabContainer, Grid, Row, Col } from 'patternfly-react'; import BreadcrumbsBar from 'foremanReact/components/BreadcrumbBar'; import Subscri...
blueprints/smart/files/__root__/containers/__name__.js
mleonard87/merknera-ui
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' type Props = { } export class <%= pascalEntityName %> extends React.Component { props: Props; render() { return ( <div></div> ) } } const mapStateToProps = (state) => { return {} } const ...
local-cli/templates/HelloNavigation/components/ListItem.js
brentvatne/react-native
'use strict'; import React, { Component } from 'react'; import { Platform, StyleSheet, Text, TouchableHighlight, TouchableNativeFeedback, View, } from 'react-native'; /** * Renders the right type of Touchable for the list item, based on platform. */ const Touchable = ({onPress, children}) => { const c...
src/utils/routing.js
exponentjs/xde
/** * Misc routing related utilities and HoC's. * * @flow */ import React from 'react'; import { Match, Redirect, propTypes as RouterPropTypes } from 'react-router'; import { connect } from 'react-redux'; import hoistStatics from 'hoist-non-react-statics'; import type { AppState } from 'xde/state/types'; type M...
client/src/components/ResetRequestForm.js
richb-hanover/reactathon
import React from 'react'; import ajax from 'superagent'; import { Link } from 'react-router'; import { Input, ButtonInput } from 'react-bootstrap'; export class ResetRequestForm extends React.Component { constructor() { super(); this.state = { pending: false, email: '', emailSent: fa...
src/pages/Editor/pages/MapEditor/pages/EditMap/containers/MapEditor/components/ColorPickerRow.js
caspg/datamaps.co
import React from 'react' import PropTypes from 'prop-types' import ColorPicker from './ColorPicker' const ColorPickerRow = (props) => <div className="row ColorPickerRow"> <div className="col-xs-6"> <span>{props.label}</span> </div> <div className="col-xs-4"> <ColorPicker color={prop...
app/javascript/mastodon/features/pinned_statuses/index.js
codl/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { fetchPinnedStatuses } from '../../actions/pin_statuses'; import Column from '../ui/components/column'; import ColumnBackButtonSlim from '../../compon...
app/component/article_item.js
togayther/react-stock
import React from 'react'; import { Link } from 'react-router'; import { MediaBox, MediaBoxHeader, MediaBoxBody, MediaBoxTitle, MediaBoxDescription, MediaBoxInfo, MediaBoxInfoMeta, } from 'react-weui'; class ArticleItem extends React.Component { constructor() { super(); } render...
js/script.js
Angelfire/reactgram
import '../styles/main.scss'; import React from 'react'; import ReactDOM from 'react-dom'; import { data } from './settings.json'; // Components import ImageBG from './components/ImageBG'; // App Container class App extends React.Component { constructor(props) { super(props); this.handleChange = this.han...
app/javascript/mastodon/components/setting_text.js
Ryanaka/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; export default class SettingText extends React.PureComponent { static propTypes = { settings: ImmutablePropTypes.map.isRequired, settingKey: PropTypes.array.isRequired, label: PropT...
Realization/frontend/czechidm-core/src/content/role/IncompatibleRoleWarning.js
bcvsolutions/CzechIdMng
import PropTypes from 'prop-types'; import React from 'react'; // import * as Basic from '../../components/basic'; import * as Advanced from '../../components/advanced'; /** * Warning icon with incompatible roles in popover content * * @author Radek Tomiška * @since 9.4.0 */ export default class IncompatibleRoleW...
test/regressions/site/src/tests/ListItem/SecondaryActionCheckboxListItem.js
und3fined/material-ui
// @flow weak import React from 'react'; import { ListItem, ListItemText, ListItemSecondaryAction, } from 'material-ui/List'; import Checkbox from 'material-ui/Checkbox'; export default function SecondaryActionCheckboxListItem() { return ( <div style={{ background: '#fff', width: 300 }}> <ListItem b...
src/parser/mage/frost/modules/checklist/Module.js
FaideWW/WoWAnalyzer
import React from 'react'; import BaseChecklist from 'parser/shared/modules/features/Checklist2/Module'; import CastEfficiency from 'parser/shared/modules/CastEfficiency'; import Combatants from 'parser/shared/modules/Combatants'; import PreparationRuleAnalyzer from 'parser/shared/modules/features/Checklist2/Preparati...
packages/react/src/components/SubmitButton.js
wq/wq.app
import React from 'react'; import { useComponents } from '../hooks'; import { useFormikContext } from 'formik'; export default function SubmitButton(props) { const { Button } = useComponents(), { isSubmitting } = useFormikContext(); return <Button type="submit" disabled={isSubmitting} {...props} />; }...
src/svg-icons/notification/phone-missed.js
skarnecki/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...
examples/passing-props-to-children/app.js
jwaltonmedia/react-router
import React from 'react' import { createHistory, useBasename } from 'history' import { Router, Route, Link, History } from 'react-router' require('./app.css') const history = useBasename(createHistory)({ basename: '/passing-props-to-children' }) const App = React.createClass({ mixins: [ History ], getInitial...
src/js/components/Widgets/WorldMap.js
masogit/dashboard
/** * Created by huling on 10/22/2016. */ import React, { Component } from 'react'; import WorldMap from 'grommet/components/WorldMap'; import Warpper from './Warpper'; export default class World_Map extends Component { render() { return ( <Warpper name='WORLDWIDE DEVICE DISTRIBUTION'> <W...
node_modules/react-router/es6/RouteUtils.js
danshapiro-optimizely/bandwidth
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import React from 'react'; function isValidChild(object) { ...
packages/reactor-kitchensink/src/examples/TouchEvents/TouchEvents.js
sencha/extjs-reactor
import React, { Component } from 'react'; import { Container, Panel } from '@extjs/ext-react'; export default class TouchEventsExample extends Component { constructor() { super(); this.state = { events: [] } } componentDidMount() { const fn = this.onTouchEvent...
app/containers/App/index.js
anneback/react-quiz
/** * * App * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) */ import React from 'react'; import Helmet from 'react-helmet'; import styled from 'styled-components'; import Header from 'components/Header'; import w...
example_app/src/components/Header/Header.js
blueberryapps/radium-bootstrap-grid
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import withStyles from 'isomorp...
client/src/components/Workbench/Tasks.js
DemocracyGuardians/DGTeam
import React from 'react'; import { withRouter } from 'react-router-dom' import { RSAA } from 'redux-api-middleware' import { TEAM_BASE_URL, TEAM_API_RELATIVE_PATH } from '../../envvars' import { getTasksSuccess } from '../../actions/taskActions' import parseJsonPayload from '../../util/parseJsonPayload' import PropTy...
src/components/Board/GameMessage/index.js
tasos14/reactQueens
/* eslint-disable object-curly-newline */ import React from 'react'; import GameOverMessage from './GameOverMessage'; import * as Styles from './styles'; import { useQueensContext } from 'components/App/context'; const GameMessage = () => { const { gridSize, moves, newGame, gameOver } = useQueensContext(); re...
src/components/CoRiskScoreResult.js
stroke-outcome/the-corisk-score
import React from 'react'; import './CoRiskScoreResult.css'; const CoRiskScoreResult = (props) => { const handleRecalculate = (event) => { event.preventDefault(); props.onRecalculate(); } return ( <div className="container grid-480"> <div className="text-center"> <h1 className="app-t...
data-browser-ui/public/app/components/tableComponents/td/relationComponents/id.js
CloudBoost/cloudboost
import React from 'react'; import ReactDOM from 'react-dom'; class Id extends React.Component { constructor(){ super() this.state = { } } componentDidMount(){ } changeHandler(e){ this.props.updateElementData(e.target.value,this.props.columnData.name) } render() { return ( <div classNam...
src/components/vendor/tcomb-form/components.js
trujunzhang/IEATTA-web
import React from 'react' import t from 'tcomb-validation' import { humanize, merge, getTypeInfo, getOptionsOfEnum, move, UIDGenerator, getTypeFromUnion, getComponentOptions } from './util' const Nil = t.Nil const assert = t.assert const SOURCE = 'tcomb-form' const noobj = Object.freeze({}) const noarr...
src/svg-icons/maps/local-pharmacy.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalPharmacy = (props) => ( <SvgIcon {...props}> <path d="M21 5h-2.64l1.14-3.14L17.15 1l-1.46 4H3v2l2 6-2 6v2h18v-2l-2-6 2-6V5zm-5 9h-3v3h-2v-3H8v-2h3V9h2v3h3v2z"/> </SvgIcon> ); MapsLocalPharmacy = pure...
app/containers/LanguageProvider/index.js
pavel06081991/SPWorld
/* * * 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/modules/workarea/WorkArea.js
san2beerelli/Eycon
import React, { Component } from 'react'; import Paper from 'material-ui/Paper'; import {RFIcon} from '../../components'; class WorkArea extends Component { constructor(props){ super(props); this.state = { bgRadius: 2 } } render () { const {workAreaStyle} = style...
dapp/src/shared/components/common/layout.js
airalab/DAO-IPCI
import React from 'react' import PropTypes from 'prop-types' import Title from './title' const Layout = (props) => { const { title, menu, back, children } = props return (<div> <Title title={title} menu={menu} back={back} /> <div> {children} </div> </div>) } Layout.propT...
src/svg-icons/social/location-city.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialLocationCity = (props) => ( <SvgIcon {...props}> <path d="M15 11V5l-3-3-3 3v2H3v14h18V11h-6zm-8 8H5v-2h2v2zm0-4H5v-2h2v2zm0-4H5V9h2v2zm6 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V9h2v2zm0-4h-2V5h2v2zm6 12h-2v-2h...
app/containers/CatKitDemo/catKitDemoHeader.js
mhoffman/CatAppBrowser
import React from 'react'; import PropTypes from 'prop-types'; import Script from 'react-load-script'; import ReactGA from 'react-ga'; import { Link } from 'react-router'; import Grid from 'material-ui/Grid'; import Button from 'material-ui/Button'; import { withStyles } from 'material-ui/styles'; import { styles }...
components/AboutMe.js
githubhaohao/DevNews
import React, { Component } from 'react'; import { Dimensions, Image, PixelRatio, StyleSheet, Text, View, TouchableOpacity, Share, Platform, } from 'react-native'; import GlobalStyle from './GlobalStyle.js'; import ParallaxScrollView from 'react-native-parallax-scroll-view'; impo...
src/esm/components/structure/cards/people-card/index.js
KissKissBankBank/kitten
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["className", "children"], _excluded2 = ["className", "style", "peopleAvatar"], _excluded3 = ["className", "style"], _excluded4 = ["classNam...