path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
packages/reactor-kitchensink/src/examples/Grid/AdvancedFeatures/RenderComponentsInCells/RenderComponentsInCells.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import { Grid, Column, RendererCell } from '@extjs/ext-react'; import ActionsCell from './ActionsCell'; export default class RendererCellExample extends Component { store = Ext.create('Ext.data.Store', { autoLoad: true, pageSize: 0, proxy: { ...
src/components/Inbox.js
chunghe/react-alt-react-router-example
import React from 'react'; import {RouteHandler} from 'react-router'; import InboxMessages from './InboxMessages'; class Inbox extends React.Component { render() { return ( <div> <h3>Inbox component</h3> <InboxMessages /> <RouteHandler /> </div> ) } } export default I...
app/react-icons/fa/file-archive-o.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaFileArchiveO extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m17.3 8.6v-2.9h-2.9v2.9h2.9z m2.8 2.8v-2.8h-2.8v2.8h2.8z m-2.8 2.9v-2.9...
src/js/components/map/index.js
Arlefreak/arlefreakClient
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { render } from 'react-dom'; let Map; let TileLayer; let Marker; let Popup; let Polyline; let CircleMarker; let ToolTip; class LeafletMap extends Component { constructor(props) { super(props); this.GetPolyLines = ...
src/components/LaborRightsSingle/Footer.js
goodjoblife/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; import { Link } from 'react-router-dom'; import { Wrapper } from 'common/base'; import { ArrowLeft, Thumbnails } from 'common/icons'; import { FacebookWrapper } from 'common/facebook'; import { formatCanonicalPath } from 'utils/...
node_modules/react-navigation/src/views/Transitioner.js
aksharora/ReactNativeDemoBasic
/* @flow */ import React from 'react'; import { Animated, StyleSheet, View, } from 'react-native'; import invariant from 'fbjs/lib/invariant'; import NavigationScenesReducer from './ScenesReducer'; import TransitionConfigs from './TransitionConfigs'; import addNavigationHelpers from '../addNavigationHelpers';...
src/client/assets/js/features/nodes/components/svg/Wire.js
me-box/iot.red
import React, { Component } from 'react'; import {NODE_WIDTH, NODE_HEIGHT, LINE_CURVE_SCALE, OUTPUT_GAP} from 'constants/ViewConstants'; export default class Wire extends Component { constructor(props){ super(props); this._path = this._path.bind(this); } _simplepath(){ const {x:s...
src/js/components/DataChart/stories/Detail.js
HewlettPackard/grommet
import React from 'react'; import { Box, DataChart } from 'grommet'; const data = []; for (let i = 1; i < 8; i += 1) { const v = Math.sin(i / 2.0); data.push({ date: `2020-07-${((i % 30) + 1).toString().padStart(2, 0)}`, percent: Math.abs(v * 100), }); } export const Detail = () => ( // Uncomment <Gr...
src/index.js
Cloudoki/hackforgood-paar
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { Route } from 'react-router' import { ConnectedRouter } from 'react-router-redux' import store, { history } from 'store' import LanguageProvider from 'containers/LanguageProvider' import { translationMessages } fr...
build/build-react.js
nolimits4web/Framework7-Icons
const fs = require('fs'); const path = require('path'); const { promise: exec } = require('exec-sh'); const clean = async () => { await exec('rm -rf package/react/*.js'); await exec('rm -rf package/react/esm/*.js'); await exec('rm -rf package/react/*.js'); await exec('rm -rf package/react/cjs/*.js'); }; const ...
src/components/common/horizontal-graph.js
aautem/aa
import React from 'react'; import PropTypes from 'prop-types'; import * as Animatable from 'react-native-animatable'; import { Grid, Col, Row } from 'react-native-easy-grid'; import { Text, View } from 'react-native'; import { Header, Button, Icon } from 'react-native-elements'; // const s = require('../../styles/horiz...
examples/huge-apps/routes/Grades/components/Grades.js
mjw56/react-router
import React from 'react'; class Grades extends React.Component { render () { return ( <div> <h2>Grades</h2> </div> ); } } export default Grades;
app/javascript/mastodon/features/report/components/status_check_box.js
pso2club/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Toggle from 'react-toggle'; import noop from 'lodash/noop'; import StatusContent from '../../../components/status_content'; import { MediaGallery, Video } from '../../ui/util/async-component...
components/code-sandbox-embed.js
CarlRosell/glamorous-website
import React from 'react' export default CodeSandboxEmbed function CodeSandboxEmbed({title, id}) { return ( <iframe title={title} src={`https://codesandbox.io/embed/${id}`} style={{ width: '100%', height: 500, border: 0, borderRadius: 4, overflow: 'hidde...
src/encoded/static/components/form.js
ENCODE-DCC/encoded
/* eslint-disable jsx-a11y/label-has-for */ import React from 'react'; import PropTypes from 'prop-types'; import jsonschema from 'jsonschema'; import _ from 'underscore'; import url from 'url'; import offset from '../libs/offset'; import UserRoles from '../libs/user_roles'; import { FetchedData, Param } from './fetch...
src/botPage/view/Dialogs/TradingView.js
binary-com/binary-bot
import React from 'react'; import { translate } from '../../../common/i18n'; import { iframe as iframeStyle } from '../style'; import Dialog from './Dialog'; const chartWidth = 700; const chartHeight = 700; function TradingViewComponent() { return <iframe style={iframeStyle} src="https://tradingview.binary.com/" ...
src/index.js
RedGeekPanda/reactive-todos
import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import {applyMiddleware, createStore} from 'redux'; import logger from 'redux-logger'; import App from './components/App'; import './index.css'; import registerServiceWorker from './registerServiceWorker'; import reducer ...
src/svg-icons/editor/insert-link.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertLink = (props) => ( <SvgIcon {...props}> <path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3...
src/components/Button.js
jp7internet/react-apz
import React from 'react'; const Button = props => ( <button className={`btn ${props.buttonType}`} onClick={props.onClick} title={props.children}> {props.children} </button> ); export default Button;
examples/pages/counter-fluxible/index.js
jeffhandley/react-composition
import React from 'react'; import url from 'url'; import Counter from './containers/Counter'; import counterStore from './counterStore'; import * as actions from './actions'; import Fluxible from 'fluxible'; import bindActionCreators from './bindActionCreators'; import { Container } from 'react-composite-pages'; import...
src/svg-icons/communication/import-contacts.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationImportContacts = (props) => ( <SvgIcon {...props}> <path d="M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 2...
src/containers/DevTools.js
davecarlson/reacty
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 /> </Dock...
src/form_builder/editor/object.js
clearbridgesoft/form-builder
import React from 'react'; import Form from 'react-jsonschema-form'; import deepmerge from 'deepmerge'; import deepcopy from 'deepcopy'; import common from './_common.js'; const schema = deepmerge(deepcopy(common),{ properties:{ configs:{ properties:{ conditional:{ type:'array', ...
_~2017/react/todos/src/components/Todo.js
zhoukekestar/drafts
import React from 'react' import PropTypes from 'prop-types' const Todo = ({ onClick, completed, text }) => ( <li onClick={onClick} style={{ textDecoration: completed ? 'line-through' : 'none' }} > {text} </li> ) Todo.propTypes = { onClick: PropTypes.func.isRequired, completed: PropTyp...
src/admin/components/cordova/index.js
ccetc/platform
import React from 'react' import { connect } from 'react-redux' import * as actions from './actions' class Cordova extends React.Component { static childContextTypes = { cordova: React.PropTypes.object } static propTypes = { status_bar: React.PropTypes.bool.isRequired, hideStatusBar: React.PropType...
client/components/usage/index.js
wheelcomplex/go-starter-kit
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import { IndexLink } from 'react-router'; import { usage, todo } from './styles'; import { example, p, link } from '../homepage/styles'; import { setConfig } from '../../actions'; class Usage extends Com...
docs/src/app/components/pages/get-started/ServerRendering.js
verdan/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import serverRenderingText from './server-rendering.md'; const ServerRendering = () => ( <div> <Title render={(previousTitle) => `Server Rendering - ${previousTitle}`} /> <MarkdownElemen...
src/components/InboxMessages.js
chunghe/react-alt-react-router-example
import React from 'react'; import {Link} from 'react-router'; import AltContainer from 'alt/AltContainer'; import InboxMessagesActions from '../actions/InboxMessagesActions'; import InboxMessagesStore from '../stores/InboxMessagesStore'; class Messages extends React.Component { constructor(props) { super(props)...
docs/app/Examples/collections/Grid/Variations/GridExampleTextAlignmentMixed.js
shengnian/shengnian-ui-react
import React from 'react' import { Grid, Menu } from 'shengnian-ui-react' const GridExampleTextAlignmentJustified = () => ( <Grid> <Grid.Row columns={3}> <Grid.Column> <Menu fluid vertical> <Menu.Item className='header'>Cats</Menu.Item> </Menu> </Grid.Column> <Grid.Col...
site/renderPath.js
craigklem/react-dnd
import React from 'react'; import IndexPage from './IndexPage'; export default function renderPath(path, props, onRender) { onRender( IndexPage.renderToString(props) ); }
src/desktop/apps/consign/components/choose_artist/index.js
kanaabe/force
import Autosuggest from 'react-autosuggest' import PropTypes from 'prop-types' import React from 'react' import block from 'bem-cn-lite' import { connect } from 'react-redux' import { get } from 'lodash' import { clearArtistSuggestions, chooseArtist, chooseArtistAdvance, fetchArtistSuggestions, showNotConsign...
webpack/move_to_pf/LoadingState/LoadingState.js
mccun934/katello
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { translate as __ } from 'foremanReact/common/I18n'; import { Spinner } from 'patternfly-react'; import './LoadingState.scss'; class LoadingState extends Component { constructor(props) { super(props); this.state = { re...
packages/react-examples/src/pages/pulldown/index.js
ustbhuangyi/better-scroll
import React from 'react' import './index.styl' const examples = [ { path: '/pulldown/default', name: 'Default', }, { path: '/pulldown/sina', name: 'Sina-Weibo(v2.4.0)', }, ] const Pulldown = (props) => { const goPage = (path) => { props.history.push(path) } return ( <div class...
src/components/Run.js
pcardune/pyret-ide
import React from 'react'; import Radium from 'radium'; import {connect} from 'react-redux'; import ClickOutside from 'react-click-outside'; import Button from './Button'; import Spinner from './Spinner'; import * as selectors from '../redux/selectors'; import styles from './styles'; import RunDropdown from './RunDrop...
components/User/UserProfile/UserLTIEdit.js
slidewiki/slidewiki-platform
import PropTypes from 'prop-types'; import React from 'react'; import { Microservices } from '../../../configs/microservices'; import {NavLink, navigateAction} from 'fluxible-router'; import { TextArea } from 'semantic-ui-react'; import { timeSince } from '../../../common'; import UserPicture from '../../common/UserPic...
frontend/src/InteractiveImport/Quality/SelectQualityModal.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Modal from 'Components/Modal/Modal'; import SelectQualityModalContentConnector from './SelectQualityModalContentConnector'; class SelectQualityModal extends Component { // // Render render() { const { isOpen, o...
app/containers/AdminRelaisCommandes/components/DetailsParFournisseur.js
Proxiweb/react-boilerplate
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { push } from 'react-router-redux'; import includes from 'lodash/includes'; import capitalize from 'lodash/capitalize'; import { createStructuredSelecto...
actor-apps/app-web/src/app/components/modals/create-group/ContactItem.react.js
yangchenghu/actor-platform
import React from 'react'; import AvatarItem from 'components/common/AvatarItem.react'; class ContactItem extends React.Component { static propTypes = { contact: React.PropTypes.object, onToggle: React.PropTypes.func } constructor(props) { super(props); this.onToggle = this.onToggle.bind(this)...
packages/react-error-overlay/src/components/Footer.js
in2core/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. */ /* @flow */ import React from 'react'; import { darkGray } from '../styles'; const footerStyle = { fontFamily: 'sans-serif', color:...
src/components/Sidebar/index.js
akilbekov/blog
import React from 'react'; import get from 'lodash/get'; import { Link } from 'gatsby'; import Menu from '../Menu'; import Links from '../Links'; import profilePic from '../../pages/avatar.jpg'; import './style.scss'; class Sidebar extends React.Component { render() { const { location } = this.props; const {...
docs/src/app/components/pages/components/AutoComplete/Page.js
pomerantsev/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 autoCompleteReadmeText from './README'; import autoCompleteCode from '!ra...
src/svg-icons/editor/vertical-align-center.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorVerticalAlignCenter = (props) => ( <SvgIcon {...props}> <path d="M8 19h3v4h2v-4h3l-4-4-4 4zm8-14h-3V1h-2v4H8l4 4 4-4zM4 11v2h16v-2H4z"/> </SvgIcon> ); EditorVerticalAlignCenter = pure(EditorVerticalAlig...
src/svg-icons/action/turned-in-not.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTurnedInNot = (props) => ( <SvgIcon {...props}> <path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"/> </SvgIcon> ); ActionTurnedInNot = pure(ActionTurnedInNo...
src/index.js
mathysjtaljaard/phishing-for-topics
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker(); // Enable HMR if (module.hot) { module.hot.accept('./App', () =...
Example/index.android.js
APSL/react-native-options-button
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class Example extends Component { render() { return ( <View style={styles.container}>...
app/components/App.js
Strive22/Hunt
import React from 'react'; import { browserHistory, Link } from 'react-router'; import { PageHeader, Glyphicon } from 'react-bootstrap'; import axios from 'axios'; import querystring from 'querystring'; import job from '../models/jobModel'; import user from '../models/userModel'; class App extends React.Component { ...
server/sonar-web/src/main/js/apps/projects/components/NoProjects.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
src/routes/main-routes.js
thegazelle-ad/gazelle-front-end
/* eslint-disable react/jsx-filename-extension */ import { Route, IndexRoute } from 'react-router'; import React from 'react'; import InteractiveArticle from 'components/main/InteractiveArticle'; import AppController from 'components/main/AppController'; import ArticleController from 'components/main/ArticleController...
src/components/helpers/center.js
awaseem/Jam
import React from 'react'; function Center(props) { return ( <div style={{ textAlign: 'center', borderRadius: 0, display: 'block', marginLeft: 'auto', marginRight: 'auto', }} >{props.children}</div> ); } Center.propTypes = { children: React.PropTypes.a...
mockups/dashExample.js
speTortle/codeLaborate
import React, { Component } from 'react'; import Header from './header'; class DashExample extends Component { render() { return ( <div> <Header changeView = {this.props.changeView}/> <section id="main"> <div className="container"> <div className="content"> ...
node_modules/re-base/examples/firebase/github-notetaker/app/components/Github/UserProfile.js
aggiedefenders/aggiedefenders.github.io
import React from 'react'; import PropTypes from 'prop-types'; class UserProfiles extends React.Component { render() { return ( <div> <h3> User Profile </h3> <ul className="list-group"> {this.props.bio.avatar_url && ( <li className="list-group-item"> <img...
src/svg-icons/av/forward-10.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvForward10 = (props) => ( <SvgIcon {...props}> <path d="M4 13c0 4.4 3.6 8 8 8s8-3.6 8-8h-2c0 3.3-2.7 6-6 6s-6-2.7-6-6 2.7-6 6-6v4l5-5-5-5v4c-4.4 0-8 3.6-8 8zm6.8 3H10v-3.3L9 13v-.7l1.8-.6h.1V16zm4.3-1.8c0 .3 0...
src/client/student/ArrivingStudent.js
jmicmoore/merit-badge-university
import React from 'react'; import FontAwesome from 'react-fontawesome'; class Student extends React.Component { constructor(){ super(); this.handleSignIn = this.handleSignIn.bind(this); this.handleSignOut = this.handleSignOut.bind(this); } handleSignIn(student){ this.props...
src/routes.js
geoffreyfloyd/op
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Router from 'react-routi...
src/view/sms/sms-dashboard/index.js
fishmankkk/mircowater2.0
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'dva' import { Row, Col, Card, Modal, Spin } from 'antd' import { Loader, FormPop } from 'components' import { MwaterTable } from 'containers' import 'gobal' import { color } from 'utils/theme' import { BtnCard } from './components' c...
app/components/TerminalLogs.js
tiberiusuciu/rpg-io
import React, { Component } from 'react'; import styles from '../styles/TerminalLogs.css'; // TODO: Change to moment.js timing let id = 0; class TerminalLogs extends Component { render() { return ( <div className={styles.lineLength} > <ul className={styles.listStyling}> { // Log = { // use...
src/components/App.js
mayankchd/react-text-emoji
import React from 'react'; import {render} from 'react-dom'; import EmojiMarkdown from './EmojiMarkdown'; render(<EmojiMarkdown /> , document.getElementById('root'));
src/scenes/Auth/Forgot/ForgotPage.js
ntxcode/react-base
import React, { Component } from 'react'; import FormCard from 'components/ui/FormCard'; import AuthPage from 'scenes/Auth/components/AuthPage'; import ForgotForm from './ForgotForm'; class ForgotPage extends Component { submit = values => { // print the form values to the console console.log(values); }; ...
client/src/javascript/components/icons/RadarIcon.js
jfurrow/flood
import React from 'react'; import BaseIcon from './BaseIcon'; export default class RadarIcon extends BaseIcon { render() { return ( <svg className={`icon icon--disk ${this.props.className}`} viewBox={this.getViewBox()}> <path d="M30,59A29,29,0,1,1,59,30,29,29,0,0,1,30,59ZM30,6A24,24,0,1,0,54,30,24...
stories/components/icons/Pipeline.stories.js
buildkite/frontend
/* global module */ import React from 'react'; import { storiesOf } from '@storybook/react'; import Pipeline from '../../../app/components/icons/Pipeline'; storiesOf('Icons', module) .add('Pipeline', () => ( <Pipeline /> ));
src/Dialog/macOs/index.js
gabrielbull/react-desktop
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Margin, { marginPropTypes } from '../../style/margin'; import Alignment, { alignmentPropTypes, removeAlignmentProps } from '../../style/alignment'; import Text from '../../Text/macOs'; import styles from './style/10.11'; @Margin({...
app/index.js
vivek3003/redux-react-trello-type-app
import React from 'react' import { render } from 'react-dom' import { createStore, applyMiddleware } from 'redux' import { Provider } from 'react-redux' import Main from './main.jsx' import {trelloApp} from './reducers.js' import thunk from 'redux-thunk'; const logger = store => next => action => { console.log('disp...
app/javascript/mastodon/features/report/statuses.js
lindwurm/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import StatusCheckBox from 'mastodon/features/report/containers/status_check_box_container'; import { OrderedSet } from 'immutable'; import { FormattedMessage...
src/components/Quote.js
jubianchi/semver-check
import React from 'react'; import PropTypes from 'prop-types'; import './Quote.scss'; const Quote = props => ( <blockquote className={`blockquote pl-3 ${props.className}`}> {props.children} <footer className="blockquote-footer"> <a href={props.source}>{props.author}</a> </foote...
src/js/components/common/teamLink.js
alexzherdev/foosballtracker
import React from 'react'; import { Link } from 'react-router'; import { number, node } from 'prop-types'; const TeamLink = ({id, children}) => <Link to={`/stats/${id}`}> {children} </Link>; TeamLink.propTypes = { id: number.isRequired, children: node }; export default TeamLink;
components/auth/UnlinkFromFacebook.js
digithun/nap
import React from 'react' import { gql, graphql, compose } from 'react-apollo' import userProfile from '../userProfile.gql' import PropTypes from 'prop-types' class UnlinkFromFacebook extends React.Component { constructor (props) { super(props) this.unlinkFromFacebook = props.unlinkFromFacebook } handl...
packages/reactor-kitchensink/src/examples/TouchEvents/TouchEvents.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import { Container, Panel } from '@extjs/ext-react'; export default class TouchEventsExample extends Component { constructor() { super(); this.state = { events: [] } } componentDidMount() { const fn = this.onTouchEvent...
renderer/components/Form/Radio.js
LN-Zap/zap-desktop
import React from 'react' import PropTypes from 'prop-types' import { Radio as InformedRadio } from 'informed' import styled from 'styled-components' import { Box } from 'rebass/styled-components' import { themeGet } from '@styled-system/theme-get' import { Text } from 'components/UI' import Label from './Label' const...
src/Badge.js
dongtong/react-bootstrap
import React from 'react'; import ValidComponentChildren from './utils/ValidComponentChildren'; import classNames from 'classnames'; const Badge = React.createClass({ propTypes: { pullRight: React.PropTypes.bool }, getDefaultProps() { return { pullRight: false }; }, hasContent() { re...
src/components/SortList.js
WhiteBlue/bilibili-react
import React from 'react'; import AMUIReact from 'amazeui-react'; import Lib from '../Lib'; var SortList = React.createClass({ getInitialState: function () { return { list: [], error: false, page: 1, isLoad: false }; }, refreshList: function (page) { var oldList = this.state....
examples/src/components/CustomSingleValue.js
goodzsq/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...
Web/src/main.js
CMITInternational/Guitars
import React from 'react'; import ReactDOM from 'react-dom'; import { createHistory } from 'history'; import { useRouterHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import makeRoutes from './routes'; import Root from './containers/Root'; import configureStore from './contain...
src/ui/components/Header/QueueList.react.js
Eeltech/SpaceMusik
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { ButtonGroup, Button } from 'react-bootstrap'; import classnames from 'classnames'; import QueueListItem from './QueueListItem.react'; import AppActions from '../../actions/AppActions'; import utils from '../../utils/utils'; /* ...
src/static/containers/Root/Root.dev.js
24HeuresINSA/pass-checker
import React from 'react'; import { Provider } from 'react-redux'; import { Router } from 'react-router'; import routes from '../../routes'; import DevTools from './DevTools'; export default class Root extends React.Component { static propTypes = { store: React.PropTypes.shape().isRequired, histo...
app/utils/injectSaga.js
Demonslyr/Donut.WFE.Customer
import React from 'react'; import PropTypes from 'prop-types'; import hoistNonReactStatics from 'hoist-non-react-statics'; import getInjectors from './sagaInjectors'; /** * Dynamically injects a saga, passes component's props as saga arguments * * @param {string} key A key of the saga * @param {function} saga A r...
web/src/client/main.js
shawn-dsz/este
import React from 'react'; import ReactDOM from 'react-dom'; import Router from 'react-router'; import {configureStore} from '@este/common'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import createRoutes from './createRoutes'; import {IntlProvider} from 'react-intl'; import {Provider} from 're...
utils/initStore.js
Satyam/ReaCTC
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import setDisplayName from 'recompose/setDisplayName'; import wrapDisplayName from 'recompose/wrapDisplayName'; const initStore = initializer => (BaseComponent) => { const init = Array.isArray(initializer) ? initializer[0] : initializer; ...
src/svg-icons/maps/directions-bike.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsBike = (props) => ( <SvgIcon {...props}> <path d="M15.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM5 12c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3....
app/containers/ProfileView.js
react-rpm/react-rpm
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ProfileChart from '.././components/ProfileChart'; import ProfileBar from '.././components/ProfileBar'; import ProfileContent from '.././components/ProfileContent'; import styles from '.././assets/profileView.css'; import viewVisibility...
src/components/LoadingButton.js
codevinsky/deep-ellum-jukebox-ui
import React from 'react'; import { Button } from 'react-bootstrap'; class LoadingButton extends React.Component { constructor(...args) { super(...args); this.state = {isLoading: false} } render() { let isLoading = this.state.isLoading; let style = this.props.bsStyle || 'default'; let load...
app/javascript/mastodon/components/avatar_overlay.js
tri-star/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class AvatarOverlay extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, friend:...
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js
changjiashuai/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; import ActorClient from 'utils/ActorClient'; import { Styles, FlatButton } from 'material-ui'; import { KeyCodes } from 'constants/ActorAppConstant...
client/src/components/sales/pricing-table.js
RajivLinkites/Starter-Skeleton
import React, { Component } from 'react'; import { Link } from 'react-router'; class PricingTable extends Component { render() { const componentStyle = { backgroundColor: this.props.color || '#5BC0DE', color: this.props.fontColor || '#FFF', }; return ( <div className="pricing-table"> ...
src/components/BodyComponent.js
reshak/exodus
/*jshint esnext: true */ import React from 'react'; import mui from 'material-ui'; import PhysicalView from './playground/PhysicalViewComponent'; import NotFound from './playground/NotFoundComponent'; import Ovsdb from './playground/OvsdbComponent'; import Bridges from './playground/BridgesComponent'; import Interfac...
src/components/common/mediaPicker/results/AllMediaSearchResultsContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import TabSandCSearchResultsContainer from './TabSandCSearchResultsContainer'; const localMessages = { title: { id: 'system.mediaPicker.collections.title', defaultMessage: 'C...
docs/client/components/pages/Playground/PlaygroundEditor/ColorControls/StyleButton/index.js
dagopert/draft-js-plugins
import React, { Component } from 'react'; import colorStyleMap from '../../colorStyleMap'; const styles = { styleButton: { color: '#999', cursor: 'pointer', marginRight: 16, padding: '2px 0', }, }; export default class StyleButton extends Component { constructor(props) { super(props); th...
src/components/charts.js
xuan6/admin_dashboard_local_dev
import React from 'react'; //charts import ActivityTrendAll from './activity_trend_all'; import ActivityTrendIndividual from './activity_trend_individual'; import CategoryFre from './category_frequency'; import ActivityTrendByDpt from './activity_trend_department'; import CategoryFreAll from './category_frequency_all'...
client/src/javascript/components/modals/remove-torrents-modal/RemoveTorrentsModal.js
jfurrow/flood
import {Checkbox, Form, FormRow} from 'flood-ui-kit'; import {FormattedMessage, injectIntl} from 'react-intl'; import React from 'react'; import Modal from '../Modal'; import SettingsStore from '../../../stores/SettingsStore'; import TorrentActions from '../../../actions/TorrentActions'; import TorrentStore from '../....
example/index.js
idolize/redux-react-router-transitions
import React from 'react'; import { create as createRouter, HistoryLocation } from 'react-router'; import { Provider } from 'react-redux'; import routes from './routes/'; import createStore from './createStore'; import { TRANSITION_TO_ROOT } from './constants/ActionTypes'; const router = createRouter({ location: Hi...
src/svg-icons/action/favorite.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFavorite = (props) => ( <SvgIcon {...props}> <path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6...
src/svg-icons/action/pan-tool.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPanTool = (props) => ( <SvgIcon {...props}> <path d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4...
src/components/icon/icon.js
greaveselliott/rock-paper-scissors
import React from 'react'; import './icon.scss'; import Rock from './rock.svg'; import Paper from './paper.svg'; import Scissors from './scissors.svg'; import Lizard from './lizard.svg'; import Spock from './spock.svg'; import Flask from './flask.svg'; import Rocket from './rocket.svg'; import _ from 'lodash'; import P...
src/components/currentgraphcontrols/deletegraph.js
jamjar919/bork
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import CONFIG from '../../config'; function deleteGraph(id, callback) { fetch(`${CONFIG.API.ADDRESS}/graphs/${id}`, { method: 'delete', }).then(response => response.json()).then((response) => { ...
docs/src/app/components/pages/components/Menu/Page.js
owencm/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...
packages/mineral-ui-icons/src/IconPregnantWoman.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 IconPregnantWoman(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...icon...
src/svg-icons/action/pets.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPets = (props) => ( <SvgIcon {...props}> <circle cx="4.5" cy="9.5" r="2.5"/><circle cx="9" cy="5.5" r="2.5"/><circle cx="15" cy="5.5" r="2.5"/><circle cx="19.5" cy="9.5" r="2.5"/><path d="M17.34 14.86c-.8...
src/views/components/LockCard.js
physiii/open-automation
import React from 'react'; import PropTypes from 'prop-types'; import ServiceCardBase from './ServiceCardBase.js'; import Button from './Button.js'; import {connect} from 'react-redux'; import {lockLock, lockUnlock} from '../../state/ducks/services-list/operations.js'; export const LockCard = (props) => { const isLoc...
client/src/index.js
radean0909/cv-api
import React from 'react'; import ReactDOM from 'react-dom'; import reducer from './reducer'; import { getResumeFromServer, doView } from './actions'; import { Provider } from 'react-redux'; import thunk from 'redux-thunk'; import { createStore, applyMiddleware } from 'redux'; import { CVContainer } from './components/...
src/svg-icons/device/signal-cellular-connected-no-internet-3-bar.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularConnectedNoInternet3Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M17 22V7L2 22h15zm3-12v8h2v-8h-2zm0 12h2v-2h-2v2z"/> </SvgIcon> ); Devic...
js/src/dapps/dappreg/Dapp/dapp.js
jesuscript/parity
// Copyright 2015, 2016 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any la...