path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/client/app/modules/routes.js | team-parsnips/guestbook | import React from 'react';
import {match, Route, IndexRoute, browserHistory} from 'react-router';
import Main from '../components/Main.jsx';
import Properties from '../components/properties/propertiesContainer.jsx';
import Analytics from '../components/analytics/analytics.jsx';
import MapContainer from '../components/m... |
svg-icons/content/send.js | myfintech/material-ui | '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... |
Gruntfile.js | GordonDiggs/relax | module.exports = function (grunt) {
'use strict';
var browserifyExternalOptions, browserifyExternalRequire;
browserifyExternalOptions = browserifyExternalRequire = [
'backbone',
'backbone-cortex',
'jquery',
'q',
'react',
'relax-framework'
];
var browserifyProductionOptions = {
i... |
src/containers/Consultas/consultaCalculoForm.js | MarceloProjetos/react-node-red |
import React, { Component } from 'react';
import {
OverlayTrigger,
Button,
Glyphicon,
Panel,
Col,
Row,
Grid,
FormGroup,
FormControl,
Table,
Checkbox,
Tooltip,
} from 'react-bootstrap';
import DatePicker from 'react-bootstrap-date-picker';
import uuid from 'node-uuid';
import { assign, ... |
ajax/libs/react-contextmenu/2.6.0/react-contextmenu.js | jonobr1/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactContextMenu=t(require("react")):e.ReactContextMenu=t(e.React)}(this,function(e){return function(e){function t(o){if(n[o])ret... |
yycomponent/grid/Col.js | 77ircloud/yycomponent | import React from 'react';
import { Col as _Col } from 'antd';
class Col extends React.Component{
constructor(props){
super(props);
}
render(){
return (<_Col {...this.props}/>);
}
}
export default Col
|
app/javascript/mastodon/features/account_timeline/index.js | h-izumi/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { fetchAccount } from '../../actions/accounts';
import { refreshAccountTimeline, expandAccountTimeline } from '../../actions/timelines';
import StatusL... |
src/components/Footer/Footer.js | ChrisWC/MaterL | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import withStyles from 'isomorp... |
app/javascript/mastodon/features/ui/components/image_loader.js | vahnj/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import ZoomableImage from './zoomable_image';
export default class ImageLoader extends React.PureComponent {
static propTypes = {
alt: PropTypes.string,
src: PropTypes.string.isRequired,
previewSrc: PropT... |
files/react/0.10.0/react.min.js | cake654326/jsdelivr | /**
* React v0.10.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 required by app... |
react/features/settings/components/web/MoreTab.js | jitsi/jitsi-meet | // @flow
import { Checkbox } from '@atlaskit/checkbox';
import DropdownMenu, {
DropdownItem,
DropdownItemGroup
} from '@atlaskit/dropdown-menu';
import React from 'react';
import keyboardShortcut from '../../../../../modules/keyboardshortcut/keyboardshortcut';
import { AbstractDialogTab } from '../../../base/d... |
wp-content/plugins/wfm-slaider/js/jquery-1.11.0.min.js | boltogriz/mod | /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
client/src/components/utils/FormActions.js | DjLeChuck/recalbox-manager | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { translate } from 'react-i18next';
import Button from 'react-bootstrap/lib/Button';
import Glyphicon from 'react-bootstrap/lib/Glyphicon';
class FormActions extends Component {
static propTypes = {
t: PropTypes.func.isRequired,... |
data-viz/react/game-of-life/src/BoardContainer.js | mkermani144/freecodecamp-projects | import React, { Component } from 'react';
import Board from './Board';
class BoardContainer extends Component {
constructor(props) {
super(props);
this.state = {
states: this.randomArray()
};
}
componentWillUnmount() {
clearTimeout(this.timeout);
}
render() {
clearTimeout(this.timeo... |
node_modules/react-error-overlay/lib/components/Header.js | rwarr/futaba-db | /**
* 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.
*/
import Rea... |
ajax/libs/webshim/1.15.1/dev/shims/es6.js | samthor/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... |
src/js/components/icons/base/PlatformDos.js | odedre/grommet-final | /**
* @description PlatformDos 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.
*... |
packages/cf-component-card/src/Card.js | mdno/mdno.github.io | import React from 'react';
import PropTypes from 'prop-types';
class Card extends React.Component {
render() {
return (
<section id={this.props.id} className="cf-card">
{this.props.children}
</section>
);
}
}
Card.propTypes = {
id: PropTypes.string,
children: PropTypes.node
};
ex... |
app/javascript/mastodon/features/status/components/action_bar.js | koba-lab/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import IconButton from '../../../components/icon_button';
import ImmutablePropTypes from 'react-immutable-proptypes';
import DropdownMenuContainer from '../../../containers/dropdown_menu_container';
import { defineMess... |
src/svg-icons/communication/phonelink-lock.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhonelinkLock = (props) => (
<SvgIcon {...props}>
<path d="M19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm-8.2 10V9.5C10.8 8.1 9.4 7 8 7S5.2 8.1 5.2 ... |
app/assets/javascripts/components/EditorApp.js | rnplay/rnplay-web | 'use strict';
import React, { Component } from 'react';
import classNames from 'classnames';
import CodeMirror from 'codemirror';
import 'codemirror/addon/search/searchcursor';
import 'codemirror/addon/dialog/dialog';
import 'codemirror/addon/edit/matchbrackets';
import 'codemirror/mode/javascript/javascript';
import ... |
src/layouts/Header/components/Header.js | dkanas/timelog | import React from 'react'
import LoginButton from './LoginButton'
import AvatarMenu from './AvatarMenu'
import './Header.scss'
const AuthAwareComponent = props => props.isAuthenticated
? <AvatarMenu {...props} />
: <LoginButton />
const Header = props => (
<header className='header__container'>
<h1>Timelog... |
jquery-1.9.1.min.js | willicab/Firefeed2 | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
spec/javascripts/jsx/blueprint_courses/components/LockCheckListSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/Checkbox.js | apkiernan/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import warning from 'warning';
import { bsClass, getClassSet, prefix, splitBsProps }
from './utils/bootstrapUtils';
const propTypes = {
inline: React.PropTypes.bool,
disabled: React.PropTypes.bool,
/**
* Only valid if `inline` is not set.
*... |
src/js/components/CalculatorResult/CalculatorResultContainer.react.js | ali404/calculator-on-steroids | import React from 'react'
import Base from '../_helpers/BaseComponent'
import CalculatorResult from './CalculatorResult.react'
import CalculatorStore from '../../stores/CalculatorStore'
export default class CalculatorResultContainer extends Base {
constructor() {
super()
this._bind(
'... |
src/containers/FlashMessage.js | iris-dni/iris-frontend | import React from 'react';
import { connect } from 'react-redux';
import FlashMessage from 'components/FlashMessage';
import { hideFlashMessage } from 'actions/FlashActions';
const FlashMessageContainer = (props) => (
props.text
? <FlashMessage {...props} />
: null
);
FlashMessageContainer.propTypes = {
t... |
src/demo.js | ikr/react-hotels-on-map | import React from 'react';
import HotelsOnMap from './index';
import demoData from './demoData';
class StatefulContainer extends React.Component {
constructor(props) {
super(props);
this.state = {mode: 'all'};
}
render() {
return <div>
<p>
<select value=... |
frontend/src/Calendar/Day/DayOfWeek.js | lidarr/Lidarr | import classNames from 'classnames';
import moment from 'moment';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import * as calendarViews from 'Calendar/calendarViews';
import getRelativeDate from 'Utilities/Date/getRelativeDate';
import styles from './DayOfWeek.css';
class DayOfWeek ex... |
src/windowFocus.js | gabrielbull/react-desktop | import { windowIsFocused } from './monitor';
import React, { Component } from 'react';
function WindowFocus(options, ComposedComponent) {
return class extends Component {
constructor() {
super();
this.state = {
isWindowFocused: windowIsFocused()
};
}
componentDidMount() {
... |
packages/material-ui-shell/src/pages/LandingPage/LandingPage.js | TarikHuber/react-most-wanted | import React from 'react'
export default function () {
return <div>Landing Page MUI</div>
}
|
src/routes/Home/components/HomeView.js | nivas8292/myapp | import React from 'react'
import DuckImage from '../assets/Duck.jpg'
import './HomeView.scss'
export const HomeView = () => (
<div>
<h4>Welcome!</h4>
<img alt='This is a duck, because Redux!' className='duck' src={DuckImage} />
</div>
)
export default HomeView
|
app/javascript/mastodon/features/bookmarked_statuses/index.js | yukimochi/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchBookmarkedStatuses, expandBookmarkedStatuses } from '../../actions/bookmarks';
import Column from '../ui/components/column';
import ColumnHeader... |
app/containers/PrimaryBlock/EditBlock.js | klpdotorg/tada-frontend | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import get from 'lodash.get';
import isEmpty from 'lodash.isempty';
import FRC from 'formsy-react-components';
import Formsy from 'formsy-react';
import { Confirm } from '../Modal';
import {
modifyBo... |
src/modules/home/routes/index.js | CtrHellenicStudies/Commentary | import React from 'react';
import { Route } from 'react-router';
import HomeLayout from '../layouts/HomeLayout';
export default (
<Route exact path="/" component={HomeLayout} />
);
|
packages/components/src/Actions/ActionIconToggle/ActionIconToggle.component.js | Talend/ui | import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';
import { Button } from 'react-bootstrap';
import Icon from '../../Icon';
import TooltipTrigger from '../../TooltipTrigger';
import getPropsFrom from '../../utils/getPropsFrom';
import OverlayTrigger from '../../OverlayT... |
js/src/FirstRun/Completed/completed.js | destenson/ethcore--parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any lat... |
node_modules/react-icons/io/ios-arrow-forward.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const IoIosArrowForward = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m12.5 10l2.5-2.5 12.5 12.5-12.5 12.5-2.5-2.5 9.9-10z"/></g>
</Icon>
)
export default IoIosArrowForward
|
ajax/libs/material-ui/4.11.2/RootRef/RootRef.js | cdnjs/cdnjs | "use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _classCallCheck2 = _interopRequir... |
src/interface/common/Alert/Info.js | sMteX/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import Icon from 'interface/icons/Information';
import Alert from './index';
const Info = ({ children, ...others }) => (
<Alert kind="info" {...others}>
<div className="content-middle">
<div className="icon-container">
<Icon />
... |
example/__tests__/index.android.js | 3dEYE/react-native-exoplayer | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
ajax/libs/orb/1.0.6/orb.min.js | iamso/cdnjs | /**
* orb v1.0.6, Pivot grid javascript library.
*
* Copyright (c) 2014-2015 Najmeddine Nouri <devnajm@gmail.com>.
*
* @version v1.0.6
* @link http://nnajm.github.io/orb/
* @license MIT
*/
"use strict";!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==t... |
ajax/libs/mediaelement/2.2.0/jquery.js | underyx/cdnjs | /*!
* jQuery JavaScript Library v1.6.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.
... |
misc/jquery.js | AppConcur/islacart |
/*!
* 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/List/__tests__/List_test.js | react-fabric/react-fabric | import React from 'react'
import { render } from 'enzyme'
import test from 'tape'
import List from '..'
import ListItem from '../../ListItem'
test('List', t => {
t.ok(List, 'export')
t.equal(List.displayName, 'FabricComponent(List)')
t.end()
})
test('List#render - simple', t => {
const container = render(
... |
sites/default/files/js/js_wMtL0hODYohvZ2UqGevCW6KHSPgX4-F5fUuY8hrsiJE.js | maitak/testing | /*! jQuery v2.1.4 | (c) 2005, 2015 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 windo... |
ajax/libs/analytics.js/2.3.23/analytics.js | ematsusaka/cdnjs | (function outer(modules, cache, entries){
/**
* Global
*/
var global = (function(){ return this; })();
/**
* Require `name`.
*
* @param {String} name
* @param {Boolean} jumped
* @api public
*/
function require(name, jumped){
if (cache[name]) return cache[name].exports;
if (mo... |
react-app/app.js | gorjuspixels/cloud-computing-whois-app | import injectTapEventPlugin from 'react-tap-event-plugin'
import React from 'react'
import ReactDOM from 'react-dom'
import fetch from 'isomorphic-fetch'
import TextField from 'material-ui/lib/text-field'
import LeftNav from 'material-ui/lib/left-nav'
import MenuItem from 'material-ui/lib/menus/menu-item'
import Raised... |
src/bundles/SellerRegistration/components/Finish.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react';
import PropTypes from 'prop-types'
const Finish = ({onClick}) => (
<div>
<h1 tabIndex="-1">That is it for now!</h1>
<p>
We are just putting the finishing touches on our improved Terms of Service and Marketplace Master
Agreement.</p>
<p> Onc... |
client/src/containers/Content.js | esausilva/profile-updater | import React from 'react';
import { node, string } from 'prop-types';
import { Container } from 'semantic-ui-react';
import Footer from '../components/Footer';
import { main } from './Content.css';
const propTypes = {
children: node.isRequired,
align: string
};
const defaultProps = {
align: 'left'
};
/**
* ... |
src/components/todo/TodoInput.js | chipnin/React-TodoApp | import React from 'react';
export default class TodoInput extends React.Component {
constructor(props) {
super(props);
this.handleKeyPress = this.handleKeyPress.bind(this);
}
handleKeyPress(e) {
this.props.onInputKeyPress(e);
}
render() {
return (
<inpu... |
actor-apps/app-web/src/app/components/common/Favicon.react.js | ONode/actor-platform | import React from 'react';
export default class Fav extends React.Component {
static propTypes = {
path: React.PropTypes.string
}
constructor(props) {
super(props);
//// Create link element and it's attributes
//let favicon = document.createElement('link');
//let rel = document.createAttrib... |
node_modules/redbox-react/examples/react-transform-catch-errors/index.js | hnikupet/dddhackaton | import React from 'react'
import App from './components/App'
const root = document.getElementById('root')
React.render(<App />, root)
|
frontend/src/components/request-activation-link.js | 1905410/Misago | import React from 'react'; // jshint ignore:line
import misago from 'misago/index';
import Button from 'misago/components/button'; // jshint ignore:line
import Form from 'misago/components/form';
import ajax from 'misago/services/ajax';
import snackbar from 'misago/services/snackbar';
import * as validators from 'misag... |
frontend/src/Settings/Indexers/Indexers/AddIndexerPresetMenuItem.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import MenuItem from 'Components/Menu/MenuItem';
class AddIndexerPresetMenuItem extends Component {
//
// Listeners
onPress = () => {
const {
name,
implementation
} = this.props;
this.props.onPress({
na... |
src/public/assetsv2/plugins/jquery/jquery-1.11.1.min.js | dreamcodexyz/lar-goe | /*! 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... |
gomoku/lib/jquery-ui-1.11.4/external/jquery/jquery.js | shinxi/shinxi.github.io | /*!
* jQuery JavaScript Library v1.10.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-03T13:48Z
*/
(function( window, undefined ) {
// ... |
react/DropdownList/DropdownList.demo.js | seekinternational/seek-asia-style-guide | import React from 'react';
import DropdownList from './DropdownList';
import * as sketch from './DropdownList.sketch';
import { ListItem } from 'seek-asia-style-guide/react';
const list = [
<ListItem key="1" value="Children 1" noShadow />,
<ListItem key="2" value="Children 2" noShadow />,
<ListItem key="3" value... |
docs/src/app/app.js | IsenrichO/mui-with-arrows | import React from 'react';
import {render} from 'react-dom';
import {Router, useRouterHistory} from 'react-router';
import AppRoutes from './AppRoutes';
import injectTapEventPlugin from 'react-tap-event-plugin';
import {createHashHistory} from 'history';
// Helpers for debugging
window.React = React;
window.Perf = req... |
src/index.js | codella/snake | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './components/App';
ReactDOM.render(<App />, document.getElementById('root'));
|
client/src/components/Draftail/decorators/TooltipEntity.js | rsalmaso/wagtail | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { Icon } from 'draftail';
import Tooltip from '../Tooltip/Tooltip';
import Portal from '../../Portal/Portal';
const shortenLabel = (label) => {
let shortened = label;
if (shortened.length > 25) {
shortened = `${shortened.slic... |
packages/material-ui-icons/src/PhonelinkOffRounded.js | callemall/material-ui | import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M21 5c0-.55-.45-1-1-1H6.83l2 2H20c.55 0 1-.45 1-1zm0 3h-6c-.55 0-1 .45-1 1v2.17l2 2V10h4v7.17l2 2V9c0-.55-.45-1-1-1zM2.1 4.93L4 6.83V17h-.5c-.83 0-1.5.67-1.5 1.5S2.67 20 3.5 20h7c.83 0 1.5-.67 1.... |
src/px-popover/index.js | jonniespratley/px-components-react | import React from 'react';
import classnames from 'classnames';
import BaseComponent from '../base-component';
import stylesheet from './style.scss';
/**
* px-popover component
*/
export default class Popover extends BaseComponent {
constructor(props){
super(props, {displayName: 'Popover'});
}
render(){
... |
src/js/app.js | Cinezaster/serialPortJsonClient | 'use-strict'
import React from 'react'
import { render } from 'react-dom'
import WebSocketConnection from './containers/webSocketConnection'
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import reducer from './reducers/index'
const store = createStore(reducer,
window.devToolsExtension &&... |
ajax/libs/webshim/1.14.4/dev/shims/combos/26.js | wackyapples/cdnjs | /**
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
* v1.2.1
*
* Copyright 2013, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*
* Date: 2014-05-14
*/
/**
* Compiled inline version. (Library ... |
gatsby-strapi-tutorial/cms/plugins/upload/admin/src/containers/NotFoundPage/index.js | strapi/strapi-examples | /**
* 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 neccessity for you then you can refactor i... |
src/CreateRuleForm.spec.js | andresilveira/jsrulez | import React from 'react';
import { shallow } from 'enzyme';
import CreateRuleForm from './CreateRuleForm';
import Field from './Field';
import ErrorMessages from './ErrorMessages';
describe('CreateRuleForm', () => {
let createRuleForm, onFieldChange;
describe('contain Fields for', () => {
beforeEach(() => {... |
ajax/libs/babel-core/5.8.12/browser-polyfill.min.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/Glyphicon.js | pandoraui/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const Glyphicon = React.createClass({
propTypes: {
/**
* bootstrap className
* @private
*/
bsClass: React.PropTypes.string,
/**
* An icon name. See e.g. http://getbootstrap.com/components/#glyphicons
*/
glyph: Re... |
ajax/libs/forerunnerdb/1.3.385/fdb-all.min.js | jonobr1/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... |
ajax/libs/js-data/2.0.0-beta.8/js-data-debug.js | nareshs435/cdnjs | /*!
* js-data
* @version 2.0.0-beta.8 - Homepage <http://www.js-data.io/>
* @author Jason Dobry <jason.dobry@gmail.com>
* @copyright (c) 2014-2015 Jason Dobry
* @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE>
*
* @overview Robust framework-agnostic data store.
*/
(function webpackUnivers... |
ajax/libs/vega-lite/3.0.0-rc13/vega-lite.js | sufuf3/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.vl = {}));
}(this, function (exports) { 'use strict';
var name = "vega-lit... |
index.js | greatbsky/react-native-webview2 | 'use strict';
import React, { Component } from 'react';
import {
View,
WebView
} from 'react-native';
import styles from './style/index.js';
/**
通过webview里网页的url的hash进行js相互调用,并实现autoheight功能,只支持source={uri},不支持source={html}
Demo:
import Web from 'react-native-webview2';
<Web
evalReturn={(r) => {eval(r)}... |
src/components/ReplEntryIcon.js | boneskull/Mancy | import React from 'react';
export default class ReplEntryIcon extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className='repl-entry-icon'>
{
this.props.collapse
? <i className="fa fa-angle-left" title="expand command" onClick={th... |
app/routes.js | caiizilaz/exchange-rate | /* eslint flowtype-errors/show-errors: 0 */
import React from 'react';
import { Switch, Route } from 'react-router';
import App from './containers/App';
import HomePage from './containers/HomePage';
import CounterPage from './containers/CounterPage';
export default () => (
<App>
<Switch>
<Route path="/coun... |
ajax/libs/redux-form/6.0.4/redux-form.min.js | kiwi89/cdnjs | !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("react-redux"),require("redux")):"function"==typeof define&&define.amd?define(["react","react-redux","redux"],r):"object"==typeof exports?exports.ReduxForm=r(require("react"),require("react-redux"),require("redux"... |
frontend-app/article/editor/button/save-draft-button.js | easybird/easyblog | import React from 'react';
class SaveDraftButton extends React.Component {
render() {
return (
<a className="waves-effect waves-light red lighten-1 btn" onClick={this.props.onSaveDraft} >Save Draft</a>
)
}
}
SaveDraftButton.propTypes = {
onSaveDraft: React.PropTypes.func.isReq... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | danegolfs/customCab | import React from 'react';
import { render } from 'react-dom';
// 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';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/Pokedex.js | rodrigo-puente/poke-nostalgia | import React, { Component } from 'react';
import PokemonListContainer from './containers/pokemonList';
class Pokedex extends Component {
render() {
return (
<div>
<PokemonListContainer/>
</div>
);
}
}
export default Pokedex;
|
ajax/libs/styled-components/3.2.1-0/styled-components.js | seogi1004/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.React));
}(this, (function (exports,React) { 'use strict';
var R... |
active.ios.js | paulunits/tiptap | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Image,
AsyncStorage,
} from 'react-native';
import NavigationBar from 'react-native-navbar';
import BeaconBroadcast from 'beaconbroadcast';
class BeaconBroadcaster extends Component {
componentDidMount() {
AsyncStorage.getItem(
... |
__tests__/components/Video-test.js | nickjvm/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React from 'react';
import renderer from 'react-test-renderer';
import Video from '../../src/js/components/Video';
// needed because this:
// https://github.com/facebook/jest/issues/1353
jest.mock('react-dom');
describe('Video', () => {
i... |
ajax/libs/material-ui/5.0.0-alpha.25/SwipeableDrawer/SwipeArea.min.js | cdnjs/cdnjs | import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";import*as React from"react";import PropTypes from"prop-types";import clsx from"clsx";import withStyles from"../styles/withStyles";import capitalize from"../utils/ca... |
WebApp/wwwroot/ReactApp/src/components/codecamp/speakers/SpeakerListItem.js | pkellner/svcc-react4 | import React from 'react';
import PropTypes from 'prop-types';
export default function SpeakerListItem(props) {
const { id, firstName, lastName, company, imageUrl } = props;
const img = () => {
if (process.env.NODE_ENV === 'development') {
return (
<img
src={`assets/images/speakers/Spe... |
ajax/libs/yui/3.9.0/event-focus/event-focus-debug.js | JohnKim/cdnjs | YUI.add('event-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
arrayIndex = Y.Array.indexOf,
useActivate = (function() {
... |
packages/reaction-core/server/methods/workflows/orders.js | ScyDev/reaction | /**
* Step 4 of the "workflow/pushOrderWorkflow" flow
* The following methods are called from Orders.before.update hook.
*
* @see packages/reaction-schema/common/hooks/orders.js
* @see packages/reaction-core/common/methods/workflow.js
*/
Meteor.methods({
/**
* workflow/coreOrderWorkflow/coreOrderProcessing
... |
redpen-server/src/main/webapp/js/jquery-1.11.0.min.js | jmoriya/redpen | /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
src/components/slide6-proptype.js | lucky3mvp/react-demo | import React from 'react'
// export default React.createClass({
export default class proptype extends React.Component{
constructor (props) {
super(props);
}
PropTypes: {
age: React.PropTypes.number.isRequired
}
render () {
let type = typeof this.props.age;
return(
<p className="m-prop-test">我{this.pr... |
still/src/index.js | marktheshark13/Stillwaters-farm | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './components/App/App';
import 'bootstrap/dist/css/bootstrap.css';
import { BrowserRouter } from 'react-router-dom';
ReactDOM.render(<BrowserRouter><App /></BrowserRouter>, document.getElementById('root'));
|
node_modules/react-bootstrap/es/SplitToggle.js | geng890518/editor-ui | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import DropdownToggle fr... |
js/components/card/card-image.js | soltrinox/MarketAuth.ReactNative |
import React, { Component } from 'react';
import { Image } from 'react-native';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Icon, Card, CardItem, Text, Thumbnail, View } from 'native-base';
import styles fr... |
ajax/libs/react-three-renderer/3.2.4/descriptors/Object/Helper/ArrowHelperDescriptor.js | cdnjs/cdnjs | 'use strict';
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope... |
HocaOkudumu.Web/swagger-ui/lib/jquery-1.8.0.min.js | evrenakar/HocaOkudumu-API | /*! jQuery v@1.8.0 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==... |
src/renderer/components/editor/EditorToolbar.js | joostory/tistory-editor | import React from 'react'
import { Toolbar, Button } from '@mui/material'
const styles = {
root: {
position: 'fixed',
top: 0,
left: 0,
right: 0,
height:(theme) => theme.spacing(8),
zIndex: 10
}
}
export default function EditorToolbar({ title, onSaveClick, onCancelClick }) {
return (
... |
ajax/libs/F2/1.3.3/f2.no-bootstrap.min.js | Olical/cdnjs | /*! F2 - v1.3.3 - 04-07-2014 - See below for copyright and license */
!function(exports){if(!exports.F2||exports.F2_TESTING_MODE){/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obta... |
ajax/libs/forerunnerdb/1.3.763/fdb-core+views.js | maruilian11/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... |
app/components/Trees/VerticalTree.js | ivtpz/brancher | import React, { Component } from 'react';
import * as styles from '../Home.scss';
import CodeEditor from '../CodeEditor';
import PopOver from '../../containers/PopOver';
import Visualizer from './Visualizer';
import { flatten, pause, highlight } from '../../utils/vertTreeUtils';
import tutorialWindows from '../../tutor... |
app/javascript/mastodon/features/getting_started/components/trends.js | abcang/mastodon | import React from 'react';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { ImmutableHashtag as Hashtag } from 'mastodon/components/hashtag';
import { FormattedMessage } from 'react-intl';
expor... |
src/svg-icons/communication/import-export.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationImportExport = (props) => (
<SvgIcon {...props}>
<path d="M9 3L5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3z"/>
</SvgIcon>
);
CommunicationImportExport = pure(CommunicationImpo... |
node_modules/recharts/demo/component/AreaChart.js | SerendpityZOEY/Fixr-RelevantCodeSearch | import React from 'react';
import { changeNumberOfData } from './utils';
import { AreaChart, Area, XAxis, YAxis, Tooltip, CartesianGrid, Brush,
ReferenceArea, ReferenceLine, ReferenceDot, ResponsiveContainer } from 'recharts';
const data = [
{ name: 'Page A', uv: 4000, pv: 2400, amt: 2400 },
{ name: 'Page B', uv... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.