path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
my-app/src/pages/manager/index.js
father-wei/tutitu
import React from 'react' import ServiceList from '../../components/list/serviceList' import MemberList from '../../components/list/memberList' import ProviderList from '../../components/list/providerList' import List from '../../components/loggingService/list' import { loggingServices } from '../../core/dom...
client/src/components/PublicationStatus/PublicationStatus.js
mikedingjan/wagtail
import PropTypes from 'prop-types'; import React from 'react'; /** * Displays the publication status of a page in a pill. */ const PublicationStatus = ({ status }) => ( <span className={`o-pill c-status${status.live ? ' c-status--live' : ''}`}> {status.status} </span> ); PublicationStatus.propTypes = { st...
examples/webpack/src/components/Button.js
sapegin/react-styleguidist
import React from 'react'; import PropTypes from 'prop-types'; import './Button.css'; /** * The only true button. */ export default function Button({ color, size, children }) { const styles = { color, fontSize: Button.sizes[size], }; return ( <button className="button" style={styles}> {children} </bu...
mobile/src/components/status.js
sradevski/homeAutomate
import React, { Component } from 'react'; import { Text, View, StyleSheet } from 'react-native'; import { connect } from 'react-redux'; import {makeServerCall, generateRequestBody} from '../shared/utils'; const mapStateToProps = (state) => ({ appState: state.appState, location: state.location, }); class Status ext...
Realization/frontend/czechidm-core/src/content/scheduler/LongRunningTaskItems.js
bcvsolutions/CzechIdMng
import React from 'react'; import { connect } from 'react-redux'; // import * as Basic from '../../components/basic'; import * as Advanced from '../../components/advanced'; import * as Utils from '../../utils'; import { LongRunningTaskItemManager } from '../../redux'; import SearchParameters from '../../domain/SearchPa...
src/components/product-detail/product-detail-content.js
SupasitC/Pricetrolley
import React from 'react' import { Row, Col } from 'react-bootstrap' import FontAwesome from 'react-fontawesome' import PriceList from './price-list' export default class ProductDetailContent extends React.Component { render() { const style = require('./product-detail-content.scss'); return ( <Col md=...
src/Parser/VengeanceDemonHunter/TALENT_DESCRIPTIONS.js
Yuyz0112/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; export default { descriptions: { // lvl 99 [SPELLS.ABYSSAL_STRIKE_TALENT.id]: <span>Default talent for mobility build, giving you two extra <SpellLink id={SPELLS.INFERNAL_STRIKE.id} /> per minute. Increa...
src/client/lobby/Lobby.js
ThomasBrekelmans/stratego
import React from 'react'; import User from '../user/User'; import localLobby from './localLobby'; class Lobby extends React.Component { constructor (props) { super(props); this.state = { lobby: [] }; this._lobbySubscription = localLobby.observe('lobby') .subscribe((lobby) => { this.setState({ l...
src/buttons/ButtonGroup.js
fengshanjian/react-native-komect-uikit
import PropTypes from 'prop-types'; import React from 'react'; import { View, Text as NativeText, StyleSheet, TouchableHighlight, Platform, } from 'react-native'; import colors from '../config/colors'; import Text from '../text/Text'; import normalize from '../helpers/normalizeText'; const ButtonGroup = prop...
pootle/static/js/editor/components/plurr/CaretIcon.js
evernote/zing
/* * Copyright (C) Zing contributors. * * This file is a part of the Zing 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'; const CaretIcon = React.createClas...
docs/media/flex-video/index.js
valzav/react-foundation-components
import React from 'react'; import { FlexVideo } from '../../../src/flex-video'; const FlexVideoPage = () => ( <div> <h1>Flex Video</h1> <p> Wrap embedded videos from YouTube, Vimeo, and others in a flex video container to ensure they maintain the correct aspect ratio regardless of screen size. ...
app/javascript/flavours/glitch/features/ui/components/actions_modal.js
vahnj/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import StatusContent from 'flavours/glitch/components/status_content'; import Avatar from 'flavours/glitch/components/avatar'; i...
tests/site3/code2/components/globalProp.js
dominikwilkowski/cuttlebelle
import PropTypes from 'prop-types'; import React from 'react'; /** * The GlobalProp component for section text */ const GlobalProp = ({ _globalProp }) => ( <div> <h2>_globalProp</h2> <dl> <dt>_globalProp.foo:</dt> <dd>{ _globalProp.foo }</dd> <dt>_globalProp.enabled:</dt> <dd>{ _globalProp.enabled ...
packages/material-ui-icons/src/CropLandscape.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let CropLandscape = props => <SvgIcon {...props}> <path d="M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H5V7h14v10z" /> </SvgIcon>; CropLandscape = pure(CropLandscape); ...
src/components/ItemList.js
literarymachine/crg-ui
import React from 'react' import PropTypes from 'prop-types' import Icon from './Icon' import Link from './Link' import '../styles/ItemList.pcss' import translate from './translate' const ItemList = ({ translate, listItems }) => ( <ul className="ItemList" > {listItems.map(listItem => ( <li key={listItem....
docs/src/examples/addons/TransitionablePortal/index.js
Semantic-Org/Semantic-UI-React
import React from 'react' import Types from './Types' import Usage from './Usage' const TransitionablePortalExamples = () => ( <div> <Types /> <Usage /> </div> ) export default TransitionablePortalExamples
src/components/ChallengeListPage.js
forkhacker/webapp-react
import React from 'react'; import ChallengeCardList from './ChallengeCardList'; import ChallengePageFilter from './ChallengePageFilter'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import * as challengeActions from '../actions/challengeActions' class ChallengeListPage extends React.C...
src/App.js
yberg/react-store
import React from 'react'; import ReactDOM from 'react-dom'; import StoreItem from './StoreItem'; import SearchForm from './SearchForm'; import Cart from './Cart'; import ReactCSSTransitionGroup from 'react-addons-transition-group'; var fields = [ { label: "Product", type: "text", name: "product" }, ...
src/web/client/src/components/groups/group.js
devmynd/cloud-access-manager
import React from 'react' import graphqlApi from '../../graphql-api' import lodash from 'lodash' import MessagesContainer from '../shared/messages-container' import DropdownButton from '../shared/dropdown-button' export default class Group extends React.Component { state = { group: null, services: [] } ...
actor-apps/app-web/src/app/components/activity/UserProfileContactInfo.react.js
zomeelee/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class UserProfileContactInfo extends React.Component { static propTypes = { phones: React.PropTypes.arr...
example/components/Row.js
travelbird/react-native-navigation
import React from 'react'; import PropTypes from 'prop-types'; import { View, Text, Image, StyleSheet, } from 'react-native'; import BaseRow from './BaseRow'; import theme from '../util/theme'; const propTypes = { title: PropTypes.string.isRequired, subtitle: PropTypes.string, onPress: PropTypes.func, }...
src/pages/work/ostmodern.js
jcmnunes/josenunesxyz
import React from 'react'; import { graphql } from 'gatsby'; import Img from 'gatsby-image'; import SingleLayout from '../../components/layouts/singleLayout'; import { Anchor } from '../../components/Anchor'; export default ({ data }) => ( <SingleLayout title="Ostmodern / Formula 1" subTitle="Frontend develo...
src/client/components/message/chatSendShortcut.js
uuchat/uuchat
import React, { Component } from 'react'; import '../../static/css/shortcut.css'; let Shortcut = { data: [], newScObj: {}, init: function () { if (this.data.length > 0) { let newSc = localStorage.getItem("newShortcut"); if (newSc){ this.newScObj = JSON.parse...
src/parser/monk/brewmaster/modules/core/MasteryValue.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import HIT_TYPES from 'game/HIT_TYPES'; import Analyzer from 'parser/core/Analyzer'; import { EventType } from 'parser/core/Events'; import StatTracker from 'parser/shared/modules/StatTracker'; import LazyLoadStatisticBox from 'interface/others/LazyLoadStat...
src/components/Box.js
hbuchel/heather-buchel.com
import React from 'react'; import PropTypes from 'prop-types'; import { css } from '@emotion/core'; const Box = ({children, padding, as, className}) => { let El = as; const box = css` padding: calc(var(--gap) * ${padding}); & > *:first-child { margin-top: 0; } & > *:last-child { margin-...
client/components/Main.js
kmrigendra/think-analytics-app
import React from 'react'; import { Link } from 'react-router'; import Header from './Header'; const Main = React.createClass({ render() { // Then we go ahead and return some JSX return ( <div> <Header /> {/* We use cloneElement here so we can auto pass down props */} { React.c...
packages/material-ui-icons/src/ImageAspectRatio.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let ImageAspectRatio = props => <SvgIcon {...props}> <path d="M16 10h-2v2h2v-2zm0 4h-2v2h2v-2zm-8-4H6v2h2v-2zm4 0h-2v2h2v-2zm8-6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6...
src/components/common/svg-icons/action/all-out.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAllOut = (props) => ( <SvgIcon {...props}> <path d="M16.21 4.16l4 4v-4zm4 12l-4 4h4zm-12 4l-4-4v4zm-4-12l4-4h-4zm12.95-.95c-2.73-2.73-7.17-2.73-9.9 0s-2.73 7.17 0 9.9 7.17 2.73 9.9 0 2.73-7.16 0-9.9zm-1.1...
packages/react-server-examples/bike-share/pages/index.js
emecell/react-server
import React from 'react'; import {ReactServerAgent, RootElement, TheFold, logging} from 'react-server'; import NetworkList from '../components/network-list'; import Header from '../components/header'; import Footer from '../components/footer'; import '../styles/index.scss'; const logger = logging.getLogger(__LOGGER__...
ui/components/LogicForm.js
yih-en/data-triangulation-tool
import React, { Component } from 'react'; import { reduxForm } from 'redux-form'; import fieldComponent from './FieldComponent'; import * as Input from './Input'; import brace from 'brace'; import AceEditor from 'react-ace'; import 'brace/mode/sql'; import 'brace/theme/monokai'; var _ = require('lodash'); const Text...
docs/src/pages/customization/components/ClassNames.js
lgollut/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import Button from '@material-ui/core/Button'; import { withStyles } from '@material-ui/core/styles'; // We can inject some CSS into the DOM. const styles = { root: { background: 'linear-gradient(45deg, #FE6B8B 30%, #FF8E53 9...
src/widgets/EmailSubscriber/DefaultLayout/ActiveView.js
mydearxym/mastani
import React from 'react' import { ICON } from '@/config' import { Wrapper, SignIcon, Title, Desc, SubscribeInput, SubscribeBtnWrapper, SubscribeBtn, Cancel, } from '../styles/default_layout/active_view' const ActiveView = ({ title, desc, onCancel }) => { return ( <Wrapper> <SignIcon src={...
src/modules/depth/index.js
fanfanlala/ZUO-React
import React from 'react' import ReactDom from 'react-dom' import App from './App' ReactDom.render( <App />, document.getElementById('depth') )
src/svg-icons/action/find-replace.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFindReplace = (props) => ( <SvgIcon {...props}> <path d="M11 6c1.38 0 2.63.56 3.54 1.46L12 10h6V4l-2.05 2.05C14.68 4.78 12.93 4 11 4c-3.53 0-6.43 2.61-6.92 6H6.1c.46-2.28 2.48-4 4.9-4zm5.64 9.14c.66-.9 1....
resources/src/js/sections/Top/index.js
aberon10/thermomusic.com
'use strict'; import React from 'react'; import Ajax from '../../Libs/Ajax'; import {Link} from 'react-router-dom'; import Notification from '../../components/Notification/index'; import inFavorites from '../Explorer/components/util'; import ContentSpacing from '../../components/Containers/ContentSpacing'; import Main...
client/src/components/dashboard/messaging/reply-message.js
ronniehedrick/scapeshift
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Field, reduxForm } from 'redux-form'; import { sendReply } from '../../../actions/messaging'; const form = reduxForm({ form: 'replyMessage', }); const renderField = field => ( <div> <input className="form-control" autoCo...
public/js/components/trends/TrendContainer.react.js
IsuruDilhan/Coupley
import React from 'react'; import List from 'material-ui/lib/lists/list'; import Divider from 'material-ui/lib/divider'; import TextField from 'material-ui/lib/text-field'; import TrendsStore from '../../stores/TrendsStore'; import TrendsAction from '../../actions/TrendsAction'; import Trend from './trendbox.react'; im...
src/App.js
Jalissa/rss-feed-client
import React, { Component } from 'react'; import Header from './components/Header'; class App extends Component { render() { return ( <div> <Header/> <div className="container"> {this.props.children} </div> </div> ); } } export default App;
definitions/npm/react-css-collapse_v3.x.x/flow_v0.54.1-/test_react-css-collapse_v3.x.x.js
doberkofler/flow-typed
//@flow import React from 'react'; import Collapse from 'react-css-collapse'; { // $ExpectError <Collapse isOpen="a" /> } { // $ExpectError <Collapse onRest={1} /> } { // $ExpectError <Collapse onRest={() => true} /> } { <Collapse isOpen onRest={() => {}}><div/></Collapse> }
frontend/src/settings.js
miurahr/seahub
import React from 'react'; import ReactDOM from 'react-dom'; import { navigate } from '@reach/router'; import { Utils } from './utils/utils'; import { isPro, gettext, siteRoot, mediaUrl, logoPath, logoWidth, logoHeight, siteTitle } from './utils/constants'; import { seafileAPI } from './utils/seafile-api'; import toast...
src/components/DataTable/TableToolbarMenu.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 cx from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { settings } from 'carbon-components'; imp...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestParameters.js
peopleticker/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load({ id = 0, ...rest }) { return [ { id:...
examples/LeftAlignedNavbar.js
jareth/react-materialize
import React from 'react'; import Navbar from '../src/Navbar'; import NavItem from '../src/NavItem'; export default <Navbar brand='logo' left> <NavItem href='get-started.html'>Getting started</NavItem> <NavItem href='components.html'>Components</NavItem> </Navbar>;
packages/wix-style-react/src/InputWithLabel/InputWithLabel.js
wix/wix-style-react
import React from 'react'; import StatusAlertSmall from 'wix-ui-icons-common/StatusAlertSmall'; import LabelledElement from '../LabelledElement'; import Input from '../Input'; import Text from '../Text'; import PropTypes from 'prop-types'; import { classes } from './InputWithLabel.st.css'; import dataHooks from './dat...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/StateUninitialized.js
samwgoldman/flow
// @flow import React from 'react'; class MyComponent extends React.Component { props: Props; state: State; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component { props: Props; state: State; de...
node_modules/react-select/examples/src/components/States.js
Alex-Shilman/Drupal8Node
import React from 'react'; import Select from 'react-select'; const STATES = require('../data/states'); var StatesField = React.createClass({ displayName: 'StatesField', propTypes: { label: React.PropTypes.string, searchable: React.PropTypes.bool, }, getDefaultProps () { return { label: 'States:', sea...
docs/public/static/examples/v35.0.0/web-browser.js
exponent/exponent
import React, { Component } from 'react'; import { Button, Text, View, StyleSheet } from 'react-native'; import * as WebBrowser from 'expo-web-browser'; import Constants from 'expo-constants'; export default class App extends Component { state = { result: null, }; render() { return ( <View style={...
public/js/cat_source/es6/components/header/ActionMenu.js
riccio82/MateCat
import React from 'react' import Icon3Dots from '../icons/Icon3Dots' class ActionMenu extends React.Component { componentDidMount() { this.initDropdowns() } initDropdowns = () => { // 3Dots if (!_.isUndefined(this.dropdownThreeDots)) { let dropdownThreeDots = $(this.dropdownThreeDots) d...
client/src/components/ToggleButton.js
banderson/reactive-stock-ticker-demo
import React from 'react'; import {Button} from 'elemental'; export default class ToggleButton extends React.Component { static propTypes = { recording: React.PropTypes.bool } static defaultProps = { recording: false } render() { const {recording, ...other} = this.props; const icon = record...
app/components/GeometryCanvasUuid/index.js
mhoffman/CatAppBrowser
/** * * GeometryCanvasUuid * */ import React from 'react'; import Button from 'material-ui/Button'; import { withStyles } from 'material-ui/styles'; import axios from 'axios'; import { graphQLRoot } from 'utils/constants'; import PropTypes from 'prop-types'; import { download } from 'utils'; import { MdFileDow...
examples/query-params/app.js
axross/react-router
import React from 'react' import { createHistory, useBasename } from 'history' import { Router, Route, Link } from 'react-router' const history = useBasename(createHistory)({ basename: '/query-params' }) class User extends React.Component { render() { let { userID } = this.props.params let { query } = thi...
src/js/components/sidebarComponents/Sprite.js
levadadenys/graphic-designer-portfolio-react
import React from 'react'; class Sprite extends React.PureComponent { static defaultProps = { herf: '#', target: '_blank', title: 'Contact', icon: 'socicon-mail socicons ' }; render () { return ( <div className="sidebar-nav-item"> <a href={this.props.href} target={this.props.ta...
packages/xo-web/src/common/json-schema-input/string-input.js
vatesfr/xo-web
import PropTypes from 'prop-types' import React from 'react' import uncontrollableInput from 'uncontrollable-input' import Combobox from '../combobox' import Component from '../base-component' import getEventValue from '../get-event-value' import { PrimitiveInputWrapper } from './helpers' // ========================...
src/app/components/team/SmoochBot/SmoochBotSettings.js
meedan/check-web
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import Box from '@material-ui/core/Box'; import Typography from '@material-ui/core/Typography'; import SmoochBotIntegrations from './SmoochBotIntegrations'; import SmoochBotSetting from './SmoochBotSetting'; c...
src/components/Login.js
ohmyjersh/sso-component
import React from 'react'; import TextField from './common/TextField'; const LoginShell = (props) => { const currentState = props.state.getIn(['login','currentState']); const {components} = props; if(currentState === 'LOGGEDIN') { console.log('go to....'); window.location.href = props.redir...
src/App.js
gom3s/math4Kids
import './App.css'; import injectTapEventPlugin from 'react-tap-event-plugin'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import React, { Component } from 'react'; import Route from './components/app/Route'; injectTapEventPlugin(); class App extends Component { render() { return (...
node_modules/react-bootstrap/es/MenuItem.js
acalabano/get-committed
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 ...
docs/app/Examples/elements/Segment/Variations/SegmentExampleClearing.js
aabustamante/Semantic-UI-React
import React from 'react' import { Button, Segment } from 'semantic-ui-react' const SegmentExampleClearing = () => ( <Segment clearing> <Button floated='right'> floated </Button> </Segment> ) export default SegmentExampleClearing
src/svg-icons/maps/layers-clear.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLayersClear = (props) => ( <SvgIcon {...props}> <path d="M19.81 14.99l1.19-.92-1.43-1.43-1.19.92 1.43 1.43zm-.45-4.72L21 9l-9-7-2.91 2.27 7.87 7.88 2.4-1.88zM3.27 1L2 2.27l4.22 4.22L3 9l1.63 1.27L12 16l2.1-...
src/routes/User/User.js
townmi/ReactExamples
/** * */ import React, { Component } from 'react'; import axios from 'axios'; import { Link } from 'react-router'; import ListCell from '../../components/ListCell'; import './user.scss'; class User extends Component { constructor(props) { super(props); this.state = { userInfo: null...
docs/src/utils/DemoPageLayout.js
gocreating/react-tocas
import React from 'react'; import PageLayout from './PageLayout'; import './DemoPageLayout.css'; let DemoPageLayout = ({ title, description, children }) => ( <PageLayout> <div className="ts huge heading padded slate bottom margined"> <span className="header">{title}</span> <span className="descriptio...
pathfinder/vtables/decommissioningcommissioningapplications/src/common/TableUtilities.js
leanix/leanix-custom-reports
import React from 'react'; import Utilities from './Utilities'; import Link from './Link'; import LinkList from './LinkList'; /* formatting functions for the table */ const OVERFLOW_CELL_STYLE = { maxHeight: '100px', overflow: 'auto' }; function formatLinkFactsheet(setup) { const baseUrl = Utilities.getFrom(setup...
ui/button.js
jamen/neta
import React, { Component } from 'react'; import { Link } from 'react-router'; class Button extends Component { render() { const btn = (<div className="button">{this.props.name}</div>); if (typeof this.props.to !== 'undefined') { return (<Link to={this.props.to}>{btn}</Link>); } return btn; ...
client/index.js
derektliu/reddit-reader
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; ReactDOM.render( <App />, document.getElementById('app') );
src/svg-icons/action/history.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHistory = (props) => ( <SvgIcon {...props}> <path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 ...
renderer/components/Icon/Filter.js
LN-Zap/zap-desktop
import React from 'react' const SvgFilter = props => ( <svg height="1em" viewBox="0 0 14 13" width="1em" {...props}> <g fill="none" fillRule="evenodd" transform="translate(1)"> <circle cx={9} cy={6.5} fill="currentColor" r={1.5} /> <circle cx={6} cy={1.5} fill="currentColor" r={1.5} /> <circle ...
src/scenes/bookRanking.js
Seeingu/borrow-book
/* 排行榜 */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Text, Image, View, StyleSheet, TouchableNativeFeedback, } from 'react-native'; import LinearGradient from 'react-native-linear-gradient'; import TopBar from '../components/topBar'; import { CommonStyles, Compo...
src/layouts/PageLayout/ScrollToTop.js
yoshiyoshi7/react2chv2
import React, { Component } from 'react'; import { withRouter } from 'react-router'; class ScrollToTop extends Component { componentDidUpdate(prevProps) { if (this.props.location !== prevProps.location) { window.scrollTo(0, 0) } } render() { return this.props.children } } export default with...
app/components/state.js
MadaraUchiha/isomorphic-react-app
import React from 'react'; export default class State extends React.Component { constructor(props) { super(props); this.state = props; this.changeState = this.changeState.bind(this); // Because apparently, I need to do that now. } render() { return ( <div> ...
src/index.js
ankushjamdagani/portfolio
import React from 'react'; import ReactDOM from 'react-dom'; import configureStore from './store'; import './scss/main.scss'; import App from './app'; const store = configureStore(); ReactDOM.render( <App store={store} />, document.getElementById('root') ); console.info('Hello User!!', 'color: red')
src/components/item/view/ReservationList/ReservationList.js
katima-g33k/blu-react-desktop
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Button, Glyphicon } from 'react-bootstrap'; import { formatShortDate } from '../../../../lib/dateHelper'; import i18n from '../../../../lib/i18n'; import { link } from '../../../../lib/link'; import { Reservation } from '../../../.....
src/components/Sun/Sun.js
vanbujm/react-css-animation-practice
/* eslint-disable react/forbid-prop-types */ import React from 'react'; import PropTypes from 'prop-types'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Sun.css'; class Sun extends React.Component { static propTypes = { width: PropTypes.number.isRequired, height: PropType...
src/Deck.js
spudly/react-deck
import Card from 'react-card'; import React from 'react'; import validateChildren from './validateChildren'; const Deck = ({children}) => <ul className="deck"> {React.Children.map(children, child => <li>{child}</li>)} </ul>; Deck.displayName = 'Deck'; Deck.Card = Card; Deck.propTypes = { children: validat...
src/svg-icons/action/view-column.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewColumn = (props) => ( <SvgIcon {...props}> <path d="M10 18h5V5h-5v13zm-6 0h5V5H4v13zM16 5v13h5V5h-5z"/> </SvgIcon> ); ActionViewColumn = pure(ActionViewColumn); ActionViewColumn.displayName = 'Actio...
weekdays/App.js
rsperberg/react-native-exercises
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { Platform, StyleSheet, Text, View } from 'react-native'; const instructions = Platform.select({ ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu', and...
src/svg-icons/action/settings-bluetooth.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsBluetooth = (props) => ( <SvgIcon {...props}> <path d="M11 24h2v-2h-2v2zm-4 0h2v-2H7v2zm8 0h2v-2h-2v2zm2.71-18.29L12 0h-1v7.59L6.41 3 5 4.41 10.59 10 5 15.59 6.41 17 11 12.41V20h1l5.71-5.71-4.3-4....
client/client/containers/Modal/ModalRoot.js
funkyOne/facts
import React from 'react' import {connect} from 'react-redux' import DeletePostModal from './edit-fact-modal' import Modal from 'react-bootstrap/lib/Modal'; const MODAL_COMPONENTS = { 'EDIT_FACT': DeletePostModal /* other modals */ } const ModalRoot = ({ modalType, modalProps }) => { if (!modalType) { ...
Libraries/Components/TextInput/TextInput.js
chnfeeeeeef/react-native
/** * 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...
app/components/DropdownFontSelector.js
googlefonts/korean
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { FONTS, BODY_600 } from '../constants/defaults'; import { changeDescFontDropdownOpened } from '../actions'; import { getCurrentDescFont } from '../utils'; const Fragment = React.Fragment; class DropdownFontSelector extends Compon...
src/components/HomePage/CardGroup.js
KidsFirstProject/KidsFirstProject.github.io
import React from 'react'; import { Button, Card, Col, Row } from 'react-bootstrap'; import { LinkContainer } from 'react-router-bootstrap'; import styles from './CardGroup.module.css'; import aboutImage from '../../assets/images/shelter/shelter005.jpg'; import teamImage from '../../assets/images/shelter/shelter020.jpg...
src/esm/components/graphics/icons-next/lock-outline-icon/index.js
KissKissBankBank/kitten
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["color", "title"]; import React from 'react'; import PropTypes from 'prop-types'; export var LockOutlineIcon = function LockOutlineIcon(_ref) { var c...
src/components/Header/Header.js
sbiliaiev/transport-kharkiv
import React from 'react'; import './Header.css'; export default function Header() { return( <div className="header-logo"> <h1>Transport_KH</h1> <h3>Administration Panel</h3> </div> ); }
demo08/src/routes/IndexPage.js
lxlneo/reactdemo
import React, { Component } from 'react'; import { connect } from 'dva'; import { Layout, Row, Col, Tabs, Button, Spin, Icon } from 'antd'; import { Link } from 'dva/router'; import Topics from '../components/Topics/Topics'; import styles from './IndexPage.css'; import transformDate from '../utils/transformDate'; impor...
node_modules/react-bootstrap/es/FormControlFeedback.js
hsavit1/gosofi_webpage
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
packages/mcs-lite-admin-web/src/containers/Data/Data.js
MCS-Lite/mcs-lite
import React from 'react'; import PropTypes from 'prop-types'; import * as R from 'ramda'; import { Observable } from 'rxjs/Observable'; import Helmet from 'react-helmet'; import A from 'mcs-lite-ui/lib/A'; import P from 'mcs-lite-ui/lib/P'; import DashboardTitle from '../../components/DashboardTitle'; import Dashboard...
src/library/Icon/IconRadioButtonCheck.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconRadioButtonCheck(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...i...
frontend/src/admin/networkManagement/networkAdminsView/EditNetworkAdminForm.js
rabblerouser/core
import React from 'react'; import { connect } from 'react-redux'; import { Field, reduxForm } from 'redux-form'; import { InputField, FormHeaderWithSave } from '../../common/forms'; import { getSelectedNetworkAdmin, getSelectedNetworkAdminEmail, getIsCreating } from './reducers'; import { networkAdminUpdateRequested...
example/RNApp/app/routes/Profile/Profile.js
DesignmanIO/react-native-meteor-redux
import React from 'react'; import { Text, View, Image } from 'react-native'; import Button from '../../components/Button'; import Avatar from '../../components/Avatar'; import images from '../../config/images'; import { capitalize } from '../../lib/string'; import styles from './styles'; const Profile = (props) => { ...
webpack/scenes/Subscriptions/Manifest/ManageManifestModal.js
tstrachota/katello
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Col, Tabs, Tab, Form, FormGroup, FormControl, ControlLabel, Row } from 'react-bootstrap'; import { bindMethods, Button, Icon, Modal, Spinner, OverlayTrigger, Tooltip } from 'patternfly-react'; import { isEqual } from 'lodash'; import...
examples/todomvc/containers/Root.js
glifchits/redux
import React, { Component } from 'react'; import TodoApp from './TodoApp'; import { createStore, combineReducers } from 'redux'; import { Provider } from 'react-redux'; import rootReducer from '../reducers'; const store = createStore(rootReducer); export default class Root extends Component { render() { return ...
src/stories/layerSettings.js
Artsdatabanken/ecomap
import React from 'react' import { storiesOf } from '@storybook/react' import { action } from '@storybook/addon-actions' import { muiTheme } from 'storybook-addon-material-ui' import { Paper } from 'material-ui' import ActiveLayers from '../viewer/layer/ActiveLayers' import HexagonLayerSettings from '../viewer/layer/se...
docs/src/app/components/pages/components/Paper/ExampleCircle.js
frnk94/material-ui
import React from 'react'; import Paper from 'material-ui/Paper'; const style = { height: 100, width: 100, margin: 20, textAlign: 'center', display: 'inline-block', }; const PaperExampleCircle = () => ( <div> <Paper style={style} zDepth={1} circle={true} /> <Paper style={style} zDepth={2} circle={...
src/parser/rogue/outlaw/modules/spells/RollTheBonesEfficiency.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import RollTheBonesCastTracker, { ROLL_THE_BONES_CATEGORIES } from '../features/RollTheBonesCastTracker'; const MID_T...
src/components/signup.js
asommer70/thehoick-notes-server
import React, { Component } from 'react'; import { Link, browserHistory } from 'react-router' import Store from '../lib/store'; var store = new Store(); class Signup extends Component { constructor(props) { super(props); this.state = { username: '', password: '', confirmPass: '', e...
src/containers/RespondToPetition.js
iris-dni/iris-frontend
import React from 'react'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import { fetchPetitionByResponseToken } from 'actions/RespondActions'; import settings from 'settings'; import Loading from 'components/Loading'; import RespondToPetition from ...
lib/shared/screens/admin/screens/menus/screens/menu/components/menu-builder/pages/index.js
relax/relax
import Component from 'components/component'; import React from 'react'; import PropTypes from 'prop-types'; import {dataConnect} from 'relate-js'; import Pages from './pages'; @dataConnect( () => ({ fragments: Pages.fragments }) ) export default class MenuBuilderContainer extends Component { static propTyp...
src/containers/PlaylistCreate.js
kellhellia/vkReduxLast
import React, { Component } from 'react'; import { connect } from 'react-redux'; import store from '../store'; import { Link } from 'react-router'; import { getNewPlaylistName, createNewPlaylist } from '../actions'; class PlaylistCreate extends Component { constructor(props, context) { super(); thi...
src/components/extensions/class-challenges/class-challenge-selection.js
vFujin/HearthLounge
import React from 'react'; import {icon_filters} from "../../../globals/filters"; import Icon from "../../icon"; import {Link, withRouter} from "react-router-dom"; const ClassChallengeSelection = ({location}) => ( <div className="container__classChallenges--selection"> <h2>Select Class</h2> <ul className="c...
app/components/team/Form.js
buildkite/frontend
import React from 'react'; import PropTypes from 'prop-types'; import FormCheckbox from 'app/components/shared/FormCheckbox'; import FormRadioGroup from 'app/components/shared/FormRadioGroup'; import FormTextField from 'app/components/shared/FormTextField'; import Panel from 'app/components/shared/Panel'; import Butto...
src/test.js
AlecAivazis/react-liftC
// external imports import React from 'react' import { mount } from 'enzyme' import test from 'ava' // local imports import liftC from './liftC' // the configuration for the lift const state = { initialValue: 1, handlers: { increment(prev) { return prev + 1 }, addN(prev, n) { return prev +...