path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/browser/user/user.js
zhangxin840/badge-box
import utils from '../common/utils'; import React from 'react'; import ReactDOM from 'react-dom'; import s from './user.scss'; class Hello extends React.Component { render() { return <h1>Hello</h1>; } } ReactDOM.render(<Hello />, document.getElementById('test'));
src/shared/MultiSelect.js
cityofasheville/simplicity2
import React from 'react'; import PropTypes from 'prop-types'; import { Select, Trigger, OptionList, Option, utils } from 'selectly/lib/Selectly'; const { getToggledValues } = utils; // inspired by http://codepen.io/souporserious/pen/vGRZQL const CheckboxOption = props => ( <Option className="react-select-option" v...
app/javascript/mastodon/components/media_gallery.js
Arukas/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { is } from 'immutable'; import IconButton from './icon_button'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { isIOS } from '../is_mobile'; import class...
node_modules/semantic-ui-react/src/modules/Sidebar/SidebarPushable.js
SuperUncleCat/ServerMonitoring
import cx from 'classnames' import PropTypes from 'prop-types' import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' /** * A pushable sub-component for Sidebar. */ function SidebarPushable(props) { const { className, children } = props const clas...
src/containers/app.js
onepiece8971/rememberNote
import {Provider} from 'react-redux'; import React from 'react'; // import RouterRoot from './routerRoot'; import Navigation from './navigation'; import configureStore from '../store/configureStore'; const store = configureStore(); export default App = () => ( <Provider store={store}> <Navigation /> </Provide...
src/docs/examples/RegistrationForm/ExampleRegistrationForm.js
emanualjade/react-jade
import React from 'react'; import RegistrationForm from 'ps-react/RegistrationForm'; export default class ExampleRegistrationForm extends React.Component { onSubmit = (user) => { console.log(user); } render() { return <RegistrationForm onSubmit={this.onSubmit} /> } }
fields/types/select/SelectColumn.js
belafontestudio/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var SelectColumn = React.createClass({ displayName: 'SelectColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.ob...
src/components/ContactMeBlurb/index.js
sjackson212/personal-site
import React from 'react'; import './index.css'; // ContactMeBlurb renders the text paragraph and link to resume function ContactMeBlurb() { const resumeLink = 'https://www.dropbox.com/s/5uhcyx8fvg57632/Samuel%20Jackson%20-%20Resume%20-%202017.pdf?dl=0'; const noLinkContent = ' (you’ll find my email and phone numb...
src/svg-icons/action/g-translate.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionGTranslate = (props) => ( <SvgIcon {...props}> <path d="M20 5h-9.12L10 2H4c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h7l1 3h8c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zM7.17 14.59c-2.25 0-4.09-1.83-4.09-4.09s1.83-4.09 4.09-4...
3-React-Basic-Click-Event/src/app/refresh.js
ekaaditiac/React-Basic-API
import React from 'react'; import ReactDOM from 'react-dom'; function randomPics () { // This function will randomly return either 'heads' or 'tails'. return Math.random() < 0.5 ? 'heads' : 'tails'; } var pics = { maddog: 'https://cdns.klimg.com/newshub.id/news/2016/05/16/60450/271754-gregetnya-mad-dog.jpg', ...
src/modules/todolist/main.js
shojib/react-seed
import React from 'react'; import { Link } from 'react-router-dom'; class TodoList extends React.Component { render() { return ( <div className="default-container"> TodoList <div className="dl"> <dt><Link to="/">Home</Link></dt> ...
src/views/MarkDown.js
JoJoChilly/joexp-react
import '@stylesheets/markdown.less'; import React, { Component } from 'react'; import showdown from 'showdown'; const converter = new showdown.Converter({ noHeaderId: true }); class MarkDown extends Component { constructor(props) { super(props); this.handleChange = this.handleChange.bind(this); ...
src/components/Character/Pools.js
ryanabragg/VanguardLARP
import React from 'react'; import PropTypes from 'prop-types'; import Pool from './Pool'; class Pools extends React.Component { constructor(props) { super(props); } render() { const rest = Object.assign({}, this.props); delete rest.source; delete rest.abilities; delete rest.viewDescription;...
src/App.js
kaifn/kaifn-page
import React, { Component } from 'react'; import 'bootstrap/dist/css/bootstrap.css'; import './styles/main.css'; import 'font-awesome/css/font-awesome.min.css'; import NavBar from './components/sections/NavBar'; import Header from './components/sections/Header'; import About from './components/sections/About'; import ...
src/index.js
Oritechnology/pubApp
import React from 'react' import { render } from 'react-dom' import { BrowserRouter as Router, Switch, Route } from 'react-router-dom' import { Provider } from 'react-redux' import Container from './components/app/App' import Home from './components/home/Home' import About from './components/about/About' import './ind...
js/jqwidgets/demos/react/app/buttons/fluidsize/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js'; import JqxCheckBox from '../../../jqwidgets-react/react_jqxcheckbox.js'; import JqxRadioButton from '../../../jqwidgets-react/react_jqxradiobutton.js'; import JqxDropDownButton from '../.....
lib/ImView.js
shemerey/im
'use babel'; import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { IntlProvider } from 'react-intl' import { setVisiable } from './redux/modules/isVisible' import App from '../components/App' export default class ImView { constructor({ store, teamLoader, imChann...
src/decorators/spaceable.js
wundery/wundery-ui-react
import React from 'react'; import { Spacing } from '../components/Spacing'; const spaceable = (Component) => { const SpaceableComponent = (props) => { const padding = props.padding; const margin = props.margin; if (margin || padding) { let intermediate = <Component {...props} />; if (paddin...
addons/background/src/Swatch.js
rhalff/storybook
import React from 'react'; import PropTypes from 'prop-types'; const style = { swatches: { backgroundColor: '#fff', textAlign: 'center', padding: '0', border: '1px solid rgba(0,0,0,0.1)', borderRadius: '4px', cursor: 'pointer', display: 'inline-block', width: '175px', verticalAlig...
src/js/components/Sidebar/Sidebar.js
grommet/grommet
import React from 'react'; import { Box } from '../Box'; import { SidebarPropTypes } from './propTypes'; export const Sidebar = ({ children, footer, header, ...rest }) => ( <Box pad="small" gap="large" height={{ min: '100%' }} {...rest}> {header} <Box flex>{children}</Box> {footer} </Box> ); Sidebar.p...
src/components/Clock.js
alphanumeric0101/pomodo-it
import React from 'react'; import Paper from 'material-ui/lib/paper'; import CircularProgress from 'material-ui/lib/circular-progress'; import Colors from 'material-ui/lib/styles/colors'; import IconButton from 'material-ui/lib/icon-button'; import PlayCircle from 'material-ui/lib/svg-icons/av/play-circle-outline'; im...
packages/netlify-cms-widget-date/src/DatePreview.js
netlify/netlify-cms
import React from 'react'; import PropTypes from 'prop-types'; import { WidgetPreviewContainer } from 'netlify-cms-ui-default'; function DatePreview({ value }) { return <WidgetPreviewContainer>{value ? value.toString() : null}</WidgetPreviewContainer>; } DatePreview.propTypes = { value: PropTypes.oneOfType([PropT...
node_modules/react-bootstrap/es/PageHeader.js
okristian1/react-info
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 ...
react-router-tutorial/lesson-6-reflection.js
guilsa/javascript-stuff
// Reflections/Commentary from Lesson 6 // Repos.js import React from 'React' // load React import { Link } from 'react-router' // load Link component in react-router export default React.createClass({ // create a component render({ // prepare render method return( <div> <h2>Repos</h2> <u...
react/features/speaker-stats/components/web/SpeakerStatsItem.js
jitsi/jitsi-meet
/* @flow */ import React from 'react'; import { Avatar, StatelessAvatar } from '../../../base/avatar'; import { getInitials } from '../../../base/avatar/functions'; import BaseTheme from '../../../base/ui/components/BaseTheme'; import { FACE_EXPRESSIONS } from '../../../face-landmarks/constants'; import TimeElapsed ...
actor-apps/app-web/src/app/components/dialog/TypingSection.react.js
Rogerlin2013/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import classNames from 'classnames'; import DialogStore from 'stores/DialogStore'; export default React.createClass({ mixins: [PureRenderMixin], getInitialState() { return { typing: null, show: false }; }, compon...
src/react/JSONTree/JSONNullNode.js
jackielii/redux-devtools
import React from 'react'; import reactMixin from 'react-mixin'; import { SquashClickEventMixin } from './mixins'; import hexToRgb from '../../utils/hexToRgb'; const styles = { base: { paddingTop: 3, paddingBottom: 3, paddingRight: 0, marginLeft: 14 }, label: { display: 'inline-block', ma...
ui/src/components/domain/CreateDomain.js
yahoo/athenz
/* * Copyright 2020 Verizon Media * * 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 t...
public/components/loadBalancerListEntry.js
mbresnan1701/project-ipsum
import React from 'react'; import ReactDom from 'react-dom'; import actions from '../actions/ipsumActions.js'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import request from '../util/restHelpers'; import _ from 'underscore'; import { Button, Panel, Grid, Row, Col, Clearfix, PageHeader, ...
node_modules/semantic-ui-react/src/views/Feed/FeedEvent.js
mowbell/clickdelivery-fed-test
import cx from 'classnames' import PropTypes from 'prop-types' import React from 'react' import { createShorthand, customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' import FeedContent from './FeedContent' import FeedLabel from './FeedLabel' /** * A feed contains an event. */ fun...
wail-ui/components/layout/location/locationSeparator.js
N0taN3rd/wail
import React from 'react' import {darkWhite as theColor} from 'material-ui/styles/colors' import {namedPure} from '../../../util/recomposeHelpers' const enhance = namedPure('LocationSeparator') const LocationSeparator = () => ( <span style={{color: theColor}}>&gt;</span> ) export default enhance(LocationSeparator)...
assets/jqwidgets/demos/react/app/grid/dropdowngrid/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; import JqxDropDownButton from '../../../jqwidgets-react/react_jqxdropdownbutton.js'; class App extends React.Component { componentDidMount() { this.refs.myGrid.on('rowselect', (eve...
Libraries/Image/ImageBackground.js
cpunion/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/components/common/BookRow.js
alxeg/flibooks-web-react
import React from 'react'; import PropTypes from 'prop-types'; import {ListItem} from 'material-ui/List'; import Highlight from 'react-highlighter'; import Checkbox from 'material-ui/Checkbox'; import FileFileDownload from 'material-ui/svg-icons/file/file-download'; import IconButton from 'material-ui/IconButton'; i...
src/frontend/components/ChatRooms.js
sauvala/chatterbox
import React, { Component } from 'react'; import { ListGroup } from 'react-bootstrap'; import ChatRoomButton from './ChatRoomButton.js'; import '../styles/ChatRooms.css'; class ChatRooms extends Component { render() { const chatRooms = this.props.chatRooms.map( (chatRoom, index) => <ChatRoomButton ...
src/svg-icons/image/linked-camera.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLinkedCamera = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="14" r="3.2"/><path d="M16 3.33c2.58 0 4.67 2.09 4.67 4.67H22c0-3.31-2.69-6-6-6v1.33M16 6c1.11 0 2 .89 2 2h1.33c0-1.84-1.49-3.33-3.33-3.3...
fields/types/url/UrlField.js
mekanics/keystone
import React from 'react'; import Field from '../Field'; import { Button, FormInput } from 'elemental'; module.exports = Field.create({ displayName: 'URLField', openValue () { var href = this.props.value; if (!href) return; if (!/^(mailto\:)|(\w+\:\/\/)/.test(href)) { href = 'http://' + href; } window...
SpotifyAPI.Docs/src/install_instructions.js
JohnnyCrazy/SpotifyAPI-NET
import CodeBlock from '@theme/CodeBlock'; import TabItem from '@theme/TabItem'; import Tabs from '@theme/Tabs'; import React from 'react'; // Will be removed after beta releases const VERSION = '6.0.0'; const installCodeNuget = `Install-Package SpotifyAPI.Web # Optional Auth module, which includes an embedded HTTP Se...
mobile/mock ups/albums/src/components/Header.js
parammehta/TravLendar
// Import libraries for making a component import React from 'react'; import { Text, View } from 'react-native'; // Make a Component const Header = (props) => { const { textStyle, viewStyle } = styles; return ( <View style = {viewStyle}> <Text style = { textStyle }>{props.headerText}</...
src/parser/monk/brewmaster/modules/spells/PurifyingBrew.js
FaideWW/WoWAnalyzer
import React from 'react'; import { formatNumber, formatPercentage } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import SPELLS from 'common/SPELLS'; import Analyzer from 'parser/core/Analyzer'; import Abilities from 'parser/core/modules/Abilities'; import S...
08-context-and-refs/src/CollapsibleList.js
dtanzer/react-basic-examples
import React from 'react'; import './App.css'; export class CollapsibleList extends React.PureComponent { constructor(props) { super(props); this.state = { collapsed: true, }; } render() { return ( <li style={{fontSize: '200%'}}> <a href="#" onClick={e => this.setState({collap...
src/index.js
looshi/wavetable-synth-2
import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import { createStore } from 'redux' import '../css/index.scss' import '../css/keyboard.scss' import '../css/fader.scss' import '../css/react-select-overrides.scss' import App from './App.js' import Reducers from './data...
frontend/src/components/dialog/upload-remind-dialog.js
miurahr/seahub
import React from 'react'; import PropTypes from 'prop-types'; import { gettext } from '../../utils/constants'; import { Modal, ModalHeader, ModalBody, ModalFooter, Button } from 'reactstrap'; const propTypes = { currentResumableFile: PropTypes.object.isRequired, replaceRepetitionFile: PropTypes.func.isRequired, ...
app/javascript/mastodon/features/blocks/index.js
MitarashiDango/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debounce } from 'lodash'; import PropType...
website/src/components/landing.js
honnibal/spaCy
import React from 'react' import classNames from 'classnames' import patternDefault from '../images/pattern_blue.jpg' import patternNightly from '../images/pattern_nightly.jpg' import patternLegacy from '../images/pattern_legacy.jpg' import overlayDefault from '../images/pattern_landing.jpg' import overlayNightly from...
packages/core/upload/admin/src/components/UploadAssetDialog/AddAssetStep/AddAssetStep.js
wistityhq/strapi
import React from 'react'; import PropTypes from 'prop-types'; import { ModalHeader } from '@strapi/design-system/ModalLayout'; import { Typography } from '@strapi/design-system/Typography'; import { Divider } from '@strapi/design-system/Divider'; import { Box } from '@strapi/design-system/Box'; import { useIntl } from...
src/FauxFluxProvider.js
FauxFlux/fauxflux-react
'use strict'; import React from 'react'; import defaultContextTypes from './defaultContextTypes'; class FauxFluxProvider extends React.Component { constructor(props) { super(props); } getChildContext() { return { ff: { store: this.props.FF.store, dispatch: this.props.FF.dispatch...
src/components/icons/EmailRepliedIcon.js
InsideSalesOfficial/insidesales-components
import React from 'react'; const EmailRepliedIcon = props => ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24"> {props.title && <title>{props.title}</title>} <path d="M21.99 8c0-.72-.37-1.35-.94-1.7L12 1 2.95 6.3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2...
app/components/auth/ErrorMessage.js
Block-and-Frame/block-and-frame
import React from 'react'; const ErrorMessage = (props) => { if (props.errorMessage) { return ( <div className="ui negative message"> {props.errorMessage} </div> ); } return (<div></div>); }; export default ErrorMessage;
src/frontend/components/SurveyRenderer.js
al3x/ground-control
import React from 'react'; import Relay from 'react-relay'; import BSDSurvey from './survey-renderers/BSDSurvey' import BSDPhonebankRSVPSurvey from './survey-renderers/BSDPhonebankRSVPSurvey' class SurveyRenderer extends React.Component { static propTypes = { onSubmitted : React.PropTypes.func, } renderers ...
stories/index.stories.js
miadwang/sou-react-table
import React from 'react'; import { storiesOf } from '@storybook/react'; import SouTable from '../src'; import '../SouTable.css'; storiesOf('SouTable', module) .add('default view', () => ( <SouTable /> )) .add('scrollable view', () => ( <SouTable minTableCol={35} minTableRow={60} width={603} height={561}...
actor-apps/app-web/src/app/components/modals/AddContact.react.js
taimur97/actor-platform
import _ from 'lodash'; import React from 'react'; import Modal from 'react-modal'; import addons from 'react/addons'; import ReactMixin from 'react-mixin'; import { Styles, TextField, FlatButton } from 'material-ui'; import AddContactStore from 'stores/AddContactStore'; import AddContactActionCreators from 'actions...
App/ui/views/_default/.vignet.js
CaipiLabs/caipi
/* * Copyright (c) 2018. Wise Wild Web * * This File is part of Caipi and under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License * Full license at https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode * * @author : Nathanael Braun * @contact : caipilabs@gmail.com...
src/main/app/src/containers/App.js
pugnascotia/spring-react-boilerplate
/* @flow */ import React from 'react'; import { Route, Switch } from 'react-router'; import AppMeta from './AppMeta'; import PrivateRoute from './PrivateRoute'; import { AddComment, CommentList, Errors, Navigation, SignIn } from '../components'; const App = () => ( <div> <AppMeta /> <Navigation /> <div...
examples/pinterest/app.js
frankleng/react-router
import React from 'react'; import { Router, Route, IndexRoute, Link } from 'react-router'; var PICTURES = [ { id: 0, src: 'http://placekitten.com/601/601' }, { id: 1, src: 'http://placekitten.com/610/610' }, { id: 2, src: 'http://placekitten.com/620/620' } ]; var Modal = React.createClass({ styles: { posi...
src/Errors/NotFound.js
UTNianos/frontend
import React from 'react'; const NotFound = () => ( <div> <h3>404 pagina no encontrada.</h3> <p> La pagina que estas buscando <strong>no existe</strong> . </p> <p>Deal with it.</p> </div> ); export default NotFound;
jiuzhou/common/Text.js
Cowboy1995/JZWXZ
/** * Copyright (c) 2017-present, Liu Jinyong * All rights reserved. * * https://github.com/huanxsd/MeiTuan * @flow */ import React from 'react'; import ReactNative, { StyleSheet, Dimensions, Text ,ReactElement} from 'react-native'; import color from './color' export function HeadingBig({style, ...props}: Obj...
site/components/NavBar.js
Reggino/react-dnd
import React from 'react'; import { DOCS_DEFAULT, EXAMPLES_DEFAULT } from '../Constants'; import './NavBar.less'; const GITHUB_URL = 'https://github.com/gaearon/react-dnd'; const DOCS_LOCATION = DOCS_DEFAULT.location; const EXAMPLES_LOCATION = EXAMPLES_DEFAULT.location; export default class NavBar { render() { ...
public/js/14.js
ritchieanesco/frontendmastersreact
/* Details page */ import React from 'react' import { render } from 'react-dom' import { BrowserRouter, Match } from 'react-router' import Landing from './14B' import Search from './14C' import Details from './14E' // centralise data to share with components import preload from '../../public/data.json' import '../norm...
app/javascript/mastodon/features/compose/components/upload_button.js
kagucho/mastodon
import React from 'react'; import IconButton from '../../../components/icon_button'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 're...
examples/src/PlayGame/SmartPlayGame.js
moroshko/react-chessboard
import React, { Component } from 'react'; import { createRedux, createDispatcher, bindActionCreators } from 'redux'; import { Provider, Connector } from 'redux/react'; import store from './flux/store'; import * as actions from './flux/actions'; import DumbPlayGame from './DumbPlayGame'; export default class SmartPlayG...
src/js/components/Email/partial/Hero.js
ajainsyn/project
import React from 'react'; import BrandLogo from '../../../shared/BrandLogo'; import introVideoPath from '../../../../assets/images/video/synbaas_intro.mp4'; import videoPlaceholder from '../../../../assets/images/video/video-placholder.jpg'; import emailFlow from '../../../../assets/images/email_notification_flow....
packages/react-scripts/fixtures/kitchensink/src/features/env/ShellEnvVariables.js
dpoineau/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import Rea...
app/containers/NotFoundPage/Loadable.js
mxstbr/react-boilerplate
/** * Asynchronously loads the component for NotFoundPage */ import React from 'react'; import loadable from 'utils/loadable'; import LoadingIndicator from 'components/LoadingIndicator'; export default loadable(() => import('./index'), { fallback: <LoadingIndicator />, });
app/jsx/files/UsageRightsSelectBox.js
djbender/canvas-lms
/* * Copyright (C) 2015 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
Tutorial/js/project/2.MeiTuan/Component/Home/XMGHomeDetail.js
onezens/react-native-repo
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, TouchableOpacity } from 'react-native'; var HomeDetail = React.createClass({ render() { return ( <...
src/ui/components/Settings/SettingsLibrary.react.js
Eeltech/SpaceMusik
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { ButtonGroup, Button } from 'react-bootstrap'; import Dropzone from '../Shared/Dropzone.react'; import AppActions from '../../actions/AppActions'; const dialog = electron.remote.dialog; /* |---------------------------------------...
src/svg-icons/image/switch-video.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageSwitchVideo = (props) => ( <SvgIcon {...props}> <path d="M18 9.5V6c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-3.5l4 4v-13l-4 4zm-5 6V13H7v2.5L3.5 12 7 8.5V11h6V8.5l3.5 3.5-3.5...
webapp/client/src/AppFooter.js
mikemag/MonkeyCAM
/* * Copyright 2013-2017 Michael M. Magruder (https://github.com/mikemag) * * This source code is licensed under the Apache license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import { Grid, Row, Col } from 'react-bootstrap'; const AppFooter = () => ( <G...
src/routes/Account/components/ProviderDataForm/ProviderDataForm.js
skylus/tom-rrf
import React from 'react' import PropTypes from 'prop-types' import { List, ListItem } from 'material-ui/List' import classes from './ProviderDataForm.scss' import AccountCircle from 'material-ui/svg-icons/action/account-circle' export const ProviderData = ({ providerData }) => ( <div className={classes.container}> ...
todo-list/src/index.js
Nodewarrior/react-examples
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render( <App />, document.getElementById('root') );
src/scenes/connector-01.js
jdpigeon/neurodoro
import React, { Component } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; import{ Actions, }from 'react-native-router-flux'; import * as colors from '../styles/colors'; import { MediaQueryStyleSheet } from 'react-native-responsive'; // Components. For JS UI elements import Button fro...
src/Components/Testimonials.js
cmbirk/cmbirk.io
import React, { Component } from 'react'; class Testimonials extends Component { render() { if(this.props.data){ var testimonials = this.props.data.testimonials.map(function(testimonials){ return <li key={testimonials.user}> <blockquote> <p>{testimonials.text}</p> ...
packages/arwes/src/Footer/sandbox.js
romelperez/ui
import React from 'react'; import Footer from './index'; export default () => ( <div style={{ padding: 20 }}> <Footer animate> <p>Arwes details</p> </Footer> </div> );
client/src/components/auth/reset_password.js
RajivLinkites/Starter-Skeleton
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Field, reduxForm } from 'redux-form'; import { resetPassword } from '../../actions/auth'; const form = reduxForm({ form: 'resetPassword', validate, }); function validate(formProps) { const errors = {}; if (!formProps.pa...
app/containers/HomePage/Albums/image-tile.js
romy/personal-imgur-gallery
import { connect } from 'react-redux'; import { GridTile } from 'material-ui/GridList'; import Immutable from 'immutable'; import React from 'react'; import R from 'ramda'; import { setDisplayName, setPropTypes } from 'recompose'; const ImageTile = ({ title, link, description }) => // eslint-disable-line react/prop-t...
recipe-box/src/RecipesList.js
florinpop17/chingu-speedrun-may
import React, { Component } from 'react'; import { withRouter } from 'react-router-dom'; import PropTypes from 'prop-types'; class RecipesList extends Component { constructor() { super(); this.editRecipe = this.editRecipe.bind(this); } editRecipe(id) { this.props.handleEdit(id); this.props.history.push('/...
information/blendle-frontend-react-source/app/modules/coupon/CouponContainer.js
BramscoChill/BlendleParser
import React from 'react'; import PropTypes from 'prop-types'; import AltContainer from 'alt-container'; import AuthStore from 'stores/AuthStore'; import SignUpStore from 'stores/SignUpStore'; import SignUpActions from 'actions/SignUpActions'; import CouponStore from 'stores/CouponStore'; import AuthActions from 'actio...
react-ui/src/App.js
tdfranklin/retrocade
import React, { Component } from 'react'; import './App.css'; import HomeScreen from './components/home-screen'; class App extends Component { constructor(props) { super(props); this.state = { }; } render() { return ( <div className="App"> <HomeScreen /> </div> ); } } ...
frontend/src/components/thread/subscription.js
1905410/Misago
/* jshint ignore:start */ import React from 'react'; import * as actions from 'misago/reducers/thread'; import ajax from 'misago/services/ajax'; import snackbar from 'misago/services/snackbar'; import store from 'misago/services/store'; export default function(props) { if (!props.user.id) { return null; } r...
client/src/components/dashboard/Community/UserCard.js
FCC-Alumni/alumni-network
import CertLinks from './CertLinks'; import ChatIconPopup from '../common/ChatIconPopup'; import { connect } from 'react-redux'; import { connectScreenSize } from 'react-screen-size'; import { isGitterUser } from '../../../actions/user'; import parseDate from '../../../assets/helpers/parseDate'; import React from 'reac...
node_modules/airbnb-prop-types/src/helpers/typeOf.js
xuan6/admin_dashboard_local_dev
import React from 'react'; export default function typeOf(child) { if (child === null) { return 'null'; } if (Array.isArray(child)) { return 'array'; } if (typeof child !== 'object') { return typeof child; } if (React.isValidElement(child)) { return child.type; } return child; }
src/containers/MetaFields.js
ashmaroli/jekyll-admin
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import _ from 'underscore'; import MetaField from '../components/metadata/MetaField'; import { storeContentFields, addFi...
js/components/Rating.js
ferrannp/showman
import React from 'react'; import { Stars } from './Stars'; export const Rating = (props) => { return ( <div className="rating-container"> <div className="rating-numbers"> <p> <span className="rating">{props.rating.toFixed(1)}</span> <span className="secondary"> / 10</span> ...
src/svg-icons/content/content-cut.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentContentCut = (props) => ( <SvgIcon {...props}> <path d="M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-...
L/my-app/src/components/Header.js
imuntil/React
import React from 'react' import PropTypes from 'prop-types' import cssModules from 'react-css-modules' import styles from './Header.module.scss' import Avatar from '@/components/Avatar' import SearchInput from '@/containers/SearchInput' import { NavLink } from 'react-router-dom' function Header({ user, onSearch }) { ...
client-src/components/pages/CreateInspectionPage.js
Neil-G/InspectionLog
// @flow import React, { Component } from 'react'; import { Link } from 'react-router' import Forms from './../forms' require('./../../../public/custom.css') class CreateInspectionPage extends Component { render() { return ( <div> <p className='center-text'><Link to='/inspections'> Search Inspect...
src/components/authentication/Reset.js
muiradams/plantogo
import React, { Component } from 'react'; import { browserHistory } from 'react-router'; import { connect } from 'react-redux'; import { Field, reduxForm } from 'redux-form'; import FlatButton from 'material-ui/FlatButton'; import { TextField } from 'redux-form-material-ui'; import * as actions from '../../actions'; /...
src/containers/repos-list.js
andrei-cacio/redux-github-explorer
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Card from 'material-ui/Card/Card'; import CardHeader from 'material-ui/Card/CardHeader'; import CardTitle from 'material-ui/Card/CardTitle'; import CardText from 'material-ui/Card/CardText'; import Search from './search'; import Lis...
packages/showcase/plot/line-chart-canvas.js
uber-common/react-vis
// Copyright (c) 2016 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
SmartDemo/ReactComponent/node_modules/react-native/Libraries/Components/TextInput/TextInput.js
HarrisLee/React-Native-Express
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
react/Apps/airways-app/src/containers/App.js
rcapde/reactjs-Apps
import React, { Component } from 'react'; import logo from '../assets/penguin.png'; import '../assets/App.css'; import SearchBar from '../components/search_bar'; import Results from '../containers/results'; class App extends Component { render(){ return ( <div className="App"> <div className="Ap...
site/demos/ecommerce/src/components/SearchFilters.js
appbaseio/reactivesearch
import React from 'react'; import PropTypes from 'prop-types'; import { SingleList, SingleRange, MultiList, RangeSlider } from '@appbaseio/reactivesearch'; import Flex, { FlexChild } from '../styles/Flex'; const SearchFilters = () => ( <Flex direction="column"> <FlexChild card margin="10px"> <SingleList com...
example/examples/PolylineCreator.js
athaeryn/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, TouchableOpacity, } from 'react-native'; import MapView from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122.4324; const LA...
src/package.js
local-npm/local-npm
import 'whatwg-fetch'; import React from 'react'; import moment from 'moment'; import Marked from 'marked'; import PropTypes from 'prop-types'; import { LineChart, CartesianGrid, Tooltip, Line } from 'recharts'; class Package extends React.Component { constructor(props) { super(props); const { match } = p...
src/svg-icons/maps/person-pin.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsPersonPin = (props) => ( <SvgIcon {...props}> <path d="M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 3.3c1.49 0 2.7 1.21 2.7 2.7 0 1.49-1.21 2.7-2.7 2.7-1.49 0-2...
docs/src/app/components/pages/get-started/Usage.js
ichiohta/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import usageText from './usage.md'; const Usage = () => ( <div> <Title render={(previousTitle) => `Usage - ${previousTitle}`} /> <MarkdownElement text={usageText} /> </div> ); export...
app/javascript/mastodon/components/avatar_overlay.js
5thfloor/ichiji-social
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class AvatarOverlay extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, friend:...
src/index.js
minmaster/gig-native-web
'use strict'; import App from './common/components/App/App'; import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route } from 'react-router'; // CSS require('normalize.css'); require('./styles/main.css'); var content = document.getElementById('content'); ReactDOM.render(( <App /> ), con...
src/svg-icons/social/sentiment-very-satisfied.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSentimentVerySatisfied = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.47 2 12s4.47 10 9.99 10S22 17.53 22 12 17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm1...