path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
ajax/libs/milojs/1.0.4/milo.min.js | wout/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);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports... |
src/Parser/HolyPaladin/Modules/Talents/RuleOfLaw.js | Yuyz0112/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Module from 'Parser/Core/Module';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
class RuleO... |
src/svg-icons/image/timer-off.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTimerOff = (props) => (
<SvgIcon {...props}>
<path d="M19.04 4.55l-1.42 1.42C16.07 4.74 14.12 4 12 4c-1.83 0-3.53.55-4.95 1.48l1.46 1.46C9.53 6.35 10.73 6 12 6c3.87 0 7 3.13 7 7 0 1.27-.35 2.47-.94 3.49l1.... |
src/shared/components/HistoricTime/index.js | CharlesMangwa/Chloe | /* @flow */
import React from 'react'
import { Text, View } from 'react-native'
import { getPeriodColor, getPeriodName } from '@helpers/periods'
import Icon from '@components/Icon'
import styles from './styles'
type Props = {
value: 'preHistory' | 'antiquity' | 'middleAge' | 'modernTimes' | 'contemporaryTimes',
p... |
spec/demo.js | kairosagency/react-validation-mixin | import React from 'react';
import Signup from './components/Signup';
React.render(<Signup />, document.getElementById('app'));
|
src/server.js | soupnasty/techheroes-web | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
import ApiC... |
ajax/libs/polymer/0.5.3/polymer.js | cloudrifles/cdnjs | /**
* @license
* Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be f... |
src/modals/EditContact.js | galaxyfeeder/sschat-client | import React from 'react';
import ReactModal from 'react-modal';
class EditContact extends React.Component {
constructor (props){
super(props);
this.handleClose = this.handleClose.bind(this);
this.handleCancel = this.handleCancel.bind(this);
this.handleNameChange = this.handleNameCh... |
src/svg-icons/notification/drive-eta.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationDriveEta = (props) => (
<SvgIcon {...props}>
<path d="M18.92 5.01C18.72 4.42 18.16 4 17.5 4h-11c-.66 0-1.21.42-1.42 1.01L3 11v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 ... |
ajax/libs/video.js/4.5.1/video.dev.js | contolini/cdnjs | /**
* @fileoverview Main function src.
*/
// HTML5 Shiv. Must be in <head> to support older browsers.
document.createElement('video');
document.createElement('audio');
document.createElement('track');
/**
* Doubles as the main function for users to create a player instance and also
* the main library object.
*
... |
app/js/components/Console.js | schlosser/shortener-web | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import Navbar from './Navbar';
import Footer from './Footer';
import ShortlinkList from './ShortlinkList';
import ShortlinkDetail from './ShortlinkDetail';
import NotFoundPage from '../pages/NotFoundPage';
import Home from './Home';
import { ... |
assets/javascripts/kitten/components/graphics/icons/export-icon-alternate/index.js | KissKissBankBank/kitten | import React from 'react'
import PropTypes from 'prop-types'
export const ExportIconAlternate = ({ color, iconTitle, title, ...props }) => (
<svg
role="img"
aria-label={iconTitle || title}
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 12 12"
width="12"
height="12"
fill={color}
{...p... |
index.ios.js | rollo-zhou/look | import React from 'react';
import {AppRegistry} from 'react-native';
import App from './src/App';
AppRegistry.registerComponent('Den', () => App);
|
packages/editor/src/components/Icons/Undo.js | boldr/boldr | import React from 'react';
import Icon from './Icon';
const Undo = props => (
<Icon viewBox="0 0 512 512" {...props}>
<path d="M12 8h27.711c6.739 0 12.157 5.548 11.997 12.286l-2.347 98.568C93.925 51.834 170.212 7.73 256.793 8.001 393.18 8.428 504.213 120.009 504 256.396 503.786 393.181 392.835 504 256 504c-63.92... |
resource/_references/frameworks/jquery/jquery-1.4.2.js | wuzheng40/qwrap | /*!
* 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.
... |
src/views/HomeView/HomeView.js | DonHansDampf/whattoeat_website | /* @flow */
import React from 'react'
import Home from '../../components/Home/Home'
export class HomeView extends React.Component {
render () {
return (
<div>
<Home />
</div>
)
}
}
export default HomeView
|
public/assets/global/plugins/plupload/js/moxie.js | frasermacquarrie/thenoiseontoys | /**
* 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 ... |
examples/todomvc/src/components/MainSection.spec.js | roth1002/redux | import React from 'react'
import { createRenderer } from 'react-test-renderer/shallow';
import MainSection from './MainSection'
import TodoItem from './TodoItem'
import Footer from './Footer'
import { SHOW_ALL, SHOW_COMPLETED } from '../constants/TodoFilters'
const setup = propOverrides => {
const props = Object.ass... |
packages/api/src/hooks/useRenderActivityStatus.js | billba/botchat | import { useMemo } from 'react';
import useCreateActivityStatusRenderer from './useCreateActivityStatusRenderer';
// In the old days, the useRenderActivity() will be called like this:
//
// const element = useRenderActivityStatus({ activity, nextVisibleActivity });
// In the new days, the useCreateActivityRenderer()... |
ajax/libs/yui/2.9.0/container/container.js | sitic/cdnjs | /*
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 2.9.0
*/
(function () {
/**
* Config is a utility used within an Object to allow the implementer to
* maintain a list of local configuration properties and liste... |
react-router-demo/lessons/07-more-nesting/modules/NavLink.js | zhangjunhd/react-examples | // modules/NavLink.js
import React from 'react'
import { Link } from 'react-router'
export default React.createClass({
render() {
return <Link {...this.props} activeClassName="active"/>
}
})
|
src/List/ListItem.spec.js | hai-cea/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import {spy} from 'sinon';
import ListItem from './ListItem';
import EnhancedButton from '../internal/EnhancedButton';
import getMuiTheme from '../styles/getMuiTheme';
import NestedList from './NestedList';
d... |
packages/strapi-plugin-content-manager/admin/src/containers/App/index.js | lucusteen/strap | /**
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
*/
import React from 'react';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import _ from 'lodash';
import { loadM... |
src/index.js | igMartin/Redux-Tinder | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware()(createStore);
ReactDOM.render(
<Provi... |
ajax/libs/forerunnerdb/1.3.919/fdb-core.js | iwdmb/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... |
Magistrate/client/components/filterBar.js | Pondidum/Magistrate | import React from 'react'
const FilterBar = ({ filterChanged }) => (
<div className="filter-bar col-sm-5 pull-right">
<input
type="text"
className="form-control"
placeholder="filter..."
onChange={e => filterChanged(e.target.value)}
/>
</div>
);
export default FilterBar
|
packages/mui-icons-material/lib/InsertChartOutlinedTwoTone.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")... |
ajax/libs/flocks.js/1.1.0/flocks.js | terrymun/cdnjs |
/** @jsx React.DOM */
/* jshint node: true, browser: true, newcap: false */
/* eslint max-statements: 0, no-else-return: 0, brace-style: 0 */
/* eslint-env node,browser */
/**
* The Flocks library module. Load this module and use either the
* flocks <tt>flocks.createClass</tt> wrapper or the <tt>flocks plumbing<... |
src/components/home/HomePage.js | Maricha/Courses | import React from 'react';
import {Link} from 'react-router';
class HomePage extends React.Component {
render() {
return (
<div className="jumbostron">
<h1>Hello</h1>
<Link to="about" className="btn btn-primary btn-lg">Learn more</Link>
</div>
);
}
}
export default Ho... |
ajax/libs/highmaps/1.1.8/highmaps.src.js | viskin/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highmaps JS v1.1.8 (2015-08-20)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clearTi... |
bootstrap/js/jquery.js | mrgoodrich/WinterWarfare | /*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
src/plugins/admin/products/index.js | rkoberg/rihpl |
import React from 'react';
import { IndexRoute, Route } from 'react-router';
import Form from './browser/Form.react';
import Table from './browser/Table.react';
export default (
<Route path="products">
<Route component={Form} path="new" />
<Route component={Form} path="edit/:id" />
<Route component={Ta... |
ajax/libs/angular-google-maps/2.0.21/angular-google-maps.js | simudream/cdnjs | /*! angular-google-maps 2.0.21 2015-06-04
* AngularJS directives for Google Maps
* git: https://github.com/angular-ui/angular-google-maps.git
*/
;
(function( window, angular, undefined ){
'use strict';
/*
!
The MIT License
Copyright (c) 2010-2013 Google, Inc. http://angularjs.org
Permission is hereby granted, ... |
app/javascript/mastodon/components/relative_timestamp.js | pixiv/mastodon | import React from 'react';
import { injectIntl, defineMessages } from 'react-intl';
import PropTypes from 'prop-types';
const messages = defineMessages({
just_now: { id: 'relative_time.just_now', defaultMessage: 'now' },
seconds: { id: 'relative_time.seconds', defaultMessage: '{number}s' },
minutes: { id: 'relat... |
app/components/shared/Popover/index.js | fotinakis/buildkite-frontend | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
const NIB_WIDTH = 32;
const ScrollZone = styled.div`
max-height: 80vh;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
`;
const Nib = styled.img.attrs({
className: 'absolute pointer-events-none'
})`
... |
packages/render/src/utils/isPath.js | diegomura/react-pdf | import * as R from 'ramda';
import * as P from '@react-pdf/primitives';
const isPath = R.propEq('type', P.Path);
export default isPath;
|
examples/RNLoaderHUDApp/index.ios.js | EdgeJay/react-native-loader-hud | /**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
import React, {
AppRegistry,
Component,
StyleSheet,
Navigator,
} from 'react-native';
import SelectionScene from './scenes/SelectionScene';
import DemoScene from './scenes/DemoScene';
class RNLoaderHUDApp extends Compo... |
packages/mui-material/src/StepConnector/StepConnector.js | oliviertassinari/material-ui | import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { unstable_composeClasses as composeClasses } from '@mui/base';
import capitalize from '../utils/capitalize';
import styled from '../styles/styled';
import useThemeProps from '../styles/useThemeProps';
import StepperCont... |
React Native/Demos/OpenSourceDemo/index.ios.js | AngryLi/note | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
var Swiper = require('react-native-swiper');
import {
AppRegistry,
StyleSheet,
Text,
View,
Image
} from 'react-native';
class SwiperDemo extends Component{
render() {
... |
src/shared/universal/components/App/Header/Menu/Menu.js | DAppx/SharpReact | /* */
import React from 'react';
import { Link } from 'react-router';
function Menu() {
return (
<ul style={{ marginTop: '1rem' }}>
<li><Link to="/">Home</Link></li>
<li><Link to="/posts">Posts</Link></li>
<li><Link to="/example">GitHub Example</Link></li>
<li><Link to="/about">Abo... |
client/src/components/app.js | iNeedCode/mern-starter | import React, { Component } from 'react';
import HeaderTemplate from './template/header';
import FooterTemplate from './template/footer';
class App extends Component {
render() {
return (
<div>
<HeaderTemplate logo="Your Site" />
<div className="container">
{this.props.children}
... |
src/components/searchbar.js | iamwithnail/react-redux | /**
* Created by chris on 04/03/2017.
*/
import React, { Component } from 'react';
class SearchBar extends Component {
constructor(props) {
super(props);
this.state = { term: 'Some stuff'};
}
render() {
return (
<div className="search-bar">
<input
value={t... |
demo/card/card.js | kwangkim/react-mdl | import React from 'react';
import Card, { CardTitle, CardText, CardActions, CardMenu } from '../../src/card/Card';
import Button from '../../src/Button';
import IconButton from '../../src/IconButton';
import Icon from '../../src/Icon';
class Demo extends React.Component {
render() {
return (
<d... |
mine-data/src/RegisterPage/RegisterPage.js | BerlingskeMedia/nyhedsbreveprofil | import React from 'react';
import SubmitButton from '../SubmitButton/SubmitButton';
import { Link, Redirect } from 'react-router-dom';
import { connect } from 'react-redux';
import {
receiveRegister,
register, resetRegister,
setAddress, setCity, setEmail, setFirstName, setLastName, setPassword,
setPasswordRepea... |
scripts/bench/benchmarks/pe-class-components/build.js | leexiaosi/react | 'use strict';
const {
join,
} = require('path');
async function build(reactPath, asyncCopyTo) {
// copy the UMD bundles
await asyncCopyTo(
join(reactPath, 'build', 'dist', 'react.production.min.js'),
join(__dirname, 'react.production.min.js')
);
await asyncCopyTo(
join(reactPath, 'build', 'dis... |
Examples/UIExplorer/UIExplorerTitle.js | jmstout/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
test/helpers/shallowRenderHelper.js | YMFL/reactNews | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
app/javascript/mastodon/features/ui/components/columns_area.js | 5thfloor/ichiji-social | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ReactSwipeableViews from 'react-swipeable-views';
import TabsBa... |
src/renderers/shared/reconciler/__tests__/ReactMultiChild-test.js | venkateshdaram434/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... |
packages/rocketchat-reactions/client/init.js | zhangshiwan/Rochet.Chart.0.30.0-6 | Template.room.events({
'click .add-reaction'(event) {
event.preventDefault();
event.stopPropagation();
const data = Blaze.getData(event.currentTarget);
RocketChat.EmojiPicker.open(event.currentTarget, (emoji) => {
Meteor.call('setReaction', ':' + emoji + ':', data._arguments[1]._id);
});
},
'click .re... |
dist/js/visi2.js | visdark/VISIIS | /*!
* Vue.js v2.1.8
* (c) 2014-2016 Evan You
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Vue = factory());
}(this, (function... |
docs/app/Examples/modules/Checkbox/Types/CheckboxExampleToggle.js | clemensw/stardust | import React from 'react'
import { Checkbox } from 'semantic-ui-react'
const CheckboxExampleToggle = () => (
<Checkbox toggle />
)
export default CheckboxExampleToggle
|
src/svg-icons/content/low-priority.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentLowPriority = (props) => (
<SvgIcon {...props}>
<path d="M14 5h8v2h-8zm0 5.5h8v2h-8zm0 5.5h8v2h-8zM2 11.5C2 15.08 4.92 18 8.5 18H9v2l3-3-3-3v2h-.5C6.02 16 4 13.98 4 11.5S6.02 7 8.5 7H12V5H8.5C4.92 5 2 7.... |
public/file/jQueryUI/1.11.4/external/jquery/jquery.js | ShareAny/StaticFile | /*!
* 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 ) {
// ... |
ajax/libs/react-modal/1.7.9/react-modal.js | maruilian11/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
test/components/navbar_spec.js | wunderg/PTC | import React from 'react';
import { expect } from '../test_helper.js';
import { shallow } from 'enzyme';
import sinon from 'sinon';
import Navbar from '../../src/containers/navbar/index.js';
describe('Navbar', () => {
let wrapper;
describe('When user not loged in', () => {
beforeEach(() => {
wrapper = sh... |
webapp/node_modules/gulp-browserify/node_modules/browserify-shim/examples/shim-jquery-external/js/vendor/jquery.js | wwwtyro/spaceship-2d | /*! 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===... |
webroot/rsrc/externals/javelin/ext/reactor/core/DynVal.js | aik099/phabricator | /**
* @provides javelin-dynval
* @requires javelin-install
* javelin-reactornode
* javelin-util
* javelin-reactor
* @javelin
*/
JX.install('DynVal', {
members : {
_lastPulseVal : null,
_reactorNode : null,
getValueNow : function() {
return this._lastPulseVal;
... |
lib/Matcha/TestApp/ext/src/layout/container/Card.js | untusoft/tutus | /*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as
published by the Free Software Foundation and appearing in the file LICENSE included in... |
src/components/ui/Spacer.js | arayi/SLions | /**
* Spacer
*
<Spacer size={10} />
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React from 'react';
import PropTypes from 'prop-types';
import { View } from 'react-native';
/* Component ==================================================================== */
co... |
src/svg-icons/action/class.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionClass = (props) => (
<SvgIcon {...props}>
<path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z"/>
</SvgIcon>
);
ActionClass = pure(ActionClass);... |
src/client/react/components/presentational/Results.js | nloomans/rooster.hetmml.nl | /**
* Copyright (C) 2018 Noah Loomans
*
* This file is part of rooster.hetmml.nl.
*
* rooster.hetmml.nl 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 op... |
ajax/libs/preact/3.0.0/preact.js | sufuf3/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.preact = factory());
}(this, function () { 'use strict';
var NO_RENDER = { render: false };
var SYNC_RENDER = { rend... |
client2/src/components/react-burger-menu/test/bubble.spec.js | gdomorski/CodeOut | 'use strict';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import { expect } from 'chai';
import createShallowComponent from './utils/createShallowComponent';
import BurgerMenu from '../lib/BurgerMenu';
const Menu = BurgerMenu.bubble;
describe('bubble', () => {
let component, menuWra... |
node_modules/react-icons/md/linear-scale.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdLinearScale = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m32.5 15.9c2.3 0 4.1 1.8 4.1 4.1s-1.8 4.1-4.1 4.1c-1.7 0-3.2-1-3.8-2.5h-4.9c-0.6 1.5-2.1 2.5-3.8 2.5s-3.2-1-3.8-2.5h-4.9c-0.6 1.5-2.1 2.5-3.8 2.5-2.3 0-4.1-1.8-4.... |
ajax/libs/mobx/2.2.2/mobx.min.js | iwdmb/cdnjs | /** MobX - (c) Michel Weststrate 2015, 2016 - MIT Licensed */
"use strict";function ae(e,n){l(e,"autorun methods cannot have modifiers"),t("function"==typeof e,"autorun expects a function"),t(0===e.length,"autorun expects a function without arguments"),n&&(e=e.bind(n));var r=new y(e.name||"Autorun@"+a(),function(){this... |
static/xmodule_js/common_static/js/vendor/tiny_mce/plugins/legacyoutput/editor_plugin_src.27afe8aa9795.js | EduPepperPD/pepper2013 | /**
* editor_plugin_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*
* This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u elements... |
sites/all/modules/jquery_update/replace/jquery/1.5/jquery.js | dewoller/pvsc | /*!
* 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.
... |
index.js | mikah1337/null-terminator | import 'babel-polyfill'; // Only use once, in this entry file
import React from 'react';
import ReactDOM from 'react-dom';
import Top_Bar from '../scripts/Top_Bar/Top_Bar';
import Main_Content from '../scripts/Main_Content/Main_Content';
//var url = window.location.href; //http://localhost:8080/src/dir/assign2/i... |
src/shared/element-react/dist/npm/es6/src/checkbox/CheckBoxButton.js | thundernet8/Elune-WWW | 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 CheckBox from './CheckBox';
var CheckboxButton = function (_CheckBox) {... |
src/js/components/ContentBlocks/BlockParagraph/BlockParagraphWireframe.js | grommet/grommet-cms-boilerplate | import React from 'react';
import Box from 'grommet/components/Box';
export default function BlockParagraphWireframe() {
return (
<Box pad={{ between: 'small' }}>
<Box full="horizontal" pad="small" colorIndex="light-2" />
<Box full="horizontal" pad="small" colorIndex="light-2" />
<Box full="hor... |
test/specs/elements/List/ListIcon-test.js | shengnian/shengnian-ui-react | import React from 'react'
import Icon from 'src/elements/Icon/Icon'
import ListIcon from 'src/elements/List/ListIcon'
import * as common from 'test/specs/commonTests'
describe('ListIcon', () => {
common.isConformant(ListIcon)
common.implementsVerticalAlignProp(ListIcon)
it('returns Icon component', () => {
... |
index.js | leebenson/dagre-test | import React from 'react';
import ReactDOM from 'react-dom';
import {Graph, Vertex, Edge} from 'dagre-react';
const Example = React.createClass({
render: function () {
const arrow = `<marker id="markerArrow" markerWidth="6" markerHeight="4" refx='5' refy="2" orient="auto"><path d='M 0,0 V 4 L6,2 Z' class="arrow"... |
src/svg-icons/image/looks-4.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooks4 = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 14h-2v-4H9V7h2v4h2V7h2v10z"/>
</SvgIcon>
);
ImageLooks4 = pure(ImageLoo... |
packages/material-ui-icons/src/RemoveFromQueueRounded.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v1c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-1h5c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm-1 14H4c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h16c.55 0 1 .45 1 1v10c0 .... |
src/Parser/Warlock/Demonology/CONFIG.js | enragednuke/WoWAnalyzer | import React from 'react';
import { Chizu } from 'MAINTAINERS';
import SPECS from 'common/SPECS';
import SPEC_ANALYSIS_COMPLETENESS from 'common/SPEC_ANALYSIS_COMPLETENESS';
import CombatLogParser from './CombatLogParser';
import CHANGELOG from './CHANGELOG';
export default {
spec: SPECS.DEMONOLOGY_WARLOCK,
main... |
Libraries/Modal/Modal.js | imjerrybao/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... |
src/mui/form/FormField.js | marmelab/admin-on-rest | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Field } from 'redux-form';
import { initializeForm as initializeFormAction } from '../../actions';
import Labeled from '../input/Labeled';
import { required } from './validate';
const isRequired = validate => {
if (validate ... |
ajax/libs/angular.js/0.9.5/angular-scenario.js | lhorie/cdnjs | /*!
* 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.
... |
ajax/libs/yui/3.10.3/event-custom-base/event-custom-base-coverage.js | kevinburke/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/containers/Layout/index.js | dvm4078/dvm-blog | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { compose } from 'redux';
import injectSaga from 'utils/injectSaga';
import injectReducer from 'utils/injectReducer';
import makeSelectLayout from './selecto... |
test/dummy/client/components/posts/record-expanded-content.js | factore/tenon | import React from 'react';
module.exports = (props) => {
const editPath = props.record.edit_path;
const onDelete = props.onDelete;
return (
<div className="record__expanded-content">
<div dangerouslySetInnerHTML={{ __html: props.record.excerpt }} />
<div className="record__expanded-actions">
... |
test/regressions/tests/Table/DenseCheckboxTable.js | lgollut/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Checkbox from '@material-ui/core/Checkbox';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/TableCell';
... |
admin/client/App/screens/Item/components/FooterBar.js | jstockwin/keystone | import React from 'react';
import blacklist from 'blacklist';
import assign from 'object-assign';
var FooterBar = React.createClass({
propTypes: {
style: React.PropTypes.object,
},
getDefaultProps () {
return {
style: {},
};
},
getInitialState () {
return {
position: 'relative',
width: 'auto',
... |
node_modules/react-redux/lib/components/connect.js | jameswatkins77/React-Blogger-App | 'use strict';
exports.__esModule = true;
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
exports["default"]... |
src/components/TextInputStyledComponents/TextInputStyledComponents.js | noumanberlas/prime-react | import React from 'react';
import PropTypes from 'prop-types';
import Label from '../Label';
import styled from 'styled-components';
/** Text input with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */
function TextInput({htmlId, name, label, type = "text... |
ajax/libs/intl-tel-input/5.7.6/js/intlTelInput.js | sreym/cdnjs | /*
International Telephone Input v5.7.6
https://github.com/Bluefieldscom/intl-tel-input.git
*/
// wrap in UMD - see https://github.com/umdjs/umd/blob/master/jqueryPlugin.js
(function(factory) {
if (typeof define === "function" && define.amd) {
define([ "jquery" ], function($) {
factory($, window... |
ReactApp/src/Pages/Food.js | hoh/FolkMarsinne | import React, { Component } from 'react';
import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card';
import {List, ListItem} from 'material-ui/List';
import Paper from 'material-ui/Paper';
import RaisedButton from 'material-ui/RaisedButton';
import {red500, brown500} from 'material... |
js/components/segment/styles.js | onderveli/EmlakAPP | const React = require("react-native");
const { StyleSheet } = React;
export default {
container: {
backgroundColor: "#fff"
}
};
|
src/routes/Home/components/HomeView.js | akossebestyen/getrecd-client-redux | import React from 'react'
import DuckImage from '../assets/Duck.jpg'
import classes from './HomeView.scss'
export const HomeView = () => (
<div>
<h4>Welcome!</h4>
<img
alt='This is a duck, because Redux!'
className={classes.duck}
src={DuckImage} />
</div>
)
export default HomeView
|
src/ReactElementAdapter.js | bruderstein/unexpected-htmllike-jsx-adapter | import React from 'react';
import ObjectAssign from 'object-assign';
import getIteratorFn from './getIteratorFn';
const REACT_ELEMENT_TYPE =
(typeof Symbol === 'function' && Symbol.for && Symbol.for('react.element')) ||
0xeac7;
function isRawType(value) {
var type = typeof value;
return type === 'stri... |
files/react/0.12.0-rc1/react-with-addons.js | dnbard/jsdelivr | /**
* React (with addons) v0.12.0-rc1
*/
!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.React=e()}... |
app/containers/End/ThankyouPageWIthMobileTopup/index.js | hlex/vms | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
// ======================================================
// Hoc
// ======================================================
import withAudio from '../../../hoc/... |
src/renderer/pages/player.js | venobo/app | import React from 'react'
import classNames from 'classnames'
import debounce from 'debounce'
import {dispatch} from '../lib/dispatcher'
export default class PlayerPage extends React.Component {
initialState = {
uiShown: true,
isTest: false,
isDragging: false,
scrubbingLabel: null,
showAudioMen... |
ajax/libs/F2/1.3.3/f2.no-bootstrap.js | wackyapples/cdnjs | ;(function(exports) {
if (exports.F2 && !exports.F2_TESTING_MODE) {
return;
}
/*!
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 obtaining a copy of this software and associated d... |
src/svg-icons/communication/phonelink-erase.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhonelinkErase = (props) => (
<SvgIcon {...props}>
<path d="M13 8.2l-1-1-4 4-4-4-1 1 4 4-4 4 1 1 4-4 4 4 1-1-4-4 4-4zM19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0... |
ajax/libs/phaser/2.1.3/custom/p2.js | zimbatm/cdnjs | /**
* The MIT License (MIT)
*
* Copyright (c) 2013 p2.js authors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to ... |
lib/cli/test/snapshots/react_native_scripts/storybook/stories/Welcome/index.js | rhalff/storybook | import React from 'react';
import { View, Text } from 'react-native';
import PropTypes from 'prop-types';
export default class Welcome extends React.Component {
styles = {
wrapper: {
flex: 1,
padding: 24,
justifyContent: 'center',
},
header: {
fontSize: 18,
marginBottom: 18,... |
app/react-icons/fa/play.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaPlay extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m35.4 20.7l-29.6 16.5q-0.6 0.3-0.9 0t-0.4-0.8v-32.8q0-0.6 0.4-0.8t0.9 0l29.6 16... |
web/components/shared/effects/Quake.js | skidding/flatris | // @flow
import React, { Component } from 'react';
import type { Node } from 'react';
import type { Player } from 'shared/types/state';
type Props = {
player1: ?Player,
player2: ?Player,
children: ?Node,
};
class Quake extends Component<Props> {
render() {
const { children, player1, player2 } = this.pro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.