path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/vendor/recharts/demo/component/Pie.js
happyboy171/Feeding-Fish-View-
import React from 'react'; import { Surface, Pie } from 'recharts'; const data = [ { name: 'iphone4', value: 120, fill: '#ff7300' }, { name: 'iphone4s', value: 500, fill: '#e5671a' }, { name: 'iphone5', value: 600, fill: '#907213' } ]; export default React.createClass({ displayName: 'PieDemo', render () { ...
src/components/onsen/ons-list/header.js
c58/onsenui-react
import React from 'react'; import { applyModifiers } from '../modifier-util'; const scheme = { 'list__header': 'list__header--*' }; export default class OnsListHeader extends React.Component { render() { return applyModifiers(this.props, scheme, 0, <ons-list-header {...this.props} class="lis...
actor-apps/app-web/src/app/components/Deactivated.react.js
chengjunjian/actor-platform
import React from 'react'; class Deactivated extends React.Component { render() { return ( <div className="deactivated row center-xs middle-xs"> <div className="deactivated__window"> <h2>Tab deactivated</h2> <p> Oops, you have opened another tab with Actor, so we had...
src/routes.js
raulmatei/frux-table-test
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import Root from './root'; import NotFound from './not-found'; import TableView from './components/table-view'; export default ( <Route path='/' component={Root}> <IndexRoute component={TableView}/> <Route path='show' com...
doc/html.js
dpeek/dgraphql
import React from 'react' import DocumentTitle from 'react-document-title' import { prefixLink } from 'gatsby-helpers' import { TypographyStyle, GoogleFont } from 'react-typography' import typography from './utils/typography' import { colors } from 'utils/colors' const BUILD_TIME = new Date().getTime() module.export...
modules/TransitionHook.js
omerts/react-router
import React from 'react'; import warning from 'warning'; var { object } = React.PropTypes; var TransitionHook = { contextTypes: { router: object.isRequired }, componentDidMount() { warning( typeof this.routerWillLeave === 'function', 'Components that mixin TransitionHook should have a rou...
packages/mcs-lite-landing-web/src/containers/Section4/ImageCustom.js
MCS-Lite/mcs-lite
import React from 'react'; import ScrollParallax from 'rc-scroll-anim/lib/ScrollParallax'; import ScrollOverPack from 'rc-scroll-anim/lib/ScrollOverPack'; import TweenOne from 'rc-tween-one'; import SVGCard from '../../components/SVG/SVGCard'; import SVGCode from '../../components/SVG/SVGCode'; import SVGSearch from '....
packages/material-ui-icons/src/StorageRounded.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M4 20h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2zm0-3h2v2H4v-2zM2 6c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2zm...
docs/pages/api/list-item-avatar.js
kybarg/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './list-item-avatar.md'; export default function Page() { return <MarkdownDocs markdown={markdown} />; }
test/NavDropdownSpec.js
JimiHFord/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import NavDropdown from '../src/NavDropdown'; import MenuItem from '../src/MenuItem'; describe('NavDropdown', function() { it('Should render li when in nav', function () { const instance = ReactTestUtils.renderIntoDocument( ...
ajax/libs/seamless-immutable/7.0.1/seamless-immutable.development.js
x112358/cdnjs
(function() { "use strict"; function immutableInit(config) { // https://github.com/facebook/react/blob/v15.0.1/src/isomorphic/classic/element/ReactElement.js#L21 var REACT_ELEMENT_TYPE = typeof Symbol === 'function' && Symbol.for && Symbol.for('react.element'); var REACT_ELEMENT_TYPE_FALLBACK = 0xeac7; var...
src/withForm/WithForm.spec.js
Elecweb/react-craftform
/* eslint no-unused-vars: 0 */ import React from 'react'; import chai from 'chai'; import chaiEnzyme from 'chai-enzyme'; import sinon from 'sinon'; chai.use(chaiEnzyme()) const expect = chai.expect; import { mount } from "enzyme"; import WithForm from './WithForm'; const MockCompInput = (props)=>{ const submit =...
examples/real-world/index.js
clessg/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') );
components/Navigation/Navigation.js
jayzehngebot/dod3
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; import './Navigation.scss'; import Link from '../Link'; export default class extends Component { render() { return ( ...
ajax/libs/react-instantsearch/4.1.2/Dom.js
jonobr1/cdnjs
/*! ReactInstantSearch 4.1.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define....
ajax/libs/babel-core/6.1.2/browser.min.js
kiwi89/cdnjs
 !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.babel=t()}}(function(){var t,e,n;return function r(t,...
test/create-proptype.spec.js
jackrzhang/react-custom-proptypes
/* eslint-disable no-unused-expressions, max-len, func-names */ import React from 'react'; import { expect } from 'chai'; import sinon from 'sinon'; import { shallow } from 'enzyme'; import Tweet from './../examples/create-proptype/Tweet'; import Card from './../examples/create-proptype/Card'; import InvalidCallbackUs...
addons/knobs/src/components/Panel.js
enjoylife/storybook
import React from 'react'; import PropTypes from 'prop-types'; import debounce from 'lodash.debounce'; import PropForm from './PropForm'; import Types from './types'; const getTimestamp = () => +new Date(); const styles = { panelWrapper: { width: '100%', }, panel: { padding: '5px', width: 'auto', ...
src/components/Board/Board.js
tosFa/react-cross-platform-boardgame-example
'use strict'; import Base from './BoardBase'; import Field from '../Field/Field'; import Header from '../Header/Header'; import Footer from '../Footer/Footer'; import React from 'react'; import {connect} from 'react-redux'; import {mapStateToProps} from './connectToStore'; var io = require('socket.io-client'); class...
ajax/libs/clappr/0.0.63/clappr.js
BenjaminVanRyseghem/cdnjs
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)...
waliki/static/js/jquery.min.js
aszepieniec/waliki
/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
app/javascript/mastodon/components/dropdown_menu.js
kazh98/social.arnip.org
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import IconButton from './icon_button'; import Overlay from 'react-overlays/lib/Overlay'; import Motion from '../features/ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; imp...
ui/pages/about.js
matt-ian-thomas/matt-ian-thomas
import React, {Component} from 'react'; import {connect} from 'react-redux'; import {withRouter} from 'react-router-dom'; import {Content} from '../components/content'; import {Hero} from '../components/hero'; class About extends Component { render() { return ( <Content> <Hero color="dark" title="About" /> ...
src/components/Query/QueryMetrics.js
SteMcLellan/queryman
import React, { Component } from 'react'; import { connect } from 'react-redux'; import styles from './component.less'; const QueryMetricRow = ({ label, metricValue }) => { return ( <tr> <td> {label} </td> <td> {metricValue} </td> </tr> ); } const QueryMetrics = ({metri...
frontend/jqwidgets/jqwidgets-react/react_jqxrating.js
yevgeny-sergeyev/nexl-js
/* jQWidgets v5.7.2 (2018-Apr) Copyright (c) 2011-2018 jQWidgets. License: https://jqwidgets.com/license/ */ import React from 'react'; const JQXLite = window.JQXLite; export const jqx = window.jqx; export default class JqxRating extends React.Component { componentDidMount() { let options = this.manageA...
app/javascript/mastodon/features/notifications/components/filter_bar.js
Nyoho/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Icon from 'mastodon/components/icon'; const tooltips = defineMessages({ mentions: { id: 'notifications.filter.mentions', defaultMessage: 'Mentions' }, favourites: { id: '...
app/src/components/NotRunning.js
RekkyRek/tic
import '../assets/css/NotRunning/NotRunning.sass'; import Modal from './Utils/Modal'; import React, { Component } from 'react'; const {dialog} = require('electron').remote class NotRunning extends React.Component { constructor(props) { super(props); this.state = { } } componentDidUpdate() { }...
ajax/libs/forerunnerdb/1.3.565/fdb-core+persist.js
amoyeh/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
ajax/libs/forerunnerdb/1.3.890/fdb-core+views+persist.min.js
sufuf3/cdnjs
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex...
qbot/ui/components/arc.js
dennisdunn/botlab
import React from 'react' /** * An HTML5 arc. * * Props: * start={r, theta} * stop={r, theta} * service= coordinate transform service, injected by the parent. * path= path2d injected by the parent. * * Radius for the arc comes from the start prop. * The coordinates are referenced to the polar grid, not the...
src/components/withViewport.js
cmosguy/react-redux-auth0
/** * 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, { Component } from 'react'; // eslint-disabl...
packages/react-ui-components/src/DropDown/header.js
dimaip/neos-ui
import React from 'react'; import PropTypes from 'prop-types'; import mergeClassNames from 'classnames'; import {makeFocusNode} from './../_lib/focusNode'; const emptyFn = () => null; const ShallowDropDownHeader = props => { const { className, children, theme, isOpen, toggl...
favor/content/admin/js/jquery.min.js
gianpaima/favorless
/*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return...
src/components/common/admin/users/UserListContainer.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 { Row, Col } from 'react-flexbox-grid/lib'; import withAsyncData from '../../hocs/AsyncDataContainer'; import withPaging from '../../hocs/PagedContainer'; import { fetchS...
spec/fixtures/sample-correct-es6.js
AdshadLib/atom-react
import React from 'react'; // import react
app/components/shared/Panel/index.js
buildkite/frontend
// @flow import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styled from 'styled-components'; import IntroWithButton from './intro-with-button'; import Row from './row'; import RowActions from './row-actions'; import RowLink from './row-link'; import Header from ...
app/routes.js
eccorley/electron-starter
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './containers/App'; import HomePage from './containers/HomePage'; export default ( <Route path="/" component={App}> <IndexRoute component={HomePage} /> </Route> );
client/src/react/journal/JournalEntryForm.js
charlesj/Apollo
import React from 'react' import PropTypes from 'prop-types' import { connect, } from 'react-redux' import { Field, reduxForm, } from 'redux-form' import { CancelButton, SaveButton, Container, } from '../_controls' class JournalEntryForm extends React.Component { render() { const { handleSubmit, onCancel, } = th...
pages/work/resconnect.js
k97/node-slasher-app
import React from 'react'; import axios from 'axios'; import ReactMarkdown from 'react-markdown'; import mediumZoom from 'medium-zoom'; import Layout from '../../components/Layout/index'; import ProjectTitle from '../../components/Work/ProjectTitle'; import EditProject from '../../components/Work/EditProject'; import ...
packages/material-ui-icons/src/CachedTwoTone.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42...
src/components/Mark.js
casesandberg/react-mark
'use strict'; import React from 'react'; import { markdown } from 'markdown'; import componentLoop from '../helpers/componentLoop'; import transformCodeBlocks from '../helpers/transformCodeBlocks'; export class Mark extends React.Component { render() { let input = this.props.text || this.props.children || []; ...
node_modules/semantic-ui-react/dist/es/elements/Loader/Loader.js
SuperUncleCat/ServerMonitoring
import _extends from 'babel-runtime/helpers/extends'; import cx from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { childrenUtils, customPropTypes, getElementType, getUnhandledProps, META, SUI, useKeyOnly, useKeyOrValueAndKey } from '../../lib'; /** * A loader alerts a user to ...
src/components/ProductSmallCardList/ProductSmallCard/ProductSmallCard.js
GoogleChromeLabs/react-shrine
/* * Copyright 2019 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
client/src/components/svg/CaretDownIcon.js
Wiredcraft/jekyllpro-cms
import React from 'react'; export default props => { return ( <svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg" > <path d="M7 10l5 5 5-5z" /> <path d="M0 0h24v24H0z" fill="none" /> </svg> ); };
view/zero-cola/src/pages/admin/AdminPostCreatePage.js
xuzhenyang/ZeroCola
import React, { Component } from 'react'; import AdminLayout from '../../components/AdminLayout'; import AdminPostEditor from '../../components/AdminPostEditor'; import { message } from 'antd'; import { request } from '../../common'; import { tokenKey } from '../../config'; class AdminPostCreatePage extends Component ...
mobile/mock ups/auth/src/components/common/Button.js
parammehta/TravLendar
import React from 'react'; import { Text, TouchableOpacity } from 'react-native'; const Button = ({ onPress, children }) => { const { buttonStyle, textStyle } = styles; return ( <TouchableOpacity onPress={onPress} style={buttonStyle} > <Text style={textStyle}> {children} </Text> </...
webpack.config.js
fabiosantoscode/react-simpletabs
'use strict'; var _ = require('lodash'); var webpack = require('webpack'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); var LIB_NAME = 'react-simpletabs'; var banner = _.template([ '', ' React Simpletabs - <%= pkg.description %>', ' @version v<%= pkg.version %>', ' @link <%= pkg.homepage %>...
ajax/libs/soundplayer-widget/0.3.4/soundplayer-widget.js
hare1039/cdnjs
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModu...
ajax/libs/yui/3.7.0/datatable-body/datatable-body-debug.js
gogoleva/cdnjs
YUI.add('datatable-body', function (Y, NAME) { /** View class responsible for rendering the `<tbody>` section of a table. Used as the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes. @module datatable @submodule datatable-body @since 3.5.0 **/ var Lang = Y.Lang, isArray = Lang.isA...
ajax/libs/yui/3.0.0/event-custom/event-custom-debug.js
andyinabox/cdnjs
YUI.add('event-custom-base', function(Y) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.Env.evt = { handles: {}, plugins: {} }; /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module e...
example/src/MyComponent.js
damassi/react-responsive-decorator
import React from 'react'; import Responsive from '../../src/index'; @Responsive class MyComponent extends React.Component { static propTypes = { hey: React.PropTypes.string, you: React.PropTypes.bool } state = { isMobile: false } componentDidMount() { this.props.media({ minWidth: 768 }, (...
src/components/Product.js
wkwiatek/dm-react-mobx
import React from 'react' import { observer } from 'mobx-react' const Product = ({ id, name, isSold, onBuyClick }) => { const handleClick = () => { onBuyClick(id) } return ( <div> <span style={ { textDecoration: isSold ? 'line-through' : 'none' }}> { name } </span> <button onCl...
ajax/libs/yui/3.3.0/simpleyui/simpleyui-debug.js
CrossEye/cdnjs
/** * The YUI module contains the components required for building the YUI seed * file. This includes the script loading mechanism, a simple queue, and * the core utilities for the library. * @module yui * @submodule yui-base */ if (typeof YUI != 'undefined') { YUI._YUI = YUI; } /** * The YUI global name...
dist/js_single_files/components/treedown/treedown.min.js
nabab/bbn-vue
((bbn)=>{let script=document.createElement('script');script.innerHTML=`<div :class="[componentClass, 'bbn-iblock', 'bbn-textbox', 'bbn-reactive', {'bbn-disabled': !!isDisabled}]" @mouseleave="leave" @focusin="isActive = true" @focusout="isActive = false" > <div class="bbn-flex-width bbn-h-100"> <di...
ajax/libs/shariff/1.7.3/shariff.js
AMoo-Miki/cdnjs
/* * shariff - v1.4.6 - 15.12.2014 * https://github.com/heiseonline/shariff * Copyright (c) 2014 Ines Pauer, Philipp Busse, Sebastian Hilbig, Erich Kramer, Deniz Sesli * Licensed under the MIT <http://www.opensource.org/licenses/mit-license.php> license */ (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){...
src/routes/Home/components/ResultComponent.js
CERNSummerWebfest/webfest-2017-physics-concepts
import React from 'react' import PropTypes from 'prop-types' import { browserHistory } from 'react-router' export class Result extends React.Component { static propTypes = { concept: PropTypes.string.isRequired, definition: PropTypes.string, id: PropTypes.string.isRequired } render () { return (...
src/client.js
HeartRunner/danmu
/* global __DEVTOOLS__ */ import React from 'react'; import BrowserHistory from 'react-router/lib/BrowserHistory'; import Location from 'react-router/lib/Location'; import createStore from './redux/create'; import ApiClient from './ApiClient'; import universalRouter from './universalRouter'; import injectTapEvent from ...
src/components/Chat/__tests__/ChatListItemEvent.spec.js
propertybase/react-lds
import React from 'react'; import { shallow } from 'enzyme'; import ChatListItemEvent from '../ChatListItemEvent'; import { EventContent } from '../Content'; describe('<ChatListItemEvent />', () => { let mounted = null; const props = { icon: null, isError: false, message: 'message', meta: null, ...
node_modules/gatsby-plugin-netlify/node_modules/@babel/runtime/helpers/jsx.js
jpoeng/jpoeng.github.io
var REACT_ELEMENT_TYPE; function _createRawReactElement(type, props, key, children) { if (!REACT_ELEMENT_TYPE) { REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol["for"] && Symbol["for"]("react.element") || 0xeac7; } var defaultProps = type && type.defaultProps; var childrenLength = arguments.le...
src/presentation/effects/SliderDelay.js
gabriel3000/scdj-sim1000
import React from 'react'; import {AL} from '../container/AudioLayer'; export default class SliderDelay extends React.Component { constructor(props) { super(props); this.state = { delayslider: 0, }; this.handleInputChange = this.handleInputChange.bind(this); } ...
frontend/app/components/Form/FormPhraseBooks.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' import FormPhraseBook from 'components/Form/FormPhraseBook' import { getIndexOfElementById, removeItem, moveItemDown, moveItemUp } from 'components/Form/FormInteractions' import BrowseComponent from 'components/BrowseComponent' import ProviderHelpers from 'co...
packages/forms/src/UIForm/fieldsets/Array/displayMode/TextModeArrayTemplate.component.js
Talend/ui
import React from 'react'; import PropTypes from 'prop-types'; import theme from './TextModeArrayTemplate.scss'; function renderListItem(val, index, renderItem) { const valueIsObject = typeof val === 'object'; const classNames = valueIsObject ? theme.block : undefined; return ( <li key={index} className={classNa...
src/components/IonButton.js
jthoms1/react-ionic-conference-app
import React from 'react'; import { withRouter } from 'react-router-dom'; export default withRouter(({history, children, path, location, match, ...props}) => ( <ion-button {...props} onClick={() => history.push(props.path)}> {children} </ion-button> ));
client/modules/Request/components/HeaderText.js
jeojoe/emplist
import React from 'react'; import s from './HeaderText.css'; import { FormattedMessage } from 'react-intl'; const HeaderText = () => ( <div> <p><FormattedMessage id="requestListHeader" /></p> <p className={s.hilight}>English is recommended for broader audience.</p> </div> ); export default HeaderText;
src/routes/chart/Container.js
hhj679/mybition-web
import React from 'react' import PropTypes from 'prop-types' import styles from './Container.less' import { ResponsiveContainer } from 'recharts' const Container = ({ children, ratio = 5 / 2, minHeight = 250, maxHeight = 350 }) => <div className={styles.container} style={{ minHeight, maxHeight }}> <div style={{ marg...
ajax/libs/yasgui/1.0.6/yasgui.min.js
mscharl/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r...
packages/rocketchat-iframe-login/package.js
ziedmahdi/Rocket.Chat
Package.describe({ name: 'rocketchat:iframe-login', summary: '', version: '1.0.0' }); Package.onUse(function(api) { // Server libs api.use('rocketchat:logger', 'server'); api.use('kadira:flow-router', 'client'); api.use('rocketchat:lib'); api.use('accounts-base'); api.use('underscore'); api.use('ecmascrip...
src/ui/components/views/Home.web.js
belng/pure
/* @flow */ import React, { Component } from 'react'; import Radium from 'radium'; class Home extends Component<void, void, void> { render() { return <div />; } } export default Radium(Home);
src/components/Account/Account.js
febobo/react-redux-start
import React from 'react' import classes from './Account.scss' import accountIco1 from '../../static/images/accountIco1.png' import accountIco2 from '../../static/images/accountIco2.png' import accountIco3 from '../../static/images/accountIco3.png' import {i18n} from '../../util/i18n' import config from '../../BaseConf...
src/components/NavbarItem/index.spec.js
leohahn/TIM-frontend
import jsdom from 'jsdom' import React from 'react' import { shallow, mount } from 'enzyme' import { expect } from 'chai' import sinon from 'sinon' import { Link } from 'react-router' import NavbarItem from './index' // Sets a fake DOM for testing. const doc = jsdom.jsdom('<!doctype html><html><body></body></html>') ...
src/svg-icons/social/plus-one.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPlusOne = (props) => ( <SvgIcon {...props}> <path d="M10 8H8v4H4v2h4v4h2v-4h4v-2h-4zm4.5-1.92V7.9l2.5-.5V18h2V5z"/> </SvgIcon> ); SocialPlusOne = pure(SocialPlusOne); SocialPlusOne.displayName = 'Social...
client/scripts/components/content-blog.js
rubeniskov/web-palomasafe
import React from 'react'; export default class ContentBlog extends React.Component { constructor(props) { super(props); } render() { return ( <section id="blog" className="e-block e-block-skin" data-stellar-background-ratio="0.5"> <div className="container pt-section" data-name="Blog" id...
src/modules/Talk/components/Looking.js
hdngr/mantenuto
import React from 'react'; import { ClipLoader } from 'react-spinners'; import styles from './Talk.scss'; const Looking = () => ( <div> <h3>We{"'"}re looking for someone to connect you with!</h3> <ClipLoader color={styles.brandPrimary} loading size={100} /> </div> ) export default L...
packages/octicons-react/es/Octicon.js
hiendv/octicons-modular
import PropTypes from 'prop-types'; import React from 'react'; var Octicon = function (ref) { var icon = ref.icon; var scale = ref.scale; var className = ref.className; var label = ref.label; var options = { scale: scale, class: className, label: label }; var attrs = icon.attrs(options); if (!attrs) { ...
src/cms/preview-templates/ServicesPagePreview.js
njosieb/ecocentrixco
import PropTypes from 'prop-types' import React from 'react' import { ProjectsPageTemplate } from '../../templates/projects-page' const ProjectsPagePreview = ({ entry }) => ( <ProjectsPageTemplate title={entry.getIn(['data', 'title'])} subtitle={entry.getIn(['data', 'subtitle'])} projects={entry.getIn(['...
src/ItemView.js
jdaudier/Timo-Plato
import React, { Component } from 'react'; import { Button } from './Button'; import { styles } from './styles/styles'; export class ItemView extends Component { constructor(props) { super(props); this.state = { editMode: false, origProjectName: this.props.projectName, ...
ajax/libs/yui/3.14.1/scrollview-base/scrollview-base-coverage.js
athanclark/cdnjs
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/scrollview-base/scrollview-base.js']) { __coverage__['build/scrollview-base/scrollview-base.js'] = {"path":"build/scrollview-base/scrollview-base.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":...
ajax/libs/primereact/7.2.1/toolbar/toolbar.js
cdnjs/cdnjs
this.primereact = this.primereact || {}; this.primereact.toolbar = (function (exports, React, utils) { 'use strict'; function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } var React__default = /*#__PURE__*/_interopDefaultLegacy(React); function _cla...
example/src/Screens/Docs/AnimatedRoute/Demo.js
maisano/react-router-transition
import React from 'react'; import { Link } from 'react-router-dom'; import { css } from 'glamor'; import { AnimatedRoute } from 'react-router-transition'; import Browser from '../shared/Browser'; import Footer from '../shared/Footer'; const bodyRule = css` display: flex; height: 100%; width: 100%; justify-co...
js/jqwidgets/demos/react/app/window/settings/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxWindow from '../../../jqwidgets-react/react_jqxwindow.js'; import JqxTabs from '../../../jqwidgets-react/react_jqxtabs.js'; import JqxCheckBox from '../../../jqwidgets-react/react_jqxcheckbox.js'; import JqxButton from '../../../jqwidgets-react/rea...
src/modules/Home/index.js
Kikoku/react-transform-boilerplate
import React from 'react'; const Home = () => ( <div> <h1>Home</h1> </div> ) export default Home;
src/containers/Editor.js
yurivyatkin/zhurnik-webapp
import React from 'react' import { connect } from 'react-redux' import ReactMarkdown from 'react-markdown' import CodeMirror from 'react-codemirror' import 'codemirror/mode/markdown/markdown' import 'codemirror/lib/codemirror.css' import { getCurrentBuffer, isPreview } from '../store/editor/reducer' import { changeBuff...
public/js/cat_source/es6/components/quality_report/SegmentQRIssue.js
matecat/MateCat
import React from 'react' import _ from 'lodash' import moment from 'moment' class SegmentQRIssue extends React.Component { generateHtmlCommentLines(issue) { let array = [] let comments = issue.get('comments').toJS(), comment_date for (let n in comments) { let comment = comments[n] comm...
src/app/App.js
halhenke/js-study-sydney-calculator
import React from 'react'; import Header from './Header'; import Content from './Content'; import Footer from './Footer'; export default class App extends React.Component { render() { return ( <div> <Header /> <Content /> <Footer /> </div> ); } }
src/Sidebar/Form/Menus.js
pirey/mie-ayam
import React from 'react' import Cleave from 'cleave.js/react' import InputThumb from './InputThumb' const Menus = (props) => { const { menus, errors, handleChangeMenuImg, handleDeleteMenuImg, handleChangeMenuInput, handleRemoveMenu, loading } = props return ( <ul className="resto-menu media-list"> {menu...
examples/react/src/components/InboxItem.js
router5/router5
import React from 'react' import { Link } from 'react-router5' function InboxItem({ title, message, id }) { return ( <li> <Link routeName="inbox.message" routeParams={{ id }} activeClassName="active" > <h4>{title}</h4> ...
node_modules/react-dom/lib/traverseAllChildren.js
Seriane/Pokedex
/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ 'use strict...
src/components/tests/Comic.spec.js
laurazenc/react-marvel-comics
import React from 'react'; import {shallow} from 'enzyme'; import {Comic} from './../'; describe('<Comic />', () => { const comic = { thumbnail: { path: '', url: '' }, creators: { items: [] }, dates: [ {data: ''} ], title: 'Spider-man' }; const id = 0; functi...
ajax/libs/primereact/6.5.0-rc.2/datatable/datatable.cjs.min.js
cdnjs/cdnjs
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/paginator"),o=require("primereact/utils"),r=require("primereact/overlayeventbus"),n=require("primereact/ripple"),l=require("primereact/inputtext");function i(e){return e&&"object"==typeof e&&"default"in e?e:...
src/Modal/__tests__/Modal.native.js
Fineighbor/ui-kit
/* eslint-env jest */ import React from 'react' import { shallow } from 'enzyme' import Modal from '../index.ios.js' import Text from '../../Text' describe('Modal.native', () => { it('renders a snapshot', () => { const wrapper = shallow( <Modal><Text>Content</Text></Modal> ) expect(wrapper).toMatch...
ajax/libs/react-native-web/0.12.0/exports/Button/index.js
cdnjs/cdnjs
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } /** * Copyright (c) Nicolas Gallagher. * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under th...
src/components/Search/Search.js
nambawan/g-old
// heavily inspired by https://github.com/grommet/grommet/blob/master/src/js/components/Search.js import React from 'react'; import PropTypes from 'prop-types'; import { findDOMNode } from 'react-dom'; import cn from 'classnames'; import withStyles from 'isomorphic-style-loader/withStyles'; import s from './Search.css...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
JPMendenhall/Kuva-Front-End
import React from 'react'; import { render } from 'react-dom'; // 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'; render(<HelloWorld />, document.getElementById('react-root'));
ajax/libs/instantsearch.js/0.14.9/instantsearch.min.js
LeaYeh/cdnjs
/*! instantsearch.js 0.14.9 | © Algolia Inc. and other contributors; Licensed MIT | github.com/algolia/instantsearch.js */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.instantsearch=t():e.instantse...
hdpDrupal/sites/default/files/js/js_7jrk4_-HznH8Hm0aD3SAQLHbUA5cd0SG6-ui8dokQTk.js
IrvinAyala/fase2hdp
/*! jQuery v2.2.4 | (c) jQuery Foundation | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,fun...
src/components/organizations/organizations-by-series.js
FranckCo/Operation-Explorer
import React from 'react'; import { sparqlConnect } from 'sparql-connect'; import OrganizationList from './organization-list'; import Spinner from 'components/shared/spinner' import D from 'i18n' /** * Builds the query that retrieves the products issued of a given series. */ // TODO Return label by lang (needs trad...
client-react/src/containers/LoginSuccess/LoginSuccess.js
diman84/Welthperk
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import * as authActions from 'redux/modules/auth'; @connect( state => ({ user: state.auth.user }), authActions) export default class LoginSuccess extends Component { static propTypes = { user:...
ajax/libs/core-js/0.8.2/library.js
magoni/cdnjs
/** * Core.js 0.8.2 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 Denis Pushkarev */ !function(undefined){ var __e = null, __g = null; (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0...
test/ProgressBarSpec.js
jesenko/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ReactDOM from 'react-dom'; import ProgressBar from '../src/ProgressBar'; import {getOne, shouldWarn} from './helpers'; function getProgressBarNode(wrapper) { return ReactTestUtils.findRenderedDOMComponentWithClass(wrapper, 'pr...
app/components/common/area-list/index.js
Vizzuality/forest-watcher
// @flow import type { Area } from 'types/areas.types'; import React, { Component } from 'react'; import { View } from 'react-native'; import VerticalSplitRow from 'components/common/vertical-split-row'; import DataCacher from 'containers/common/download'; import styles from './styles'; type Props = { areas: Array...