path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
ajax/libs/yui/3.14.0/event-focus/event-focus.js
kevinburke/cdnjs
YUI.add('event-focus', function (Y, NAME) { /** * Adds bubbling and delegation support to DOM events focus and blur. * * @module event * @submodule event-focus */ var Event = Y.Event, YLang = Y.Lang, isString = YLang.isString, arrayIndex = Y.Array.indexOf, useActivate = (function() { ...
vendor/packages/mock-1.0.1/html/_static/jquery.js
lgp171188/fjord
/*! * jQuery JavaScript Library v1.4.2 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
src/components/AddTodo.js
gsans/todo-react
import React from 'react' export default class AddTodo extends React.Component { _onSubmit () { this.props.addTodo(this.input.value) this.input.value = '' } render () { return ( <div> <input ref={node => (this.input = node)} /> <button onClick={e => this._onSubmit()}> ...
src/svg-icons/navigation/apps.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationApps = (props) => ( <SvgIcon {...props}> <path d="M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"/> </SvgIcon> ...
src/components/control-bar/FullscreenToggle.js
video-react/video-react
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import classNames from 'classnames'; const propTypes = { actions: PropTypes.object, player: PropTypes.object, className: PropTypes.string }; export default class FullscreenToggle extends Component { constructor(props, context) { ...
node_modules/material-ui/lib/svg-icons/action/card-membership.js
aykutyaman/meteor1.3-react-flowrouter-demo
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _reactAddonsPureRenderMixin = require('react-addons-pure-render-mixin'); var _reactAddonsPureRenderMixin2 = _interopRequireDefault(_reactAddonsPureRenderMi...
definitions/npm/styled-components_v3.x.x/flow_v0.104.x-/test_styled-components_v3.x.x.js
splodingsocks/FlowTyped
// @flow import {renderToString} from 'react-dom/server' import styled, { css, ThemeProvider, withTheme, keyframes, ServerStyleSheet, StyleSheetManager } from 'styled-components' import React from 'react' import type { Theme, Interpolation, ReactComponentFunctional, ReactComponentFunctionalUndefined...
vertex_ui/src/components/Navbar/components/Menu/Menu.js
zapcoop/vertex
import React from 'react'; import { PropTypes } from 'prop-types'; import { NavDropdown, Row, Col, Navbar, Nav } from 'components'; import classNames from 'classnames'; import updateChildElementOfType from './../../../utils/updateChildElementOfType'; import classes from './Menu.scss'; class Menu extends React.Compon...
ajax/libs/onsen/1.3.14/js/onsenui.js
calebmer/cdnjs
/*! onsenui - v1.3.14 - 2015-11-24 */ // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // JavaScript Dynamic Content shim for Windows Store apps (function () { if (window.MSApp && ...
node_modules/react-icons/io/ios-location.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const IoIosLocation = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m19.8 2.5c6.2 0 11.2 5 11.2 11.3 0 8.7-11.2 23.7-11.2 23.7s-11.3-15-11.3-23.7c0-6.3 5-11.3 11.3-11.3z m0 14.9c2 0 3.6-1.6 3.6-3.6s-1.6-3.7-3.6-3.7-3.7 1.6-3.7 3.7...
src/svg-icons/av/featured-video.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFeaturedVideo = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 9H3V5h9v7z"/> </SvgIcon> ); AvFeaturedVideo = pure(AvFeaturedVideo)...
js/ClientApp.js
aramay/complete-intro-to-react-v2
import React from 'react' import { render } from 'react-dom' import { BrowserRouter, Match } from 'react-router' import { Provider } from 'react-redux' import store from './store' import Landing from './Landing' import Search from './Search' import Details from './Details' import '../public/normalize.css' import '../pu...
src/Index.js
abhas9/sachinspace
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route } from 'react-router'; import App from './components/App'; window.React = React; ReactDOM.render( <Router> <Route path="/" component={App}></Route> </Router> , document.getElementById('app') );
app/core_modules/ext/resources/ext-3.4.0/examples/ux/ux-all-debug.js
chisimba/chisimba
/*! * Ext JS Library 3.4.0 * Copyright(c) 2006-2011 Sencha Inc. * licensing@sencha.com * http://www.sencha.com/license */ Ext.ns('Ext.ux.grid'); /** * @class Ext.ux.grid.BufferView * @extends Ext.grid.GridView * A custom GridView which renders rows on an as-needed basis. */ Ext.ux.grid.BufferView = Ext.extend...
packages/material-ui-icons/src/LocalMovies.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z" /> , 'LocalMovies');
test/FadeSpec.js
HPate-Riptide/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react-addons-test-utils'; import ReactDOM from 'react-dom'; import Fade from '../src/Fade'; describe('Fade', () => { let Component, instance; beforeEach(() => { Component = React.createClass({ render() { let { children, ...props } = this....
src/main/resources/code/react/Apps/Admin/AdminApp.js
artieac/technologyradar
'use strict' import jQuery from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import Reflux from 'reflux'; import { combineReducers, createStore, applyMiddleware } from 'redux'; import thunk from 'redux-thunk' import { Provider } from 'react-redux'; import { BrowserRouter as Router, Route, Link...
packages/reactor-kitchensink/src/examples/Panels/CollapsiblePanel/CollapsiblePanel.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import { Container, Panel } from '@extjs/ext-react'; import { mediumText } from '../../dummy'; Ext.require('Ext.panel.Collapser'); export default class CollapsibleExample extends Component { render() { return ( <Container padding={Ext.os.is.Phone ? 0 ...
ajax/libs/onsen/1.3.2/js/onsenui_all.min.js
wout/cdnjs
/*! onsenui - v1.3.2 - 2015-05-12 */ !function(){function getAttributes(element){return Node_get_attributes.call(element)}function setAttribute(element,attribute,value){try{Element_setAttribute.call(element,attribute,value)}catch(e){}}function removeAttribute(element,attribute){Element_removeAttribute.call(element,attr...
ajax/libs/yui/3.18.0/datatable-core/datatable-core.js
wackyapples/cdnjs
YUI.add('datatable-core', function (Y, NAME) { /** The core implementation of the `DataTable` and `DataTable.Base` Widgets. @module datatable @submodule datatable-core @since 3.5.0 **/ var INVALID = Y.Attribute.INVALID_VALUE, Lang = Y.Lang, isFunction = Lang.isFunction, isObject = Lang.isO...
src/components/chat/ChatInput.js
ffossum/gamesite3-client
/* @flow */ import React from 'react'; type Props = { sendMessage: (text: string) => void, disabled?: boolean, disabledPlaceholder?: string, }; type State = { text: string, }; export default class ChatInput extends React.Component<Props, State> { state = { text: '', }; handleChange = (e: SyntheticIn...
frontend/src/signup/components/ProgressSteps.js
rabblerouser/core
import React from 'react'; import { connect } from 'react-redux'; import { getProgress } from '../reducers'; import DetailsForm from './DetailsForm'; import Finished from './Finished'; const steps = [ null, <DetailsForm />, <Finished />, ]; export const ProgressSteps = ({ currentStep }) => steps[currentStep]; ...
ajax/libs/golden-layout/1.5.3/goldenlayout.js
maruilian11/cdnjs
(function($){var lm={"config":{},"controls":{},"errors":{},"utils":{},"items":{},"container":{}}; lm.utils.F = function () {}; lm.utils.extend = function( subClass, superClass ) { subClass.prototype = lm.utils.createObject( superClass.prototype ); subClass.prototype.contructor = subClass; }; lm.utils.createObject...
app/components/App.js
xiamu14/newdenfaces
import React from 'react'; import { RouteHandler } from 'react-router'; import Navbar from './Navbar' import Footer from './Footer'; class App extends React.Component { render() { return ( <div> <Navbar /> <RouteHandler /> <Footer /> ...
docs/src/app/components/pages/components/List/ExampleMessages.js
owencm/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import Divider from 'material-ui/Divider'; import Subheader from 'material-ui/Subheader'; import Avatar from 'material-ui/Avatar'; import {grey400, darkBlack, lightBlack} from 'material-ui...
ajax/libs/forerunnerdb/1.3.38/fdb-core+persist.min.js
him2him2/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...
zoho-experiments/app/i18n.js
glandre/prototypes
/** * i18n.js * * This will setup the i18n language files and locale data for your app. * */ import { addLocaleData } from 'react-intl'; import enLocaleData from 'react-intl/locale-data/en'; import deLocaleData from 'react-intl/locale-data/de'; import { DEFAULT_LOCALE } from '../app/containers/App/constants'; im...
demo/dynamic-bar.js
joelburget/d4
import Immutable from 'immutable'; import React from 'react'; import {scaleLinear} from 'd3-scale'; import preData from 'dsv?delimiter=\t!../data/bar.tsv'; import uuid from 'uuid'; const width = 960; const height = 500; // coerce value to number const data = Immutable.OrderedMap( preData.map(({name, value}) => [nam...
src/components/Fade.js
shoegazer/shuffly-now
import React from 'react' import {CSSTransition} from 'react-transition-group' export default ({children, ...props}) => ( <CSSTransition {...props} appear={true} timeout={1000} in={true} classNames="fade" > {children} </CSSTransition> )
jspm_packages/npm/react-router@2.6.1/lib/RoutingContext.js
Imms/imms.github.io
/* */ (function(process) { 'use strict'; exports.__esModule = true; var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _RouterContext = require('./RouterContext'); var _RouterContext2 = _interopRequireDefault(_RouterContext); var _routerWarning = require('./routerWarning'); ...
src/client/main.js
hsrob/league-este
import React from 'react'; import Router from 'react-router'; import routes from './routes'; const app = document.getElementById('app'); const initialState = window._initialState; Router.run(routes, Router.HistoryLocation, (Handler) => { React.render(<Handler initialState={initialState} />, app); });
src/components/PlaylistManager/Menu/PlaylistImportRow.js
u-wave/web
import cx from 'clsx'; import React from 'react'; import PropTypes from 'prop-types'; import { useTranslator } from '@u-wave/react-translate'; import CircularProgress from '@mui/material/CircularProgress'; import MenuItem from '@mui/material/MenuItem'; import ImportIcon from '@mui/icons-material/Input'; function Playl...
ajax/libs/react-virtualized/7.22.1/react-virtualized.js
dlueth/cdnjs
!function(root, factory) { "object" == typeof exports && "object" == typeof module ? module.exports = factory(require("React"), require("React.addons.shallowCompare"), require("ReactDOM")) : "function" == typeof define && define.amd ? define([ "React", "React.addons.shallowCompare", "ReactDOM" ], factory) : "object...
app/javascript/mastodon/components/missing_indicator.js
tri-star/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import illustration from 'mastodon/../images/elephant_ui_disappointed.svg'; import classNames from 'classnames'; const MissingIndicator = ({ fullPage }) => ( <div className={classNames('regeneration-indicato...
www/js/jquery-1.10.2.min.js
borget/phonejs-kitchensink-demo
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery-1.10.2.min.map */ (function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b...
ajax/libs/redux-form/3.0.0-beta-1/redux-form.js
emmy41124/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["ReduxForm"] = facto...
ajax/libs/reactive-coffee/1.1.0/reactive-coffee.js
mzdani/cdnjs
(function() { var rxFactory, __slice = [].slice, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = ne...
ajax/libs/babel-core/5.6.11/browser-polyfill.min.js
bspaulding/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/seamless-immutable/6.2.0/seamless-immutable.development.js
maruilian11/cdnjs
(function() { "use strict"; // 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; function addPropertyTo(target, method...
src/grid/Row.js
fengshanjian/react-native-komect-uikit
import PropTypes from 'prop-types'; import React from 'react'; import { View, StyleSheet, TouchableOpacity } from 'react-native'; const Row = props => { const { containerStyle, size, onPress, activeOpacity } = props; const styles = StyleSheet.create({ container: { flex: size ? size : containerStyle && c...
app/js/components/map/PlaceSearchDialog.js
jayeeeeee/trip-planner
import React from 'react'; import Dialog from 'material-ui/dialog'; import PlaceSearchBoxContainer from '../../containers/PlaceSearchBoxContainer'; const PlaceSearchDialog = ({ open, close }) => ( <Dialog modal={false} open={open} onRequestClose={close} > <PlaceSearchBoxContainer /> </Dialog> ) ...
static/js/jquery-1.11.1.min.js
ebeckm/Flask_bootstrap_starterkit
/*! 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...
addons/themes/strata/layouts/Single.js
rendact/rendact
import $ from 'jquery' import React from 'react'; import gql from 'graphql-tag'; import {graphql} from 'react-apollo'; import moment from 'moment'; import {Link} from 'react-router'; import scrollToElement from 'scroll-to-element'; let Single = React.createClass({ componentDidMount(){ require('../assets/css/mai...
src/shared/components/authenticatedRoute/authenticatedRoute.js
tskuse/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import { Route, Redirect } from 'react-router-dom'; const AuthenticatedRoute = (props) => { if (!props.isLoggedIn) { return <Redirect to="/login" />; } return <Route component={props.component} {...props} />; }; AuthenticatedRoute.propTypes = { ...
ajax/libs/zeroclipboard/2.0.3/ZeroClipboard.js
pc035860/cdnjs
/*! * ZeroClipboard * The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface. * Copyright (c) 2014 Jon Rohan, James M. Greene * Licensed MIT * http://zeroclipboard.org/ * v2.0.3 */ (function(window, undefined) { "use strict";...
ajax/libs/preact/8.3.0/preact.dev.js
sufuf3/cdnjs
(function () { 'use strict'; var VNode = function VNode() {}; var options = {}; var stack = []; var EMPTY_CHILDREN = []; function h(nodeName, attributes) { var children = EMPTY_CHILDREN, lastSimple, child, simple, i; for (i = arguments.length; i-- > 2;) { stac...
packages/bulkhead/src/Component.js
nkbt/react-works
import React from 'react'; import PropTypes from 'prop-types'; import shallowEqual from './shallowEqual'; export class ReactBulkhead extends React.Component { static defaultProps = { element: 'div', propsWhitelist: ['id', 'className', 'style'], children: null }; static propTypes = { element: P...
native-base-theme/components/CardItem.js
bsusta/HelpdeskAppTemplate
import { Platform } from 'react-native'; import _ from 'lodash'; import variable from './../variables/platform'; export default (variables = variable) => { const platformStyle = variables.platformStyle; const platform = variables.platform; const cardItemTheme = { 'NativeBase.Left': { 'NativeBase....
src/svg-icons/file/cloud-download.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileCloudDownload = (props) => ( <SvgIcon {...props}> <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-...
geonode/monitoring/frontend/src/pages/home/index.js
mcldev/geonode
import React from 'react'; import HoverPaper from '../../components/atoms/hover-paper'; import Map from '../../components/atoms/map'; import Header from '../../components/organisms/header'; import Stats from '../../components/organisms/stats'; import SoftwarePerformance from '../../components/organisms/software-perform...
src/no-redux/FormBuilder.js
fourlabsldn/fl-form-builder
import React from 'react'; import ControlBar from './ControlBar'; import Fields from './Fields'; import assert from 'fl-assert'; import FieldCreatorPropType from './default-fields/FieldCreatorPropType'; import EventHub from './EventHub'; const createId = () => Date.now(); export default class FormBuilder extends Rea...
test/specs/modules/Transition/Transition-test.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { SUI } from 'src/lib' import Transition from 'src/modules/Transition/Transition' import TransitionGroup from 'src/modules/Transition/TransitionGroup' import { TRANSITION_STATUS_ENTERED, TRANSITION_STATUS_ENTERING, TRANSITION_STATUS_EXITED, TRANSITION_STATUS_EXITING, TRANSITI...
src/components/ReplEntryMessage.js
princejwesley/Mancy
import React from 'react'; import {EOL} from 'os'; import ReplCommon from '../common/ReplCommon'; import ReplConstants from '../constants/ReplConstants'; export default class ReplEntryMessage extends React.Component { constructor(props) { super(props); } getTimeStr(v, u) { return v ? `${v}${u}` : null; ...
src/svg-icons/device/battery-alert.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryAlert = (props) => ( <SvgIcon {...props}> <path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4zM13 18h-2v-2h2v2zm0...
src/components/header/index.js
eNdiD/wl_test_frontend
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; class Header extends Component { render() { return ( <div className='navbar navbar-inverse navbar-static-top'> <div className='container'> <div className='navbar-header'> ...
webpack/components/AnsibleRolesAndVariables/AnsibleRolesAndVariablesActions.js
theforeman/foreman_ansible
import React from 'react'; import { translate as __ } from 'foremanReact/common/I18n'; import { post } from 'foremanReact/redux/API'; import { push } from 'connected-react-router'; import { prepareResult } from './AnsibleRolesAndVariablesHelpers'; import { IMPORT_ANSIBLE_V_R, ANSIBLE_ROLE_CONFIRM_IMPORT_PATH, ANS...
node_modules/material-ui/svg-icons/social/sentiment-dissatisfied.js
cstapler/destinationGraduation
'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...
app/components/TabContainer/index.js
JSSolutions/Perfi
import React from 'react'; import T from 'prop-types'; import { StyleSheet, View } from 'react-native'; const s = StyleSheet.create({ container: { position: 'absolute', top: 0, bottom: 0, }, show: { left: 0, right: 0, }, hide: { left: 90000, // over the screen, right: -90000, // o...
src/svg-icons/action/shopping-basket.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionShoppingBasket = (props) => ( <SvgIcon {...props}> <path d="M17.21 9l-4.38-6.56c-.19-.28-.51-.42-.83-.42-.32 0-.64.14-.83.43L6.79 9H2c-.55 0-1 .45-1 1 0 .09.01.18.04.27l2.54 9.27c.23.84 1 1.46 1.92 1.46h1...
src/shared/components/activity/ActivityPage.js
sbekti/path-web-client
import React from 'react' import ReactDOM from 'react-dom' import { Link } from 'react-router' import request from 'superagent' import MomentJS from 'moment' class ActivityPage extends React.Component { constructor(props) { super(props) this.state = { activities: [], locations: {}, users:...
www/frontSrc/Header/Icons/PollerIcon.js
jben94/centreon
import React from 'react' import SvgIcon from '@material-ui/core/SvgIcon' const PollerIcon = (props) => ( <SvgIcon {...props}> <path d="M416.8,675.1c-6.4,0-27.3,0-31,0c-3.6,0-6.4,2-6.4,7.3l0,19.4H101.6V209.7h277.9V398 c0,7.2,5.8,8.7,8.9,8.7c4.1-0.1,16.2-0.1,23.6-0.1c4.7,0,12,1.1,12-8.1V176c0-7-5.7-12.8-12.8...
src/components/testing.js
ProjectSunday/rooibus
import React from 'react' import * as Actions from '../actions/actions' class Testing extends React.Component { test1Clicked = () => { Actions.test1() } test2Clicked = () => { Actions.test2() } render() { return ( <div> {/*<div className="testing...
src/components/app.js
schesnowitz/react-redux
import React, { Component } from 'react'; import BookList from '../containers/book-list'; export default class App extends Component { render() { return ( <div> <BookList /> </div> ); } }
example/NodeViewer.js
alexcurtis/react-treebeard
import React from 'react'; import PropTypes from 'prop-types'; import {Div} from '../src/components/common'; import styles from './styles'; const HELP_MSG = 'Select A Node To See Its Data Structure Here...'; const NodeViewer = ({node}) => { const style = styles.viewer; let json = JSON.stringify(node, null, 4...
src/components/Admin/Gallery/GalleryImage.js
n3ssi3/liveaboard-express
import React from 'react' import PropTypes from 'prop-types' import Image from '../../Image/Image' import FieldGroup from '../../Form/FieldGroup' import './Gallery.css' const GalleryImage = (props) => { let image = props.image return ( <div className='clearfix range range-xs-center'> <div className='cel...
ajax/libs/react-bootstrap-table/2.5.4/react-bootstrap-table.js
seogi1004/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...
packages/icons/src/md/hardware/LaptopWindows.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdLaptopWindows(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M40 37h8v4H0v-4h8v-2c-2.21 0-4-1.79-4-4V11c0-2.21 1.79-4 4-4h32c2.21 0 4 1.79 4 4l-.02 20c0 2.21-1.77 4-3.98 4v2zM8 11v20h32V11H8z" /> </Ic...
apps/marketplace/components/BuyerDashboard/BuyerDashboardDraftBriefs.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' import PropTypes from 'prop-types' import BuyerDashboardBriefTable from './BuyerDashboardBriefTable' const BuyerDashboardDraftBriefs = props => ( <BuyerDashboardBriefTable status={'draft'} additionalColumns={{ headers: [], columns: [] }} dashboardLoaded={bc => pr...
public/controllers/management/components/management/ruleset/ruleset-filter-bar.js
wazuh/wazuh-kibana-app
/* * Wazuh app - React component for registering agents. * Copyright (C) 2015-2022 Wazuh, Inc. * * 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 ...
example/__tests__/index.android.js
windwang/react-native-calendar-view
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 /> ); });
src/index.js
e-Ray/web_platform
import React from 'react'; import ReactDOM from 'react-dom'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import App from './ui/pages'; import './main.css'; function app() { return ( <MuiThemeProvider> <App /> </MuiThemeProvider> ); } ReactDOM.render(app(), document.getElem...
web/client/src/frames/Frame.js
ido-ran/ran-smart-frame2
import React, { Component } from 'react'; import { connect } from 'react-redux' import {bindActionCreators} from 'redux'; import { List, ListItem, ListItemText } from '@material-ui/core'; import Checkbox from '@material-ui/core/Checkbox'; import { withStyles } from '@material-ui/core/styles'; import Avatar from '@mate...
user_guide/template/js/jquery.min.js
toaicntt/base
/*! * jQuery JavaScript Library v1.4.2 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
app/javascript/mastodon/components/load_gap.js
Kirishima21/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, defineMessages } from 'react-intl'; import Icon from 'mastodon/components/icon'; const messages = defineMessages({ load_more: { id: 'status.load_more', defaultMessage: 'Load more' }, }); export default @injectIntl class LoadGap exte...
packages/react-error-overlay/src/containers/StackTrace.js
Clearcover/web-build
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React, { Component } from 'react'; import StackFrame from './StackFrame'; import Collapsible from '../components/Coll...
src/packages/recompose/__tests__/onlyUpdateForKeys-test.js
acdlite/recompose
import React from 'react' import { mount } from 'enzyme' import sinon from 'sinon' import { onlyUpdateForKeys, compose, withState } from '../' test('onlyUpdateForKeys implements shouldComponentUpdate()', () => { const component = sinon.spy(() => null) component.displayName = 'component' const Counter = compose(...
app/javascript/mastodon/features/ui/components/media_modal.js
tootcafe/mastodon
import React from 'react'; import ReactSwipeableViews from 'react-swipeable-views'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Video from 'mastodon/features/video'; import classNames from 'classnames'; import { defineMessages, injectIntl } from 'react-intl'; i...
src/components/ControlPanel/EditorPanel.js
bocasfx/Q
import React from 'react'; import './EditorPanel.css'; import { connect } from 'react-redux'; import NodePanel from './NodePanel'; import StreamPanel from './Stream/StreamPanel'; import { getSelectedElements } from '../../utils/utils'; import PropTypes from 'prop-types'; class EditorPanel extends React.Component { s...
src/routes/Counter/components/Counter.js
pachoulie/projects
import React from 'react'; export const Counter = (props) => ( <div style={{ margin: '0 auto' }} > <h2>Counter: {props.counter}</h2> <button className='btn btn-default' onClick={props.increment}> Increment </button> {' '} <button className='btn btn-default' onClick={props.doubleAsync}> ...
app/components/Navigator.js
wanbinkimoon/wordlift-playground
import React from 'react'; import Radium from 'radium'; import color from 'color'; import Article from './Navigator/Article'; @Radium export default class Navigator extends React.PureComponent { render() { return ( <div style={ [ styles.base, styles[this.props.kin...
vendor/coresphere/console-bundle/Resources/public/js/jquery-1.8.3.min.js
Faramad/EROE
/*! jQuery v1.8.3 jquery.com | jquery.org/license */ (function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===...
src/upload-field.js
navjobs/upload
import React from 'react'; export default class UploadField extends React.Component { constructor() { super(); this.state = {}; } render() { let { hover } = this.state; let { children, uploadProps, containerProps, onFiles, onChange, } = this.props; let handle...
src/components/viewer3d/viewer3d.js
dearkaran/react-planner
"use strict"; import React from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import * as Three from 'three'; import {parseData, updateScene} from './scene-creator'; import {disposeScene} from './three-memory-cleaner'; import OrbitControls from './libs/orbit-controls'; import diff from...
src/svg-icons/image/brightness-6.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrightness6 = (props) => ( <SvgIcon {...props}> <path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6 6z"/>...
vendor/jquery/jquery.min.js
lexieernst/lexieernst.github.io
/*! jQuery v1.12.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,fu...
ajax/libs/highmaps/1.0.3/highcharts.src.js
aashish24/cdnjs
// ==ClosureCompiler== // @compilation_level SIMPLE_OPTIMIZATIONS /** * @license Highcharts JS v4.0.3 (2014-07-03) * * (c) 2009-2014 Torstein Honsi * * License: www.highcharts.com/license */ // JSLint options: /*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout...
ajax/libs/babel-core/5.4.1/browser-polyfill.min.js
stefanneculai/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/material-ui/5.0.0-alpha.4/esm/CardMedia/CardMedia.min.js
cdnjs/cdnjs
import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutProperties from"@babel/runtime/helpers/esm/objectWithoutProperties";import*as React from"react";import PropTypes from"prop-types";import clsx from"clsx";import{chainPropTypes}from"@material-ui/utils";import withStyles from"../styles/withStyle...
client/trello/src/app/components/Notification/Notification.js
Madmous/Trello-Clone
import React from 'react'; import PropTypes from 'prop-types'; import './Notification.css'; const propTypes = { errorMessages: PropTypes.array.isRequired } export default function Notification(props) { const renderErrorMessages = () => { const { errorMessages } = props; let messages = null; message...
src/app.js
elstgav/stair-climber
import React from 'react' import routes from './routes' import { render } from 'react-dom' import { Router, browserHistory } from 'react-router' import { DataWrapper } from 'src/components' const data = JSON.parse(document.getElementById('data').innerHTML) const dest = document.getElementById('app') render(( <DataW...
src/components/Badge/__tests__/Badge.spec.js
propertybase/react-lds
import React from 'react'; import { shallow } from 'enzyme'; import Badge from '../Badge'; describe('<Badge />', () => { let mounted = null; beforeEach(() => { mounted = shallow(<Badge>Foo</Badge>); }); it('renders a label', () => { expect(mounted.hasClass('slds-badge')).toBeTruthy(); expect(mou...
__tests__/components/DateTime-test.js
linde12/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React from 'react'; import renderer from 'react-test-renderer'; import DateTime from '../../src/js/components/DateTime'; // needed because this: // https://github.com/facebook/jest/issues/1353 jest.mock('react-dom'); describe('DateTime', ()...
Examples/ForTest/App.js
ksti/react-native-utils
import React, { Component } from 'react'; import {AppState} from 'react-native'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware, combineReducers } from 'redux'; import thunk from 'redux-thunk'; import * as reducers from './src/reduxDataFlow/reducers'; import AppRoot from './AppRoot'; i...
node_modules/react-icons/md/headset-mic.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdHeadsetMic = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m20 1.6c8.3 0 15 6.8 15 15v16.8c0 2.7-2.3 5-5 5h-10v-3.4h11.6v-1.6h-6.6v-13.4h6.6v-3.4c0-6.4-5.1-11.6-11.6-11.6s-11.6 5.2-11.6 11.6v3.4h6.6v13.4h-5c-2.7 0-5-2.3-5-...
src/js/components/hex-tile.js
talldan/hex-demo-motion
import React, { Component } from 'react'; import { Shape } from 'react-art'; import { Spring } from 'react-motion'; import { makeHexPath } from '../utils/hex-layout'; export default class HexTile extends Component { constructor(props) { super(props); this.state = { isSelected: false }; } handl...
node_modules/react-icons/md/tonality.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdTonality = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m32.9 23.4c0.1-0.6 0.2-1.2 0.3-1.8h-11.6v1.8h11.3z m-2.5 5c0.4-0.6 0.9-1.2 1.2-1.8h-10v1.8h8.8z m-8.8 4.8c1.8-0.2 3.4-0.8 4.9-1.6h-4.9v1.6z m0-16.6v1.8h11.6c-0.1-0.6...
docs/src/components/GithubButtonWithCount.js
Gisto/Gisto
import React from 'react'; import PropTypes from 'prop-types'; const GithubButtonWithCount = ({ user, repo, type, count }) => ( <iframe title={ type } src={ `https://ghbtns.com/github-btn.html?user=${user}&repo=${repo}&type=${type}&count=${count}` } allowTransparency="true" frameBorder="0" scro...
src/svg-icons/image/looks-5.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooks5 = (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-4 6h-4v2h2c1.1 0 2 .89 2 2v2c0 1.11-.9 2-2 2H9v-2h4v-2H9V7h6v2z"/> </SvgI...
src/js/components/devices/base-devices.js
michaelatmender/gui
import React from 'react'; import { Link } from 'react-router-dom'; import pluralize from 'pluralize'; import preauthImage from '../../../assets/img/preauthorize.png'; import { DEVICE_STATES } from '../../constants/deviceConstants'; import Time, { RelativeTime } from '../common/time'; import DeviceStatus from './devi...
src/shared/components/NotificationIcon.js
devteamreims/4me.react
import React from 'react'; import Badge from 'material-ui/Badge'; import { info, warning, critical, } from '../theme/colors'; const badgeStyles = { info: { backgroundColor: info, fontWeight: 'bold', }, warning: { backgroundColor: warning, fontWeight: 'bolder', }, critical: { backg...