path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
info5900groupG/dataishumantool
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'));
redux-todos/index.js
stoepszli/js-demos
import 'todomvc-app-css/index.css'; import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import configureStore from './store/configureStore'; import Root from './containers/Root'; const store = configureStore(); render( <AppContainer> <Root store=...
app/containers/AthleteSchedule/AthleteTrainingList.js
kdprojects/nichesportapp
import React from 'react'; import H3 from 'components/H3'; import RaisedButton from 'material-ui/RaisedButton'; import CenteredSection from '../../containers/HomePage/CenteredSection'; import { graphql } from 'react-apollo'; import gql from 'graphql-tag'; import { Table, TableBody, TableHeader, TableHeaderColum...
src/components/tracks/individual/_someAnimal/index.js
cannoneyed/tmm-glare
/* eslint-disable quotes */ import React from 'react' // const timeline = [{ // time: 0, // fact: '' // }] // export default function Voyeur() { return ( <div className="track-info-page"> <div className="track-text voyeur" /> </div> ) }
packages/website/builder/pages/docs/navigation.js
yusufsafak/cerebral
import React from 'react' import Search from './search' function Navigation(props) { function renderMenu() { return Object.keys(props.docs).map(function(sectionKey, index) { return ( <li key={index} className={`docs-navigation-item${props.sectionName === sectionKey ? ' active' :...
app/components/main/Footer.js
ayqy/ready-to-work
import React, { Component } from 'react'; import { Button, Radio, Row, Col } from 'antd'; export default class Header extends Component { render() { const padding = '6px'; return ( <div className="main-footer footer"> <Row style={{padding: `${padding} 0`}}> <Col span={8}> ...
app/components/NotFound.js
okmttdhr/redux-blog-example
import styles from './../styles/global.styl'; import React from 'react'; import CSSModules from 'react-css-modules'; @CSSModules(styles) export default class NotFound extends React.Component { render() { return ( <div styleName="wrapper"> <h1>Not Found</h1> </div> ); } }
app/components/PlatformsPageComponents/Chatbot.js
rapicastillo/beautifulrising-client
/** * * AboutPageComponents * */ import React from 'react'; import styled from 'styled-components'; import { FormattedMessage } from 'react-intl'; import { PlatformsSection } from 'components/PlatformsPageComponents'; import VisibilitySensor from 'react-visibility-sensor'; import messages from './messages'; import Ma...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/FormComponents/Select.js
ChamNDeSilva/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
src/ButtonGroup.js
xiaoking/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; const ButtonGroup = React.createClass({ mixins: [BootstrapMixin], propTypes: { vertical: React.PropTypes.bool, justified: React.PropTypes.b...
dev/6B_SCROLL.js
canalplus/react-keys
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { StyleSheet, css } from 'aphrodite/no-important'; import { createStore, combineReducers } from 'redux'; import { createStructuredSelector } from 'reselect'; import { connect, Provider } from 'react-redux'; import { Binder, keysInit,...
src/routes/Customisable/components/plugins/invoice-address/invoice-address.plugin.js
codingarchitect/react-counter-pair
import React from 'react' import { Form, FormGroup, FormControl, ControlLabel } from 'react-bootstrap' import InvoiceAddress from './invoice-address.rt' import extensibleComponent from '../extensible-component' import FormLayoutPluginRenderer from '../form-layout-plugin-renderer' const addressForm = { Address1: (pro...
src/svg-icons/action/speaker-notes.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSpeakerNotes = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 14H6v-2h2v2zm0-3H6V9h2v2zm0-3H6V6h2v2zm7 6h-5v-2h5v2zm3-3h-8V9h8v2zm0-...
test/server/ModalSpec.js
RichardLitt/react-bootstrap
import React from 'react'; import {assert} from 'chai'; import Modal from '../../src/Modal.js'; describe('Modal', () => { it('Should be rendered on the server side', function () { let noOp = () => {}; assert.doesNotThrow(function renderOnServerSide() { return React.renderToString( <Modal onReq...
src/Divider/Divider.spec.js
dsslimshaddy/material-ui
// @flow import React from 'react'; import { assert } from 'chai'; import { createShallow, getClasses } from '../test-utils'; import Divider from './Divider'; describe('<Divider />', () => { let shallow; let classes; before(() => { shallow = createShallow({ dive: true }); classes = getClasses(<Divider ...
src/views/UserEdit/UserForm.js
folio-org/ui-users
import isEqual from 'lodash/isEqual'; import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, FormattedMessage } from 'react-intl'; import { Field, FormSpy } from 'react-final-form'; import setFieldData from 'final-form-set-field-data'; import { AppIcon } from '@folio/stripes/core'; import ...
fields/types/date/DateFilter.js
lojack/keystone
import _ from 'underscore'; import classNames from 'classnames'; import React from 'react'; import { FormField, FormInput, FormRow, FormSelect, SegmentedControl } from 'elemental'; const TOGGLE_OPTIONS = [ { label: 'Matches', value: false }, { label: 'Does NOT Match', value: true } ]; const MODE_OPTIONS = [ { lab...
src/svg-icons/hardware/scanner.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareScanner = (props) => ( <SvgIcon {...props}> <path d="M19.8 10.7L4.2 5l-.7 1.9L17.6 12H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-5.5c0-.8-.5-1.6-1.2-1.8zM7 17H5v-2h2v2zm12 0H9v-2h10v2z"/> </...
app/javascript/mastodon/features/list_editor/index.js
abcang/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { injectIntl } from 'react-intl'; import { setupListEditor, clearListSuggestions, ...
docs/app/Examples/modules/Rating/Types/RatingExampleStar.js
ben174/Semantic-UI-React
import React from 'react' import { Rating } from 'semantic-ui-react' const RatingExampleStar = () => ( <Rating icon='star' defaultRating={3} maxRating={4} /> ) export default RatingExampleStar
src/navigation/auth.js
OlivierVillequey/hackathon
/** * Auth Scenes * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React from 'react'; import { Scene, ActionConst } from 'react-native-router-flux'; // Consts and Libs import { AppConfig } from '@constants/'; // Scenes import Authenticate from '@containers/auth/Authen...
src/MainComposition.js
tobias2801/app_gestoria
import React, { Component } from 'react'; import Header from './components/HeaderComponent'; import Sidebar from './components/SidebarComponent'; import Home from './components/HomeComponent'; import TypeForm from './components/forms/TypeFormComponent'; import ClientForm from './components/forms/ClientFormComponent'; i...
react-fundamentals/es6-react-setup/Wrapper.js
gongmingqm10/EggHead
import React from 'react'; import ReactDOM from 'react-dom'; class Wrapper extends React.Component { constructor(props) { super(props); } mount() { ReactDOM.render(<App/>, document.getElementById(('container'))); } unmount() { ReactDOM.unmountComponentAtNode(document.getElementById('container')...
src/components/Proposal/Proposal.js
nambawan/g-old
import { FormattedRelative, FormattedMessage, defineMessages, } from 'react-intl'; import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; import withStyles from 'isomorphic-style-loader/withStyles'; import s from './Proposal.css'; import UserThumbnail from '../UserThumbnail'; ...
app/main.js
ibjohansen/k5g.no
'use strict'; import React from 'react'; import Router, {Link, Route, DefaultRoute, NotFoundRoute} from 'react-router'; import Home from './pages/home'; import Map from './pages/map'; import Cats from './pages/cats'; require("./styles/normalize.css"); require("./styles/skeleton.css"); require("./styles/app.css"); Re...
src/utils/inputNodeCheck.js
manchesergit/material-ui
import React from 'react'; import warning from 'warning'; export const HtmlForTagName = 'htmlFor'; export const InputTypeName = 'input'; export const a11yButtonTagsToTest = [HtmlForTagName, 'aria-labelledby', 'aria-describedby']; /* * Check if the children have an input node. * If there is an input node, check that...
blueocean-material-icons/src/js/components/svg-icons/image/filter-4.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageFilter4 = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"/> </SvgIcon> ); ImageFilt...
server/sonar-web/src/main/js/apps/permissions/project/components/AllHoldersList.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...
src/svg-icons/action/change-history.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionChangeHistory = (props) => ( <SvgIcon {...props}> <path d="M12 7.77L18.39 18H5.61L12 7.77M12 4L2 20h20L12 4z"/> </SvgIcon> ); ActionChangeHistory = pure(ActionChangeHistory); ActionChangeHistory.display...
src/main.js
raffidil/garnanain
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-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 localforage from 'loc...
src/svg-icons/hardware/headset.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareHeadset = (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-4v8h3c1.66 0 3-1.34 3-3v-7c0-4.97-4.03-9-9-9z"/> </SvgIcon> ...
src/Parser/ShadowPriest/Modules/Spells/VoidformGraph.js
mwwscott0/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import ChartistGraph from 'react-chartist'; import Chartist from 'chartist'; import 'chartist-plugin-legend'; import './VoidformsTab.css'; const formatDuration = (duration) => { const seconds = Math.floor(duration % 60); return `${Math.floor(duration...
src/decorators/withViewport.js
thethirddan/pocket_axe
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default si...
src/JSONArrayNode.js
chibicode/react-json-tree
import React from 'react'; import PropTypes from 'prop-types'; import JSONNestedNode from './JSONNestedNode'; // Returns the "n Items" string for this node, // generating and caching it if it hasn't been created yet. function createItemString(data) { return `${data.length} ${data.length !== 1 ? 'items' : 'item'}`; }...
src/js/components/icons/base/AccessWheelchair.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...
src/svg-icons/image/camera-roll.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCameraRoll = (props) => ( <SvgIcon {...props}> <path d="M14 5c0-1.1-.9-2-2-2h-1V2c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1v1H4c-1.1 0-2 .9-2 2v15c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2h8V5h-8zm-2 13h-2v-2h2v2zm0-9h-2V7h...
src/Dialog/Backdrop.js
gutenye/react-mc
// @flow import React from 'react' import cx from 'classnames' import type { PropsC } from '../types' class Backdrop extends React.Component { props: PropsC static defaultProps = { component: 'div', } static displayName = 'Dialog.Backdrop' render() { const { component: Component, className, ...rest...
src/UI/Keyboard.js
alex-wilmer/synth-starter
import React from 'react' import { connect } from 'react-redux' import { toFreq } from 'tonal-freq' let Keyboard = ({ dispatch, octave }) => { return ( <ul className="piano" onMouseUp={() => dispatch({ type: `CLEAR_KEYS` })} > <li className="white" onMouseDown={() => dispat...
docs/app/Examples/views/Statistic/Content/index.js
aabustamante/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const Content = () => ( <ExampleSection title='Content'> <ComponentExample title='Value' description='A statistic ca...
docs/app/Examples/collections/Grid/Variations/GridExampleRelaxed.js
ben174/Semantic-UI-React
import React from 'react' import { Grid, Image } from 'semantic-ui-react' const GridExampleRelaxed = () => ( <Grid relaxed columns={4}> <Grid.Column> <Image src='http://semantic-ui.com/images/wireframe/image.png' /> </Grid.Column> <Grid.Column> <Image src='http://semantic-ui.com/images/wirefr...
src/js/components/app.js
Sinkler/italian-verbs-trainer
import React from 'react'; import Pronouns from '../pronouns'; import TensesList from '../tenses'; import Verbs from '../verbs'; import Form from '../containers/form' import Counts from '../containers/counts' import Footer from '../containers/footer' class App extends React.Component { constructor(props) { ...
docs/src/app/components/pages/components/FontIcon/Page.js
barakmitz/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import iconCode from '!raw!material-ui/FontIcon/FontIcon'; import iconReadmeText...
src/svg-icons/editor/vertical-align-top.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorVerticalAlignTop = (props) => ( <SvgIcon {...props}> <path d="M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"/> </SvgIcon> ); EditorVerticalAlignTop = pure(EditorVerticalAlignTop); EditorVerticalAlignTop.dis...
assets/js/tests/Test.js
KiranJKurian/Election-Data-Exploration
import React from 'react'; import ReactDOM from 'react-dom'; import { Card, CardText, CardTitle, CardActions } from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; import tests from '../tests/tests'; const Test = (props) => { tests(); return ( <div> <Card style={{ margin: '1em' }}> ...
source/components/Affiliation.js
sgmap/cout-embauche
import React from 'react' import './Affiliation.css' export default () => <section id="affiliation"> <a href="https://openfisca.fr?utm_source=affiliation&utm_campaign=widget_embauche" target="_blank"> <img alt="OpenFisca" src="https://www.openfisca.fr/hotlinks/logo-openfisca.svg" /> </a> <a href="https://b...
src/clock.js
alecpblack/react-product-list
import React, { Component } from 'react'; class Clock extends Component { constructor(props) { super(props); var now = new Date(); this.state = { now: now, partOfDay: this.getGreeting(now) }; } componentDidMount() { this.timerID = setInterv...
app/javascript/mastodon/components/short_number.js
ikuradon/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { toShortNumber, pluralReady, DECIMAL_UNITS } from '../utils/numbers'; import { FormattedMessage, FormattedNumber } from 'react-intl'; // @ts-check /** * @callback ShortNumberRenderer * @param {JSX.Element} displayNumber Number to display * @para...
src/components/remote/controls.js
scholtzm/arnold
import React, { Component } from 'react'; import { Grid, Container, Button, Header } from 'semantic-ui-react'; import ActionButton from '../../components/misc/action-button.js'; import input from '../../rpc/api/input.js'; import videoLibrary from '../../rpc/api/video-library.js'; import audioLibrary from '../../rpc/ap...
src/svg-icons/maps/local-movies.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalMovies = (props) => ( <SvgIcon {...props}> <path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"/> </Svg...
src/app.js
aeldar/yet-another-react-bootstrap
import React from 'react'; import ReactDOM from 'react-dom'; import App from 'containers/App/App.jsx'; import 'static/styles/base.css'; import 'normalize.css'; ReactDOM.render(<App />, document.getElementById('root'));
js/ClientApp.js
steve-chen-nyc/fem_react
import React from 'react' import { render } from 'react-dom' import { BrowserRouter, Match } from 'react-router' import { Provider } from 'react-redux' import store from './store' import Landing from './Landing' import Search from './Search' import Details from './Details' import preload from '../public/data.json' impo...
static/src/components/Footer/index.js
agelarry/online_quiz
import React from 'react'; /* component styles */ import { styles } from './styles.scss'; export const Footer = () => <footer className={`${styles}`}> <div className="container"> <div className="row"> <div className="col-xs-12 col-sm-12 col-md-12 col-lg-12"> ...
app/containers/NotFoundPage/index.js
dmitrykrylov/my-test-store
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
docs/app/Examples/elements/Input/Variations/InputExampleActionLabeledButton.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Input } from 'semantic-ui-react' const InputExampleActionLabeledButton = () => ( <Input action={{ color: 'teal', labelPosition: 'right', icon: 'copy', content: 'Copy' }} defaultValue='http://ww.short.url/c0opq' /> ) export default InputExampleActionLabeledButton
docs/client/components/pages/Undo/CustomUndoEditor/index.js
draft-js-plugins/draft-js-plugins-v1
import React, { Component } from 'react'; import { EditorState } from 'draft-js'; import Editor from 'draft-js-plugins-editor'; import createUndoPlugin from 'draft-js-undo-plugin'; import editorStyles from './editorStyles.css'; import buttonStyles from './buttonStyles.css'; const theme = { undo: buttonStyles.button,...
examples/redirect-using-index/app.js
Dodelkin/react-router
import React from 'react' import { createHistory, useBasename } from 'history' import { Router, Route, IndexRoute, Link } from 'react-router' const history = useBasename(createHistory)({ basename: '/redirect-using-index' }) class App extends React.Component { render() { return ( <div> {this.prop...
react/test/testHelper.js
koscim/beer-art-reviews
import { shallow, mount } from 'enzyme'; import jasmineEnzyme from 'jasmine-enzyme'; import React from 'react'; import $ from 'jquery'; import 'jasmine-ajax'; Object.assign(global, { jasmineEnzyme, mount, React, shallow, $ }); beforeEach(() => { jasmineEnzyme(); }); // function to require all modules for...
src/parser/monk/mistweaver/modules/spells/Vivify.js
FaideWW/WoWAnalyzer
// Based on Clearcasting Implementation done by @Blazyb import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import { formatNumber } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import Combatants from '...
ReduxThunkNews/src/js/components/ListContacts.js
fengnovo/webpack-react
import React from 'react'; import {List, ListItem} from 'material-ui/List'; import ActionGrade from 'material-ui/svg-icons/action/grade'; import Divider from 'material-ui/Divider'; import Avatar from 'material-ui/Avatar'; import {pinkA200, transparent} from 'material-ui/styles/colors'; const ListContacts = ({fetchData...
src/admin_components/ImportRaceComponent.js
chiefwhitecloud/running-man-frontend
import React from 'react'; import PropTypes from 'prop-types'; export default class ImportRaceComponent extends React.Component { constructor(props) { super(props); this.handleSubmit = this.handleSubmit.bind(this); this.handleReset = this.handleReset.bind(this); } handleSubmit(urls) { this.props...
js-old/src/views/Application/TabBar/Tab/tabs.spec.js
destenson/ethcore--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...
app/components/Charts/AreaChart/index.js
prudhvisays/season
import React from 'react'; import { ComposedChart, Line, Area, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend } from 'recharts'; import './AreaStyle.css'; class CustomTooltip extends React.Component{ render() { const { active } = this.props; if (active) { const { payload, label } = this.props; ...
app/src/components/common/CustomSelectionView.js
kort/kort-native
// customized SelectionView // credits to thinnakrit --> https://github.com/thinnakrit/React-Native-Selection import React, { Component } from 'react'; import { Text, View, ScrollView, TouchableOpacity, Dimensions, Modal } from 'react-native'; import _ from 'lodash'; import Icon from 'react...
src/components/UsersCard.js
kusaeva/firebase-chat
import React from 'react' import {Row, Col, Card} from 'wix-style-react/dist/src/Grid' import MessageInput from 'containers/MessageInput' import Messages from 'containers/Messages' // function getUser (id) { // // return 'https://pp.userapi.com/c841220/v841220877/ee41/x-F0a25bkoQ.jpg' // return // } // ...
src/svg-icons/action/supervisor-account.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSupervisorAccount = (props) => ( <SvgIcon {...props}> <path d="M16.5 12c1.38 0 2.49-1.12 2.49-2.5S17.88 7 16.5 7C15.12 7 14 8.12 14 9.5s1.12 2.5 2.5 2.5zM9 11c1.66 0 2.99-1.34 2.99-3S10.66 5 9 5C7.34 5 6 ...
src/components/main/Layout/Layout.js
5rabbits/portrait
import React from 'react' import childrenPropType from 'propTypes/children' const Layout = props => <section className="layout-wrapper" id="block-app"> <header className="layout-header" id="block-header"> {props.header} </header> <nav className="layout-navigation" id="block-navigation"> {prop...
monkey/monkey_island/cc/ui/src/components/report-components/attack/SelectedTechnique.js
guardicore/monkey
import React from 'react'; import Collapse from '@kunukn/react-collapse'; import AttackReport from '../AttackReport'; import {FontAwesomeIcon} from '@fortawesome/react-fontawesome'; import {faQuestionCircle} from '@fortawesome/free-solid-svg-icons/faQuestionCircle'; import classNames from 'classnames'; class Selecte...
public/components/tehtPage/tabsComponents/tehtava/JournalView.js
City-of-Vantaa-SmartLab/kupela
import React from 'react'; import { connect } from 'react-redux'; const JournalView = (props) => ( <div className="journalViewArea"> <div className="scrollableArea"> <div className="journalTextView"> TILANNEPÄIVÄKIRJA {props.journalEntries.entries.map((c) => <p className="journalEn...
app/react/src/client/preview/error_display.js
enjoylife/storybook
import PropTypes from 'prop-types'; import React from 'react'; const mainStyle = { position: 'fixed', top: 0, bottom: 0, left: 0, right: 0, padding: 20, backgroundColor: 'rgb(187, 49, 49)', color: '#FFF', WebkitFontSmoothing: 'antialiased', }; const headingStyle = { fontSize: 20, fontWeight: 600...
app/scripts/ExportLinkDialog.js
hms-dbmi/higlass
import React from 'react'; import PropTypes from 'prop-types'; import Button from './Button'; import Dialog from './Dialog'; import '../styles/ExportLinkDialog.module.scss'; class ExportLinkDialog extends React.Component { render() { return ( <Dialog okayOnly={true} okayTitle="Done" ...
packages/icons/src/md/editor/FormatShapes.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdFormatShapes(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M46 14h-4v20h4v12H34v-4H14v4H2V34h4V14H2V2h12v4h20V2h12v12zM6 6v4h4V6H6zm4 36v-4H6v4h4zm24-4v-4h4V14h-4v-4H14v4h-4v20h4v4h20zm8 4v-4h-4v4h4zm-4-...
actor-apps/app-web/src/app/components/activity/UserProfile.react.js
shaunstanislaus/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import ContactActionCreators from 'actions/ContactActionCreators'; import DialogActionCreators from 'actions/DialogActionCreators'; import PeerStore from 'stores/PeerStore'; import DialogStore from 'stores/DialogStore'; import AvatarItem from...
app/javascript/mastodon/components/setting_text.js
pixiv/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; export default class SettingText extends React.PureComponent { static propTypes = { settings: ImmutablePropTypes.map.isRequired, settingKey: PropTypes.array.isRequired, label: PropT...
src/main.js
HackDFW/hackdfw-frontend
import React from 'react' import ReactDOM from 'react-dom' import createBrowserHistory from 'history/lib/createBrowserHistory' import { syncReduxAndRouter } from 'redux-simple-router' import routes from './routes' import Root from './containers/Root' import configureStore from './redux/configureStore' const history = ...
jenkins-design-language/src/js/components/material-ui/svg-icons/hardware/computer.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const HardwareComputer = (props) => ( <SvgIcon {...props}> <path d="M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"/> </SvgIcon> ); HardwareComputer.displayName = 'HardwareComputer';...
packages/icons/src/md/places/ChildCare.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdChildCare(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M45.89 25.33c-.51 3.02-2.72 5.47-5.61 6.34a18.026 18.026 0 0 1-4.34 5.78C32.76 40.27 28.59 42 24 42s-8.76-1.73-11.94-4.55c-1.81-1.61-3.3-3.57-4.34-...
src/svg-icons/communication/contacts.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationContacts = (props) => ( <SvgIcon {...props}> <path d="M20 0H4v2h16V0zM4 24h16v-2H4v2zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 2.75c1.24 0 2.25 1.01 2.25 2.25s...
src/components/Breadcumn/Header.js
flftfqwxf/react-redux-starter-kit
import React from 'react' import { IndexLink, Link } from 'react-router' import './Header.scss' export const Header = () => ( <div> <h1>React Redux Starter Kit</h1> <IndexLink to='/' activeClassName='route--active'> Home </IndexLink> {' · '} <Link to='/counter' activeClassName='route--activ...
packages/@vega/review-tool/src/components/ManageReviewProcess/ManageReviewProcess.js
VegaPublish/vega-studio
import React from 'react' import {map, switchMap} from 'rxjs/operators' import {combineLatest} from 'rxjs' import lyraClient from 'part:@lyra/base/client' import withPropsStream from '../../../../utils/withPropsStream' import {materializePaths} from 'part:@vega/datastores/document-preview' import ManageReviewItem from ...
client/views/setupWizard/Pager.stories.js
VoiSmart/Rocket.Chat
import { action } from '@storybook/addon-actions'; import React from 'react'; import { Pager } from './Pager'; export default { title: 'components/setupWizard/Pager', component: Pager, }; export const _default = () => <Pager disabled={false} isContinueEnabled={false} />; export const withBackButton = () => <Pager...
docs/src/app/components/pages/components/Drawer/ExampleUndocked.js
lawrence-yu/material-ui
import React from 'react'; import Drawer from 'material-ui/Drawer'; import MenuItem from 'material-ui/MenuItem'; import RaisedButton from 'material-ui/RaisedButton'; export default class DrawerUndockedExample extends React.Component { constructor(props) { super(props); this.state = {open: false}; } han...
node_modules/enzyme/test/_helpers.js
Shwrndasink/btholt-react-tutorial
/* globals jsdom */ import React from 'react'; /** * Simple wrapper around mocha describe which allows a boolean to be passed in first which * determines whether or not the test will be run */ export function describeIf(test, a, b) { if (test) { describe(a, b); } else { describe.skip(a, b); } } /** ...
library/src/pivotal-ui-react/tile-layout/tile-layout.js
sjolicoeur/pivotal-ui
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import {mergeProps} from 'pui-react-helpers'; import 'pui-css-tile-layout'; export class TileLayout extends React.Component { static propTypes = { columns: PropTypes.oneOfType([ PropTypes.number, PropT...
components/dataset/header/index.js
sgmap/inspire
import React from 'react' import PropTypes from 'prop-types' import {translate} from 'react-i18next' import MarkdownPreview from '../../markdown-preview' import Warning from '../../warning' import Infos from './infos' import LifeCycle from './life-cycle' const shouldWarn = status => [ 'obsolete', 'underDevelopme...
pootle/static/js/shared/components/FormValueInput.js
ta2-1/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 AutosizeTextarea from '...
src/svg-icons/device/brightness-low.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBrightnessLow = (props) => ( <SvgIcon {...props}> <path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 ...
client/common/components/ToggleButton.js
Haaarp/geo
import React from 'react'; import uuid from 'uuid'; class ToggleButton extends React.Component { constructor(props){ super(props); this.id = uuid(); } _getButtonClassName(){ return "checkbox-wrap" + (this.props.className ? (' ' + this.props.className) : "") + ...
src/svg-icons/hardware/keyboard.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboard = (props) => ( <SvgIcon {...props}> <path d="M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v...
src/Parser/Paladin/Holy/Modules/Items/DrapeOfShame.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import HIT_TYPES from 'Parser/Core/HIT_TYPES'; import Wrapper from 'common/Wrapper'; import CoreDrapeOfShame, { DRAPE_OF_SHAME_CRIT_EFFECT } from 'Parser/Core/Modules/Items/Legion/DrapeOfShame'; import ItemHealingDone from...
information/blendle-frontend-react-source/app/components/signUp/SignUpContainer.js
BramscoChill/BlendleParser
import { history } from 'byebye'; import { STATUS_OK, STATUS_PENDING, USER_ID_TAKEN } from 'app-constants'; import React from 'react'; import PropTypes from 'prop-types'; import SignUpStore from 'stores/SignUpStore'; import AuthStore from 'stores/AuthStore'; import SignUpActions from 'actions/SignUpActions'; import Sig...
src/svg-icons/image/blur-on.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBlurOn = (props) => ( <SvgIcon {...props}> <path d="M6 13c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-...
src/components/EditList.js
p632-sp-2016/eDocLite
/** * Created by parikhv on 4/10/16. */ import React, { Component } from 'react'; import { Input } from 'react-bootstrap'; /** * This class represents the editor dropdown option for bsSize', 'bsStyle', 'ComponentWidth', 'alignment' for the compnent properties */ export default class EditList extends Component { ...
src/components/Header/NavbarLink.js
cape-io/acf-client
import React from 'react' import { Link } from 'redux-history-sync' function NavbarLink({ children, className, component, href, to }) { const Comp = component || Link let Linkelement = ( <Comp to={to} className={className} activeStyle={{ color: '#A94545', }}> {children} </Comp> ) if (h...
fields/types/select/SelectColumn.js
w01fgang/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var SelectColumn = React.createClass({ displayName: 'SelectColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, linkTo: React.Prop...
actor-apps/app-web/src/app/components/dialog/MessagesSection.react.js
way1989/actor-platform
import React from 'react'; import _ from 'lodash'; import VisibilityStore from 'stores/VisibilityStore'; import MessageActionCreators from 'actions/MessageActionCreators'; import MessageItem from 'components/common/MessageItem.react'; let _delayed = []; let flushDelayed = () => { _.forEach(_delayed, (p) => { ...
shared/components/game/boardPanel/turnInfo.react.js
marek-sed/cogni
import React from 'react'; import moment from 'moment'; import 'moment-duration-format'; const colorMap = { '': '#383830', Sender: '#f92672', Receiver: '#a6e22e' , Eavesdropper: '#f2971f' } const TurnInfo = ({player: {role}, currentRound: {onTurn}, roundTime}) => { const roleColor = col...
examples/react/app/assets/javascripts/components/Counter/renderServer.js
jdlehman/js_render
import {renderToString} from 'react-dom/server'; import React from 'react'; import Counter from './index'; window.renderCounterServer = function(props) { return renderToString(<Counter {...props} />); };
site/pages/APIPage.js
hiddentao/react-dnd
import React from 'react'; import Header from '../components/Header'; import PageBody from '../components/PageBody'; import SideBar from '../components/SideBar'; import StaticHTMLBlock from '../components/StaticHTMLBlock'; import { APIPages } from '../Constants'; export default class APIPage { render() { return ...
docs/app/Examples/modules/Sticky/Usage/index.js
shengnian/shengnian-ui-react
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const StickyUsageExamples = () => ( <ExampleSection title='Usage'> <ComponentExample title='Sticky offset' descripti...
src/svg-icons/social/sentiment-satisfied.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSentimentSatisfied = (props) => ( <SvgIcon {...props}> <circle cx="15.5" cy="9.5" r="1.5"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S1...