path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/preact-compat/1.7.0/preact-compat.js | joeyparrish/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('proptypes'), require('preact-svg'), require('preact')) :
typeof define === 'function' && define.amd ? define(['exports', 'proptypes', 'preact-svg', 'preact'], factory) :
(factory((global.preactCompa... |
src/index.js | cherta/apis-uy | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import Root from './containers/Root'
import Page from './containers/Page'
import NoMatch from './components/NoMatch'
import configureStore from './store/configureStore'
import { Router, Route } from 'react-router'
import... |
ajax/libs/yui/3.8.1/event-focus/event-focus.js | dlueth/cdnjs | YUI.add('event-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
arrayIndex = Y.Array.indexOf,
useActivate = (function() {
... |
static/client/app/components/MyAwesomeReactComponent.js | teo-mateo/ydl | import React from 'react';
import RaisedButton from 'material-ui/RaisedButton'
const MyAwesomeReactComponent = () => (
<RaisedButton label="Default" />
);
export default MyAwesomeReactComponent |
ajax/libs/react-highcharts/9.0.0/RedrawOnPrint.src.js | AMoo-Miki/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["RedrawOnPrint"] = f... |
ajax/libs/analytics.js/2.0.0/analytics.js | DDMAL/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/forerunnerdb/1.3.719/fdb-all.js | dada0423/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/routes.js | alexmasselot/medlineGeoWebFrontend | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/HttpClient';
import App from './components/App';
import InteractiveView from './components/InteractiveView';
import HexaMapPage from './components/... |
react-flux-mui/js/material-ui/src/svg-icons/alert/add-alert.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AlertAddAlert = (props) => (
<SvgIcon {...props}>
<path d="M10.01 21.01c0 1.1.89 1.99 1.99 1.99s1.99-.89 1.99-1.99h-3.98zm8.87-4.19V11c0-3.25-2.25-5.97-5.29-6.69v-.72C13.59 2.71 12.88 2 12 2s-1.59.71-1.59 1.59v... |
app/javascript/mastodon/features/ui/components/media_modal.js | ikuradon/mastodon | import React from 'react';
import ReactSwipeableViews from 'react-swipeable-views';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Video from 'mastodon/features/video';
import classNames from 'classnames';
import { defineMessages, injectIntl } from 'react-intl';
i... |
src/Eventplanner/Popup.js | ctco/rosemary-ui | import React from 'react';
import EventCell from './EventCell';
import { isSelected } from './utils/selection';
import localizer from './localizer';
import getOffset from 'dom-helpers/query/offset';
import getScrollTop from 'dom-helpers/query/scrollTop';
import getScrollLeft from 'dom-helpers/query/scrollLeft';
... |
app/javascript/mastodon/features/ui/components/columns_area.js | honpya/taketodon | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl } from 'react-intl';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ReactSwipeableViews from 'react-swipeable-views';
import { links, getIndex, get... |
ajax/libs/react/15.3.2/react.min.js | sashberd/cdnjs | /**
* React v15.3.2
*
* Copyright 2013-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.... |
ajax/libs/react-data-grid/1.0.34/react-data-grid.ui-plugins.min.js | honestree/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactDataGrid=t(require("react"),require("react-dom")):e.ReactDataGrid=t(e.React,e.ReactDOM)}(th... |
ajax/libs/redux-form/5.1.3/redux-form.min.js | tholu/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReduxForm=e(require("react")):t.ReduxForm=e(t.React)}(this,function(t){return function(t){function e(n){if(r[n])return r[n].expor... |
node_modules/react-bootstrap/es/MediaRight.js | C0deSamurai/muzjiks | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/parser/rogue/assassination/modules/core/Snapshot.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import { encodeTargetString } from 'parser/shared/modules/EnemyInstances';
import calculateEffectiveDamage from 'parser/... |
example/App/index.js | in-flux/react-component-router | import React from 'react';
import {useValue} from '../../src';
import {A} from '../A';
import {Menu} from '../Menu';
import {Home} from './Home';
import {Foo} from './Foo';
import {Bar} from './Bar';
import css from './App.css';
export function App() {
const page = useValue('page');
return (
<div className={... |
text-dream/webapp/src/cardcontentprocessing/index.js | PAIR-code/interpretability | /**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
app/Plugin/debug_kit/webroot/js/jquery.js | trendac/nucleos | /*! jQuery v@1.8.1 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d=... |
src/components/AddClient/components/ClientProfile/ClientProfile.js | TheModevShop/craft-app | import React from 'react';
import _ from 'lodash';
import ClientProfileForm from 'components/Forms/ClientProfileForm';
import formatPhoneNumber from 'utility/formatPhoneNumber';
import formIsComplete from 'utility/formIsComplete';
import './client-profile.less';
class StaffProfile extends React.Component {
construct... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | madslonnberg/blog | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
packages/react-error-overlay/src/containers/StackFrameCodeBlock.js | TryKickoff/create-kickoff-app | /**
* 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 CodeBlock from '../components/CodeBlock';
import { applyStyles } from '../utils/dom/css';
... |
ajax/libs/yui/3.7.0pr2/event-focus/event-focus-coverage.js | dannyxx001/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... |
techCurriculum/ui/solutions/5.3/src/components/Title.js | tadas412/EngineeringEssentials | /**
* Copyright 2017 Goldman Sachs.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
src/App.js | thethirdwheel/reasonabledisagreement | import React, { Component } from 'react';
import './App.css';
import { Icon, FABButton, Footer, List, ListItem, Layout, Header, Navigation, Content, Card, CardTitle, CardText, } from 'react-mdl';
var pallet = {
black: "#343330",
white: "#F2F4F3",
lightBlue: "#2660A4",
darkBlue: "#384E77",
orange: "#F19953",
... |
src/js/App.js | spantons/table-box | /**
* Created by freddyrondon on 4/8/16.
*/
import React from 'react'
import ReactDOM from 'react-dom';
import TableBox from './TableBox/TableBox'
import TableHeaderColumn from './TableBox/TableHeaderColumn'
import './../css/bootstrap.css';
import './../css/font-awesome.css';
import './../css/base.css';
const ge... |
src/SplitToggle.js | xsistens/react-bootstrap | import React from 'react';
import DropdownToggle from './DropdownToggle';
export default class SplitToggle extends React.Component {
render() {
return (
<DropdownToggle
{...this.props}
useAnchor={false}
noCaret={false}
/>
);
}
}
SplitToggle.defaultProps = DropdownToggle... |
src/main/scripts/modules/sea-siege/react/views/card/oracle.js | twuni/sea-siege | import React from 'react';
import Component from '../../components/component';
const {element, oneOfType, string} = React.PropTypes;
class Oracle extends Component {
static get propTypes() {
return Component.withPropTypes({
description: oneOfType([
string,
element
]),
quote: ... |
src/packages/@ncigdc/uikit/SparkMeter.js | NCI-GDC/portal-ui | import React from 'react';
export default ({ value, width = 30, max = 30, style, ...props }) => (
<div
style={{
width,
height: 8,
backgroundColor: `rgb(209, 209, 209)`,
margin: '0 5px',
borderRadius: 2,
display: 'inline-block',
pointerEvents: 'none',
...style,
}... |
techCurriculum/ui/solutions/4.2/src/components/Card.js | AnxChow/EngineeringEssentials-group | /**
* Copyright 2017 Goldman Sachs.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
docs/app/Examples/elements/Step/Variations/StepExampleSizes.js | koenvg/Semantic-UI-React | import React from 'react'
import { Step } from 'semantic-ui-react'
const steps = [
{ icon: 'truck', title: 'Shipping', description: 'Choose your shipping options' },
{ active: true, icon: 'payment', title: 'Billing', description: 'Enter billing information' },
{ disabled: true, icon: 'info', title: 'Confirm Orde... |
lavalab/html/node_modules/react-bootstrap/es/ModalHeader.js | LavaLabUSC/usclavalab.org | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
app/components/routes.js | Xantier/nerd-stack | import React from 'react';
import { Route, NotFoundRoute } from 'react-router';
import Index from './index/Index.jsx';
import Signin from './index/Signin.jsx';
import Register from './index/Register.jsx';
import Hello from './index/Hello.jsx';
import Profile from './user/Profile.jsx';
import NotFound from './NotFound.j... |
ajax/libs/rxjs/2.3.0/rx.lite.js | taydakov/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... |
docs/index.js | jrsowles/react-building-blocks | // npm modules
import React, { Component } from 'react';
import { render } from 'react-dom';
import { hashHistory, Route, IndexRoute, Router } from 'react-router';
// app modules
import Components from 'components/Components';
import Home from 'components/Home';
import Icon from 'components/IconDocs';
import ... |
webapp/app/components/SoftwaresByUser/Buttons/ModalAddAllSoftwares/index.js | EIP-SAM/SAM-Solution-Server | //
// Modal to add several softwares in softwares by user page
//
import React from 'react';
import { Modal, ButtonToolbar, Glyphicon } from 'react-bootstrap';
import LinkContainerButton from 'components/Button';
import styles from 'components/SoftwaresByUser/styles.css';
/* eslint-disable react/prefer-stateless-func... |
files/react/15.0.0-rc.2/react-with-addons.js | gswalden/jsdelivr | /**
* React (with addons) v15.0.0-rc.2
*/
(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!=="... |
src/components/profile/ProfileInfo.js | Team-Banana-Guava/JobOrNot-React | import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
const mapStateToProps = (state) => {
return {
user: state.userAuth.user
};
};
const ProfileInfo = (props) => {
let user = props.user;
return (
<div>
<h3>Your Profile</h3>
<p>Name: ... |
internals/templates/appContainer.js | huahuaxiong/console | /**
*
* App.react.js
*
* 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)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
src/svg-icons/social/person-outline.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPersonOutline = (props) => (
<SvgIcon {...props}>
<path d="M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C... |
tests/vendor/jquery-1.8.3.min.js | MrNener/bootbox | /*! 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==... |
web/src/js/__tests__/components/Header/FileMenuSpec.js | zlorb/mitmproxy | import React from 'react'
import renderer from 'react-test-renderer'
import { FileMenu } from '../../../components/Header/FileMenu'
global.confirm = jest.fn( s => true )
describe('FileMenu Component', () => {
let clearFn = jest.fn(),
loadFn = jest.fn(),
saveFn = jest.fn(),
openModalFn = je... |
www/spa/src/Survey/components/Complete/Question.js | gram7gram/Survey | import '../../../../node_modules/react-select/dist/react-select.css';
import React from 'react';
import {Row,Col,Alert} from 'react-bootstrap';
import Select from 'react-select';
import SDSurveyTranslator from '../../translator'
import * as Utils from '../../utils';
import Choice from './Choice';
import addRespondent... |
app/containers/Dashboard/Overview.js | acebusters/ab-web | import React from 'react';
import PropTypes from 'prop-types';
import { createStructuredSelector } from 'reselect';
import web3Connect from '../AccountProvider/web3Connect';
import makeSelectAccountData from '../AccountProvider/selectors';
import messages from './messages';
import { txnsToList } from './txnsToList';
... |
me/packages/custom/product/public/assets/lib/zeroclipboard/dist/ZeroClipboard.js | hbzhang/me | /*!
* 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.1.6
*/
(function(window, undefined) {
"use strict";... |
gbe/resources/assets/js/components/YearButtonPanel.js | DemocracyApps/Community-Budget-Explorer | /*
React component to create an 'Account Type' panel of buttons for the 'page toolbar' of the app.
*/
import React from 'react';
var dataModelStore = require('../stores/DataModelStore');
var dispatcher = require('../common/BudgetAppDispatcher');
var stateStore = require('../stores/StateStore');
var ActionTypes = req... |
src/routers/AuthorizedRoute.js | algernon/mad-tooter | // @flow
/* The Mad Tooter -- A Mastodon client
* Copyright (C) 2017 Gergely Nagy
*
* 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
* License, or (at your o... |
src/addons/dragAndDrop/DraggableEventWrapper.js | manishksmd/react-scheduler-smartdata | import PropTypes from 'prop-types'
import React from 'react'
import { DragSource } from 'react-dnd'
import { getEmptyImage } from 'react-dnd-html5-backend'
import cn from 'classnames'
import compose from './compose'
import { accessor } from '../../utils/propTypes'
import { accessor as get } from '../../utils/accessors'... |
ajax/libs/6to5/1.13.13/browser-polyfill.js | yinghunglai/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... |
blueocean-material-icons/src/js/components/svg-icons/image/panorama-wide-angle.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImagePanoramaWideAngle = (props) => (
<SvgIcon {...props}>
<path d="M12 6c2.45 0 4.71.2 7.29.64.47 1.78.71 3.58.71 5.36 0 1.78-.24 3.58-.71 5.36-2.58.44-4.84.64-7.29.64s-4.71-.2-7.29-.64C4.24 15.58 4 13.78 4 12c0-1.78.24-3.58.71-5.36C7.29 6.2 ... |
src-client/modules/workspace/containers/SaveDefaultModelModal/index.js | ipselon/structor | /*
* Copyright 2017 Alexander Pustovalov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... |
app/javascript/mastodon/features/direct_timeline/components/conversations_list.js | Chronister/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ConversationContainer from '../containers/conversation_container';
import ScrollableList from '../../../components/scroll... |
app/javascript/mastodon/features/compose/components/reply_indicator.js | cybrespace/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from '../../../components/avatar';
import IconButton from '../../../components/icon_button';
import DisplayName from '../../../components/display_name';
import { defineMessages, injec... |
profiles/dhp_profile/modules/contrib/jquery_update/replace/jquery/1.5/jquery.min.js | yonas/drupal-hosting-platform | /*!
* jQuery JavaScript Library v1.5.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/js/components/Album.js | varmais/spteefu | import React from 'react';
class Album extends React.Component {
_handleClick() {
window.open(this.props.album.uri);
}
render() {
var album = this.props.album;
return (
<div className="col-xs-12 col-sm-6 col-md-3 album" onClick={this._handleClick.bind(this)}>
... |
dva/wd/src/components/Form/AvatarEditor.js | imuntil/React | import React from 'react'
import PropTypes from 'prop-types'
import ReactAvatarEditor from 'react-avatar-editor'
import { WhiteSpace, Slider, Icon } from 'antd-mobile'
// import _ from 'lodash'
// import { delay } from '../../services/tools-fun'
import styles from './AvatarEditor.css'
class AvatarEditor extends React.... |
ajax/libs/react-dom/0.14.3/react-dom.js | extend1994/cdnjs | /**
* ReactDOM v0.14.3
*
* 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.... |
src/components/autocomplete/Search.js | SpicyZinc/SpicyContents | // https://alligator.io/react/react-autocomplete/
import React, { Component } from 'react';
import Suggestions from './Suggestions';
class Autocomplete extends Component {
static defaultProps = {
options: []
};
constructor(props) {
super(props);
this.state = {
error: false,
showSuggestions: false,
... |
ajax/libs/forerunnerdb/1.3.393/fdb-all.min.js | kiwi89/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/component/Pressure.js | dnadrshin/dashboard | import React, { Component } from 'react';
import { connect } from 'react-redux';
class Pressure extends Component {
constructor(props) {
super(props);
this.state = {
pressure: 1000
}
}
render() {
return (
<div>
<lable>Pressure: {this.... |
src/parser/druid/feral/modules/spells/ThrashHitCount.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import HitCountAoE from '../core/HitCountAoE';
/**
* Even with its DoT, thrash shouldn't be used against a single target. It's possible that some
... |
src/FadeMixin.js | azmenak/react-bootstrap | import React from 'react';
import domUtils from './utils/domUtils';
import deprecationWarning from './utils/deprecationWarning';
// TODO: listen for onTransitionEnd to remove el
function getElementsAndSelf (root, classes){
let els = root.querySelectorAll('.' + classes.join('.'));
els = [].map.call(els, function(e... |
src/App.js | bonham000/fcc-react-tests-module | /* eslint-disable */
import React from 'react';
import axios from 'axios';
import ReactTestComponent from './test-components/ReactTestComponent';
import ReduxTestComponent from './test-components/ReduxTestComponent';
// import React Challenges:
import * as React_01 from './challenges/react/React_01'
import * as React_... |
__tests__/index.ios.js | oksimple/jianshuReactNative | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
resource/js/components/Page/PagePath.js | crow-misia/crowi | import React from 'react';
export default class PagePath extends React.Component {
// Original Crowi.linkPath
/*
Crowi.linkPath = function(revisionPath) {
var $revisionPath = revisionPath || '#revision-path';
var $title = $($revisionPath);
var pathData = $('#content-main').data('path');
if (!pa... |
ajax/libs/6to5/2.7.4/browser.js | tonytlwu/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... |
test/ColSpec.js | leozdgao/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Col from '../src/Col';
describe('Col', function () {
it('Should set Offset of zero', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Col xsOffset={0} smOffset={0} mdOffset={0} lgOffset={0} />
);
... |
docs/src/app/components/pages/components/GridList/ExampleSingleLine.js | igorbt/material-ui | import React from 'react';
import {GridList, GridTile} from 'material-ui/GridList';
import IconButton from 'material-ui/IconButton';
import StarBorder from 'material-ui/svg-icons/toggle/star-border';
const styles = {
root: {
display: 'flex',
flexWrap: 'wrap',
justifyContent: 'space-around',
},
gridLi... |
client/src/components/AboutPage.spec.js | dragonq29/mini-bat | import React from 'react';
import {shallow} from 'enzyme';
import {expect} from 'chai';
import AboutPage from './AboutPage';
describe('<AboutPage />', () => {
it('should have a header called \'About\'', () => {
const wrapper = shallow(<AboutPage />);
const actual = wrapper.find('h2').text();
const expect... |
lib/optionList.js | zeeskhan1990/react-native-option-select | const Overlay = require('./overlay');
const Items = require('./items');
import React, { Component } from 'react';
import {
Dimensions,
StyleSheet,
View,
NativeModules,
findNodeHandle
} from 'react-native';
const window = Dimensions.get('window');
class OptionList extends Component {
constructor(props) {
... |
src/svg-icons/image/filter-drama.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterDrama = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.61 5.64 5.36 8.04 2.35 8.36 0 10.9 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4... |
src/plugin-hooks/useRowState.js | react-tools/react-table | import React from 'react'
import {
actions,
functionalUpdate,
useMountedLayoutEffect,
useGetLatest,
} from '../publicUtils'
const defaultInitialRowStateAccessor = row => ({})
const defaultInitialCellStateAccessor = cell => ({})
// Actions
actions.setRowState = 'setRowState'
actions.setCellState = 'setCellSta... |
client/test/components/documents/DocumentDisplay.spec.js | andela-eefekemo/DMS | /* global expect jest test */
import React from 'react';
import { shallow } from 'enzyme';
import toJson from 'enzyme-to-json';
import DocumentDisplay from '../../../components/documents/DocumentDisplay';
jest.dontMock('../../../components/documents/DocumentDisplay');
describe('DocumentDisplay Component', () => {
t... |
ajax/libs/forerunnerdb/1.3.589/fdb-core+views.min.js | sashberd/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
ajax/libs/6to5/2.4.5/browser.js | icco/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... |
src/shared/playlists/ListPage.js | alexisjanvier/universal-react | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Route, Link } from 'react-router-dom';
import { connect } from 'react-redux';
import { withStyles, createStyleSheet } from 'material-ui/styles';
import List, { ListItem, ListItemIcon } from 'material-ui/List';
import InboxIcon from '... |
play1/public/javascripts/jquery-1.6.4.min.js | seem-sky/FrameworkBenchmarks | /*! 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");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe"... |
packages/with-online-status-props/test/index.js | deepsweet/hocs | import React from 'react'
import { mount } from 'enzyme'
const Target = () => null
const dummyMapStatusToProps = () => {}
describe('withOnlineStatusProps', () => {
describe('Online Status API is supported', () => {
let origOnlineStatus = null
let withOnlineStatusProps = null
beforeAll(() => {
ori... |
packages/material-ui-icons/src/PlaylistPlay.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 10h12v2H4zm0-4h12v2H4zm0 8h8v2H4zm10 0v6l5-3z" /></React.Fragment>
, 'PlaylistPlay');
|
src/svg-icons/image/photo-album.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePhotoAlbum = (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 12V4zm0 15l3-3.86 2.14 2.58 3-3.86L18 19H6z"/>
</Sv... |
frontend/src/index.js | geogolem/Radarr | import { createBrowserHistory } from 'history';
import React from 'react';
import { render } from 'react-dom';
import createAppStore from 'Store/createAppStore';
import App from './App/App';
import './preload';
import './polyfills';
import 'Styles/globals.css';
import './index.css';
const history = createBrowserHisto... |
src/js/pages/authentication.js | daniel-madera/pijs | import React from 'react'
import { observer, inject } from 'mobx-react'
import { Button, ControlLabel, Col, Form, FormControl, FormGroup, Grid, Row } from 'react-bootstrap'
@inject('appStore', 'userStore', 'routerStore')
@observer
export default class Authentication extends React.Component {
componentDidMount() {... |
app/components/footer.js | mario2904/ICOM5016-Project | import React, { Component } from 'react';
import { Link } from 'react-router';
import { Menu, Segment, Icon, Grid, Dropdown } from 'semantic-ui-react';
export default class Footer extends Component {
render () {
return (
<div style={this.props.style}>
<Grid padded centered style={{height:"100px"}}>... |
ajax/libs/forerunnerdb/1.3.537/fdb-core.js | jdh8/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... |
ajax/libs/react-quill/0.1.0/react-quill.js | Amomo/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("quill"));
else if(typeof define === 'function' && define.amd)
define(["react", "quill"], factory);
else if(typeof exports === 'object')
e... |
ajax/libs/yui/3.10.1/datatable-body/datatable-body-coverage.js | cbas/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"... |
services/storeservice.js | cackharot/fbeazt-admin-react-native | import React from 'react';
import Config from 'react-native-config';
import {BaseService} from './baseservice';
import {Product} from '../model/product';
import {Restaurant} from '../model/restaurant';
export class StoreService extends BaseService {
getStores(nextUrl, searchModel) {
let sm = Object.assign({}, ... |
src/components/ShopsList.js | onlinebooking/booking-frontend | import React from 'react';
import { Link } from 'react-router';
import { ListGroup, ListGroupItem, Image } from 'react-bootstrap';
class ShopsListItem extends React.Component {
render() {
const { name, description } = this.props;
const { imageUrl } = this.props['booking_frontend_data'];
return (
... |
ajax/libs/yui/3.4.0/event-focus/event-focus.js | kartikrao31/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="... |
demo/TextEditorViewDemo.js | rameshvk/j0 | 'use strict';
import BaseComponent from '../ux/BaseComponent';
import React from 'react';
import ReactDOM from 'react-dom';
import Demo from './Demo';
import DemoDescription from './DemoDescription.js';
import TextEditorView from '../ux/editor/TextEditorView';
import TextSelection from '../ux/editor/TextSelection.js';... |
src/Info/Info.js | AbhiPrasad/vizi | import React, { Component } from 'react';
import {
Card, CardImg, CardText, CardBlock,
CardTitle, CardSubtitle, Button
} from 'reactstrap';
class Info extends Component {
render() {
return (
<div>
<Card>
<CardImg top src="https://placeholdit.imgix.net/~text?txtsize=33&txt=318%C3%97180... |
app/components/ToggleOption/index.js | samit4me/react-boilerplate | /**
*
* ToggleOption
*
*/
import React from 'react';
import { injectIntl, intlShape } from 'react-intl';
const ToggleOption = ({ value, message, intl }) => (
<option value={value}>
{intl.formatMessage(message)}
</option>
);
ToggleOption.propTypes = {
value: React.PropTypes.string.isRequired,
message: Rea... |
ajax/libs/foundation/4.1.6/js/vendor/jquery.js | Assalaam/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... |
openex-front/src/private/components/profile/UserForm.js | Luatix/OpenEx | import React, { Component } from 'react';
import * as PropTypes from 'prop-types';
import { Form } from 'react-final-form';
import MenuItem from '@mui/material/MenuItem';
import Button from '@mui/material/Button';
import { Select } from '../../../components/Select';
import { TextField } from '../../../components/TextFi... |
InfoPath/Samples/EmployeeRegistration.Forms/EmployeeRegistration.FormsWeb/Scripts/jquery-1.9.1.js | OfficeDev/PnP-Transformation | /* 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... |
docs/src/js/prettify.js | LeoHuiyi/react-ui | 'use strict'
import React from 'react'
export default function prettify (Component) {
class Prettify extends React.Component {
static displayName = 'Prettify'
static propTypes = {
children: React.PropTypes.array
}
componentDidMount () {
window.prettyPrint(null, React.findDOMNode(this.r... |
fields/types/date/DateFilter.js | codevlabs/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import classNames from 'classnames';
import moment from 'moment';
import DayPicker from 'react-day-picker';
import { FormField, FormInput, FormRow, FormSelect, SegmentedControl } from 'elemental';
const TOGGLE_OPTIONS = [
{ label: 'Matches', value: false }... |
src/components/ui/flex/container.js | xavier-besson/react-playground | import React from 'react';
import Default from 'components/ui/default';
/**
* @class FlexContainer
* @extends Default
*/
class FlexContainer extends Default {
/**
* Range of validators that can be used to make sure the data you receive is valid
* @type {Object}
*/
static propTypes = {
...Default.propTyp... |
ajax/libs/omniscient/2.1.0/omniscient.js | peteygao/cdnjs | /**
* Omniscient.js v2.1.0
* Authors: @torgeir,@mikaelbr
***************************************/
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.