path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/mediaelement/2.6.4/jquery.js | andyinabox/cdnjs | /*!
* jQuery JavaScript Library v1.7
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
*... |
stories/DateRangePicker.js | thg303/react-jalaali-dates | import React from 'react';
import moment from 'moment-jalaali';
import { storiesOf } from '@kadira/storybook';
import { VERTICAL_ORIENTATION, ANCHOR_RIGHT } from '../constants';
import isSameDay from '../src/utils/isSameDay';
import isInclusivelyAfterDay from '../src/utils/isInclusivelyAfterDay';
import DateRangePic... |
test/isPureComponent.spec.js | vovkasm/react-native-stylable | /* eslint-env jest */
import React from 'react'
import isPureComponent from '../src/isPureComponent'
test('Simple function - pure', function () {
const Comp = function (props) { return <div /> }
expect(isPureComponent(Comp)).toBeTruthy()
})
test('Arrow function - pure', function () {
const Comp = (props) => { ... |
app/components/Grid/index.js | Princess310/onehower-frontend | import React from 'react';
import ReactDOM from 'react-dom';
import Icon from 'components/Icon';
import Gtx from 'utils/gtx';
class Grid extends React.PureComponent {
destoryGrid = () => {
this.system.style.display = "none";
}
drawGrid = () => {
this.system.style.display = "block";
let unitWidth = 8;
let ... |
ajax/libs/yui/3.5.0pr6/event-focus/event-focus.js | peteygao/cdnjs | YUI.add('event-focus', function(Y) {
/**
* 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 = YLang.isFunction(
Y... |
src/github.com/getlantern/lantern-ui/bower_components/angular-scenario/angular-scenario.js | pitatensai/lantern | /*!
* jQuery JavaScript Library v1.7.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
client/src/containers/FuelSavingsPage.spec.js | dragonq29/mini-bat | import React from 'react';
import {shallow} from 'enzyme';
import {expect} from 'chai';
import {FuelSavingsPage} from './FuelSavingsPage';
import FuelSavingsForm from '../components/FuelSavingsForm';
describe('<FuelSavingsPage />', () => {
it('should contain <FuelSavingsForm />', () => {
const actions = {
... |
ajax/libs/redux-little-router/11.0.1/redux-little-router.min.js | jdh8/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.ReduxLittleRouter=t(require("react")):e.ReduxLittleRouter=t(e.React)}(this,function(e){return function(e){function t(n){if(r[n])r... |
misc/tabledrag.js | rjatkinson2/leasily | (function ($) {
/**
* Drag and drop table rows with field manipulation.
*
* Using the drupal_add_tabledrag() function, any table with weights or parent
* relationships may be made into draggable tables. Columns containing a field
* may optionally be hidden, providing a better user experience.
*
* Created tableD... |
ajax/libs/yui/3.13.0/datatable-body/datatable-body-coverage.js | jieter/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/datatable-body/datatable-body.js']) {
__coverage__['build/datatable-body/datatable-body.js'] = {"path":"build/datatable-body/datatable-body.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13"... |
web/src/js/__tests__/components/Header/FlowMenuSpec.js | vhaupert/mitmproxy | jest.mock('../../../flow/utils')
import React from 'react'
import renderer from 'react-test-renderer'
import ConnectedFlowMenu, { FlowMenu } from '../../../components/Header/FlowMenu'
import { TFlow, TStore }from '../../ducks/tutils'
import { MessageUtils } from "../../../flow/utils"
import { Provider } from 'react-re... |
ajax/libs/yui/3.4.0/event-focus/event-focus-debug.js | qooxdoo/cdnjs | YUI.add('event-focus', function(Y) {
/**
* 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,
useActivate = YLang.isFunction(
Y.DOM.create('<p onbeforeactivate="... |
actor-apps/app-web/src/app/components/dialog/TypingSection.react.js | ruikong/actor-platform | import React from 'react';
import { PureRenderMixin } from 'react/addons';
import classNames from 'classnames';
import DialogStore from 'stores/DialogStore';
export default React.createClass({
mixins: [PureRenderMixin],
getInitialState() {
return {
typing: null,
show: false
};
},
compon... |
ajax/libs/highmaps/1.0.4/highcharts.src.js | janpaepke/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highcharts JS v4.0.4 (2014-09-02)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clear... |
examples/real-world/containers/Root.js | Bernardstanislas/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { Router, Route } from 'react-router';
import configureStore from '../store/configureStore';
import App from './App';
import UserPage from './UserPage';
import RepoPage from './RepoPage';
const store = configureStore();
export de... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/react-router/es/Switch.js | bhathiya/test | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
ajax/libs/mediaelement/2.6.5/jquery.js | matteofigus/cdnjs | /*!
* jQuery JavaScript Library v1.7
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
*... |
ajax/libs/webshim/1.15.6-RC1/dev/shims/es6.js | dlueth/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/modules/MessageAvatar/component.js | svmn/ace-fnd | 'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Component as Avatar } from '../Avatar';
import { Component as MessageMenu } from '../MessageMenu';
export default class MessageAvatar extends Component {
constructor(props) {
super(props);
this.state = {
... |
UI/ToolTip/BottomLeft.js | Datasilk/Dedicate | import React from 'react';
import {Animated, Easing} from 'react-native';
import Text from 'text/Text';
import {Svg, Path} from 'react-native-svg';
import AppStyles from 'dedicate/AppStyles';
export default class ToolTipBottomLeft extends React.Component {
constructor(props){
super(props);
this.st... |
docs/src/pages/BreadcrumbsPage.js | mattBlackDesign/react-materialize | import React from 'react';
import Row from 'Row';
import Col from 'Col';
import ReactPlayground from './ReactPlayground';
import PropTable from './PropTable';
import Samples from './Samples';
import breadcrumbs from '../../../examples/Breadcrumbs';
import BreadcrumbsCode from '!raw-loader!Breadcrumb';
const header = '... |
vendor/jquery/jquery.min.js | gaofanuwm/gaofanuwm.github.io | /*! 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... |
demo/App.js | jniemann66/react-chessdiagram | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import Chessdiagram from '../src/chessdiagram.js';
import Chess from 'chess.js';
import './App.css';
class App extends Component {
constructor(props) {
super(props);
this.state = {
lightSquareColor: "#2492FF", // light blue
darkSqu... |
ajax/libs/survey-react/0.9.7/survey.react.js | joeyparrish/cdnjs | /*!
* surveyjs - Survey JavaScript library v0.9.7
* (c) Andrew Telnov - http://surveyjs.org/
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
*/
var Survey;
(function (Survey) {
var ItemValue = (function () {
function ItemValue(value, text) {
if (text === void 0) { text = nul... |
src/components/about.js | GenFirst/todo-react-app | import React, { Component } from 'react';
import { Col, Grid, Row, Panel, Image } from 'react-bootstrap';
class About extends Component {
render() {
return (
<div>
<Grid>
<Row>
<Col xs={12} mdOffset={2}>
Application is created by:
</Col>
... |
test/LabelSpec.js | rapilabs/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Label from '../src/Label';
describe('Label', function () {
it('Should output a label with message', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Label>
<strong>Message</strong>
</Labe... |
ajax/libs/js-data/2.0.0-beta.3/js-data-debug.js | jackdoyle/cdnjs | /*!
* js-data
* @version 2.0.0-beta.3 - 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/6to5/1.13.4/browser.js | prosenjit-itobuz/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return... |
ajax/libs/forerunnerdb/1.3.847/fdb-core+views.min.js | cdnjs/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... |
src/routes/notFound/NotFound.js | fkenk/Majsternia | /**
* 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 PropTypes from 'prop-... |
ajax/libs/jquery/1.11.0-rc1/jquery.js | SimeonC/cdnjs | /*!
* jQuery JavaScript Library v1.11.0-rc1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-01-16T20:28Z
*/
(function( global, factory ) {
... |
src/svg-icons/maps/subway.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsSubway = (props) => (
<SvgIcon {...props}>
<circle cx="15.5" cy="16" r="1"/><circle cx="8.5" cy="16" r="1"/><path d="M7.01 9h10v5h-10zM17.8 2.8C16 2.09 13.86 2 12 2c-1.86 0-4 .09-5.8.8C3.53 3.84 2 6.05 2 8.... |
client/src/App.js | qasim/what-class-is-this | import React, { Component } from 'react';
import { Router, Route, browserHistory } from 'react-router';
import Navbar from './components/Navbar';
import Footer from './components/Footer';
import Home from './containers/Home';
import Class from './containers/Class';
import Course from './containers/Course';
class App ... |
docs/components/home/HomeFeature.js | casesandberg/react-color | 'use strict' /* eslint import/no-unresolved: 0 */
import React from 'react'
import reactCSS from 'reactcss'
import { ChromePicker, CompactPicker, MaterialPicker, PhotoshopPicker,
SketchPicker, SliderPicker, SwatchesPicker, BlockPicker,
GithubPicker, TwitterPicker, HuePicker, AlphaPicker, CirclePicke... |
src/components/Radial.react.js | virajkanwade/kitematic | import React from 'react';
import classNames from 'classnames';
var Radial = React.createClass({
render: function () {
var percentage;
if ((this.props.progress !== null && this.props.progress !== undefined) && !this.props.spin && !this.props.error) {
percentage = (
<div className="percentage"><... |
docs/src/app/components/pages/components/AppBar/ExampleIconButton.js | spiermar/material-ui | import React from 'react';
import AppBar from 'material-ui/AppBar';
import IconButton from 'material-ui/IconButton';
import NavigationClose from 'material-ui/svg-icons/navigation/close';
import FlatButton from 'material-ui/FlatButton';
function handleTouchTap() {
alert('onTouchTap triggered on the title component');... |
ajax/libs/mobx-react/0.2.1/index.js | hare1039/cdnjs | (function() {
function mrFactory(mobservable, ReactDep, ReactNativeDep) {
if (!mobservable)
throw new Error("mobservable-react requires the Mobservable package.")
var React = ReactNativeDep || ReactDep;
if (!React)
throw new Error("mobservable-react requires either Re... |
docs/build.js | natlownes/react-bootstrap | /* eslint no-console: 0 */
import React from 'react';
import path from 'path';
import Router from 'react-router';
import routes from './src/Routes';
import Root from './src/Root';
import fsp from 'fs-promise';
import { copy } from '../tools/fs-utils';
import { exec } from '../tools/exec';
import metadata from './gener... |
src/containers/Login.js | metasfresh/metasfresh-webui-frontend | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import { detect } from 'detect-browser';
import LoginForm from '../components/app/LoginForm';
const BROWSER = detect();
/**
* @file Class based component.
... |
MobileApp/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js | VowelWeb/CoinTradePros.com | /**
* 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/containers/NewExperiment/components/ProgressHypothesis.js | mdboop/francis | import React from 'react';
const NewExperimentProgress = (props) => (
<div>
<div className="definition-set">
<span className="definition-label">Hypothesis: </span>
<span className="definition">{props.hypothesis}</span>
</div>
<div className="definition-set">
<span className="definition-... |
server/game/cards/02.6-TS/SmallCouncilChamber.js | Antaiseito/throneteki_for_doomtown | const DrawCard = require('../../drawcard.js');
class SmallCouncilChamber extends DrawCard {
setupCardAbilities(ability) {
this.persistentEffect({
match: this,
effect: ability.effects.immuneTo(card => card.getType() === 'event')
});
this.reaction({
when: {... |
src/svg-icons/image/brightness-5.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness5 = (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 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.6... |
app/containers/App/App.js | realgvard/telegram_theme_customizer | import React, { Component } from 'react';
import {
greenA700,
greenA200,
grey100,
lightBlue800
} from 'material-ui/styles/colors';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
// Styles
import 'normalize.css';
import './Ap... |
packages/material-ui-icons/src/GifOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M11.5 9H13v6h-1.5V9zM9 9H6c-.6 0-1 .5-1 1v4c0 .5.4 1 1 1h3c.6 0 1-.5 1-1v-2H8.5v1.5h-2v-3H10V10c0-.5-.4-1-1-1zm10 1.5V9h-4.5v6H16v-2h2v-1.5h-2v-1h3z" />
, 'GifOutlined');
|
ajax/libs/clappr/0.0.40/clappr.js | viskin/cdnjs | require=(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);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o]... |
components/Deck/ContentPanel/SlideModes/SlideEditPanel/SlideContentEditor.js | slidewiki/slidewiki-platform | import PropTypes from 'prop-types';
import React from 'react';
import {navigateAction, NavLink} from 'fluxible-router';
import {connectToStores} from 'fluxible-addons-react';
import SlideEditStore from '../../../../../stores/SlideEditStore';
import DataSourceStore from '../../../../../stores/DataSourceStore';
import Sl... |
ajax/libs/analytics.js/2.3.7/analytics.js | KOLANICH/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... |
ajax/libs/jssip/0.7.8/jssip.js | nolsherry/cdnjs | /*
* JsSIP v0.7.8
* the Javascript SIP library
* Copyright: 2012-2015 José Luis Millán <jmillan@aliax.net> (https://github.com/jmillan)
* Homepage: http://jssip.net
* License: MIT
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&def... |
src/__tests__/query-test.js | Chris927/u5-r2-query | import React from 'react'
import query from '../query'
import QueryProvider from '../query-provider'
import { Provider } from 'react-redux'
import configureMockStore from 'redux-mock-store'
import thunk from 'redux-thunk'
const middlewares = [ thunk ]
const mockStore = configureMockStore(middlewares)
describe('quer... |
examples/server-rendering/jsapp/src/App.js | S0lahart-AIRpanas-081905220200-Service/react | var React = require('react');
var App = React.createClass({
render: function() {
return <h1>Hello {this.props.name}!</h1>;
}
});
module.exports = App;
|
src/ButtonInput.js | tannewt/react-bootstrap | import React from 'react';
import Button from './Button';
import FormGroup from './FormGroup';
import InputBase from './InputBase';
import childrenValueValidation from './utils/childrenValueInputValidation';
class ButtonInput extends InputBase {
renderFormGroup(children) {
let {bsStyle, value, ...other} = this.p... |
files/highstock/2.1.5/highstock.src.js | megawac/jsdelivr | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highstock JS v2.1.5 (2015-04-13)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clearT... |
ajax/libs/flocks.js/0.15.10/flocks.js | danut007ro/cdnjs |
/** @jsx React.DOM */
/* jshint node: true, browser: true, newcap: false */
/* eslint-env node,browser */
/**
* The Flocks library module.
*
* @module Flocks
* @main Flocks
* @class Flocks
*/
// if it's in a <script> it's defined already
// otherwise assume commonjs
if (typeof React... |
ajax/libs/zeroclipboard/2.0.2/ZeroClipboard.Core.js | laffer1/cdnjs | /*!
* ZeroClipboard
* The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.
* Copyright (c) 2014 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v2.0.2
*/
(function(window, undefined) {
"use strict";... |
src/components/app.js | davide-ravasi/redux-firebase | import _ from 'lodash';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import * as actions from '../actions';
import MenuTop from './menu_top';
import PostItem from './post_item';
import PostsNew from './create_form';
class App extends Component {
componentWillMount() {
this.... |
src/components/CardTitleSmall.js | carlyleec/cc-react | import React from 'react'; // eslint-disable-line
import styled from 'styled-components';
const CardTitleSmall = styled.h1`
font-size: .75em;
font-weight: 700;
line-height: 1.1;
color: inherit;
width: 100%;
height: 100%;
margin: 10px;
@media (min-width: 480px) {
font-size: .75em;
margin: 10px;
... |
ajax/libs/forerunnerdb/1.3.749/fdb-core+persist.js | brix/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/templates/blog-post.js | hbuchel/heather-buchel.com | import React from 'react'
import Helmet from 'react-helmet'
import { Link, graphql } from 'gatsby'
import { css } from '@emotion/core';
import Bio from '../components/Bio'
import Layout from '../components/Layout'
import Container from '../components/Container';
import Icon from '../components/Icon';
import bp from '.... |
cheesecakes/plugins/email/admin/src/containers/App/index.js | strapi/strapi-examples | /**
*
* 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 { Switch, Route } from 'react-router-dom';
// Utils
import { pluginId } from 'app';
// Containers
import ConfigPage from '... |
src/index.js | micahh2/means | import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import configureStore, { history } from './store/configureStore';
import { Root } from './components/Root';
import './styles/styles.scss';
require('./favicon.ico');
const store = configureStore();
render(
... |
examples/js/others/table-in-tabs.js | rolandsusans/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
import { Tabs, Tab } from 'react-bootstrap';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = star... |
examples/huge-apps/routes/Course/routes/Grades/components/Grades.js | barretts/react-router | import React from 'react';
class Grades extends React.Component {
render () {
var assignments = COURSES[this.props.params.courseId].assignments;
return (
<div>
<h3>Grades</h3>
<ul>
{assignments.map(assignment => (
<li key={assignment.id}>{assignment.grade} - {assi... |
src/components/Layout/Navigation/MobileMenu/index.js | ndlib/usurper | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import Link from 'components/Interactive/Link'
import UserMenu from '../UserMenu'
import { initLogin } from 'actions/personal/token'
const MobileMenu = (props) => {
const tabI... |
test/MenuItemSpec.js | erictherobot/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import MenuItem from '../src/MenuItem';
import { shouldWarn } from './helpers';
describe('MenuItem', function() {
it('renders divider', function() {
const instance = ReactTestUtils.renderIntoDocument(<MenuItem divider />);
cons... |
docs/app/Examples/views/Feed/Types/FeedExampleShorthand.js | shengnian/shengnian-ui-react | import React from 'react'
import { Feed } from 'shengnian-ui-react'
const events = [
{
date: '1 Hour Ago',
image: '/assets/images/avatar/small/elliot.jpg',
meta: '4 Likes',
summary: 'Elliot Fu added you as a friend',
},
{
date: '4 days ago',
image: '/assets/images/avatar/small/helen.jpg',... |
packages/material-ui-icons/src/PaymentTwoTone.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M4 6h16v2H4zM4 12h16v6H4z" opacity=".3" /><path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0... |
ajax/libs/datatables/1.10.0-rc.1/js/jquery.js | F2X/cdnjs | /*! 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... |
packages/react-error-overlay/src/components/Footer.js | HelpfulHuman/helpful-react-scripts | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/* @flow */
import React from 'react';
import { darkGray } from '../styles';
const footerStyle = {
fontFamily: 'sans-serif',
color:... |
ajax/libs/material-ui/5.0.0-alpha.5/es/withWidth/withWidth.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 { getDisplayName } from '@material-ui/utils';
import { getThemeProps } from '@materia... |
client/components/App.js | akshatsinha/keeporsell | import React from 'react'
import NavigationBar from './NavigationBar'
class App extends React.Component {
render() {
return (
<div>
<NavigationBar />
<div className="container">
{this.props.children}
</div>
</div>... |
ajax/libs/yui/3.10.3/scrollview-base/scrollview-base-debug.js | JGallardo/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
// Local vars
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
IE = Y.UA.ie... |
app/assets/javascripts/foundation/jquery.js | Rootstrikers/vdash | /*!
* jQuery JavaScript Library v1.9.0
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-1-14
*/
(function( window, undefined ) {
"use strict";... |
src/svg-icons/action/perm-phone-msg.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermPhoneMsg = (props) => (
<SvgIcon {...props}>
<path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.2... |
ajax/libs/core-js/0.2.3/core.js | dlueth/cdnjs | /**
* Core.js 0.2.3
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2014 Denis Pushkarev
*/
!function(returnThis, framework, undefined){
'use strict';
/******************************************************************************
* Module : common ... |
packages/material-ui-icons/src/FreeBreakfastRounded.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M20 3H6c-1.1 0-2 .9-2 2v8c0 2.21 1.79 4 4 4h6c2.21 0 4-1.79 4-4v-3h2c1.11 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 5h-2V5h2v3zM5 19h14c.55 0 1 .45 1 1s-.4... |
packages/material-ui-icons/src/Payment.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Payment = props =>
<SvgIcon {...props}>
<path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z" />
</SvgIcon>;
Payment = pur... |
src/components/sections/Testimonial.js | eddiesmithjr/eddiesmithjr.github.io | import React from 'react';
import classNames from 'classnames';
import { SectionTilesProps } from '../../utils/SectionProps';
import SectionHeader from './partials/SectionHeader';
const propTypes = {
...SectionTilesProps.types
}
const defaultProps = {
...SectionTilesProps.defaults
}
const Testimonial = ({
clas... |
packages/story-editor/src/app/rightClickMenu/hooks/useElementActions.js | GoogleForCreators/web-stories-wp | /*
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
test/unit/components/TaskList-test.js | BhaskarVeligeti/React-SpringBoot | import React from 'react';
import {expect} from 'chai';
import {shallow} from 'enzyme';
import Task from '../../../app/components/Task';
import TaskList from '../../../app/components/TaskList';
describe('<TaskList/>', function () {
it('renders two tasks', () => {
const tasksJson = [{'id': '1', 'content': 'first ta... |
ajax/libs/thorax/2.0.0rc1/thorax.min.js | ethantw/cdnjs | (function(e,t){"use strict";function _(e){var t=e.length,n=y.type(e);return y.isWindow(e)?!1:e.nodeType===1&&t?!0:n==="array"||n!=="function"&&(t===0||typeof t=="number"&&t>0&&t-1 in e)}function P(e){var t=D[e]={};return y.each(e.match(w)||[],function(e,n){t[n]=!0}),t}function j(e,n,r,i){if(!y.acceptData(e))return;var ... |
app/Resources/static-src/app/common/component/persona-multi-input/index.js | richtermark/SMEAGOnline | import React, { Component } from 'react';
import MultiInput from '../multi-input';
import List from './list';
function initItem(dataSourceUi,data,index,props) {
let obj = {
itemId:Math.random(),
nickname: data[props.nickname],
isVisible: data[props.isVisible] == 1 ? true : false,
avatar: data[props.a... |
packages/material-ui-icons/src/LocalAirport.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.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z" />
, 'LocalAirport');
|
admin/client/App/screens/List/components/ItemsTable/ItemsTableRow.js | snowkeeper/keystone | import React from 'react';
import classnames from 'classnames';
import ListControl from '../ListControl';
import { Columns } from 'FieldTypes';
import { DropTarget, DragSource } from 'react-dnd';
import {
setDragBase,
resetItems,
reorderItems,
setRowAlert,
moveItem,
} from '../../actions';
const ItemsRow = Rea... |
assets/jqwidgets/jqwidgets-react/react_jqxtree.js | juannelisalde/holter | /*
jQWidgets v4.5.4 (2017-June)
Copyright (c) 2011-2017 jQWidgets.
License: http://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export default class JqxTree extends React.Component {
componentDidMount() {
let options = this.manageAttributes();
this.createCom... |
src/components/calendar/CalendarSelector.js | hui-w/events-vanilla | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { getMonthName } from '../../util';
import '../../styles/calendar-selector.css';
class CalendarSelector extends Component {
constructor(props, context) {
super(props, context);
this.state = {
expandingYear: 0
};
... |
client/src/templates/dynamic-form.js | brandiqa/open-lims | import React from 'react';
import { observer } from 'mobx-react';
import { Redirect } from 'react-router';
import { Form, Button, Message, Icon } from 'semantic-ui-react';
import _ from 'lodash';
import InputField from '../templates/input-field';
import TextAreaField from '../templates/textarea-field';
import { primary... |
examples/with-glamorous/pages/index.js | callumlocke/next.js | import React from 'react'
import { rehydrate, css } from 'glamor'
import glamorous from 'glamorous'
// Adds server generated styles to glamor cache.
// Has to run before any `style()` calls
// '__NEXT_DATA__.ids' is set in '_document.js'
if (typeof window !== 'undefined') {
rehydrate(window.__NEXT_DATA__.ids)
}
exp... |
src/shared/components/DemoApp/Error404/Error404.js | amcsi/teamap | /* @flow */
import React from 'react';
function Error404() {
return (
<div>Sorry, that page was not found.</div>
);
}
export default Error404;
|
src/parser/priest/discipline/modules/features/Checklist/Component.js | fyruna/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SPELLS from 'common/SPELLS';
// import ITEMS from 'common/ITEMS';
import SpellLink from 'common/SpellLink';
// import ItemLink from 'common/ItemLink';
import ResourceLink from 'common/ResourceLink';
import RESOURCE_TYPES from 'game/RESOURCE_TYPES';
... |
src/BoardContainer.js | jniemann66/react-chessdiagram | /*
MIT License
Copyright (c) 2016 Judd Niemann
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 use, copy, modify, merge, publish, ... |
classic/src/scenes/wbfa/generated/FARCheck.free.js | wavebox/waveboxapp | import React from 'react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faCheck } from '@fortawesome/free-solid-svg-icons/faCheck'
export default class FARCheck extends React.Component {
render () {
return (<FontAwesomeIcon {...this.props} icon={faCheck} />)
}
}
|
src/containers/AppContainer.spec.js | diMosellaAtWork/GeoWeb-FrontEnd | // import React from 'react';
// // eslint-disable-next-line no-unused-vars
// import { default as AppContainer } from './AppContainer';
// import { shallow, mount } from 'enzyme';
// import { Provider } from 'react-redux';
describe('(Container) AppContainer', () => {
// These things are required....
// const stor... |
src/svg-icons/maps/local-bar.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalBar = (props) => (
<SvgIcon {...props}>
<path d="M21 5V3H3v2l8 9v5H6v2h12v-2h-5v-5l8-9zM7.43 7L5.66 5h12.69l-1.78 2H7.43z"/>
</SvgIcon>
);
MapsLocalBar = pure(MapsLocalBar);
MapsLocalBar.displayName ... |
baobab/static/admin/js/jquery.min.js | Gandi/baobab | /*!
* 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.
... |
example/App.js | adamjking3/react-typing-animation | import React, { Component } from 'react';
import styles from './App.css';
import Typing, { Backspace, Delay, Reset, Speed } from '../src';
class App extends Component {
state = {
showFeatures: false,
};
showFeatures = () => {
this.setState({ showFeatures: true });
};
render() {
return (
... |
node_modules/react-icons/md/sim-card-alert.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdSimCardAlert = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m21.6 21.6v-8.2h-3.2v8.2h3.2z m0 6.8v-3.4h-3.2v3.4h3.2z m8.4-25q1.3 0 2.3 0.9t1.1 2.3v26.8q0 1.3-1.1 2.3t-2.3 0.9h-20q-1.3 0-2.3-0.9t-1.1-2.3l0.1-20 9.9-10h13.4z... |
test/components/MainSection.spec.js | cgafeng/todomvc | 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/TodoFilters... |
controllers/dashboard.js | nehiljain/rhime | var debug = require('debug')('rhime:controller:dashboard');
var React = require('react');
var ReactDOMServer = require('react-dom/server');
var Dashboard = React.createFactory(require('../app/components/dashboard/Dashboard.jsx'));
/* Models */
var User = require('../models/User');
var Article = require('../models/Art... |
ajax/libs/intl-tel-input/3.8.7/js/intlTelInput.js | perfect-pixell/cdnjs | /*
International Telephone Input v3.8.7
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.