path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
fields/types/location/LocationColumn.js
rafmsou/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; const SUB_FIELDS = ['street1', 'suburb', 'state', 'postcode', 'country']; var LocationColumn = React.createClass({ displayName: 'LocationColumn', propTypes: { co...
src/component/flight-container/index.js
aesthetiques/alaska-airlines-fe
import React from 'react' import {connect} from 'react-redux' import FlightItem from '../flight-item' import * as utils from '../../lib/utils' class FlightContainer extends React.Component{ render(){ return( <div className="flight-container"> <FlightItem /> </div> ) } } let mapStateTo...
app/components/Link.js
alexindigo/ndash
import React, { Component } from 'react'; import { TouchableOpacity } from 'react-native'; import { openUrl, shareUrl } from '../helpers/url'; export default class Link extends Component { render() { const {url, style, ...props} = this.props; return ( <TouchableOpacity style={[{flex: 1}, st...
plugins/Wallet/js/components/receivebutton.js
NebulousLabs/Sia-UI
import React from 'react' const ReceiveButton = ({ actions }) => { const handleReceiveButtonClick = () => actions.showReceivePrompt() return ( <div className='wallet-button receive-button' onClick={handleReceiveButtonClick} > <i className='fa fa-download fa-2x' /> <span>Receive Siac...
src/routes/order/send/index.js
terryli1643/daoke-react-c
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'dva' import OrderForm from '../../../components/order/Form' const Send = ({ order, contact, dispatch }) => { const { currentItem, modalType, modalVisible } = order const { recipientContacts, senderContacts } = contact const co...
examples/src/auth/app.js
arnogeurts/ReactReduxForm
"use strict"; import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import createStore from '../base/create-store'; import AuthForm from './auth-form'; import Layout from './layout'; ReactDOM.render( <Provider store={createStore(AuthForm.reducer)}> <Layout/> ...
frontend/src/InteractiveSearch/InteractiveSearchTable.js
Radarr/Radarr
import React from 'react'; import InteractiveSearchContentConnector from './InteractiveSearchContentConnector'; function InteractiveSearchTable(props) { return ( <InteractiveSearchContentConnector searchPayload={props} /> ); } InteractiveSearchTable.propTypes = { }; export default InteractiveSearc...
src/components/pages/Home.js
StillLearnin/time-clock-ui
import React from 'react'; import { Component } from 'react'; import TimeLog from '../time-log/TimeLog'; import PunchPanel from '../punch-panel/PunchPanel' import css from './Home.css' export default class Home extends Component { render() { return ( <div className={css.homeBody}> <div className={...
client-src/js/components/list-edit-component.js
MatthewNichols/ThePickupList
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { addNewList } from '../actions'; class ListEdit extends Component { constructor(props) { super(props); this.state = {listName: ''}; } saveClickHandler(e) {...
app/javascript/mastodon/features/ui/index.js
verniy6462/mastodon
import React from 'react'; import classNames from 'classnames'; import Redirect from 'react-router-dom/Redirect'; import NotificationsContainer from './containers/notifications_container'; import PropTypes from 'prop-types'; import LoadingBarContainer from './containers/loading_bar_container'; import TabsBar from './co...
Example/components/TabView.js
charpeni/react-native-router-flux
import React from 'react'; import {PropTypes} from "react"; import {StyleSheet, Text, View, ViewPropTypes} from "react-native"; import Button from 'react-native-button'; import { Actions } from 'react-native-router-flux'; const contextTypes = { drawer: React.PropTypes.object, }; const propTypes = { name: PropType...
src/parser/priest/shadow/modules/checklist/Component.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Checklist from 'parser/shared/modules/features/Checklist'; import Requirement from 'parser/shared/modules/features/Checklist/Requirement'; import Rule from 'parser/shared/...
src/svg-icons/file/folder.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileFolder = (props) => ( <SvgIcon {...props}> <path d="M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"/> </SvgIcon> ); FileFolder = pure(FileFolder); FileFolder.d...
src/molecules/archive/pagination/stories.js
dsmjs/components
/* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */ import React from 'react'; import storyRouter from 'storybook-router'; import {linkTo} from '@storybook/addon-links'; import Pagination from '.'; export default { title: 'Molecules/Archive/Pagination', decorators: [ storyRout...
Html.js
spanias/isomorphic-react-base-app
/** * Copyright 2015, Digital Optimization Group, LLC. * Copyrights licensed under the APACHE 2 License. See the accompanying LICENSE file for terms. */ import React from 'react'; class HtmlComponent extends React.Component { render() { return ( <html> <head> ...
src/components/current.js
shootermantes/rome-weather
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; // Action Creators import getCurrentData from '../actions/getCurrentData'; import getFiveDay from '../actions/getFiveDay'; import changeUnit from '../actions/changeUnit'; import convertData fr...
src/components/History.js
Montana-Code-School/LifeCoach
import React from 'react'; import { inject, observer } from 'mobx-react'; import ReactBootstrapSlider from 'react-bootstrap-slider'; import dateFormat from 'dateformat'; class History extends React.Component{ constructor() { super(); this.changeHistoryIndex = this.changeHistoryIndex.bind(this); this.setT...
test/regressions/tests/List/SimpleListItem.js
dsslimshaddy/material-ui
// @flow import React from 'react'; import { ListItem, ListItemText } from 'material-ui/List'; export default function SimpleListItem() { return ( <div style={{ background: '#fff', width: 300 }}> <ListItem> <ListItemText primary="Primary" /> </ListItem> <ListItem> <ListItemText...
Realization/frontend/czechidm-core/src/content/modals/Profile.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import classnames from 'classnames'; import Joi from 'joi'; import _ from 'lodash'; // import * as Basic from '../../components/basic'; import * as Advanced from '../../components/advanced'; import * as Utils from '../...
src/svg-icons/hardware/keyboard-arrow-down.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardArrowDown = (props) => ( <SvgIcon {...props}> <path d="M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"/> </SvgIcon> ); HardwareKeyboardArrowDown = pure(HardwareKeyboardArrowDown); HardwareKey...
packages/mineral-ui-icons/src/IconPieChartOutlined.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconPieChartOutlined(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...i...
imports/client/ui/pages/Admin/AdminTable/Roles.js
focallocal/fl-maps
import React from 'react'; import { parseData } from './helper' import RoleSelect from './../RoleSelect/index.js' const Roles = ({ user, changeUserRole }) => { const roles = parseData('role', user); const UserName = parseData('user', user); return ( <RoleSelect rolesData={roles} UserName={UserName} user={us...
src/applications/static-pages/facilities/createFacilityMapSatelliteMainOffice.js
department-of-veterans-affairs/vets-website
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { fetchMainSatelliteLocationFacility } from './actions'; import widgetTypes from '../widgetTypes'; export default async function createFacilityMapSatelliteMainOffice(store) { let facilityID = ''; const mapW...
packages/component/src/ConnectivityStatus/Connected.js
billba/botchat
import { hooks } from 'botframework-webchat-api'; import React from 'react'; import ScreenReaderText from '../ScreenReaderText'; const { useLocalizer } = hooks; const ConnectivityStatusConnected = () => { const localize = useLocalizer(); return <ScreenReaderText text={localize('CONNECTIVITY_STATUS_ALT', localiz...
fields/explorer/components/FieldType.js
dvdcastro/keystone
import React from 'react'; import Markdown from 'react-markdown'; import Col from './Col'; import Row from './Row'; import FieldSpec from './FieldSpec'; const ExplorerFieldType = React.createClass({ getInitialState () { return { readmeIsVisible: !!this.props.readme, filter: this.props.FilterComponent.getDefa...
main.ios.js
tedsf/tiptap
import React, { Component } from 'react'; import { StyleSheet, Text, View, TouchableHighlight, Image, ScrollView, AlertIOS, Modal, AsyncStorage, DeviceEventEmitter, } from 'react-native'; import { Button } from 'native-base'; import NavigationBar from 'react-native-navbar'; import Beacons from 'reac...
actor-apps/app-web/src/app/components/ActivitySection.react.js
zwensoft/actor-platform
import React from 'react'; import classNames from 'classnames'; import { ActivityTypes } from 'constants/ActorAppConstants'; import ActivityStore from 'stores/ActivityStore'; import UserProfile from 'components/activity/UserProfile.react'; import GroupProfile from 'components/activity/GroupProfile.react'; const getS...
src/svg-icons/places/casino.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesCasino = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM7.5 18c-.83 0-1.5-.67-1.5-1.5S6.67 15 7.5 15s1.5.67 1.5 1.5S8.33 18 7.5 18z...
client/src/components/Profile/deleteProfileModal.js
Darkrender/raptor-ads
import React from 'react'; import { Button, Header, Modal } from 'semantic-ui-react'; const DeleteProfileModal = ({onDeleteClick}) => <Modal trigger={ <Button className="ui red right floated button" type="button" > Delete Profile </Button> } > <Header icon="trash...
src/pages/Main/index.js
JSLancerTeam/crystal-dashboard
import React from 'react'; import { Route, Router } from 'react-router-dom'; import { connect } from 'react-redux'; import cx from 'classnames'; import { setMobileNavVisibility } from '../../reducers/Layout'; import { withRouter } from 'react-router-dom'; import Header from './Header'; import Footer from './Footer'; i...
src/components/searchbox/searchbox.js
ebn646/react-moviesearch
import React from 'react' class SearchBox extends React.Component{ render(){ return( <h1>Here are your search results.</h1> ) } }
src/scenes/centralHub.js
Andrey11/golfmanager
'use strict'; import React, { Component } from 'react'; import { AppRegistry, Text, TextInput, View, ScrollView, Image, InteractionManager, Picker, TouchableHighlight, Modal } from 'react-native'; import { FriendActionTypes } from '../utilities/const'; import * as RightButtonMapper from '../navigat...
index.js
sharmad-nachnolkar/react-component-lib
import React from 'react' import ReactDOM from 'react-dom' import MultiSelect from './components/Multiselect/Multiselect.jsx' import Calendar from './components/Calendar/Calendar.jsx' /*var msProps = { dataSource:[ {key:'apple',value:'a'}, {key:'oranges',value:'o'}, {key:'mangoes',value:'m'}, {key:'bananas',v...
client/src/core-components/submit-button.js
opensupports/opensupports
// VENDOR LIBS import React from 'react'; import _ from 'lodash'; import classNames from 'classnames'; // CORE LIBS import Button from 'core-components/button'; import Loading from 'core-components/loading'; class SubmitButton extends React.Component { static contextTypes = { loading: React.PropTypes.boo...
docs/src/theme/DocItem/index.js
kmagiera/react-native-gesture-handler
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import Head from '@docusaurus/Head'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext'...
examples/star-wars/js/components/StarWarsShip.js
tmitchel2/relay
/** * Copyright 2013-2015, 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. */ import React from...
docs/app/Examples/addons/Radio/States/RadioExampleDisabled.js
shengnian/shengnian-ui-react
import React from 'react' import { Form, Radio } from 'shengnian-ui-react' const RadioExampleDisabled = () => ( <Form> <Form.Field> <Radio label='Disabled' disabled /> </Form.Field> <Form.Field> <Radio toggle label='Disabled' disabled /> </Form.Field> </Form> ) export default RadioExam...
src/components/topic/snapshots/foci/builder/search/SearchStoryPreviewContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { FormattedMessage, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import withFilteredAsyncData from '../../../../FilteredAsyncDataContainer'; import withHelp from '../../../../../common/hocs/HelpfulContainer'; import { fetchT...
app/react-icons/fa/magnet.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaMagnet extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m37.3 18.6v2.8q0 4.5-2.2 8.1t-6.1 5.6-8.9 2-8.8-2-6.1-5.6-2.2-8.1v-2.8q0-0.6 ...
src/main/resources/static/bower_components/jqwidgets/jqwidgets-react/react_jqxmaskedinput.js
dhawal9035/WebPLP
/* jQWidgets v4.5.0 (2017-Jan) Copyright (c) 2011-2017 jQWidgets. License: http://jqwidgets.com/license/ */ import React from 'react'; let jqxMaskedInput = React.createClass ({ getInitialState: function () { return { value: '' }; }, componentDidMount: function () { let options = this.manageAttributes()...
mobile/App/Components/SearchBar.js
JasonQSong/SoulDistance
import React from 'react' import { Text, TextInput, TouchableOpacity } from 'react-native' import styles from './Styles/SearchBarStyle' import I18n from 'react-native-i18n' import { Colors, Metrics } from '../Themes/' import * as Animatable from 'react-native-animatable' import Icon from 'react-native-vector-icons/Font...
src/components/Layout/Header/Header.js
jumpalottahigh/jumpalottahigh.github.io
import React from 'react' import { Link } from 'gatsby' import './Header.css' import logo from './logo.png' import github from './github.svg' import twitter from './twitter.svg' const activeStyle = { transform: 'scale(1.054)', borderBottom: '2px solid #fff', } const Header = () => ( <header className="header"> ...
src/templates/manual-template.js
inkdropapp/docs
import React from 'react' import PropTypes from 'prop-types' import { graphql, Link } from 'gatsby' import ManualLayout from '../components/manual-layout' export default function Template({ data, // this prop will be injected by the GraphQL query below. pageContext }) { const { pageByPath } = data const { fron...
packages/component/src/BasicSendBox.js
billba/botchat
import { Constants } from 'botframework-webchat-core'; import { hooks } from 'botframework-webchat-api'; import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import DictationInterims from './SendBox/DictationInterims'; import MicrophoneButton from './SendBox/MicrophoneBut...
frontend/src/components/organizationProfile/profile/organizationProfileHeaderOptions.js
unicef/un-partner-portal
import React from 'react'; import PropTypes from 'prop-types'; import { withRouter } from 'react-router'; import DropdownMenu from '../../common/dropdownMenu'; import PrintButton from '../buttons/printButton'; const OrganizationProfileHeaderOptions = (props) => { const { params: { id } } = props; return ( <Dr...
src/scripts/components/panel/Panel.component.story.js
kodokojo/kodokojo-ui-commons
/** * Kodo Kojo - Software factory done right * Copyright © 2017 Kodo Kojo (infos@kodokojo.io) * * 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 * (at ...
packages/react/src/components/SearchFilterButton/SearchFilterButton.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 { Filter16 } from '@carbon/icons-react'; import { settings } from 'carbon-components'; import PropTypes from 'prop-types'; import Reac...
src/js/components/About.js
caseypt/ebird-hotspot-viewer
import React from 'react'; export default function About() { return ( <div> <p> This application was developed by Casey Thomas as part of an R+D project at <a href="http://www.azavea.com">Azavea</a>. </p> <p> The source code is available on <a href="https://github....
imports/ui/components/Sidebar/Sidebar.js
jamiebones/Journal_Publication
import React from 'react'; import { Button , Row , Col , Modal , } from 'react-bootstrap'; import './Sidebar.scss'; class Sidebar extends React.Component { render() { return ( <Modal className='Sidebar left' show={ this.props.isVisible } onHide={this.props.onHide} autoFocus keyboard ...
src/components/AboutPage/AboutPage.js
chunkai1312/universal-react-redux-starter-kit
import React from 'react' import Helmet from 'react-helmet' const AboutPage = props => { return ( <div> <Helmet title="About" />About </div> ) } export default AboutPage
projects/chess-part2/viz/src/index.js
ebemunk/blog
import React from 'react' import ReactDOM from 'react-dom' import 'react-vis/dist/style.css' const render = (component, selector) => ReactDOM.render(component, document.querySelector(selector)) import GameEndMaterialDiff from './sections/GameEndMaterialDiff' import GameEndMaterialCount from './sections/GameEndMate...
docs/app/components/layout/home/index.js
sylvesteraswin/react-zvui-framework
import React from 'react'; import { Link } from 'react-router'; const Home = () => ( <article> Hello world! </article> ); export default Home;
src/AffixMixin.js
albertojacini/react-bootstrap
import React from 'react'; import domUtils from './utils/domUtils'; import EventListener from './utils/EventListener'; const AffixMixin = { propTypes: { offset: React.PropTypes.number, offsetTop: React.PropTypes.number, offsetBottom: React.PropTypes.number }, getInitialState() { return { a...
src/main.js
jeffaustin81/cropcompass-ui
import React from 'react' import ReactDOM from 'react-dom' import createBrowserHistory from 'history/lib/createBrowserHistory' import { useRouterHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import { createStore, applyMiddleware } from 'redux' import AppContainer from './contai...
src/svg-icons/maps/ev-station.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsEvStation = (props) => ( <SvgIcon {...props}> <path d="M19.77 7.23l.01-.01-3.72-3.72L15 4.56l2.11 2.11c-.94.36-1.61 1.26-1.61 2.33 0 1.38 1.12 2.5 2.5 2.5.36 0 .69-.08 1-.21v7.21c0 .55-.45 1-1 1s-1-.45-1-1V...
src/svg-icons/action/help.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHelp = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83...
transforms/__testfixtures__/React-PropTypes-to-prop-types/mixed-import-and-require.input.js
reactjs/react-codemod
import React from 'react'; require('styles.css'); class MyClass extends React.Component {} MyClass.propTypes = { foo: React.PropTypes.string };
src/App.js
CaiFanglin/react-redux-tabs
import React, { Component } from 'react'; import './App.css'; import Container from './components/Container.js'; import { connect, Provider } from 'react-redux'; import { bindActionCreators, createStore, applyMiddleware } from 'redux'; import Reducer from './redux/reducers.js'; import * as acts from './redux/actions.j...
client/components/ui/impl/material/ContentBlock.js
axax/lunuc
import React from 'react' import styled from '@emotion/styled' const StyledContentBlock = styled('div')(({ theme }) => ({ marginBottom: theme.spacing(4) })) class ContentBlock extends React.PureComponent { render() { return <StyledContentBlock {...this.props} /> } } export default ContentBlock
node_modules/react-router/es/Route.js
iEnder/React-Blog
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement } from './RouteUtils'; import { component, components } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes, string = _React$PropTypes.string, func = _React$PropTypes.func; /** * A <Route> is use...
src/PlaylistHeader.js
billyryanwill/amplify
import React from 'react'; const PlaylistHeader = () => { return ( <section> </section> ) } export default PlaylistHeader;
src/lib/reactors/Bookmarks/Bookmarks.js
EsriJapan/photospot-finder
// Copyright (c) 2016 Yusuke Nunokawa (https://ynunokawa.github.io) // // 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 us...
app/app/components/AdminPanel/ApiKeys/ApiKeysContainer.js
lycha/masters-thesis
import React from 'react'; import store from '../../../store'; import { connect } from 'react-redux'; import {getApiKeys, deleteApiKey, addApiKey} from '../../../api/ApiKeysApi'; import ApiKeysList from './ApiKeysList' import AddApiKey from './AddApiKey' class ApiKeysContainer extends React.Component { componentDi...
app/javascript/mastodon/features/account/components/account_note.js
danhunsaker/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import Textarea from 'react-textarea-autosize'; impor...
src/components/common/RoundText.js
serlo-org/serlo-abc
import { path } from 'ramda'; import React, { Component } from 'react'; import { Animated, View } from 'react-native'; import { MaterialIcons } from '@expo/vector-icons'; import { WHITE, WHITE_TRANSPARENT, PRIMARY_WEAK, TRANSPARENT, RED, GREEN } from '../../styles/colors'; import { DEFAULT } from '../../st...
frontend/src/screens/monitor/widgets/stages/stages.js
linea-it/qlf
import React, { Component } from 'react'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; import TableHead from '@material-ui/core/TableHead'; import TableRow from '@material-ui/core/TableRow'; import _ from 'lodash';...
src/app/homelessness/HomelessnessVeterans.js
cityofasheville/simplicity2
import React from 'react'; import PropTypes from 'prop-types'; import BarChart from '../../shared/visualization/BarChart'; import PageHeader from '../../shared/PageHeader'; import ButtonGroup from '../../shared/ButtonGroup'; import LinkButton from '../../shared/LinkButton'; import Icon from '../../shared/Icon'; import ...
app/javascript/mastodon/containers/compose_container.js
tootsuite/mastodon
import React from 'react'; import { Provider } from 'react-redux'; import PropTypes from 'prop-types'; import configureStore from '../store/configureStore'; import { hydrateStore } from '../actions/store'; import { IntlProvider, addLocaleData } from 'react-intl'; import { getLocale } from '../locales'; import Compose f...
src/svg-icons/communication/stay-current-portrait.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStayCurrentPortrait = (props) => ( <SvgIcon {...props}> <path d="M17 1.01L7 1c-1.1 0-1.99.9-1.99 2v18c0 1.1.89 2 1.99 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/> </SvgIcon> );...
old_boilerplate/js/app.js
hbaughman/audible-temptations
/** * * app.js * * This is the entry file for the application, mostly just setup and boilerplate * code. Routes are configured at the end of this file! * */ // Load the ServiceWorker, the Cache polyfill, the manifest.json file and the .htaccess file import 'file?name=[name].[ext]!../serviceworker.js'; import 'f...
techCurriculum/ui/solutions/3.1/src/index.js
jennybkim/engineeringessentials
/** * Copyright 2017 Goldman Sachs. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writ...
blueocean-material-icons/src/js/components/svg-icons/action/translate.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionTranslate = (props) => ( <SvgIcon {...props}> <path d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 ...
salt-frontend/react/dashboard/src/portlets/pageHtml/index.js
syakuis/salt-framework
import React from 'react'; import ContextMenu from '../../components/ContextMenu'; import AlloyEditorComponent from '../../components/AlloyEditorComponent'; export default class PageHtml extends React.Component { constructor(props) { super(props); } static getInfo() { return { ...
frontend/node_modules/react-router/es/Route.js
goodman001/20170927express
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; }; function _classCallCheck(instance, Constructor) { if (!(insta...
src/components/header/MobileSearch.js
MyronBatiuk/react-shopify-storefront
import React, { Component } from 'react'; export default class MobileSearch extends Component { render(){ return ( <div className="mobile-search" role="search"> <input className="mobile-search__input" name="q" placeholder="Search" aria-label="Search"/> <button classN...
src/routes.js
kyleturco/redux-tutorial
import React from 'react' import { Route, IndexRoute } from 'react-router' import Home from './components/common/HomePage' import About from './components/common/AboutPage' import Book from './components/book/BookPage' import App from './components/App' export default ( <Route path='/' component={App}> <IndexRo...
app/src/Frontend/libs/weui/components/mediabox/mediabox_info.js
ptphp/ptphp
/** * Created by n7best */ import React from 'react'; import classNames from 'classnames'; import MediaBoxInfoMeta from './mediabox_info_meta'; export default class MediaBoxInfo extends React.Component { static propTypes = { data: React.PropTypes.array, }; static defaultProps = { data...
src/components/ChartTypePicker/index.js
DataSF/open-data-explorer
import React from 'react' import PropTypes from 'prop-types' import { Panel } from 'react-bootstrap' import {CirclePicker } from 'react-color'; import './@ChartTypePicker.css' const ChartTypePicker = ({chartTypes, chartType, onChange, onChangeChartColor, isGroupBy}) => { let options = chartTypes.map((type, idx) => ...
app/components/Seat/index.js
VonIobro/ab-web
/** * Created by jzobro 20170517 */ import React from 'react'; import PropTypes from 'prop-types'; import Seat from './Seat'; import ButtonJoinSeat from './ButtonJoinSeat'; import ButtonOpenSeat from './ButtonOpenSeat'; import { STATUS_MSG } from '../../app.config'; const SeatComponent = (props) => { const { is...
app/containers/AboutContainer.js
orballo/game-of-life
'use strict' import React from 'react' import About from '../components/About.js' const AboutContainer = React.createClass({ getInitialState() { return { isAboutHidden: true } }, componentDidMount() { window.addEventListener('keydown', (e) => { if (e.keyCode === 73) { ...
collect-webapp/frontend/src/common/components/ValidationTooltip.js
openforis/collect
import React from 'react' import { UncontrolledTooltip } from 'reactstrap' import classnames from 'classnames' import PropTypes from 'prop-types' import Validation from 'model/Validation' const ValidationTooltip = (props) => { const { validation, target } = props const { errorMessage, warningMessage } = validatio...
src/encoded/static/components/static-pages/StatisticsPageView.js
hms-dbmi/fourfront
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import _ from 'underscore'; import { memoizedUrlParse } from '@hms-dbmi-bgm/shared-portal-components/es/components/util'; import StaticPage from './StaticPage'; const dynamicImports = {}; export default class StatisticsPageView extends R...
src/client/components/shared/Header/Header.js
JoeKarlsson/react-redux-boilerplate
import React from 'react'; import { NavLink, } from 'react-router-dom'; import './Header.scss'; const activeStyles = { color: 'red', }; const Header = () => { return ( <div className="header_bar"> <header> <NavLink className="header_logo" to="/">Home</NavLink> <ul className="header_nav" role="navigati...
docs/components/components/CardDocumentation.js
nikgraf/belle
import React, { Component } from 'react'; import { Card } from 'belle'; import Code from '../Code'; const basicCodeExample = `<!-- basic card example --> <Card style={{ borderTop: '1px solid #f2f2f2' }}> Add any content here like paragraphs, images or other components … </Card>`; const imageCodeExample = `<!-- imag...
packages/react-scripts/fixtures/kitchensink/template/src/features/syntax/Promises.js
jdcrensh/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load() { return Promise.resolve([ { id: 1,...
src/Main/Fight.js
mwwscott0/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SkullIcon from 'Icons/Skull'; import CancelIcon from 'Icons/Cancel'; import DIFFICULTIES from 'common/DIFFICULTIES'; import ProgressBar from './ProgressBar'; const formatDuration = (duration) => { const seconds = Math.floor(duration % 60); re...
docs/src/app/components/pages/components/Badge/ExampleContent.js
w01fgang/material-ui
import React from 'react'; import Badge from 'material-ui/Badge'; import IconButton from 'material-ui/IconButton'; import UploadIcon from 'material-ui/svg-icons/file/cloud-upload'; import FolderIcon from 'material-ui/svg-icons/file/folder-open'; const BadgeExampleContent = () => ( <div> <Badge badgeContent...
app/javascript/mastodon/features/public_timeline/index.js
mstdn-jp/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader fro...
examples/counter/WrangledCounter.js
limscoder/react-wrangler
import React from 'react'; import Path from '../../src/Path'; import Counter from './Counter'; const counterPath = 'counter.current'; function LoadingCounter(props) { return ( <div style={{ margin: '20px' }}> { typeof props.count === 'undefined' ? <span>simulating async operation...</spa...
src/main.js
dannyrdalton/example_react_redux_form_builder
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import AppContainer from './containers/AppContainer' // ======================================================== // Store Instantiation // ======================================================== const initialState...
client/util/react-intl-test-helper.js
Hitzk0pf/BetterBackPacking
/** * Components using the react-intl module require access to the intl context. * This is not available when mounting single components in Enzyme. * These helper functions aim to address that and wrap a valid, * English-locale intl context around them. */ import React from 'react'; import { IntlProvider, intlSha...
app/routes.js
arixse/ReactNeteaseCloudMusic
import React from 'react'; import { Router, Route, IndexRoute, Redirect } from 'react-router'; import Cloud from './containers/Cloud'; import CloudDetail from './containers/CloudDetail'; import SearchBar from './containers/SearchBar'; import PlayDetail from './containers/PlayDetail'; import Header from './containers/He...
templates/frontOffice/modern/components/React/ErrorBoundary/index.js
lopes-vincent/thelia
import Alert from '../Alert'; import React from 'react'; export default class ErrorBoundary extends React.Component { constructor() { super(); this.state = { error: null }; } componentDidCatch(error) { console.error(error); this.setState({ error }); } render() { if (this.state.error) { if (type...
srcjs/components/notification.js
spapas/react-tutorial
import React from 'react'; import { Notification } from 'react-notification'; import { connect } from 'react-redux' import { hideNotification } from '../actions' import * as colors from '../util/colors' const NotificationContainer = (props) => { let { message, notification_type } = props.notification; let { ...
app/javascript/mastodon/features/notifications/components/notification.js
PlantsNetwork/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import StatusContainer from '../../../containers/status_container'; import AccountContainer from '../../../containers/account_container'; import { FormattedMessage } from 'react-intl'; import Perma...
demo/layout/Higlight.js
f0zze/rosemary-ui
import hljs from 'highlight.js'; import React from 'react'; import ReactDOM from 'react-dom'; const Highlight = React.createClass({ getDefaultProps: function() { return { innerHTML: false, className: null }; }, componentDidMount: function() { this.highlightCo...
sample-app/src/App.js
opentok/accelerator-core-js
/* Let CRA handle linting for sample app */ import React, { Component } from 'react'; import Spinner from 'react-spinner'; import classNames from 'classnames'; import 'opentok-solutions-css'; import Core from './ot-core/core'; import logo from './logo.svg'; import config from './config.json'; import './App.css'; let...
packages/reactor-tests/src/tests/rel/RelDialog.js
markbrocato/extjs-reactor
import React, { Component } from 'react'; import { Dialog, Button } from '@extjs/ext-react'; export default class RelDialog extends Component { state = { displayed: true } close = () => { this.setState({ displayed: false }); } render() { return ( <Dialog itemI...
information/blendle-frontend-react-source/app/containers/navigation/NavigationBarContainer.js
BramscoChill/BlendleParser
import React, { Component } from 'react'; import altConnect from 'higher-order-components/altConnect'; import { isExpired } from 'selectors/subscriptions'; import DefaultNavigationBar from 'components/navigation/DefaultNavigationBar'; import AuthStore from 'stores/AuthStore'; import ModuleNavigationStore from 'stores/M...
src/components/TrendAnalysis/SearchSiteSelect.js
wrleskovec/thoughtcrime
import React from 'react'; import _ from 'lodash'; export default class SearchSiteSelect extends React.Component { constructor(props) { super(props); this.onFocus = this.onFocus.bind(this); this.onBlur = this.onBlur.bind(this); this.onSelectSite = this.onSelectSite.bind(this); this.onKeyUp = _.de...