path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
js/signin/src/components/GitHub.js
fogfish/oauth2
import React from 'react' import { AnchorButton, Intent } from '@blueprintjs/core' const GitHub = ({ clientId }) => ( <AnchorButton intent={Intent.PRIMARY} minimal href={`${window.env.GITHUB}&state=${clientId}`} > <i className="fa fa-github" /> &nbsp;&nbsp;GitHub </AnchorButton> ) export def...
src/explore/StartExploringContainer.js
ipfs/webui
import React from 'react' import { connect } from 'redux-bundler-react' import { StartExploringPage } from 'ipld-explorer-components' import withTour from '../components/tour/withTour' const StartExploringContainer = ({ toursEnabled, handleJoyrideCallback }) => ( <StartExploringPage runTour={toursEnabled} ...
TableComponent.js
mattijle/tabler
import uuid from 'uuid'; import React from 'react'; import HeaderComponent from './HeaderComponent'; import FooterComponent from './FooterComponent'; import RowComponent from './RowComponent'; export default class TableComponent extends React.Component { constructor(props){ super(props); } render(){...
client/src/containers/VisibleCreateUser.js
mtucciar/monster-chat
import React from 'react' import { connect } from 'react-redux' import { addUser } from '../actions/UserActions' import CreateUser from '../components/CreateUser' const mapDispatchToProps = (dispatch, name) => { return { onClick: (name) => { dispatch(addUser(name)) } } } const VisibleCreateUser = co...
packages/showcase/axes/padded-axis.js
uber/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
app/javascript/components/collection_index.js
avalonmediasystem/avalon
/* * Copyright 2011-2022, The Trustees of Indiana University and Northwestern * University. Licensed 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/licenses/LICENS...
app/containers/GamePage.js
cdiezmoran/AlphaStage-desktop
// @flow import React, { Component } from 'react'; import { connect } from 'react-redux'; import { desktopCapturer, ipcRenderer } from 'electron'; import $ from 'jquery'; import RecordRTC from 'recordrtc'; import jwtDecode from 'jwt-decode'; import swal from 'sweetalert'; // import types import type { Game, Feedback, ...
src/js/components/DataChart/stories/StackedBars.js
grommet/grommet
import React from 'react'; import { Box, DataChart, Text } from 'grommet'; const data = []; for (let i = 0; i < 7; i += 1) { data.push({ date: `2020-07-${((i % 31) + 1).toString().padStart(2, 0)}`, usage: Math.floor(Math.abs(Math.sin(i / 2.0) * 100)), bonus: Math.floor(Math.abs(Math.cos(i / 2.0) * 100))...
src/svg-icons/av/volume-up.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVolumeUp = (props) => ( <SvgIcon {...props}> <path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91...
src/primitives/form/checkbox/index.js
mpigsley/sectors-without-number
import React from 'react'; import PropTypes from 'prop-types'; import FlexContainer from 'primitives/container/flex-container'; import Input from 'primitives/form/input'; import Label from 'primitives/form/label'; import './style.scss'; export default function Checkbox({ label, value, onChange, ...rest }) { return...
services/ui/src/components/AddTask/logic.js
amazeeio/lagoon
import React from 'react'; import getConfig from 'next/config'; import * as R from 'ramda'; import withHandlers from 'recompose/withHandlers'; import withState from 'recompose/withState'; import withProps from 'recompose/withProps'; import compose from 'recompose/compose'; import gql from 'graphql-tag'; import { Query ...
app/components/Setup.js
echohubio/hubber
import React from 'react'; import { connect } from 'react-redux'; import { Alert, Glyphicon, Button } from 'react-bootstrap'; import { authenticate } from '../actions/auth'; import { finalise } from '../actions/setup'; import { setup } from '../actions/iot'; import { getConnected, getAuthenticated } from '../reducer...
packages/xo-web/src/common/button.js
vatesfr/xo-web
import classNames from 'classnames' import React from 'react' import PropTypes from 'prop-types' const Button = ({ active, block, btnStyle = 'secondary', children, outline, size, ...props }) => { props.className = classNames( props.className, 'btn', `btn${outline ? '-outline' : ''}-${btnStyle}`, acti...
src/components/Icon.js
tuckerconnelly/carbon-ui
import React, { Component } from 'react' import PropTypes from 'prop-types' import { Text, Platform } from 'react-native' const SIZE = 24 /** * A system icon, or UI icon, symbolizes a command, file, device, or directory. * System icons are also used to represent common actions like trash, print, * and save. * * ...
lib/components/notifications.js
derrickpelletier/hyper
import React from 'react'; import {PureComponent} from '../base-components'; import {decorate} from '../utils/plugins'; import Notification_ from './notification'; const Notification = decorate(Notification_); export default class Notifications extends PureComponent { template(css) { return ( <div class...
src/views/components/shared/track/track-list.js
EragonJ/Kaku
import React, { Component } from 'react'; class TrackList extends Component { constructor(props) { super(props); } render() { return ( <div className={this.props.trackClassName} onClick={this.props.onClick} onContextMenu={this.props.onContextMenu}> <i className={t...
src/nuggets/node/client/src/views/Home/Components/CategoryIcon.js
civiclee/Hack4Cause2017
import React from 'react'; import { Link } from 'react-router'; import { Row } from 'react-flexbox-grid'; const CategoryIcon = React.createClass({ render() { let categoryLink; if (this.props.categoryId === 4) { categoryLink = '/parking'; } else if (this.props.categoryId === 5) {...
src/components/Index/wb/aside/index.js
yangdongMC/kaola
import React from 'react' import styles from './index.less' import { connect } from 'dva' import { Input } from 'antd' const Search = Input.Search; class Aside extends React.Component{ render(){ return( <div className={ this.props._active_right?styles._active_right:styles.aside_main}> ...
src/components/Scene.js
spcoder/movietrivia
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import './Scene.css'; class Scene extends Component { goBack(e) { e.preventDefault(); window.history.back(); } render() { return ( <div className="Scene"> <h1 className="title">{this.props.title}</h1> ...
src/internal/EnhancedButton.js
skarnecki/material-ui
import React from 'react'; import {createChildFragment} from '../utils/childUtils'; import Events from '../utils/events'; import keycode from 'keycode'; import FocusRipple from './FocusRipple'; import TouchRipple from './TouchRipple'; let styleInjected = false; let listening = false; let tabPressed = false; function ...
src/svg-icons/action/settings-backup-restore.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsBackupRestore = (props) => ( <SvgIcon {...props}> <path d="M14 12c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm-2-9c-4.97 0-9 4.03-9 9H0l4 4 4-4H5c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.51 0-2....
src/frontend/main.js
PiTeam/garage-pi
import React from 'react'; import ReactDOM from 'react-dom'; import injectTapEventPlugin from 'react-tap-event-plugin'; import { Provider } from 'react-redux'; import Routes from 'routes'; import createAppStore from 'lib/store'; const store = createAppStore(); injectTapEventPlugin(); ReactDOM.render(( <Provider st...
source/routes.js
mpalmer685/DebtPayoffCalculator
import React from 'react' import { IndexRoute, Route } from 'react-router' import App from 'containers/App' import Accounts from 'containers/Accounts' import PayoffCalculator from 'containers/PayoffCalculator' const Router = () => ( <Route path="/" component={App}> <IndexRoute component={Payoff...
client/src/components/AddChannel.js
hankolsen/graphql-tutorial
import React from 'react'; import { gql, graphql } from 'react-apollo'; import { channelsListQuery } from './ChannelsListWithData'; const AddChannel = ({ mutate }) => { const handleKeyUp = (evt) => { if (evt.keyCode === 13) { evt.persist(); mutate( { variables: { name: evt.target.value }, ...
src/tabsets/notifs/RestoreItemFailNotif.js
dash-/netjumpio-tabs-web
/// // Dependencies /// import React, { Component } from 'react'; import FailRetryNotif from '../../elements/FailRetryNotif'; import * as actions from '../actions'; /// // View /// class RestoreItemFailNotifView extends Component { /// // Rendering /// renderMessage(action, userMessage) { return ( 'Rest...
lib/cli/generators/REACT_NATIVE_SCRIPTS/template/storybook/stories/Button/index.ios.js
nfl/react-storybook
import React from 'react'; import PropTypes from 'prop-types'; import { TouchableHighlight } from 'react-native'; const Button = props => <TouchableHighlight onPress={props.onPress}> {props.children} </TouchableHighlight>; Button.propTypes = { children: PropTypes.node.isRequired, onPress: PropTypes.func, ...
src/js/containers/about.js
axuebin/react-blog
import React from 'react'; import '../../css/about/about.css'; export default class About extends React.Component { componentDidMount() { this.node.scrollIntoView(); } render() { return ( <div className="main" ref={node => this.node = node} > <div className="main-container about-container">...
app/react-icons/fa/cloud-download.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaCloudDownload extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m26.6 20.7q0-0.3-0.2-0.5t-0.5-0.2h-4.6v-7.3q0-0.3-0.2-0.5t-0.5-0.2h-4q...
docs/src/app/components/pages/components/Menu/Page.js
frnk94/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 menuReadmeText from './README'; import MenuExampleSimple from './ExampleS...
blueocean-material-icons/src/js/components/svg-icons/maps/local-convenience-store.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const MapsLocalConvenienceStore = (props) => ( <SvgIcon {...props}> <path d="M19 7V4H5v3H2v13h8v-4h4v4h8V7h-3zm-8 3H9v1h2v1H8V9h2V8H8V7h3v3zm5 2h-1v-2h-2V7h1v2h1V7h1v5z"/> </SvgIcon> ); MapsLocalConvenienceStore.displayName = 'MapsLocalConvenience...
src/routes/Reviews/components/AddReview.js
johnthedesigner/review-ui
import React from 'react' import Thing from '../../Things/components/Thing' let titleInput, contentInput, ratingInput, thingIdInput let submitAddReview = (e, props) => { e.preventDefault() if (!titleInput.value.trim()) { return } let access_token = props.user.auth.id let review = { title: titleInpu...
client/components/Routes.js
FlammableHairnet/HireOrbit
import React from 'react'; import { Router, Route, IndexRoute, hashHistory, browserHistory } from 'react-router'; import AppContainer from '../containers/AppContainer'; import HomeContainer from '../containers/HomeContainer'; import Home from '../components/Home'; import SearchContainer from '../containers/SearchContai...
src/components/Single.js
collinstommy/fcc-recipe-box
import React from 'react'; import { browserHistory } from 'react-router'; import cloneDeep from 'lodash/cloneDeep'; import RaisedButton from 'material-ui/RaisedButton'; import TextField from 'material-ui/TextField'; import IngredientList from './IngredientList'; export default class Single extends React.Component {...
src/icons/ExploreIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class ExploreIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M24 21.8c-1.21 0-2.2.99-2.2 2.2s.99 2.2 2.2 2.2c1.22 0 2.2-.99 2.2-2.2s-.98-2.2-2.2-2.2zM24 4C12.95 4 4 12...
packages/vulcan-core/lib/modules/containers/withCurrentUser.js
acidsound/Telescope
import React, { Component } from 'react'; import { getFragment } from 'meteor/vulcan:lib'; import { graphql } from 'react-apollo'; import gql from 'graphql-tag'; const withCurrentUser = component => { return graphql( gql` query getCurrentUser { currentUser { ...UsersCurrent ...
react-ui/src/index.js
morewines/refund-calculator-bigcommerce
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render(<App />, document.getElementById('root'));
actor-apps/app-web/src/app/components/JoinGroup.react.js
Ajunboys/actor-platform
import React from 'react'; import requireAuth from 'utils/require-auth'; import DialogActionCreators from 'actions/DialogActionCreators'; import JoinGroupActions from 'actions/JoinGroupActions'; import JoinGroupStore from 'stores/JoinGroupStore'; // eslint-disable-line class JoinGroup extends React.Component { st...
src/components/MultiAutocompleteQuestion.js
dialob/dialob-fill-ui
/** * Copyright 2016 ReSys OÜ * * Licensed 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/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
node_modules/react-icons/md/phonelink-lock.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const MdPhonelinkLock = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m15.9 18.4v-2.5c0-1.4-1.2-2.2-2.5-2.2s-2.5 0.8-2.5 2.2v2.5h5z m2.1 0c1 0 2 0.9 2 2.1v5.8c0 1-1 2.1-2.2 2.1h-9.1c-1 0-2.1-1.1-2.1-2.2v-5.9c0-1 1.1-1.9 2.1-1.9v-2...
react-frontend/src/ClickableFeedEvent.js
aabmass/print-web
import React from 'react'; import { Feed } from 'semantic-ui-react'; import './ClickableFeedEvent.css' /** * Wraps up a semantic-ui-react Feed.Event and simply imports some css to * to make it look more clickable e.g. hover UI queues * */ const ClickableFeedEvent = ({enabled = true, ...props}) => ( <Feed.Event ...
infosite/src/App.js
ItsNotABugItsAFeature/transcribe
import React, { Component } from 'react'; import './App.css'; import View from './templates/view'; function Header(props) { return( <View id="header"> <headerbg><ld>TRANSCRIBE</ld><subheader>Breaking the Boundaries of Speech-to-Text Services</subheader></headerbg> </View> ); } function Inspiration(...
src/components/footer.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2016 Loki Education (Social Enterprise) 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, o...
app/components/views/members/Paginator.js
AidanNichol/stedwards-booking-system
import React from 'react'; export const Paginator = (props)=> { var {currentPage, max, maxVisible, changePage, clues, className=''} = props; var halfVisible = Math.ceil(maxVisible/2), skip = Math.min(Math.max(0, currentPage - halfVisible), max-maxVisible); var iterator = Array.apply(null, Array(maxVisibl...
src/components/AddFundsSourcePicker.js
OpenCollective/frontend
import React from 'react'; import PropTypes from 'prop-types'; import gql from 'graphql-tag'; import { FormControl } from 'react-bootstrap'; import { graphql } from 'react-apollo'; import { defineMessages, FormattedMessage } from 'react-intl'; import { get, groupBy } from 'lodash'; import withIntl from '../lib/withIntl...
src/pages/main/main.js
serbesttakim/adrenalin-mobile
import React, { Component } from 'react'; import { Text, } from 'react-native'; export default class Main extends Component { constructor(props) { super(props); } render() { return ( <View> </View> ); } }
docs/pages/company/contact.js
lgollut/material-ui
import React from 'react'; import TopLayoutCompany from 'docs/src/modules/components/TopLayoutCompany'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'company/contact'; const requireDemo = require.context('docs/src/pages/company/contact', false, /\.(js|tsx)$/); const requ...
packages/reactabular-table/src/header-row.js
reactabular/reactabular
import React from 'react'; import evaluateFormatters from './evaluate-formatters'; import evaluateTransforms from './evaluate-transforms'; import mergeProps from './merge-props'; import { tableHeaderRowTypes, tableHeaderRowDefaults } from './types'; const HeaderRow = ({ rowData, rowIndex, renderers, onRow }) => ( ...
app/javascript/mastodon/components/button.js
mhffdq/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class Button extends React.PureComponent { static propTypes = { text: PropTypes.node, onClick: PropTypes.func, disabled: PropTypes.bool, block: PropTypes.bool, secondary: PropTypes....
ui/src/App.js
cloudsonic/sonic-server
import React from 'react' import ReactGA from 'react-ga' import 'react-jinke-music-player/assets/index.css' import { Provider, useDispatch } from 'react-redux' import { createHashHistory } from 'history' import { Admin as RAAdmin, Resource } from 'react-admin' import dataProvider from './dataProvider' import authProvid...
blueocean-dashboard/src/main/js/components/stories/moments.js
alvarolobato/blueocean-plugin
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import { TimeDuration, ReadableDate } from '@jenkins-cd/design-language'; storiesOf('TimeDuration', module) .add('short duration - locale de', () => ( <TimeDuration millis={50000} locale="de" hintFormat="M [mos], d [Tage]...
lib/components/Tempalink.js
pquochoang/filepizza
import React from 'react' export default class Tempalink extends React.Component { onClick() { this.refs.input.getDOMNode().setSelectionRange(0, 9999) } render() { var url = window.location.origin + '/' + this.props.token return <input className="tempalink" onClick={this.onClick.bind(th...
src/containers/Login.js
vulong23/xlbox
import React from 'react' import LoginButton from '../presenters/LoginButton' import styles from './Login.css' import { logInWithFacebook, logInWithGoogle, logInWithGithub } from '../config/auth' export default () => ( <div className={styles.container}> <LoginButton style={{ heig...
public/js/cat_source/es6/components/header/HeaderProjectInfo.js
Ostico/MateCat
import React from 'react' class HeaderJobInfo extends React.Component { render() { return ( <div className="header-project-info"> {/*<div className="header-id-project-name">*/} {/*<div className="header-project-id">*/} {/*48503849*/} {/*</div>*/} {/*<div className="h...
eventkit_cloud/ui/static/ui/app/containers/logoutContainer.js
terranodo/eventkit-cloud
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import { logout } from '../actions/userActions'; const createHandlers = (dispatch) => { const handleLogout = () => { dispatch(logout()); }; return { handleLogout, }; }; class Logout e...
jspm-typescript-react/index.js
zarjay/react-bundle-showdown
/* global document */ import React from 'react' import { render } from 'react-dom' render(<div>Hello World</div>, document.body)
pootle/static/js/shared/components/LayeredComponent.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. * * Original idea: https://github.com/Khan/react-components ...
docs/app/Examples/elements/Step/Variations/StepExampleFluid.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Grid, Step } from 'semantic-ui-react' const StepExampleFluid = () => ( <Grid columns={2}> <Grid.Column> <Step.Group fluid vertical> <Step completed icon='truck' title='Shipping' description='Choose your shipping options' /> <Step active icon='dollar' title...
auth/index.ios.js
DaveWJ/LearningReact
import React, { Component } from 'react'; import { AppRegistry, Text, TextInput, View } from 'react-native'; class PizzaTranslator extends Component { constructor(props) { super(props); this.state = {text: ''}; } render() { return ( <View style={{padding: 10}}> <TextInput sty...
src/Components/video_list_item.js
JoshHarris85/React-Video-Player
import React from 'react'; const VideoListItem = ({video, onVideoSelect}) => { // const video = props.video; // same as ({video}) => {} const imageUrl = video.snippet.thumbnails.default.url; return ( <li onClick={ () => onVideoSelect(video) } className="list-group-item"> <div className="video-list m...
src/message/MessageContainer.js
saketkumar95/zulip-mobile
/* @flow */ import React from 'react'; import { Auth, DoNarrowAction, PushRouteAction } from '../types'; import htmlToDomTree from '../html/htmlToDomTree'; import renderHtmlChildren from '../html/renderHtmlChildren'; import MessageFull from './MessageFull'; import MessageBrief from './MessageBrief'; import { isUrlInAp...
src/svg-icons/action/delete-forever.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDeleteForever = (props) => ( <SvgIcon {...props}> <path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1....
fields/components/columns/IdColumn.js
lojack/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var IdColumn = React.createClass({ displayName: 'IdColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, ...
assets/javascripts/kitten/components/graphics/icons-next/tag-icon-next/index.js
KissKissBankBank/kitten
import React from 'react' import PropTypes from 'prop-types' export const TagIconNext = ({ color, title, ...props }) => ( <svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" {...props} > {title && <title>{title}</title>} <path d="M17.207 8.755a1.583 ...
src/svg-icons/maps/local-bar.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalBar = (props) => ( <SvgIcon {...props}> <path d="M21 5V3H3v2l8 9v5H6v2h12v-2h-5v-5l8-9zM7.43 7L5.66 5h12.69l-1.78 2H7.43z"/> </SvgIcon> ); MapsLocalBar = pure(MapsLocalBar); MapsLocalBar.displayName ...
client/pages/user.js
marioguerriero/opengram
import React from 'react' import { bindActionCreators } from 'redux'; import withRedux from 'next-redux-wrapper'; import { initStore } from '../redux/store'; import Head from './../components/Head'; import Footer from './../components/Footer'; import Header from './../components/Header'; import UserProfile from '....
examples/src/components/CustomSingleValue.js
hugotox/react-select
import React from 'react'; import Gravatar from 'react-gravatar'; var SingleValue = React.createClass({ propTypes: { placeholder: React.PropTypes.string, value: React.PropTypes.object }, render () { var obj = this.props.value; var size = 15; var gravatarStyle = { borderRadius: 3, display: 'inline-bl...
src/app/pin/containers/detail.js
brandondewitt/react-pinterest-clone
import React, { Component } from 'react'; import * as PinActions from 'pin/actions'; import { connect } from 'react-redux'; import { PinDetail } from 'PinDetail'; const pinSelector = (state) => { return { pin: state.pin.listItem }; }; @connect(pinSelector, PinActions) export class Detail extends Component { ...
client/components/ItemForm.js
carlbernardo/jimini
import React from 'react'; import ReactDOM from 'react-dom'; import Categories from './Categories.js' import $ from 'jquery'; class ItemForm extends React.Component { constructor(){ super(); this.handleSubmit = this.handleSubmit.bind(this); this.getItemnameRef = this.getItemnameRef.bind(this); this.g...
app/javascript/mastodon/features/mutes/index.js
kagucho/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { ScrollContainer } from 'react-router-scroll'; import Column from '../ui/components...
source/component/listview/searchList.js
togayther/react-native-cnblogs
import React, { Component } from 'react'; import { View, ListView } from 'react-native'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import PureRenderMixin from 'react-addons-pure-render-mixin'; import Spinner from '../spinner'; import EndTag from '../endtag'; import ViewPage f...
src/expandtext.js
madjemian/react-expand-text
import React from 'react'; class ExpandText extends React.Component { constructor(props) { super(props); this.state = { showFull: false }; } render() { let visibleText = null; if (this.state.showFull || this.props.text.length <= this.props.maxLength) { ...
Chapter11/chapter11-react/src/components/artist-profile/ArtistCollaborationListRow.js
johnciliberti/AspNetCoreRecipes
import React from 'react'; const ArtistCollaborationListRow = () => ( <div>ArtistCollaborationListRow Stub</div> ); export default ArtistCollaborationListRow;
lib/components/Spinner.js
codevlabs/filepizza
import React from 'react' import classnames from 'classnames' // Taken from StackOverflow // http://stackoverflow.com/questions/15900485/correct-way-to-convert-size-in-bytes-to-kb-mb-gb-in-javascript function formatSize(bytes) { if (bytes === 0) return '0 Bytes' const k = 1000 const sizes = ['Bytes', 'KB', 'MB',...
src/svg-icons/device/battery-unknown.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryUnknown = (props) => ( <SvgIcon {...props}> <path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4zm-2.72 13.95h-1.9...
ajax/libs/react-instantsearch/4.4.0/Connectors.js
joeyparrish/cdnjs
/*! ReactInstantSearch 4.4.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) : ...
fields/types/cloudinaryimage/CloudinaryImageFilter.js
andreufirefly/keystone
import React from 'react'; import { SegmentedControl } from 'elemental'; var PasswordFilter = React.createClass({ getInitialState () { return { checked: this.props.value || true, }; }, toggleChecked (checked) { this.setState({ checked: checked, }); }, render () { const options = [ { label: 'Is...
antd-dva/ant-design-pro-demo/test/src/components/Authorized/AuthorizedRoute.js
JianmingXia/StudyTest
import React from 'react'; import { Route, Redirect } from 'react-router-dom'; import Authorized from './Authorized'; class AuthorizedRoute extends React.Component { render() { const { component: Component, render, authority, redirectPath, ...rest } = this.props; return ( ...
src/index.js
evanram/evan-dot-coffee
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './component/App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/components/App.js
cristianszwarc/react_crud_localStorage
import React from 'react'; import { Component } from 'react'; // components (scenes) that will be displayed by this component import Splash from './pages/Splash'; import Home from './pages/Home'; import About from './pages/About'; import DevicesContainer from '../containers/DevicesContainer'; // scenes is a silly tri...
src/containers/Asians/Registration/Institutions/RegistrationAdjudicatorsView/index.js
westoncolemanl/tabbr-web
import React from 'react' import { connect } from 'react-redux' import Instance from './Instance' export default connect(mapStateToProps)(({ registrationAdjudicators, registrationInstitution, onOpenSnackbar }) => { if (!registrationInstitution) { return <div /> } const filterRegistrationAdjudicators ...
app/containers/UGTourPage/AttendantList.js
perry-ugroop/ugroop-react-dup2
/** * Created by yunzhou on 26/11/2016. */ import styled from 'styled-components'; import React from 'react'; const AttendantListTmp = (props) => <ul className={`clearfix ${props.className}`}> {props.children} </ul>; AttendantListTmp.propTypes = { className: React.PropTypes.any, children: React.PropTypes.an...
blueocean-material-icons/src/js/components/svg-icons/image/camera-alt.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageCameraAlt = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 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-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5...
src/svg-icons/action/query-builder.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionQueryBuilder = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5...
src/scotch-night/app/events/screens/EventList.js
SeattleScotchSociety/ScotchNight
// @flow import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import { List, ListItem, Button } from 'react-native-elements'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { SimpleLineIcons } from '@expo/vector-icons'; import * as moment from 'mom...
src/parser/priest/holy/modules/talents/100/HolyWordSalvation.js
ronaldpereira/WoWAnalyzer
import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox'; import React from 'react'; import Renew from 'parser/priest/holy/modules/spells/Renew'; import PrayerOfMending from 'parser/priest/holy/modules/spel...
src/client/react/user/views/ImageUploaderTest/index.js
bwyap/ptc-amazing-g-race
import React from 'react'; import axios from 'axios'; import autobind from 'core-decorators/es/autobind'; import { connect } from 'react-redux'; import { Button } from '@blueprintjs/core'; import API from '../../../../API'; import ImageUploader from '../../../../../../lib/react/components/ImageUploader'; const mapSta...
packages/create-subscription/src/createSubscription.js
mjackson/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import React from 'react'; import invariant from 'shared/invariant'; import warningWithoutStack from 'shared/warningWi...
src/components/Hint/Hint.js
hellofresh/janus-dashboard
import React from 'react' import PropTypes from 'prop-types' import block from '../../helpers/bem-cn' import './Hint.css' const b = block('j-hint') const propTypes = { children: PropTypes.string.isRequired, title: PropTypes.bool } const Hint = ({ children, title }) => ( <div className={b({ title })()}>{ chil...
server/util/generate-html.js
willopez/domainsjs
import serialize from 'serialize-javascript'; import React from 'react'; import { renderToString } from 'react-dom/server'; import { Provider } from 'react-redux'; import { ReduxRouter } from 'redux-router'; import Html from '../../shared/components/html'; export default function generateHtml(store, res) { // Get c...
src/client/components/Navigation/Notifications/NotificationFollowing.js
busyorg/busy
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { FormattedMessage, FormattedRelative } from 'react-intl'; import { Link } from 'react-router-dom'; import Avatar from '../../Avatar'; import { epochToUTC } from '../../../helpers/formatter'; import './Notificatio...
pootle/static/js/auth/components/AuthWindow.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 Modal from 'components/...
app/components/dashboard/calendar/Calendar.js
mchlltt/mementoes
// Import dependencies, components, and services. import React from 'react'; import {Jumbotron} from 'react-bootstrap'; import {Link} from 'react-router'; import CalendarWidget from './CalendarWidget'; import GetService from '../../../utils/getService'; // Construct services. let getEntries = new GetService('/api/entr...
src/routes/Home/components/HomeView.js
jhardin293/colorize
import React from 'react'; import styles from './HomeView.scss'; import Isvg from 'react-inlinesvg'; import menu from 'images/menu.svg'; import search from 'images/search.svg'; import Slider from 'react-toolbox/lib/slider'; import app from 'images/app.svg'; import cog from 'images/cogwheel.svg'; import draw from 'ima...
src/svg-icons/content/sort.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentSort = (props) => ( <SvgIcon {...props}> <path d="M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"/> </SvgIcon> ); ContentSort = pure(ContentSort); ContentSort.displayName = 'ContentSort'; ContentSort.mui...
server/index.js
08martinm/Personal-Site
import path from 'path' import http from 'http' import express from 'express' import helmet from 'helmet' import bodyParser from 'body-parser' import morgan from 'morgan' import compression from 'compression' import hpp from 'hpp' import throng from 'throng' import React from 'react' import ReactDOM from 'react-dom/se...
node_modules/react-bootstrap/es/ModalBody.js
superKaigon/TheCave
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 ...
04/js/app.js
arcthur/react-book-examples
import ReactDOM from 'react-dom'; import React from 'react'; import CommentBox from './components/CommentBox'; import '../css/style.css'; ReactDOM.render(<CommentBox />, document.getElementById('root'));
client/src/components/dashboard/Profile/Preferences/Mentorship.js
no-stack-dub-sack/alumni-network
import { connectScreenSize } from 'react-screen-size'; import { isEqual } from 'lodash'; import { mapScreenSizeToProps } from '../../../Navbar'; import MessageBox from '../../common/MessageBox'; import propTypes from 'prop-types'; import React from 'react'; import Ribbon from './common/RibbonHeader'; import SliderToggl...
src/components/Profile/views/ProfileView.js
chanpod/bosscollectionReact
import React from 'react' import { connect } from 'react-redux'; import TextField from 'material-ui/TextField'; import Paper from 'material-ui/Paper' import RaisedButton from 'material-ui/RaisedButton'; import Toggle from 'material-ui/Toggle'; import Avatar from 'material-ui/Avatar'; import Divider from 'material-ui/D...
src/svg-icons/notification/bluetooth-audio.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationBluetoothAudio = (props) => ( <SvgIcon {...props}> <path d="M14.24 12.01l2.32 2.32c.28-.72.44-1.51.44-2.33 0-.82-.16-1.59-.43-2.31l-2.33 2.32zm5.29-5.3l-1.26 1.26c.63 1.21.98 2.57.98 4.02s-.36 2.82-...