path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
templates/rubix/rubix-bootstrap/src/others/router.js | jeffthemaximum/jeffline | import React from 'react';
import ReactDOM from 'react-dom';
import ReactDOMServer from 'react-dom/server';
import { Router, match, RouterContext, applyRouterMiddleware,
hashHistory, browserHistory } from 'react-router';
import { AppContainer } from 'react-hot-loader';
import useScroll from '@sketchpixy/react-... |
src/components/utterances.js | ilcm96/ilcm96.github.io | import React, { Component } from "react"
import ReactUtterences from "react-utterances"
const repo = "ilcm96/ilcm96-comment"
class Comment extends Component {
render() {
return (
<div>
<ReactUtterences repo={repo} type={"pathname"} />
</div>
)
}
}
export default Comment
|
docs/src/app/components/pages/components/Tabs/ExampleSwipeable.js | verdan/material-ui | import React from 'react';
import {Tabs, Tab} from 'material-ui/Tabs';
// From https://github.com/oliviertassinari/react-swipeable-views
import SwipeableViews from 'react-swipeable-views';
const styles = {
headline: {
fontSize: 24,
paddingTop: 16,
marginBottom: 12,
fontWeight: 400,
},
slide: {
... |
building-react-applications-with-idiomatic-redux/todoApp/src/index.js | Remexllee/randr-practice | import React from 'react';
import {render} from 'react-dom';
import {createStore} from 'redux';
import {Provider} from 'react-redux';
import App from './components/App';
import reducer from './reducers';
const store = createStore(reducer);
render(
<Provider store={store}>
<App />
</Provider>,
document.getEl... |
src/library/modal/index.js | zdizzle6717/universal-react-movie-app | 'use strict';
import React from 'react';
import classNames from 'classnames';
import Animation from 'react-addons-css-transition-group';
export default class Modal extends React.Component {
constructor(props, context) {
super(props, context);
}
render() {
let containerClasses = classNames({
'modal-conta... |
src/NPort.js | sansetty2510/bootStrap | import React from 'react';
export default class NPort extends React.Component {
constructor(props){
super(props);
}
render(){
return(
<div>
<h2> NPORT PAGE </h2>
</div>
)
};
} |
src/svg-icons/communication/screen-share.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationScreenShare = (props) => (
<SvgIcon {...props}>
<path d="M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.11-.9-2-2-2H4c-1.11 0-2 .89-2 2v10c0 1.1.89 2 2 2H0v2h24v-2h-4zm-7-3.53v-2.19c-2.78 0-4.61.85-6 2.72.56... |
packages/react-dom/src/__tests__/ReactDOMSVG-test.js | VioletLife/react | /**
* 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.
*
* @emails react-core
*/
'use strict';
let React;
let ReactDOM;
let ReactDOMServer;
describe('ReactDOMSVG', () => {
beforeEach... |
app/containers/NotFoundPage/index.js | frascata/vivaifrappi | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it... |
src/components/index.js | matheuslc/jatoba | import React, { Component } from 'react';
import Search from './search'
/**
* @class
* @name Index
* @description Application entrypoint
*/
export default class Index extends Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="container-fluid weather-search c... |
classic/src/scenes/traypopout/src/Scenes/AppScene/AppSceneToolbarButton.js | wavebox/waveboxapp | import React from 'react'
import PropTypes from 'prop-types'
import shallowCompare from 'react-addons-shallow-compare'
import { IconButton, Tooltip } from '@material-ui/core'
/**
* This is basically a shim to dismiss the tooltip on click which fixes
* https://github.com/wavebox/waveboxapp/issues/743. It does it by man... |
src/components/Modal.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
class Modal extends React.Component {
static propTypes = {
onClose: PropTypes.func,
show: PropTypes.bool,
};
constructor(props) {
super(props);
}
render() {
if (typeof document !== 'undefined') document.body.classList[this.props... |
ajax/libs/analytics.js/2.2.3/analytics.min.js | hibrahimsafak/cdnjs | (function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[name])return cache[name].exports;if(modules[name])return call(name,require);throw new Error('cannot find module "'+name+'"')}function call(id,require){var m=cache[id]={exports:{}};var mod=modules[id];var n... |
native/app/components/ListPanelHeader.js | cedricium/notes | import color from 'color';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { StyleSheet, View, Dimensions, StatusBar } from 'react-native';
import { resetSelect, deleteNotes } from "../actions";
import { Toolbar, ToolbarContent, ToolbarAction ... |
src/js/shared/components/media.js | akornatskyy/sample-blog-react | import React from 'react';
import PropTypes from 'prop-types';
const Media = ({src, heading, children}) => (
<div className="mt-2 d-flex">
<div className="flex-shrink-0">
<img className="me-3" src={src} />
</div>
<div>
<h5 className="mt-0">{heading}</h5>
... |
client/src/containers/MyBooksPage.js | elliotjz/book-trading-club | import React from 'react'
import { Redirect } from 'react-router-dom'
import $ from 'jquery'
import MyBooks from '../components/MyBooks'
import Auth from '../modules/Auth'
class MyBooksPage extends React.Component {
constructor(props) {
super(props);
let user = JSON.parse(localStorage.getItem('user'))
this.... |
src/components/Pokedex/Sidebar/PokedexInfo/index.js | rodrigo-puente/poke-nostalgia | import React, { Component } from 'react';
import styles from '../../../../styles/PokemonList';
class PokedexInfo extends Component {
render() {
const { seenCount } = this.props;
return (
<div className="pokedexInfo">
<p className="text" style={ styles.text1 }>SEEN</p>
<p className="da... |
ajax/libs/videomail-client/2.3.2/videomail-client.js | joeyparrish/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.VideomailClien... |
ajax/libs/material-ui/5.0.0-alpha.19/node/internal/svg-icons/CheckCircle.min.js | cdnjs/cdnjs | "use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault"),_interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var React=_interopRequireWildcard(require("react")),_createSvgIco... |
ajax/libs/6to5/2.3.0/browser.js | jdh8/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... |
include/javascript/jquery.js | isrealconsulting/ic-suite | /*! jQuery v1.6.4 http://jquery.com/ | http://jquery.org/license */
/*! jQuery v1.6.4 http://jquery.com/ | http://jquery.org/license */
(function(a,b){function cu(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cr(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display... |
app/containers/Root.js | thenormalsquid/electronApp | // @flow
import React from 'react';
import { Provider } from 'react-redux';
import { ConnectedRouter } from 'react-router-redux';
import Routes from 'routes';
type RootType = {
store: {};
history: {};
};
export default function Root({ store, history }: RootType) {
return (
<Provider store={store}>
<Co... |
src/components/elements/TypeCaption/TypeCaption.js | 5rabbits/portrait | import React from 'react'
const TypeCaption = () =>
<span className="type-caption" />
export default TypeCaption
|
sites/intro.drupal-8.dd/files/js/js_5yc2O5VuKQgc42LgQhquNGRdWxFgAa25UVtcsjmBVLE.js | raviindorey/intro_drupal_8_2_6 | /*! jQuery v2.2.3 | (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,fun... |
client/containers/Signin.js | viatsko/codingbox | import React from 'react';
import Transmit from 'react-transmit';
import Header from '../components/Header';
import Authentication from '../components/Authentication';
import SigninForm from '../components/SigninForm';
class Signin extends React.Component {
render() {
return (
<div>
<Header />
... |
packages/material-ui-icons/src/GTranslateOutlined.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="M20 5h-9.12L10 2H4c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h7l1 3h8c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zM7.17 14.59c-2.25 0-4.09-1.83-4.09-4.09s1.83-4.09... |
tests/lib/rules/indent.js | menelaos/eslint-solarized | /**
* @fileoverview This option sets a specific tab width for your code
* @author Dmitriy Shekhovtsov
* @author Gyandeep Singh
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------... |
Components/Core.PeoplePicker/Core.PeoplePickerWeb/Scripts/jquery-1.9.1.min.js | Claire-Hindhaugh/PnP | /* NUGET: BEGIN LICENSE TEXT
jQuery v1.9.1
Microsoft grants you the right to use these script files for the sole purpose of either: (i) interacting through your browser with the Microsoft website, subject to the website's terms of use; or (ii) using the files as included with a Microsoft product subject to that produc... |
plugins/subschema-plugin-type-select/src/index.js | jspears/subschema-devel | import React, { PureComponent } from 'react';
import PropTypes from 'subschema-prop-types';
import { isArray } from 'subschema-utils';
export class Select extends PureComponent {
static propTypes = {
onBlur : PropTypes.blurValidate,
value : PropTypes.value,
id : PropTypes... |
app/components/avatar/index.js | it-surya/hack-jeninvest | import React from 'react';
import {
Image,
View
} from 'react-native';
import {
RkComponent,
RkText,
RkTheme
} from 'react-native-ui-kitten';
import {FontAwesome} from '../../assets/icons';
export class Avatar extends RkComponent {
componentName = 'Avatar';
typeMapping = {
container: {},
image: {... |
ajax/libs/yui/3.17.2/datatable-core/datatable-core-coverage.js | schoren/cdnjs | /*
YUI 3.17.2 (build 9c3c78e)
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-core/datatable-core.js']) {
__coverage__['build/datatable-core/datatable-... |
test/TabsSpec.js | thealjey/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import keycode from 'keycode';
import Col from '../src/Col';
import Nav from '../src/Nav';
import NavItem from '../src/NavItem';
import Tab from '../src/Tab';
import Tabs from '../src/Tabs';
import ValidComponentChildren from '../src/ut... |
docs/src/app/components/pages/components/LinearProgress/ExampleSimple.js | pradel/material-ui | import React from 'react';
import LinearProgress from 'material-ui/LinearProgress';
const LinearProgressExampleSimple = () => (
<LinearProgress mode="indeterminate" />
);
export default LinearProgressExampleSimple;
|
src/DropdownStateMixin.js | rapilabs/react-bootstrap | import React from 'react';
import domUtils from './utils/domUtils';
import EventListener from './utils/EventListener';
/**
* Checks whether a node is within
* a root nodes tree
*
* @param {DOMElement} node
* @param {DOMElement} root
* @returns {boolean}
*/
function isNodeInRoot(node, root) {
while (node) {
... |
landing/src/App.js | 1a2a3a4a/PONTUS | import React, { Component } from 'react';
import './App.css';
import injectTapEventPlugin from 'react-tap-event-plugin';
import WelcomePage from './WelcomePage'
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import Employer from './EmployerDirectory/CandidateList'
injectTapEventPlugin();
class App... |
src/components/views/Activities/Activities.js | gocycles/giddy-web | import React, { Component } from 'react';
import { Button, Container } from 'semantic-ui-react';
import { fetchActivities } from '../../../utils/Api';
class Activities extends Component {
constructor(props) {
super(props);
this.fetchActivities = this.fetchActivities.bind(this);
this.rende... |
src/svg-icons/navigation/arrow-upward.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowUpward = (props) => (
<SvgIcon {...props}>
<path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"/>
</SvgIcon>
);
NavigationArrowUpward = pure(NavigationArrowUpward);
NavigationA... |
src/js/components/Webshop.js | kRITZCREEK/squirrelzon | import React from 'react'
import Searchfield from 'babel!./Searchfield'
import Productlist from 'babel!./Productlist'
import Productdetail from 'babel!./Productdetail'
import Shoppingcart from 'babel!./Shoppingcart'
import Checkoutbutton from 'babel!./Checkoutbutton'
import ShoppingCartStore from 'babel!../stores/Shop... |
frontend/src/components/AdminCustomForm.js | grwn/Project-5-6 | import React, {Component} from 'react';
import {ModalFooter, ModalHeader, Modal, ModalBody, Form, FormGroup, Input, Label, Button} from 'reactstrap';
import {Products} from '../classes/API/Products.js';
import NotificationAlert from 'react-notification-alert';
class AdminCustomForm extends Component {
construct... |
ajax/libs/6to5/3.0.4/browser-polyfill.js | mikelambert/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/components/FuelSavingsForm.js | pagepress/pagepress | import React from 'react';
import PropTypes from 'prop-types';
import FuelSavingsResults from './FuelSavingsResults';
import FuelSavingsTextInput from './FuelSavingsTextInput';
class FuelSavingsForm extends React.Component {
constructor(props, context) {
super(props, context);
this.save = this.save.bind(thi... |
src/svg-icons/device/signal-cellular-1-bar.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellular1Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M2 22h20V2z"/><path d="M12 12L2 22h10z"/>
</SvgIcon>
);
DeviceSignalCellular1Bar = pure(DeviceSignalCellular1Bar);
Device... |
src/ButtonInput.js | erictherobot/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... |
js-old/src/ui/Page/page.spec.js | destenson/ethcore--parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any lat... |
app/components/Dashboard/AssetBalancesPanel/index.js | CityOfZion/neon-wallet | // @flow
import React from 'react'
import { FormattedMessage } from 'react-intl'
import { compose } from 'recompose'
import { values, omit, get } from 'lodash-es'
import { withActions, withData } from 'spunky'
import AssetBalancesPanel from './AssetBalancesPanel'
import assetBalancesPanelActions from '../../../actions... |
ajax/libs/react-native-web/0.13.0/exports/ActivityIndicator/index.min.js | cdnjs/cdnjs | function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e}).apply(this,arguments)}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var i,a,r={},n=Object.keys(e);for(a... |
node_modules/babel-runtime/node_modules/core-js/client/shim.js | raheelhassan1214/tanveerhospital | /**
* core-js 2.5.1
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2017 Denis Pushkarev
*/
!function(__e, __g, undefined){
'use strict';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The r... |
docs/manual/bower_components/Tabslet/demo/javascripts/vendor/jquery-1.9.1.min.js | akaash-nigam/PredictionIO | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
packages/material-ui-icons/src/WbCloudyOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M12.01 6c2.61 0 4.89 1.86 5.4 4.43l.3 1.5 1.52.11c1.56.11 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3h-13c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.95 6 12.01 6m0-2C9.12 4 6.6... |
ajax/libs/analytics.js/2.3.19/analytics.js | zimbatm/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... |
src/Flags/TrinidadAndTobago.js | runjak/css-flags | // @flow
import React from 'react';
import LinearFlag from './LinearFlag';
import gradient from '../utils/gradient';
const red = '#DB1332';
const white = '#FFFFFF';
const black = '#000000';
export default function TrinidadAndTobago() {
return (
<LinearFlag
gradient={`45deg, ${gradient([red, white, black,... |
ajax/libs/survey-react/1.1.1/survey.react.min.js | sufuf3/cdnjs | /*!
* surveyjs - Survey JavaScript library v1.1.1
* Copyright (c) 2015-2019 Devsoft Baltic OÜ - http://surveyjs.io/
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&d... |
newclient/scripts/components/user/text-area-control/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
Lic... |
web/src/components/NavigationComponent.js | undemaduc/undemaduc | import React from 'react';
import { Link } from 'react-router';
import autoBind from 'react-autobind';
class Navigation extends React.Component {
constructor(props) {
super(props);
autoBind(this);
}
isLoggedin() {
const { user, luser } = this.props.user;
return ... |
docs/app/Examples/addons/Ref/Types/RefExampleRef.js | shengnian/shengnian-ui-react | import React, { Component } from 'react'
import { Grid, Table, Ref, Segment } from 'shengnian-ui-react'
export default class RefExampleRef extends Component {
state = {}
handleRef = node => this.setState({ node })
render() {
const { node } = this.state
return (
<Grid columns={2}>
<Grid.C... |
src/svg-icons/action/hourglass-full.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHourglassFull = (props) => (
<SvgIcon {...props}>
<path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6z"/>
</SvgIcon>
);
ActionHourglassFull = pure(ActionHour... |
packages/material-ui-icons/src/NotInterestedRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20zm6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 ... |
ui/src/containers/BasicQueryBuilder/Discrete/TempCriterion.js | LearningLocker/learninglocker | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Map, Set, List } from 'immutable';
import { connect } from 'react-redux';
import QueryBuilderAutoComplete from
'ui/components/AutoComplete2/QueryBuilderAutoComplete';
import { CriterionOperator, CriterionValue, CriterionWrapper } f... |
src/js/components/icons/base/Lounge.js | linde12/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... |
webpack/components/MultiSelect/index.js | adamruzicka/katello | import React from 'react';
import PropTypes from 'prop-types';
import { translate as __ } from 'foremanReact/common/I18n';
import { FormGroup, ControlLabel } from 'react-bootstrap';
import BootstrapSelect from '../../move_to_pf/react-bootstrap-select';
function MultiSelect(props) {
const {
options,
onChange,... |
ajax/libs/react-modal/1.6.4/react-modal.js | brix/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... |
public/assets/js/jquery.min.js | azimmomin123/CollegeCarPool | /*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
spec/javascripts/jsx/speed_grader/AssessmentAuditTray/components/AssessmentSummarySpec.js | djbender/canvas-lms | /*
* Copyright (C) 2018 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/components/cplusplus/original/CplusplusOriginal.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './CplusplusOriginal.svg'
/** CplusplusOriginal */
function CplusplusOriginal({ width, height, className }) {
return (
<SVGDeviconInline
className={'CplusplusOrigina... |
ajax/libs/raven.js/raven-node@2.6.3/angular,vue/raven.js | joeyparrish/cdnjs | /*! Raven.js 3.26.2 (b10a875) | github.com/getsentry/raven-js */
/*
* Includes TraceKit
* https://github.com/getsentry/TraceKit
*
* Copyright 2018 Matt Robenolt and other contributors
* Released under the BSD license
* https://github.com/getsentry/raven-js/blob/master/LICENSE
*
*/
(function(f){if(typeof expor... |
client2/src/main/resources/static/bower_components/highcharts-release/highcharts.src.js | ktarou/sso-poc | // ==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... |
ui/src/main/js/pages/Jobs.js | apache/aurora | import React from 'react';
import Breadcrumb from 'components/Breadcrumb';
import JobList from 'components/JobList';
import PanelGroup, { PanelSubtitle, StandardPanelTitle } from 'components/Layout';
import Loading from 'components/Loading';
import RoleQuota from 'components/RoleQuota';
import { isNully } from 'utils... |
src/Measurements.js | petercm/measurements-tally | import React from 'react';
import './Measurements.css';
const measurementList = (measurements) => (
<table className="table table-bordered">
<thead>
<tr>
<th>Measurements</th>
</tr>
</thead>
<tbody>
{ measurements.map((m, i) => (
<tr key={`m-${i}`}><td>{m.join(' x ')}</t... |
ajax/libs/foundation/4.0.8/js/vendor/jquery.js | dangerbell/cdnjs | /*!
* jQuery JavaScript Library v1.9.1
* 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-2-4
*/
(function( window, undefined ) {
// Can't do t... |
client/components/PhotoGrid.js | phattranky/LearnRedux_ReactD3 | import React from 'react';
import Photo from './Photo';
import { Link } from 'react-router';
const PhotoGrid = React.createClass({
render() {
return (
<div className="photo-grid">
{this.props.posts.map((post, i) => <Photo {...this.props} key={i} index={i} post={post} />)}
</div>
)
}
})... |
examples/react-hello/test/lib/index.js | timarney/tdd-es6-react | import test from 'tape';
import React from 'react';
import dom from 'cheerio';
import hello from '../../source/hello';
import createActions from '../fixtures/create-actions';
const renderText = React.renderToStaticMarkup;
test('Hello component', nest => {
nest.test('...with no props', assert => {
const Hello =... |
ajax/libs/vue-smart-table/2.5.0-alpha18/vue-smart-table.js | dada0423/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("Vue"));
else if(typeof define === 'function' && define.amd)
define(["Vue"], factory);
else if(typeof exports === 'object')
exports["SmartTable"] = factory(... |
ajax/libs/yui/3.10.1/simpleyui/simpleyui.js | dada0423/cdnjs | /**
The YUI module contains the components required for building the YUI seed file.
This includes the script loading mechanism, a simple queue, and the core
utilities for the library.
@module yui
@main yui
@submodule yui-base
**/
/*jshint eqeqeq: false*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The... |
test/helpers/shallowRenderHelper.js | vinhnglx/Dzone-news | /**
* 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-ut... |
app/components/Counter.js | RichardLilja/BMC | // @flow
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import styles from './Counter.css';
class Counter extends Component {
props: {
increment: () => void,
incrementIfOdd: () => void,
incrementAsync: () => void,
decrement: () => void,
counter: number
};
... |
js/lib/jquery.js | flyher/mirrors.scau.edu.cn | /*!
* jQuery JavaScript Library v1.12.4
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-05-20T17:17Z
*/
(function( global, factory ) {
if ( typeof module =... |
ajax/libs/yui/3.9.0/datatable-body/datatable-body-coverage.js | Jonybang/cdnjs | if (typeof _yuitest_coverage == "undefined"){
_yuitest_coverage = {};
_yuitest_coverline = function(src, line){
var coverage = _yuitest_coverage[src];
if (!coverage.lines[line]){
coverage.calledLines++;
}
coverage.lines[line]++;
};
_yuitest_coverfunc = functio... |
mxcube3/ui/containers/PleaseWaitDialog.js | mguijarr/mxcube3 | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Modal, ProgressBar, Button } from 'react-bootstrap';
import { setLoading } from '../actions/general';
export class PleaseWaitDialog extends React.Component {
constructor(props) {
super(props);
... |
src/routers.js | Allblur/react-music | import React from 'react'
import { Route, Redirect, IndexRoute } from 'react-router'
import Index from 'containers/Index'
import Home from 'containers/Home'
import SongDetail from 'containers/SongDetail'
import PlaylistDetail from 'containers/PlaylistDetail'
import Search from 'containers/Search'
function hasLogin() {... |
files/rxjs/2.3.6/rx.lite.js | rtenshi/jsdelivr | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
v... |
frontend/src/components/Messages.js | daGrevis/msks | import fp from 'lodash/fp'
import React from 'react'
import { connect } from 'react-redux'
import {
getMessages,
getMessagesBefore,
getMessagesAfter,
getMessagesAround,
} from '../store/actions/messages'
import { messageIdSelector } from '../store/selectors/router'
import { channelSelector } from '../store/sel... |
src/components/TextCard/index.js | simpaa/s-andersson-site | import React from 'react';
const style = {
backgroundColor: '#fff',
maxWidth: '700px',
margin: '20px auto',
color: '#4c4c4c',
padding: '15px',
borderRadius: '4px',
boxShadow: '0px 0px 8px #4c4c4c'
}
const TextCard = ({ children }) => (
<article style={style}>
{children}
</article>
);
ex... |
app/javascript/mastodon/features/lists/components/new_list_form.js | vahnj/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { changeListEditorTitle, submitListEditor } from '../../../actions/lists';
import IconButton from '../../../components/icon_button';
import { defineMessages, injectIntl } from 'react-intl';
const messages = def... |
src/components/comment_box.js | Rickardkamel/React-Testing | import React, { Component } from 'react';
import { connect } from 'react-redux';
import * as actions from '../actions';
class CommentBox extends Component {
constructor(props) {
super(props);
this.state = { comment: '' };
}
handleChange(event) {
this.setState({ comment: event.targ... |
src/components/Login.js | unihackhq/skilled-acolyte-frontend | import React from 'react';
import { Redirect } from 'react-router-dom';
import { observer, inject, PropTypes as MobxPropTypes } from 'mobx-react';
import { Message, MessageHeader, MessageBody,
Field, Label, Control, Input, Button, Title } from 'bloomer';
import Page from './Page';
import { apiPostNoAuth } from '../ut... |
ajax/libs/video.js/5.0.0-rc.80/video.js | BenjaminVanRyseghem/cdnjs | /**
* @license
* Video.js 5.0.0-rc.80 <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... |
client/app/bundles/comments/store/routerCommentsStore.js | justin808/react-webpack-rails-tutorial | import { applyMiddleware, compose, createStore, combineReducers } from 'redux';
import { routerReducer } from 'react-router-redux';
import thunkMiddleware from 'redux-thunk';
import loggerMiddleware from 'libs/middlewares/loggerMiddleware';
import reducers, { initialStates } from '../reducers';
export default (props... |
src/containers/Asians/TabControls/PreliminaryRounds/CreateRooms/4_RankRoomType/RankComponent/returnRoomCardComponents.js | westoncolemanl/tabbr-web | import React from 'react'
import RoomCard from './RoomCard'
import RoomDropZone from './RoomDropZone'
import KeyboardArrowUp from 'material-ui-icons/KeyboardArrowUp'
import KeyboardArrowDown from 'material-ui-icons/KeyboardArrowDown'
import Chip from 'material-ui/Chip'
import {
TableRow,
TableCell
} from 'materia... |
ajax/libs/yui/3.3.0/event-custom/event-custom-base-debug.js | bgrins/cdnjs | YUI.add('event-custom-base', function(Y) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module ev... |
src/common/MethodLabel/MethodLabel.js | Syncano/syncano-dashboard | import React from 'react';
import { colors as Colors } from 'material-ui/styles';
const styles = {
container: {
padding: '8px 0',
borderRadius: 5,
width: 64,
color: Colors.grey100,
display: 'inline-flex',
justifyContent: 'center',
alignItems: 'center',
fontSize: 12,
textTransform... |
app/components/Counter.js | longgame/koa-boilerplate | 'use strict;'
require('bootstrap');
require('react-bootstrap');
import React from 'react';
import { Button } from 'react-bootstrap';
module.exports = React.createClass({
getInitialState: function() {
return {
presscount: 0,
}
},
handleClick: function() {
this.setState({
presscount: this... |
docs/build.js | roadmanfong/react-bootstrap | 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 './generate-metadata';
const repoRo... |
definitions/npm/react-navigation-tabs_v2.x.x/test_react-navigation-tabs.js | splodingsocks/FlowTyped | // @flow
import type {
NavigationRoute,
NavigationTabProp,
} from 'react-navigation-tabs';
import {
createBottomTabNavigator,
createMaterialTopTabNavigator,
} from 'react-navigation-tabs';
import React from 'react';
/**
* Screens
*/
const FunctionalScreenComponent = (
{ navigation }: {| navigation: Navi... |
ajax/libs/yui/3.5.0pr6/event-custom-base/event-custom-base.js | vfonic/cdnjs | YUI.add('event-custom-base', function(Y) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module ev... |
renderer/components/Settings/SettingsFieldsGeneral.js | LN-Zap/zap-desktop | import React from 'react'
import PropTypes from 'prop-types'
import { currencies, locales, getLanguageName } from '@zap/i18n'
import { Bar, DataRow } from 'components/UI'
import { Toggle, Select, FieldLabelFactory } from 'components/Form'
import messages from './messages'
const FieldLabel = FieldLabelFactory(messages)... |
packages/core/content-type-builder/admin/src/components/SelectComponent/index.js | wistityhq/strapi | /**
*
* SelectComponent
*
*/
import React from 'react';
import { useIntl } from 'react-intl';
import PropTypes from 'prop-types';
import { Select, Option } from '@strapi/design-system/Select';
import useDataManager from '../../hooks/useDataManager';
const SelectComponent = ({
error,
intlLabel,
isAddingAComp... |
ajax/libs/rxjs/2.3.0/rx.compat.js | owcc/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... |
app/components/shared/CreditCardInput.js | buildkite/frontend | import React from 'react';
import PropTypes from 'prop-types';
import creditCardType, { types as CardType } from 'credit-card-type';
// 19 is the longest (unformatted) length of
// any accepted card type as of July 2017
const FALLBACK_CARD_LENGTH = 19;
const CARD_GAP_STRING = ' ';
const maxLengthForCardType = (cardTy... |
node_modules/react-router/es6/IndexRoute.js | fahidRM/aqua-couch-test | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { component, components, falsy } from './InternalPropTypes';
var func = React.PropTypes.func;
/**
* An <IndexRoute> i... |
app/components/Header/index.js | Dattaya/react-boilerplate-object | import React from 'react';
import { FormattedMessage } from 'react-intl';
import A from './A';
import Img from './Img';
import NavBar from './NavBar';
import HeaderLink from './HeaderLink';
import Banner from './banner.jpg';
import messages from './messages';
class Header extends React.Component { // eslint-disable-l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.