path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
node_modules/react-dom/lib/ReactDOMInvalidARIAHook.js
saltypaul/SnipTodo
/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ 'use strict...
src/components/Player/index.js
jaruba/PowderPlayer
import React from 'react'; import PureRenderMixin from 'react-addons-pure-render-mixin'; import PlayerHeader from './components/Header.react'; import PlayerControls from './components/Controls'; import PlayerRender from './components/Renderer.react'; import Playlist from './components/Playlist.react'; import Settings ...
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-overlays/0.7.0/lib/Position.js
Akkuma/npm-cache-benchmark
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }...
app/components/header/index.js
izonder/connect-4
import Style from './style.pcss'; import React from 'react'; export default class Header extends React.Component { render() { return( <div className="header"> <h1>Connect Four</h1> <h2>Classic two players' simple game</h2> <p>Press &laquo;New game...
test/specs/modules/Search/Search-test.js
aabustamante/Semantic-UI-React
import _ from 'lodash' import faker from 'faker' import React from 'react' import { htmlInputAttrs } from 'src/lib' import Search from 'src/modules/Search' import SearchCategory from 'src/modules/Search/SearchCategory' import SearchResult from 'src/modules/Search/SearchResult' import SearchResults from 'src/modules/Se...
src/Dialog/DialogTitle.js
AndriusBil/material-ui
// @flow weak import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; import Typography from '../Typography'; export const styles = (theme: Object) => ({ root: { margin: 0, padding: `${theme.spacing.unit * 3}px ${them...
ajax/libs/mediaelement/2.4.3/jquery.js
IonicaBizauKitchen/cdnjs
/*! * jQuery JavaScript Library v1.7 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. *...
app/js/views/components/min-header-component.js
mskalandunas/solstice
import React from 'react'; import ReactDOM from 'react-dom'; import { Link } from 'react-router'; const MinHeaderComponent = React.createClass({ render: () => { return ( <section> <nav className="nav" style={{position: 'fixed', width: '100%'}}> <div className="nav-left"> <Link...
ajax/libs/webshim/1.15.0-RC2/dev/shims/es6.js
nareshs435/cdnjs
// ES6-shim 0.15.0 (c) 2013-2014 Paul Miller (http://paulmillr.com) // ES6-shim may be freely distributed under the MIT license. // For more details and documentation: // https://github.com/paulmillr/es6-shim/ webshim.register('es6', function($, webshim, window, document, undefined){ 'use strict'; var isCallableW...
extensions/amp-story/1.0/story-analytics.js
cory-work/amphtml
/** * Copyright 2017 The AMP HTML Authors. All Rights Reserved. * * 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...
packages/wix-style-react/src/Breadcrumbs/test/Breadcrumbs.visual.js
wix/wix-style-react
import React from 'react'; import { storiesOf } from '@storybook/react'; import Breadcrumbs from '../Breadcrumbs'; import { SIZES, THEMES } from '../constnats'; import { breadcrumbsTestkitFactory } from '../../../testkit'; import { Box } from 'wix-style-react'; const sizes = Object.values(SIZES); const test = (it, pr...
src/components/blog/routes/PostEdit.js
sivael/simpleBlogThingie
import React from 'react' import PostEdit from 'containers/blog/PostEdit' export default class PostEditFromRouter extends React.Component { render() { return( <PostEdit id={this.props.params.id} /> ) } }
src/shared/utils/ReactErrorUtils.js
soulcm/react
/** * Copyright 2013-2015, 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. * * @providesModule ...
src/svg-icons/action/watch-later.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionWatchLater = (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 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z"/> </SvgIcon> ); ActionWatchLater = pure(Ac...
sub-packs/themes/zealder-default-theme/src/components/PersonBar.js
Zealder/zealder-cms
// @flow import React from 'react'; import { connect } from 'react-redux'; import _ from 'lodash/core'; import { Nav, NavItem, NavDropdown, MenuItem } from 'react-bootstrap'; import { LinkContainer } from 'react-router-bootstrap'; import { getComponent } from '../routes/'; import { updateThemeData } from '../redux/act...
src/svg-icons/av/mic-none.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvMicNone = (props) => ( <SvgIcon {...props}> <path d="M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm-1.2-9.1c0-.66.54-1.2 1.2-1.2.66 0 1.2.54 1.2 1.2l-.01 6.2c0 .66-.53 ...
src/js/components/Anchor/stories/Disabled.js
HewlettPackard/grommet
import React from 'react'; import { Anchor, Box } from 'grommet'; const DisabledAnchor = () => ( <Box align="center" pad="large"> <Box margin="small"> <Anchor disabled label="Disabled Anchor" /> </Box> </Box> ); export const Disabled = () => <DisabledAnchor />; export default { title: 'Controls/...
ajax/libs/react-dnd/13.1.1/cjs/hooks/useDrop/useDropTargetConnector.min.js
cdnjs/cdnjs
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.useDropTargetConnector=useDropTargetConnector;var _react=require("react"),_internals=require("../../internals"),_useDragDropManager=require("../useDragDropManager"),_useIsomorphicLayoutEffect=require("../useIsomorphicLayoutEffect");function use...
assets/image_crud/js/jquery-1.8.2.min.js
waifung0207/ci_bootstrap_3_demo
/*! 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===...
packages/material-ui-icons/src/LinkTwoTone.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g opacity=".87"><path d="M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5zM11 15H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2...
ajax/libs/forerunnerdb/1.3.718/fdb-core+views.js
emmy41124/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/Components/StageUtils.js
crossroadchurch/silas
import React from 'react' import Styles from '../styles' export class Chord extends React.Component { render() { return ( <span style={Styles.ChordLine}> {this.props.children} </span> ) } } export class LyricLine extends React.Component { render() { return ( <span style={St...
imports/plugins/included/shippo/server/hooks/rates.js
deetail/kimchi4u
import { Meteor } from "meteor/meteor"; import { Shipping, Packages } from "/lib/collections"; import { Logger, Reaction, Hooks } from "/server/api"; // callback ran on getShippingRates hook function getShippingRates(rates, cart) { const shops = []; const products = cart.items; const pkgData = Packages.findOne(...
components/dataset/producer.js
sgmap/inspire
import React from 'react' import PropTypes from 'prop-types' const Producer = ({producer}) => { return ( <div> <div className='wrapper'> <img src={producer.logo_thumbnail} alt='' /> </div> <h4>{producer.name}</h4> <style jsx>{` .wrapper { display: flex; ...
src/components/posts_index.js
tpechacek/redux-blog
import _ from 'lodash'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { fetchPosts } from '../actions'; class PostsIndex extends Component { componentDidMount() { this.props.fetchPosts(); } renderPosts() { return _.map(this...
src/student/components/postovi/popuni.js
zeljkoX/e-learning
import React from 'react'; import CardHeader from 'material-ui/lib/card/card-header'; import CardText from 'material-ui/lib/card/card-text'; import CardActions from 'material-ui/lib/card/card-actions'; import Card from 'material-ui/lib/card/card'; import Avatar from 'material-ui/lib/avatar'; import FlatButton from 'mat...
src/containers/wrapper/index.js
sunway-official/acm-admin
import React, { Component } from 'react'; import AppBar from '../layout/appbar'; import style from './style.css'; class Index extends Component { render() { return ( <div> <style dangerouslySetInnerHTML={{ __html: style }} /> <AppBar /> <div className="body-content"> <div ...
packages/material-ui-icons/src/EcoOutlined.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M6.05 8.05c-2.73 2.73-2.73 7.17 0 9.9C7.42 19.32 9.21 20 11 20s3.58-.68 4.95-2.05C19.43 14.47 20 4 20 4S9.53 4.57 6.05 8.05zm8.49 8.49c-.95.94-2.2 1.46-3.54 1.46-.89 0-1.73-.25-2.48-.68.92-2.88 2.62-5...
examples/ssr-with-redux/src/app/containers/UserContainer.js
oneut/async-react-router
import React from "react"; import { connect } from "react-redux"; import Header from "../components/common/Header"; import UserComponent from "../components/user/UserComponent"; class UserContainer extends React.Component { render() { if (!this.props.user) { return null; } return ( <div> ...
files/videojs/4.11.3/video.dev.js
l3dlp/jsdelivr
/** * @fileoverview Main function src. */ // HTML5 Shiv. Must be in <head> to support older browsers. document.createElement('video'); document.createElement('audio'); document.createElement('track'); /** * Doubles as the main function for users to create a player instance and also * the main library object. * ...
src/components/Anchor/Anchor.js
cdtinney/cdtinney.github.io
import React from 'react'; import PropTypes from 'prop-types'; import Link from 'gatsby-link'; import classNames from '../../utils/classNames'; import theme from '../../styles/theme.module.css'; import classes from './Anchor.module.css'; const colorEnum = { primary: theme.primary, secondary: theme.secondary, }; ...
ajax/libs/yui/3.7.0/datatable-core/datatable-core.js
StoneCypher/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...
docs/pages/api/form-group.js
kybarg/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './form-group.md'; export default function Page() { return <MarkdownDocs markdown={markdown} />; }
app/javascript/mastodon/features/mutes/index.js
tri-star/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debou...
ajax/libs/jquery-handsontable/0.10.2/jquery.handsontable.js
aFarkas/cdnjs
/** * Handsontable 0.10.2 * Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs * * Copyright 2012, Marcin Warpechowski * Licensed under the MIT license. * http://handsontable.com/ * * Date: Thu Jan 23 2014 23:06:23 GMT+0100 (CET) */ /*jslin...
app/containers/HomePage/index.js
mmaedel/react-boilerplate
/* * HomePage * * This is the first thing users see of our App, at the '/' route */ import React from 'react'; import Helmet from 'react-helmet'; import { FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import AtPrefix from './AtPre...
ajax/libs/forerunnerdb/1.3.326/fdb-core+views.js
tholu/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...
docs/app/Examples/views/Card/Types/index.js
vageeshb/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const Types = () => ( <ExampleSection title='Types'> <ComponentExample title='Card' description='A card displays sit...
src/Pagination.js
glenjamin/react-bootstrap
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { createBootstrapComponent } from './ThemeProvider'; import PageItem, { First, Prev, Ellipsis, Next, Last } from './PageItem'; /** * @property {PageItem} Item * @property {PageItem} First * @property {PageIte...
addons/info/src/components/Props.js
bigassdragon/storybook
import React from 'react'; import PropVal from './PropVal'; const stylesheet = { propStyle: {}, propNameStyle: {}, propValueStyle: {}, }; export default class Props extends React.Component { render() { const props = this.props.node.props; const defaultProps = this.props.node.type.defaultProps; if ...
src/index.js
panderalabs/redux-form-semantic
// @flow import React from 'react'; import { CustomFieldProps } from './types'; import ReduxFormFieldWrapper from './ReduxFormFieldWrapper'; import { Text, TextArea, Select, Checkbox, Radio } from './customSemanticInputs'; export const TextField = (props: CustomFieldProps) => ( <ReduxFormFieldWrapper {...props} ...
ajax/libs/primereact/7.0.0-rc.2/deferredcontent/deferredcontent.cjs.min.js
cdnjs/cdnjs
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var o=t[...
app/router/Route.js
CKPalk/PA-POC-Video-Contoller
import React, { PropTypes } from 'react' import Router from './Router' export default class Route extends React.Component { static propTypes = { children: PropTypes.array, component: PropTypes.func.isRequired, path: PropTypes.string.isRequired, destination: PropTypes.string.isRequired } render(...
packages/react-server-test-pages/pages/bottleneck/elements.js
redfin/react-server
/* eslint-disable react/react-in-jsx-scope */ import "./colors/red.scss"; import "./colors/blue.scss"; import "./colors/purple.scss"; import "./colors/green.scss"; import "./colors/orange.scss"; import "./colors/indigo.scss"; import "./colors/yellow.scss"; const RedThing = () => <div className="red-thing">This should...
serve/js/jquery.min.js
alvaradocde/alvaradocde.github.io
/*! 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...
src/client/components/UserLinkWidget/UserLinkWidget.js
vidaaudrey/trippian
import log from '../../log' import React from 'react' import { Link } from 'react-router' const UserLinkWidget = ({ id = 0, name, facebookId = 0, googleId = 0, username = '', displayName = '', picture = '', website = '', showFacebookLink = true, showGoogleLink = false, showTrippianLink = false, showWebSiteLink = f...
misc/jquery.js
kdv24/DrupalPlayground
/*! * jQuery JavaScript Library v1.4.4 * 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/Button/Button.js
Detaysoft/react-chat-elements
import React from 'react'; import './Button.css'; const classNames = require('classnames'); function Button(props) { return ( <button ref={props.buttonRef} title={props.title} className={classNames('rce-button', props.type, props.className)} style={{ backgroundColor: props.backgr...
src/renderer/components/empty-view.js
buttercup-pw/buttercup
import PropTypes from 'prop-types'; import React from 'react'; import styled from 'styled-components'; import { Translate } from '../../shared/i18n'; import { Flex } from 'styled-flexbox'; import { isOSX } from '../../shared/utils/platform'; import logo from '../styles/img/solo-logo.svg'; import AddArchiveButton from '...
ajax/libs/react-data-grid/1.0.12/react-data-grid.ui-plugins.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...
src/components/topic/summary/TopicSummaryContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { injectIntl, FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import { Grid, Row, Col } from 'react-flexbox-grid/lib'; import LoadingSpinner from '../../common/LoadingSpinner'; import { urlWithFilters } from '../../util/l...
libs/jquery/jquery.js
gramer/js-code-inspection
/*! * jQuery JavaScript Library v1.7.2 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
babel.config.js
novacrazy/react-recaptcha2
/** * Created by Aaron on 12/21/2015. */ var loose = {loose: true}; module.exports = { plugins: [ //stage 0 ["transform-do-expressions", loose], ["transform-function-bind", loose], //stage 1 ["transform-class-constructor-call", loose], ["transform-class-propertie...
ajax/libs/ScrollMagic/2.0.1/ScrollMagic.js
ematsusaka/cdnjs
/*! * ScrollMagic v2.0.1 (2015-03-17) * The javascript library for magical scroll interactions. * (c) 2015 Jan Paepke (@janpaepke) * Project Website: http://janpaepke.github.io/ScrollMagic * * @version 2.0.1 * @license Dual licensed under MIT license and GPL. * @author Jan Paepke - e-mail@janpaepke.de * * @f...
src/components/app.js
Ntobon/dm_react_app
import React from 'react'; import Grid from 'react-bootstrap/lib/Grid'; import MainHeader from './MainHeader'; import Page from './Page'; import UserContainer from './UserContainer'; const SERVICE_URL="http://awsdemand.algoritmo.co/api/common_users"; class App extends React.Component { render() { return ( ...
src/app/Layout/components/Header.react.js
ryym/play-flex
import React from 'react'; /** * Render common header of this app. */ export default class Header extends React.Component { render() { return ( <header className="layout__header"> Play Flexbox </header> ); } }
files/instantsearch.js/1.3.0/instantsearch.min.js
ezekutor/jsdelivr
/*! instantsearch.js 1.3.0 | © Algolia Inc. and other contributors; Licensed MIT | github.com/algolia/instantsearch.js */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.instantsearch=t():e.instantsea...
node_modules/material-ui/svg-icons/image/brightness-2.js
TarikHuber/react-redux-material-starter-kit
'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...
packages/wix-style-react/src/Tabs/test/Tabs.visual.js
wix/wix-style-react
import React from 'react'; import { storiesOf } from '@storybook/react'; import Box from '../../Box'; import Tabs from '../Tabs'; const defaultProps = { items: [1, 2, 3, 4, 5].map(index => ({ id: String(index), title: `item ${index}`, })), activeId: '2', }; const tests = [ { describe: '', its:...
docs/lib/Components/PlayerPage.js
video-react/video-react
/* eslint react/no-multi-comp: 0, react/prop-types: 0 */ import React from 'react'; import { PrismCode } from 'react-prism'; import { Table } from 'reactstrap'; import Helmet from 'react-helmet'; import PlayerExample from '../examples/Player'; import PlayerControlExample from '../examples/PlayerControl'; const PlayerE...
components/Table/Holders/Card/Modifiers/Ato10.js
mattbajorek/blackJackReact
import React, { Component } from 'react'; import pos1 from './Positions/pos1'; import pos2 from './Positions/pos2'; import pos3 from './Positions/pos3'; import pos4 from './Positions/pos4'; import pos5 from './Positions/pos5'; import pos6 from './Positions/pos6'; import pos7 from './Positions/pos7'; import pos8 from '....
ajax/libs/6to5/2.13.5/browser-polyfill.js
ematsusaka/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/polymer/0.5.3-rc2/polymer.js
js-data/cdnjs
/** * @license * Copyright (c) 2014 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be f...
__tests__/tests/reducers/notifications.reducer.js
dyesseyumba/git-point
import React from 'react'; import { notificationsReducer, initialState, } from 'notifications/notifications.reducer'; import { GET_UNREAD_NOTIFICATIONS, GET_PARTICIPATING_NOTIFICATIONS, GET_ALL_NOTIFICATIONS, MARK_NOTIFICATION_AS_READ, MARK_ALL_NOTIFICATIONS_AS_READ, GET_NOTIFICATIONS_COUNT, MARK_REPO...
src/modules/rating/components/RatingTable.spec.js
mkozhukharenko/ums-frontend
import React from 'react'; import { shallow, render } from 'enzyme'; import { expect } from 'chai'; import RatingTable from './RatingTable' import ratingData from './../fixtures/ratingList' describe('<RatingTable /> components', () => { let setup = () => { const shallowTable = shallow(<RatingTable {...rating...
modules/Redirect.js
egobrightan/react-router
import React from 'react' import invariant from 'invariant' import { createRouteFromReactElement } from './RouteUtils' import { formatPattern } from './PatternUtils' import { falsy } from './PropTypes' const { string, object } = React.PropTypes /** * A <Redirect> is used to declare another URL path a client should b...
app/javascript/mastodon/features/compose/components/upload_progress.js
MitarashiDango/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import Icon from 'mastodon/components/icon'; export default class UploadProgress extends React.PureComponent { static propTypes = { active: PropTypes.b...
public/assets/js/node_modules/react-select/examples/src/app.js
ngocson8b/6jar
/* eslint react/prop-types: 0 */ import React from 'react'; import ReactDOM from 'react-dom'; import Select from 'react-select'; import Contributors from './components/Contributors'; import CustomKeysField from './components/CustomKeysField'; import CustomRenderField from './components/CustomRenderField'; import Disa...
app/components/Icon.js
alexeyraspopov/evo
import React from 'react'; export default function Icon({type, className = ''}) { return <span className={`material-icons ${className}`}>{type}</span>; }
ajax/libs/babel-core/4.7.9/browser-polyfill.js
menuka94/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/parser/druid/guardian/modules/features/RageWasted.js
sMteX/WoWAnalyzer
import React from 'react'; import { formatPercentage } from 'common/format'; import SPELLS from 'common/SPELLS'; import RESOURCE_TYPES from 'game/RESOURCE_TYPES'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import StatisticBox from 'interface/others/StatisticBox'; import Analyzer...
src/Hello/Hello.js
radsquad/listiq
import React from 'react' class Hello extends React.Component { render () { return ( <div> <span style={{color: 'cyan'}}>HelloComponent</span> </div> ) } } export default Hello
node_modules/react-google-maps/src/InfoWindow.js
yomolify/cs-webserver
import { default as React, Component, } from "react"; import { default as InfoWindowCreator, infoWindowDefaultPropTypes, infoWindowControlledPropTypes, infoWindowEventPropTypes } from "./creators/InfoWindowCreator"; export default class InfoWindow extends Component { static propTypes = { // Uncontro...
app/components/ListItem/index.js
nadzweb/react-simple-apps
import React from 'react'; import Item from './Item'; import Wrapper from './Wrapper'; function ListItem(props) { return ( <Wrapper> <Item> {props.item} </Item> </Wrapper> ); } ListItem.propTypes = { item: React.PropTypes.any, }; export default ListItem;
packages/stockflux-watchlist/src/index.js
ScottLogic/StockFlux
import React from 'react'; import ReactDOM from 'react-dom'; import { OpenfinApiHelpers } from 'stockflux-core'; import App from './App'; const mountApp = () => { ReactDOM.render(<App />, document.getElementById('root')); }; if (OpenfinApiHelpers.getWindow()) { OpenfinApiHelpers.useMain(mountApp); } else { cons...
docs/src/pages/demos/dialogs/ConfirmationDialog.js
Kagami/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Button from '@material-ui/core/Button'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; import ListItemText from '@material-ui/core/ListItemText'; im...
examples/Basic/CustomMarker.js
ptomasroos/react-native-multi-slider
import React from 'react'; import { StyleSheet, Image } from 'react-native'; class CustomMarker extends React.Component { render() { return ( <Image style={styles.image} source={ this.props.pressed ? require('./ruby.png') : require('./diamond.png') } resizeMode="co...
client/src/containers/pages/Demo.js
shmilky/node-react-template
'use strict'; import React from 'react'; import {Link} from 'react-router-dom'; import {demoApi} from '../../api' import {landing as landingRoutes} from '../../routes'; import {SharedComponent} from '../../components'; export default class extends React.Component { constructor (props) { supe...
src/routes/add/index.js
ynu/res-track-wxe
import React from 'react'; import Add from './Add'; import { addResource } from '../../actions/add'; export default { path: '/add', async action({ store }) { const add = async values => { try { const data = await store.dispatch(addResource(values)); window.location = `/detail/${data}`; ...
packages/expo-status-bar/build/ExpoStatusBar.android.js
exponent/exponent
import React from 'react'; import { StatusBar } from 'react-native'; import styleToBarStyle from './styleToBarStyle'; import useColorScheme from './useColorScheme'; export default function ExpoStatusBar(props) { const { style, animated, hidden, backgroundColor: backgroundColorProp, translucent: translucentProp, } =...
website/app/components/Toggle/index.js
mattroid/WildWest
/** * * LocaleToggle * */ import React from 'react'; 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((value) => ( <ToggleOption key...
src/PaginationButton.js
mxc/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import createSelectedEvent from './utils/createSelectedEvent'; import CustomPropTypes from './utils/CustomPropTypes'; const PaginationButton = React.createClass({ mixins: [BootstrapMixin], propTypes: { ...
openex-front/src/components/Error.js
Luatix/OpenEx
import React from 'react'; import * as R from 'ramda'; import * as PropTypes from 'prop-types'; import { withRouter } from 'react-router-dom'; import Alert from '@mui/material/Alert'; import AlertTitle from '@mui/material/AlertTitle'; class ErrorBoundaryComponent extends React.Component { constructor(props) { su...
server/sonar-web/tests/apps/overview/main/coverage-test.js
joansmith/sonarqube
import _ from 'underscore'; import { expect } from 'chai'; import React from 'react'; import TestUtils from 'react-addons-test-utils'; import { GeneralCoverage } from '../../../../src/main/js/apps/overview/main/coverage'; const COMPONENT = { key: 'component-key' }; const DATE = new Date(2015, 0, 1); const MEASURES...
src/routes/Hangman/containers/hangman.js
dimitrisafendras/multiGame
import React, { Component } from 'react'; import { Keyboard } from '../components/keyboard'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as HangmanActions from '../Modules/actions'; import { HangmanPicture } from '../components/hangman-picture'; import { GiveYourWord } fr...
src/tool_grommet_advanced_platform_observer/monitor-app/src/js/index.js
lefousdu05/performance_modelisation
import '../scss/index.scss'; import React from 'react'; import ReactDOM from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import Main from './Main'; const body = ( <AppContainer> <Main /> </AppContainer> ); let element = document.getElementById('content'); ReactDOM.render(body, element); d...
packages/material-ui-icons/src/BatteryCharging90.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let BatteryCharging90 = props => <SvgIcon {...props}> <path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V8h5.47L13 7v1h4V5.33C17 4.6 16.4 4 15.67 4z" /><path d="M13 12.5h2L11 20v-5.5H9L12.47...
app/components/AppRouter/index.js
ethan605/react-native-zero
/** * @providesModule ZeroProj.Components.AppRouter */ import React from 'react'; import { Modal, Router, Scene } from 'react-native-router-flux'; // Components import ErrorAlert from 'app/components/ErrorAlert'; import FirstScene from 'app/components/FirstScene'; import SecondScene from 'app/components/SecondScene...
src/svg-icons/places/hot-tub.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesHotTub = (props) => ( <SvgIcon {...props}> <circle cx="7" cy="6" r="2"/><path d="M11.15 12c-.31-.22-.59-.46-.82-.72l-1.4-1.55c-.19-.21-.43-.38-.69-.5-.29-.14-.62-.23-.96-.23h-.03C6.01 9 5 10.01 5 11.25V12...
docs/src/pages/components/progress/CircularUnderLoad.js
kybarg/material-ui
import React from 'react'; import CircularProgress from '@material-ui/core/CircularProgress'; export default function CircularUnderLoad() { return <CircularProgress disableShrink />; }
test/specs/cartesian/ReferenceDotSpec.js
sdoomz/recharts
import React from 'react'; import { expect } from 'chai'; import { BarChart, ReferenceDot, Bar, XAxis, YAxis } from 'recharts'; import { mount, render } from 'enzyme'; describe('<ReferenceDot />', () => { const data = [ { name: '201102', uv: -6.11, pv: 0 }, { name: '201103', uv: 0.39, pv: 0 }, { name: '2...
Examples/UIExplorer/ImageExample.js
ouyangwenfeng/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/components/CovidStat/CovidStat.js
matthewgallo/portfolio
import React from 'react'; import DetailHeader from '../DetailPage/DetailHeader'; import GradientLink from '../GradientLink/GradientLink'; import CovidStatDetailsImage from '../../assets/images/covidstat/home_covid_header.png'; import Tag from '../Tag/Tag'; import vercelLogo from '../../assets/images/jeopardy/vercellog...
app/js/update/index.js
blockstack/blockstack-browser
import React from 'react' import PropTypes from 'prop-types' import { withRouter, browserHistory } from 'react-router' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { AccountActions } from '../account/store/account' import { IdentityActions } from '../profiles/store/identity' i...
ajax/libs/yui/3.6.0pr4/datatable-core/datatable-core-debug.js
extend1994/cdnjs
YUI.add('datatable-core', function(Y) { /** 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.isObject, ...
test/fixtures/webpack-message-formatting/src/AppMissingPackage.js
timlogemann/create-react-app
import React, { Component } from 'react'; import { bar } from 'unknown-package'; class App extends Component { componentDidMount() { bar(); } render() { return <div />; } } export default App;
www/files/lib/jquery/1.10.2/jquery.min.js
corpsee/corpsee-com
/*! 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...
src/js/components/Form/stories/CustomThemed/Custom.js
grommet/grommet
import React from 'react'; import { Box, Button, CheckBox, Form, FormField, Grommet, MaskedInput, RadioButtonGroup, RangeInput, Select, TextArea, TextInput, } from 'grommet'; import { grommet } from 'grommet/themes'; import { deepMerge } from 'grommet/utils'; const customTheme = { global: { ...
projects/frontend/src/containers/root.prod.js
we3x/organizator
import React from 'react'; import { Provider } from 'react-redux'; import Main from './main'; import store from '../store'; function Root() { return ( <Provider store={store}> <div> <Main /> </div> </Provider> ); } export default Root;
packages/material-ui-icons/lib/PersonAddDisabled.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")...