target
stringlengths
5
300
feat_repo_name
stringlengths
6
76
text
stringlengths
26
1.05M
ajax/libs/jquery/1.4.1/jquery.js
ComputerWolf/cdnjs
/*! * jQuery JavaScript Library v1.4.1 * 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. ...
packages/story-editor/src/utils/useDoubleClick.js
GoogleForCreators/web-stories-wp
/* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
src/flavors/manzanares/static/js/views/app-view.js
smartercleanup/duwamish
import React from "react"; import ReactDOM from "react-dom"; import emitter from "../../../../../base/static/utils/emitter"; import InputExplorer from "../../../../../base/static/components/input-explorer"; import GeocodeAddressBar from "../../../../../base/static/components/geocode-address-bar"; import InfoModal from ...
src/svg-icons/content/content-paste.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentContentPaste = (props) => ( <SvgIcon {...props}> <path d="M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s...
src/SplitButton.js
jontewks/react-bootstrap
import React from 'react'; import BootstrapMixin from './BootstrapMixin'; import Button from './Button'; import Dropdown from './Dropdown'; import SplitToggle from './SplitToggle'; class SplitButton extends React.Component { render() { let { children, title, onClick, target, href, ...
src/gm3/components/serviceManager.js
geomoose/gm3
/* * The MIT License (MIT) * * Copyright (c) 2016-2017 Dan "Ducky" Little * * 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...
modules/application/__server-tests__/fixtures/childComponents.js
CumpsD/marty-lib
'use strict'; var React = require('react'); module.exports = function (Marty) { var MessageStore = Marty.createStore({ getInitialState: function getInitialState() { return {}; }, getMessage: function getMessage(message) { return this.fetch({ id: message, locally: function loc...
fields/types/markdown/MarkdownField.js
ratecity/keystone
import Field from '../Field'; import React from 'react'; import { FormInput } from '../../../admin/client/App/elemental'; /** * TODO: * - Remove dependency on jQuery */ // Scope jQuery and the bootstrap-markdown editor so it will mount var $ = require('jquery'); require('./lib/bootstrap-markdown'); // Append/remo...
turismo_client/src/components/mapWithEvents.js
leiverandres/turismo-risaralda
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Map, Marker, Popup, TileLayer } from 'react-leaflet'; class MapWithEvents extends Component { static propTypes = { position: PropTypes.array.isRequired, events: PropTypes.array.isRequired, handleMapClick: PropTypes.fun...
packages/mui-icons-material/lib/HistoryToggleOffOutlined.js
oliviertassinari/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")...
packages/mcs-lite-ui/src/Card/Card.example.js
MCS-Lite/mcs-lite
import React from 'react'; import { storiesOf } from '@storybook/react'; import { withInfo } from '@storybook/addon-info'; import Card from '.'; storiesOf('Card', module).add( 'API', withInfo({ text: '一個簡單到不行的白底。', inline: true, })(() => <Card>Card Content</Card>), );
ajax/libs/react-native-web/0.13.5/cjs/hooks/usePlatformMethods.js
cdnjs/cdnjs
"use strict"; exports.__esModule = true; exports.default = usePlatformMethods; var _UIManager = _interopRequireDefault(require("../exports/UIManager")); var _createDOMProps = _interopRequireDefault(require("../modules/createDOMProps")); var _react = require("react"); function _interopRequireDefault(obj) { return o...
src/controls/Emoji/Component/index.js
jpuri/react-draft-wysiwyg
/* @flow */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { stopPropagation } from '../../../utils/common'; import Option from '../../../components/Option'; import './styles.css'; class LayoutComponent extends Component { static propTypes:...
lesson-7/todos/src/components/editNotesPage/Note.js
msd-code-academy/lessons
import React from 'react' import EditNoteModal from './EditNoteModal' import '../../styles/Note.css' class Note extends React.Component { state = { showMore: false, } handleShowMore = () => { this.setState({ showMore: !this.state.showMore, }) } render() { const { noteUuid, title, tex...
example/src/screens/transitions/sharedElementTransitions/Masonry/Masonry.js
junedomingo/react-native-navigation
import React from 'react'; import {StyleSheet, View, Text, PixelRatio, FlatList, Image, TouchableHighlight} from 'react-native'; import {Navigation, SharedElementTransition} from 'react-native-navigation'; import images from './images'; const ROW_HEIGHT = 650; const COLS = 2; class Masonry extends React.Component { ...
ajax/libs/rxjs/2.1.2/rx.modern.js
kentcdodds/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. (function (window, undefined) { var freeExports = typeof exports == 'object' && exports && (typeof global == 'object' && global && global == global.global && (window = global...
src/js/scopes/scopes.entry.js
stamkracht/Convy
import React from 'react'; import config from '../config'; import Authentication from '../components/components.authentication'; class Entry extends React.Component { constructor(props) { super(props); this.state = { showRegister: false }; } render() { return ( <main className="s-e...
app/components/FormInfo/index.js
zebbra-repos/Zeiterfassung-medi
/** * * FormError * */ import React from 'react'; import PropTypes from 'prop-types'; import Wrapper from './Wrapper'; function FormInfo(props) { return ( <Wrapper> {props.children} </Wrapper> ); } FormInfo.propTypes = { // properties children: PropTypes.node.isRequired, }; export default Fo...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DefaultParameters.js
lolaent/create-react-app
/** * 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. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load(id = 0) { return [ { id: id + 1, name...
Js/Backend/Modules/Jobs/index.js
Webiny/CronManager
import React from 'react'; import Webiny from 'webiny'; import Views from './Views/Views'; /** * @i18n.namespace CronManager.Backend.Jobs */ class Jobs extends Webiny.App.Module { init() { this.name = 'Jobs'; const role = 'cron-manager'; this.registerMenus( <Webiny.Ui.Menu l...
src/svg-icons/places/kitchen.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesKitchen = (props) => ( <SvgIcon {...props}> <path d="M18 2.01L6 2c-1.1 0-2 .89-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.11-.9-1.99-2-1.99zM18 20H6v-9.02h12V20zm0-11H6V4h12v5zM8 5h2v3H8zm0 7h2v5H8z"/> ...
docs-ui/components/flowLayout.stories.js
gencer/sentry
import React from 'react'; import {storiesOf} from '@storybook/react'; import {withInfo} from '@storybook/addon-info'; // import {action} from '@storybook/addon-actions'; import FlowLayout from 'sentry-ui/flowLayout'; import SpreadLayout from 'sentry-ui/spreadLayout'; storiesOf('ComponentLayouts/FlowLayout', module) ...
media/jui/js/jquery.js
n2h/joomla-spark
/*! * jQuery JavaScript Library v1.12.4 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2016-05-20T17:17Z */ (function( global, factory ) { if ( typeof module =...
js/component/CustomButton.js
codeestX/MoeFM
/** * @author: Est <codeest.dev@gmail.com> * @date: 2017/5/7 * @description: */ import React from 'react' import { TouchableNativeFeedback, TouchableOpacity, Platform, } from 'react-native' export default (props) => { if(Platform.OS === 'android') { return <TouchableNativeFeedback ...
src/components/common/navigation/SideMenu.js
ESTEBANMURUZABAL/bananaStore
/** * Imports */ import React from 'react'; import connectToStores from 'fluxible-addons-react/connectToStores'; import {FormattedMessage} from 'react-intl'; import {Link} from 'react-router'; // Flux import AccountStore from '../../../stores/Account/AccountStore'; import IntlStore from '../../../stores/Application/...
src/components/OrderSummary/OrderSummaryList-test.js
jzhang300/carbon-components-react
import React from 'react'; import { OrderSummaryList, OrderSummaryListItem } from '../OrderSummary'; import { shallow } from 'enzyme'; describe('OrderSummaryList', () => { describe('Renders as expected', () => { const orderSummaryList = shallow( <OrderSummaryList className="some-class"> <OrderSumma...
src/svg-icons/editor/border-clear.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderClear = (props) => ( <SvgIcon {...props}> <path d="M7 5h2V3H7v2zm0 8h2v-2H7v2zm0 8h2v-2H7v2zm4-4h2v-2h-2v2zm0 4h2v-2h-2v2zm-8 0h2v-2H3v2zm0-4h2v-2H3v2zm0-4h2v-2H3v2zm0-4h2V7H3v2zm0-4h2V3H3v2zm8 8h2v...
components/react-semantify/src/commons/row.js
react-douban/douban-book-web
import React from 'react'; import ClassGenerator from '../mixins/classGenerator'; let defaultClassName = 'row'; const Row = React.createClass({ mixins: [ClassGenerator], render: function () { let {className, ...other} = this.props; return ( <div {...other} className={this.getClassName(defaultCla...
docs/src/app/components/pages/components/Slider/ExampleControlled.js
ngbrown/material-ui
import React from 'react'; import Slider from 'material-ui/Slider'; export default class SliderExampleControlled extends React.Component { state = { firstSlider: 0.5, secondSlider: 50, } handleFirstSlider(event, value) { this.setState({firstSlider: value}); } handleSecondSlider(event, value) {...
counter/test/containers/App.spec.js
samlatif-uk/redux-tdd-hw
import expect from 'expect' import React from 'react' import TestUtils from 'react-addons-test-utils' import { Provider } from 'react-redux' import App from '../../containers/App' import configureStore from '../../store/configureStore' function setup(initialState) { const store = configureStore(initialState) const...
app/javascript/mastodon/components/load_more.js
cybrespace/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; export default class LoadMore extends React.PureComponent { static propTypes = { onClick: PropTypes.func, disabled: PropTypes.bool, visible: PropTypes.bool, } static defaultProps = { vi...
ext/knockout.validation-2.0.3.js
rziv/knockoutjs-jsonSchema
/*============================================================================= Author: Eric M. Barnard - @ericmbarnard License: MIT (http://opensource.org/licenses/mit-license.php) Description: Validation Library for KnockoutJS Version: 2.0.3 ===================...
ajax/libs/styled-components/1.4.5/styled-components.js
cdnjs/cdnjs
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) : (factory((global.styled = global.styled || {}),global.React)); }(this, (function (exports,React) { 'us...
week3/react/express-react/views/bootstrap/Button.js
jfhinchcliffe/Coderfactory_Term3_Notes
import React from 'react' export default function Button({ type = 'default', name="name" }){ return ( <div className={ ` btn btn-${ type }` }> { name } </div> ) }
src/components/Todo/__tests__/App.js
jigsawye/redux-hot-boilerplate
import test from 'ava'; import React from 'react'; import { shallow } from 'enzyme'; import App from '../App'; import AddTodo from '../../../containers/Todo/AddTodo'; import VisibleTodoList from '../../../containers/Todo/VisibleTodoList'; import Footer from '../Footer'; test('should render correctly', t => { const a...
app/containers/LoginPage.js
tempestaddepvc/proyecto-electron
import React from 'react'; import Paper from 'material-ui/Paper'; import Login from '../components/Login' export default class Header extends React.Component{ render(){ const styleDiv = { textAlign: 'center', marginTop: '95px' } const stylePaper = { height: 470, width: 400, textAlign: 'center'...
src/router.js
Speak-Easy/web-app
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import Router from 'react-routing/src/Router'; import http from './core/http'; import App from './components/App'; import ContentPage from './components/ContentPage'; import ContactPage from './components/ContactPage'; ...
node_modules/engine.io-client/node_modules/debug/src/browser.js
yaolei/Node-Clound
/** * This is the web browser implementation of `debug()`. * * Expose `debug()` as the module. */ exports = module.exports = require('./debug'); exports.log = log; exports.formatArgs = formatArgs; exports.save = save; exports.load = load; exports.useColors = useColors; exports.storage = 'undefined' != typeof chrom...
ajax/libs/engine.io-client/3.1.0/engine.io.js
jonobr1/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["eio"] = factory(); else root["eio"] = f...
Js/Skeleton/Components/Navigation/index.js
Webiny/Webiny
import React from 'react'; import _ from 'lodash'; import Webiny from 'webiny'; class Navigation extends Webiny.Ui.Component { constructor(props) { super(props); this.state = { user: null, highlight: null, display: window.outerWidth > 768 ? 'desktop' : 'mobile' ...
ajax/libs/jquery.fancytree/2.16.0/jquery.fancytree.js
AMoo-Miki/cdnjs
/*! * jquery.fancytree.js * Tree view control with support for lazy loading and much more. * https://github.com/mar10/fancytree/ * * Copyright (c) 2008-2016, Martin Wendt (http://wwWendt.de) * Released under the MIT license * https://github.com/mar10/fancytree/wiki/LicenseInfo * * @version 2.16.0 * @date 2016...
src/components/App.js
neikvon/react-tmpl
/* * @Author: inman * @Date: 2015-11-08 02:02:44 * @Last Modified by: inman * @Last Modified time: 2015-11-08 13:55:35 */ import React from 'react' class App extends React.Component { render() { return ( <div> {this.props.children} </div> ) } } export default App
fields/types/money/MoneyField.js
suryagh/keystone
import Field from '../Field'; import React from 'react'; import { FormInput } from 'elemental'; module.exports = Field.create({ displayName: 'MoneyField', valueChanged (event) { var newValue = event.target.value.replace(/[^\d\s\,\.\$€£¥]/g, ''); if (newValue === this.props.value) return; this.props.onChange(...
packages/wix-style-react/stories/utils/AutoExampleWrapper.js
wix/wix-style-react
import React from 'react'; import { RTLWrapper } from './RTLWrapper'; /** * Creates a component wrapper that Wrapper which: * - Adds autoExample__rtl prop mode if the URL query param `rtl` is defined */ export const createAutoExampleWrapper = componentType => { function AutoExampleWrapper(props) { // Prefixin...
misc/jquery.js
epicwhale/DrupalConnect-Drupal
/*! * 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....
internals/templates/containers/LanguageProvider/index.js
mattmanske/react-baseplate
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
app/packs/src/components/contextActions/ReportUtilButton.js
ComPlat/chemotion_ELN
import React from 'react'; import _ from 'lodash'; import PropTypes from 'prop-types'; import { Dropdown, MenuItem } from 'react-bootstrap'; import ElementActions from '../actions/ElementActions'; import UserStore from '../stores/UserStore'; import MatrixCheck from '../common/MatrixCheck'; const showReportContainer =...
app/app.js
andyzeli/Bil
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
app/jsx/routes.js
xiaobuu/ddz
'use strict'; import React from 'react'; import Home from './components/Home.jsx'; import Rooms from './components/Rooms.jsx'; import Game from './components/Game.jsx'; import {Route, RouteHandler, DefaultRoute} from 'react-router'; const App = React.createClass({ render: function () { return ( ...
packages/rn-tester/js/examples/SectionList/SectionListExample.js
arthuralee/react-native
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @flow */ 'use strict'; const RNTesterPage = require('../../components/RNTesterPage'); const React = require('react')...
app/containers/NotFoundPage/index.js
olivia-leach/jaylivia-react
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
ajax/libs/rxjs/2.2.27/rx.all.js
robfletcher/cdnjs
// 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/modules/remindersList/RemindersListRenderer.native.js
kuzzmi/rmndrz
import React from 'react'; import { StyleSheet, ListView, View, } from 'react-native'; import { RemindersListItem } from '../remindersListItem'; export default function(props) { const ds = new ListView.DataSource({ rowHasChanged: (r1, r2) => r1 !== r2, }); const data = ds.cloneWithRow...
example/src/screens/types/TopTabs.js
yusufyildirim/react-native-navigation
import React from 'react'; import {PixelRatio} from 'react-native'; class TopTabs extends React.Component { static navigatorStyle = { topTabTextColor: '#ffffff', topTabTextFontFamily: 'BioRhyme-Bold', selectedTopTabTextColor: '#ff505c', // Icons topTabIconColor: '#ffffff', selectedTopTabIcon...
sampleApps/react/src/main/webapp/app/book-form.js
willbuck/g3-2016-grails-gradle-node
/** * Created by zak on 11/28/16. */ import React from 'react'; class BookForm extends React.Component { constructor() { super(); this.state = { author: '', title: '' }; this.handleAuthorChange = this.handleAuthorChange.bind(this); this.handleTitleChange = this.handleTitleChange.bind(this); t...
src/components/projects/content/Huawei.js
tehfailsafe/portfolio
import React from 'react'; import Section from '../show/Section' import CopySplitLeft from '../show/CopySplitLeft' import CopySplitRight from '../show/CopySplitRight' import Copy from '../show/Copy' import ImageFull from '../show/ImageFull' import VideoPlayer from '../show/VideoPlayer' export default React.createClas...
app/javascript/mastodon/components/avatar_overlay.js
SerCom-KC/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class AvatarOverlay extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, friend:...
example/app.js
rnolan3/react-responsive-select
import React from 'react' import ReactDOM from 'react-dom' import Select from 'react-responsive-select' import options from './data' const target = document.getElementById('app') ReactDOM.render(<Select defaultValue="MO" name="test" optionKeys={ { label: 'name', value: 'abbreviation' } } options={ options } ...
ajax/libs/yui/3.8.0pr1/event-custom-base/event-custom-base-coverage.js
ljharb/cdnjs
if (typeof _yuitest_coverage == "undefined"){ _yuitest_coverage = {}; _yuitest_coverline = function(src, line){ var coverage = _yuitest_coverage[src]; if (!coverage.lines[line]){ coverage.calledLines++; } coverage.lines[line]++; }; _yuitest_coverfunc = functio...
server/imports/fixtures/orders.js
Thalhalla/reaction
import faker from "faker"; import _ from "lodash"; import { Random } from "meteor/random"; import { Factory } from "meteor/dburles:factory"; import { Orders, Products } from "/lib/collections"; import { getShop } from "./shops"; import { getUser } from "./users"; import { getPkgData } from "./packages"; import { getAdd...
node_modules/react/dist/react.js
kingoffighter97/ReactNote
/** * React v15.4.2 */ (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=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}...
packages/ringcentral-widgets-docs/src/app/pages/Components/TabNavigationButton/Demo.js
u9520107/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import TabNavigationButton from 'ringcentral-widgets/components/TabNavigationButton'; import CallsIcon from 'ringcentral-widgets/assets/images/Calls.svg'; import CallsHoverIcon from 'ringcentral-widgets/assets/images/CallsHover.svg'; const props = {}; props.icon =...
docs/src/app/components/pages/components/Stepper/CustomIcon.js
mmrtnz/material-ui
import React from 'react'; import { Step, Stepper, StepLabel, } from 'material-ui/Stepper'; import WarningIcon from 'material-ui/svg-icons/alert/warning'; import {red500} from 'material-ui/styles/colors'; /** * Custom icons can be used to create different visual states. */ class CustomIcon extends React.Compon...
node_modules/morgan/node_modules/debug/src/browser.js
Healthedata1/Slides
/** * This is the web browser implementation of `debug()`. * * Expose `debug()` as the module. */ exports = module.exports = require('./debug'); exports.log = log; exports.formatArgs = formatArgs; exports.save = save; exports.load = load; exports.useColors = useColors; exports.storage = 'undefined' != typeof chrom...
cm19/ReactJS/your-first-react-app-exercises-master/exercise-18/complete/friend-detail/FriendFlipper.js
Brandon-J-Campbell/codemash
import React from 'react'; import classNames from 'classnames'; import ThemeContext from '../../theme/context'; import styles from './FriendFlipper.css'; export default class FriendFlipper extends React.Component { state = { flipped: false, }; handleFlipped = () => { this.setState(prevProps => { ...
files/rtc/3.1.2/rtc.min.js
AdityaManohar/jsdelivr
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.RTC=e()}}(function(){return function e(t,n,r){functio...
dev/dev.js
canalplus/react-keys
import React from 'react'; import ReactDOM from 'react-dom'; import { createStore, applyMiddleware, combineReducers } from 'redux'; import { connect, Provider } from 'react-redux'; import { Binder, keysInit, keysReducer, keysSelector, removeBinder, } from '../src'; function reducer(state = { active: false },...
src/components/Menu.js
kevoree-modeling/mwg.web.boilerplate
import React, { Component } from 'react'; import { Nav } from 're-bulma'; class Menu extends Component { render() { return ( <Nav /> ) } } export default Menu;
node_modules/webpack-dev-server/client/overlay.js
fengkiej/chainsign
'use strict'; // The error overlay is inspired (and mostly copied) from Create React App (https://github.com/facebookincubator/create-react-app) // They, in turn, got inspired by webpack-hot-middleware (https://github.com/glenjamin/webpack-hot-middleware). const ansiHTML = require('ansi-html'); const Entities = requi...
exercise-07/src/components/AddPokemonPreview.js
learnapollo/pokedex-react
import React from 'react' import { Link } from 'react-router' export default class AddPokemonPreview extends React.Component { static propTypes = { trainerId: React.PropTypes.string.isRequired, } render () { return ( <Link to={`/create/${this.props.trainerId}`} style={{ minWidth: ...
ajax/libs/babel-core/5.0.1/browser-polyfill.js
dhowe/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...
packages/material-ui-icons/src/RepeatOneRounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M7 7h10v1.79c0 .45.54.67.85.35l2.79-2.79c.2-.2.2-.51 0-.71l-2.79-2.79c-.31-.31-.85-.09-.85.36V5H6c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1s1-.45 1-1V7zm10 10H7v-1.79c0-.45-.54-.67-.85-.35l-2.79 2.79c-.2.2-.2...
packages/neos-ui-editors/src/SecondaryEditors/MediaSelectionScreen/index.js
mstruebing/PackageFactory.Guevara
import React, {PureComponent} from 'react'; import PropTypes from 'prop-types'; import {neos} from '@neos-project/neos-ui-decorators'; import {$get} from 'plow-js'; import style from './style.css'; @neos() class MediaSelectionScreen extends PureComponent { static propTypes = { onComplete: PropTypes.func.i...
sites/all/modules/contrib-stable/jquery_update/replace/jquery/1.11/jquery.js
drupalconnect/finsearches
/*! * jQuery JavaScript Library v1.11.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2014-12-17T15:27Z */ (function( global, factory ) { if ...
ajax/libs/yui/3.11.0pr1/event-custom-base/event-custom-base-coverage.js
iamJoeTaylor/cdnjs
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/event-custom-base/event-custom-base.js']) { __coverage__['build/event-custom-base/event-custom-base.js'] = {"path":"build/event-custom-base/event-custom-base.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,...
app/js/app.js
michaelbrewerdavis/gerrit-mobile
import React from 'react' import ReactDOM from 'react-dom' import { createStore, compose, applyMiddleware } from 'redux' import { Provider } from 'react-redux' import thunk from 'redux-thunk' import { Router, Route, IndexRoute, hashHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' ...
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
andbyu/andbyu.github.io
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/scripts/views/queuePage.js
DBozz/IronPong
import React from 'react' import ACTIONS from './../actions.js' import STORE from './../store.js' import NavBar from './components/navBar' import Header from './components/header' import User from './../models/userModel.js' import {QueueCollection} from './../models/gameModel.js' const QueuePage = React.createClass({ ...
src/svg-icons/maps/local-airport.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalAirport = (props) => ( <SvgIcon {...props}> <path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/> </SvgIcon> ); MapsLocalA...
src/main/react-front-end/src/views/HomePageComponent.js
didclab/onedatashare
/** ##************************************************************** ## ## Copyright (C) 2018-2020, OneDataShare Team, ## Department of Computer Science and Engineering, ## University at Buffalo, Buffalo, NY, 14260. ## ## Licensed under the Apache License, Version 2.0 (the "License"); you ## may not use this ...
app/javascript/flavours/glitch/features/ui/components/bundle.js
vahnj/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const emptyComponent = () => null; const noop = () => { }; class Bundle extends React.Component { static propTypes = { fetchComponent: PropTypes.func.isRequired, loading: PropTypes.func, error: PropTypes.func, children: PropTypes.func.i...
react/features/video-menu/components/web/MuteVideoButton.js
gpolitis/jitsi-meet
/* @flow */ import React from 'react'; import ContextMenuItem from '../../../base/components/context-menu/ContextMenuItem'; import { translate } from '../../../base/i18n'; import { IconVideoOff } from '../../../base/icons'; import { connect } from '../../../base/redux'; import AbstractMuteVideoButton, { _mapState...
client/src/components/dashboard/Profile/Preferences/common/RadioButton.js
FCC-Alumni/alumni-network
import propTypes from 'prop-types'; import React from 'react'; const RadioButton = ({ onChange, name, label, checked }) => { return ( <div> <div className="field"> <div className="ui radio checkbox"> <input checked={checked} id={label.replace(/\s/g, '_')} ...
test/TableSpec.js
mengmenglv/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Table from '../src/Table'; describe('Table', function () { it('Should be a table', function () { let instance = ReactTestUtils.renderIntoDocument( <Table /> ); assert.equal(React.findDOMNode(instance).nodeName,...
ajax/libs/6to5/1.13.3/browser.js
tonytlwu/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return...
examples/using-wordpress/src/components/PostPreview.js
okcoker/gatsby
import React from 'react'; import PropTypes from 'prop-types'; import { Row, Page, Column, BlockLink, P2, P4 } from './styled'; import styled from 'styled-components'; import theme from './styled/theme'; const BlogPreviewImg = styled.img` width: 100%; `; const PostPreview = ({ article, id }) => { console.log('art...
src/components/Name.js
pcardune/pyret-ide
import React from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import {changeProgramName} from '../redux/actionCreators'; import Input from './Input'; import * as selectors from '../redux/selectors'; export class Name extends React.Component { render() { if (!this.props...
src/containers/StatementsPage/index.js
IDEOorg/steps-guide-builder
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import './index.less'; import StatementsSection from '../StatementsSection'; import Sidebar from '../../components/Sidebar'; const StatementsPage = (props) => { let sidebar...
packages/react/src/components/DataTable/__tests__/TableBatchActions-test.js
carbon-design-system/carbon-components
/** * 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 { mount } from 'enzyme'; import { TableBatchActions } from '../'; import { settings } from 'carbon-componen...
app/javascript/mastodon/components/timeline_hint.js
Ryanaka/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; const TimelineHint = ({ resource, url }) => ( <div className='timeline-hint'> <strong><FormattedMessage id='timeline_hint.remote_resource_not_displayed' defaultMessage='{resource} from other servers are ...
src/components/app.js
SiAdcock/gecko-o-meter
import React, { Component } from 'react'; import request from 'superagent'; import { currencies } from '../constants'; import Dial from './dial'; import Scale from './scale'; import getRotation from '../lib/getRotation'; export default class App extends Component { constructor(props) { super(props); this.sta...
Libraries/Components/DatePicker/DatePickerIOS.ios.js
kesha-antonov/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
ajax/libs/material-ui/4.9.10/esm/Checkbox/Checkbox.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 { refType } from '@material-ui/utils'; import SwitchBase from '../inte...
app/containers/HomePage.js
irc-moo/electron-client
import React, { Component } from 'react'; export default class HomePage extends Component { render() { return ( <div></div> ); } }
src/components/singlePhoto/SinglePhotoView.js
timLoewel/sites
/** * Created by tim on 10/03/17. */ import {connect} from 'react-redux'; import React from 'react'; import { AppRegistry, AsyncStorage, Button, StyleSheet, Text, View, } from 'react-native'; class SinglePhotoView extends React.Component { static navigationOptions = { tabBar: { label: 'SinglePhoto', ...
ajax/libs/material-ui/5.0.0-alpha.14/modern/ImageList/ImageListContext.min.js
cdnjs/cdnjs
import*as React from"react";const ImageListContext=React.createContext({});"production"!==process.env.NODE_ENV&&(ImageListContext.displayName="ImageListContext");export default ImageListContext;
tests/site8/code/homepage.js
dominikwilkowski/cuttlebelle
import React from 'react'; const Homepage = ({ main }) => ( <div> <pre>layout: homepage</pre> { main } </div> ); export default Homepage;
docs/html/jquery.js
mrhampson/FortNitta
/*! * jQuery JavaScript Library v1.7.1 * 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. ...
web/components/jquery/jquery.min.js
davidbauer/mapmytown
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.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=f.trim...
client/app/scripts/components/terminal.js
dilgerma/scope
/* eslint no-return-assign: "off", react/jsx-no-bind: "off" */ import debug from 'debug'; import React from 'react'; import ReactDOM from 'react-dom'; import { connect } from 'react-redux'; import classNames from 'classnames'; import { clickCloseTerminal } from '../actions/app-actions'; import { getNeutralColor } from...