path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
dashboard/app/components/AddButton/AddButton.js
tlisonbee/cerberus-management-service
import React from 'react' import { Component } from 'react' import PropTypes from 'prop-types' import './AddButton.scss' import '../../assets/images/add-green.svg' /** * Component for an Add Button (a button with a plus and a message) */ export default class AddButton extends Component { static propTypes = { ...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/antd/es/upload/UploadList.js
bhathiya/test
import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
client/modules/Admin/pages/Admin.js
lordknight1904/bigvnadmin
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import AdminNavBar from '../components/AdminNavBar/AdminNavBar'; import AdminList from '../components/AdminList/AdminList'; import { getId } from '../../Login/LoginReducer'; import { Modal, Button, Form,...
examples/huge-apps/routes/Course/routes/Announcements/components/Announcements.js
mozillo/react-router
import React from 'react' class Announcements extends React.Component { render() { return ( <div> <h3>Announcements</h3> {this.props.children || <p>Choose an announcement from the sidebar.</p>} </div> ) } } export default Announcements
assets/react/src/components/task/cron_container.js
khoa-le/crontask
import React, { Component } from 'react'; import Tasks from './tasks'; import TaskDetail from './task_detail'; export default class TaskContainer extends Component { getChildContext() { return { lang: this.state.lang, t: this.state.t } } constructor(props) { ...
inc/option_fields/vendor/htmlburger/carbon-fields/assets/js/fields/components/textarea/index.js
wpexpertsio/WP-Secure-Maintainance
/** * The external dependencies. */ import React from 'react'; import PropTypes from 'prop-types'; import { compose, withHandlers, setStatic } from 'recompose'; /** * The internal dependencies. */ import Field from 'fields/components/field'; import withStore from 'fields/decorators/with-store'; import withSetup fr...
admin/client/App/components/Navigation/Mobile/SectionItem.js
joerter/keystone
/** * A mobile section */ import React from 'react'; import MobileListItem from './ListItem'; import { Link } from 'react-router'; const MobileSectionItem = React.createClass({ displayName: 'MobileSectionItem', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, curren...
ui/src/plugins/epl-dashboard/components/SystemOverview.js
Hajto/erlangpl
// @flow import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Row, Col, ListGroup, ListGroupItem } from 'react-bootstrap'; import Measure from 'react-measure'; import Chart from './SystemOverviewChart'; import './SystemOverview.css'; class SystemOverview extends Component { sta...
webapp/app/components/Software/Table/index.js
EIP-SAM/SAM-Solution-Node-js
// // Table page software // import React from 'react'; import { Table } from 'react-bootstrap'; import Tr from 'components/Tr'; import Th from 'components/Th'; import Td from 'components/Td'; /* eslint-disable react/prefer-stateless-function */ export default class SoftwareTable extends React.Component { render()...
src/routes/route.js
sourabh-garg/react-starter-kit
import React from 'react'; import Main from '../components/main'; import HomePage from '../components/Homepage/homepage'; import { Route, IndexRoute } from "react-router"; module.exports = ( <Route path="/" component={Main}> <IndexRoute component={HomePage}/> </Route> );
client/src/components/Listing/AddListing/AddListingComponents/ListingDisplayImages.js
bwuphan/raptor-ads
import React from 'react'; import { Grid, Image } from 'semantic-ui-react'; import ListingDisplayImage from './ListingDisplayImage'; const ListingDisplayImages = ({ images, handleDelete }) => { return ( <Grid width={16}> <Grid.Column width={5} /> <Grid.Column width={6}> <div> {image...
src/svg-icons/content/report.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentReport = (props) => ( <SvgIcon {...props}> <path d="M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM12 17.3c-.72 0-1.3-.58-1.3-1.3 0-.72.58-1.3 1.3-1.3.72 0 1.3.58 1.3 1.3 0 .72-.58 1.3-1.3...
src/routes/Library/views/LibraryView.js
bhj/karaoke-forever
import PropTypes from 'prop-types' import React from 'react' import { Link } from 'react-router-dom' import ArtistList from '../components/ArtistList' import SearchResults from '../components/SearchResults' import TextOverlay from 'components/TextOverlay' import Spinner from 'components/Spinner' import styles from './L...
src/components/pinning-manager/pinning-manager-service-modal/PinningManagerServiceModal.js
ipfs/webui
import React from 'react' import classNames from 'classnames' import PropTypes from 'prop-types' import { connect } from 'redux-bundler-react' import { withTranslation, Trans } from 'react-i18next' import { useForm } from 'react-hook-form' // Components import { Modal, ModalBody, ModalActions } from '../../modal/Modal...
src/components/Layout/Footer.js
wolfpilot/Traveller
import React from 'react'; import { Link } from 'react-router-dom'; const Footer = () => { return ( <footer className="footer"> <div className="container container--padded"> <Link className="footer__credit hyperlink hyperlink--bordered" to="https://unsplash.com/developers" target="_blank">Made with ...
blueprints/view/files/__root__/views/__name__View/__name__View.js
febobo/react-redux-start
import React from 'react' type Props = { }; export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } export default <%= pascalEntityName %>
react-router/components/Nav.js
ybbkrishna/flux-examples
/** * Copyright 2014, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ import React from 'react'; import {Link} from 'react-router'; class Nav extends React.Component { static contextTypes = { router: React.PropTypes.func.isRequired }; ...
packages/cf-component-label/example/basic/component.js
koddsson/cf-ui
import React from 'react'; import { Label } from 'cf-component-label'; const LabelComponent = () => ( <p> <Label type="default">Default</Label> <Label type="info">Info</Label> <Label type="success">Success</Label> <Label type="warning">Warning</Label> <Label type="error">Error</Label> </p> ); ...
src/js/components/app-dataitem.js
maxkernw/React-Flux
import React from 'react'; import {Link} from 'react-router'; export default (props) => { let itemStyle = { borderBottom: '1px solid #ccc', paddingBottom: 15 } return ( <div className="col-xs-8 col-sm-2 col-md-6" style={itemStyle}> <h4>{props.item.name}</h4> <Link to={`/user/${props.item.id}`} clas...
quick-bench/src/index.js
FredTingaud/quick-bench-front-end
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.scss'; import { unregister } from './registerServiceWorker'; ReactDOM.render( <App className="full-size" />, document.getElementById('root') ); unregister();
test/test_helper.js
dragonman225/TODO-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...
src/clincoded/static/components/variant_interpretation_summary/evaluations.js
ClinGen/clincoded
'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import * as evidenceCodes from '../variant_central/interpretation/mapping/evidence_code.json'; class VariantInterpretationSummaryEvaluation extends Component { constructor(props) { super(props); } render() ...
lib/ui/widgets/iframe.js
SignalK/instrumentpanel
import React from 'react'; import { render } from 'react-dom'; import util from 'util' import BaseWidget, {defaultComponentDidMount, defaultComponentWillUnmount} from './basewidget'; function Iframe(id, options, streamBundle, instrumentPanel) { BaseWidget.call(this, id, options, streamBundle, instrumentPanel); th...
app/javascript/mastodon/components/status.js
summoners-riftodon/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Avatar from './avatar'; import AvatarOverlay from './avatar_overlay'; import RelativeTimestamp from './relative_timestamp'; import DisplayName from './display_name'; import StatusContent fro...
geonode/monitoring/frontend/src/containers/app/index.js
mcldev/geonode
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Style } from 'radium'; // Pages import Alerts from '../../pages/alerts'; import AlertConfig from '../../pages/alert-config'; import AlertsSettings from '../../pages/alerts-settings'; import ErrorDetails from ...
app/containers/AdminFournisseur/components/OffreFormContainer.js
Proxiweb/react-boilerplate
import React from 'react'; import PropTypes from 'prop-types'; import { createStructuredSelector } from 'reselect'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { isPristine } from 'redux-form'; import round from 'lodash/round'; import { saveOffre } from 'containers/Command...
test/integration/css-features/fixtures/browsers-new/pages/_app.js
JeromeFitz/next.js
import App from 'next/app' import React from 'react' import './styles.css' class MyApp extends App { render() { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
examples/create-react-app/src/App.js
zeit/now-cli
import React from 'react'; import { useEffect, useState } from 'react'; import './App.css'; function App() { const [date, setDate] = useState(null); useEffect(() => { async function getDate() { const res = await fetch('/api/date'); const newDate = await res.text(); setDate(newDate); } ...
docs/app/Examples/modules/Dropdown/Types/index.js
clemensw/stardust
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ContributionPrompt from 'docs/app/Components/ComponentDoc/ContributionPrompt' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const DropdownTypesExamples = () => ( <ExampleSe...
node_modules/lite-server/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
dope93x/emoplay-2
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/Components/Banner.js
Zangriev/Kentico
import React from 'react'; import BackgroundImage from '../Images/banner-default.jpg'; const Banner = (props) => { return ( <section className="banner-section" style={{ backgroundImage: "url(" + BackgroundImage + ")" }}> <h2 className="banner-heading">Roasting premium coffee</h2> <p className="banner...
node_modules/redux-form/es/Form.js
Starnes81/ReduxBlogTut
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
src/page/Auth/LoginRedirectPage.js
dovydasvenckus/time-tracker-web
import React from 'react'; import { AuthConsumer } from '../../utils/auth/authProvider'; const LoginRedirectPage = () => ( <AuthConsumer> {({ signInRedirect }) => { signInRedirect(); return <span>loading</span>; }} </AuthConsumer> ); export default LoginRedirectPage;
utilities/dom.js
salesforce/design-system-react
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */ /* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */ /* eslint-disable consistent-return */ import React from 'react'; /** * Traverse all children */ function flatMapChildren(children, iterator) { const result = []; ...
src/components/Panel.js
edauenhauer/google-drive-copy-folder
/** * Information message container */ 'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import Alert from './Alert'; export default function Panel(props) { return ( <Alert label={props.label} className="alert--neutral"> {props.children} </Alert> ); } Panel.propTypes = ...
src/components/video_detail.js
gokulraj-ece/React-youtube
import React from 'react'; // ({ video }) or ({ props }) and then video=props.video const VideoDetail = ({ video }) => { if (!video) { return <div>Loading...</div>; } const videoId = video.id.videoId; const url = `https://www.youtube.com/embed/${videoId}`;//string interpolation //const url = "https://www....
src/components/Main.js
yeWangye/gallery-by-react
require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; import ReactDOM from 'react-dom' // 获取图片相关的数据 var imageDatas = require('../data/imageDatas.json'); // 利用自执行函数, 将图片名信息转成图片URL路径信息 imageDatas = (function (imageDatasArr) { for (var i = 0, j = imageDatasArr.length; i < j; i...
src/MessageContainer.js
FaridSafi/react-native-gifted-messenger
/* eslint no-console: 0, no-param-reassign: 0, no-use-before-define: ["error", { "variables": false }], no-return-assign: 0, react/no-string-refs: 0, react/sort-comp: 0 */ import PropTypes from 'prop-types'; import React from 'react'; import { FlatList, View, StyleSheet, Keyboard, TouchableOpa...
app/javascript/mastodon/features/picture_in_picture/components/header.js
Ryanaka/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from 'mastodon/components/icon_button'; import { Link } from 'react-rou...
src/components/QueueCancelConfirmDialog.js
branch-bookkeeper/pina
import React from 'react'; import PropTypes from 'prop-types'; import Button from '@material-ui/core/Button'; import Dialog from '@material-ui/core/Dialog'; import DialogTitle from '@material-ui/core/DialogTitle'; import DialogActions from '@material-ui/core/DialogActions'; import Slide from '@material-ui/core/Slide'; ...
src/example.js
gcedo/component-sections-card
import React from 'react'; import SectionsCard from './index'; import sectionsCardData from './context'; sectionsCardData.media.map((mediaLink) => { mediaLink.icon = { useBackground: true, color: 'chicago', icon: mediaLink.meta, }; return mediaLink; }); export default ( <SectionsCard data={section...
app/src/Gallery/components/Selectors.js
rmonnier/hypertube
import React, { Component } from 'react'; import { injectIntl } from 'react-intl'; class Selectors extends Component { handleSelect = (event) => { const name = event.target.name; const value = event.target.value; this.props.onSelect(name, value); } render() { const lang = this.props.intl.locale...
services/QuillLMS/client/app/bundles/Shared/components/draftJSCustomPlugins/addLinkPlugin.js
empirical-org/Empirical-Core
import React from 'react'; export const linkStrategy = (contentBlock, callback, contentState) => { contentBlock.findEntityRanges( (character) => { const entityKey = character.getEntity(); return ( entityKey !== null && contentState.getEntity(entityKey).getType() === 'LINK' ); ...
src/deposit/DepositMobile.js
binary-com/binary-next-gen
import React from 'react'; import MobilePage from '../containers/MobilePage'; import DepositContainer from './DepositContainer'; export default (props) => ( <MobilePage toolbarShown={false} backBtnBarTitle="Deposit"> <DepositContainer {...props} /> </MobilePage> );
blueocean-material-icons/src/js/components/svg-icons/image/camera.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageCamera = (props) => ( <SvgIcon {...props}> <path d="M9.4 10.5l4.77-8.26C13.47 2.09 12.75 2 12 2c-2.4 0-4.6.85-6.32 2.25l3.66 6.35.06-.1zM21.54 9c-.92-2.92-3.15-5.26-6-6.34L11.88 9h9.66zm.26 1h-7.49l.29.5 4.76 8.25C21 16.97 22 14.61 22 12c...
examples/transitions/app.js
schnerd/react-router
import React from 'react' import { createHistory, useBasename } from 'history' import { Router, Route, Link, History, Lifecycle } from 'react-router' const history = useBasename(createHistory)({ basename: '/transitions' }) const App = React.createClass({ render() { return ( <div> <ul> ...
src/svg-icons/hardware/keyboard-arrow-left.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardArrowLeft = (props) => ( <SvgIcon {...props}> <path d="M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"/> </SvgIcon> ); HardwareKeyboardArrowLeft = pure(HardwareKeyboardArrowLeft); Hardware...
floodwatch/src/js/components/profile_demographics/ProfileDemographics.js
O-C-R/floodwatch
// @flow import React, { Component } from 'react'; import { Col, Row, Button, ListGroup, ListGroupItem } from 'react-bootstrap'; import _ from 'lodash'; import scrollTo from 'scroll-to'; import log from 'loglevel'; import FWApiClient from '../../api/api'; import Age from './Age'; import Demographic from './Demograph...
src/svg-icons/action/rowing.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRowing = (props) => ( <SvgIcon {...props}> <path d="M8.5 14.5L4 19l1.5 1.5L9 17h2l-2.5-2.5zM15 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 20.01L18 24l-2.99-3.01V19.5l-7.1-7.09c-.31.05-.61.07-.91.07v-...
src/routes/index.js
hoop33/warnerxmas
import React from 'react'; import { Route, IndexRoute } from 'react-router'; // NOTE: here we're making use of the `resolve.root` configuration // option in webpack, which allows us to specify import paths as if // they were from the root of the ~/src directory. This makes it // very easy to navigate to files regardle...
src/scripts/components/LeaderBoard.js
drankadank/client
'use strict'; import React from 'react'; import LeaderItem from './LeaderItem'; import Firebase from 'firebase'; import moment from 'moment'; export default class LeaderBoard extends React.Component { constructor(props) { super(props); this.state = { leaders: [] }; this.fireRef = new Firebase(...
examples/official-storybook/stories/addon-design-assets.stories.js
kadirahq/react-storybook
import React from 'react'; export default { title: 'Addons/Design assets', parameters: { options: { selectedPanel: 'storybook/design-assets/panel', }, }, }; export const SingleImage = () => <div>This story should a single image in the assets panel</div>; SingleImage.storyName = 'single image'; ...
server/sonar-web/src/main/js/apps/overview/qualityGate/EmptyQualityGate.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
react/eventwizard/components/teamsTab/TeamList.js
bdaroz/the-blue-alliance
import React from 'react' import PropTypes from 'prop-types' import TeamItem from './TeamItem' import TEAM_SHAPE from '../../constants/ApiTeam' const TeamList = (props) => ( <div> {props.teams.length > 0 && <p> {props.teams.length} teams attending </p> } <ul> {props.teams.map((team) ...
src/components/contemporary/TestimonialForm.js
bharney/YogaMarieMills
import React from 'react'; import { Link } from 'react-router'; import TextInput from '../common/TextInput'; import Admin from '../common/Admin'; import TestimonialDetailsForm from './TestimonialDetailsForm'; import Editor from 'draft-js-plugins-editor'; import createInlineToolbarPlugin from 'draft-js-inline-toolbar-pl...
src/charts/legend/Legend.js
jchen-eb/britecharts-react
import React from 'react'; import PropTypes from 'prop-types'; import legendChart from './legendChart'; export default class Legend extends React.Component { static defaultProps = { chart: legendChart, } static propTypes = { /** * Gets or Sets the colorSchema of the chart ...
app/components/ProjectSelector.js
azlyth/redub
import fs from 'fs-extra'; import path from 'path'; import { remote } from 'electron'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { Button } from 'react-bootstrap'; import * as u from '../utils'; import FileInput from './FileInput'; import s...
local-cli/templates/HelloNavigation/views/chat/ChatScreen.js
htc2u/react-native
'use strict'; import React, { Component } from 'react'; import { ActivityIndicator, Button, ListView, StyleSheet, Text, TextInput, View, } from 'react-native'; import KeyboardSpacer from '../../components/KeyboardSpacer'; import Backend from '../../lib/Backend'; export default class ChatScreen extends C...
src/routes/Experiments/components/ExperimentsView.js
popaulina/grackle
import React from 'react'; import { connect } from 'react-redux' import { Field, change } from 'redux-form' import { Button, Grid, Col, Row } from 'react-bootstrap' import ReactAudioPlayer from 'react-audio-player' import './Experiments.scss' import { WithContext as ReactTags } from 'react-tag-input'; import { Bootstra...
src/svg-icons/places/child-care.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesChildCare = (props) => ( <SvgIcon {...props}> <circle cx="14.5" cy="10.5" r="1.25"/><circle cx="9.5" cy="10.5" r="1.25"/><path d="M22.94 12.66c.04-.21.06-.43.06-.66s-.02-.45-.06-.66c-.25-1.51-1.36-2.74-2....
src/index.js
globmont/espionage
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import Game from './Game' import './index.css'; import { Router, Route, hashHistory } from 'react-router' ReactDOM.render( <Router history={hashHistory}> <Route path="/" component={App}></Route> <Route path="game/:serverNa...
src/index.js
shaunstanislaus/react-transform-boilerplate
import React from 'react'; import { App } from './App'; React.render(<App />, document.getElementById('root'));
src/forms/widgets/FileWidget.js
austinsc/react-gooey
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { dataURItoBlob, shouldRender, setState } from '../utils'; function addNameToDataURL(dataURL, name) { return dataURL.replace(';base64', `;name=${name};base64`); } function processFile(file) { const { name, size, type } = file; ...
examples/huge-apps/routes/Course/routes/Assignments/routes/Assignment/components/Assignment.js
jamiehill/react-router
import React from 'react'; class Assignment extends React.Component { render () { var { courseId, assignmentId } = this.props.params; var { title, body } = COURSES[courseId].assignments[assignmentId] return ( <div> <h4>{title}</h4> <p>{body}</p> </div> ); } } export d...
src/Parser/Rogue/Outlaw/Modules/RogueCore/Energy.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Wrapper from 'common/Wrapper'; import resourceSuggest from 'Parser/Core/Modules/ResourceTracker/ResourceSuggest'; import EnergyTracker from '../../../Common/Reso...
Libraries/CustomComponents/Navigator/Navigator.js
mrspeaker/react-native
/** * Copyright (c) 2013-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. * * Facebook,...
frontend/src/components/recipes/edit/components/Step2/Step2.js
jf248/scrape-the-plate
import React from 'react'; import { Compose } from 'lib/react-powerplug'; import * as Enhanced from 'lib/mui-components'; import { RecordForm } from 'controllers/record-form'; import validate from './validate'; import normalize from './normalize'; import Step2Pres from './Step2Pres'; function Step2(props) { const ...
app/src/js/components/settings/general.js
tahnik/devRantron
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { SETTINGS } from '../../consts/types'; import Toggle from './toggle'; import Text from './text'; import Button from './button'; import Slider from './slider'; const { remote } = require('electron'); class General extends Component {...
src/containers/Activation.js
hanyulo/twreporter-react
import CSSTransitionGroup from 'react-transition-group/CSSTransitionGroup' import LoadingSpinner from '../components/Spinner' import React from 'react' import get from 'lodash/get' import styled from 'styled-components' import withLayout from '../helpers/with-layout' import withRouter from 'react-router/lib/withRouter'...
src/rsg-components/Styled/Styled.js
bluetidepro/react-styleguidist
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import createStyleSheet from '../../styles/createStyleSheet'; export default styles => WrappedComponent => { const componentName = WrappedComponent.name.replace(/Renderer$/, ''); return class extends Component { static displayName = `Sty...
fields/types/geopoint/GeoPointColumn.js
snowkeeper/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var GeoPointColumn = React.createClass({ displayName: 'GeoPointColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue...
js/components/fab/multiple.js
bengaara/simbapp
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Platform, View } from 'react-native'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Fab, Button, IconNB, Left, Right, Body, Icon } from 'native-base'; import { Actions } from ...
services/ui/.storybook/decorators/AnonymousUser.js
amazeeio/lagoon
import React from 'react'; import { AuthContext } from 'lib/Authenticator'; const noUser = { apiToken: 'dummy-value-not-used-but-evals-to-true', authenticated: false, provider: 'local-auth', providerData: {}, user: {}, }; export default storyFn => ( <AuthContext.Provider value={noUser}> {storyFn()} ...
apps/marketplace/components/BuyerDashboard/BuyerDashboardHelp.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' const BuyerDashboardHelp = () => ( <div className="row"> <div className="col-xs-12"> <span /> <h2 className="au-display-lg">Need a hand?</h2> <p> <a href="/buyers-guide" target="_blank" rel="noopener noreferrer"> Read the buyers guide </a>{' '...
jenkins-design-language/src/js/components/material-ui/svg-icons/action/chrome-reader-mode.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionChromeReaderMode = (props) => ( <SvgIcon {...props}> <path d="M13 12h7v1.5h-7zm0-2.5h7V11h-7zm0 5h7V16h-7zM21 4H3c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 15h-9V6h9v13z"/> </SvgIcon> ); ActionChromeReaderM...
src/Tabs.js
mmarcant/react-bootstrap
import React from 'react'; import requiredForA11y from 'react-prop-types/lib/isRequiredForA11y'; import uncontrollable from 'uncontrollable'; import Nav from './Nav'; import NavItem from './NavItem'; import UncontrolledTabContainer from './TabContainer'; import TabContent from './TabContent'; import { bsClass as setBs...
src/index.js
rawild/healthcare4allNY
import React from 'react'; import ReactDOM from 'react-dom'; import App from './js/components/App'; import registerServiceWorker from './registerServiceWorker'; import './index.css'; import { AppContainer } from 'react-hot-loader' import { Provider } from 'react-redux' import { createStore } from 'redux' import todoApp...
yycomponent/modal/Modal.js
77ircloud/yycomponent
import React from 'react'; import { Modal as _Modal } from 'antd'; class Modal extends React.Component{ constructor(props){ super(props); } render(){ return (<_Modal {...this.props}/>); } } Modal.info = _Modal.info; Modal.success = _Modal.success; Modal.error = _Modal.error; Modal.warning = _Modal.war...
src/containers/DevTools.js
abkfenris/inferno-react
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' export default createDevTools( <DockMonitor toggleVisibilityKey='ctrl-h' changePositionKey='ctrl-q' > <LogMonitor /> </Dock...
pollard/components/SearchSongConnector.js
spencerliechty/pollard
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { addSong, artistChange, clearSearchSongInputs, searchSong, titleChange, setError, clearError, } from '../actions/Actions.js'; import SearchSongDisplay from './SearchSongDi...
components/carousel/carouselPage.js
Travix-International/travix-ui-kit
import PropTypes from 'prop-types'; import React from 'react'; export default function CarouselPage({ images, current }) { return ( <div className="ui-carousel-page"> {current + 1} / {images.length} </div> ); } CarouselPage.propTypes = { images: PropTypes.array.isRequired, current: PropTypes.num...
src/components/Grid/Grid.js
HichamBenjelloun/react-examples
import React from 'react'; import Square from './Square'; import './Grid.css'; const Grid = ({ size, }) => { const [height, width] = size.split('x').map(el => Number(el)); if (!Number.isInteger(height) || !Number.isInteger(width)) { return ( <span classNam...
src/_wlk/icons/Instagram.js
welovekpop/uwave-web-welovekpop.club
import React from 'react'; import SvgIcon from '@material-ui/core/SvgIcon'; // Instagram icon from the Font-Awesome icon font by Dave Gandy: // http://fontawesome.io/icon/instagram/ // https://github.com/FortAwesome/Font-Awesome /* eslint-disable max-len */ const InstagramIcon = props => ( <SvgIcon viewBox="0 0 179...
src/svg-icons/content/reply.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentReply = (props) => ( <SvgIcon {...props}> <path d="M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"/> </SvgIcon> ); ContentReply = pure(ContentReply); ContentReply.displayName = 'ContentReply'...
app/javascript/mastodon/features/compose/components/upload_form.js
ambition-vietnam/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import UploadProgressContainer from '../containers/upload_progress_container'; import ImmutablePureComponent from 'react-immutable-pure-component'; import UploadContainer from '../containers/upload_container'; export default class U...
src/helpers/universalRouter.js
clkao/react-redux-universal-hot-example
import qs from 'query-string'; import React from 'react'; import {match, RoutingContext} from 'react-router'; import createRoutes from '../routes'; import {Provider} from 'react-redux'; const getFetchData = (component = {}) => { return component.WrappedComponent ? getFetchData(component.WrappedComponent) : c...
packages/material-ui-icons/src/Folder.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Folder = props => <SvgIcon {...props}> <path d="M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z" /> </SvgIcon>; Folder = pure(Folder); Folder.muiName = 'SvgI...
packages/react-error-overlay/src/containers/StackTrace.js
brysgo/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 StackFrame from './StackFrame'; import Collapsible from '../components/Coll...
app/javascript/mastodon/features/ui/components/column_subheading.js
alarky/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const ColumnSubheading = ({ text }) => { return ( <div className='column-subheading'> {text} </div> ); }; ColumnSubheading.propTypes = { text: PropTypes.string.isRequired, }; export default ColumnSubheading;
app/javascript/mastodon/components/video_player.js
Toootim/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from './icon_button'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { isIOS } from '../is_mobile'; const messages = defineMessages({ toggle_...
src/components/Lobby/Tournament/Match/index.js
socialgorithm/ultimate-ttt-web
import React from 'react'; import classNames from 'classnames'; import { Grid, Progress } from 'semantic-ui-react'; import './index.scss'; export default (props) => { const { match, totalGames } = props; const stats = match.stats; const colorA = stats.wins[0] > stats.wins[1] ? 'green' : null; const co...
src/@ui/DashboardSubheader/index.js
NewSpring/Apollos
import React from 'react'; import { View } from 'react-native'; import { compose } from 'recompose'; import PropTypes from 'prop-types'; import { H6, H7 } from '@ui/typography'; import styled from '@ui/styled'; import Button from '@ui/Button'; import { enhancer as mediaQuery } from '@ui/MediaQuery'; const Row = compos...
src/routes/login/Login.js
takahashik/todo-app
/** * 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-...
thinking-in-react/step-2-part-3.js
hackerrdave/nodeschool
import React from 'react'; export const ProductCategoryRow = React.createClass({ render() { return ( <tr> <th colSpan={2}>{this.props.category}</th> </tr> ); } }); export const ProductRow = React.createClass({ render() { const product = this.props.product; const style = { ...
src/title/TitlePrivate.js
saketkumar95/zulip-mobile
/* @flow */ import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import { Avatar } from '../common'; const styles = StyleSheet.create({ wrapper: { flexDirection: 'row', alignItems: 'center', }, title: { fontSize: 16, paddingLeft: 4, }, }); export default class Tit...
client.js
jhen0409/isomorphic-react-flux-boilerplate
'use strict'; require('!style!raw!sass!./sass/style.scss'); import React from 'react'; import Router from 'react-router'; import app from './scripts/app'; import navigateAction from './scripts/actions/navigate'; const HistoryLocation = Router.HistoryLocation; const dehydratedState = window.App; window.React = React; ...
packages/lore-react-forms-bootstrap/src/schemas/actions.js
lore/lore-forms
import React from 'react'; import { FormSection, PropBarrier } from 'lore-react-forms'; export default function(form) { return (actions) => { return ( <FormSection style={{ padding: '0 20px 20px 20px', marginTop: '20px', position: 'relative', textAlign: 'right' }}> <PropBarrier> {actions}...
pages/start.js
zapier/formatic
import React from 'react'; import 'isomorphic-unfetch'; import Formatic from '@/src/formatic'; import Page from '@/docs/components/Page'; import Section from '@/docs/components/Section'; import SubSection from '@/docs/components/SubSection'; import CodeBlock from '@/docs/components/CodeBlock'; import Example from '@/d...
app/javascript/mastodon/features/keyboard_shortcuts/index.js
anon5r/mastonon
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/svg-icons/navigation/close.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let 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 = pure(Navig...