path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
src/icons/NavigationIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class NavigationIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M24 4L9 40.59 10.41 42 24 36l13.59 6L39 40.59z"/></svg>;} };
src/ModalDialog.js
egauci/react-bootstrap
/* eslint-disable react/prop-types */ import React from 'react'; import classNames from 'classnames'; import tbsUtils, { bsClass, bsSizes } from './utils/bootstrapUtils'; import { Sizes } from './styleMaps'; const ModalDialog = React.createClass({ propTypes: { /** * A css class to apply to the Modal dialog...
src/docs/examples/MyHelloWorld/ExampleMyHelloWorld.js
Mikhail2k15/ps-react-michael
import React from 'react'; import MyHelloWorld from 'ps-react/MyHelloWorld'; export default function ExampleMyHelloWorld(){ return <MyHelloWorld message="Pluralsight viewers"/> }
packages/material-ui-icons/lib/Replay10Sharp.js
mbrookes/material-ui
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
src/core/client/base.js
mstriemer/usetopscore-widgets
import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import { ReduxAsyncConnect } from 'redux-async-connect'; export default function makeClient(routes, createStore) { const initialStateC...
ajax/libs/core-js/0.9.14/library.js
emmansun/cdnjs
/** * core-js 0.9.14 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 Denis Pushkarev */ !function(undefined){ 'use strict'; var __e = null, __g = null; /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /*****...
src/stories/index.js
mathworld-games/math-game-web
import React from 'react'; import {storiesOf} from '@storybook/react'; import {action} from '@storybook/addon-actions'; import {linkTo} from '@storybook/addon-links'; import {MemoryRouter} from 'react-router'; import Game from '../components/game-v.0.1/game/game'; import {Button, Welcome} from '@storybook/react/demo...
ajax/libs/forerunnerdb/1.4.3/fdb-legacy.min.js
emmy41124/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...
lib/ui/example/client/provider.js
enjoylife/storybook
import React from 'react'; import Preview from './preview'; import keycode from 'keycode'; import { EventEmitter } from 'events'; import parseKeyEvent from '../../src/libs/key_events'; import { Provider } from '../../src'; const id = 0; const style = { flex: 1, display: 'flex', alignItems: 'center', justifyCo...
ajax/libs/react/0.8.0/react-with-addons.min.js
SirenHound/cdnjs
/** * React (with addons) v0.8.0 * * 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...
react/components/Header.js
GeorgeGkas/web-class.gr
import React from 'react'; import Title from './Header/Title' import sidebarStore from './Container/Sidebar/SidebarStore.js'; export default class Header extends React.Component { render() { return ( <header id="app-bar"> <ul class="navbar-left col-xs-12 col-sm-4 col-md-3 col-lg-3" id="left-regio...
src/js/components/input/autocomplete/input_autocomplete.js
working-minds/realizejs
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from '../../../prop_types'; import $ from 'jquery'; import { autobind, mixin } from '../../../utils/decorators'; import { InputAutocompleteSelect, InputAutocompleteResult, InputAutocompleteValues, } from '../../../components/input/auto...
ajax/libs/angular-google-maps/1.0.15/angular-google-maps.js
Olical/cdnjs
/*! angular-google-maps 1.0.15 2014-03-05 * AngularJS directives for Google Maps * git: https://github.com/nlaplante/angular-google-maps.git */ /* Author Nick McCready Intersection of Objects if the arrays have something in common each intersecting object will be returned in an new array. */ (functio...
src/Badge.js
HPate-Riptide/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils'; // TODO: `pullRight` doesn't belong here. There's no special handling here. const propTypes = { pullRight: React.PropTypes.bool, }; const defaultProps = { pullRight: false...
js/components/common/email-input/index.js
justarrived/p2p-client
import React, { Component } from 'react'; import { StyleSheet } from 'react-native'; import { Item, Label, Input } from 'native-base'; import styles from './style'; import I18n from '../../../i18n'; export default class EmailInput extends Component { static propTypes = { title: React.PropTypes.string, onChan...
.eslintrc.js
conorhastings/react-syntax-highlighter
module.exports = { env: { browser: true, es2020: true }, extends: [ 'eslint:recommended', 'plugin:react/recommended', 'plugin:prettier/recommended', 'plugin:jest/recommended' ], parser: 'babel-eslint', parserOptions: { ecmaFeatures: { jsx: true }, ecmaVersion: 11, ...
src/svg-icons/action/offline-pin.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionOfflinePin = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm5 16H7v-2h10v2zm-6.7-4L7 10.7l1.4-1.4 1.9 1.9 5.3-5.3L17 7.3 10.3 14z"/> </SvgIcon> ...
modules/__tests__/transitionHooks-test.js
barretts/react-router
/*eslint-env mocha */ /*eslint react/prop-types: 0*/ import expect, { spyOn } from 'expect' import React from 'react' import createHistory from 'history/lib/createMemoryHistory' import execSteps from './execSteps' import Router from '../Router' describe('When a router enters a branch', function () { let node, Dashb...
ajax/libs/material-ui/5.0.0-alpha.23/FormControl/FormControlContext.min.js
cdnjs/cdnjs
import*as React from"react";const FormControlContext=React.createContext();"production"!==process.env.NODE_ENV&&(FormControlContext.displayName="FormControlContext");export function useFormControl(){return React.useContext(FormControlContext)};export default FormControlContext;
src/screens/authorized/home/chat/ViewChat.js
anhtuank7c/simple-chat
import React, { Component } from 'react'; import { View, Text } from 'react-native'; class ViewContact extends Component { render() { return ( <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center', }}> ...
src/svg-icons/device/sd-storage.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSdStorage = (props) => ( <SvgIcon {...props}> <path d="M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 6h-2V4h2v4zm3 0h-2V4h2v4zm3 0h-2V4h2v4z"/> </SvgIcon> ); DeviceSdStorage ...
src/web/forms/fields/AttachmentViewer/ImageModal.js
asha-nepal/AshaFusionCross
/** * Copyright 2017 Yuichiro Tsuchiya * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
js/fw/MainController.js
leftstick/react-lesson
'use strict'; import React from 'react'; import Dashboard from './Dashboard'; import Lesson1 from '../lessons/lesson1/index'; import Lesson2 from '../lessons/lesson2/index'; import Lesson3 from '../lessons/lesson3/index'; import Lesson4 from '../lessons/lesson4/index'; import Lesson5 from '../lessons/lesson5/index'; i...
examples/src/components/Virtualized.js
glowka/react-select
import React from 'react'; import VirtualizedSelect from 'react-virtualized-select'; const DATA = require('../data/cities'); var CitiesField = React.createClass({ displayName: 'CitiesField', getInitialState () { return {}; }, updateValue (newValue) { this.setState({ selectValue: newValue }); }, render ...
src/components/squads/squads-list.js
sunpietro/LeagueManager
import React, { Component } from 'react'; import { browserHistory } from 'react-router'; import DefaultLayout from '../layouts/default'; import WPAPI from '../../tools/wpapi'; import Season from '../form-elements/form-choices-seasons'; import Competition from '../form-elements/form-choices-competitions'; import Team fr...
public/jspm_packages/npm/react@0.13.3/dist/react.js
nayashooter/ES6_React-Bootstrap
/* */ "format cjs"; (function(process) { (function(f) { if (typeof exports === "object" && typeof module !== "undefined") { module.exports = f(); } else if (typeof define === "function" && define.amd) { define([], f); } else { var g; if (typeof window !== "undefined") { g ...
node_modules/react-bootstrap/es/SplitButton.js
cmccandless/SolRFrontEnd
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from...
src/redux/utils/createDevToolsWindow.js
harijoe/redux-shooting-stars
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import DevTools from '../../containers/DevToolsWindow'; export default function createDevToolsWindow (store) { const win = window.open( null, 'redux-devtools', // give it a name so it reuses the same window ...
sites/all/modules/jquery_update/replace/jquery/1.8/jquery.min.js
naveenreddyin/firangiland2
/*! 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===...
node_modules/lite-server/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
M-Roberts/fractal-tree
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/components/SelectItemGroup/SelectItemGroup-test.js
joshblack/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import SelectItemGroup from '../SelectItemGroup'; import { shallow } from 'enzyme'; describe('SelectItemGroup', (...
src/js/applets/settings.js
SpaceHexagon/pylon
import React from 'react'; import Applet from './applet.js'; export default class Settings extends Applet { constructor() { super(); // Initial state of the component this.state = { visible: true } } toggle (set) { this.setState({ visible: typeof(set.visible) != 'undefined' ? set.visible ...
generators/view/templates/class.js
jakubbilko/generator-alt
'use strict'; import React from 'react'; class <%= className %> extends React.Component { render() { return ( <div> <%= className %> </div> ); } } export default <%= className %>;
src/components/run.js
ArcanisCz/evolution-game
import React from 'react'; import ReactDOM from 'react-dom'; import App from './Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
frontend/src/containers/PatchWidget/PatchWidget.js
webrecorder/webrecorder
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { getRemoteArchiveStats } from 'store/selectors'; import { PatchWidgetUI } from 'components/controls'; class PatchWidget extends Component { static propTypes = { params: PropTypes.object...
Libraries/CustomComponents/Navigator/NavigatorBreadcrumbNavigationBar.js
ouyangwenfeng/react-native
/** * Copyright (c) 2015, Facebook, Inc. All rights reserved. * * Facebook, Inc. ("Facebook") owns all right, title and interest, including * all intellectual property and other proprietary rights, in and to the React * Native CustomComponents software (the "Software"). Subject to your * compliance with these t...
packages/core/admin/admin/src/layouts/UnauthenticatedLayout/index.js
wistityhq/strapi
import React from 'react'; import styled from 'styled-components'; import PropTypes from 'prop-types'; import { Box } from '@strapi/design-system/Box'; import { Flex } from '@strapi/design-system/Flex'; import LocaleToggle from './LocaleToggle'; const Wrapper = styled(Box)` margin: 0 auto; width: 552px; `; export...
stories/components/form/formCheckBox/index.js
hollomancer/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import FormCheckBox from 'shared/components/form/formCheckBox/formCheckBox'; storiesOf('shared/components/form/formCheckBox', module) .add('Default', () => ( <FormCheckBox name="che...
assets/jqwidgets/demos/react/app/rangeselector/timescale/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxRangeSelector from '../../../jqwidgets-react/react_jqxrangeselector.js'; class App extends React.Component { render() { return ( <JqxRangeSelector ref='myRangeSelector' width={750} height={10...
assets/javascripts/kitten/components/structure/carousels/nav-tab-carousel/components/next.js
KissKissBankBank/kitten
import React from 'react' import { StyledRightArrowContainer, StyledNextText, StyledArrowIcon, } from './styled-components' export const Next = ({ children, hoverColor }) => { return ( <StyledRightArrowContainer hoverColor={hoverColor} as="button" className="k-u-reset-button" > ...
node_modules/rx/dist/rx.all.js
Mohamed-Rajab-2112/Zahab-store-v1.0.0
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false }; v...
src/index.js
Korkemoms/amodahl.no
// @flow import React from 'react' import { render } from 'react-dom' import Root from './containers/Root' import 'bootstrap/dist/css/bootstrap.css' import 'font-awesome/css/font-awesome.css' import {offlineLogin} from './actions/Login' import configureStore from './store/configureStore' // $FlowFixMe const store = ...
src/components/common/svg-icons/content/remove-circle.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentRemoveCircle = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z"/> </SvgIcon> ); ContentRemoveCircle = pure(ContentRemoveCir...
src/routes/BlogRoute/components/BlogItemsPage.js
easingthemes/notamagic
import React from 'react'; import Blog from '../../../components/Blog'; export const BlogItemsPage = React.createClass({ componentWillMount () { const category = 7; if (!this.props.children) { this.props.fetchBlogItems(category); } }, render () { const posts = this.props.posts || {}; if (this.props.c...
ajax/libs/dc/2.0.0-alpha.4/dc.js
victorjonsson/cdnjs
/*! * dc 2.0.0-alpha.4 * http://dc-js.github.io/dc.js/ * Copyright 2012 Nick Zhu and other contributors * * 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.apac...
src/svg-icons/image/crop-din.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropDin = (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-2zm0 16H5V5h14v14z"/> </SvgIcon> ); ImageCropDin = pure(ImageCropDin); Image...
frontend/src/routes/MapView/MapChat/Message.js
metamaps/metamaps_gen002
import React from 'react' import Autolinker from 'autolinker' import Util from '../../../Metamaps/Util' const linker = new Autolinker({ newWindow: true, truncate: 50, email: false, phone: false }) function addZero(i) { if (i < 10) { i = '0' + i } return i } function formatDate(createdAt) { let date = new...
src/js/components/icons/base/PlatformSwift.js
odedre/grommet-final
/** * @description PlatformSwift SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. ...
ajax/libs/yui/3.10.0/event-custom-base/event-custom-base-debug.js
danut007ro/cdnjs
YUI.add('event-custom-base', function (Y, NAME) { /** * 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. * @mo...
node_modules/react-icons/md/question-answer.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdQuestionAnswer = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m28.4 20c0 0.9-0.8 1.6-1.8 1.6h-16.6l-6.6 6.8v-23.4c0-0.9 0.7-1.6 1.6-1.6h21.6c1 0 1.8 0.7 1.8 1.6v15z m6.6-10c0.9 0 1.6 0.7 1.6 1.6v25l-6.6-6.6h-18.4c-0.9 0-1...
src/svg-icons/action/settings-input-hdmi.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsInputHdmi = (props) => ( <SvgIcon {...props}> <path d="M18 7V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v3H5v6l3 6v3h8v-3l3-6V7h-1zM8 4h8v3h-2V5h-1v2h-2V5h-1v2H8V4z"/> </SvgIcon> ); ActionSettingsInputHd...
packages/component/src/Toast/CollapseIcon.js
billba/botchat
import PropTypes from 'prop-types'; import React from 'react'; const CollapseIcon = ({ className }) => ( <svg className={(className || '') + ''} height="9" viewBox="0 0 16 9" width="16" xmlns="http://www.w3.org/2000/svg"> <path d="M15.2734 8.97656L8 1.71094L0.726563 8.97656L0.0234375 8.27344L8 0.289062L15.9766 8...
zoho-experiments/app/components/Toggle/index.js
glandre/prototypes
/** * * LocaleToggle * */ import React from 'react'; import PropTypes from 'prop-types'; import Select from './Select'; import ToggleOption from '../ToggleOption'; function Toggle(props) { let content = (<option>--</option>); // If we have items, render them if (props.values) { content = props.values.map(...
src/Spring.js
danieldunderfelt/react-motion
import React from 'react'; import components from './components'; module.exports = components(React);
ajax/libs/flocks.js/0.14.7/flocks.min.js
MisatoTremor/cdnjs
if("undefined"===typeof h)var h=require("react"); (function(){function n(){return!0}function p(){return!0}function b(a,b){if("string"===typeof a)if(~"warn debug error log info exception assert".split(" ").indexOf(a,0))console[a]("Flocks2 ["+a+"] "+b.toString());else console.log("Flocks2 [Unknown level] "+b.toString());...
src/__tests__/Spinner-test.js
tleunen/react-mdl
/* eslint-env mocha */ import expect from 'expect'; import React from 'react'; import { render } from './render'; import Spinner from '../Spinner'; describe('Spinner', () => { it('should render a div with the spinner css classes', () => { const output = render(<Spinner value="1" />); expect(output...
src/components/styleguide/Styleguide.js
mailvelope/mailvelope-styleguide
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import logo from '../../img/maivelope-logo.svg'; import 'bootstrap/dist/css/bootstrap.css'; import '../../css/styleguide.css'; class Styleguide extends Component { render() { return ( <div className="styleguide"> <di...
entry_types/scrolled/package/spec/frontend/MediaInteractionTracking-spec.js
tf/pageflow
import React from 'react'; import {MediaInteractionTracking} from 'frontend/MediaInteractionTracking'; import {render, fireEvent} from '@testing-library/react'; import {getInitialPlayerState, getPlayerActions} from 'support/fakePlayerState'; jest.useFakeTimers(); describe('MediaInteractionTracking', () => { it('d...
ajax/libs/yui/3.3.0/event/event-focus-min.js
chinakids/cdnjs
YUI.add("event-focus",function(e){var d=e.Event,c=e.Lang,a=c.isString,b=c.isFunction(e.DOM.create('<p onbeforeactivate=";"/>').onbeforeactivate);function f(h,g,j){var i="_"+h+"Notifiers";e.Event.define(h,{_attach:function(l,m,k){if(e.DOM.isWindow(l)){return d._attach([h,function(n){m.fire(n);},l]);}else{return d._attac...
game/javascript/containers/score.js
tinyHui/flappy-bird-RL
import React from 'react' import { connect } from 'react-redux' import Score from '../components/score.jsx' import { scoreUp } from '../actions' const mapStateToProps = (state) => { return { score: state.game.score, isVisible: state.game.isPlaying || state.game.isEnded } } export default connect( mapSta...
node_modules/fbjs/node_modules/core-js/modules/es6.promise.js
Helena-High/school-app
'use strict'; var $ = require('./$') , LIBRARY = require('./$.library') , global = require('./$.global') , ctx = require('./$.ctx') , classof = require('./$.classof') , $export = require('./$.export') , isObject = require('./$.is-object') , anObject = require('./$.an-objec...
react-fundamentals-es6/lessons/11-higher-order/main.js
wandarkaf/React-Bible
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('app'));
packages/vx-glyph/src/glyphs/Dot.js
Flaque/vx
import React from 'react'; import classnames from 'classnames'; import Glyph from './Glyph'; export default function GlyphDot({ top = 0, left = 0, className, children, cx, cy, r, fill, stroke, strokeWidth, strokeDasharray, ...restProps }) { return ( <Glyph top={top} left={left}> <ci...
source/view/user.js
togayther/react-native-cnblogs
import React, { Component } from 'react'; import { View, Text, StyleSheet, TouchableHighlight } from 'react-native'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Icon from 'react-native-vector-icons/Ionicons'; import PureRenderMixin from 'react-addons-pure-render-mixin'...
python/op/op_site/op_static/npm/node_modules/core-js/client/shim.js
cmos3511/cmos_linux
/** * core-js 2.5.7 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2018 Denis Pushkarev */ !function(__e, __g, undefined){ 'use strict'; /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The r...
examples/common.js
sskyy/react-lego
import React from 'react' export function noop() { return null } export function id(fn) { return (...args) => fn(...args) } export function findIdentifierChildren(children, identifier) { const foundIdentifier = React.Children.toArray(children).find(child => child.type === identifier) return foundIdentifier ...
src/scripts/components/selectable_chip.js
jie/microgate
import React from 'react'; import Avatar from 'material-ui/Avatar'; import Chip from 'material-ui/Chip'; import DoneIcon from 'material-ui/svg-icons/action/done'; import { grey500, greenA400 } from 'material-ui/styles/colors'; import BaseReactComponent from './base'; const styles = { chip: { margin: 4, floa...
src/__tests__/components/Navigation.js
crudlio/crudl
/* globals jest, require, test, expect, describe, it, beforeEach */ import React from 'react' // import { Provider } from 'react-redux' import { shallow } from 'enzyme' import { Navigation } from '../../containers/Navigation' jest.mock('../../Crudl') const crudl = require('../../Crudl') crudl.resolvePath = jest.fn(...
docs/src/pages/demos/buttons/FloatingActionButtons.js
Kagami/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Fab from '@material-ui/core/Fab'; import AddIcon from '@material-ui/icons/Add'; import Icon from '@material-ui/core/Icon'; import DeleteIcon from '@material-ui/icons/Delete'; import NavigationIco...
src/components/Alphabet/Y.js
fxghqc/svg-react-playground
// @flow import React from 'react' import { ps } from './utils' function y (w: number, h: number) { const p1 = h / 32 const p2 = h / 8 - 8 const weight = h / 8 const boldWeight = Math.pow(2, 0.5) * weight const leftBottomPoint = { x: w / 2 - 1 / 2 * weight, y: h - p1 } const leftMiddlePoint = { x: leftBott...
ajax/libs/redux-form-material-ui/3.0.0/redux-form-material-ui.min.js
dakshshah96/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ReduxFormMaterialUi=t():e.ReduxFormMaterialUi=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},i...
components/ServerRouter.js
jumoel/reasonable-router
import React, { Component } from 'react'; import { createMemoryHistory } from 'history'; import { Router } from './Router'; export class ServerRouter extends Component { constructor(props) { super(...arguments); this.state = { history: createMemoryHistory({ initialEntries: [props.location] }), }; } rend...
src/Timeline.js
soup-js/omnistream
import React, { Component } from 'react'; import Rx from 'rxjs/Rx'; import Slider from './Slider'; import TimelineUnit from './TimelineUnit'; import createOmnistream from './omnistream.js'; import ActionViewer from './ActionViewer.js'; import { reactiveTimeline } from './reactiveComponent.js'; import { dragMovement, cu...
ajax/libs/react/0.9.0/react-with-addons.min.js
RoryStolzenberg/cdnjs
/** * React (with addons) v0.9.0 * * Copyright 2013-2014 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 re...
ajax/libs/react-redux/7.2.1/react-redux.js
cdnjs/cdnjs
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('redux'), require('react-dom')) : typeof define === 'function' && define.amd ? define(['exports', 'react', 'redux', 'react-dom'], factory) : (global = global || self, factory(global...
packages/reactor-kitchensink/src/examples/FormFields/NumberField/NumberField.js
sencha/extjs-reactor
import React from 'react'; import { NumberField, FormPanel } from '@extjs/ext-react'; export default function SpinnerFieldExample() { return ( <FormPanel shadow> <NumberField decimals={2} label="Number" width="150" /> </FormP...
src/icons/IosPhotosOutline.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosPhotosOutline extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M96,128v320h384V128H96z M464,432H112V144h352V432z"></path> <polygon points="32,64 32,384 80,384 80,368 48,...
app/assets/plugins/x-editable/dist/jqueryui-editable/js/jqueryui-editable.js
henrino3/control-client
/*! X-editable - v1.5.1 * In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery * http://github.com/vitalets/x-editable * Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */ /** Form with single input element, two buttons and two states: normal/loading. Applied as jQuery method to DIV tag (not to form tag!...
src/routes/Synthesizer/components/Controls.js
prestonbernstein/react-redux-synthesizer
import React from 'react' const Controls = (props) => ( <div id='Controls'> <div className='control'> <label htmlFor='waveform'> Waveform </label> <select id='waveform' onChange={props.changeWaveform} value={props.waveform} > { props.wavef...
test/react-native-cli/features/fixtures/rn0_67_hermes/App.js
bugsnag/bugsnag-js
import React from 'react'; import Bugsnag from "@bugsnag/react-native"; import { SafeAreaView, StyleSheet, ScrollView, View, Text, StatusBar, Button, NativeModules } from 'react-native'; import { Colors } from 'react-native/Libraries/NewAppScreen'; function jsNotify() { try { // execute crashy code ...
wp-includes/js/jquery/jquery.js
soapy513/restomanifesto.com
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license */ (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=f.trim,x=function(e,t){return new x.fn.ini...
packages/showcase/axes/empty-chart.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...
Example/components/TabIcon.js
hungtn/react-native-router-flux
import React, { PropTypes, } from 'react'; import { Text, } from 'react-native'; const propTypes = { selected: PropTypes.bool, title: PropTypes.string, }; const TabIcon = (props) => ( <Text style={{ color: props.selected ? 'red' : 'black' }} > {props.title} </Text> ); TabIcon.propTypes = propTy...
ajax/libs/foundation/4.0.5/js/vendor/jquery.js
RobLoach/cdnjs
/*! * jQuery JavaScript Library v1.9.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-2-4 */ (function( window, undefined ) { // Can't do t...
src/navbar/navbar.app.js
CanopyTax/single-spa-examples
import React from 'react'; import ReactDOM from 'react-dom'; import singleSpaReact from 'single-spa-react'; import navbar from './navbar.component.js'; /* The navbar app is an app that is always active and is responsible for showing the top navbar. * It is written in React and does not even use a router like react-ro...
src/svg-icons/editor/insert-comment.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertComment = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/> </SvgIcon> ); EditorInsertCom...
src/admin/client/modules/products/listHead/index.js
cezerin/cezerin
import React from 'react'; import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import { fetchProducts, deleteProducts, setCategory, setFilter, createProduct } from '../actions'; import Buttons from './components/buttons'; const mapStateToProps = (state, ownProps) => { return { sea...
examples/huge-apps/components/Dashboard.js
Jastrzebowski/react-router
import React from 'react'; import { Link } from 'react-router'; class Dashboard extends React.Component { render () { var { courses } = this.props; return ( <div> <h2>Super Scalable Apps</h2> <p> Open the network tab as you navigate. Notice that only the amount of y...
examples/immutable/src/index.js
supasate/connected-react-router
import { AppContainer } from 'react-hot-loader' import { Provider } from 'react-redux' import Immutable from 'immutable' import React from 'react' import ReactDOM from 'react-dom' import App from './App' import configureStore, { history } from './configureStore' const initialState = Immutable.Map() const store = confi...
src/SafeAnchor.js
dongtong/react-bootstrap
import React from 'react'; import createChainedFunction from './utils/createChainedFunction'; /** * Note: This is intended as a stop-gap for accessibility concerns that the * Bootstrap CSS does not address as they have styled anchors and not buttons * in many cases. */ export default class SafeAnchor extends React...
media_client/src/components/Upload.js
ntamvl/react-upload-progress-bar-with-rails-5-api
import React, { Component } from 'react'; import Dropzone from 'react-dropzone'; import { Field, reduxForm } from 'redux-form'; import { post } from 'axios'; import { Line, Circle } from 'rc-progress'; import { v4 } from 'node-uuid'; class Upload extends Component { constructor(props) { super(props); this.on...
ajax/libs/aui/5.4.1/aui/js/aui-all.js
XVicarious/cdnjs
!function(a,b){function c(a){var b=ob[a]={};return $.each(a.split(bb),function(a,c){b[c]=!0}),b}function d(a,c,d){if(d===b&&1===a.nodeType){var e="data-"+c.replace(qb,"-$1").toLowerCase();if(d=a.getAttribute(e),"string"==typeof d){try{d="true"===d?!0:"false"===d?!1:"null"===d?null:+d+""===d?+d:pb.test(d)?$.parseJSON(d)...
tests/routes/Counter/components/Counter.spec.js
NguyenManh94/circle-ci
import React from 'react' import { bindActionCreators } from 'redux' import { Counter } from 'routes/Counter/components/Counter' import { shallow } from 'enzyme' describe('(Component) Counter', () => { let _props, _spies, _wrapper beforeEach(() => { _spies = {} _props = { counter : 5, ...bindA...
client/modules/App/__tests__/Components/Footer.spec.js
jotamaggi/react-calendar-app
import React from 'react'; import test from 'ava'; import { shallow } from 'enzyme'; import { Footer } from '../../components/Footer/Footer'; test('renders the footer properly', t => { const wrapper = shallow( <Footer /> ); t.is(wrapper.find('p').length, 2); t.is(wrapper.find('p').first().text(), '© 2016 ...
Examples/UIExplorer/ListViewPagingExample.js
ktoh/react-native
/** * The examples provided by Facebook are for non-commercial testing and * evaluation purposes only. * * Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ...
src/containers/tool/AvatarAdder/index.js
mydearxym/mastani
/* * * AvatarAdder * */ import React from 'react' import T from 'prop-types' import { ICON } from '@/config' import { buildLog } from '@/utils/logger' import { pluggedIn } from '@/utils/mobx' import Tooltip from '@/widgets/Tooltip' import AdderPanel from './AdderPanel' import { Wrapper, SettingIcon } from './st...
src/shared/components/signUpLink/signUpLink.js
hollomancer/operationcode_frontend
import React from 'react'; import { Link } from 'react-router-dom'; import PropTypes from 'prop-types'; const SignUpLink = ({ text }) => ( <Link to="/join">{text}</Link> ); SignUpLink.propTypes = { text: PropTypes.string }; SignUpLink.defaultProps = { text: 'Sign up' }; export default SignUpLink;
src/components/topic/snapshots/foci/builder/retweetPartisanship/RetweetPartisanshipSummary.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { FormattedMessage, injectIntl } from 'react-intl'; const localMessages = { intro: { id: 'focus.create.confirm.retweet.intro', defaultMessage: 'We will create 5 subtopics:' }, left: { id: 'focus.create.confirm.retweet.center', defaultMessage: 'L...
sites/all/modules/contrib/jquery_update/replace/jquery/1.8/jquery.min.js
toniabhi/innorat
/*! jQuery v1.8.2 jquery.com | jquery.org/license */ (function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==...
test/server/node_modules/loopback/node_modules/loopback-connector-remote/node_modules/strong-remoting/example/rest-models/public/jquery.js
vancarney/apihero-module-socket.io
/*! * jQuery JavaScript Library v1.8.3 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time) */ (function(...