path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/content/remove-circle-outline.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentRemoveCircleOutline = (props) => ( <SvgIcon {...props}> <path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8...
examples/todo/js/components/TodoTextInput.js
almasakchabayev/relay
/** * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNES...
frontend/src/components/history-list-view/history-list-item.js
miurahr/seahub
import React from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import { Dropdown, DropdownToggle, DropdownMenu, DropdownItem} from 'reactstrap'; import { gettext, filePath } from '../../utils/constants'; import URLDecorator from '../../utils/url-decorator'; moment.locale(window.app.config....
src/svg-icons/editor/text-fields.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorTextFields = (props) => ( <SvgIcon {...props}> <path d="M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z"/> </SvgIcon> ); EditorTextFields = pure(EditorTextFields); EditorTextFields.displayName = 'Edi...
src/index.js
coeniebeyers/QuorumNostroDemo
import React from 'react' import thunkMiddleware from 'redux-thunk' import { render } from 'react-dom' import { createStore, applyMiddleware, compose } from 'redux' import { Provider } from 'react-redux' import { HashRouter, Route } from 'react-router-dom'; import AddressBook from './components/AddressBook' import Coun...
app/components/App.js
georgeF105/georgeF105.github.io
import React from 'react' import Header from './Header' export default React.createClass({ render () { return ( <div> <Header /> {this.props.children} </div> ) } })
src/smif/app/src/index.js
willu47/smif
import '@babel/polyfill' import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import { Route, BrowserRouter as Router, Switch } from 'react-router-dom' import Nav from 'containers/Nav' import Welcome from 'components/Welcome' import NotFound from 'components/ConfigForm/Ge...
src/InputBase.js
AlexKVal/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import FormGroup from './FormGroup'; import Glyphicon from './Glyphicon'; class InputBase extends React.Component { getInputDOMNode() { return React.findDOMNode(this.refs.input); } getValue() { if (this.props.type === 'static') { retu...
src/components/login/login-modal.js
JamesHageman/rangle-elm-starter
import React from 'react'; import { Modal, ModalContent } from '../modal'; import LoginForm from './login-form'; function LoginModal({ isVisible, isPending, hasError, onSubmit }) { return ( <Modal testid="login-form" isVisible={ isVisible }> <ModalContent> <h1 data-testid="login-header" className=...
src/react/error.js
luxui/lux-core
/** * @module react/error * @memberof react */ import React from 'react'; // `React` must be in scope when using JSX import registry from '../lib/componentRegistry'; function errorComponent(props) { // eslint-disable-next-line no-console console.log(props); return ( <section> <h1>Error</h1> ...
src/Livro.js
danvitoriano/awesome-idea-box
import React, { Component } from 'react'; import $ from 'jquery'; import InputCustomizado from './componentes/InputCustomizado'; import PubSub from 'pubsub-js'; import TratadorErros from './TratadorErros'; class FormularioLivro extends Component { constructor(){ super(); this.state = {titulo:'',preco:'',autorId:...
src/components/Infinia4.js
aryalprakash/aryalprakash.github.io
/** * Created by user on 8/29/2016. */ import React, { Component } from 'react'; import { Link } from 'react-router'; var Scroll = require('react-scroll'); var scroll = Scroll.animateScroll; let style={ header: { background: 'grey' }, slider:{ 'position': 'relative', 'top':...
src/components/StructuredList/StructuredList.js
carbon-design-system/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { settings } from '...
app/containers/DevTools.js
kevin940726/remarkbelow
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-q" > <LogMonitor /> ...
src/components/seo.js
zccz14/blog
import React from 'react' import PropTypes from 'prop-types' import Helmet from 'react-helmet' import { useStaticQuery, graphql } from 'gatsby' const SEO = ({ description, lang, meta, keywords, title }) => { const data = useStaticQuery(graphql` query DefaultSEOQuery { site { siteMetadata { ...
src/widgets/StepperInputs/DurationEditor.js
sussol/mobile
/* eslint-disable react/jsx-wrap-multilines */ /* eslint-disable react/forbid-prop-types */ import React from 'react'; import PropTypes from 'prop-types'; import { View, Text } from 'react-native'; import { TextInputWithAffix } from '../TextInputs'; import { Incrementor } from './Incrementor'; import { APP_FONT_FAMIL...
app/src/components/datedropdown.js
kawallis/omni_mock
import React, { Component } from 'react'; import './datedropdown.css'; import arrow from '../assets/arrow.svg'; function addZero(i) { if (i < 10) { i = "0" + i; } return i; } function dollars(dolla) { if (dolla > 0) { return `$ ${dolla}`; }else { return 'free' } } function formatAMPM(date) { ...
lib/ui/components/Mocks/styled.js
500tech/mimic
import React from 'react'; import styled from 'styled-components'; import { Div, Span } from 'ui/components/common/base'; export const TabsContainer = styled(Div)` display: flex; flex-direction: row; border-bottom: ${(props) => props.theme.lightBorder}; `; export const Tab = styled(Div)` padding: 2px ${(props...
test/integration/basic/pages/async-props.js
nelak/next.js
import React from 'react' export default class AsyncProps extends React.Component { static async getInitialProps () { return await fetchData() } render () { return <p>{this.props.name}</p> } } function fetchData () { const p = new Promise(resolve => { setTimeout(() => resolve({ name: 'Diego Mil...
src/browser/offline/OfflinePage.js
chad099/react-native-boilerplate
// @flow import type { State } from '../../common/types'; import React from 'react'; import linksMessages from '../../common/app/linksMessages'; import { connect } from 'react-redux'; import { Box, PageHeader, Text } from '../../common/components'; import { Title } from '../components'; type OfflinePageProps = { onlin...
src/components/commons/tooltip-label.js
bugdrip/omgr-admin
import React from 'react' import { Tooltip } from 'antd' export default class TooltipLabel extends React.Component { constructor(props) { super(props) } render() { const ellipsisStyle = { whiteSpace: 'nowrap', textOverflow: 'ellipsis', display: 'block',...
src/components/editor/EditorTabs.js
umiushi/umiushi
import React from 'react' import * as editorActions from '../../actions/editor' export default class EditorTabs extends React.Component { render() { const openedFiles = this.props.openedFiles.map((file) => { const style = {width: `${100 / this.props.openedFiles.length}%`} const c...
docs/containers/css/Core.js
5rabbits/portrait
import React from 'react' import { Container } from 'shared' const Content = () => <Container> <div> <div className="block-item pa-md"> <p className="type-headline font-strong" id="contents">Contents</p> <div className="row"> <div className="col-xs-6"> <ul className="p...
src/svg-icons/notification/phone-in-talk.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPhoneInTalk = (props) => ( <SvgIcon {...props}> <path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C8.7 6.45 8.5 5...
inc/option_fields/vendor/htmlburger/carbon-fields/assets/js/fields/components/rich-text/editor.js
wpexpertsio/WP-Secure-Maintainance
/** * The external dependencies. */ import React from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import cx from 'classnames'; import observeResize from 'observe-resize'; import { debounce } from 'lodash'; class RichTextEditor extends React.Component { /** * Lifecycle hook. * ...
src/containers/App.js
hieudt/redux-tic-tac-toe
import React, { Component } from 'react'; import { combineReducers } from 'redux'; import { Provider } from 'react-redux'; import { createStore, renderDevTools } from '../store_enhancers/devTools'; import * as reducers from '../reducers'; import TicTacToeApp from './TicTacToeApp'; const reducer = combineReducers(reduc...
app/components/App/App.js
sunnymis/Swoleciety
import React, { Component } from 'react'; import NavBar from '../NavBar/NavBar'; import Login from '../Login/Login'; import WeekViewContainer from '../WeekViewContainer/WeekViewContainer'; import ExerciseCardContainer from '../ExerciseCardContainer/ExerciseCardContainer'; import { BrowserRouter as Router, Route, Redire...
src/universalRouter.js
szhclaye/react-redux-universal-hot-example
import React from 'react'; import Router from 'react-router'; import createRoutes from './views/createRoutes'; import { Provider } from 'react-redux'; const getFetchData = (component = {}) => { return component.WrappedComponent ? getFetchData(component.WrappedComponent) : component.fetchData; }; export func...
app/react-icons/fa/code-fork.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaCodeFork extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m14.9 32.9q0-0.9-0.6-1.6t-1.5-0.6-1.5 0.6-0.7 1.6 0.7 1.5 1.5 0.6 1.5-0.6 0...
admin/client/App/screens/Item/components/EditFormHeader.js
danielmahon/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import { connect } from 'react-redux'; import Toolbar from './Toolbar'; import ToolbarSection from './Toolbar/ToolbarSection'; import EditFormHeaderSearch from './EditFormHeaderSearch'; import { Link } from 'react-router'; import Drilldown from './Dr...
src/components/ElasticSimple/ElasticSimple.js
askd/animakit
import AnimakitElastic from 'components/AnimakitElastic'; import SimpleText from 'components/SimpleText/SimpleText'; import React from 'react'; import PropTypes from 'prop-types'; import pathToImage from 'utils/path-to-image'; import styles from './ElasticSimple.css'; export default class ElasticSimple extends Rea...
ajax/libs/react-instantsearch/4.1.1/Dom.js
seogi1004/cdnjs
/*! ReactInstantSearch 4.1.1 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define....
web/src/views/Login.js
slice/dogbot
import React from 'react' import styled from 'styled-components' import { adjust } from '../theming' const StyledLogin = styled.div` display: flex; flex-flow: column nowrap; justify-content: center; align-items: center; margin: 2rem 0; ` const DiscordLogin = styled.a` display: block; margin: 1rem 0 0; ...
src/plugin/BoobsPost/PostImage.js
BoomBoobs/chrome-extension
import React from 'react'; export default class PostImage extends React.Component { render() { return ( <div className='_3x-2'> <div data-ft='{&quot;tn&quot;:&quot;H&quot;}'> <div className='mtm'> <div className='_5cq3' data-ft='{&quot;tn&quot;:&quot;E&quot;}'> <...
pootle/static/js/shared/mixins/FormValidationMixin.js
translate/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'; // eslint-disable-line no-unus...
src/js/pages/Proposals/Project/FeaturesPage.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import translate from '../../../i18n/Translate'; import TopNavBar from '../../../components/TopNavBar/TopNavBar.js'; import '../../../../scss/pages/proposals/project/features.scss'; import StepsBar from "../../../components/ui/StepsBar/StepsB...
pootle/static/js/stats.js
pavels/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 $ from 'jquery'; import React from 'react'; import ...
examples/todomvc/components/MainSection.js
loggur/react-redux-provide
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import TodoItem from './TodoItem'; import Footer from './Footer'; export default class MainSection extends Component { static propTypes = { todoList: PropTypes.arrayOf(PropTypes.object).isRequired, selectedFilter: PropTypes.func.is...
example/index.android.js
moschan/react-native-progress-bar-classic
/** * Sample React Native App * https://github.com/facebook/react-native */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class ProggressBarExample extends Component { render() { return ( <View style={styles.container}> <Te...
examples/js/pagination/demo.js
neelvadgama-hailo/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import DefaultPaginationTable from './default-pagination-table'; import CustomPaginationTable from './custom-pagination-table'; import PaginationHookTable from './pagination-hook-table'; class Demo extends React.Component { render() { return ( <div> ...
packages/cf-component-table/src/TableHeadCell.js
mdno/mdno.github.io
import React from 'react'; import PropTypes from 'prop-types'; class TableHeadCell extends React.Component { render() { const { className, ...props } = this.props; let _className = 'cf-table__cell cf-table__cell--head'; if (className && className.trim()) { _className += ' ' + className.trim(); ...
packages/react-scripts/template/src/components/App/index.js
paweljedrzejczyk/create-react-app
import React, { Component } from 'react'; // normalize.css is a dependecy of this react-scripts fork // remove this comment after ejecting // eslint-disable-next-line import/no-extraneous-dependencies import 'normalize.css'; import logo from './logo.svg'; import styles from './style.scss'; class App extends Component ...
www/src/pages/tutorial.js
TaitoUnited/taito-cli
import React from 'react'; import { graphql } from 'gatsby'; import { flattenListData } from '../utils'; import Page from '../components/Page'; import SEO from '../components/SEO'; import GitHubEditLink from '../components/GitHubEditLink'; import Spacing from '../components/Spacing'; export default ({ data }) => { ...
web/src/components/Privacy.js
jhonfredynova/Scaffolding-Nodejs-Reactjs
import React, { Component } from 'react'; import { FormattedMessage } from 'react-intl'; class Privacy extends Component { render() { return ( <h1 className="text-center"><FormattedMessage id={ 'privacy' } /></h1> ); } } export default Privacy;
ajax/libs/react-select/1.0.0-rc.10/react-select.es.js
seogi1004/cdnjs
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import AutosizeInput from 'react-input-autosize'; import classNames from 'classnames'; function arrowRenderer(_ref) { var onMouseDown = _ref.onMouseDown; return React.createElement('span', { className: ...
client/components/annotator-drawer/multi-list.js
exacs/liqen-face
import React from 'react' import PropTypes from 'prop-types' import AnnotationsList from './annotations-list' import LiqensList from './liqens-list' export default class MultiList extends React.Component { constructor (props) { super(props) this.state = { show: 'annotations' } this.handleChan...
src/icons/CheckIcon.js
resmio/mantecao
import React from 'react' import Icon from '../Icon' const CheckIcon = props => <Icon {...props} transform="translate(0, -2)"> <path d="M3 18.2L11.4 26.7C11.8 27.1 12.4 27.1 12.8 26.7L30.1 9" /> </Icon> export default CheckIcon
liferay-gsearch-workspace/modules/gsearch-react-web/src/main/resources/META-INF/resources/lib/store/api/index.js
peerkar/liferay-gsearch
import React from 'react'; import config from 'react-global-configuration'; import axios from 'axios'; import 'url-search-params-polyfill'; import { ConfigKeys } from '../../constants/configkeys'; /** * Gets help text. */ export function getHelp() { let urlConfig = config.get(ConfigKeys.URL); let url = urlConf...
src/js/components/user/register.js
kukua/farmer-weather-analytics
import React from 'react' import { connect } from 'react-redux' import Title from '../title' import { instance as user } from '../../lib/user' import actions from '../../actions/user' const mapStateToProps = (state) => { var { loading: isCreating, item } = state.user.create return { isCreating, item } } const mapDi...
src/app/component/offer-table-cell/offer-table-cell.story.js
all3dp/printing-engine-client
import React from 'react' import {storiesOf} from '@storybook/react' import OfferTable from '../offer-table' import OfferTableRow from '../offer-table-row' import OfferTableHeaderCell from '../offer-table-header-cell' import OfferTableCell from '.' storiesOf('OfferTableCell', module) .add('default', () => ( <Of...
client/views/admin/settings/inputs/FontSettingInput.stories.js
VoiSmart/Rocket.Chat
import { Field } from '@rocket.chat/fuselage'; import { action } from '@storybook/addon-actions'; import React from 'react'; import FontSettingInput from './FontSettingInput'; export default { title: 'admin/settings/inputs/FontSettingInput', component: FontSettingInput, decorators: [(storyFn) => <Field>{storyFn()}...
src/components/spinner/index.js
slaweet/lisk-nano
import React from 'react'; import styles from './spinner.css'; const Spinner = () => ( <span className={styles.spinner}> <div className={styles.bounce1} /> <div className={styles.bounce2} /> <div className={styles.bounce3} /> </span> ); export default Spinner;
src/Thumbnail.js
asiniy/react-bootstrap
import React from 'react'; import classSet from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import SafeAnchor from './SafeAnchor'; const Thumbnail = React.createClass({ mixins: [BootstrapMixin], propTypes: { alt: React.PropTypes.string, href: React.PropTypes.string, src: React.PropTyp...
FoguangTemple_web/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
sozoStudio/sozoStudio.github.io
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'));
test/frontend/app/components/hoc/test-authentication-hoc.js
LINKIWI/linkr
import React from 'react'; import {mount} from 'enzyme'; import sinon from 'sinon'; import test from 'tape'; import authentication from '../../../../../frontend/app/util/authentication'; import AuthenticationHOC from '../../../../../frontend/app/components/hoc/authentication-hoc'; const component = class Component ex...
src/@ui/Chip/index.js
NewSpring/Apollos
// Chippy! import React from 'react'; import { compose, mapProps } from 'recompose'; // touchable native feedback currently is having flex layout issues // on react-native android, so we fall back to TouchableOpacity import { TouchableOpacity } from 'react-native'; import { H6 } from '@ui/typography'; import Button f...
site/gatsby-ssr.js
minwoox/armeria
import React from 'react'; export const onPreRenderHTML = ({ getHeadComponents, replaceHeadComponents, }) => { if (process.env.NODE_ENV !== 'production') { return; } const headComponents = getHeadComponents(); // workaround to revert forcefully injected inline styles // described in https://github.c...
src/core/containers/TelehashTest.js
getfilament/Distil
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { TELEHASH_STATE_CONNECTED, TELEHASH_STATE_CONNECTING } from '../constants'; import * as hqActionCreators from '../actions/hqActionCreators'; import { Paper, TextField, RaisedButton, Styles, FontIco...
src/components/document.js
LaserWeb/LaserWeb4
// Copyright 2016 Todd Fleming // // This program 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, or // (at your option) any later version. // // This program is distr...
app/javascript/mastodon/components/loading_indicator.js
rainyday/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; const LoadingIndicator = () => ( <div className='loading-indicator'> <div className='loading-indicator__figure' /> <FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' /> </div> ); export default LoadingIndicat...
src/svg-icons/communication/phone.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPhone = (props) => ( <SvgIcon {...props}> <path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61...
components/button.js
balajivasi/TeamProfile
import React from 'react' /* this is button component this is dumb or state less component*/ class Button extends React.Component{ render(){ return <button type={this.props.settype} className={this.props.classdetails} onClick={this.props.clikSubmit} >{this.props.children}</button> } } export default Button
app/index.js
xabikos/aspnet5-react-webpack-boilerplate
import React from 'react'; import ReactDom from 'react-dom'; import './styles/site.scss'; import App from './components/App.jsx'; ReactDom.render(<App />, document.getElementById('react-app'));
app/containers/App.js
Figedi/denon_menu
// @flow import React, { Component } from 'react'; import type { Children } from 'react'; export default class App extends Component { props: { children: Children }; render() { return ( <div> {this.props.children} </div> ); } }
src/components/Card/PlayerCard.stories.js
guilhermecvm/react-dribbble-components
import React from 'react' import { storiesOf } from '@storybook/react' import IoIosPlay from 'react-icons/lib/io/ios-play' import IoIosPause from 'react-icons/lib/io/ios-pause' import IoIosFastForward from 'react-icons/lib/io/ios-fastforward' import IoIosRewind from 'react-icons/lib/io/ios-rewind' import IoIosVolume fr...
src/svg-icons/av/album.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvAlbum = (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 2zm0 14.5c-2.49 0-4.5-2.01-4.5-4.5S9.51 7.5 12 7.5s4.5 2.01 4.5 4.5-2.01 4.5-4.5 4.5zm0-5.5c-...
app/routes/routes/IOrders/components/IOrders.view.js
bugknightyyp/leyizhu
import React from 'react' import {observer} from 'mobx-react' import {Route, Link} from 'react-router-dom' import {ORDER_STATUS, IMAGE_DIR} from 'macros' import {getParentByClass, getParamFromURL, setParamsToURL, dateToZh} from 'utils' import './iOrders.less' export default observer( (props) => { return ( ...
src/parser/priest/discipline/modules/azeritetraits/DepthOfTheShadows.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import { calculateAzeriteEffects } from 'common/stats'; import { formatPercentage } from 'common/format'; import AzeritePowerStatistic from 'interface/statistics/AzeritePowerStatistic'; import BoringSpellValueText from 'interface/statistics/components/Bori...
src/TrafficLight.js
sgnh/react-trafficlight
/* eslint-disable max-len */ import React from 'react'; import PropTypes from 'prop-types'; const scale = 1 / 0.375; const TrafficLight = ({ onRedClick, onYellowClick, onGreenClick, RedOn, YellowOn, GreenOn, Size, BlackColor, DisabledColor, RedColor, YellowColor, GreenColor, Horizontal, .....
SkillsDevProj/pdc-react/src/index.js
stevenbarash/stevenbarash.github.io
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render(<App />, document.getElementById('root')); // If you want your app to work offline and load faster, you can change // unregister() to register()...
app/templates/src/index.js
quasipedia/generator-neopolitan
// Main javascript entry point // Should handle bootstrapping/starting application 'use strict'; import React from 'react'; import Router from 'react-router'; import Routes from './screens/Index'; import IndexTree from './screens/Index/shared/trees/global.tree'; // Start listening to route changes Router.run(Routes,...
test/fixtures/shared-prop-type-variable/expected-wrap-es6.js
oliviertassinari/babel-plugin-transform-react-remove-prop-types
import React from 'react'; import { omit } from 'underscore'; import Bar from './bar'; const { PropTypes } = React; const propTypes = { foo: PropTypes.any }; export default function Foo(props) { const barProps = omit(props, Object.keys(propTypes)); return <Bar {...barProps} />; } Foo.propTypes = process.env.NOD...
client/src/game/Game.js
xpsurgery/shopping-cart
import React from 'react' import { connect } from 'react-redux' import Header from './Header' import SetupPage from '../setup/SetupPage' import PlayingPage from '../play/PlayingPage' import { startNewGame } from './actionCreators' const Game = React.createClass({ componentDidMount: function() { this.props.dispat...
node/stack/src/client/components/helloworld.js
petrsmid/modern-javascript-course
import React from 'react'; export default class HelloWorld extends React.Component { constructor(props) { super(props); } render() { return ( <div> Hello World from our component! </div> ); } }
node_modules/react-native/Libraries/Modal/Modal.js
niukui/gitpro
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/Toggle/Checkbox.js
skystebnicki/chamel
import React from 'react'; import PropTypes from 'prop-types'; import TouchRipple from '../ripples/TouchRipple'; import FocusRipple from '../ripples/FocusRipple'; import ThemeService from '../styles/ChamelThemeService'; import CheckboxOutline from '../svg-icons/toggle-check-box-outline-blank'; import CheckboxChecked fr...
src/docs/components/select/SelectExamplesDoc.js
grommet/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Select from 'grommet/components/Select'; import Box from 'grommet/components/Box'; import InteractiveExample from '../../../components/InteractiveExample'; const PROPS_SCHEMA = { placeHolder: { valu...
scripts/Title.js
debarshri/react-logger
import React from 'react'; import DropdownButton from 'react-bootstrap/lib/DropdownButton'; import MenuItem from 'react-bootstrap/lib/MenuItem'; import NavItem from 'react-bootstrap/lib/NavItem'; import Nav from 'react-bootstrap/lib/Nav'; import Navbar from 'react-bootstrap/lib/Navbar'; import BarChart from 'react-d3/b...
src/svg-icons/av/fast-forward.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFastForward = (props) => ( <SvgIcon {...props}> <path d="M4 18l8.5-6L4 6v12zm9-12v12l8.5-6L13 6z"/> </SvgIcon> ); AvFastForward = pure(AvFastForward); AvFastForward.displayName = 'AvFastForward'; AvFastForw...
src/dream-modal/story/Modal.story.js
ofersarid/react-modal-dream-ui
/** * Created by ofersarid on 18/05/2017. */ import React from 'react'; import {storiesOf, action} from '@kadira/storybook'; import DreamModal from '../Modal'; import markdownDecorator from 'storybook-addon-markdown'; import notes from '!raw!./NOTES.md'; // import Button from '../components/Button'; const story = st...
WashingmachineFrontend/vaskemaskine-app/src/components/Header/Header.js
holdam/washingmachine-booking
import React from 'react'; import strings from '../../commons/strings'; import LoginContainer from '../../containers/LoginLogoutContainer'; import './Header.css'; import {Navbar, Nav} from 'react-bootstrap'; class Header extends React.Component { render() { return ( <div> <Navba...
src/components/Plot.js
albertveldman96/aveld
/* global Plotly */ import React, { Component } from 'react'; class Plot extends Component { drawPlot = () => { Plotly.newPlot('plot', [{ x: this.props.xData, y: this.props.yData, type: this.props.type }], { margin: { t: 0, r: 0, l:30 ...
src/js/components/icons/base/StandardsHtml5.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...
test.js
VovanR/react-indicator-legend
import test from 'ava'; import React from 'react'; import ReactTestUtils from 'react-addons-test-utils'; import C from './'; function createComponent(component) { const shallowRenderer = ReactTestUtils.createRenderer(); shallowRenderer.render(React.createElement(component)); return shallowRenderer.getRenderOutput()...
example/examples/FitToCoordinates.js
pjamrozowicz/react-native-maps
import React from 'react'; import { StyleSheet, View, Dimensions, TouchableOpacity, Text, } from 'react-native'; import MapView from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122.4324; const LA...
app/core/helpers/addRoutes.js
fredguile/react-redux-es2015-starter-kit
import React from 'react'; import {match, RoutingContext} from 'react-router'; import {promisify} from 'bluebird'; import serialize from 'serialize-javascript'; import {Provider} from 'react-redux'; import debugLib from 'debug'; import Routes from '../../components/Routes'; import getInitialState from './getInitialSta...
fields/types/select/SelectColumn.js
tony2cssc/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue'; var SelectColumn = React.createClass({ displayName: 'SelectColumn', propTypes: { col: React.PropTypes.object...
react/src/sui/ProgressBarComponent.js
ineffablep/simple-ui
import React from 'react'; class ProgressBar extends React.Component { render() { let percentage = this.props.percentage + '%'; return ( <div className="sui-center sui-progress-container"> <div className={'sui-progressbar ' + this.props.class} style={{ width: percentage ...
src/holders/Text.js
toplan/react-hold
import React from 'react' import PropTypes from 'prop-types' import shapes from '../shapes' const $nbsp = '\u00A0' const Text = ({ color, width, height, length, lineHeight, fontSize, fillerStyle }) => ( <div style={{ background: 'transparent', overflow: 'hidden', width, height, lin...
client/admin/components/Sidebar/Sidebar.js
bigwisu/josspoll
import React, { Component } from 'react'; import { Route, Link } from 'react-router-dom'; import axios from 'axios'; import { withRouter } from 'react-router'; let renderLeaf = (link, i) => { return ( <li className="nav-item" key={i}> <Link to={link.url} className="nav-link"> <i className={...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
Sribalaji1004/Angular-form
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/components/Tabs/frontend.js
ShantanuShirpure/Portfolio
import React from 'react' import TabPane from './../../components/dumbComponents/tab' import RRimg from '../Assets/ReactRedux.png' import Angimg from '../Assets/Angular.png' import Bimg from '../Assets/bootstrap.png' import Yimg from '../Assets/yarn.png' import MGrid from '../GridComponents/mainGrid' export default c...
client/components/position-table/position-row/PositionTotalGainLoss.js
kanehara/yostock
import React from 'react' import { GainLoss } from '../../gainloss/GainLoss' export function PositionTotalGainLoss(props) { const style = { flexGrow: 2 } return( <div style={style}> <h3>Total Gain/Loss</h3> <GainLoss gainLossDollar={props.position.totalGainLossDollar} ...
app/javascript/mastodon/features/status/components/card.js
narabo/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import punycode from 'punycode'; const IDNA_PREFIX = 'xn--'; const decodeIDNA = domain => { return domain .split('.') .map(part => part.indexOf(IDNA_PREFIX) === 0 ? punycode.decode(part.slice(IDNA_PREFIX.length)) : part) ...
node_modules/@exponent/ex-navigation/src/drawer/ExNavigationDrawerItem.js
Helena-High/school-app
import React from 'react'; export default class ExNavigationDrawerItem extends React.Component { render() { return null; } }
packages/netlify-cms-core/src/components/EditorWidgets/Unknown/UnknownControl.js
netlify/netlify-cms
import React from 'react'; import { translate } from 'react-polyglot'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; function UnknownControl({ field, t }) { return ( <div>{t('editor.editorWidgets.unknownControl.noControl', { widget: field.get('widget') })}</div> ...
src/containers/pages/decks/deck/right-container/sections/comments/section-footer-header.js
vFujin/HearthLounge
import React from 'react'; import PropTypes from 'prop-types'; import UploadStatusBtn from "../../../../../../../components/buttons/upload-status"; const SectionFooterHeader = ({handleHideCommentClick, handlePreviewClick, handlePostCommentClick, previewIsActive, deckCommentPostingStatus}) => { return ( <di...
clients/components/RemotePost/RemotePost.js
CalderaWP/Caldera-Forms
import React from 'react'; import {FeaturedImage} from "./FeaturedImage"; import {Grid, Row, Col} from 'react-bootstrap'; import url from '../functions/url'; import PostExcerpt from './PostExcerpt'; import PostTitle from './PostTitle'; export class RemotePost extends React.Component { render() { const ...
client/src/javascript/components/icons/Inactive.js
stephdewit/flood
import React from 'react'; import BaseIcon from './BaseIcon'; export default class Inactive extends BaseIcon { render() { return ( <svg className={`icon icon--inactive ${this.props.className}`} viewBox={this.getViewBox()}> <path d="M56,52H42l-9.7-12.5l-11,4.8L13,20.7l-7,4l-2-9.9L17.2,8l9.5,24.4l9....
src/client/components/ProConProvider.js
psu-hci/ReactiveThinker
import React from 'react'; import { Provider } from 'react-redux'; import configureStore from '../store/configureStore'; import ProConApp from './ProConComponent/ProConApp'; import { ProConContainer } from './ProConComponent/ProConPage/ProCons/ProConContainer'; const store = configureStore(); class ProConProvider ext...