path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/javascript/mastodon/features/compose/components/search.js
3846masa/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; const messages = defineMessages({ placeholder: { id: 'search.placeholder', defaultMessage: 'Search' }, }); class Search extends React.PureComponent { static propTypes = { ...
src/routes/withTracker.js
wearepush/redux-starter
import React, { Component } from 'react'; import { object } from 'prop-types'; import GoogleAnalytics from 'react-ga'; const googleAnaliticsId = process.env?.GOOGLE_ANALITICS_ID; if (googleAnaliticsId) { GoogleAnalytics.initialize(googleAnaliticsId); } export default function withTracker(WrappedComponent, options ...
src/components/MyMainMenu.js
fredrikku/rikku-grommet-react-sample
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import MenuIcon from 'grommet/components/icons/base/Menu'; import Anchor from 'grommet/components/Anchor'; import Menu from 'grommet/components/Menu'; import Box from 'grommet/components/Box'; const MainMenu = (props)...
node_modules/@material-ui/core/esm/Link/Link.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 clsx from 'clsx'; import { capitalize } from '../utils/helpers'; import withStyles from '../styles/withStyle...
src/svg-icons/image/colorize.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageColorize = (props) => ( <SvgIcon {...props}> <path d="M20.71 5.63l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3...
src/components/login/LoginForm.js
hugofrely/chat-react-redux
import React from 'react'; import TextInput from '../common/TextInput'; const LoginForm = ({user, onSave, onChange, saving}) => { return ( <form> <h1>Login</h1> <TextInput name="email" label="Email" onChange={onChange} value={user.email} /> <TextInput ...
frontend/src/Settings/MediaManagement/RootFolder/EditRootFolderModal.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React from 'react'; import Modal from 'Components/Modal/Modal'; import EditRootFolderModalContentConnector from './EditRootFolderModalContentConnector'; function EditRootFolderModal({ isOpen, onModalClose, ...otherProps }) { return ( <Modal isOpen={isOpen} o...
src/buttons/Button.js
kosiakMD/react-native-elements
import PropTypes from 'prop-types'; import React from 'react'; import { TouchableNativeFeedback, TouchableHighlight, StyleSheet, View, Platform, ActivityIndicator, Text as NativeText, } from 'react-native'; import colors from '../config/colors'; import Text from '../text/Text'; import MaterialIcon from 'r...
src/routes/index.js
cmosguy/react-redux-auth0
/** * 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 App from '../components/...
src/js/components/tool-header.js
pfb3cn/react_bootcamp_exercise
import React from 'react'; export class ToolHeader extends React.Component { static propTypes = { header: React.PropTypes.string }; render() { return <h1>Color Tool</h1>; } }
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js
kibousoft/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components'; import Overlay from 'react-overlays/lib/Overlay'; import classNames from 'classnames'; import ImmutablePropTypes from ...
code/frontend/src/components/Dashboard/index.js
CPSC319-2017w1/coast.the-terminal
import React from 'react'; import PropTypes, { instanceOf } from 'prop-types'; import { connect } from 'react-redux'; import { withCookies, Cookies } from 'react-cookie'; import DashboardComponent from './Dashboard.jsx'; import { switchView } from '../../actions/main-actions.js'; const mapStateToProps = state => { r...
src/js/view/LoginForm.js
marqusm/react-client-template
import React from 'react'; import {Field, reduxForm} from 'redux-form'; import {RaisedButton} from "material-ui"; import {TextField} from "redux-form-material-ui"; class LoginForm extends React.Component { componentDidMount() { this.ref // the Field .getRenderedComponent() // on Field, returns ReduxFormMate...
src/Xword.js
bcopeland/xwordjs
// @flow import React, { Component } from 'react'; import Modal from 'react-modal'; import FileInput from './FileInput.js'; import Server from './Server.js'; import Cell from './Cell.js'; import Clues from './Clues.js'; import Loading from './Loading.js'; import {TimerState, Timer} from './Timer.js'; import { Route, Sw...
app/containers/Home.js
sandim27/ReduxApp
import React, { Component } from 'react'; import { Button } from 'react-bootstrap'; import UploadBlock from '../components/UploadBlock'; export default class Home extends Component { constructor(props){ super(props); this.state = { newNamePhoto: '', newPhoto: {}, activeName: true, }; ...
src/components/title/Title.js
jshack3r/ws-redux-counters-router
import React from 'react' class Title extends React.Component { constructor(props) { super(props) } componentDidMount() { this.props.onLoad() } render() { let { onClick } = this.props return <h2 className="text-muted" onClick={onClick} style={{cursor:'pointer'}}>Redux Counters</h2> } } Tit...
client/components/App.js
Kamill90/Dental
import React from 'react'; import NavigationBar from './client/NavigationBar'; export default ({ children }) => { return( <div> <NavigationBar/> <div className="container">{children}</div> </div> ) };
packages/react-error-overlay/src/containers/StackFrame.js
appier/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. */ /* @flow */ import React, { Component } from 'react'; import CodeBlock from './StackFrameCodeBlock'; import { getPrettyURL } from '../ut...
resources/assets/js/components/AppComponent.js
jrm2k6/i-heart-reading
import React, { Component } from 'react'; import { fetchUser } from '../actions/userProfileActions'; import { hideModal } from '../actions/modals/modalActions'; import { connect } from 'react-redux'; import Modal from 'react-modal'; import LateralMenu from './LateralMenu'; import AlertsComponent from './AlertsComponent...
app/javascript/mastodon/components/admin/ReportReasonSelector.js
musashino205/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import api from 'mastodon/api'; import { injectIntl, defineMessages } from 'react-intl'; import classNames from 'classnames'; const messages = defineMessages({ other: { id: 'report.categories.other', defaultMessage: 'Other' }, spam: { id: 'report.categ...
app/javascript/mastodon/features/list_adder/components/list.js
gol-cha/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import IconButton from '../../../components/icon_button'; import { defineMessages, inject...
client/src/app/components/voice-control/components/SpeechButton.js
zraees/sms-project
import React from 'react' import {Popover, OverlayTrigger} from 'react-bootstrap' import {bindActionCreators} from 'redux' import * as VoiceActions from '../VoiceActions' import {connect} from 'react-redux'; import SpeechHelp from './SpeechHelp' class SpeechButton extends React.Component { hidePopover = ()=> { ...
hit-the-road-react/src/components/RentalsMap.prev.js
buckmelton/hit-the-road
import React, { Component } from 'react'; // import GoogleApiComponent from 'google-maps-react'; import '../css/App.css'; import '../css/normalize.css'; import '../css/skeleton.css'; // Google Maps API key: AIzaSyCFwE9ezzuQGddycwRrZ1K3BvRzFVQGvvg const __GAPI_KEY__ = "AIzaSyCFwE9ezzuQGddycwRrZ1K3BvRzFVQGvvg"; class R...
client/src/components/layouts/Sidebar.js
banderson/reactive-stock-ticker-demo
import React from 'react'; export default ({children}) => ( <aside className="col-xs-3"> {children} </aside> );
modules/dreamview/frontend/src/components/DefaultRouting/CycleNumberInput.js
ApolloAuto/apollo
import React from 'react'; import _ from 'lodash'; import CheckboxItem from 'components/common/CheckboxItem'; export default class CycleNumberInput extends React.Component { constructor(props) { super(props); this.state = { cycleNumber: 1, isCycling: false, }; this.sendCycleDefaultRouti...
src/svg-icons/action/theaters.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTheaters = (props) => ( <SvgIcon {...props}> <path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"/> </SvgI...
react/JobCard/components/SellingPoint/SellingPoint.js
seekinternational/seek-asia-style-guide
import React from 'react'; import PropTypes from 'prop-types'; import styles from './SellingPoint.less'; import Text from '../../../Text/Text'; const SellingPoint = ({ sellingPoints, showSellingPoint }) => { if (!showSellingPoint || !sellingPoints) { return null; } return ( <ul className={styles.selling...
src/main.js
warcraftlfg/warcrafthub-client
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import AppContainer from './containers/AppContainer' // ======================================================== // Store Instantiation // ======================================================== const initialState...
fields/types/text/TextColumn.js
dvdcastro/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var TextColumn = React.createClass({ displayName: 'TextColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, linkTo: React.PropType...
client/components/FlassCommon/Video/VideoTimePanel/VideoTimePanelComponent.js
Nexters/flass
import React from 'react'; import PropTypes from 'prop-types'; import VideoDurationComponent from '../VideoDurationComponent'; import './VideoTimePanelComponentStyles.scss'; const propTypes = { duration: PropTypes.number.isRequired, elapsed: PropTypes.number.isRequired }; const defaultProps = { }; const VideoT...
src/svg-icons/action/view-stream.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewStream = (props) => ( <SvgIcon {...props}> <path d="M4 18h17v-6H4v6zM4 5v6h17V5H4z"/> </SvgIcon> ); ActionViewStream = pure(ActionViewStream); ActionViewStream.displayName = 'ActionViewStream'; Acti...
src/docs/components/LabelDoc.js
karatechops/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Label from 'grommet/components/Label'; import Anchor from 'grommet/components/Anchor'; import DocsArticle from '../../components/DocsArticle'; import Code from '../../components/Code'; Label.displayNa...
src/components/TabContent/TabContent.js
joshblack/carbon-components-react
/** * 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'; const TabContent = props => { const { selected, children, ...other } = prop...
frontend/src/components/SearchBar.js
OwenRay/Remote-MediaServer
/* eslint-disable no-underscore-dangle */ /** * Created by owenray on 19/07/2017. */ import React, { Component } from 'react'; import { Button, Icon, Input, Row } from 'react-materialize'; import { deserialize } from 'redux-jsonapi'; import store from '../helpers/stores/settingsStore'; class SearchBar extends Compo...
src/components/Input.js
abdulhannanali/github-organization-repos
import React from 'react'; import classnames from 'classnames'; import '../styles/Input.css'; const Input = (props) => { const classNames = classnames(['form-control', 'Input']); return ( <div className="form-group"> <input type="text" className={classNames} maxLength="39" {...props} ...
Agenda/src/components/esqueciSenha.js
interlegis/agenda-evento
import React, { Component } from 'react'; import { reduxForm } from 'redux-form'; import _ from 'lodash'; import { recuperarSenha } from '../actions'; import { FIELD_ESQUECI_SENHA } from './forms/fields_types'; class EsqueciSenha extends Component{ handleSubmitForm({ email }){ this.props.recuperarSenha({ email }...
shopping-cart-app/src/components/routes/AddNewStore/AddNewStore.js
JCFlores/shoppingCart
import React, { Component } from 'react'; import Header from '../../Header'; import AddNewStoreAction from './AddNewStoreAction' import './AddNewStore.css'; class Signup extends Component { constructor(props) { super(props); console.log(props); this.state = { storeName: '', description:...
js/jqwidgets/demos/react/app/grid/foreignkeycolumn/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; class App extends React.Component { render() { let employeesSource = { datatype: 'xml', datafields: [ { name: 'First...
src/components/DropdownButton/DropdownButton.stories.js
InsideSalesOfficial/insidesales-components
import React from 'react'; import { storiesOf } from '@storybook/react'; import DropdownButton from './DropdownButton'; import Icons from '../icons'; import { wrapComponentWithContainerAndTheme, colors } from "../styles"; const SFIcon = Icons.ColoredSalesforceIcon; const buttonAction = (selectedOption) => { alert(...
src/components/routeToTab1.js
dfw-chris-diaz/react-demo
import React from 'react'; import MainPage from './mainPage'; const defaultTab = 1; export default function RouteToTab1(){ return( <MainPage defaultTab={defaultTab} /> ); }
node_modules/react-bootstrap/es/Grid.js
ASIX-ALS/asix-final-project-frontend
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
examples/cra/src/components/Placeholder.js
bluetidepro/react-styleguidist
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import './Placeholder.css'; /** * Image placeholders. */ export default class Placeholder extends Component { static propTypes = { type: PropTypes.oneOf([ 'animal', 'bacon', 'beard', 'bear', 'cat', 'food', 'city', ...
src/components/footer.js
ninalouw/portfolio
import React, { Component } from 'react'; import { Link } from 'react-router'; import FontAwesome from 'react-fontawesome'; import FontIcon from 'material-ui/FontIcon'; import {red500, yellow500, blue500} from 'material-ui/styles/colors'; import {Row, Col} from 'react-materialize'; class Footer extends Component { ...
src/modules/Input/components/SocketSettings/index.js
ruebel/synth-react-redux
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import styled from 'styled-components'; import Button from '../../../components/Button'; import ButtonGroup from '../../../components/ButtonGroup'; import Close from '../../../components/icons/Close'; import Gear from ...
src/components/AppContent/index.js
currency-cop/currency-cop
import React from 'react' class AppContent extends React.Component { componentDidMount() { this.screen = this.props.screenAction } componentDidUpdate() { if (this.props.screenAction != this.screen) { this._div.scrollTop = 0 this.screen = this.props.screenAction } } render () { l...
src/components/layout/Layout.js
gribnoysup/diy-dog-search
import React from 'react' import styled from 'styled-components' import {fontFamilyMonospace} from '../common/Typography' export const Container = styled.div` width: 100%; height: 100%; display: flex; flex-direction: column; ` Container.displayName = 'Container' const HeaderDiv = styled.div` color: #ffffff...
app/src/App.js
sfelderman/inverted-index
import React, { Component } from 'react'; import DragSubmit from './DragSubmit'; import SearchBar from './search/SearchBar'; import DisplaySearch from './display/DisplaySearch'; import styles from './App.css'; class App extends Component { render() { return ( <div style={styles}> <DragSubmit /> ...
example/story.js
yangshun/react-storybook-addon-chapters
import { storiesOf } from '@storybook/react'; import React from 'react'; import Button from './Button'; storiesOf('Addon Chapters', module) .addWithChapters( 'Story With Chapters', { useTheme: false, subtitle: 'Display multiple components within one story!', info: ` React Storybook Chapters a...
source/components/DataHandler/DataHandler.js
cloud-walker/react-inspect
import React from 'react' import is from 'ramda/src/is' import pipe from 'ramda/src/pipe' import addIndex from 'ramda/src/addIndex' import map from 'ramda/src/map' import keys from 'ramda/src/keys' import stripFunction from '../../utils/stripFunction' import Level from '../Level' import Punctuation from '../Punctuatio...
fluent-react/examples/async-messages/src/index.js
zbraniecki/fluent.js
import React from 'react'; import ReactDOM from 'react-dom'; import { AppLocalizationProvider } from './l10n'; import App from './App'; ReactDOM.render( <AppLocalizationProvider userLocales={navigator.languages}> <App /> </AppLocalizationProvider>, document.getElementById('root') );
src/svg-icons/hardware/keyboard-tab.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardTab = (props) => ( <SvgIcon {...props}> <path d="M11.59 7.41L15.17 11H1v2h14.17l-3.59 3.59L13 18l6-6-6-6-1.41 1.41zM20 6v12h2V6h-2z"/> </SvgIcon> ); HardwareKeyboardTab = pure(HardwareKeyboard...
src/components/Svg/Expand.js
bibleexchange/be-front-new
import React from 'react'; class Expand extends React.Component { render() { return ( <svg className='expand' x='0' y='0' viewBox='0, 0,250, 250'> <g transform="translate(1.05932,1.0593224)"> <path d="M 15.217893,234.60694 12.5,231.71388 l 0,-82.10694 C 12.5,69.166666 12.550746,67....
app/components/FunctionTestForm/requestBodyBuilder.js
fission/fission-ui
/** * * RequestBodyBuilder * */ import React from 'react'; import AceEditor from 'react-ace'; import 'brace/mode/json'; import 'brace/mode/xml'; import 'brace/mode/plain_text'; import 'brace/theme/monokai'; class RequestBodyBuilder extends React.Component { // eslint-disable-line react/prefer-stateless-function ren...
src/views/AboutView.js
dapplab/babel-client
import React from 'react'; import { Link } from 'react-router'; const AboutView = () => ( <div className='container text-center'> <h1>This is the about view!</h1> <hr /> <Link to='/'>Back To Home View</Link> </div> ); export default AboutView;
src/LearnWordsFast/Client/js/components/ChangeLanguages.js
drussilla/LearnWordsFast
import React from 'react'; import Reflux from 'reflux'; import _ from 'lodash'; import {Input, Button, Panel} from 'react-bootstrap'; import {UserSettingsStore, UserSettingsActions} from '../stores/UserSettingsStore'; import {LanguagesStore, LanguagesActions} from '../stores/LanguagesStore'; const ChangeLanguages = Re...
app/components/TemplateItemComponent.js
okmttdhr/pull-request-templates
import React from 'react'; import { Link } from 'react-router' import classNames from 'classnames' import TemplateActions from '../actions/TemplateActions' class TemplateItemComponent extends React.Component { static propTypes = { template: React.PropTypes.object.isRequired }; static defaultProps = {}; ...
examples/05 Customize/Handles and Previews/Container.js
arnif/react-dnd
import React, { Component } from 'react'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd/modules/backends/HTML5'; import BoxWithImage from './BoxWithImage'; import BoxWithHandle from './BoxWithHandle'; @DragDropContext(HTML5Backend) export default class Container extends Component { ...
app/javascript/mastodon/features/compose/components/warning.js
theoria24/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; export default class Warning extends React.PureComponent { static propTypes = { message: PropTypes.node.isRequired, }; render () { const { mes...
src/parser/deathknight/blood/modules/core/DeathsCaress.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS/index'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import SpellUsable from 'parser/shared/modules/SpellUsable'; const RANGE_WHERE_YOU_SHOULDNT_DC = 12; // yrd clas...
frontend/app/index.js
briancappello/flask-react-spa
import 'babel-polyfill' // this must come before everything else otherwise style cascading doesn't work as expected import 'main.scss' import { AppContainer as HotReloadContainer } from 'react-hot-loader' import React from 'react' import ReactDOM from 'react-dom' import createBrowserHistory from 'history/createBrowse...
examples/js/column/column-align-table.js
neelvadgama-hailo/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
src/components/header/Palette.js
numb86/image-editor
// @flow import React from 'react'; import {DRAW_LINE} from '../actionLayer/ActionLayer'; import type {ActionLayerName} from '../actionLayer/ActionLayer'; import type {ChangeableActionLayerSettings} from '../../state/generateActionLayerSettings'; const COLOR_LIST = [ '#000', // 黒 '#fff', // 白 '#f00', // 赤 '#...
frontend/src/components/submitcast/CastRoleInput.js
tdv-casts/website
// @flow import React from 'react'; import PropTypes from 'prop-types'; import { Card, CardHeader, CardText, CardActions } from 'material-ui/Card'; import Chip from 'material-ui/Chip'; import FlatButton from 'material-ui/FlatButton'; import FastForward from 'material-ui/svg-icons/av/fast-forward'; import Done from 'm...
packages/veritone-widgets/src/widgets/EngineSelection/EngineListView/EngineListContainer/EngineSelectionRow/index.js
veritone/veritone-sdk
import React from 'react'; import { connect } from 'react-redux'; import { bool, object, func, string, shape, any } from 'prop-types'; import { get } from 'lodash'; import { Lozenge, Truncate } from 'veritone-react-common'; import { modules } from 'veritone-redux-common'; const { engine: engineModule } = modules; im...
packages/cockpit/ui/src/components/Layout.js
iurimatias/embark-framework
import React from 'react'; import {NavLink as RNavLink} from 'react-router-dom'; import {Link, withRouter} from 'react-router-dom'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import { UncontrolledTooltip, DropdownItem, DropdownMenu, DropdownToggle, Nav, NavItem, NavLink, Co...
app/components/Home.js
mswiszcz/pagebuilder
// @flow import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './Home.css'; import Card from './Home/Card'; import Header from './common/Header'; import moment from 'moment'; import { PROJECT_DATE_FORMAT } from '../model/project'; import { STATUS } from '../reducers/gatsby...
resources/assets/js/components/SearchBookComponent.js
jrm2k6/i-heart-reading
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { browserHistory } from 'react-router'; import { runSearch } from '../actions/searchActions'; import { createAssignment } from '../actions/crudActions'; import { showModal } from '../actions/modals/modalActions'; import BookDetailsM...
frontend/src/components/partners/profile/modals/addVerificationModal/verificationQuestion.js
unicef/un-partner-portal
import React from 'react'; import { withStyles } from 'material-ui/styles'; import PropTypes from 'prop-types'; import Typography from 'material-ui/Typography'; import SpreadContent from '../../../../common/spreadContent'; import PolarRadio from '../../../../forms/fields/PolarRadio'; import TextForm from '../../../../f...
modules/Common/SearchBox.js
cloudytimemachine/frontend
import React from 'react' import { Link } from 'react-router' import { browserHistory } from 'react-router' export default React.createClass({ getInitialState: function() { return { url: '' }; }, handleURLChange: function(e) { this.setState({ url: e.target.value }); }, contextTypes: { router: Rea...
src/index.js
miraks/react-autolink-text
import React from 'react'; import shouldPureComponentUpdate from 'react-pure-render/function'; import matchParser from './match_parser'; export default class AutoLinkText extends React.Component { shouldComponentUpdate = shouldPureComponentUpdate render() { const text = this.props.text; const target = th...
packages/web/src/components/Account/Forgot.js
hengkx/note
import React from 'react'; import PropTypes from 'prop-types'; import { Form, Input, message, Button } from 'antd'; import { Link } from 'react-router-dom'; import './less/account.less'; const FormItem = Form.Item; class Forgot extends React.Component { static propTypes = { form: PropTypes.object.isRequired, ...
src/svg-icons/image/gradient.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageGradient = (props) => ( <SvgIcon {...props}> <path d="M11 9h2v2h-2zm-2 2h2v2H9zm4 0h2v2h-2zm2-2h2v2h-2zM7 9h2v2H7zm12-6H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 18H7v-2h2v2z...
node_modules/react-router/es/Prompt.js
lousanna/sinatrademo
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
src/components/ResetPasswordForm.js
react-auth/react-auth
import React from 'react'; import { Link } from 'react-router'; import utils from '../utils'; import LoginLink from '../components/LoginLink'; import { forgotPassword } from '../actions'; class DefaultResetPasswordForm extends React.Component { render() { return ( <ResetPasswordForm {...this.props}> ...
client/containers/SignUpContainer.js
axax/lunuc
import React from 'react' import PropTypes from 'prop-types' import config from 'gen/config-client' import BlankLayout from 'client/components/layout/BlankLayout' import {Link} from 'client/util/route' import {Card, SimpleButton, TextField, Row, Col, Typography} from 'ui/admin' import {client} from '../middleware/graph...
src/index.js
Aleczhang1992/gallery-by-react
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'));
demo/components/TodosList.js
bradparks/cerebral__web_app_state_with_debugger
import React from 'react'; import Todo from './Todo.js'; import {Decorator as Cerebral} from 'cerebral-react'; @Cerebral({ todos: ['visibleTodos'], isAllChecked: ['isAllChecked'] }) class TodosList extends React.Component { renderTodo(todo, index) { return <Todo key={index} index={index} todo={todo}/> } ...
actor-apps/app-web/src/app/components/modals/Preferences.react.js
hmoraes/actor-platform
import _ from 'lodash'; import React from 'react'; import Modal from 'react-modal'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, FlatButton, RadioButtonGroup, RadioButton, DropDownMenu } from 'material-ui'; import { KeyCodes } from 'constants/ActorAp...
src/components/build_panel.js
RexSkz/drone-ui
import Humanize from './humanize'; import React from 'react'; import TimeAgo from 'react-timeago'; import zhStrings from 'react-timeago/lib/language-strings/zh-CN' import buildFormatter from 'react-timeago/lib/formatters/buildFormatter' import './build_panel.less'; export default class BuildPanel extends React.Compon...
admin/client/App/elemental/ScreenReaderOnly/index.js
rafmsou/keystone
import React from 'react'; import { css, StyleSheet } from 'aphrodite/no-important'; function ScreenReaderOnly ({ className, ...props }) { props.className = css(classes.srOnly, className); return <span {...props} />; }; const classes = StyleSheet.create({ srOnly: { border: 0, clip: 'rect(0,0,0,0)', height: ...
src/pages/404.js
EricSSartorius/homepage
import React from 'react' const NotFoundPage = () => ( <div className="not-found"> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </div> ) export default NotFoundPage
packages/mcs-lite-mobile-web/src/containers/DeviceDetailInfo/DeviceDetailInfo.js
MCS-Lite/mcs-lite
import PropTypes from 'prop-types'; import React from 'react'; import Helmet from 'react-helmet'; import B from 'mcs-lite-ui/lib/B'; import P from 'mcs-lite-ui/lib/P'; import MobileHeader from 'mcs-lite-ui/lib/MobileHeader'; import { updatePathname } from 'mcs-lite-ui/lib/utils/routerHelper'; import IconArrowLeft from ...
app/src/index.js
NomadGraphix/csc-final-project-2017
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; function main() { const app = document.createElement('div'); document.body.appendChild(app); ReactDOM.render(<App />, app); } main();
packages/mineral-ui-icons/src/IconNaturePeople.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 IconNaturePeople(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconP...
stories/Pagination.stories.js
react-materialize/react-materialize
import React from 'react'; import { storiesOf } from '@storybook/react'; import Pagination from '../src/Pagination'; const stories = storiesOf('Components/Pagination', module); stories.addParameters({ info: { text: `Add pagination links to help split up your long content into shorter, easier to understand block...
modules/experiences/client/components/create-experience/SubmittedInfo.js
Trustroots/trustroots
// External dependencies import { useTranslation, Trans } from 'react-i18next'; import PropTypes from 'prop-types'; import React from 'react'; // Internal dependencies import '@/config/client/i18n'; import { DAYS_TO_REPLY } from '../../utils/constants'; import SuccessMessage from '@/modules/core/client/components/Succ...
js/components/App.js
sogko/todomvc-relay-go
import React from 'react'; import Relay from 'react-relay'; class App extends React.Component { render() { return ( <div> <h1>Widget list</h1> <ul> {this.props.viewer.widgets.edges.map(edge => <li>{edge.node.name} (ID: {edge.node.id})</li> )} </ul> ...
docs/src/PageFooter.js
mcraiganthony/react-bootstrap
import React from 'react'; import packageJSON from '../../package.json'; let version = packageJSON.version; if (/docs/.test(version)) { version = version.split('-')[0]; } const PageHeader = React.createClass({ render() { return ( <footer className='bs-docs-footer' role='contentinfo'> <div c...
src/inputs/components/input-types/select-input.js
juttle/juttle-client-library
import React, { Component } from 'react'; import Select from 'react-select'; class SelectInput extends Component { handleChange(chosenOption) { this.props.inputUpdate(chosenOption.value); } render() { let { value, options } = this.props.input; return ( <div className="f...
fields/types/email/EmailColumn.js
codevlabs/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/client/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTableValue'; var EmailColumn = React.createClass({ displayName: 'EmailColumn', propTypes: { col: React.PropTypes.object, data: React.PropType...
examples/sidebar/app.js
okcoker/react-router
import React from 'react'; import { Router, Route, Link } from 'react-router'; import data from './data'; var Category = React.createClass({ render() { var category = data.lookupCategory(this.props.params.category); return ( <div> <h1>{category.name}</h1> {this.props.children || ( ...
src/CheckboxGroup.js
jsummer/react-ui
"use strict" import React from 'react' import classnames from 'classnames' import Checkbox from './Checkbox' import { toArray } from './utils/strings' import { toTextValue } from './utils/objects' class CheckboxGroup extends React.Component { static displayName = "CheckboxGroup" static propTypes = { classNam...
docs/app/Examples/collections/Form/Variations/FormExampleInverted.js
shengnian/shengnian-ui-react
import React from 'react' import { Button, Form, Segment } from 'shengnian-ui-react' const FormExampleInverted = () => ( <Segment inverted> <Form inverted> <Form.Group widths='equal'> <Form.Input label='First name' placeholder='First name' /> <Form.Input label='Last name' placeholder='Last ...
src/App/App.js
mdboop/francis
import React from 'react'; import Nav from '../Nav/Nav'; class App extends React.Component { constructor(props) { super(props); this.state = {}; } render() { return ( <div> <Nav /> {this.props.children} </div> ); } } App.propTypes = { children: React.PropTypes.ele...
src/components/Portal.js
neontribe/gbptm
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; const Portal = (props) => { // https://github.com/facebook/react/issues/13097#issuecomment-405658104 const [isMounted, setIsMounted] = React.useState(false); const element = document.querySelector(props.selector); ...
packages/examples/regithub/pages/home.js
siddharthkp/reaqt
import React from 'react' import Nav from '../components/presentation/common/nav' import ProfileInput from '../components/presentation/profile/profile-input' export default () => ( <div> <Nav /> <ProfileInput /> </div> )
docs/src/PageHeader.js
collinwu/react-bootstrap
import React from 'react'; const PageHeader = React.createClass({ render() { return ( <div className='bs-docs-header' id='content'> <div className='container'> <h1>{this.props.title}</h1> <p>{this.props.subTitle}</p> </div> </div> ); } }); export default Pag...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/Promises.js
GreenGremlin/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,...
actor-apps/app-web/src/app/components/JoinGroup.react.js
lstNull/actor-platform
import React from 'react'; import requireAuth from 'utils/require-auth'; import DialogActionCreators from 'actions/DialogActionCreators'; import JoinGroupActions from 'actions/JoinGroupActions'; import JoinGroupStore from 'stores/JoinGroupStore'; // eslint-disable-line class JoinGroup extends React.Component { st...
docs/app/Examples/collections/Form/Shorthand/FormExampleFieldControlId.js
shengnian/shengnian-ui-react
import React from 'react' import { Form, Input, TextArea, Button } from 'shengnian-ui-react' const FormExampleFieldControlId = () => ( <Form> <Form.Group widths='equal'> <Form.Field id='form-input-control-first-name' control={Input} label='First name' placeholder='First name' /> <Form.Field id='form-...