path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/extjs/4.2.1/src/layout/container/Card.min.js | ksaitor/cdnjs | Ext.define("Ext.layout.container.Card",{extend:"Ext.layout.container.Fit",alternateClassName:"Ext.layout.CardLayout",alias:"layout.card",type:"card",hideInactive:true,deferredRender:false,getRenderTree:function(){var a=this,b=a.getActiveItem();if(b){if(b.hasListeners.beforeactivate&&b.fireEvent("beforeactivate",b)===fa... |
src/components/Tabs/components/InkTabBarMixin.js | zhangjianguo1500/f01 | import { setTransform, isTransformSupported } from './utils';
import React from 'react';
import classnames from 'classnames';
export function getScroll(w, top) {
let ret = w[`page${top ? 'Y' : 'X'}Offset`];
const method = `scroll${top ? 'Top' : 'Left'}`;
if (typeof ret !== 'number') {
const d = w.document;
... |
src/routes/index.js | joakikr/SAAS | // Mapping of URL's
import React from 'react';
import { Route } from 'react-router';
import App from '../components/app';
export default (
<Route path="/" component={App} >
</Route>
); |
files/usr/share/cinnamon/applets/inhibit@cinnamon.org/applet.js | linuxmint/Cinnamon | const Applet = imports.ui.applet;
const Gio = imports.gi.Gio;
const Lang = imports.lang;
const St = imports.gi.St;
const Tooltips = imports.ui.tooltips;
const PopupMenu = imports.ui.popupMenu;
const GnomeSession = imports.misc.gnomeSession;
const INHIBIT_IDLE_FLAG = 8;
const INHIBIT_SLEEP_FLAG = 4;
class InhibitSwitc... |
src/routes.js | shan-du/cats | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './containers/App';
import Cats from './containers/Cats';
export default (
<Route path="/" component={App}>
<IndexRoute component={Cats}/>
</Route>
);
|
app/app.entry.js | meanJim/dough | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, IndexRoute } from 'react-router';
import { Provider } from 'react-redux';
import { reduxReducers } from './reducers/index';
import { reduxMiddleware } from './utilities/middleware';
import Base from './components/base/index';
import ... |
theme/src/components/checkoutForm/paymentForm/LiqPay.js | cezerin/cezerin | import React from 'react';
let scriptAdded = false;
export default class PayPalButton extends React.Component {
constructor(props) {
super(props);
}
addScript = () => {
if (scriptAdded) {
this.executeScript();
return;
}
const SCRIPT_URL = 'https://static.liqpay.ua/libjs/checkout.js';
const contain... |
examples/pinterest/app.js | mjw56/react-router | import React from 'react';
import { Router, Route, IndexRoute, Link } from 'react-router';
var PICTURES = [
{ id: 0, src: 'http://placekitten.com/601/601' },
{ id: 1, src: 'http://placekitten.com/610/610' },
{ id: 2, src: 'http://placekitten.com/620/620' }
];
var Modal = React.createClass({
styles: {
posi... |
node_modules/react-bootstrap/es/InputGroupAddon.js | rblin081/drafting-client | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
app/components/List/index.js | chaintng/react-boilerplate | import React from 'react';
import Ul from './Ul';
import Wrapper from './Wrapper';
function List(props) {
const ComponentToRender = props.component;
let content = (<div></div>);
// If we have items, render them
if (props.items) {
content = props.items.map((item, index) => (
<ComponentToRender key={... |
test/test_helper.js | badapple47/React-youtube | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
src/renderers/shared/reconciler/__tests__/ReactCompositeComponentDOMMinimalism-test.js | ThinkedCoder/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.
*
* @emails react-co... |
src/Samples/Advanced/PartialsSample/Scripts/jquery-1.4.1-vsdoc.js | RobertTheGrey/spark | /*
* This file has been commented to support Visual Studio Intellisense.
* You should not use this file at runtime inside the browser--it is only
* intended to be used only for design-time IntelliSense. Please use the
* standard jQuery library for all production use.
*
* Comment version: 1.4.1a
*/
/*!... |
node_modules/babel-traverse/lib/path/lib/hoister.js | eikzon/inimz-pegasus-bak | "use strict";
var _classCallCheck = require("babel-runtime/helpers/class-call-check")["default"];
var _getIterator = require("babel-runtime/core-js/get-iterator")["default"];
var _interopRequireWildcard = require("babel-runtime/helpers/interop-require-wildcard")["default"];
exports.__esModule = true;
var _babelTyp... |
src/containers/NewGameForm/index.js | alimek/scrum-poker-react | import React from 'react';
import PropTypes from 'prop-types';
import { withRouter } from 'react-router';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Button, Input } from '../../components';
import { createGame } from '../../actions/game';
class NewGameForm extends Reac... |
examples/CustomArrows.js | akiran/react-slick | import React, { Component } from "react";
import Slider from "../src/slider";
function SampleNextArrow(props) {
const { className, style, onClick } = props;
return (
<div
className={className}
style={{ ...style, display: "block", background: "red" }}
onClick={onClick}
/>
);
}
function ... |
tests/components/Header/Header.spec.js | leviluo/oneToone | import React from 'react'
import { Header } from 'components/Header/Header'
import classes from 'components/Header/Header.scss'
import { IndexLink, Link } from 'react-router'
import { shallow } from 'enzyme'
describe('(Component) Header', () => {
let _wrapper
beforeEach(() => {
_wrapper = shallow(<Header/>)
... |
ajax/libs/mediaelement/2.3.2/jquery.js | wallin/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.
... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/react-router/es/Route.js | bhathiya/test | 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]; } } } return target; };
function _classCallCheck(instance, Constructor) { if (!(insta... |
Dialog/Dialog.spec.js | mmellado/airtame-gooey-react | import React from 'react';
import { shallow, mount } from 'enzyme';
import Dialog from './Dialog';
describe('<Dialog />', () => {
it('should render the dialog', () => {
const wrapper = shallow(
<Dialog isOpen onCancel={e => false} onConfirm={e => false}>
content
</Dialog>
);
expect(wr... |
imports/ui/pages/Index/containers/ContentContainer.js | ShinyLeee/meteor-album-app | import map from 'lodash/map';
import React from 'react';
import { compose } from 'redux';
import { Meteor } from 'meteor/meteor';
import { withTracker } from 'meteor/react-meteor-data';
import { withRouter } from 'react-router-dom';
import { setDisplayName } from 'recompose';
import { Images } from '/imports/api/images... |
packages/material-ui-icons/src/AirplanemodeInactiveSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5v3.11l8.65 8.65L21 16zm-2.27 5l1.41-1.41L4.41 3.86 3 5.27l4.99 4.99L2 14v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-3.73z" />
, 'AirplanemodeIn... |
ajax/libs/webshim/1.14.3-RC1/dev/shims/combos/26.js | tambien/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 ... |
src/svg-icons/device/battery-charging-60.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryCharging60 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V11h3.87L13 7v4h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9l1... |
src/containers/organizations/components/OrganizationDomainsSectionComponent.js | kryptnostic/gallery | import React from 'react';
import Immutable from 'immutable';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import StyledFlexContainerStacked from '../../../components/flex/StyledFlexContainerStacked';
im... |
scripts/formElements/Email.js | ButenkoT/react-practice- | import React from 'react';
import styles from '../Form.less';
const isValid = email => /^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/.test(email);
const Email = React.createClass({
propTypes: {
onChange: React.PropTypes.func.isRequired,
isValid: React.PropTypes.func.isRequired,
email: React.PropTy... |
examples/with-apollo-and-redux/pages/_app.js | BlancheXu/test | import App from 'next/app'
import React from 'react'
import { Provider } from 'react-redux'
import withRedux from 'next-redux-wrapper'
import { initStore } from '../lib/store'
class MyApp extends App {
static async getInitialProps ({ Component, router, ctx }) {
let pageProps = {}
if (Component.getInitialPro... |
test/SafeAnchorSpec.js | thealjey/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import SafeAnchor from '../src/SafeAnchor';
describe('SafeAnchor', function() {
it('renders an anchor tag', function() {
const instance = ReactTestUtils.renderIntoDocument(<SafeAnchor />);
const node = React.findDOMNode(instanc... |
packages/icons/src/md/toggle/Star.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdStar(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M43.976 19.457l-10.9 9.46 3.26 14.06-12.36-7.46-12.36 7.46 3.28-14.06-10.92-9.46 14.38-1.22 5.62-13.26 5.62 13.24 14.38 1.24zm-20 12.32l7.54 4.56-2-8.56... |
client/src/index.js | smtech/stmarks-search | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
import '../node_modules/bootstrap/dist/css/bootstrap.min.css'
import '../css/index.css'
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/routes/home/index.js | LeraSavchenko/Maysternia | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present 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 Home from './Home';
i... |
src/components/Feedback/Feedback.js | deslee/reactstarterkitattempt | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
//@withStyles(styles)
class Feedback extends Component {
render() {
return (
<div className="Feedba... |
example/src/Container.web.js | RafalFilipek/just-box | import React from 'react';
import { Box } from 'just-box';
export default (props) => (
<Box {...props} />
) |
ajax/libs/rxjs/2.3.19/rx.lite.js | rivanvx/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... |
example/v9.x.x/storybook/src/index.js | i18next/react-i18next | import React from 'react';
import ReactDOM from 'react-dom';
import { I18nextProvider } from 'react-i18next';
import './index.css';
import App from './App';
import i18n from './i18n';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(
<I18nextProvider i18n={i18n}>
<App />
</I18nextP... |
app/containers/tutorial/fifth.js | DeividasK/tgoals | import React from 'react'
import SimpleList from 'components/lists/simple'
import { updateStep, updateHeading, updateActions } from '../../actions/TutorialActions'
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl'
const content = defineMessages({
title: { id: 'app.tutorial.step5.title', defau... |
app/javascript/mastodon/features/compose/components/search.js | WitchesTown/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Overlay from 'react-overlays/lib/Overlay';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import { searchEnabled } from '../... |
assets/search-view/profile-view/components/ProfileSummaryBio.js | janta-devs/nyumbani | import React, { Component } from 'react';
class ProfileSummaryBio extends Component{
render() {
return (
<div className="column d-2-3 m-3-4 s-1-1 xs-1-1">
<div className="summary-left">
<aside className="details-photo">
<div className="image-... |
examples/forms-material-ui/src/models/tweet.js | lore/lore-forms | import React from 'react';
import fields from '../fields/tweet';
export default {
attributes: {
text: {
type: 'text'
},
userId: {
type: 'model',
model: 'user'
}
},
forms: {
create: fields,
update: fields
},
dialogs: {
create: fields,
update: fields
},
... |
src/physics/p2/Body.js | insatiable/phaser | /**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2015 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* The Physics Body is typically linked to a single Sprite and defines properties that determine how the physics body i... |
ajax/libs/video.js/5.0.0-23/video.js | him2him2/cdnjs | /**
* @license
* Video.js 5.0.0-23 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*
* Includes vtt.js <https://github.com/mozilla/vtt.js>
* Available under Apache License Ve... |
src/shared/utils/__tests__/memoizeStringOnly-test.js | jagdeesh109/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.
*
* @emails react-co... |
src/components/Timer/Timer.js | Angular-Toast/habitat | import React, { Component } from 'react';
import { Constants, Audio } from 'expo';
import { View, Text, Image, TouchableOpacity, StyleSheet, Picker, Button } from 'react-native';
import * as Progress from 'react-native-progress';
import axios from 'axios';
// import convertDate from '../Frontend/convertDate'
export de... |
app/action-creators/product.js | ellejeong/benefeel | import React from 'react';
import axios from 'axios';
import { SELECT_PRODUCT, SELECT_ALL_PRODUCTS, SELECT_CATEGORY, SELECT_ALL_REVIEWS, ADD_REVIEW_TO_PRODUCT} from 'APP/app/constants';
export const selectAllProducts = products => ({
type: SELECT_ALL_PRODUCTS,
products: products
});
export const selectProduct = pr... |
app/javascript/mastodon/features/list_adder/index.js | lynlynlynx/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { injectIntl } from 'react-intl';
import { setupListAdder, resetListAdder } from '... |
sites/all/modules/jquery_update/replace/jquery/1.5/jquery.min.js | geoffreygevalt/ywp | /*!
* jQuery JavaScript Library v1.5.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.
... |
src/routes.js | blinkenrocket/webedit-react | /* @flow */
import { browserHistory, Route, Router } from 'react-router';
import Webedit from 'Components/Webedit';
import PublicGallery from 'Components/PublicGallery';
import AdminGallery from 'Components/AdminGallery';
import React from 'react';
export default (
<Router history={browserHistory}>
<Route path={... |
examples/redux/test/components/MainSection.spec.js | zalmoxisus/remotedev | import expect from 'expect';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import MainSection from '../../components/MainSection';
import TodoItem from '../../components/TodoItem';
import Footer from '../../components/Footer';
import { SHOW_ALL, SHOW_COMPLETED } from '../../constants/TodoF... |
examples/components/Select.js | optiopay/optiopay-form | import React from 'react';
import Formsy from 'formsy-react';
const MySelect = React.createClass({
mixins: [Formsy.Mixin],
changeValue(event) {
this.setValue(event.currentTarget.value);
},
render() {
const className = 'form-group' + (this.props.className || ' ') +
(this.showRequired() ? 'requir... |
public/jspm_packages/npm/material-ui@0.14.4/lib/svg-icons/av/repeat.js | nayashooter/ES6_React-Bootstrap | /* */
'use strict';
Object.defineProperty(exports, "__esModule", {value: true});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _reactAddonsPureRenderMixin = require('react-addons-pure-render-mixin');
var _reactAddonsPureRenderMixin2 = _interopRequireDefault(_reactAddonsPureRenderMixi... |
js/App/Components/Schedule/SubViews/DaysRow.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : 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
*... |
app/static/src/diagnostic/EquipmentForm_modules/AditionalEqupmentParameters_modules/TankParams.js | vsilent/Vision | import React from 'react';
import FormControl from 'react-bootstrap/lib/FormControl';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import ControlLabel from 'react-bootstrap/lib/ControlLabel';
import {findDOMNode} from 'react-dom';
import {hashHistory} from 'react-router';
import {Link} from 'react-router';
im... |
packages/material-ui-icons/src/IndeterminateCheckBoxSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M21 3H3v18h18V3zm-4 10H7v-2h10v2z" />
, 'IndeterminateCheckBoxSharp');
|
docs/src/pages/components/breadcrumbs/RouterBreadcrumbs.js | callemall/material-ui | /* eslint-disable no-nested-ternary */
import * as React from 'react';
import PropTypes from 'prop-types';
import Box from '@material-ui/core/Box';
import List from '@material-ui/core/List';
import Link from '@material-ui/core/Link';
import ListItem from '@material-ui/core/ListItem';
import Collapse from '@material-ui/... |
src/pages/About.js | TomClarkson/hanzi-gold-web | import React from 'react';
import ReactDisqusThread from 'react-disqus-thread';
export default class About extends React.Component {
render() {
return (
<div id="about-page">
<h1 className='lead-header'>Why was Hanzi Gold built?</h1>
<p className="lead">Hanzi Gold combines two of my passions; lanaguage l... |
examples/react-and-react-router/src/javascripts/global.js | fifigyuri/backbone-react-component | // Init Backbone jquery object
import $ from 'jquery';
import Backbone from 'backbone';
Backbone.$ = $;
import React from 'react';
import Router from 'react-router';
import BackboneReactMixin from 'backbone-react-component';
let {Route, RouteHandler, Link, State, Navigation} = Router;
class Person extends Backbone.M... |
src/FormGroup.js | thealjey/react-bootstrap | import React from 'react';
import classNames from 'classnames';
class FormGroup extends React.Component {
render() {
let classes = {
'form-group': !this.props.standalone,
'form-group-lg': !this.props.standalone && this.props.bsSize === 'large',
'form-group-sm': !this.props.standalone && this.pr... |
ajax/libs/react-datetime/2.8.8/react-datetime.js | dakshshah96/cdnjs | /*
react-datetime v2.8.8
https://github.com/YouCanBookMe/react-datetime
MIT: https://github.com/YouCanBookMe/react-datetime/raw/master/LICENSE
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("moment"), requi... |
src/components/Loading.js | superphy/reactapp | // a generic loading object to check status of currently submitted job
// redirects to corresponding results page when done
import React, { Component } from 'react';
import { Redirect } from 'react-router'
import { connect } from 'react-refetch'
// progress bar
import CircularProgress from 'react-md/lib/Progress/Circu... |
src/components/builds/build-details.js | frigg/frigg-hq-frontend | /* eslint-disable react/no-multi-comp */
import _ from 'lodash';
import React from 'react';
import moment from 'moment';
import {Link} from 'react-router';
import Remarkable from 'remarkable';
import emojis from 'emojis';
import Actions from '../../actions';
import BuildTitle from './build-title';
import Task from '..... |
src/toggle.js | HsuTing/cat-components | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import radium, {StyleRoot} from 'radium';
import invariant from 'invariant';
import CheckBoxIcon from 'react-icons/lib/md/check-box';
import CheckBoxOutlineIcon from 'react-icons/lib/md/check-box-outline-blank';
import RadioButtonCheckedIcon ... |
app/javascript/mastodon/components/short_number.js | lynlynlynx/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { toShortNumber, pluralReady, DECIMAL_UNITS } from '../utils/numbers';
import { FormattedMessage, FormattedNumber } from 'react-intl';
// @ts-check
/**
* @callback ShortNumberRenderer
* @param {JSX.Element} displayNumber Number to display
* @para... |
src/svg-icons/device/brightness-medium.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBrightnessMedium = (props) => (
<SvgIcon {...props}>
<path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6... |
app/components/Toolbar/__tests__/Toolbar-test.js | PaulDebus/monod | import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
// see: https://github.com/mochajs/mocha/issues/1847
const { describe, it } = global;
import Toolbar from '../presenter';
describe('<Toolbar />', () => {
it('renders the application\'s toolbar', () => {
const wrapper ... |
app/containers/Layout.js | Figedi/denon_menu | import React from 'react';
import type { Children } from 'react';
import { connect } from 'react-redux';
import * as mapDispatchToProps from '../actions/electron';
import Navbar from '../components/Navbar';
import Footer from '../components/Footer';
type Props = {
children: Children,
buttonLink: string,
quit: ... |
ajax/libs/react-dom/18.0.0-rc.3-next-3f8990898-20220323/umd/react-dom-server-legacy.browser.production.min.js | cdnjs/cdnjs | /**
* @license React
* react-dom-server-legacy.browser.production.min.js
*
* 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.
*/
(function(){'use strict';(function(x,G){"object"===typeof... |
ajax/libs/ionic/0.9.26/js/ionic.js | sinkcup/cdnjs | /*!
* Copyright 2014 Drifty Co.
* http://drifty.com/
*
* Ionic, v0.9.26
* A powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
* By @maxlynch, @benjsperry, @adamdbradley <3
*
* Licensed under the MIT license. Please see LICENSE for more information.
*
*/
;
// Create namespaces
//
window.io... |
ajax/libs/cyclejs-core/0.17.0/cycle.js | zhangbg/cdnjs | (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}else{g=this}g.Cycle = f()}})... |
dv-website/src/OldChengDu.js | hchen13/bigdatarecruit | import React, { Component } from 'react';
import './ColorIt.css';
import { Icon, Row, Col, Card, Popover, Button} from 'antd';
import c1 from './media/oldCD/1.jpg';
import c2 from './media/oldCD/2.jpg';
import c3 from './media/oldCD/3.jpg';
import c4 from './media/oldCD/4.jpg';
import c5 from './media/oldCD/5.jpg';
im... |
src/components/Root.js | alexravs/midgar | import React from 'react';
import { Provider } from 'react-redux';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import CountriesPropositions from '../containers/CountriesPropositions';
import DataList from '../components/DataList';
import Country from '../components/Country';
import ZonesTr... |
fixtures/packaging/systemjs-builder/prod/input.js | trueadm/react | import React from 'react';
import ReactDOM from 'react-dom';
ReactDOM.render(
React.createElement('h1', null, 'Hello World!'),
document.getElementById('container')
);
|
ajax/libs/react-redux-form/1.0.0-beta.3/ReactReduxForm.min.js | seogi1004/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("redux")):"function"==typeof define&&define.amd?define(["react","redux"],t):"object"==typeof exports?exports.ReactReduxForm=t(require("react"),require("redux")):e.ReactReduxForm=t(e.React,e.Redux)}(this,function(e... |
src/js/components/icons/base/Escalator.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
ajax/libs/yui/3.15.0/datatable-body/datatable-body-coverage.js | Nadeermalangadan/cdnjs | /*
YUI 3.15.0 (build 834026e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/datatable-body/datatable-body.js']) {
__coverage__['build/datatable-body/datatable-... |
src/svg-icons/action/trending-down.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTrendingDown = (props) => (
<SvgIcon {...props}>
<path d="M16 18l2.29-2.29-4.88-4.88-4 4L2 7.41 3.41 6l6 6 4-4 6.3 6.29L22 12v6z"/>
</SvgIcon>
);
ActionTrendingDown = pure(ActionTrendingDown);
ActionTre... |
ajax/libs/react-select/1.0.0-beta4/react-select.min.js | keicheng/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var u;u="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,u.Select=e()}}(function(){return function e(u,t,s){functi... |
packages/material-ui-icons/src/TouchApp.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74zm9.84 4.63l-4.54-2.26c-.17-.07-.35-.11-.54-.11H13v-6c0-.83-.6... |
webpack.config.js | swarajd/todo-redux | // For info about this file refer to webpack and webpack-hot-middleware documentation
// Rather than having hard coded webpack.config.js for each environment, this
// file generates a webpack config for the environment passed to the getConfig method.
var webpack = require('webpack');
var path = require('path');
var ge... |
geonode/contrib/monitoring/frontend/src/components/organisms/hardware-performance/index.js | kartoza/geonode | import React from 'react';
import PropTypes from 'prop-types';
import RaisedButton from 'material-ui/RaisedButton';
import ChartIcon from 'material-ui/svg-icons/av/equalizer';
import HoverPaper from '../../atoms/hover-paper';
import GeonodeStatus from '../../cels/geonode-status';
import GeoserverStatus from '../../cels... |
src/react/notification.js | Shirasho/Cascade | import React from 'react';
import ReactDOM from 'react-dom';
import '../rx-operators';
import NotificationHost from './components/notifications/notification-host.jsx';
// Rendering directly into document.body is discouraged due to third-party scripts
// and browser extensions frequently manipulating it
const reactHost... |
user_guide/_static/jquery.js | jesusbarrios/pizzeria | /*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===... |
src/server.js | Padelas649/moralgram | // src/server.js
import path from 'path';
import { Server } from 'http';
import Express from 'express';
import React from 'react';
import { renderToString } from 'react-dom/server';
import { match, RouterContext } from 'react-router';
import routes from './routes';
import NotFoundPage from './components/NotFoundPage';
... |
docsite/_static/jquery.js | underyx/ansible | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
lib/renderers/server.js | jvikraman/advanced-react | import React from 'react';
import ReactDOMServer from 'react-dom/server';
import axios from 'axios';
import StateApi from 'state-api';
import App from 'components/App';
import config from 'config';
const serverRender = async () => {
const resp = await axios.get(`http://${config.host}:${config.port}/data`);
const ... |
ajax/libs/alt/0.17.6/alt-with-addons.js | him2him2/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react/addons"));
else if(typeof define === 'function' && define.amd)
define(["react", "react/addons"], factory);
else if(typeof exports ===... |
src/routes.js | worb/launchpad | import React from 'react';
import { Route, IndexRoute, Link } from 'react-router';
import App from './components/App';
import Home from './components/Home';
import About from './components/About';
export default (
<Route path="/" component={App}>
<IndexRoute component={Home} />
<Route path="/about" componen... |
examples/todomvc/containers/Root.js | Lucifier129/redux | import React, { Component } from 'react';
import TodoApp from './TodoApp';
import { createStore, combineReducers } from 'redux';
import { Provider } from 'react-redux';
import rootReducer from '../reducers';
const store = createStore(rootReducer);
export default class Root extends Component {
render() {
return ... |
ajax/libs/jquery.serialScroll/1.3.0/jquery.serialScroll.js | drewfreyling/cdnjs | /*!
* jQuery.serialScroll
* Copyright (c) 2007-2015 Ariel Flesler - aflesler<a>gmail<d>com | http://flesler.blogspot.com
* Licensed under MIT.
* @projectDescription Animated scrolling of series with jQuery
* @author Ariel Flesler
* @version 1.3.0
* https://github.com/flesler/jquery.serialScroll
*/
;(function($)... |
ajax/libs/material-ui/5.0.0-alpha.11/esm/styles/useTheme.js | cdnjs/cdnjs | import { useTheme as useThemeWithoutDefault } from '@material-ui/styles';
import React from 'react';
import defaultTheme from './defaultTheme';
export default function useTheme() {
var theme = useThemeWithoutDefault() || defaultTheme;
if (process.env.NODE_ENV !== 'production') {
// eslint-disable-next-line rea... |
stories/textfield.stories.js | isogon/material-components | import React from 'react'
import { storiesOf } from '@storybook/react'
import wrapStory from './decorators/wrapStory'
import Error from '../src/components/textfield/demos/Error.js'
import HelperText from '../src/components/textfield/demos/HelperText.js'
import MultiLine from '../src/components/textfield/demos/MultiLin... |
examples/forms-material-ui/src/components/forms-update-optimistic/Layout.js | lore/lore-forms | import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import CodeExample from '../_common/CodeExample';
import PayloadStates from '../../constants/PayloadStates';
import Hook from './Hook';
import hookCode from '!raw-loader!./Hook';
import { Card } from 'mater... |
packages/material-ui-icons/src/MemoryTwoTone.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><path d="M7 17h10V7H7v10zm2-8h6v6H9V9z" opacity=".3" /><path d="M21 11V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1 0-2 .9-2 2v2H3v2h2v2H3v2h2v2c0 ... |
src/svg-icons/action/extension.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionExtension = (props) => (
<SvgIcon {...props}>
<path d="M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V... |
src/entypo/Trophy.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--Trophy';
let EntypoTrophy = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M11.18,14.356c0-1.451,1.1-2.254,2.894-3.442C16.268,9.458,19,7.649,19,3.354c0-0.387-0.317-0.699-0.709-... |
test/WidgetBoard.spec.js | NUS-Workload-Predictor/front-end | import React from 'react';
import { mount, shallow } from 'enzyme';
import { expect } from 'chai';
import configureStore from 'redux-mock-store';
const fetch = require('isomorphic-fetch');
import App from '../containers/App';
const middlewares = [];
const mockStore = configureStore(middlewares);
function setup() {... |
public/js/jquery.min.js | seyfer/zend2-tutorial.me | /*! 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/route/station/PartnerList.js | simors/yjbAdmin | /**
* Created by lilu on 2017/9/23.
*/
import React from 'react';
import {connect} from 'react-redux';
import {Table, Button, Popconfirm} from 'antd';
import mathjs from 'mathjs'
import {selector as authSelector} from '../../util/auth/'
import {PERMISSION_CODE} from '../../util/rolePermission/'
const showColumns = [... |
src/renderers/dom/client/eventPlugins/ChangeEventPlugin.js | JoshKaufman/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 ... |
examples/static/js/jquery.min.js | IndexXuan/vue-component-skeleton | /*! jQuery v1.12.4 | (c) jQuery Foundation | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,fu... |
packages/material-ui-icons/src/BluetoothDisabledSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M13 5.83l1.88 1.88-1.6 1.6 1.41 1.41 3.02-3.02L12 2h-1v5.03l2 2v-3.2zM5.41 4L4 5.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l4.29-4.29 2.3 2.29L20 18.59 5.41 4zM13 18.17v-3.76l1.88 1.88L13 18.17z" />
, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.