path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/controls/History/index.js
jpuri/react-draft-wysiwyg
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { EditorState } from 'draft-js'; import LayoutComponent from './Component'; export default class History extends Component { static propTypes = { onChange: PropTypes.func.isRequired, editorState: PropTypes.object, modal...
src/EasyDay.js
hwstovall/easy-day
//Library dependencies import React from 'react'; import classNames from 'classnames'; /** * _ * | | * ___ __ _ ___ _ _ ______ __| | __ _ _ _ * / _ \/ _` / __| | | |______/ _` |/ _` | | | | * | __/ (_| \__ \ |_| | | (_| | (...
admin/src/components/Popout.js
geminiyellow/keystone
import classnames from 'classnames'; import React from 'react'; import { Button, Checkbox, InputGroup, SegmentedControl } from 'elemental'; import Portal from './Portal'; const Transition = React.addons.CSSTransitionGroup; const sizes = { arrowHeight: 12 }; var Popout = React.createClass({ displayName: 'Popout', p...
src/js/components/n-panel.js
bradwoo8621/parrot2
import React from 'react' import ReactDOM from 'react-dom' import jQuery from 'jquery' import classnames from 'classnames' let $ = jQuery; import {Envs} from '../envs' import {Layout} from '../layout/layout' import {NCollapsibleContainer, NHierarchyComponent} from './n-component' class NPanelHeader extends NCollapsibl...
js/components/radio/index.js
bengaara/simbapp
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Container, Header, Title, Content, Button, Icon, List, ListItem, Radio, Text,Left,Right,Body } from 'native-base'; import { openDrawer } from '../../actions/drawer'; import styles from './styles'; class NHRadio extends Componen...
src/client.js
kingpowerclick/kpc-web-backend
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import createStore from './redux/create'; import ApiClient from './helpers/ApiClient'; import io from 'socket.io-client'; import...
javascripts/entry.js
MitchLillie/brewhome
// require('../less/main.less') // // 'use strict' // // import React from 'react' // import ReactDOM from 'react-dom' // // var nano = require('nano')('https://brewhome.cloudant.com/hops/_all_docs') // // var db = nano.use('hops') // // import HopSection from './components/hops/HopSection' // import MaltSection from '...
src/client/components/pages/entities/publisher.js
bookbrainz/bookbrainz-site
/* * Copyright (C) 2017 Ben Ockmore * * This program 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 2 of the License, or * (at your option) any later version. * * This program is distr...
node_modules/react-router/es/Router.js
aggiedefenders/aggiedefenders.github.io
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; }; function _classCallCheck(instance, Constructor) { if (!(insta...
react-ui/src/components/UpdateShipping/UpdateShipping.js
morewines/refund-calculator-bigcommerce
import React from 'react'; //CSS import './UpdateShipping.css'; //Modules import FaEdit from 'react-icons/lib/fa/edit'; const UpdateShipping = ({ updateShippingCost, handleShippingCostUpdate, handleShippingSubmit }) => { return ( <div className="update-shipping-wrapper"> <h4>Update Shipping Cost</h...
js/ExponentTestsApp.js
jolicloud/exponent
/** * Copyright 2015-present 650 Industries. All rights reserved. * * @providesModule ExponentTestsApp */ import React from 'react'; import { AppRegistry, View, } from 'react-native'; import FrameTests from 'FrameTests'; AppRegistry.registerComponent('FrameTests', () => FrameTests); class ExponentTestsApp ext...
src/Title.js
WindProphet/emu8086
import React, { Component } from 'react'; import './Title.css' class Title extends Component { render() { return ( <div className="title"> <a href="/"> <img src="symbol.png" alt="emu8086" style={{height: '50px', width: '100px', position: 'absolute', top: '3px', marginLeft: '20px'}}/> ...
src/components/ImageUpload/ImageUpload.js
nambawan/g-old
import React from 'react'; import PropTypes from 'prop-types'; import AvatarEditor from 'react-avatar-editor'; import { defineMessages, FormattedMessage } from 'react-intl'; import withStyles from 'isomorphic-style-loader/withStyles'; import s from './ImageUpload.css'; import Box from '../Box'; import Button from '../B...
app/javascript/mastodon/features/compose/components/text_icon_button.js
rainyday/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const iconStyle = { height: null, lineHeight: '27px', width: `${18 * 1.28571429}px`, }; export default class TextIconButton extends React.PureComponent { static propTypes = { label: PropTypes.string.isRequired, title: PropTypes.string, ...
src/routes/UIElement/dropOption/index.js
zhangjingge/sse-antd-admin
import React from 'react' import { DropOption } from '../../../components' import { Table, Row, Col, Card, message } from 'antd' const DropOptionPage = () => <div className="content-inner"> <Row gutter={32}> <Col lg={8} md={12}> <Card title="默认"> <DropOption menuOptions={[{ key: '1', name: '编辑' }, ...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
ea-zhongxiaochun/angularStudy
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
Examples/Example.ChromiumFx.Mobx.UI/View/mainview/src/component/CommandButton.js
David-Desmaisons/Neutronium
import React, { Component } from 'react'; import { observer } from 'mobx-react'; import { Command } from './Command'; @observer export default class CommandButton extends Component { constructor(props) { super(props); this.handleClick = this.handleClick.bind(this); this.command = new Command(this.props.c...
src/svg-icons/action/assessment.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssessment = (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> ); ActionA...
js/router/index.js
th0m4sb/networking-app
'use strict'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { addNavigationHelpers, StackNavigator } from 'react-navigation'; import AppScreen from '../app'; const mapNavigationParamsToProps = (SomeComponent) => { return (props) => { const {navigation} = props; con...
src/js/components/icons/base/SocialFacebook.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
client/src/components/loading/Loading.js
thewizardplusplus/vk-group-stats
import React from 'react' import CircularProgress from 'material-ui/CircularProgress' import './loading.css' export default class Loading extends React.Component { render() { return <div className="Loading-container"> <CircularProgress /> </div> } }
node_modules/react-bootstrap/es/MediaList.js
firdiansyah/crud-req
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 ...
packages/react/src/components/TooltipIcon/TooltipIcon-test.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import { mount } from 'enzyme'; import TooltipIcon from '../TooltipIcon'; describe('TooltipIcon', () => { let m...
docs/app/Examples/elements/List/Variations/ListExampleCelledHorizontal.js
ben174/Semantic-UI-React
import React from 'react' import { List } from 'semantic-ui-react' const ListExampleCelledHorizontal = () => ( <List celled horizontal> <List.Item>About Us</List.Item> <List.Item>Contact</List.Item> <List.Item>Support</List.Item> </List> ) export default ListExampleCelledHorizontal
src/modules/components/icons/Close.js
ruebel/synth-react-redux
import React from 'react'; import PropTypes from 'prop-types'; import Icon from './Icon'; const Close = ({ height = '24', styleName, width = '24', fill = '#4682b4' }) => { return ( <svg xmlns="http://www.w3.org/2000/svg" width={width} height={height} className={styleName} vi...
src/routes.js
cjroebuck/react-redux-universal-hot-example
import React from 'react'; import {Route} from 'react-router'; import { App, Home, Widgets, About, Login, RequireLogin, LoginSuccess, Survey, NotFound, } from 'containers'; export default function(store) { return ( <Route component={App}> <Route path="/" component={Hom...
packages/icons/src/md/action/TrendingDown.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdTrendingDown(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <polygon points="32 36 36.59 31.41 26.83 21.66 18.83 29.66 4 14.83 6.83 12 18.83 24 26.83 16 39.41 28.59 44 24 44 36" /> </IconBase> ); } export d...
techCurriculum/ui/solutions/7.1/src/components/CardForm.js
jennybkim/engineeringessentials
/** * Copyright 2017 Goldman Sachs. * 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...
src/Containers/Disputes/DisputeResolution/Information/index.js
kleros/kleros-front
import React from 'react' import TruncatedTextBox from '../../../../Components/TruncatedTextBox' import './Information.css' const Information = props => { return ( <div className='information'> <div className='information-box'> <h2>Information</h2> <TruncatedTextBox text={props.te...
src/components/image.js
eyeccc/eyeccc.github.io
import React from 'react'; import { useStaticQuery, graphql } from 'gatsby'; import Img from 'gatsby-image'; /* * This component is built using `gatsby-image` to automatically serve optimized * images with lazy loading and reduced file sizes. The image is loaded using a * `StaticQuery`, which allows us to load the ...
admin/client/App/screens/Item/components/RelatedItemsList/RelatedItemsList.js
cermati/keystone
import React from 'react'; import { Link } from 'react-router'; import { Alert, BlankState, Center, Spinner } from '../../../../elemental'; import DragDrop from './RelatedItemsListDragDrop'; import ListRow from './RelatedItemsListRow'; import { loadRelationshipItemData } from '../../actions'; import { TABLE_CONTROL_C...
src/svg-icons/action/alarm-add.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAlarmAdd = (props) => ( <SvgIcon {...props}> <path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4....
gatsby-strapi-tutorial/cms/plugins/upload/admin/src/containers/HomePage/index.js
strapi/strapi-examples
/* * * HomePage * */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; // import { createStructuredSelector } from 'reselect'; import { injectIntl } from 'react-intl'; import { bindActionCreators, compose } from 'redux'; import { isEmpty } from 'lodash'; // You ...
docs/src/app/components/pages/components/Badge/Page.js
ngbrown/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 badgeReadmeText from './README'; import BadgeExampleSimple from './Exampl...
docs/app/Examples/collections/Message/Variations/MessageColorExample.js
jamiehill/stardust
import React from 'react' import { Message } from 'stardust' const MessageColorExample = () => ( <div> <Message color='red'>Red</Message> <Message color='orange'>Orange</Message> <Message color='yellow'>Yellow</Message> <Message color='olive'>Olive</Message> <Message color='green'>Green</Message>...
app/javascript/components/Filters/FormFilter/component.js
thecartercenter/elmo
import React from 'react'; import PropTypes from 'prop-types'; import Select2 from 'react-select2-wrapper/lib/components/Select2.full'; import { inject, observer } from 'mobx-react'; import 'react-select2-wrapper/css/select2.css'; import { getItemNameFromId, parseListForSelect2 } from '../utils'; import FilterOverlayT...
test/integration/client-navigation/pages/stateless.js
azukaru/next.js
import React from 'react' export default () => <h1>My component!</h1>
dapps/templates/demo/app/components/blockchain.js
iurimatias/embark-framework
import EmbarkJS from 'Embark/EmbarkJS'; import SimpleStorage from '../../embarkArtifacts/contracts/SimpleStorage'; import React from 'react'; import {Form, FormGroup, Input, HelpBlock, Button, FormText} from 'reactstrap'; class Blockchain extends React.Component { constructor(props) { super(props); this.st...
src/views/WidgetList/widgets/Stack/StackWidget.js
GovReady/GovReady-Agent-Client
import React, { Component } from 'react'; import { PropTypes as PT } from 'prop-types'; class StackWidget extends Component { systemTable (systemData, assessmentState) { return ( <div className='table-responsive'> <table className='table'> <tbody> <tr> <th>Os</t...
src/components/common/svg-icons/image/looks-one.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooksOne = (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-2zm-5 14h-2V9h-2V7h4v10z"/> </SvgIcon> ); ImageLooksOne = pure(ImageLooksOn...
app/containers/NotFoundPage/index.js
ScoutingIJsselgroep/Jotihunt
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route */ import React from 'react'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; import messages from './messages'; import {Helmet} from "react-helmet"; const image = require('./index....
src/pages/cerom.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Cerom' /> )
examples/huge-apps/components/App.js
rubengrill/react-router
/*globals COURSES:true */ import React from 'react' import Dashboard from './Dashboard' import GlobalNav from './GlobalNav' class App extends React.Component { render() { return ( <div> <GlobalNav /> <div style={{ padding: 20 }}> {this.props.children || <Dashboard courses={COURSES...
blueocean-material-icons/src/js/components/svg-icons/image/crop-7-5.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageCrop75 = (props) => ( <SvgIcon {...props}> <path d="M19 7H5c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zm0 8H5V9h14v6z"/> </SvgIcon> ); ImageCrop75.displayName = 'ImageCrop75'; ImageCrop75.muiName = 'SvgIcon'; ex...
src/components/FuelSavingsResults.spec.js
japaz/YouTubeOrganizer
import chai from 'chai'; import cheerio from 'cheerio'; import FuelSavingsResults from './FuelSavingsResults'; import React from 'react'; import ReactDOMServer from 'react/lib/ReactDOMServer'; chai.should(); /*This test file displays how to test a React component's HTML outside of the browser. It uses Cheerio, whic...
internals/templates/notFoundPage/notFoundPage.js
Rohitbels/KolheshwariIndustries
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
src/route/NoMatch/index.js
hustlrb/yjbAdmin
/** * Created by yangyang on 2017/9/3. */ import React from 'react' const NoMatch = () => <div>404, can't find page</div> export default NoMatch
src/js/pages/Proposals/Leisure/TypePage.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import translate from '../../../i18n/Translate'; import TopNavBar from '../../../components/TopNavBar/TopNavBar.js'; import '../../../../scss/pages/proposals/leisure/type.scss'; import StepsBar from "../../../components/ui/StepsBar/StepsBar";...
app/components/shared/loadingIndicator.js
nypl-registry/browse
import React from 'react' const LoadingIndicator = React.createClass({ getDefaultProps () { return { message: 'Loading ...' } }, renderSpinner () { return ( <div className='spinner'> <div className='bounce1'></div> <div className='bounce2'></div> <div className='b...
src/features/ViewMenuItems/Views/AttributeHeader.js
erhathaway/cellular_automata
import React from 'react'; import styled, { css } from 'react-emotion'; import PropTypes from 'prop-types'; // has not docked const ContainerNotDocked = css` font-size: 15px; `; // dock right const ContainerVerticalRight = css` text-align: right; `; const Container = styled('h1')` color: rgba(156,156,156,1); ...
src/modules/pages/calendar/Menu.js
lenxeon/react
require('../../../css/menu.less') import React from 'react'; class Menu extends React.Component { constructor(props) { super(props); this.state = { open: false }; } render(){ return( <div id="menu"> <div className="pure-menu"> <a className="pure-menu-heading" h...
components/TitleSwitch/index.js
haaswill/open-wallet-app
import React from 'react'; import { Switch, Text, View } from 'react-native'; import styles from './styles'; const TitleSwitch = ({ containerStyle, onChange, title, titleStyle, value, ...rest }) => ( <View style={[styles.container, containerStyle]}> <Text style={[styles.title, titleStyle]}...
src/components/seo.js
Smittey/smittey.github.io
/** * SEO component that queries for data with * Gatsby's useStaticQuery React hook * * See: https://www.gatsbyjs.org/docs/use-static-query/ */ import React from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import { useStaticQuery, graphql } from 'gatsby'; function SEO({ des...
src/templates/country.js
jackblackCH/zululo
import React from 'react'; import List from '../components/list'; import {connect} from 'react-redux'; const countryTemplate = (props) => { const currentCountry = props.countries.find(country => country.name === props.params.country); const items = props.items.filter(item => item.country_code === currentCount...
src/components/svg/Logo.js
JoeTheDave/onitama
import PropTypes from 'prop-types'; import React from 'react'; export const Logo = ({ fillColor, styles, width }) => { const height = width * 495 / 150; return ( <div style={{ position: 'absolute', ...styles }}> <svg width={`${height}px`} height={`${width}px`} viewBox="0 0 495 150" preserveAspectRatio="x...
examples/react-native/__tests__/Intro-test.js
mpontus/jest
/** * Sample React Native Snapshot Test */ 'use strict'; import 'react-native'; import React from 'react'; import Intro from '../Intro'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create(<Intro />)....
src/names/list/NameListHeader.js
VasilyShelkov/ClientRelationshipManagerUI
import React from 'react'; import { cyan500 } from 'material-ui/styles/colors'; export default ({ countId, nameCount, title, Icon }) => ( <div style={{ textAlign: 'center', marginTop: '10px' }}> <Icon style={{ height: '100px', width: '100px' }} color={cyan500} /> <div style={{ display: 'flex', justifyContent...
src/js/utils/router-mapping.js
UNECE/Model-Explorer
import React from 'react' /* React router doesn't support dot (.) in the URL (it won't load the page if we access it directly). We translate dots to underscores. */ //It will be called when building the URL const pointToUnderscore = str => { //We throw an error if the original string contains an underscore (safety ...
app/dress.js
wvicioso/dapr
import React, { Component } from 'react'; import { Navigator, StyleSheet, Text, TextInput, ScrollView, TouchableOpacity, View, Image, ListView } from 'react-native'; const Carousel = require('react-native-carousel'); const SideMenu = require('react-native-side-menu'); export default class Dress exte...
docs/src/NotFoundPage.js
jesenko/react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; const NotFoundPage = React.createClass({ render() { return ( <div> <NavMain activePage="" /> <PageHeader title="404" subT...
frontend/src/components/Metadata.js
mathemage/urednicci
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Button, ButtonGroup, ButtonToolbar, Panel } from 'react-bootstrap'; import { all, compose, contains, either, filter, flatten, head, keys, is, isEmpty, isNil, join, map, mergeAll, pick, pluck, reject, t...
src/App.js
abdulhannanali/graphql-sandbox
import React, { Component } from 'react'; import GraphiQL from 'graphiql'; import fetch from 'isomorphic-fetch'; import Schema from './schema.js'; import { graphql } from 'graphql'; GraphiQL.Logo = class Logo extends Component { render() { let style = { fontWeight: 800, fontSize: 16, color: "#2...
node_modules/react-bootstrap/es/FormControlFeedback.js
yeshdev1/Everydays-project
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/components/AdvancedDownloadWrapper.js
springload/reusable-d3-charts
import React from 'react'; import ReactDOM from 'react-dom'; import d3 from 'd3'; /** * React bridge to a D3 chart. */ export default React.createClass({ propTypes: { id: React.PropTypes.string.isRequired, dataset: React.PropTypes.object.isRequired, filterFrom: React.PropTypes.number, ...
src/pages/app/update-account.js
getinsomnia/insomnia.rest
import React from 'react'; import PropTypes from 'prop-types'; import * as session from '../../lib/session'; import App from '../../lib/app-wrapper'; class ChangeAccountDetails extends React.Component { constructor(props) { super(props); const { whoami } = this.props; this.state = { loading: false...
examples/library/src/index.foobar.js
carteb/carte-blanche
import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import Root from './containers/Root'; render( <AppContainer> <Root /> </AppContainer>, document.getElementById('root') ); if (module.hot) { module.hot.accept('./containers/Root', () => { // ...
ios_views/scanBarCode.js
zhongzhu/aizengshu
'use strict'; import React, { Component } from 'react'; import { AppRegistry, Dimensions, StyleSheet, Text, TouchableHighlight, View, AlertIOS } from 'react-native'; import Camera from 'react-native-camera'; export default class ScanBarCode extends Component { render() { return ( <View style...
src/parser/demonhunter/havoc/modules/resourcetracker/FuryDetails.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import Tab from 'interface/others/Tab'; import SPELLS from 'common/SPELLS'; import { formatPercentage, formatNumber } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import ResourceBreakdown fro...
src/components/timeblocks_picker.js
Scya597/Caltcha
// caltcha-timeblocks-picker // Dependencies: react-bootstrap // Props: // [Input] // minDuration, // allowOnly: Array, // hasNext: has next day, // nextOffset, // selectedBlocks: Array, // [Output] // onBlockClick: return selected Array, need a function to process, import React, { Component } from 'react'; import { C...
AwesomeProject/__tests__/index.ios.js
mayank-mittal/Handson
import 'react-native'; import React from 'react'; import Index from '../index.ios.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
app/client/components/left-pane/index.js
ziliwesley/electron-pouchdb-react
import React from 'react'; import { Container, Tabs } from 'amazeui-react'; import CandidateList from './candidate-list.jsx'; import FavoriteList from './favorite-list.jsx'; import SearchBox from './search-box.jsx'; import SettingPanel from './setting-panel.jsx'; import Component from '../base-component.jsx'; export d...
blueocean-material-icons/src/js/components/svg-icons/image/lens.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageLens = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z"/> </SvgIcon> ); ImageLens.displayName = 'ImageLens'; ImageLens.muiName = 'SvgIcon'; export default ImageLens;
src/js/react/components/App/Register.js
mandricore/react-vue2-apollo
import React from 'react'; import { graphql } from 'react-apollo'; import gql from 'graphql-tag'; import { hashHistory } from 'react-router'; import { Button, Modal, OverlayTrigger, NavItem, Form, FormControl, FormGroup, Row, Col, ControlLabel} from 'react-bootstrap'; import config from './../../../config'; const Crea...
src/collections/Form/Form.js
aabustamante/Semantic-UI-React
import cx from 'classnames' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, SUI, useKeyOnly, useWidthProp, } from '../../lib' import FormButton from './FormButton' import FormCheckbox from './FormCheckb...
assets/jqwidgets/demos/react/app/treegrid/columncheckboxes/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTreeGrid from '../../../jqwidgets-react/react_jqxtreegrid.js'; class App extends React.Component { componentDidMount() { this.refs.myTreeGrid.expandRow(1); this.refs.myTreeGrid.expandRow(2); } render () { // pre...
src/svg-icons/maps/restaurant.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsRestaurant = (props) => ( <SvgIcon {...props}> <path d="M11 9H9V2H7v7H5V2H3v7c0 2.12 1.66 3.84 3.75 3.97V22h2.5v-9.03C11.34 12.84 13 11.12 13 9V2h-2v7zm5-3v8h2.5v8H21V2c-2.76 0-5 2.24-5 4z"/> </SvgIcon> )...
stories/textfield.stories.js
isogon/styled-mdl
import React from 'react' import { storiesOf } from '@storybook/react' import wrapStory from './decorators/wrapStory' import Error from '../src/components/textfield/demos/Error.js' import HelperText from '../src/components/textfield/demos/HelperText.js' import MultiLine from '../src/components/textfield/demos/MultiLin...
frontend/src/components/pages/NotFound/NotFound.js
thebillkidy/Brewr-Site
import MainLayout from '../../layouts/MainLayout'; import React from 'react'; export default class NotFound extends React.Component { constructor(props) { super(props); } render() { return ( <MainLayout> Not Found </MainLayout> ); } }
frontend/modules/base/components/Footer.js
rustymyers/OpenEats
import React from 'react' import { injectIntl, intlShape, FormattedMessage } from 'react-intl'; require("../css/footer.css"); class Footer extends React.Component{ render() { return ( <footer className="footer print-hidden"> <div className="container"> <p className="text-mute...
app/main.js
palmerev/can-i-eat-this
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('app'));
blueocean-material-icons/src/js/components/svg-icons/image/panorama-vertical.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImagePanoramaVertical = (props) => ( <SvgIcon {...props}> <path d="M19.94 21.12c-1.1-2.94-1.64-6.03-1.64-9.12 0-3.09.55-6.18 1.64-9.12.04-.11.06-.22.06-.31 0-.34-.23-.57-.63-.57H4.63c-.4 0-.63.23-.63.57 0 .1.02.2.06.31C5.16 5.82 5.71 8.91 5.71...
client/src/components/Catch.js
BDiuguid/fantasy-fifa
import React, { Component } from 'react'; class Catch extends Component { state = { hasError: false, }; componentDidCatch(error, info) { this.setState({ hasError: true }); console.log('error'); console.log(error); console.log('info'); console.log(info); } render() { return this....
src/components/NotFoundPage.js
danpersa/remindmetolive-react
import React from 'react'; import { NavLink } from 'react-router-dom'; const NotFoundPage = () => { return ( <div> <h4> 404 Page Not Found </h4> <NavLink to="/"> Go back to homepage </NavLink> </div> ); }; export default NotFoundPage;
addons/knobs/example/stories/index.js
nfl/react-storybook
import React from 'react'; import { storiesOf } from '@storybook/react'; import moment from 'moment'; import { withKnobs, number, object, boolean, text, select, date, array, color } from '../../src'; const stories = storiesOf('Example of Knobs', module); stories.addDecorator(withKnobs); stories.add('simple example',...
src/containers/Loader.js
nchaulet/bitbucket-team-pullrequests
import React from 'react'; class Loader extends React.Component { render() { const loaderStyle = { position: 'fixed', top: '50%', left: '50%', fontSize: '40px', margin: '-100px -100px' }; return ( <div style={loaderStyle}>Loading <i className="fa fa-spinner fa-pulse">...
index.js
coffee-cup/webpack-es7-presentation
import React from 'react'; import { render } from 'react-dom'; import Presentation from './presentation'; render(<Presentation/>, document.getElementById('root'));
lib/SAlert.js
khardenstine/react-s-alert
import React from 'react'; import SAlertContent from './SAlertContent'; import PropTypes from 'prop-types'; import sAlertStore from './s-alert-parts/s-alert-store'; import sAlertTools from './s-alert-parts/s-alert-tools'; import getAlertData from './s-alert-parts/s-alert-data-prep'; const insertFunc = (msg, data, cond...
ajax/libs/react-instantsearch/4.4.1/Dom.js
ahocevar/cdnjs
/*! ReactInstantSearch UNRELEASED | © 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...
src/components/LookDetail.js
rollo-zhou/look
import React from 'react'; import { ActivityIndicator, StyleSheet, Image, Text, View, ListView, TouchableOpacity } from 'react-native'; import Dimensions from 'Dimensions'; const {width, height} = Dimensions.get('window'); import globalVariables from '../globalVariables.js'; import LookCell from './LookC...
src/routes/index.js
oozywaters/JOOR-react
import React from 'react'; import {Route, IndexRoute} from 'react-router'; import App from '../containers/App'; // import Simple from '../components/Simple'; import Home from './Home'; import Login from './Login'; import NotFoundPage from './NotFoundPage'; // import {HomeView, LoginView, ProtectedView} from '../views';...
clients/packages/admin-client/src/mobilizations/widgets/__plugins__/pressure/components/__pressure__.spec.js
nossas/bonde-client
/* eslint-disable no-unused-expressions */ import React from 'react'; import { expect } from 'chai'; import shallowWithIntl from '../../../../../intl/helpers/shallow-with-intl'; import { Pressure } from './__pressure__'; describe('client/mobilizations/widgets/__plugins__/pressure/components/__pressure__', () => { le...
SQL/client/src/components/dumb/Card/CardHeader.js
thebillkidy/MERGE-Stack
import React from 'react'; export default class Form extends React.Component { render() { return ( <div className="Card-Header"> <style jsx>{` .Card-Header { height: 64px; padding: 14px 20px; display: flex; align-items: stretch; align-items...
src/components/DataTable/DataTable.js
caijinchun/hsweb-antd
import React from 'react' import PropTypes from 'prop-types' import { Table } from 'antd' import { request } from '../../utils' import lodash from 'lodash' import './DataTable.less' class DataTable extends React.Component { constructor (props) { super(props) const { dataSource, pagination = { showSizeC...
client/util/react-intl-test-helper.js
williaumwu/mern-sample
/** * Components using the react-intl module require access to the intl context. * This is not available when mounting single components in Enzyme. * These helper functions aim to address that and wrap a valid, * English-locale intl context around them. */ import React from 'react'; import { IntlProvider, intlSha...
examples/05 Customize/Drop Effects/Container.js
zetkin/react-dnd
import React, { Component } from 'react'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd/modules/backends/HTML5'; import SourceBox from './SourceBox'; import TargetBox from './TargetBox'; @DragDropContext(HTML5Backend) export default class Container extends Component { render() { ...
src/media/js/site/containers/devAgreement.js
mozilla/marketplace-submission
/* Container that allows users who have signed the terms of service to review its contents. */ import React from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import {getTOS, signTOS} from '../actions/tos'; import {Page} from '../components/page'; import TOSIframe from '.....
admin/client/App/screens/Item/components/EditForm.js
snowkeeper/keystone
import React from 'react'; import moment from 'moment'; import assign from 'object-assign'; import { Col, Form, FormField, FormInput, ResponsiveText, Row, } from 'elemental'; // import { css, StyleSheet } from 'aphrodite/no-important'; import { Fields } from 'FieldTypes'; import { fade } from '../../../../utils/c...
node_modules/semantic-ui-react/src/collections/Form/FormSelect.js
IgorKilipenko/KTS_React
import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' import Select from '../../addons/Select' import FormField from './FormField' /** * Sugar for <Form.Field control={Select} /> * @see Form * @see Select */ function FormSelect(props) { const { ...
src/scenes/map/components/Map.js
ehaughee/snocon
import React, { Component } from 'react'; import mapboxgl from 'mapbox-gl' import 'mapbox-gl/dist/mapbox-gl.css' mapboxgl.accessToken = process.env.REACT_APP_MAPBOX_ACCESS_TOKEN; class Map extends Component { constructor(props) { super(props); this.state = { lng: this.props.focus.lng || -121, la...
src/svg-icons/maps/local-cafe.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalCafe = (props) => ( <SvgIcon {...props}> <path d="M20 3H4v10c0 2.21 1.79 4 4 4h6c2.21 0 4-1.79 4-4v-3h2c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2zm0 5h-2V5h2v3zM2 21h18v-2H2v2z"/> </SvgIcon> ); MapsLocalCa...