path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
blueocean-material-icons/src/js/components/svg-icons/editor/insert-emoticon.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const EditorInsertEmoticon = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c.83 0 1.5-.67 1.5-1.5S16.33...
frontend/src/Activity/Queue/QueueRowConnector.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { grabQueueItem, removeQueueItem } from 'Store/Actions/queueActions'; import createAlbumSelector from 'Store/Selectors/createAlbumSelector'; import creat...
ajax/libs/yui/3.2.0/loader/loader.js
kevinburke/cdnjs
YUI.add('loader-base', function(Y) { /** * The YUI loader core * @module loader * @submodule loader-base */ if (!YUI.Env[Y.version]) { (function() { var VERSION = Y.version, // CONFIG = Y.config, BUILD = '/build/', ROOT = VERSI...
src/components/FlexTest.js
flyfei/react-starter
import React, { Component } from 'react'; import { Demo1, Demo2 } from './FlexUse'; class FlexTest extends Component{ render() { return ( <div> aaa <Demo1/> <Demo2/> </div> ); } } export default FlexTest;
src/components/ProgressByDate/ProgressByDate.js
bigwaterconsulting/to_dash_live
/** * 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. */ /* eslint no-underscore-dangle: ["error", { "allow": [...
src/client/index.js
rctyler/todo.web
import React, { Component } from 'react'; import { createStore, applyMiddleware, compose } from 'redux'; import { render } from 'react-dom'; import { Router, Route, RouterContext, browserHistory } from 'react-router'; import { Provider } from 'react-redux'; import combinedReducers from '../common/reducers'; import rout...
src/screens/Space.js
jaynsw/easywrite-webapp
// @flow import React from 'react'; import '../App.css'; import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import { getSpace} from '../reducers'; import {fetchArticles, initSpace, fetchSpaceByHost, fetchSpace} from '../Actions'; import {WEB_ROOT} from '../Constants'; import SmallI...
vendor/miloschuman/yii2-highcharts-widget/src/assets/highmaps.src.js
denchaihos/yiimisprovis
// ==ClosureCompiler== // @compilation_level SIMPLE_OPTIMIZATIONS /** * @license Highmaps JS v1.1.9 (2015-10-07) * * (c) 2009-2014 Torstein Honsi * * License: www.highcharts.com/license */ // JSLint options: /*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clearTi...
ajax/libs/yui/3.17.0/event-custom-base/event-custom-base-coverage.js
bevacqua/cdnjs
/* YUI 3.17.0 (build ce55cc9) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/event-custom-base/event-custom-base.js']) { __coverage__['build/event-custom-base/e...
ajax/libs/forerunnerdb/1.3.477/fdb-core+persist.js
jonathantneal/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...
src/svg-icons/hardware/speaker.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareSpeaker = (props) => ( <SvgIcon {...props}> <path d="M17 2H7c-1.1 0-2 .9-2 2v16c0 1.1.9 1.99 2 1.99L17 22c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5 2c1.1 0 2 .9 2 2s-.9 2-2 2c-1.11 0-2-.9-2-2s.89-2 2-2zm0 16c...
packages/material-ui-icons/src/SportsMmaTwoTone.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M15 5H7v5.6c0 .14.64 3.4.64 3.4h8.72s.64-3.26.64-3.4V10h-2V5zm-1 5H8V7h6v3z" opacity=".3" /><path d="M7 20c0 .55.45 1 1 1h8c.55 0 1-.45 1-1v-3H7v3zM18 7c-.55 0-1 .45-1 1V5c0-1.1-.9-2-2...
Libraries/Image/RelativeImageStub.js
yangshangde/react-native
/** * Copyright (c) 2015-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. * * @provides...
src/components/ScoreGraph.js
tgevaert/react-redux-hearts
import React from 'react'; import { connect } from 'react-redux'; import { getPlayers, getScoreTotals } from '../reducers'; const GraphRowLabel = ({label}) => (<div className={"graph label"}>{label}</div>); const GraphLine = ({size}) => { const colors = ["#388e3c", "#ffd600", "#e65100", "#d50000", "#d50000"]; con...
Libraries/Components/TabBarIOS/TabBarItemIOS.ios.js
srounce/react-native
/** * Copyright (c) 2015-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. * * @provides...
client/page/home/database-error.js
johngodley/search-regex
/** * External dependencies */ import React from 'react'; import { translate as __ } from 'i18n-calypso'; function DatabaseError( props ) { const { error, onClear } = props; const debug = error.jsonData; const email = 'mailto:john@searchregex.com?subject=Search%20Regex%20Query%20Error&body=' + encodeURIComponent...
frontend/components/form/InputEmail.js
datoszs/czech-lawyers
import React from 'react'; import PropTypes from 'prop-types'; import {FormControl} from 'react-bootstrap'; import styles from './InputEmail.less'; const InputEmail = ({input, placeholder}) => ( <FormControl type="email" className={styles.main} placeholder={placeholder} value={input...
WasteApp/js/components/sidebar/index.js
airien/workbits
import React, { Component } from 'react'; import { Image } from 'react-native'; import { connect } from 'react-redux'; import { Content, Text, List, ListItem, Icon, View } from 'native-base'; var menuItems = require('../../data/sidebar.json'); import navigateTo from '../../actions/sideBarNav'; import sidebarTheme from...
ajax/libs/inferno/1.0.0-beta15/inferno-compat.min.js
dakshshah96/cdnjs
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("./inferno-component")):"function"==typeof define&&define.amd?define(["exports","inferno-component"],n):n(e.Inferno=e.Inferno||{},e.Inferno.Component)}(this,function(e,n){"use strict";function t(e,n){return n={exports:{}},e(n,n.export...
src/svg-icons/device/battery-charging-30.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryCharging30 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v9.17h2L13 7v5.5h2l-1.07 2H17V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M11 20v-5.5H7...
app/static/src/diagnostic/EquipmentForm_modules/AditionalEqupmentParameters_modules/TapChangerParams.js
SnowBeaver/Vision
import React from 'react'; import FormControl from 'react-bootstrap/lib/FormControl'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import ControlLabel from 'react-bootstrap/lib/ControlLabel'; import {findDOMNode} from 'react-dom'; import {hashHistory} from 'react-router'; import {Link} from 'react-router'; im...
ajax/libs/material-ui/4.9.4/esm/internal/svg-icons/KeyboardArrowLeft.js
cdnjs/cdnjs
import React from 'react'; import createSvgIcon from './createSvgIcon'; /** * @ignore - internal component. */ export default createSvgIcon(React.createElement("path", { d: "M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z" }), 'KeyboardArrowLeft');
tests/routes/Home/components/HomeView.spec.js
nodepie/react-redux-starter-kit
import React from 'react' import { HomeView } from 'routes/Home/components/HomeView' import { render } from 'enzyme' describe('(View) Home', () => { let _component beforeEach(() => { _component = render(<HomeView />) }) it('Renders a welcome message', () => { const welcome = _component.find('h4') ...
js/BaseComponents/Text.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or *...
client/react/frontpage/components/FrontPageNavbar.js
uclaradio/uclaradio
// FrontPageNavbar.js import React from 'react'; import { Nav, NavItem, Collapse, NavDropdown, MenuItem } from 'react-bootstrap'; import { LinkContainer } from 'react-router-bootstrap'; import { browserHistory } from 'react-router'; import './FrontPageNavbar.scss'; /** Navigation bar for the stream frontpage, which h...
node_modules/native-base/src/basic/Container.js
odapplications/WebView-with-Lower-Tab-Menu
import React, { Component } from 'react'; import { View } from 'react-native'; import { connectStyle } from '@shoutem/theme'; import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; import {ToastContainer as Toast} from './ToastContainer'; import {ActionSheetContainer as ActionSheet} from './Actionsheet'; im...
src/main/scripts/modules/sea-siege/react/components/icon-stack.js
twuni/sea-siege
import React from 'react'; import Component from './component'; const {oneOf} = React.PropTypes; class IconStack extends Component { static get propTypes() { return Component.withPropTypes({ scale: oneOf(['lg', '2x', '3x', '4x', '5x']) }); } get fontAwesomeClassNames() { const classNames = ...
src/scenes/home/informationForm/formComponents/schoolInfo.js
tal87/operationcode_frontend
import React from 'react'; import Form from 'shared/components/form/form'; import { Line } from 'rc-progress'; import PropTypes from 'prop-types'; import FormSelect from 'shared/components/form/formSelect/formSelect'; import { SCHOOLINFO } from 'shared/constants/status'; import styles from './formComponents.css'; cons...
src/SvgIcon/SvgIcon.js
collegepulse/material-react-components
import makeClass from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import Button from '../Button'; import Styles from './SvgIcon.css'; /* This wrapper is a necessary abstraction since IE11 makes * SVG's tab key focusable, even when tabindex = -1. */ class SvgIcon extends React.Compone...
app/javascript/mastodon/components/autosuggest_textarea.js
rainyday/mastodon
import React from 'react'; import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container'; import AutosuggestEmoji from './autosuggest_emoji'; import AutosuggestHashtag from './autosuggest_hashtag'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from...
pages/rant/hate_software.js
mvasilkov/mvasilkov.ovh
import React from 'react' import Article from '../../app/article' export const pagePath = 'rant/hate_software' export const pageTitle = 'Ryan Dahl: I hate almost all software' export default class extends React.Component { render() { return ( <Article path={pagePath} title={pageTitle}> ...
src/utils/childrenValueInputValidation.js
snadn/react-bootstrap
import React from 'react'; import { singlePropFrom } from './CustomPropTypes'; const propList = ['children', 'value']; const typeList = [React.PropTypes.number, React.PropTypes.string]; export default function valueValidation(props, propName, componentName) { let error = singlePropFrom(propList)(props, propName, co...
src/containers/Widgets/vCard/vCard-widget.js
EncontrAR/backoffice
import React, { Component } from 'react'; export default class VCardWidget extends Component { render() { const { src, alt, name, title, description, children, style } = this.props; return ( <div className="isoVCardWidgetWrapper" style={style}> <div className="isoVCardImage"> <img src...
ajax/libs/forerunnerdb/1.3.133/fdb-legacy.min.js
cdnjs/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...
react-app/src/assets/icons.js
danieluy/www.danielsosa.uy
import React from 'react'; export const CodeIcon = (props) => ( <svg {...props} viewBox="0 0 24 24"> <path d="M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z" /> </svg> ) export const MenuIcon = (props) => ( <svg {...props} viewBox="0 0 24 24"> <path d="M3 18h18...
docs/app/Examples/modules/Dropdown/Types/DropdownExampleDropdown.js
mohammed88/Semantic-UI-React
import React from 'react' import { Dropdown } from 'semantic-ui-react' // TODO: This is missing functionality for sub-menu here from SUI core examples. // The "Publish To Web" item should contain a sub-menu. const DropdownExampleDropdown = () => ( <Dropdown text='File'> <Dropdown.Menu> <Dropdown.Item text...
react/Badge/Badge.js
seekinternational/seek-asia-style-guide
import styles from './Badge.less'; import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import Text from '../Text/Text'; export default function Badge({ label, color, isBold }) { let colorStyle = styles.default; switch (color) { case 'progressing': col...
app/javascript/mastodon/features/video/index.js
tri-star/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { is } from 'immutable'; import { throttle, debounce } from 'lodash'; import classNames from 'classnames'; import { isFullscreen, requestFullscreen, exitFullscreen } from '../...
src/svg-icons/action/perm-contact-calendar.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermContactCalendar = (props) => ( <SvgIcon {...props}> <path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-...
src/svg-icons/action/feedback.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFeedback = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"/> </SvgIcon> ); ActionFeedback = pure(Acti...
ajax/libs/oojs-ui/0.23.4/oojs-ui-windows.js
joeyparrish/cdnjs
/*! * OOjs UI v0.23.4 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2017 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * * Date: 2017-10-12T01:29:19Z */ ( function ( OO ) { 'use strict'; /** * An ActionWidget is a {@link OO.ui.ButtonWidget ...
src/components/sample/Sample.js
elmahdim/estore-react
import React, { Component } from 'react'; class Sample extends Component { render() { return ( <div className="Sample"> </div> ); } } export default Sample;
packages/react-vis/src/plot/series/arc-series.js
uber/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
lib-dist/svg-icons/maps/pin-drop.js
IsenrichO/mui-with-arrows
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('../../SvgIcon'); var _SvgIcon2 = _interopRequireDe...
modules/core/examples/mars-tencent/__tests__/index.android.js
Caijiacheng/react-native-mars
import 'react-native'; import React from 'react'; import Index from '../index.android.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
ajax/libs/babel-core/4.4.2/browser.js
yinghunglai/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.babel=e()}}(function(){var define,module,exports;retu...
Samples/Core.CrossDomainLib/Core.CrossDomainLibWeb/Scripts/jquery-1.10.2.js
dalehhirt/PnP
/* NUGET: BEGIN LICENSE TEXT * * Microsoft grants you the right to use these script files for the sole * purpose of either: (i) interacting through your browser with the Microsoft * website or online service, subject to the applicable licensing or use * terms; or (ii) using the files as included with a Microsoft p...
vendor/assets/javascripts/video.js
neversion/comment_sufia
/*! Video.js - HTML5 Video Player Version 3.2.0 LGPL v3 LICENSE INFO This file is part of Video.js. Copyright 2011 Zencoder, Inc. Video.js is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 ...
src/utils/domUtils.js
JimiHFord/react-bootstrap
import React from 'react'; import canUseDom from 'dom-helpers/util/inDOM'; import getOwnerDocument from 'dom-helpers/ownerDocument'; import getOwnerWindow from 'dom-helpers/ownerWindow'; import contains from 'dom-helpers/query/contains'; import activeElement from 'dom-helpers/activeElement'; import getOffset from 'd...
src/components/DoneBucket.js
jiparker/bowl-game
import React from 'react'; import PropTypes from 'prop-types'; import QueueItems from './QueueItems'; const DoneBucket = (props) => { let total = `Total Processed: ${props.doneCount}`; let runs = `Total Iterations: ${props.runsCount}`; // how many times everybody has had a turn let avg = Math.round(props.doneCou...
ajax/libs/onsen/2.0.0-alpha.13/js/onsenui.min.js
drewfreyling/cdnjs
/*! onsenui v2.0.0-alpha.13 - 2015-11-10 */ function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a fun...
test/helpers/shallowRenderHelper.js
liyongfen/gallery-by-react
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
example/src/components/index.js
jpuri/darsh
import Component1 from './component1'; import Component2 from './component2'; import Component10 from './component10'; import { configureStore } from 'react-component-store'; module.exports = { Component1: configureStore(['data1'])(Component1), Component2: configureStore(['data2'])(Component2), Component10, };
ajax/libs/react-instantsearch/6.6.0/Dom.js
cdnjs/cdnjs
/*! React InstantSearch 6.6.0 | © Algolia, inc. | https://github.com/algolia/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) : ...
documentation/assets/js/jquery.js
wesley1001/lkbmobile
/*! jQuery v1.7.1 jquery.com | jquery.org/license */ (function( window, undefined ) { // Use the correct document accordingly with window argument (sandbox) var document = window.document, navigator = window.navigator, location = window.location; var jQuery = (function() { // Define a local copy of jQuery var jQuer...
src/components/Provider.js
eveningkid/react-pur
import React from 'react'; import styled, { ThemeProvider } from 'styled-components'; import objectAssignDeep from '../lib/object-assign-deep'; import theme from '../theme'; const Base = styled.div([], (props) => ({ '-webkitFontSmoothing': 'antialiased', '-mozOsxFontSmoothing': 'grayscale', fontFamily: 'sans-ser...
src/components/Friends/index.js
DarwinSmith/tentara-pelajar-client
import React, { Component } from 'react'; import CSSTransitionGroup from 'react-transition-group/CSSTransitionGroup'; import { connect } from 'react-redux'; import { fetchSkills, endorseSkills, fetchPersonalities, endorsePersonalities, fetchProfile } from '../../actions' import axios from 'axios' import Timeline from '...
src/List/__tests__/List_test.js
kmees/react-fabric
import React from 'react' import { render } from 'enzyme' import test from 'tape' import List from '..' import ListItem from '../../ListItem' test('List', t => { t.ok(List, 'export') t.equal(List.displayName, 'FabricComponent(List)') t.end() }) test('List#render - simple', t => { const container = render( ...
src/components/compact/Compact.js
casesandberg/react-color
import React from 'react' import PropTypes from 'prop-types' import reactCSS from 'reactcss' import map from 'lodash/map' import merge from 'lodash/merge' import * as color from '../../helpers/color' import { ColorWrap, Raised } from '../common' import CompactColor from './CompactColor' import CompactFields from './Co...
assets/js/app.js
ChatRunner/ChatRunner
// import * as $ from 'jquery' import ReactDOM from 'react-dom' import FontAwesome from 'react-fontawesome' import React from 'react' import {Col, Grid} from 'react-bootstrap' import fire from 'fire' ReactDOM.render( <Grid><Col lg={8}> <h1>Hello, world!</h1> <h3>Requirements:</h3> <ul> ...
src/FormErrors.js
muliwe/donor-spa
import React from 'react'; export const FormErrors = ({formErrors}) => <div className='formErrors'> {Object.keys(formErrors) .map((fieldName, i) => { if(formErrors[fieldName].length > 0){ return ( <p key={i} className={fieldName === 'ok' ? 'noerr' : ''}>{formErrors[fieldName]}</p> ...
web/src/js/__tests__/components/common/ToggleInputButtonSpec.js
vhaupert/mitmproxy
import React from 'react' import renderer from 'react-test-renderer' import ToggleInputButton from '../../../components/common/ToggleInputButton' import { Key } from '../../../utils' describe('ToggleInputButton Component', () => { let mockFunc = jest.fn(), toggleInputButton = undefined, tree = unde...
app/components/Nav.js
megseoh/react-app
import React from 'react'; import styles from './Nav.scss'; import { Link, IndexLink } from 'react-router'; var Nav = React.createClass({ render: function() { return ( <nav> <h1>React Notes App</h1> <IndexLink to="/" activeClassName="active" activeStyle={{fontWeight: 'bold'}} className={ styles.navlink }...
app/javascript/mastodon/containers/compose_container.js
masto-donte-com-br/mastodon
import React from 'react'; import { Provider } from 'react-redux'; import PropTypes from 'prop-types'; import configureStore from '../store/configureStore'; import { hydrateStore } from '../actions/store'; import { IntlProvider, addLocaleData } from 'react-intl'; import { getLocale } from '../locales'; import Compose f...
step8-unittest/node_modules/react-router/modules/RoutingContext.js
jintoppy/react-training
import React from 'react' import RouterContext from './RouterContext' import warning from './routerWarning' const RoutingContext = React.createClass({ componentWillMount() { warning(false, '`RoutingContext` has been renamed to `RouterContext`. Please use `import { RouterContext } from \'react-router\'`. http://t...
src/loading-element.js
gurimon/react-lazy-loader
import React from 'react'; const style = { position: 'absolute', width: '25%', maxWidth: 200, margin: '-13% auto', top: '50%', left: 0, right: 0 }; const LoadingElement = props => ( <div style={{ position: 'relative', width: '100%', height: '100%' }}> <img style={ style } src="./i...
stories/Grid.js
abouthiroppy/scuba
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import Container, { Grid, Cell } from '../src'; const styles = { container: { width : '80%', margin : 30, padding: 30, border : '1px solid #333' }, cell: { background: '#777' } }; storiesOf('Grid', module).add('list...
stories/Image/CustomImageEditor/index.js
dagopert/draft-js-plugins
import React, { Component } from 'react'; import { convertFromRaw, EditorState, } from 'draft-js'; import Editor, { composeDecorators } from 'draft-js-plugins-editor'; import createImagePlugin from 'draft-js-image-plugin'; import createAlignmentPlugin from 'draft-js-alignment-plugin'; import createFocusPlugin f...
externals/dojo/demos/cropper/src/Preview.js
Neomobile/zend-framework
dojo.provide("demos.cropper.src.Preview"); dojo.require("dijit._Widget"); dojo.require("dojo.dnd.move"); dojo.require("dojox.layout.ResizeHandle"); (function(d, $){ // a simple "wrap" function. availaing in `plugd` // warning: node must be in the DOM before being wrapped. var wrap = function(node, withTag){ /...
src/svg-icons/device/battery-90.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBattery90 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V8h10V5.33z"/><path d="M7 8v12.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1...
webApp/src/Components/NoStream.js
s-law/silent-disco
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { History } from 'react-router'; import reactMixin from 'react-mixin'; // MATERIAL UI import List from '../../node_modules/material-ui/lib/lists/list'; import Card from '../../node_modules/material-ui/lib/card/card'; import CardText fr...
frontend/app/js/components/service/details/externalurl.js
serverboards/serverboards
import React from 'react' function ExternalUrl({url}){ return ( <iframe src={url} className="ui full height"></iframe> ) } export default ExternalUrl
react/features/feedback/components/FeedbackButton.web.js
KalinduDN/kalindudn.github.io
/* @flow */ import React, { Component } from 'react'; declare var config: Object; /** * Implements a Web/React Component which renders a feedback button. */ export class FeedbackButton extends Component { state = { callStatsID: String }; /** * Initializes a new FeedbackButton instance. ...
actor-apps/app-web/src/app/components/Login.react.js
Havi4/actor-platform
import _ from 'lodash'; import React from 'react'; import classNames from 'classnames'; import { Styles, RaisedButton, TextField } from 'material-ui'; import { AuthSteps } from 'constants/ActorAppConstants'; import Banner from 'components/common/Banner.react'; import LoginActionCreators from 'actions/LoginActionCre...
imports/client/ui/pages/Home/oldhomepage/FirstSection/index.js
focallocal/fl-maps
import React from 'react' import { Meteor } from 'meteor/meteor' import { withTracker } from 'meteor/react-meteor-data' import { Container } from 'reactstrap' import Find from './Find' import i18n from '/imports/both/i18n/en' import './styles.scss' const { Home } = i18n let color let titleColor = {color: color} con...
stories/HashTag/index.js
michalko/draft-wyswig
/* @flow */ import React from 'react'; import { Editor } from '../../src'; /** * Default hashCharacter is '#' and default separator between words is ' '. * thus there fields are optional. An empty object can also be passed as value of prop hashTag. */ const HashTag = () => (<div className="rdw-storybook-root"> <s...
modules/civicrm/packages/kcfinder/js/000._jquery.js
katsandlace/compucorp
/*! jQuery v1.11.0 | (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/extended_video_player.js
Arukas/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class ExtendedVideoPlayer extends React.PureComponent { static propTypes = { src: PropTypes.string.isRequired, alt: PropTypes.string, width: PropTypes.number, height: PropTypes.number, time: PropTypes.number, contr...
src/views/SuppliedView.js
de44/kb-ui
import React from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; import { withState, withHandlers, lifecycle, compose } from 'recompose'; const SuppliedView = ({ component, loading, options, suppliedModel }) => { if (loading) { return (<div className="loading">Loading...</div>); } const...
blueocean-material-icons/src/js/components/svg-icons/action/pregnant-woman.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionPregnantWoman = (props) => ( <SvgIcon {...props}> <path d="M9 4c0-1.11.89-2 2-2s2 .89 2 2-.89 2-2 2-2-.89-2-2zm7 9c-.01-1.34-.83-2.51-2-3 0-1.66-1.34-3-3-3s-3 1.34-3 3v7h2v5h3v-5h3v-4z"/> </SvgIcon> ); ActionPregnantWoman.displayName =...
src/components/pages/Admin/Orders/AdminOrdersSendEmail.js
ESTEBANMURUZABAL/bananaStore
/** * Imports */ import React from 'react'; import {FormattedMessage} from 'react-intl'; // Flux import IntlStore from '../../../../stores/Application/IntlStore'; // Required components import Button from '../../../common/buttons/Button'; import InputField from '../../../common/forms/InputField'; import Select from...
ajax/libs/react-bootstrap-typeahead/0.2.0/react-bootstrap-typeahead.js
dc-js/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof define === 'function' && define.amd) define(["react", "react-dom"], factory); else if(typeof exports === 'obje...
src/components/App/test.js
codella/snake
import React from 'react'; import ReactDOM from 'react-dom'; import App from './'; it('renders without crashing', () => { const div = document.createElement('div'); ReactDOM.render(<App />, div); });
app/src/components/Header/index.js
fikrimuhal/animated-potato
import React from 'react'; import SubHeader from './SubHeader'; import styles from './style'; import logoURL from './images/react-logo.svg'; const Header = () => { return <header className={styles.main}> <img className={styles.logo} src={logoURL} height="125"/> <div className={styles.wrap}> <h1 classN...
ajax/libs/forerunnerdb/1.3.764/fdb-core+persist.min.js
redmunds/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...
geonode/monitoring/frontend/src/components/cels/geonode-status/index.js
ppasq/geonode
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; import AverageCPU from '../../molecules/average-cpu'; import AverageMemory from '../../molecules/average-memory'; import s...
test/PaginationSpec.js
xiaoking/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Pagination from '../src/Pagination'; describe('Pagination', function () { it('Should have class', function () { let instance = ReactTestUtils.renderIntoDocument( <Pagination>Item content</Pagination> ); assert....
src/svg-icons/action/loyalty.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLoyalty = (props) => ( <SvgIcon {...props}> <path d="M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86....
src/components/video_list_item.js
liyan90s/react-redux-funtime
import React from 'react'; const VideoListItem = (props) => { return ( <li className="list-group-item" onClick={() => props.onSelect(props.video)}> <div className="media"> <div className="media-left"> <img src={props.video.snippet.thumbnails.default.url} className="media-object" /> ...
src/index.js
jnwelzel/snap-canvas
import React from 'react' import ReactDOM from 'react-dom' import App from './App' import './index.css' ReactDOM.render( <App />, document.getElementById('root') )
node_modules/rx/dist/rx.compat.js
tgoettel9401/Homepage-Schachclub-Niedermohr
// Copyright (c) Microsoft, All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'function': true, 'object': true }; function checkGlobal(value) { return (value && value.Object === Object) ? value : null; } var freeExpor...
packages/material-ui/src/Grid/Grid.js
allanalexandre/material-ui
// A grid component using the following libs as inspiration. // // For the implementation: // - http://v4-alpha.getbootstrap.com/layout/flexbox-grid/ // - https://github.com/kristoferjoseph/flexboxgrid/blob/master/src/css/flexboxgrid.css // - https://github.com/roylee0704/react-flexbox-grid // - https://material.angula...
src/pages/chart/Recharts/Container.js
zuiidea/antd-admin
import React from 'react' import PropTypes from 'prop-types' import { ResponsiveContainer } from 'recharts' import styles from './Container.less' const Container = ({ children, ratio = 5 / 2, minHeight = 250, maxHeight = 350, }) => ( <div className={styles.container} style={{ minHeight, maxHeight }}> <di...
ajax/libs/react/0.5.2/react-with-addons.min.js
jmusicc/cdnjs
/** * React (with addons) v0.5.2 * * Copyright 2013 Facebook, Inc. * * 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 require...
src/containers/DevToolsWindow.js
MaayanLab/L1000
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; export default createDevTools( <LogMonitor /> );
App/node_modules/react-native/Libraries/Image/Image.ios.js
Dagers/React-Native-Differential-Updater
/** * Copyright (c) 2015-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. * * @provides...
local-cli/templates/HelloNavigation/views/welcome/WelcomeText.ios.js
doochik/react-native
'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; export default class WelcomeText extends Component { render() { return ( <View style={styles.container}> <Text style={styles.welcome}> Welcome to React Native! </...
geonode/monitoring/frontend/monitoring/src/components/organisms/most-active-ips/index.js
francbartoli/geonode
/* ######################################################################### # # Copyright (C) 2019 OSGeo # # 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 3 of the License, or # ...
ajax/libs/forerunnerdb/1.3.712/fdb-core+views.min.js
redmunds/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...
docs/src/app/components/pages/components/Card/ExampleExpandable.js
pancho111203/material-ui
import React from 'react'; import {Card, CardActions, CardHeader, CardText} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; const CardExampleExpandable = () => ( <Card> <CardHeader title="Without Avatar" subtitle="Subtitle" actAsExpander={true} showExpandableButt...