path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/client.js
pavlosvos/krifominima
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import 'babel-polyfill'; import React from 'react'; import...
packages/bonde-admin-canary/src/components/Tutorial/Dialog/index.js
ourcities/rebu-client
import React from 'react' import PropTypes from 'prop-types' import Context from '../Context' import DialogTooltip from './DialogTooltip' export class RegisterDialog extends React.Component { componentDidMount () { const { name, context } = this.props context.registerStep(name) } render () { const {...
src/js/components/icons/base/PlatformFreebsd.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
frontend/containers/form/CaptchaForm.js
datoszs/czech-lawyers
import React from 'react'; import PropTypes from 'prop-types'; import {Form} from 'react-bootstrap'; import {reduxForm, Field} from 'redux-form/immutable'; import Captcha from 'react-google-recaptcha'; import {wrapEventStop} from '../../util'; import {siteKey} from '../../serverAPI'; const CaptchaComponent = ({input, ...
packages/bonde-admin/src/pages/admin/container.js
ourcities/rebu-client
import React from 'react' import { Switch } from 'react-router-dom' import { graphql } from 'react-apollo' import FetchCurrentUser from '@/account/queries/current-user' import { connect } from 'react-redux' import { load } from '@/account/redux/action-creators' import { Loading } from '@/components/await' // Routes im...
app/javascript/mastodon/features/public_timeline/index.js
rekif/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader fro...
src/components/Button/ButtonAnchor.js
GetAmbassador/react-ions
import React from 'react' import PropTypes from 'prop-types' import { Link } from 'react-router' import style from './style.scss' import classNames from 'classnames/bind' const ButtonAnchor = props => { const cx = classNames.bind(style) const collapseClass = props.collapse ? 'collapse' : null const btnAnchorClas...
src/Card/CardSubtitle.js
kradio3/react-mdc-web
import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; const propTypes = { className: PropTypes.string, children: PropTypes.node, }; const CardSubtitle = ({ className, children }) => ( <h2 className={classnames('mdc-card__subtitle', className)} > {children}...
app/containers/LoginCallback/index.js
belongapp/belong
import React from 'react'; import { connect } from 'react-redux'; import { loginCallbackRequest } from './actions'; export class LoginCallback extends React.Component { // eslint-disable-line react/prefer-stateless-function static propTypes = { dispatchLoginCallbackRequest: React.PropTypes.func.isRequired, }; ...
test/helpers.js
zerkms/react-bootstrap
import React from 'react'; import { cloneElement } from 'react'; export function shouldWarn(about) { console.warn.called.should.be.true; console.warn.calledWithMatch(about).should.be.true; console.warn.reset(); } /** * Helper for rendering and updating props for plain class Components * since `setProps` is de...
static/src/components/Layout.js
Termnator/mikebot
// @flow import React from 'react'; import ReactDOM from 'react-dom'; import AirhornStatsStore from '../stores/AirhornStatsStore'; import Cloud from './Cloud'; import IslandPond from './islands/IslandPond'; import IslandTree from './islands/IslandTree'; import IslandTrees from './islands/IslandTrees'; import IslandTen...
app/javascript/mastodon/features/compose/components/upload.js
danhunsaker/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 { FormattedMessage } fr...
react/features/notifications/components/native/Notification.js
bgrozev/jitsi-meet
// @flow import React from 'react'; import { Text, TouchableOpacity, View } from 'react-native'; import { translate } from '../../../base/i18n'; import { Icon, IconClose } from '../../../base/icons'; import AbstractNotification, { type Props } from '../AbstractNotification'; import styles from './styles'; /** ...
src/svg-icons/hardware/security.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareSecurity = (props) => ( <SvgIcon {...props}> <path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"/> </SvgIcon> ); Hardwa...
src/js/components/ui/Textarea/Textarea.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import styles from './Textarea.scss'; export default class Textarea extends Component { static propTypes = { placeholder : PropTypes.string, defaultValue: PropTypes.oneOfType([PropTypes.number, PropTypes.string]), ...
app/javascript/mastodon/features/compose/components/reply_indicator.js
TheInventrix/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...
src/svg-icons/notification/time-to-leave.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationTimeToLeave = (props) => ( <SvgIcon {...props}> <path d="M18.92 5.01C18.72 4.42 18.16 4 17.5 4h-11c-.66 0-1.21.42-1.42 1.01L3 11v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-....
hops/src/App.js
Hops-401/hops-native
import React, { Component } from 'react'; import { StyleSheet, Text, View, AppRegistry } from 'react-native'; import { NativeRouter, Route, Link, Switch } from 'react-router-native'; import Home from './components/home'; import LoginContainer from './containers/LoginContainer'; import SignUpContainer from './containers...
docs/app/Examples/modules/Accordion/Variations/AccordionExampleInverted.js
clemensw/stardust
import _ from 'lodash' import faker from 'faker' import React from 'react' import { Accordion, Segment } from 'semantic-ui-react' const panels = _.times(3, () => ({ title: faker.lorem.sentence(), content: faker.lorem.paragraphs(), })) const AccordionExampleInverted = () => ( <Segment inverted> <Accordion pa...
miniact3/client/index.js
eliorivero/miniact
import React from 'react'; import ReactDOM from 'react-dom'; class DaleReact extends React.Component { render() { return <div>{ this.props.app } listo en React!</div>; } } ReactDOM.render(<DaleReact app="Miniact" />, document.getElementById( 'miniact' ) );
modules/pages/client/components/FaqTribes.component.js
Trustroots/trustroots
import React from 'react'; import Faq from '@/modules/pages/client/components/Faq.component.js'; import { Trans, useTranslation } from 'react-i18next'; export default function FaqTribes() { const { t } = useTranslation('pages'); return ( <Faq category="circles"> <div className="faq-question" id="what-ar...
app/jsx/context_cards/SubmissionProgressBars.js
venturehive/canvas-lms
/* * Copyright (C) 2016 - 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...
src/svg-icons/editor/monetization-on.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorMonetizationOn = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1.41 16.09V20h-2.67v-1.93c-1.71-.36-3.16-1.46-3.27-3.4h1.96c.1 1.05.82 1.87 2...
components/BookDetailApp/BookDetailApp.react.js
react-douban/douban-book-web
import React from 'react' import { render } from 'react-dom' import request from 'request' import BookDetail from './BookDetail.react' import Config from '../Config.react' const BookDetailApp = React.createClass({ getInitialState() { return { book: {}, loading: true } }, componentDidMount() { const b...
src/containers/Transition/Transition.js
dongxiaofen/react-redux-motion
import React, { Component } from 'react'; import { TransitionDemo } from 'components'; export default class Transition extends Component { constructor(props) { super(props); this.state = {}; } render() { return ( <div style={{width: '500px', margin: '0 auto'}}> <TransitionDemo /> ...
src/components/lists/AddressOutputList.js
openvcash/vcash-electron
import React from 'react' import List from 'react-list' import { translate } from 'react-i18next' import { inject, observer } from 'mobx-react' /** Component */ import AddressOutputListItem from './AddressOutputListItem.js' @translate(['common']) @inject('gui', 'send') @observer class AddressOutputList extends React....
packages/react-cookie-demo/src/client.js
eXon/react-cookie
import React from 'react'; import ReactDOM from 'react-dom'; import { CookiesProvider } from 'react-cookie'; import App from './components/App'; const appEl = document.getElementById('main-app'); ReactDOM.render( <CookiesProvider> <App /> </CookiesProvider>, appEl );
imports/client/components/About/AboutBand.js
evancorl/skate-scenes
import React from 'react'; import Scroll from 'react-scroll'; const ScrollElement = Scroll.Element; class AboutBand extends React.Component { shouldComponentUpdate() { return false; } render() { const languages = ['HTML', 'CSS', 'JavaScript', 'C#', 'SQL', 'PHP']; const tools = ['Meteor', 'React', '...
src/interface/report/PlayerSelection/index.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPECS from 'game/SPECS'; import ROLES from 'game/ROLES'; import PlayerTile from './PlayerTile'; import './PlayerSelection.scss'; const ROLE_SORT_KEY = { [ROLES.TANK]: 0, [ROLES.HEALER]: 1, [ROLES.DPS.MELEE]: 2, [ROLES.DPS.RANGED]: 2, }; fu...
src/client/assets/js/nodes/outputs/export/node.js
me-box/databox-sdk
import React from 'react'; //import composeNode from 'utils/composeNode'; import Textfield from 'components/form/Textfield'; import Select from 'components/form/Select'; import Cell from 'components/Cell'; import Cells from 'components/Cells'; import { formatSchema } from 'utils/utils'; import {configNode} from 'utils/...
lib/ui/widgets/notification.js
SignalK/instrumentpanel
import React from 'react'; import { render } from 'react-dom'; import {Bus} from 'baconjs'; import util from 'util' import BaseWidget from './basewidget'; var notificationLevels = { "nominal": 0, "normal": 1, "alert": 2, "warn": 3, "alarm": 4, "emergency": 5 }; let defaultValue = { state: 'nominal', ...
tests/site2/code/components/projects.js
dominikwilkowski/cuttlebelle
import PropTypes from 'prop-types'; import React from 'react'; /** * The Projects component for Listing two projects */ const Projects = ({ projects }) => ( <table> <tbody> <tr><td> { projects[ 0 ] } </td><td> { projects[ 1 ] } </td></tr> </tbody> </table> ); Projects.propTypes = { /** *...
app/containers/Page/index.js
ZhengRaymond/portfolio
/*** PRESENTATIONAL COMPONENT ***/ import React from 'react'; import styled from 'styled-components'; import Header, { SubHeader } from 'components/header'; import { fadein, fadein2 } from 'styles/animations'; import './page.css'; var FAExternalLink = require('react-icons/lib/fa/external-link'); const PanelGroup = s...
src/App.js
sombreroEnPuntas/trust-builder
import React, { Component } from 'react'; import reviews from './mocks/reviews'; import Widget from './widget'; import './App.scss'; class App extends Component { render() { return ( <div className="App"> <Widget reviews={reviews} totalCards={reviews.length} /> </div> ); } } export ...
until_201803/react/modern/router/src/RouterExample.js
shofujimoto/examples
import React from 'react' import { BrowserRouter as Router, Route, Link } from 'react-router-dom' const RouterApp = () => ( <Router> <div style={{margin: 20}}> <Route exact path='/' component={Home} /> <Route path='/easy' component={EasyCourse} /> <Route path='/normal' component={NormalCo...
src/jsx-render-engine/strategy/react-router/v4.js
yeojz/metalsmith-react-templates
import React from 'react'; import {renderToStaticMarkup, renderToString} from 'react-dom/server'; import {StaticRouter} from 'react-router'; import constants from '../../constants'; import Provider from './Provider'; function getRouter(location, context, defaultProps, routes) { return ( <StaticRouter location={l...
client/index.js
denistakeda/evolution
/** * Client entry point */ import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import App from './App'; import { configureStore } from './store'; import transit from "transit-immutable-js"; // Initialize store const store = configureStore(transit.fromJSON(...
client/src/components/Confirmation.js
jeffersonsteelflex69/mytv
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; import api from '../lib/api'; class Confirmation extends Component { componentDidMount(){ if(!Object.keys(this.props.location.query).length > 0) return let code = this.props.location.query["code"]...
fields/components/columns/CloudinaryImageSummary.js
pr1ntr/keystone
import React from 'react'; const IMAGE_SIZE = 18; const linkStyle = { marginRight: 8, }; const boxStyle = { borderRadius: 3, display: 'inline-block', height: IMAGE_SIZE, overflow: 'hidden', verticalAlign: 'middle', width: IMAGE_SIZE, }; const imageStyle = { display: 'block', height: IMAGE_SIZE, left: '50%',...
webpack/components/WithOrganization/withOrganization.js
tstrachota/katello
import React, { Component } from 'react'; import { orgId } from '../../services/api'; import SetOrganization from '../SelectOrg/SetOrganization'; import titleWithCaret from '../../helpers/caret'; function withOrganization(WrappedComponent, redirectPath) { return class CheckOrg extends Component { componentDidUpd...
src/svg-icons/action/gavel.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionGavel = (props) => ( <SvgIcon {...props}> <path d="M1 21h12v2H1zM5.245 8.07l2.83-2.827 14.14 14.142-2.828 2.828zM12.317 1l5.657 5.656-2.83 2.83-5.654-5.66zM3.825 9.485l5.657 5.657-2.828 2.828-5.657-5.657z...
packages/icons/src/md/hardware/Headset.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdHeadset(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M24 5C14.06 5 6 13.06 6 23v14c0 3.31 2.69 6 6 6h6V27h-8v-4c0-7.73 6.27-14 14-14s14 6.27 14 14v4h-8v16h6c3.31 0 6-2.69 6-6V23c0-9.94-8.06-18-18-18z" /...
example/src/index.js
ryo33/redux-pages
import React from 'react' import ReactDOM from 'react-dom' import { createStore, combineReducers, applyMiddleware } from 'redux' import { Provider } from 'react-redux' import createLogger from 'redux-logger' import createHistory from 'history/createHashHistory' import { createPagesReducer } from 'redux-pages' import ...
src/routes/register/Register.js
foxleigh81/foxweb
/** * 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-...
client/admin/settings/inputs/PasswordSettingInput.js
subesokun/Rocket.Chat
import { Box, Field, Flex, PasswordInput } from '@rocket.chat/fuselage'; import React from 'react'; import { ResetSettingButton } from '../ResetSettingButton'; export function PasswordSettingInput({ _id, label, value, placeholder, readonly, autocomplete, disabled, hasResetButton, onChangeValue, onResetButto...
packages/material-ui-icons/src/VerticalAlignBottom.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let VerticalAlignBottom = props => <SvgIcon {...props}> <path d="M16 13h-3V3h-2v10H8l4 4 4-4zM4 19v2h16v-2H4z" /> </SvgIcon>; VerticalAlignBottom = pure(VerticalAlignBottom); VerticalAlignBottom.muiName = ...
frontend/src/Components/Form/AutoCompleteInput.js
lidarr/Lidarr
import jdu from 'jdu'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import AutoSuggestInput from './AutoSuggestInput'; class AutoCompleteInput extends Component { // // Lifecycle constructor(props, context) { super(props, context); this.state = { suggestions: [] ...
src/mui/input/BooleanInput.js
matteolc/admin-on-rest
import React from 'react'; import PropTypes from 'prop-types'; import Toggle from 'material-ui/Toggle'; import FieldTitle from '../../util/FieldTitle'; const styles = { block: { margin: '1rem 0', maxWidth: 250, }, label: { color: 'rgba(0, 0, 0, 0.298039)', }, toggle: { ...
src/subscribe.js
DigitalGlobe/jetset
import React from 'react'; import { Map as iMap } from 'immutable'; import store from './store'; import logger, { formatBranchArgs } from './lib/log'; const isObject = item => !Array.isArray( item ) && typeof item === 'object'; function subscribe({ local, paths }) { return Component => { const rootPath = loc...
201601react/许海英/react/app/index.js
zhufengreact/homework
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './container/App'; let root = document.getElementById('app'); ReactDOM.render( <App />, root );
src/containers/weather-list.js
86mattw/weather
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Chart from '../components/chart'; class WeatherList extends Component { renderWeather(cityData) { const name = cityData.city.name; const temps = cityData.list.map(weather => weather.main.temp); const pressures = cit...
app/containers/NotFoundPage/index.js
mamaracas/MEventsRegistration
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route */ import React from 'react'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; import messages from './messages'; export default function NotFound() { return ( <article> ...
examples/full-example/src/isomorphic/base/components/lazy_content.js
yahoo/mendel
/* Copyright 2015, Yahoo Inc. Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms. */ import React from 'react'; class Button extends React.Component { render() { return <span style={{ color: 'blue' }}> Content inside lazy </span>; } } expo...
src/parser/priest/shadow/modules/talents/ShadowCrash.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS/index'; import Analyzer from 'parser/core/Analyzer'; import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox'; import ItemDamageDone from 'interface/others/ItemDamageDone'; import { formatNumber } from 'common/format'; impor...
packages/material-ui-icons/src/AirlineSeatFlat.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M22 11v2H9V7h9c2.21 0 4 1.79 4 4zM2 14v2h6v2h8v-2h6v-2H2zm5.14-1.9c1.16-1.19 1.14-3.08-.04-4.24-1.19-1.16-3.08-1.14-4.24.04-1.16 1.19-1.14 3.08.04 4.24 1.19 1.16 3.08 1.14 4.24-.04z" /></g> , 'Airl...
packages/veritone-widgets/src/widgets/MediaPlayer/DefaultControlBar.js
veritone/veritone-sdk
import React from 'react'; import { connect } from 'react-redux'; import cx from 'classnames'; import { get } from 'lodash'; import { bindActionCreators } from 'redux'; import { VolumeMenuButton, ControlBar, ReplayControl, ForwardControl, PlayToggle, playerActions, videoActions, CurrentTimeDisplay, Ti...
client/modules/comments/components/.stories/create_comment.js
TheAncientGoat/mantra-sample-blog-coffee
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; const CreateComment = require('../create_comment.coffee'); storiesOf('comments.CreateComment', module) .add('default view', () => { return ( <div className='comments'> <CreateComment postId='the-id' create={action('cr...
admin/client/App/components/Navigation/Mobile/SectionItem.js
frontyard/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...
src/components/charts/charts/svg/path.js
noahehall/udacity-corporate-dashboard
import React from 'react'; export const Path = ({ // eslintignore https://developer.mozilla.org/en-US/docs/Web/SVG/Element/path chartType = 'pie', d, fill = 'blue', id = '', stroke = 'gray', }) => <path className={`${chartType}-path`} d={d} fill={fill} id={id} stroke={stroke} />; Path.propTypes = ...
common/components/Header.js
BostonGlobe/elections-2016
import React from 'react' import svgs from './../utils/svgs.js' import Navigation from './Navigation.js' const Header = () => ( <header className='header' key='header'> <a href='#content' className='skip-to-main'>Skip to main content</a> <div className='header__logo'> <a href='http://www.bostonglobe.com/' ...
packages/@lyra/form-builder/src/inputs/BlockEditor/Toolbar/DecoratorButtons.js
VegaPublish/vega-studio
// @flow import type { BlockContentFeature, BlockContentFeatures, SlateChange, SlateValue } from '../typeDefs' import React from 'react' import {keyMaps} from '../plugins/SetMarksOnKeyComboPlugin' import {toggleMark} from '../utils/changes' import CustomIcon from './CustomIcon' import FormatBoldIcon from 'p...
containers/SearchBar/index.js
bmagic/acdh-client
import React from 'react' import { connect } from 'react-redux' import { createStructuredSelector } from 'reselect' import PropTypes from 'prop-types' import { searchChange } from 'actions/programs' import { makeSearch } from 'selectors/programs' export class SearchBar extends React.PureComponent { render () { ...
node_modules/semantic-ui-react/dist/es/views/Statistic/StatisticValue.js
mowbell/clickdelivery-fed-test
import _extends from 'babel-runtime/helpers/extends'; import _isNil from 'lodash/isNil'; import cx from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { customPropTypes, getElementType, getUnhandledProps, META, useKeyOnly } from '../../lib'; /** * A statistic can contain a numer...
client/src/components/loader/index.js
commoncode/ontap
import React from 'react'; const Loader = () => ( <div className="loader"> OnTap </div> ); export default Loader;
src/components/video_detail.js
martezconner/react_vidhub
import React from 'react'; const VideoDetail = ({video}) => { if (!video) { return <div>Loading...</div>; } const videoId = video.id.videoId; const url = `https://www.youtube.com/embed/${videoId}`; return ( <div className="video-detail col-md-8"> <div className="embed-responsive embed-respons...
apps/app/src/pages/Repository/BuildDetail/Context.js
argos-ci/argos
import React from 'react' import gql from 'graphql-tag' import { useMutation } from '@apollo/react-hooks' export const BuildContextFragment = gql` fragment BuildContextFragment on Build { id createdAt number status repository { name owner { login } } baseScreensh...
src/svg-icons/maps/pin-drop.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsPinDrop = (props) => ( <SvgIcon {...props}> <path d="M18 8c0-3.31-2.69-6-6-6S6 4.69 6 8c0 4.5 6 11 6 11s6-6.5 6-11zm-8 0c0-1.1.9-2 2-2s2 .9 2 2-.89 2-2 2c-1.1 0-2-.9-2-2zM5 20v2h14v-2H5z"/> </SvgIcon> ); ...
src/containers/Home/Home.js
dbertella/react-hot-reload-starter
import React, { Component } from 'react'; import { SimpleForm } from 'components'; class Home extends Component { render() { return ( <div> <h1>Home</h1> <SimpleForm /> </div> ); } } export default Home;
html.js
inthegully/steveGillian
import React from 'react' import Helmet from 'react-helmet' import { prefixLink } from 'gatsby-helpers' const BUILD_TIME = new Date().getTime() module.exports = React.createClass({ propTypes() { return { body: React.PropTypes.string, } }, render() { const head = Helmet.rewind() let css ...
src/components/projects/content/Zune.js
tehfailsafe/portfolio
import React from 'react'; import Section from '../show/Section' import CopySplitLeft from '../show/CopySplitLeft' import CopySplitRight from '../show/CopySplitRight' import Copy from '../show/Copy' import ImageFull from '../show/ImageFull' import VideoPlayer from '../show/VideoPlayer' export default React.createClas...
src/components/NavBar.js
anitrack/anitrack-web
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { Navbar, NavbarBrand, Collapse, Nav, NavItem, NavbarToggler } from 'reactstrap'; import Login from './Login'; class NavBar extends Component { constructor(props){ super(props); t...
src/examples/redux/separate-files/index.js
vinogradov/react-starter-kit
import React from 'react'; import ReactDOM from 'react-dom'; import {createStore, applyMiddleware} from 'redux'; import {Provider} from 'react-redux'; import createSagaMiddleware from 'redux-saga'; import 'regenerator-runtime/runtime'; // eslint-disable-line import/no-extraneous-dependencies import logger from 'redux-l...
src/components/source/mediaSource/suggest/PendingSuggestionsContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import Link from 'react-router/lib/Link'; import { FormattedMessage, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import { Grid, Row, Col } from 'react-flexbox-grid/lib'; import { fetchSourceSuggestions, updateSourceSuggestion } fr...
internals/templates/containers/App/index.js
VeloCloud/website-ui
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
src/svg-icons/device/signal-cellular-connected-no-internet-4-bar.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularConnectedNoInternet4Bar = (props) => ( <SvgIcon {...props}> <path d="M20 18h2v-8h-2v8zm0 4h2v-2h-2v2zM2 22h16V8h4V2L2 22z"/> </SvgIcon> ); DeviceSignalCellularConnectedNoInternet4Bar = pur...
docs/src/pages/components/snackbars/CustomizedSnackbars.js
lgollut/material-ui
import React from 'react'; import Button from '@material-ui/core/Button'; import Snackbar from '@material-ui/core/Snackbar'; import MuiAlert from '@material-ui/lab/Alert'; import { makeStyles } from '@material-ui/core/styles'; function Alert(props) { return <MuiAlert elevation={6} variant="filled" {...props} />; } ...
ui/src/main/frontend/src/components/AsyncComponent.js
Dokuro-YH/alice-projects
import React, { Component } from 'react'; export default function asyncComponent(importComponent) { class AsyncComponent extends Component { constructor(props) { super(props); this.state = { component: null }; } async componentDidMount() { const { default: component } = ...
frontend/src/Components/Loading/LoadingMessage.js
geogolem/Radarr
import React from 'react'; import styles from './LoadingMessage.css'; const messages = [ 'Downloading more RAM', 'Now in Technicolor', 'Previously on Radarr...', 'Bleep Bloop.', 'Locating the required gigapixels to render...', 'Spinning up the hamster wheel...', 'At least you\'re not on hold', 'Hum som...
platform/viewer/src/routes/CallbackPage.js
OHIF/Viewers
import React, { Component } from 'react'; import { withRouter } from 'react-router-dom'; import PropTypes from 'prop-types'; import { CallbackComponent } from 'redux-oidc'; class CallbackPage extends Component { static propTypes = { userManager: PropTypes.object.isRequired, history: PropTypes.object.isRequir...
core/src/plugins/editor.codemirror/res/js/editor.js
huzergackl/pydio-core
/* * Copyright 2007-2017 Charles du Jeu - Abstrium SAS <team (at) pyd.io> * This file is part of Pydio. * * Pydio 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, either version 3 of the License, o...
src/TextField/TextFieldUnderline.js
hai-cea/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import transitions from '../styles/transitions'; const propTypes = { /** * True if the parent `TextField` is disabled. */ disabled: PropTypes.bool, /** * Override the inline-styles of the underline when parent `TextField` is disabled. */ ...
src/server.js
sallen450/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel-core/polyfill'; import path from 'path'; import express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import Router from './routes'; import Html from './components/Html'; const server = global....
client/src/Logout.js
panter/mykonote
import React, { Component } from 'react'; import { withRouter } from 'react-router'; import { ajax } from './ajax'; import AlertFlash from './AlertFlash'; import { scrollToTop } from './scroll'; import { ReactComponent as LogoutIcon } from './icons/material/logout-24px.svg'; class Logout extends Component { render(...
apps/shared/form/RadioList.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' import PropTypes from 'prop-types' import { Control } from 'react-redux-form' import StatefulError from './StatefulError' import styles from './RadioList.scss' const RadioList = props => { const { id, label, name, options, model, messages, validators, onChange } = props return ( <div...
pootle/static/js/auth/components/AccountInactive.js
Avira/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ 'use strict'; import React from 'react'; import { PureRen...
host/Chart.js
xeejp/chicken-race
import React from 'react' import { connect } from 'react-redux' import throttle from 'react-throttle-render' import { addLog } from './actions' import HighCharts from 'react-highcharts' import RaisedButton from 'material-ui/RaisedButton' function usersToData(name, users) { const data = [[0, 0]] Object.keys(users...
client/src/components/shared/Info/RelationList.js
verejnedigital/verejne.digital
// @flow import React from 'react' import {Badge} from 'reactstrap' import {sortBy} from 'lodash' import RecursiveInfo from './RecursiveInfo' import {showRelationType, getRelationTitle, getColor} from '../utilities' import type {RelatedEntity} from '../../../state' type RelationListProps = { data: Array<RelatedEnti...
ngiiedu-client/src/components/courses/create/Step2Work.js
jinifor/branchtest
import React from 'react'; import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn, } from 'material-ui/Table'; class Step2Work extends React.Component { constructor() { super(); this.state = { items: [], selectedRows: [] }; this.onSelectionWork = this.o...
client/components/__tests__/Team.spec.js
bjoberg/social-pulse
import React from 'react'; import test from 'ava'; import { shallow } from 'enzyme'; import { Team } from '../Team/Team'; test('renders team members information correctly', t => { const wrapper = shallow( <Team /> ); t.is(wrapper.find('p').length, 7); t.is(wrapper.find('h1').length, 1); t.is(wrapper.fin...
packages/material-ui-icons/src/CastForEducationSharp.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M23 3H1v5h2V5h18v14h-7v2h9V3zM1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4v2c4.97 0 9 4.03 9 9h2c0-6.08-4.93-11-11-11zm10 1.09v2L14.5 15l3.5-1.91v-2L14....
docs/app/Examples/views/Statistic/Types/index.js
vageeshb/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const Types = () => ( <ExampleSection title='Types'> <ComponentExample title='Statistic' description='A statistic ca...
resources/src/js/components/Finder/components/Header.js
aberon10/thermomusic.com
'use strict'; // Dependencies import React from 'react'; import PropTypes from 'prop-types'; const resetInput = (e) => { e.target.value = ''; }; export default class Header extends React.Component { constructor(props) { super(props); } render() { return ( <div className="panel-queuelist__header"> <di...
public/src/components/Home.js
dolchi21/open-prices-web
import React from 'react'; import LoginForm from '../containers/LoginForm.js'; require('/css/Home.less'); var Home = React.createClass({ render : function render(){ return ( <div id="Home"> <div> <h1>HOME</h1> </div> <div> <a href="/login">login</a> </div> </div> ); } }); expo...
src/index.js
C3-TKO/junkan
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import configureStore from './stores'; import { IntlProvider } from 'react-intl'; import App from './containers/App'; import messages from './intl/en'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import ...
archimate-frontend/src/main/javascript/components/view/nodes/model_t/device.js
zhuj/mentha-web-archimate
import React from 'react' import { BaseNodeLikeWidget } from '../_base' export const TYPE='device'; export class DeviceWidget extends BaseNodeLikeWidget { getClassName(node) { return 'a-node model_t device'; } }
src/index.js
johnie/jobb.johnie.se
import React from 'react'; import ReactDOM from 'react-dom'; // Your top level component import App from './App'; // Export your top level component as JSX (for static rendering) export default App; // Render your app if (typeof document !== 'undefined') { window.addEventListener('load', () => { const ga...
packages/reactor-tests/src/tests/createChild/InsertStart.js
sencha/extjs-reactor
import React, { Component } from 'react'; import { Panel, Button, Container } from '@extjs/ext-react'; export default class InsertStart extends Component { state = { showInserted: false } insert = () => { this.setState({ showInserted: true }) } render() { const { showInse...
web/app/admin/users.js
seanhess/serials
// @flow // @flow import React from 'react' import {Link} from 'react-router' import {User, Users, userApiURL} from '../model/user' import {reloadHandler} from '../data/load' import {makeUpdate} from '../data/update' import {toDateString} from '../helpers' import {clickable} from '../style' import {sortBy, reverse} f...
app/javascript/mastodon/features/niconico/components/connect_account.js
masarakki/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; class ConnectAccount extends ImmutablePureComponent { static propTypes = { nico_url: PropTypes.string, }; connectedLink(nico_url) { return ( <a href={nico_ur...
src/app/components/Groups/Badge.js
sphinxominator/councils-feathers
import React from 'react' import styled from 'styled-components' const Badge = ({ name, color, id, onClick, active, showLetter }) => <Container onClick={() => onClick && onClick(id)} active={active} color={color} > {showLetter && <Letter color={color} active={active}> {name.charAt(0)}...