path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
components/illustrations/shared/emoji-block.js
skidding/illustrated-algorithms
import PropTypes from 'prop-types'; import React from 'react'; import PureLayoutComponent from '../../../utils/pure-layout-component'; import EmojiIcon from './emoji-icon'; const { round } = Math; class EmojiBlock extends PureLayoutComponent { render() { const { name, glow, } = this.props; c...
src/app/index.js
crazypulka/frontend
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import AppBar from 'material-ui/AppBar'; import Toolbar from 'material-ui/Toolbar'; import List from 'material-ui/List'; import { MenuItem } from 'material-ui/Menu'; import Typography from 'material-ui/Typogr...
docs/src/app/components/pages/components/Dialog/ExampleModal.js
matthewoates/material-ui
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; /** * A modal dialog can only be closed by selecting one of the actions. */ export default class DialogExampleModal extends React.Component { sta...
src/svg-icons/hardware/headset-mic.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareHeadsetMic = (props) => ( <SvgIcon {...props}> <path d="M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h4v1h-7v2h6c1.66 0 3-1.34 3-3V10c0-4.97-4.03-9-9-9z"/> ...
src/components/CourseEditor/NoteEditor/TextInput.js
bibleexchange/be-front-new
import React from 'react'; export default class TextInput extends React.Component { render() { let mainStyle = { width: '100%', margin: '15px' }; let labelStyle = { width: '33%', display: 'inline-block', border: 'none', margin: '0' }; let inputStyle = { ...
src/app/pages/NotFound.js
skratchdot/react-github-corner
import React, { Component } from 'react'; import { Jumbotron } from 'react-bootstrap'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; const packageInfo = require('../../../package.json'); class NotFound extends Component { render() { return ( <div> <Jumbotron classN...
pootle/static/js/auth/components/AccountActivation.js
Yelp/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. */ import React from 'react'; import { PureRenderMixin } from...
frontend/src/Components/Table/TableRow.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React from 'react'; import styles from './TableRow.css'; function TableRow(props) { const { className, children, overlayContent, ...otherProps } = props; return ( <tr className={className} {...otherProps} > {children} </tr>...
analysis/paladinholy/src/modules/features/Overhealing.js
yajinni/WoWAnalyzer
import React from 'react'; import { Trans, t } from '@lingui/macro'; import SPELLS from 'common/SPELLS'; import { SpellLink } from 'interface'; import { formatPercentage } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import Healin...
App/Components/Settings.js
bretth18/bison
import { View, Text, Image } from 'react-native'; import React, { Component } from 'react'; import { Actions } from 'react-native-router-flux'; import {Container, Header, Content, Footer, Title, Button, Icon } from 'native-base'; import { Card } from 'react-native-material-design'; import SettingsList from 'rea...
frontend/src/components/siteComponents/BreadcrumbsUI/breadcrumbs.js
webrecorder/webrecorder
import React from 'react'; import { connect } from 'react-redux'; import { truncate } from 'helpers/utils'; export const collList = ({ match }) => match.params.user; const collDetail = ({ collection }) => { return collection.get('loaded') ? truncate(collection.get('title'), 55) : null }; export const collDetailBrea...
js/App.js
soltrinox/MarketAuth.ReactNative
import React, { Component } from 'react'; import { StyleSheet } from 'react-native'; import CodePush from 'react-native-code-push'; import { Container, Content, Text, View } from 'native-base'; import Modal from 'react-native-modalbox'; import AppNavigator from './AppNavigator'; // import ProgressBar from './compone...
webapp-src/src/Hutch/CoinElementUrl.js
babelouest/hutch
import React, { Component } from 'react'; import i18next from 'i18next'; import messageDispatcher from '../lib/MessageDispatcher'; class CoinElementUrl extends Component { constructor(props) { super(props); this.state = { coin: props.coin, oidcStatus: props.oidcStatus, element: props.ele...
client/components/settings/bank-accesses/form.js
bnjbvr/kresus
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { get, actions } from '../../../store'; import { assert, translate as $t } from '../../../helpers'; import PasswordInput from '../../ui/password-input'; import FuzzyOrNativeSelect from '../../ui/fuzzy-or-nativ...
src/components/NotificationDrop/NotificationDrop.js
nambawan/g-old
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, FormattedMessage } from 'react-intl'; import withStyles from 'isomorphic-style-loader/withStyles'; import s from './NotificationDrop.css'; import Box from '../Box'; import Button from '../Button'; import List from '../List'; import...
client/components/annotators/article-annotator.js
CommonActionForum/liqen-face
import React from 'react' import TextAnnotator from './text-annotator/text-annotator' function convertObjectToReact (obj, key) { if (typeof obj === 'string') { return obj } else { const children = obj.children.map((item, i) => convertObjectToReact(item, i)) if (children.length === 1) { return Re...
app/components/menu.component.js
garethnic/restle
//Libraries import React from 'react' class Menu extends React.Component { render () { return ( <form onSubmit={this.props.handleSubmit}> <div className="form-group"> <input type="text" className="form-control" value={this.props.feedValue} ...
generators/advanced-base/templates/src/components/Page.js
bamlab/generator-rn-toolbox
import React, { Component } from 'react'; import { View, StyleSheet, Image, Dimensions } from 'react-native'; import theme from 'theme'; type Props = { children: React.Element<*>, noPadding: boolean, noNavBar: boolean, backgroundColor: string, style?: any, backgroundImage?: any, }; type DefaultProps = { ...
src/components/Sidebar/index.js
KNETIC-KRPF/KNETIC-CLIENT
import React from 'react'; import './sidebar.css'; const Sidebar = props => { return( <div className="sidebar"> </div> ); } export default Sidebar;
app/views/main/elements/stock-cell.js
7kfpun/FinanceReactNative
import React from 'react'; import PropTypes from 'prop-types'; import { Text, TouchableHighlight, View, StyleSheet, } from 'react-native'; // Flux import StockActions from '../../../actions/stock-action'; import StockStore from '../../../stores/stock-store'; const ROTATE_PROPERTIES = { Change: 'MarketCapita...
node_modules/re-base/examples/firestore/chatapp/src/components/Container.js
aggiedefenders/aggiedefenders.github.io
import React from 'react'; import Message from './Message.js'; import base from '../rebase'; class Container extends React.Component { constructor(props) { super(props); this.state = { show: null }; } _removeMessage(ref, e) { e.stopPropagation(); base.removeDoc(ref); } _toggleView(i...
client/modules/App/components/Footer/Footer.js
Captain-Million/Captain-Million
import React from 'react'; // Import Style // import styles from './Footer.css'; export function Footer() { return ( <div> </div> ); } export default Footer;
app/javascript/mastodon/containers/account_container.js
rutan/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { makeGetAccount } from '../selectors'; import Account from '../components/account'; import { followAccount, unfollowAccount, blockAccount, unblockAccount, muteAc...
src/packages/@ncigdc/components/Explore/SummaryPage/index.js
NCI-GDC/portal-ui
import React from 'react'; import { scaleOrdinal, schemeCategory20 } from 'd3'; import { get } from 'lodash'; import HistogramCard from '@ncigdc/components/Explore/SummaryPage/HistogramCard'; import SampleTypeCard from '@ncigdc/components/Explore/SummaryPage/SampleTypeCard'; import SummaryPageQuery from '@ncigdc/comp...
docs/app/Examples/elements/Segment/Types/SegmentExampleSegment.js
vageeshb/Semantic-UI-React
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentExampleSegment = () => ( <Segment> Pellentesque habitant morbi tristique senectus. </Segment> ) export default SegmentExampleSegment
server/handleRender.js
BostonGlobe/elections-2016
// This module does server-side rendering. import React from 'react' import { Provider } from 'react-redux' import { renderToString, renderToStaticMarkup } from 'react-dom/server' import { match, RouterContext, createMemoryHistory } from 'react-router' import { trigger } from 'redial' import logger from './../common/u...
app/javascript/mastodon/features/ui/components/media_modal.js
h-izumi/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ExtendedVideoPlayer from '../../../components/extended_video_player'; import { defineMessages, injectIntl } from 'react-intl'; import IconButton from '../../../components/icon_button'; impor...
src/main/internal/adaption/react/createElement.js
js-works/js-surface
// external import import React from 'react' // --- createElement ------------------------------------------------ const createElement = React.createElement // --- externals ---------------------------------------------------- export default createElement
src/js/components/stories/CertificateListDetail.js
mosen/micromdm-ui
import React from 'react'; import moment from 'moment'; import {storiesOf, action} from '@kadira/storybook'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import CertificateListDetail from '../CertificateListDetail'; const nothing = () => null; storiesOf('CertificateListDetail', module) .add('...
src/scripts/pages/NewProject.page.story.js
kodokojo/kodokojo-ui
/** * Kodo Kojo - Software factory done right * Copyright © 2017 Kodo Kojo (infos@kodokojo.io) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at ...
src/Badge/Badge.spec.js
mit-cml/iot-website-source
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import Badge from './Badge'; import getMuiTheme from '../styles/getMuiTheme'; describe('<Badge />', () => { const muiTheme = getMuiTheme(); const shallowWithContext = (node) => shallow(node, {context: {mu...
src/components/NewHousehold/NewHouseholdForm.js
cernanb/personal-chef-react-app
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Button, Form, Segment, Checkbox } from 'semantic-ui-react'; import styled from 'styled-components'; export const StyledForm = styled.div` ul { max-width: 800px; margin: 0 auto; } li { display: flex; flex-wrap:...
client/src/js/components/Navbar.js
brandon-pineda/BasedReviews
import React from 'react'; import { Link } from 'react-router'; const Navbar = () => ( <section className="intro-container"> <h1> <Link to='/'> BasedReviews </Link> </h1> <nav> <ul> <li><Link to='/reviews' ...
app/javascript/mastodon/features/ui/components/upload_area.js
ambition-vietnam/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import { FormattedMessage } from 'react-intl'; export default class UploadArea extends React.PureComponent { static propTypes = { active: PropTypes.boo...
packages/benchmarks/src/app/Button.js
necolas/react-native-web
import { StyleSheet, TouchableHighlight, Text } from 'react-native'; import React, { Component } from 'react'; export default class Button extends Component<*> { static displayName = '@app/Button'; render() { const { accessibilityLabel, color, disabled, onPress, style, text...
stories/Basic.js
zsherman/react-limitless
import React from 'react'; import random from 'random-words'; import CodeHighlight from './components/codeHighlight.js'; import { Limitless } from '../src/index'; // Generate example datum with a message and timestamp const makeItem = () => ({ timestamp: new Date(), message: random({min: 27, max:90}).join(" ") });...
client/App.js
greenfox-academy/lufthansa_project
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import {Router, hashHistory} from 'react-router'; require('./style/modules/navbar.css'); require('./style/modules/container.css'); require('./style/modules/index.css'); var routes = require('./config/routes'); var Logger = require('./front-end-...
src/Overlay.js
sthawali/react-overlays
import React from 'react'; import Portal from './Portal'; import Position from './Position'; import RootCloseWrapper from './RootCloseWrapper'; import elementType from 'react-prop-types/lib/elementType'; /** * Built on top of `<Position/>` and `<Portal/>`, the overlay component is great for custom tooltip overlays. ...
react/dashboard_example/src/routes/dashboardPages/grid/index.js
webmaster444/webmaster444.github.io
import React from 'react'; import Grid from './Grid'; export default { path: '/grid', action() { return <Grid />; }, };
frontend/src/components/overview/counters/index.js
rossnomann/playlog
import PropTypes from 'prop-types'; import React from 'react'; import './index.css'; const Counters = ({header, data, footer}) => ( <div> <div className="overview-counters-header">{header}</div> { data.map((item, idx) => ( <div key={idx} className="overview-counters-ite...
imports/ui/components/header/header.js
irvinlim/free4all
import React from 'react'; import { Navbar } from 'react-bootstrap'; import { Link, browserHistory } from 'react-router'; import AppBar from 'material-ui/AppBar'; import HeaderProfile from '../../containers/header/header-profile'; import HeaderNotifications from '../../containers/header/header-notifications'; import D...
demos/react-redux/AnyBudget/components/BarChart.react.js
andrewimm/parse-lite
import React from 'react'; export default class BarChart extends React.Component { constructor() { super(); this.state = {width: 0}; } componentWillReceiveProps(nextProps) { let fillPercent = nextProps.value / nextProps.max * 100; if (!isFinite(fillPercent)) { fillPercent = 100; } ...
src/components/Hypertension/HypertensionB.js
lethecoa/work-order-pc
import React from 'react'; import {Form, Input, Table, Row,Checkbox,Col} from 'antd'; import styles from './HypertensionB.less'; import {config, fun} from '../../common'; import {HypertensionSymptom} from '../../components'; const CheckboxGroup = Checkbox.Group; const FormItem = Form.Item; const formItemLayout = { l...
fixtures/dom/src/components/fixtures/input-change-events/InputPlaceholderFixture.js
flipactual/react
import React from 'react'; import Fixture from '../../Fixture'; class InputPlaceholderFixture extends React.Component { constructor(props, context) { super(props, context); this.state = { placeholder: 'A placeholder', changeCount: 0, }; } handleChange = () => { this.setState(({ c...
react-redux-i18n-starter-kit/blueprints/dumb/files/__root__/components/__name__/__name__.js
josedab/react-examples
import React from 'react' type Props = { }; export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } export default <%= pascalEntityName %>
src/svg-icons/hardware/gamepad.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareGamepad = (props) => ( <SvgIcon {...props}> <path d="M15 7.5V2H9v5.5l3 3 3-3zM7.5 9H2v6h5.5l3-3-3-3zM9 16.5V22h6v-5.5l-3-3-3 3zM16.5 9l-3 3 3 3H22V9h-5.5z"/> </SvgIcon> ); HardwareGamepad = pure(Hardw...
src/common/lazyLoadComponent.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import DelayRender from 'interface/common/DelayRender'; export default function lazyLoadComponent(load, delay = 1000) { class ComponentLazyLoader extends React.PureComponent { static loadedComponent = null; state = { loaded: !!ComponentLazyLoader.loadedComponent, }; ...
lib/carbon-fields/vendor/htmlburger/carbon-fields/assets/js/fields/components/color/index.js
boquiabierto/wherever-content
/** * The external dependencies. */ import React from 'react'; import PropTypes from 'prop-types'; import { compose, withHandlers, withState, setStatic } from 'recompose'; import color from 'hex-and-rgba'; /** * The internal dependencies. */ import Field from 'fields/components/field'; import Colorpicker from ...
src/components/common/news/RecentNewsItem.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { FormattedMessage, injectIntl } from 'react-intl'; import SanitizedHTML from 'react-sanitized-html'; import { Row, Col } from 'react-flexbox-grid/lib'; import messages from '../../../resources/messages'; const RecentNewsItem = props => ( <div cla...
app/javascript/mastodon/features/ui/util/reduced_motion.js
yukimochi/mastodon
// Like react-motion's Motion, but reduces all animations to cross-fades // for the benefit of users with motion sickness. import React from 'react'; import Motion from 'react-motion/lib/Motion'; import PropTypes from 'prop-types'; const stylesToKeep = ['opacity', 'backgroundOpacity']; const extractValue = (value) =>...
ReactApp/db.ios.js
johnsiwicki/tbsrn
/** * Global DB Functions * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ 'use strict'; /* ============================== Initialise App =============================== */ // React // import React, { Component } from 'react'; // 3rd Party Components import RNDBMo...
src/svg-icons/action/assignment-turned-in.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssignmentTurnedIn = (props) => ( <SvgIcon {...props}> <path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 ....
public/components/wz-agent-selector/wz-agent-selector.js
wazuh/wazuh-kibana-app
/* * Wazuh app - React component for build q queries. * Copyright (C) 2015-2022 Wazuh, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at you...
app/scripts/HiGlassComponent.js
hms-dbmi/higlass
import React from 'react'; import PropTypes from 'prop-types'; import { select, clientPoint } from 'd3-selection'; import { scaleLinear } from 'd3-scale'; import slugid from 'slugid'; import * as PIXI from 'pixi.js'; import ReactDOM from 'react-dom'; import ReactGridLayout from 'react-grid-layout'; import { ResizeSenso...
docs/app/Examples/elements/Image/Variations/ImageExampleSpaced.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Segment, Image } from 'semantic-ui-react' const src = '/assets/images/wireframe/image.png' const ImageExampleSpaced = () => ( <div> <Segment> <p> Te eum doming eirmod, nominati pertinacia <Image src={src} size='mini' spaced /> argumentum ad his. Ex eam alia ...
lib/__tests__/colist.js
SentinelSoftware/colistjs
import React from 'react'; import expect from 'expect'; import expectJSX from 'expect-jsx'; import {createRenderer, renderIntoDocument} from 'react-addons-test-utils'; expect.extend(expectJSX); import Remo from '../remo.jsx'; describe('Remojs', () => { it('validates that Remo outputs correct properties', () => { ...
src/components/Page/Page.js
SgtRock91/FantasyOptimizer
/** * 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/app.js
mineralmink/poke
import React, { Component } from 'react'; export default class App extends Component { render() { return ( <div> {this.props.children} </div> ); } }
fields/types/azurefile/AzureFileColumn.js
joerter/keystone
import React from 'react'; var AzureFileColumn = React.createClass({ renderValue () { var value = this.props.data.fields[this.props.col.path]; if (!value) return; return <a href={value.url} target="_blank">{value.url}</a>; }, render () { return ( <td className="ItemList__col"> <div className="ItemLis...
docs/src/app/components/pages/components/Menu/ExampleSecondary.js
pancho111203/material-ui
import React from 'react'; import Paper from 'material-ui/Paper'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; import Divider from 'material-ui/Divider'; import ArrowDropRight from 'material-ui/svg-icons/navigation-arrow-drop-right'; const style = { display: 'inline-block', flo...
tnoodle-ui/src/index.js
cubing/tnoodle
import React from 'react'; import ReactDOM from 'react-dom'; import { App } from 'App'; ReactDOM.render( <App />, document.getElementById('root'), );
js/src/views/Status/components/Calls/Calls.spec.js
BSDStudios/parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any lat...
exercise-04/src/components/Pokedex.js
learnapollo/pokedex-react
import React from 'react' import { graphql } from 'react-apollo' import gql from 'graphql-tag' import styled from 'styled-components' import PokemonPreview from '../components/PokemonPreview' const Title = styled.div` color: #7F7F7F; font-size: 32px; font-weight: 300; ` class Pokedex extends React.Component { ...
app/javascript/mastodon/features/ui/util/reduced_motion.js
lindwurm/mastodon
// Like react-motion's Motion, but reduces all animations to cross-fades // for the benefit of users with motion sickness. import React from 'react'; import Motion from 'react-motion/lib/Motion'; import PropTypes from 'prop-types'; const stylesToKeep = ['opacity', 'backgroundOpacity']; const extractValue = (value) =>...
modules/__tests__/_bc-History-test.js
nvartolomei/react-router
import expect from 'expect' import React from 'react' import { render, unmountComponentAtNode } from 'react-dom' import History from '../History' import Router from '../Router' import Route from '../Route' import createHistory from 'history/lib/createMemoryHistory' import shouldWarn from './shouldWarn' describe('v1 Hi...
app/containers/Game/index.js
EugeneHlushko/game-15
/* * * Game * */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import { createStructuredSelector } from 'reselect'; import styled from 'styled-components'; import debug from 'debug'; import { tryMove } from 'utils/helpers'; ...
src/svg-icons/notification/ondemand-video.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationOndemandVideo = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-6l-7 4V7z"/> </SvgIc...
client/interledger/js/components/assets.js
bigchaindb/bigchaindb-examples
import React from 'react'; import AssetRow from './asset_row'; import Spinner from '../../../lib/js/react/components/spinner'; const Assets = ({ account, accountList, assetList, activeAsset, handleAccountClick, handleAssetClick }) => { if (assetList && assetLis...
components/How/How.js
falconi1812/falconi
import React, { Component } from 'react'; import { LINKS } from 'config'; export default class How extends Component { onClickExploreForFreeLink = (e) => analytics.track("Link how book", { platform: "www"}); render () { return ( <section id={this.props.id} className="gc-section p-b-0 text-center al...
src/components/ColorBlindnessView.js
FilmonFeMe/coloreyes
import React, { Component } from 'react'; import '../stylesheets/components/simulator.css'; class ColorBlindnessView extends Component { componentWillMount() { const script1 = document.createElement("script"); script1.src = "jsColorblindSimulator/panZoomImage.js"; script1.async = true; document.body...
docs/app/Examples/elements/Segment/Variations/SegmentExampleEmphasisInverted.js
aabustamante/Semantic-UI-React
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentExampleEmphasisInverted = () => ( <div> <Segment inverted> I'm here to tell you something, and you will probably read me first. </Segment> <Segment inverted secondary> I am pretty noticeable but you might check...
src/components/App/app.js
motion123/mbookmakerUI
/** * Created by tomihei on 17/02/10. */ import React from 'react'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import Loading from '../const/loading'; export default class App extends React.Component { componentWillMount() { this.props.checkLogin(); } render() { const {isPrepa...
src/components/BrowseTabs/test.js
ProteinsWebTeam/interpro7-client
// @flow import React from 'react'; import ShallowRenderer from 'react-test-renderer/shallow'; import { BrowseTabsWithoutData } from '.'; const renderer = new ShallowRenderer(); describe('<BrowseTabsWithoutData />', () => { test('should render', () => { renderer.render( <BrowseTabsWithoutData dat...
src/client/index.js
thamht4190/elearning
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { BrowserRouter, Switch, Route } from 'react-router-dom'; import thunk from 'redux-thunk'; import App from './components/app'; import Wiki from './components...
src/routes/contact/index.js
dreambo8563/RSK
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; // import Contact from './Conta...
frontend/src/screens/landing/widgets/about/about.js
linea-it/qlf
import React from 'react'; import Paper from '@material-ui/core/Paper'; const styles = { container: { display: 'flex', justifyContent: 'center', }, main: { maxWidth: '70vw', // maxHeight: '65vh', height: 'calc(100vh - 223px)', overflowY: 'auto', margin: '16px', padding: '16px', ...
src/js/components/Sky.js
fabregaszy/hackathon-vr
import {Entity} from 'aframe-react'; import React from 'react'; const SKY_COLOR = '#001133'; export default props => ( <Entity geometry={{primitive: 'sphere', radius: 100}} material={props.material || {color: SKY_COLOR, shader: 'flat'}} scale="1 1 -1"/> );
app/containers/LanguageProvider/index.js
jakubrohleder/aurelius
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
pages/api/dialog-title.js
AndriusBil/material-ui
// @flow import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './dialog-title.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRoot(Page);
src/containers/utils/DevTools.js
hannupekka/badgenator
// @flow import React from 'react'; // Exported from redux-devtools import { createDevTools } from 'redux-devtools'; // Monitors are separate packages, and you can make a custom one import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; // createDevTools takes a m...
src/components/Note/NoteThumbnail.js
bibleexchange/be-front-new
import React from 'react'; import { createFragmentContainer, graphql, } from 'react-relay/compat'; import { Link } from 'react-router'; import N from '../../NoteTypes'; import DCRecording from '../Note/Thumbnail/DCRecording'; import BibleVerse from '../Note/Thumbnail/BibleVerse'; import FileNoteThumbnail from '../...
stories/CustomSelector.js
ecmadao/light-ui
import React from 'react'; import { storiesOf } from '@storybook/react'; import CustomSelectorWrapper from '../examples/CustomSelectorWrapper'; storiesOf('CustomSelector', module) .add('basical', () => ( <CustomSelectorWrapper /> )) .add('disabled', () => ( <CustomSelectorWrapper disabled /> ));
src/components/ToolbarGroup.js
dominic-blain/viper-visualizer
import React from 'react'; class ToolbarGroup extends React.Component { shouldComponentUpdate(nextProps) { return (nextProps.children !== this.props.children); } render() { return ( <section className="toolbar-group"> <h2 className="toolbar-group-title"> {this.props.label} </h2> {this.props....
src/svg-icons/social/group-add.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialGroupAdd = (props) => ( <SvgIcon {...props}> <path d="M8 10H5V7H3v3H0v2h3v3h2v-3h3v-2zm10 1c1.66 0 2.99-1.34 2.99-3S19.66 5 18 5c-.32 0-.63.05-.91.14.57.81.9 1.79.9 2.86s-.34 2.04-.9 2.86c.28.09.59.14.91....
dynamic/react/get-started/index.js
avalara-mike-amos/developer-dot
import 'babel-polyfill'; import React from 'react'; import {render} from 'react-dom'; import {createStore, applyMiddleware} from 'redux'; import createLogger from 'redux-logger'; import {Provider} from 'react-redux'; import reducer from './reducers/reducer'; import App from './containers/app'; import actionTypes from...
static/src/index.js
locals-world/locals-faucetserver
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; //import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); //registerServiceWorker();
client/pages/Signup.js
homanbromand/node-react-bootstrap
import React from 'react' import SignupForm from 'client/components/SignupForm' export default class Signup extends React.Component { render() { return ( <div class="bb-page bb-page-signup"> <h1 class="bb-h1">Signup</h1> <SignupForm /> </div> ) } }
src/svg-icons/action/invert-colors.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionInvertColors = (props) => ( <SvgIcon {...props}> <path d="M17.66 7.93L12 2.27 6.34 7.93c-3.12 3.12-3.12 8.19 0 11.31C7.9 20.8 9.95 21.58 12 21.58c2.05 0 4.1-.78 5.66-2.34 3.12-3.12 3.12-8.19 0-11.31zM12 1...
analysis/deathknightblood/src/modules/talents/FoulBulwark.js
yajinni/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import TalentStatisticBox from 'parser/ui/TalentStatisticBox'; import STATISTIC_ORDER from 'parser/ui/STATISTIC_ORDER'; import { formatDuration, formatPercentage } from 'common/format'; import BoneShieldTimesByS...
springboot/GReact/src/main/resources/static/app/components/forms/inputs/NoUiSlider.js
ezsimple/java
import React from 'react' import noUiSlider from 'nouislider' export default class NoUiSlider extends React.Component { componentDidMount() { const slider = this.refs.slider; const element = $(slider); const props = this.props; element.addClass('noUiSlider'); const options = { range: { ...
pingpong/src/index.js
naeimzarei/PingPong
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
docs/app/Examples/elements/List/Types/index.js
koenvg/Semantic-UI-React
import React from 'react' import { Message } from 'semantic-ui-react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const ListTypes = () => ( <ExampleSection title='Types'> <ComponentExample tit...
app/javascript/mastodon/features/hashtag_timeline/components/column_settings.js
ashfurrow/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Toggle from 'react-toggle'; import AsyncSelect from 'react-select/async'; import { NonceProvider } from 'react-sele...
js/App.js
dbatten4/chessboard-react
/* *import React, { Component } from 'react'; * *export default class App extends Component { * render() { * return ( * <h1>Hello, world.</h1> * ); * } *} */
src/svg-icons/notification/do-not-disturb-alt.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationDoNotDisturbAlt = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zM4 12c0-4.4 3.6-8 8-8 1.8 0 3.5.6 4.9 1.7L5.7 16.9C4.6 15.5 4 13.8 4 12zm8 8...
app/components/LandingPage/LandingPageHeader.js
trussworks/DoDidDone
import React from 'react'; export const LandingPageHeader = () => { return ( <div className="landing-page__header" /> ); }; export default LandingPageHeader;
SSBW/Tareas/Tarea9/restaurantes2/node_modules/react-bootstrap/es/MediaListItem.js
jmanday/Master
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
react-router-webpack-code-splitting/src/index.js
LiuuY/code-splitting-demo
import React from 'react' import ReactDOM from 'react-dom' import App from './app' ReactDOM.render( <App />, document.getElementById('app') );
src/components/Contentful/StaticContent/Body/presenter.js
ndlib/usurper
// Presenter component for a Floor content type from Contentful import React from 'react' import PropTypes from 'prop-types' import 'static/css/global.css' import Related from '../../Related' import LibMarkdown from 'components/LibMarkdown' const Presenter = ({ cfStatic, showDescription, children }) => ( <div key={`...
src/app/views/logout.js
nazar/soapee-ui
import React from 'react'; import authActions from 'actions/auth'; export default React.createClass( { componentDidMount () { authActions.logout(); }, render() { return ( <div id="logout"> <div className="jumbotron"> <h1>Logged Out</h1> ...