path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
client/modules/core/components/newpost.js
Entropy03/jianwei
import React from 'react'; class NewPost extends React.Component { render() { const {error} = this.props; return ( <form className="new-post" onSubmit={this.createPost.bind(this)}> <h2>Add New Post</h2> {error ? <p style={{color: 'red'}}>{error}</p> : null} <input ref="titleRef...
docs/client/components/pages/SideToolbar/SimpleSideToolbarEditor/index.js
dagopert/draft-js-plugins
import React, { Component } from 'react'; import Editor, { createEditorStateWithText } from 'draft-js-plugins-editor'; import createSideToolbarPlugin from 'draft-js-side-toolbar-plugin'; import editorStyles from './editorStyles.css'; const sideToolbarPlugin = createSideToolbarPlugin(); const { SideToolbar } = sideTool...
react-browserify-bootstrap/src/app-dropdown.js
jadekler/git-misc-2
import React from 'react' import ReactDOM from 'react-dom' import NavDropDown from './NavDropDown' ReactDOM.render( <NavDropDown />, document.getElementById('nav-dropdown') )
helene/assets/js/layouts/desktop-fhd.js
voidpp/Helene
import React from 'react'; import 'babelify/polyfill'; import moment from 'moment'; import 'moment/locale/hu'; import 'moment/locale/en-gb'; moment.locale(config.language); import '../html'; import DataActionTypes from '../constants/DataConstants'; import DataRequestActionCreator, {DataRequestDescriptor, ServiceDescr...
src/svg-icons/av/featured-video.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFeaturedVideo = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 9H3V5h9v7z"/> </SvgIcon> ); AvFeaturedVideo = pure(AvFeaturedVideo)...
src/components/chrome/story.js
casesandberg/react-color
import React from 'react' import { storiesOf } from '@storybook/react' import { renderWithKnobs } from '../../../.storybook/report' import SyncColorField from '../../../.storybook/SyncColorField' import Chrome from './Chrome' storiesOf('Pickers', module) .add('ChromePicker', () => ( <SyncColorField component={ ...
examples/js/column-filter/number-options-filter-with-default-value.js
neelvadgama-hailo/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
mobile/App/Components/FullButton.js
JasonQSong/SoulDistance
// @flow import React from 'react' import { TouchableOpacity, Text } from 'react-native' import styles from './Styles/FullButtonStyle' import ExamplesRegistry from '../Services/ExamplesRegistry' // Example ExamplesRegistry.add('Full Button', () => <FullButton text='Hey there' onPress={() => window.alert('Fu...
src/components/dashboard/dashboard.js
sunpietro/LeagueManager
import React, { Component } from 'react'; import DefaultLayout from '../layouts/default'; import PlayersDashboardBlock from './blocks/players'; class Dashboard extends Component { render() { return ( <DefaultLayout subtitle="Dashboard" isLoading={false}> <PlayersDashboardBlock ...
app/screens/components/seller/goods-item.js
yiyinsong/react-native-example-jdh
import React, { Component } from 'react'; import { View, Text, Image, TouchableOpacity, TouchableHighlight, ScrollView, DeviceEventEmitter } from 'react-native'; import styles from '../../../css/styles'; export default class SellerGoodsItemComponent extends Component { constructor(props) { super(p...
src/App.js
baskoroi/mrkdwn
import React, { Component } from 'react'; import Header from './components/Header'; import UserText from './components/UserText'; import MarkdownText from './components/MarkdownText'; import './App.css'; class App extends Component { constructor() { super(); this.state = { text: '' ...
client/src/components/decorators/connectInterfaceColorScheme.js
alecortega/palettable
// @flow import React from 'react'; import Color from 'color'; type Props = { color: Object, }; const connectInterfaceColorScheme = Component => { class InterfaceColorSchemeHOC extends React.Component<Props> { render() { const { color: { hexCode }, } = this.props; const colorObject =...
next/components/changesetArea.js
klapantius/wxsupdate
import React from 'react'; import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn, } from 'material-ui/Table'; const ChangesetArea = (props) => ( <Table multiSelectable={true} fixedHeader={true} height={"400px"} onRowSelection={pr...
src/components/Modify.js
mingjiezhang/REACT-ATM
import React from 'react'; import { IndexLink } from 'react-router'; import styles from '../style/Choice.css'; import Show from '../style/Show.css'; import { Input,Button,Alert } from 'antd'; class Modify extends React.Component { constructor(props) { super(props); this.state = { isShow...
src/svg-icons/action/card-giftcard.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCardGiftcard = (props) => ( <SvgIcon {...props}> <path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H...
test/test_helper.js
sean-m-mccullough/ReduxSimpleStarter
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
src/components/common/CardSection.js
msalem07/LectureRecorder
import React from 'react'; import { View } from 'react-native'; export function CardSection(props){ return ( <View style={styles.containerStyle}> {props.children} </View> ) } const styles ={ containerStyle:{ borderBottomWidth: 1, padding: 5, backgroundCo...
content/theme/components/Pipelines/index.js
typesettin/NativeCMS
import React, { Component } from 'react'; import { StyleSheet, View, Platform, Dimensions, ListView, ScrollView, RefreshControl, } from 'react-native'; import styles from '../../../../app/components/Styles/shared'; import layoutStyles from '../../../../app/components/Styles/layout'; import LoadingView from '../../../.....
src/components/pdf_viewer/pdf_page.js
VictorQD/react-pdf-viewer
import React, { Component } from 'react'; import { isEqual } from 'lodash'; function pageStyle(pageSize, fitWidth) { if (!pageSize) return null; const { width, height } = pageSize; const pageStyle = fitWidth ? { width: `${width}px` } : { width: `${width}px`, height: `${height}px` }; return pageStyle; } fu...
src/Routes.js
cancergenetrust/www
import React from 'react'; import { Route, Switch } from 'react-router-dom'; import withTracker from './withTracker'; import Markdown from './components/Markdown'; import Home from './containers/Home'; import NotFound from './containers/NotFound'; export default () => ( <Switch> <Route path="/" exact componen...
packages/react-ui-components/src/Icon/index.story.js
mstruebing/PackageFactory.Guevara
import React from 'react'; import {storiesOf} from '@storybook/react'; import {withKnobs, boolean, text, select} from '@storybook/addon-knobs'; import {StoryWrapper} from './../_lib/storyUtils'; import Icon from '.'; storiesOf('Icon', module) .addDecorator(withKnobs) .addWithInfo( 'default', 'F...
front/src/components/FAQ.js
ethbets/ebets
/* Copyright (C) 2017 ethbets * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD license. See the LICENSE file for details. */ import React, { Component } from 'react'; import { Card, CardHeader, CardText } from 'material-ui/Card'; // import HowDoesItWork from '....
components/Button/Button.js
zendesk/copenhelp
import React from 'react' import s from './Button.css' export default (props) => ( <button className={s.button}> {props.children} </button> )
react-flux-mui/js/material-ui/src/svg-icons/av/high-quality.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvHighQuality = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 11H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm7-1c0 .55-.45 1-1 1h-.75v1.5h-1....
react-flux-mui/js/material-ui/src/svg-icons/places/ac-unit.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesAcUnit = (props) => ( <SvgIcon {...props}> <path d="M22 11h-4.17l3.24-3.24-1.41-1.42L15 11h-2V9l4.66-4.66-1.42-1.41L13 6.17V2h-2v4.17L7.76 2.93 6.34 4.34 11 9v2H9L4.34 6.34 2.93 7.76 6.17 11H2v2h4.17l-3.2...
packages/netlify-cms-core/src/components/Collection/GroupControl.js
netlify/netlify-cms
import React from 'react'; import { translate } from 'react-polyglot'; import { Dropdown, DropdownItem } from 'netlify-cms-ui-default'; import { ControlButton } from './ControlButton'; function GroupControl({ viewGroups, t, onGroupClick, group }) { const hasActiveGroup = group ?.valueSeq() .toJS() .some...
08-create-a-sidebar/index.js
nodeyu/jason-react-router-demos-v4
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; ReactDOM.render( <App/>, document.querySelector('#app') );
lib/components/react-awesome-navigation/Menu/Item/index.js
sanchan/react-awesome-navigation
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import styles from './styles.scss'; class Item extends Component { static displayName = 'react-awesome-navigation/Menu/Item'; static propTypes = { className: Pr...
src/components/ViewMoreButton.js
alphasp/pxview
import React from 'react'; import { StyleSheet, View } from 'react-native'; import Icon from 'react-native-vector-icons/FontAwesome'; import { withTheme, Text } from 'react-native-paper'; import { connectLocalization } from './Localization'; import PXTouchable from './PXTouchable'; const styles = StyleSheet.create({ ...
src/roles/RolesList.js
dash-/netjumpio-tabs-web
/// // Dependencies /// import React, { Component } from 'react'; import { connect } from 'react-redux'; import * as types from './types'; import CardsList from '../elements/CardsList'; import CardsListCategory from '../elements/CardsListCategory'; import RolesListItem from './RolesListItem'; /// // View /// clas...
src/components/Note/NoteOptions.js
bibleexchange/be-front-new
import React from 'react'; import { createFragmentContainer, graphql, } from 'react-relay/compat'; import { Link } from 'react-router'; import SocialShareButton from '../SocialMedia/SocialShareButton'; import './NoteOptions.scss'; const shareIcon = require('../../assets/svg/share.svg'); class NoteOptions extend...
src/parser/priest/holy/modules/talents/15/TrailOfLight.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS/index'; import Analyzer from 'parser/core/Analyzer'; import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox'; import ItemHealingDone from 'interface/ItemHealingDone'; // Example Log: /report/hRd3mpK1yTQ2tDJM/1-Mythic+MOTHER...
src/components/BookSearch.js
scottag99/dreamlibrary
import React from 'react'; import { observer } from 'mobx-react'; import { FormControl, Row, Col } from 'react-bootstrap'; export default observer(({store}) => ( <Row> <Col sm={4} lg={9}> <FormControl type="search" value={store.searchTerm} onChange={(e) => store.searchTe...
src/server/frontend/render.js
amrsekilly/updatedEste
import Helmet from 'react-helmet'; import Html from './Html.react'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; import config from '../config'; import configureStore from '../../common/configureStore'; import createInitialState from './createInitialState'; import createRoutes from '../../b...
app/react-icons/fa/calculator.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaCalculator extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m10.1 34.3q0-1.2-0.9-2t-2-0.9-2 0.9-0.8 2 0.8 2 2 0.8 2-0.8 0.9-2z m8.5 0...
app/javascript/flavours/glitch/features/report/components/status_check_box.js
glitch-soc/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import StatusContent from 'flavours/glitch/components/status_content'; import Avatar from 'flavours/glitch/components/avatar'; import DisplayName from 'flavours/glitch/components/display_name'; imp...
src/App.js
mgrip/bitb-brewing
import React from 'react' import { Provider, connect } from 'react-redux' import theme from './theme' import styled, { ThemeProvider } from 'styled-components' const Homepage = styled.div` display: flex; flex-direction: column; font-family: ${props => props.theme.font.family}; ` const Header = styled.section` ...
frontend/src/Settings/Metadata/Metadata/EditMetadataModalContentConnector.js
lidarr/Lidarr
import _ from 'lodash'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { saveMetadata, setMetadataFieldValue, setMetadataValue } from 'Store/Actions/settingsActions'; import selectSettings from 'Store...
packages/cp-frontend/src/components/manifest/name.js
yldio/copilot
import React from 'react'; import { Row, Col } from 'react-styled-flexboxgrid'; import remcalc from 'remcalc'; import StyledFormLabel from './label'; import { FormMeta, Button, Input, Small, FormGroup } from 'joyent-ui-toolkit'; const ButtonsRow = Row.extend`margin: ${remcalc(29)} 0 ${remcalc(60)} 0;`; exp...
src/containers/Tenants.js
khosimorafo/reactmastende
import React, { Component } from 'react'; import { Text, View, StyleSheet, ScrollView, StatusBar } from 'react-native'; import ActionButton from "react-native-action-button"; import { SearchBar } from 'react-native-elements' import {connect} from "react-redux"; import { fetchTenantsBySite, ...
components/four/search.js
gembarrett/hamara-internet-app
import React from 'react'; import { StyleSheet, Text, View, Button, StyleSheetRegistry } from 'react-native'; import FourTab from '../four-tab.js'; import { search } from '../../content/online.js'; import { prefs } from '../../routes/prefs.js'; import {translatedText, translatedTitle, printLinks, printSections} from '....
templates/rubix/laravel/laravel-example/src/routes/EditTodo.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import ReactDOM from 'react-dom'; import { withRouter } from 'react-router'; import { Row, Col, Grid, Form, Panel, Button, Checkbox, PanelBody, FormGroup, FormControl, ControlLabel, PanelContainer } from '@sketchpixy/rubix'; import client from '@sketchpixy/rubix/lib...
src/svg-icons/editor/border-all.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderAll = (props) => ( <SvgIcon {...props}> <path d="M3 3v18h18V3H3zm8 16H5v-6h6v6zm0-8H5V5h6v6zm8 8h-6v-6h6v6zm0-8h-6V5h6v6z"/> </SvgIcon> ); EditorBorderAll = pure(EditorBorderAll); EditorBorderAll....
src/scotch-night/app/ScotchNight.js
SeattleScotchSociety/ScotchNight
import React from 'react'; import { StackNavigator } from 'react-navigation'; import Bottles from './bottles'; let { AddBottle, BottleList, BottleDetail } = Bottles.Screens; import EventList from './events/screens/EventList'; import AddEvent from './events/screens/AddEvent'; import EventDetail from './events/screens/E...
node_modules/react-typography/src/GoogleFont.js
aimanaiman/supernomadfriendsquad
import React from 'react' module.exports = React.createClass({ displayName: 'GoogleFont', propTypes: { typography: React.PropTypes.object.isRequired, }, render () { // Create family + styles string let fontsStr = '' if (this.props.typography.options.googleFonts) { const fonts = this.pro...
src/components/children/new.js
Alek-S/pseudozen
import React from 'react'; import axios from 'axios'; class New extends React.Component { constructor() { super(); this.state = { projectName: undefined, errorMsg: undefined, projects: [], }; } //==LIFE CYCLE== componentWillMount() { this._fetchProjects(); } //====// //==HANDLERS== _fetchPr...
tests/__mocks__/rc-trigger.js
zheeeng/ant-design
import React from 'react'; let Trigger; // eslint-disable-line if (process.env.REACT === '15') { const ActualTrigger = require.requireActual('rc-trigger'); const render = ActualTrigger.prototype.render; ActualTrigger.prototype.render = function () { const { popupVisible } = this.state; // eslint-disable-li...
src/containers/logout_button.js
TedtheDev/Tic-Tac-Toe
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { logoutUser } from '../actions/index'; import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import { bindActionCreators } from 'redux'; import FlatButton from 'material-ui/FlatButton'; class LogoutBut...
examples/huge-apps/routes/Course/routes/Announcements/routes/Announcement/components/Announcement.js
calebmichaelsanchez/react-router
import React from 'react'; class Announcement extends React.Component { render () { var { courseId, announcementId } = this.props.params; var { title, body } = COURSES[courseId].announcements[announcementId]; return ( <div> <h4>{title}</h4> <p>{body}</p> </div> ); } } ...
client/app/scripts/components/debug-toolbar.js
kinvolk/scope
/* eslint react/jsx-no-bind: "off" */ import React from 'react'; import { connect } from 'react-redux'; import { sampleSize, sample, random, range, flattenDeep, times } from 'lodash'; import { fromJS, Set as makeSet } from 'immutable'; import { hsl } from 'd3-color'; import debug from 'debug'; import ActionTypes from ...
src/app/src/assets/utils/Anchor.js
istreight/eggbeatr
/** * FILENAME: Anchor.js * AUTHOR: Isaac Streight * START DATE: May 31th, 2018 * * This file contains the Anchor class, a utility class for anchor tags * in the application. */ import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; class Anchor extends Reac...
client/components/Dashbord/myRecipe.js
kenware/more-recipes
import React, { Component } from 'react'; import { BrowserRouter, Route, Switch, Redirect, Link } from 'react-router-dom'; import { PropTypes } from 'react'; import * as actions from '../../redux/Action/action.js'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import './dashbord.sc...
public/js/Socket.js
2cats/webserial
import io from 'socket.io-client' import Notification from './Notification' import React from 'react' class Socket extends React.Component { constructor(props) { super(props); this.data = ''; this.datalen = 0; this.onDataFuncs = []; this.onControlFuncs = []; this.connected = false; ...
pkg/ui/src/components/dashboard/ResourceProblems.js
matt-deboer/kuill
import React from 'react' import PropTypes from 'prop-types' import { List, ListItem } from 'material-ui/List' import Subheader from 'material-ui/Subheader' import Divider from 'material-ui/Divider' import Paper from 'material-ui/Paper' import IconStatusOK from 'material-ui/svg-icons/action/check-circle' import { grey...
examples/js/column-filter/date-filter-with-default-value.js
echaouchna/react-bootstrap-tab
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; const startDate = new Date(2015, 0, 1); const endDate = new Date(); ...
client/src/components/dashboard/common/ChatIconPopup.js
FCC-Alumni/alumni-network
import { Popup } from 'semantic-ui-react'; import propTypes from 'prop-types'; import React from 'react'; const ChatIconPopup = ({ ChatIcon, disableChat, initiatePrivateChat, username }) => { const chatIcon = ( <ChatIcon className="comments icon" disableChat={disableChat} onClick={(e) =...
imports/ui/components/videos/NewVideoModal.js
hwillson/file-metadata-manager
import React, { Component } from 'react'; import { Modal, Button, Alert } from 'react-bootstrap'; import { css } from 'aphrodite'; import AutoForm from 'uniforms-bootstrap3/AutoForm'; import { videoIdSchema } from '../../../api/videos/schemas'; import { createVideoRecord } from '../../../api/videos/methods'; import Ut...
lib-module-modern-browsers/layout/Html.js
turacojs/fody
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import React from 'react'; function _objectWithoutProperties...
hunt/src/util/injectSaga.js
StamusNetworks/scirius
/* eslint-disable */ 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 * @para...
src/app/common/UserInterface/components/Stepper.js
toxzilla/app
import React from 'react'; import shallowCompare from 'react-addons-shallow-compare'; import {classNames} from 'react-dom-stylesheet'; import Step from './Step'; import StepPanel from './StepPanel'; export default class Stepper extends React.Component { static displayName = 'Stepper' static propTypes = { cl...
src/client/pages/login/Login.route.js
BhumiSukhadiya/React_Project_Repo
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../co...
docs/app/Examples/elements/Button/GroupVariations/ButtonExampleGroupSize.js
aabustamante/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleGroupSize = () => ( <Button.Group size='large'> <Button>One</Button> <Button>Two</Button> <Button>Three</Button> </Button.Group> ) export default ButtonExampleGroupSize
internals/templates/containers/LanguageProvider/index.js
7ruth/PadStats2
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
src/js/components/icons/base/Tools.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
docs/src/app/components/pages/components/Toolbar/Page.js
ArcanisCz/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 toolbarReadmeText from './README'; import toolbarExampleSimpleCode from '...
packages/wix-style-react/src/DragAndDrop/docs/SortableList/ListWithDelay/index.js
wix/wix-style-react
import React from 'react'; import CodeExample from 'wix-storybook-utils/CodeExample'; import Markdown from 'wix-storybook-utils/Markdown'; import ListWithDelayReadme from './ListWithDelayReadme.md'; import ListWithDelay from './ListWithDelay'; import ListWithDelayRaw from '!raw-loader!./ListWithDelay'; export default ...
examples/real-world/index.js
Gazler/redux
import 'babel-core/polyfill'; import React from 'react'; import Root from './containers/Root'; import BrowserHistory from 'react-router/lib/BrowserHistory'; React.render( <Root history={new BrowserHistory()} />, document.getElementById('root') );
src/layouts/CoreLayout/CoreLayout.js
MIreland/marine-react
import React from 'react' import NavigationDrawer from './NavigationDrawer' // import Header from '../../components/Header' import { AppBar } from 'react-toolbox/lib/app_bar' // import createStore from '../../store/createStore' // import AppReducers from '../../store/reducers' import theme from './CoreLayout.scss' impo...
client/auth/controller.js
tinkertinker/wp-calypso
/** * External dependencies */ import ReactDom from 'react-dom'; import React from 'react'; import startsWith from 'lodash/startsWith'; import page from 'page'; /** * Internal dependencies */ import LoginComponent from './login'; import ConnectComponent from './connect'; import * as OAuthToken from 'lib/oauth-toke...
examples/using-sqip/src/components/polaroid.js
0x80/gatsby
import React from 'react' import PropTypes from 'prop-types' import Image from 'gatsby-image' // Styling based on https://codepen.io/havardob/pen/ZOOmMe const data = { 'alisa-anton-166247-unsplash-2000px': { style: { left: `6vw`, bottom: `6vw` }, author: `Alisa Anton`, url: `https://unsplash.com/photos...
app/components/Bookmark.js
treyhuffine/tuchbase
import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './Bookmark.css'; export default class Bookmark extends Component { render() { let {name, urlList} = this.props.bookmark; let url = encodeURIComponent(urlList[0]); console.log(name, urlList); return ( ...
client/src/ui/containers/CitySelector.js
dannydavidson/weather-redux
import React from 'react'; import PropTypes from 'prop-types'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem'; export const formatCity = (city, country) => { return `${city}, ${country}`; } export const Component = ({onCitySelect, selectedCityId, cities}) => { co...
config/flow/definitions/react.js
dead-in-the-water/ditw
/* @flow */ // Note: we already have the definitions from // https://github.com/facebook/flow/blob/master/lib/react.js // so the below are merely helpful extensions import React from 'react'; declare type $React$Element = React.Element<*>; declare type $React$Node = string | number | $React$Element | Array<$React$E...
app/common/components/KanjiStroke/KanjiStroke.js
Kaniwani/KW-Frontend
import React from 'react'; import PropTypes from 'prop-types'; import { isKanji } from 'wanakana'; import { isEqual, merge } from 'lodash'; import { rgba } from 'polished'; import { grey, black, purple } from 'common/styles/colors'; import { Wrapper, Canvas, Controls, ControlButton } from './styles'; import dmak from...
src/routes.js
ordjinnization/djinn-ui
/** * */ 'use strict'; import React from 'react'; import {Route, IndexRoute} from 'react-router'; import App from './components/app'; import HomePage from './components/home/homepage'; import FailureListContainer from './components/card/failurelist/failurelist.container'; export default ( <Route path='/' componen...
.history/src/components/Menu_20170804012819.js
radubrehar/evanghelic.ro
import React from 'react'; import PropTypes from 'prop-types'; import Link from 'gatsby-link'; import { css } from 'glamor'; import Row from './Row'; const mainCls = css({ display: 'flex', flexFlow: 'row', paddingTop: 20, paddingBottom: 20, borderBottom: '1px solid gray', justifyContent: 'flex-end', ma...
node_modules/react-bootstrap/es/Col.js
C0deSamurai/muzjiks
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 ...
src/widgets/Badge.js
Sekhmet/busy
import React from 'react'; import numeral from 'numeral'; import './Badge.scss'; const Badge = ({ vestingShares, }) => { const vest = numeral(vestingShares).format('0.0'); let rank = 'dust'; rank = vest > 10000 ? 'newbie' : rank; rank = vest > 100000 ? 'user' : rank; rank = vest > 1000000 ? 'superuser' : r...
examples/HorizontalFAB.js
15lyfromsaturn/react-materialize
import React from 'react'; import Button from '../src/Button'; export default <Button floating fab='horizontal' icon='mode_edit' className='red' large style={{bottom: '45px', right: '24px'}}> <Button floating icon='insert_chart' className='red'/> <Button floating icon='format_quote' className='yellow darken-1'/> ...
src/server/controllers/LandingController.js
EdgeJay/web-starterkit
import React from 'react'; import { renderToString, renderToStaticNodeStream } from 'react-dom/server'; import { Provider } from 'react-redux'; import { createMemoryHistory, match, RouterContext } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { ServerStyleSheet } from 'styled-co...
src/svg-icons/social/poll.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPoll = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/> </SvgIcon> ); SocialPoll = ...
src/containers/App.js
Ikuu/react-spotify
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { isEqual } from 'lodash'; import Header from '../components/Header'; import ArtistImage from '../components/ArtistImage'; import RelatedArtists from '../components/RelatedArtists'; class App extends Component { shouldComponentUp...
src/svg-icons/av/forward-5.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvForward5 = (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.7.9l.2-2.2h2.4v.7h-1.7l-.1.9s.1 0 .1-.1.1 0 .1-.1....
src-new/containers/menuContainer.js
binkpitch/reactor
import React from 'react' import { connect } from 'react-redux' import { push } from 'react-router-redux' import Menu from '../components/menuComponent' const menu = (props) => { const items = [ { name: 'Home Page', isActive: props.location.pathname === '/', onClick: props.pushHomePage } ...
src/frontend/src/components/LegislatorsPage.js
open-austin/influence-texas
import React from 'react' import { useHistory } from 'react-router-dom' import { Typography } from '@material-ui/core' import { gql } from 'apollo-boost' import { getQueryString, getDebugQuery } from 'utils' import TexasDistrictMap from 'components/TexasDistrictMap' import FilterSection from 'components/FilterSection' ...
auto-scroller/components/default/header.js
mathisonian/idyll
import React from 'react'; class Header extends React.PureComponent { render() { return ( <div className={'article-header'}> <h1 className={'hed'}> {this.props.title} </h1> { this.props.subtitle && ( <h2 className={'dek'}> {this.props.su...
src/stories/lottie-control-segments.js
chenqingspring/react-lottie
import React from 'react'; import Lottie from '../index'; import * as animationDataA from './pinjump.json'; import * as animationDataB from './TwitterHeart.json'; export default class LottieControlSegment extends React.Component { constructor(props) { super(props); this.state = { isStopped: false, ...
app/scripts/components/embedded-terminal.js
hustbill/network-verification-ui
import React from 'react'; import { connect } from 'react-redux'; import { brightenColor, getNodeColorDark } from '../utils/color-utils'; import { DETAILS_PANEL_WIDTH, DETAILS_PANEL_MARGINS } from '../constants/styles'; import Terminal from './terminal'; class EmeddedTerminal extends React.Component { constructor(...
src/routes/login/Login.js
labzero/lunch
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import queryString from 'query-string'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import Button from 'react-bootstrap/lib/Button'; import Col from 'react-bootstrap/lib/Col'; import ControlLabel from 'react-bootstrap/lib...
src/Picker/RadioButton.js
skystebnicki/chamel
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import TouchRipple from '../ripples/TouchRipple'; import FocusRipple from '../ripples/FocusRipple'; import ThemeService from '../styles/ChamelThemeService'; /** * Functional component for any button * * @param props * @param context * @...
src/svg-icons/device/battery-charging-50.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryCharging50 = (props) => ( <SvgIcon {...props}> <path d="M14.47 13.5L11 20v-5.5H9l.53-1H7v7.17C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V13.5h-2.53z"/><path fillOpacity=".3" d="M15.67 4H14V...
src/containers/MapContainer.js
alexravs/midgar
import React from 'react'; import Search from '../components/Search'; import MapToShow from '../components/MapToShow'; import { connect } from 'react-redux'; import countries from '../data/countries.json'; import L from 'leaflet'; import { receiveSearchResult } from '../actions/index'; const getMapPosition = (geojson...
antd-dva/ant-design-pro-demo/test/src/components/ActiveChart/index.js
JianmingXia/StudyTest
import React, { Component } from 'react'; import { MiniArea } from '../Charts'; import NumberInfo from '../NumberInfo'; import styles from './index.less'; function fixedZero(val) { return val * 1 < 10 ? `0${val}` : val; } function getActiveData() { const activeData = []; for (let i = 0; i < 24; i += 1) { ...
node_modules/react-native-svg/elements/G.js
weatherfordmat/YorViewReactNative
import React from 'react'; import createReactNativeComponentClass from 'react-native/Libraries/Renderer/src/renderers/native/createReactNativeComponentClass'; import Shape from './Shape'; import {transformProps} from '../lib/props'; import {GroupAttributes} from '../lib/attributes'; class G extends Shape{ static d...
app/javascript/mastodon/features/ui/components/video_modal.js
kagucho/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ExtendedVideoPlayer from '../../../components/extended_video_player'; import { defineMessages, injectIntl } from 'react-intl'; import IconButton from '../../../components/icon_button'; impor...
src/client/react/user/views/Contacts/ContactFromSetting.js
bwyap/ptc-amazing-g-race
import React from 'react'; import PropTypes from 'prop-types'; import { graphql } from 'react-apollo'; import { Spinner } from '@blueprintjs/core'; import { getProtectedSetting } from '../../../../graphql/setting'; const QueryGetContact = { name: 'QueryGetContact', options: (props) => { return { fetchPolicy: '...
app/javascript/mastodon/features/compose/components/warning.js
lindwurm/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; export default class Warning extends React.PureComponent { static propTypes = { message: PropTypes.node.isRequired, }; render () { const { mes...
fixtures/attribute-behavior/src/index.js
STRML/react
import './index.css'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
packages/wix-style-react/src/RichTextInputArea/Toolbar/RichTextToolbar.js
wix/wix-style-react
import React from 'react'; import TextAreaBold from 'wix-ui-icons-common/system/TextAreaBold'; import TextAreaItalic from 'wix-ui-icons-common/system/TextAreaItalic'; import TextAreaUnderline from 'wix-ui-icons-common/system/TextAreaUnderline'; import TextAreaLink from 'wix-ui-icons-common/system/TextAreaLink'; import ...
src/svg-icons/image/exposure-neg-1.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageExposureNeg1 = (props) => ( <SvgIcon {...props}> <path d="M4 11v2h8v-2H4zm15 7h-2V7.38L14 8.4V6.7L18.7 5h.3v13z"/> </SvgIcon> ); ImageExposureNeg1 = pure(ImageExposureNeg1); ImageExposureNeg1.displayName...