path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
client/modules/User/components/Dashboard/DashboardCard.js
vwtan/FinancialTracker
import React from 'react'; import { Link } from 'react-router'; import styles from '../../styles/Dashboard.scss'; export function DashboardCard(props) { return ( <div className={styles[props.stylename]}> {props.children} </div> ); } DashboardCard.propTypes = { children: React.PropTypes.node, s...
src/Main/PlayerBreakdown.js
hasseboulen/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPECS from 'common/SPECS'; class PlayerBreakdown extends React.Component { static propTypes = { report: PropTypes.object.isRequired, playersById: PropTypes.object.isRequired, }; calculatePlayerBreakdown(stats, playersById) { cons...
app/javascript/mastodon/features/compose/components/character_counter.js
blackle/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { length } from 'stringz'; export default class CharacterCounter extends React.PureComponent { static propTypes = { text: PropTypes.string.isRequired, max: PropTypes.number.isRequired, }; checkRemainingText (diff) { if (diff < 0)...
blueocean-material-icons/src/js/components/svg-icons/action/bookmark-border.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionBookmarkBorder = (props) => ( <SvgIcon {...props}> <path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"/> </SvgIcon> ); ActionBookmarkBorder.displayName = 'ActionBookmarkBorder'; ActionBookma...
src/app/component/nav-bar/nav-bar.story.js
all3dp/printing-engine-client
import React from 'react' import {storiesOf} from '@storybook/react' import NavBar from '.' import Logo from '../logo' import CartNavLink from '../cart-nav-link' import NavLink from '../nav-link' import config from '../../../../config' import uploadIcon from '../../../asset/icon/upload.svg' import helpIcon from '../...
packages/icons/src/md/notification/EventBusy.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdEventBusy(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M18.62 36l4.88-4.88L28.38 36l2.12-2.12L25.62 29l4.88-4.88L28.38 22l-4.88 4.88L18.62 22l-2.12 2.12L21.38 29l-4.88 4.88L18.62 36zM38 8c2.21 0 4 1.79 ...
public/js/components/WorkshopBookingsList.js
JasonShin/HELP-yo
/** * Created by Shin on 3/10/2016. */ import React from 'react'; import { observer } from 'mobx-react'; import {ReactRouter, Router, Link, withRouter} from 'react-router'; import FirebaseAPI from '../api/firebase.api'; import Spinner from '../components/Spinner'; import {getFormattedRangeDate, getMonthDate} from '.....
src/components/home/HomePage.js
harpreetkhalsagtbit/react-test-proj
import React from 'react'; import {Link} from 'react-router'; class HomePage extends React.Component { render() { return ( <div className="jumbotron"> <h1>Payment Reminder System</h1> <p>Beta version - Simple Module for a Gym</p> </div> ); } } export default HomePage;
components/shared/DiffEditor.js
CarbonStack/carbonstack
import React from 'react' import { monospacedFontFamily, placeholderColor } from '../../lib/styles/variables' class DiffEditor extends React.PureComponent { constructor (props) { super(props) this.onCodeMirrorChange = this.onCodeMirrorChange.bind(this) } componentDidMount () { const { CodeMirror...
src/components/SupervisionPanel/SupervisionPanel.js
nambawan/g-old
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { FormattedDate, defineMessages, FormattedMessage } from 'react-intl'; import Statement from '../Statement'; import { loadFlaggedStatements, solveFlag, loadFlaggedStatementsConnection, } from '../../actio...
Tools/Mirrorator/index.ios.js
Estimote/iOS-Mirror-SDK
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import _ from 'lodash' import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, TextInput, View, Button, NativeModules, SectionList, FlatList, Dimensions, Slider, NativeEventEmitter ...
src/routes/led/Leds.js
egut/react-docker-demo
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
src/components/Video.js
Hylozoic/hylo-redux
// adapted from https://github.com/andoulla/angular-video import React from 'react' import cx from 'classnames' import { parse, format } from 'url' export const youtubeParams = '?autoplay=0&showinfo=0&controls=0' // Produce an embeddable url // for youtube: src="//www.youtube.com/embed/{{video_id}}" // for vimeo: sr...
js/jqwidgets/demos/react/app/scheduler/recurringappointments/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxScheduler from '../../../jqwidgets-react/react_jqxscheduler.js'; class App extends React.Component { componentDidMount() { this.refs.myScheduler.ensureAppointmentVisible('id7'); } render() { let appointments = new Array...
blueocean-material-icons/src/js/components/svg-icons/navigation/close.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const NavigationClose = (props) => ( <SvgIcon {...props}> <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/> </SvgIcon> ); NavigationClose.displayName = 'NavigationClose'; NavigationCl...
docs/src/pages/versions/StableVersions.js
lgollut/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; import TableRow from '@material-ui/core/TableRow'; ...
src/containers/HeaderContainer.js
mrozilla/mrozilla.cz
// ───────────────────────────────────────────────────────────────────────────── // import // ───────────────────────────────────────────────────────────────────────────── import React from 'react'; import { graphql, useStaticQuery } from 'gatsby'; import { Header, Link, Nav } from '~components'; // ────────────────...
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Form.js
Akkuma/npm-cache-benchmark
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 ...
static/src/components/Home/index.js
idahu29/payment-redis
/* eslint camelcase: 0, no-underscore-dangle: 0 */ import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; import Paper from 'material-ui/Paper'; import PaypalButton...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/rc-util/es/Children/mapSelf.js
bhathiya/test
import React from 'react'; function mirror(o) { return o; } export default function mapSelf(children) { // return ReactFragment return React.Children.map(children, mirror); }
node_modules/react-bootstrap/es/Button.js
mohammed52/something.pk
import _Object$values from 'babel-runtime/core-js/object/values'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-...
src/containers/header/Header.js
azinasili/githubsearch
import React from 'react'; import { connect } from 'react-redux'; import { getSearchValue, getSearchString } from '../../actions/getSearch'; import getUsers from '../../actions/getUsers'; import getRepos from '../../actions/getRepos'; import Search from '../../components/search/Search'; import './Header.css'; function...
src/views/TabsContainer.js
lishiyo/listentothis
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { actionCreators as tabActions } from '../redux/modules/tabs' import { actionCreators as dataActions } from '../redux/modules/data' import { getVideos } from '../redux/modules/data' import FILTERS from '../...
tests/react/key.js
mroch/flow
// @flow import React from 'react'; class Foo extends React.Component<{}, void> {} <Foo />; // OK <Foo key="42" />; // OK <Foo key={42} />; // OK <Foo key={null} />; // OK <Foo key={undefined} />; // OK <Foo key={true} />; // Error class FooExact extends React.Component<{||}, void> {} <FooExact />; // OK <FooExact...
src/views/ProfileView.js
mbarth/user-auth-react-redux-example
import React from 'react'; import ReactDOM from 'react-dom'; import linkedState from 'react-link'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import * as actionCreators from '../actions'; /** * Issue with redux form first render as described in bug #621: * https://github.com/erikr...
src/SideBar/SideBar.js
abdurrahmanekr/react-chat-elements
import React, { Component } from 'react'; import './SideBar.css'; const classNames = require('classnames'); export class SideBar extends Component { render() { return ( <div className={classNames('rce-sbar', this.props.type, this.props.className)}> <div className="rce-sbar-item...
definitions/npm/react-helmet_v3.x.x/test_react-helmet.js
orlandoc01/flow-typed
// @flow import React from 'react'; import Helmet from 'react-helmet'; const HelmetComponent = () => ( <Helmet htmlAttributes={{"lang": "en", "amp": undefined}} // amp takes no value title="My Title" titleTemplate="MySite.com - %s" defaultTitle="My Default Title" base={{"target": "_blank", "href":...
App/containers/DayThreeScreen/ExploreScreen.js
carney520/30-days-of-react-native
// @flow import React from 'react' import {Text} from 'react-native' import TabbarIcon from './components/TabbarIcon' export default class ExploreScreen extends React.Component { static navigationOptions = { tabBar: { label: 'Explore', icon: ({tintColor}) => <TabbarIcon name="search" color={tintColor...
app/javascript/mastodon/components/poll.js
yi0713/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import classNames from 'classnames'; import Motion fr...
src/interface/icons/People.js
anom0ly/WoWAnalyzer
import React from 'react'; // https://thenounproject.com/search/?q=people&i=1458757 // people by Manohara from the Noun Project const Icon = ({ ...others }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" className="icon" {...others}> <path d="M47.7,36.5A14.5,14.5,0,1,0,33.2,51,14.5,14.5,0,0,0...
react-flux-mui/js/material-ui/src/svg-icons/action/highlight-off.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHighlightOff = (props) => ( <SvgIcon {...props}> <path d="M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 1...
docs/src/components/SidebarLink/SidebarLink.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import Link from 'gatsby-link' const SidebarLink = ({ route }) => { return ( <Link to={`/${route}`} activeClassName={'active'}> {route} </Link> ) } SidebarLink.propTypes = { route: PropTypes.string, } export default SidebarLink
bro/components/App.js
sullenor/skeleton
import React from 'react'; import Game from './Game'; import { Provider } from 'redux/react'; export default class App { render() { const redux = this.props.redux; return ( <Provider redux={redux}> {() => <Game/ >} </Provider> ); } }
CoreCRM/ClientApp/src/views/Company/Structure.js
holmescn/CoreCRM
import React from 'react'; import { connect } from 'dva'; // import styles from './Index.css'; function Structure() { return ( <div>办公/组织架构</div> ); } Structure.propTypes = { }; export default connect()(Structure);
src/interface/report/Results/Overview/index.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { hasPremium } from 'interface/selectors/user'; import Ad from 'interface/common/Ad'; import Checklist from './Checklist'; import Suggestions from './Suggestions'; class Overview extends React.PureComponent {...
src/svg-icons/communication/screen-share.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationScreenShare = (props) => ( <SvgIcon {...props}> <path d="M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.11-.9-2-2-2H4c-1.11 0-2 .89-2 2v10c0 1.1.89 2 2 2H0v2h24v-2h-4zm-7-3.53v-2.19c-2.78 0-4.61.85-6 2.72.56...
index.ios.js
Cabcase/TestApp
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class TestApp extends Component { render() { return ( <View style={styles.container}>...
src/docs/src/templates/updates.js
StarterInc/Ignite
import { graphql } from 'gatsby'; import Helmet from 'react-helmet'; import React from 'react'; import Footer from '../components/Footer'; import LayoutNav from '../components/LayoutNav'; import Auth from '../components/Auth'; import Timeline from '../components/Timeline'; export default class Updates extends React.Co...
src/App.js
davertron/react-spa
import React, { Component } from 'react'; import { Link } from 'react-router'; export default class App extends Component { constructor(props) { super(props); } render() { return <div> <nav className="navbar navbar-default"> <div className="container-fluid"> ...
lib/react/components/utility/Authenticated.js
bwyap/ptc-amazing-g-race
import React from 'react'; import PropTypes from 'prop-types' import { connect } from 'react-redux'; const mapStateToProps = (state, ownProps) => { return { authenticated: state.auth.login.authenticated, isAdmin: state.auth.login.admin } } @connect(mapStateToProps) class Authenticated extends React.Component {...
src/index.js
cdaringe/square-dance
import 'babel-core/polyfill'; import React from 'react'; import Root from './Root'; require('../styles/main.css'); React.render(<Root />, document.getElementById('root'));
app/containers/PlayListEditor/EditorForm/Form.js
fenderface66/spotify-smart-playlists
import React from 'react'; import { Field, FormGroup, reduxForm } from 'redux-form/immutable'; import CheckboxItem from './CheckboxItem'; let Form = props => { const { handleSubmit } = props; console.log(props); return ( // <form onSubmit={ handleSubmit }> // <div> // <label htmlFor="firstName"...
examples/js/selection/default-select-table.js
rolandsusans/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/svg-icons/action/restore-page.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRestorePage = (props) => ( <SvgIcon {...props}> <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm-2 16c-2.05 0-3.81-1.24-4.58-3h1.71c.63.9 1.68 1.5 2.87 1.5 1.93 0 3....
ui/footer/index.js
DannyvanderJagt/portfolio
import React from 'react'; import Telescope from 'telescope'; import Projects from '../../../projects.config.js'; import ProjectTile from '../projectTile'; class Footer extends Telescope.Component{ render(){ let style = {}; if(this.props.background){ style.backgroundImage = 'url(' + this.props.backgr...
webapp-src/src/Footer/MediaInfo.js
babelouest/taliesin
import React, { Component } from 'react'; import { Image } from 'react-bootstrap'; import ModalMedia from '../Modal/ModalMedia'; class MediaInfo extends Component { constructor(props) { super(props); this.state = { media: props.media, imgThumbBlob: props.imgThumbBlob, title: this.buildTitle(props.medi...
code/workspaces/web-app/src/components/modal/EditDataStoreDialog.js
NERC-CEH/datalab
import React from 'react'; import PropTypes from 'prop-types'; import Dialog from '@material-ui/core/Dialog'; import DialogTitle from '@material-ui/core/DialogTitle'; import DialogContent from '@material-ui/core/DialogContent'; import dataStorageActions from '../../actions/dataStorageActions'; import modalDialogActions...
www/src/components/survey/SurveyTemplatesList.js
cygwin255/SimpleSurvey
import React from 'react' import Pagination from 'components/navigation/Pagination' import { debounce } from 'lodash' class SurveyTemplatesList extends React.Component { componentWillMount () { this.setSearch = debounce(this.setSearch, 250) } setSearch (value) { this.setState({search: value}) this.p...
app/javascript/mastodon/features/keyboard_shortcuts/index.js
lynlynlynx/mastodon
import React from 'react'; import Column from '../ui/components/column'; import ColumnBackButtonSlim from '../../components/column_back_button_slim'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-co...
src/layouts/LeftNav.js
E-HERO-ZZ/tomatoTime
import React from 'react'; import * as m from 'material-ui/lib'; import {SelectableContainerEnhance} from 'material-ui/lib/hoc/selectable-enhance'; import { Link, PropTypes } from 'react-router'; const SelectableList = SelectableContainerEnhance(m.List); export default class LeftNav extends React.Component { con...
src/containers/User/index.js
andresmechali/shareify
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from "react-redux"; import { withApollo } from 'react-apollo'; import Loading from '../../components/Loading/Bounce'; import About from '../../components/User/About'; import Reviews from '../../components/User/Reviews'; import Conversat...
test/test_helper.js
vishalpandey2192/React
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
app/components/Item/ItemComponent.js
TriPSs/popcorn-time-desktop
import React from 'react' import { Link } from 'react-router-dom' import classNames from 'classnames' import { getHighestQualtity } from 'api/Torrents/TorrentsHelpers' import * as MetadataConstants from 'api/Metadata/MetadataConstants' import * as TorrentConstants from 'api/Torrent/TorrentConstants' import * as Player...
src/index.js
ardaogulcan-ci/tweetboard-client
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { fromJS } from 'immutable'; import injectTapEventPlugin from 'react-tap-event-plugin'; import ...
common/components/presentation/DefaultWrapper.js
ebertmi/webbox
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { getStyles } from 'spectacle/lib/utils/base'; import styled from 'react-emotion'; const StyledDefaultWrapper = styled.div(props => props.styles); class DefaultWrapper extends Component { render() { const styles = [ this....
client/components/home/HomePage.js
andela-fmustapha/document-management
import React from 'react'; import { Link } from 'react-router'; /** * * * @class HomePage * @extends {React.Component} */ class HomePage extends React.Component { /** * * * @returns {Object} contains JSX code * * @memberof HomePage */ render() { return ( <div id="bg"> ...
app/packs/src/components/common/PanelHeader.js
ComPlat/chemotion_ELN
import React from 'react'; const PanelHeader = ({ title, btns }) => { return ( <div> {title} <div className="button-right"> {btns} </div> </div> ); }; export default PanelHeader;
app/components/Home.js
miccferr/converterio
import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './Home.module.css'; export default class Home extends Component { render() { return ( <div> <div className={styles.container}> <h2>Home</h2> <Link to="/counter">to Counter</Link>...
frontend/src/components/threads-list/thread/subscription/modal.js
1905410/Misago
import React from 'react'; import Options from 'misago/components/threads-list/thread/subscription/options'; // jshint ignore:line export default class extends React.Component { render() { /* jshint ignore:start */ return <div className="modal-dialog modal-sm" role="document"> <div clas...
packages/mineral-ui-icons/src/IconEmail.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 IconEmail(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps}> ...
example/app/routes/Register/index.js
jpush/jmessage-react-plugin
'use strict'; import React from 'react'; import ReactNative from 'react-native'; import JMessage from 'jmessage-react-plugin'; import FormButton from '../../views/FormButton' const { View, Text, TouchableHighlight, StyleSheet, Button, Alert, TextInput } = ReactNative; export default ...
examples/js/custom/pagination/custom-pagination-panel.js
AllenFang/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-console: 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; prod...
client/src/routes.js
mtiger2k/graphql-tutorial
import React from 'react'; import { Route, Switch, } from 'react-router-dom'; import Layout from './app/components/layout/Layout'; import { PrivateRoute } from './app/components/auth/require_auth' import HomePage from './app/components/pages/HomePage' import LoginPage from './app/components/pages/LoginPage' impor...
src/Badge.js
coderstudy/react-bootstrap
import React from 'react'; import ValidComponentChildren from './utils/ValidComponentChildren'; import classNames from 'classnames'; const Badge = React.createClass({ propTypes: { pullRight: React.PropTypes.bool }, hasContent() { return ValidComponentChildren.hasValidComponent(this.props.children) || ...
app/client/elements/Icon/Icon.js
jmdesiderio/swan-cms
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' const Svg = styled.svg` fill: currentColor; vertical-align: middle; ` const renderIcon = { user: () => ( <path d='M0,245c0,135.1,109.9,245,245,245s245-109.9,245-245S380.1,0,245,0S0,109.9,0,245z M245,41.6 ...
src/components/streams/StreamCard.js
zebras-filming-videos/streamr-web
import React from 'react' import { Link } from 'react-router-dom' import ProfileImage from '../users/ProfileImage.js' import StreamThumbnail from './StreamThumbnail' export default ({ children, className = '', stream, user }) => ( <Link to={`/${stream.slug}`} className={`stream-card ${className}`}> <div...
src/components/SleepingPosition.js
andresilveira/stendebach_pillows
import React from 'react'; import Fieldset from './Fieldset'; import RadioInput from './RadioInput'; import '../bootstrap.min.css'; const SleepingPosition = () => ( <Fieldset legend="Bevorzugte Schlafposition"> <RadioInput name="sleepingPosition" label="Bauchlage" value="bellyDown" defaultChecked /> <Radio...
src/client/components/about/index.js
tthordarson/runesmith
import React from 'react'; const About = () => <div>TODO - About page will be here</div> export default About;
examples/auth-flow/app.js
zipongo/react-router
import React from 'react' import { render } from 'react-dom' import { Router, Route, Link, History } from 'react-router' import { createHistory, useBasename } from 'history' import auth from './auth' const history = useBasename(createHistory)({ basename: '/auth-flow' }) const App = React.createClass({ getInitialS...
styleguide/src/components/main.js
pivotal-cf/pivotal-ui
import React from 'react'; import SidebarWrapper from './sidebar-wrapper'; import '../../stylesheets/main.scss'; const year = new Date().getFullYear(); const Main = ({ children }) => ( <div className="sg-content"> <div className="sg-full-sidebar"> <SidebarWrapper /> </div> <div className="sg-main-...
tests/react/createContext.js
samwgoldman/flow
// @flow import React from 'react'; { const Context = React.createContext('div'); const {Consumer, Provider} = Context; class Foo extends React.Component<{}> { divRef: {current: null | HTMLDivElement} = React.createRef(); render() { return ( <React.Fragment> <Provider value='sp...
app/components/AjaxDemo/AjaxDemo.js
youtogod/webpack-sample-project
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { selectSubreddit, invalidateSubreddit, fetchPostsIfNeeded } from './actions'; import Picker from 'components/Picker/Picker'; import Layout from 'common/Layout/Layout'; class AjaxDemo extends Component { constructor(props) { ...
src/containers/Home/Home.js
simonedesordi/configuration-ms-ui
import React, { Component } from 'react'; import { Link } from 'react-router'; import { CounterButton, GithubButton } from 'components'; export default class Home extends Component { render() { const styles = require('./Home.scss'); // require the logo image both from client and server const logoImage = ...
src/components/form-container/FormContainer.js
klikstermkd/squigle
import React from 'react'; import './FormContainer.css'; class App extends React.Component { constructor(props) { super(props); this.state = { header: '', body: '', category: 'info' }; this.handleChange = this.handleChange.bind(this); } handleChange(event) { const target...
src/svg-icons/notification/more.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationMore = (props) => ( <SvgIcon {...props}> <path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.97.89 1.66.89H22c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 13.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5...
src/components/NavBar/NavBar.js
GoogleChromeLabs/react-shrine
/* * Copyright 2019 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
src/jsx/components/controls/datesPicker/SelectedDateItem.js
developerJohnBeagan2/DatesPicker
import React from 'react'; import PropTypes from 'prop-types'; class SelectedDateItem extends React.Component { constructor(props, context) { super(props, context); this.handleClick = this.handleClick.bind(this); } // constructor handleClick(e) { const removeDate = this.props.removeDate; co...
app/components/roster/index.js
opensprints/opensprints-electron
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { FormGroup, Modal, Radio } from 'react-bootstrap'; import RosterRacer from './Racer'; import RaceSetup from './RaceSetup'; import style from './roster.css'; const racerAttributeRadioGroup = (key, options, onChange) => ( <FormGroup ...
docs-ui/components/projectLabel.stories.js
gencer/sentry
import React from 'react'; import {storiesOf} from '@storybook/react'; // import {action} from '@storybook/addon-actions'; import {withInfo} from '@storybook/addon-info'; import ProjectLabel from 'sentry-ui/projectLabel'; storiesOf('ProjectLabel', module).add( 'default', withInfo('')(() => <ProjectLabel project={...
src/components/Breadcrumb/Breadcrumb.Skeleton.js
carbon-design-system/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 React from 'react'; import { settings } from 'carbon-components'; const { prefix } = settings; export default class BreadcrumbSkelet...
packages/cf-component-loading/example/basic/component.js
koddsson/cf-ui
import React from 'react'; import Loading from 'cf-component-loading'; const LoadingComponent = () => ( <div> <Loading /> </div> ); export default LoadingComponent;
webpack/components/Content/Details/ContentDetails.js
johnpmitsch/katello
import React from 'react'; import { translate as __ } from 'foremanReact/common/I18n'; import { Nav, NavItem, TabPane, TabContent, TabContainer, Grid, Row, Col } from 'patternfly-react'; import { PropTypes } from 'prop-types'; import { LoadingState } from '../../../move_to_pf/LoadingState/index'; const ContentDetails ...
fields/types/text/TextFilter.js
woody0907/keystone
import React from 'react'; import { FormField, FormInput, FormSelect, SegmentedControl } from 'elemental'; const TOGGLE_OPTIONS = [ { label: 'Matches', value: false }, { label: 'Does NOT Match', value: true } ]; const MODE_OPTIONS = [ { label: 'Contains', value: 'contains' }, { label: 'Exactly', value: 'exactly'...
app/javascript/mastodon/features/compose/components/upload.js
rekif/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { defineMessages, injec...
src/TypeDefinition.js
half-shell/react-navigation
/* @flow */ import React from 'react'; import { Animated, } from 'react-native'; import type { HeaderMode, HeaderProps, } from './views/Header'; /** * NavigationState is a tree of routes for a single navigator, where each child * route may either be a NavigationScreenRoute or a NavigationRouterRoute. * Nav...
app/static/src/diagnostic/Norm_modules/NewNormParticlesForm.js
SnowBeaver/Vision
import React from 'react'; import Checkbox from 'react-bootstrap/lib/Checkbox'; import {findDOMNode} from 'react-dom'; import {hashHistory} from 'react-router'; import {Link} from 'react-router'; import {NotificationContainer, NotificationManager} from 'react-notifications'; import TextField from './TextField'; import...
examples/express-nunjucks-postcss-unstyled-react-webpack-mocha-sqlite-twitter/app/components/Home.js
sahat/boilerplate
import React from 'react'; import { connect } from 'react-redux' import Messages from './Messages'; class Home extends React.Component { render() { return ( <div className="container"> <Messages messages={this.props.messages}/> <div className="row"> <div className="col-sm"> ...
webapp/pages/helpers/interactive_data.js
bowlofstew/changes
import React from 'react'; import * as api from 'es6!server/api'; import * as utils from 'es6!utils/utils'; /* * A data structure for you to make a table of data interactive. It helps with * several things. * - Renders pagination links for you. It also keeps track of both the fetched * and not-yet-fetched data...
client/components/editor.js
bmathews/end-of-day
import React from 'react'; export default React.createClass({ propTypes: { html: React.PropTypes.string, }, getDefaultProps() { return { html: "" }; }, shouldComponentUpdate(nextProps) { return nextProps.html !== React.findDOMNode(this).innerHTML; }, componentDidUpdate() { if...
docs/app/Examples/views/Advertisement/Types/AdvertisementExampleSquareButton.js
aabustamante/Semantic-UI-React
import React from 'react' import { Advertisement } from 'semantic-ui-react' const AdvertisementExampleSquareButton = () => ( <Advertisement unit='square button' test='Square Button' /> ) export default AdvertisementExampleSquareButton
src/components/Home/Home.js
jas-chen/react-starter-kit
import React from 'react'; function Home(props) { const { number, increase, decrease } = props; return ( <div> <h1>Home</h1> Some state changes: <span>{number}</span> <button onClick={() => increase(1)}>Increase</button> <button onClick={() => decrease(1)}>Decrease</button> </...
app/js/profiles/ExportProfilePage.js
blockstack/blockstack-browser
import React from 'react' import InputGroup from '@components/InputGroup' import PageHeader from '@components/PageHeader' const ExportPage = () => ( <div className="body-inner body-inner-white"> <PageHeader title="Export" /> <div className="container"> <div> <h3>Export Identity</h3> <p...
app/javascript/mastodon/features/compose/components/reply_indicator.js
sylph-sin-tyaku/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Avatar from '../../../components/avatar'; import IconButton from '../../../components/icon_button'; import DisplayName from '../../../components/display_name'; import { defineMessages, injec...
webpack/scenes/ModuleStreams/Details/ModuleStreamDetails.js
pmoravec/katello
import React, { Component } from 'react'; import BreadcrumbsBar from 'foremanReact/components/BreadcrumbBar'; import { translate as __ } from 'foremanReact/common/I18n'; import { PropTypes } from 'prop-types'; import api from '../../../services/api'; import ContentDetails from '../../../components/Content/Details/Conte...
templates/frontOffice/modern/components/React/Checkout/DeliveryModules.js
thelia/thelia
import React from 'react'; import { useSelector } from 'react-redux'; import Alert from '../Alert'; import Loader from '../Loader'; import priceFormat from '@utils/priceFormat'; import { useIntl } from 'react-intl'; import { useValidDeliveryModules } from '../Checkout/hooks'; import { queryClient, useGetCheckout,...
src/svg-icons/action/camera-enhance.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCameraEnhance = (props) => ( <SvgIcon {...props}> <path d="M9 3L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2h-3.17L15 3H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.2...
admin/src/components/PopoutListItem.js
lastjune/keystone
import blacklist from 'blacklist'; import classnames from 'classnames'; import React from 'react'; var PopoutListItem = React.createClass({ displayName: 'PopoutListItem', propTypes: { icon: React.PropTypes.string, iconHover: React.PropTypes.string, isSelected: React.PropTypes.bool, label: React.PropTypes.str...
admin-app/src/layout/App.js
nonocast/springmvc-starter
import React, { Component } from 'react'; import { Route, Switch, Redirect } from 'react-router' import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import AppBar from 'material-ui/AppBar'; import FlatButton from 'material-ui/FlatButton'; import Sidebar from './Sidebar' import Users from '../view/Users'...
docs/src/app/components/pages/components/AppBar/ExampleIcon.js
kasra-co/material-ui
import React from 'react'; import AppBar from 'material-ui/AppBar'; const AppBarExampleIcon = () => ( <AppBar title="Title" iconClassNameRight="muidocs-icon-navigation-expand-more" /> ); export default AppBarExampleIcon;
src/routes/login/Login.js
bobbybeckner/ha-catalyst-test
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...