path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
app/components/ConsoleToolbar.js | zoo1/fil | import React from 'react';
import {connect} from 'react-redux';
import {setPreference} from 'actions/preferences';
import {getExtension} from 'helpers';
import {byExtension} from 'interpreters';
class ConsoleToolbar extends React.Component {
handleRunButton(event) {
event.preventDefault();
this.props.onRun(... |
src/Row.js | omerts/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import CustomPropTypes from './utils/CustomPropTypes';
const Row = React.createClass({
propTypes: {
/**
* You can use a custom element for this component
*/
componentClass: CustomPropTypes.elementType
},
getDefaultProps() {
re... |
ajax/libs/react/0.11.0-rc1/JSXTransformer.js | dhowe/cdnjs | /**
* JSXTransformer v0.11.0-rc1
*/
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.JSXTransformer=... |
node_modules/react-icons/md/usb.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdUsb = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m25 11.6h6.6v6.8h-1.6v3.2c0 1.9-1.5 3.4-3.4 3.4h-5v5.1c1.2 0.6 2.1 1.9 2.1 3.3 0 2-1.7 3.6-3.7 3.6s-3.7-1.6-3.7-3.6c0-1.4 0.9-2.7 2.1-3.3v-5.1h-5c-1.9 0-3.4-1.5-3.4-3.4v-... |
src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/tests/unit/autocomplete/autocomplete_options.js | xavortm/brackets | (function( $ ) {
module( "autocomplete: options" );
var data = [ "c++", "java", "php", "coldfusion", "javascript", "asp", "ruby", "python", "c", "scala", "groovy", "haskell", "perl" ];
test( "appendTo", function() {
expect( 5 );
var element = $( "#autocomplete" ).autocomplete();
equal( element.autocomplete( "widg... |
docs/src/pages/components/alert/IconAlerts.js | lgollut/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Alert from '@material-ui/lab/Alert';
import CheckIcon from '@material-ui/icons/Check';
import CheckCircleOutlineIcon from '@material-ui/icons/CheckCircleOutline';
const useStyles = makeStyles((theme) => ({
root: {
width: '10... |
src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/tests/jquery-1.6.4.js | L0g1k/brackets | /*!
* jQuery JavaScript Library v1.6.4
* 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/yui/3.8.1/scrollview-base/scrollview-base-coverage.js | gauravarora/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... |
server/sonar-web/src/main/js/apps/overview/main/debt.js | vamsirajendra/sonarqube | import moment from 'moment';
import React from 'react';
import { Domain,
DomainHeader,
DomainPanel,
DomainNutshell,
DomainLeak,
MeasuresList,
Measure,
DomainMixin } from './components';
import { Rating } from './../../../components/shared/rating';
import {... |
src/svg-icons/action/find-replace.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFindReplace = (props) => (
<SvgIcon {...props}>
<path d="M11 6c1.38 0 2.63.56 3.54 1.46L12 10h6V4l-2.05 2.05C14.68 4.78 12.93 4 11 4c-3.53 0-6.43 2.61-6.92 6H6.1c.46-2.28 2.48-4 4.9-4zm5.64 9.14c.66-.9 1.... |
app/containers/Form/index.js | zebbra-repos/Zeiterfassung-medi | /*
*
* Form
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Field, reduxForm } from 'redux-form/immutable';
import Paper from 'material-ui/Paper';
import { TextField, Checkbox, SelectField, DatePicker } from 'redux-form-material-ui';
import MenuIt... |
app/src/containers/AppContainer/index.js | udacityalumni/alumni-client | import React, { Component, PropTypes } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as actionCreators from './actions';
import App from 'grommet-udacity/components/App';
import { AppNavigation, ToastMessage } from 'components';
import { updatePageTitle, getTi... |
src/js/components/icons/base/FormLocation.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
fields/types/name/NameField.js | mikaoelitiana/keystone | import Field from '../Field';
import React from 'react';
import { FormField, FormInput, FormRow } from 'elemental';
module.exports = Field.create({
displayName: 'NameField',
focusTargetRef: 'first',
valueChanged: function(which, event) {
this.props.value[which] = event.target.value;
this.props.onChange({
... |
ajax/libs/webshim/1.14.6-RC1/dev/shims/es6.js | DaAwesomeP/cdnjs | // ES6-shim 0.8.0 (c) 2013 Paul Miller (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 isCallableWithoutNew = fun... |
docs/app/Examples/elements/Rail/Variations/RailExampleCloseVery.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Grid, Image, Rail, Segment } from 'semantic-ui-react'
const RailExampleCloseVery = () => (
<Grid centered columns={3}>
<Grid.Column>
<Segment>
<Image src='http://semantic-ui.com/images/wireframe/paragraph.png' />
<Rail close='very' position='left'>
... |
src/svg-icons/action/view-module.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewModule = (props) => (
<SvgIcon {...props}>
<path d="M4 11h5V5H4v6zm0 7h5v-6H4v6zm6 0h5v-6h-5v6zm6 0h5v-6h-5v6zm-6-7h5V5h-5v6zm6-6v6h5V5h-5z"/>
</SvgIcon>
);
ActionViewModule = pure(ActionViewModule)... |
client/app/src/components/PlacesList.js | gk95/nightlux | import React from 'react'
import { graphql } from 'react-apollo';
import gql from 'graphql-tag';
import { Link } from 'react-router-dom';
import { Button, Icon, Image as ImageComponent, Item, Label } from 'semantic-ui-react';
export default function PlacesList({ services }) {
return (
<Item.Group divided>
... |
app/react-icons/fa/joomla.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaJoomla extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m26.9 23.9l-3.6 3.6-3.4 3.4-0.6 0.7q-1.5 1.4-3.4 1.9t-3.8 0.1q-0.4 1.5-1.6 2.... |
app/components/FormOffer.js | Ratholien/JobReact | import React from 'react';
import { Card,
CardActions,
CardHeader,
CardMedia,
CardText,
CardTitle,
FlatButton,
} from 'material-ui';
const FormOffer = () =>
<Card>
<CardHeader
title="URL Avatar"
subtitle="Subtitle"
avatar="images/jsa-128.jpg"
... |
vendor/htmlburger/carbon-fields/assets/js/fields/components/text/index.js | FolsomCreative/storynav | /**
* The external dependencies.
*/
import React from 'react';
import PropTypes from 'prop-types';
import { compose, withHandlers, setStatic } from 'recompose';
/**
* The internal dependencies.
*/
import Field from 'fields/components/field';
import withStore from 'fields/decorators/with-store';
import withSetup fr... |
lib/ui/src/components/panel/panel.stories.js | storybooks/react-storybook | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import Panel from './panel';
export const panels = {
test1: {
title: 'Test 1',
// eslint-disable-next-line react/prop-types
render: ({ active, key }) =>
active ? (
<d... |
src/App.js | ChristopherBiscardi/react-transform-css-modules-hot-example | import React, { Component } from 'react';
import { NICE, SUPER_NICE } from './colors';
import styles from './App.css';
class Counter extends Component {
constructor(props) {
super(props);
this.state = { counter: 0 };
this.interval = setInterval(() => this.tick(), 1000);
}
tick() {
this.setState(... |
ajax/libs/webshim/1.15.8/dev/shims/es6.js | wil93/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... |
ajax/libs/angular-google-maps/1.0.1/angular-google-maps.js | callumacrae/cdnjs | /**!
* The MIT License
*
* Copyright (c) 2010-2013 Google, Inc. http://angularjs.org
*
* 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 limitati... |
app/javascript/flavours/glitch/features/ui/components/mute_modal.js | vahnj/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { injectIntl, FormattedMessage } from 'react-intl';
import Toggle from 'react-toggle';
import Button from 'flavours/glitch/components/button';
import { closeModal } from 'flavours/glitch/actions/modal';
import {... |
ajax/libs/rxjs/2.3.1/rx.js | WilliamRen/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... |
imports/ui/components/app-navigation.js | dklisiaris/boomabu | import React from 'react';
import { Link } from 'react-router';
import { browserHistory } from 'react-router';
import Gravatar from 'react-gravatar';
import { ReactPageClick } from 'react-page-click';
export class AppNavigation extends React.Component {
constructor(props) {
super(props);
this.state = {
... |
src/svg-icons/action/home.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHome = (props) => (
<SvgIcon {...props}>
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
</SvgIcon>
);
ActionHome = pure(ActionHome);
ActionHome.displayName = 'ActionHome';
ActionHome.muiName = 'SvgIcon... |
packages/preset-react-app/src/client.js | phenomic/phenomic | // @flow
import {
renderApp,
createApp,
createContainer,
withInitialProps,
withPhenomicApi,
query,
BodyRenderer,
textRenderer,
Link,
} from "@phenomic/plugin-renderer-react/lib/client";
export {
renderApp,
createApp,
createContainer,
withInitialProps,
withPhenomicApi,
query,
BodyRender... |
app/javascript/mastodon/features/list_adder/index.js | sylph-sin-tyaku/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { injectIntl } from 'react-intl';
import { setupListAdder, resetListAdder } from '... |
src/svg-icons/image/hdr-strong.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageHdrStrong = (props) => (
<SvgIcon {...props}>
<path d="M17 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zM5 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 ... |
src/apps/home/home.app.js | raquel/cuddly-tribble | import React from 'react';
import ReactDOM from 'react-dom';
import singleSpaReact from 'single-spa-react';
import rootComponent from './root.component.js';
const reactLifecyles = singleSpaReact({
React,
ReactDOM,
domElementGetter,
rootComponent,
});
export const bootstrap = [
reactLifecyles.bootstrap,
];
expor... |
src/components/TrackInfo.js | hedgerh/thinkful-react-style-guide | import React from 'react';
export default React.createClass({
propTypes: {
title: React.PropTypes.string,
username: React.PropTypes.string
},
render() {
return (
<div>
<p>{ this.props.title + ' - ' + this.props.username }</p>
</div>
);
}
}); |
examples/universal/server/server.js | wong2/redux | /* eslint-disable no-console, no-use-before-define */
import path from 'path';
import Express from 'express';
import qs from 'qs';
import webpack from 'webpack';
import webpackDevMiddleware from 'webpack-dev-middleware';
import webpackHotMiddleware from 'webpack-hot-middleware';
import webpackConfig from '../webpack.... |
ajax/libs/inferno/1.0.0-beta35/inferno-compat.js | jonobr1/cdnjs | /*!
* inferno-compat v1.0.0-beta35
* (c) 2016 Dominic Gannaway
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('./inferno-component'), require('./inferno')) :
typeof define === 'function' && define.amd ? d... |
example/examples/LiteMapView.js | ksincennes/react-native-maps | import React from 'react';
import {
StyleSheet,
Dimensions,
ScrollView,
} from 'react-native';
import MapView from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4324;
const LATITUDE_DELTA = 0.0922;... |
src/common/components/dumb/Example.js | ThinkingInReact/ThinkingInReact.xyz | import React, { Component } from 'react';
import Markdown from 'react-remarkable';
const imagePaths = {
weatherTodos: require('images//examples/weatherTodos.jpg'),
site: require('images//examples/site.gif'),
imgdiscuss: require('images//examples/imgdiscuss.jpg'),
more: require('images//examples/more.jpg')
};
... |
app/components/provider/StoreProvider/StoreProvider.js | rhberro/the-react-client | import { Provider } from 'react-redux'
import React from 'react'
import Store from '../../../store'
function StoreProvider (props) {
return (
<Provider store={Store}>
{ props.children }
</Provider>
)
}
export default StoreProvider
|
src/components/App/App.js | KwakJuYoung/MyProtoType | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { PropTypes } from 'react';
import styles from './App.css';
import withContext from '../../decorators/withContext';
import withStyles from '../../decorators/withStyles';
import Header from '../Header';
import Feedback from '../Feedb... |
app/containers/NotFoundPage/index.js | kaizen7-nz/gold-star-chart | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
import H1 from 'components/H1';
import messages from './messages';
export default function NotFound() {
return (
<article>
... |
src/Site/MainBundle/Resources/public/backend/js/kcfinder/js/000._jquery.js | olegfox/landing | /*! 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... |
src/shared/state/modules/order.js | AlekseyWW/shop-react-ssr | import React from 'react';
import axios from 'axios';
import { post, getAccessToken } from 'utils/api';
import { actions } from './modal';
import { push } from 'react-router-redux';
import ModalExample from '../../components/ModalExample';
export const FETCH_ORDER_REQUEST = '@ORDER/FETCH_ORDER_REQUEST';
export const F... |
test/ModalSpec.js | chilts/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Modal from '../src/Modal';
import { render, shouldWarn } from './helpers';
describe('Modal', function () {
let mountPoint;
beforeEach(()=>{
mountPoint = document.createElement('div');
document.body.appendChild(mountPo... |
src/svg-icons/notification/tap-and-play.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationTapAndPlay = (props) => (
<SvgIcon {...props}>
<path d="M2 16v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0 4v3h3c0-1.66-1.34-3-3-3zm0-8v2c4.97 0 9 4.03 9 9h2c0-6.08-4.92-11-11-11zM17 1.01L7 1c-1.1 0-2... |
ajax/libs/reactive-coffee/0.0.3/reactive-coffee.js | CrossEye/cdnjs | (function() {
var DepArray, DepCell, DepMgr, Depmap, Ev, MappedDepArray, ObsArray, ObsCell, ObsMap, RawHtml, Recorder, SrcArray, SrcCell, SrcMap, bind, depMgr, ev, events, firstWhere, lagBind, maybe, mkMap, mktag, mkuid, nextUid, nthWhere, popKey, prop, propSet, props, recorder, rx, rxt, setProp, specialAttrs, tag, t... |
client/src/javascript/components/sidebar/FeedsButton.js | stephdewit/flood | import {defineMessages, injectIntl} from 'react-intl';
import React from 'react';
import FeedIcon from '../icons/FeedIcon';
import Tooltip from '../general/Tooltip';
import UIActions from '../../actions/UIActions';
const MESSAGES = defineMessages({
feeds: {
id: 'sidebar.button.feeds',
defaultMessage: 'Feeds... |
ajax/libs/react-dropzone/4.2.6/index.js | seogi1004/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("prop-types"));
else if(typeof define === 'function' && define.amd)
define(["react", "prop-types"], factory);
else if(typeof exports === 'ob... |
src/ModalTitle.js | wjb12/react-bootstrap | import React from 'react';
import classNames from 'classnames';
class ModalTitle extends React.Component {
render() {
return (
<h4
{...this.props}
className={classNames(this.props.className, this.props.modalClassName)}>
{ this.props.children }
</h4>
);
}
}
ModalTitle.pr... |
example/pie/index.js | somonus/react-echarts | import React, { Component } from 'react';
import Chart from '../../src';
export default class App extends Component {
render() {
const options = {
title : {
text: '某站点用户访问来源',
subtext: '纯属虚构',
x:'center'
},
tooltip : {
trigger: 'item',
formatter: "{a} <b... |
src/svg-icons/action/g-translate.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionGTranslate = (props) => (
<SvgIcon {...props}>
<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 4.09-4... |
pages/api/menu-item.js | AndriusBil/material-ui | // @flow
import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from './menu-item.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default withRoot(Page);
|
src/components/Header.js | jbasdf/justinball | import React from 'react'
import PropTypes from 'prop-types'
import Link from 'gatsby-link'
const Header = props => (
<header id="header" className="alt">
<Link to="/" className="logo">
<strong>{props.site.siteMetadata.title}</strong>{' '}
<span>{props.site.siteMetadata.description}</span>
</Link... |
src/components/withViewport.js | sbassan/Kingsthorpe | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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, { Component } from 'react'; // eslint-disabl... |
examples/js/custom/toolbar/custom-toolbar-1.js | powerhome/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-unused-vars: 0 */
/* eslint no-alert: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
con... |
app/containers/LoginPage/index.js | zebbra-repos/Zeiterfassung-medi | /*
*
* LoginPage
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { fromJS } from 'immutable';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import { bindRoutineCreators } from 'redux-saga-routines';
import { bindActionCreators } from 'redux';
import { ... |
packages/material-ui-icons/src/WbIncandescentTwoTone.js | Kagami/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="M14 8.59l-1-.58V4.05h-2v3.96l-1 .58c-1.24.72-2 2.04-2 3.46 0 2.21 1.79 4 4 4s4-1.79 4-4c0-1.42-.77-2.74-2-3.46z" opacity=".3" /><path d="M3.5... |
src/components/shared/grid.js | ziagrosvenor/sound-machine | import React from 'react'
export function Grid({els, cols}) {
const colEls = els.map((el, i) => {
return (
<div
className={`col-xs-${12 /(cols || els.length)}`}
key={i}
>
{el}
</div>
)
})
return (
<div className="row">
{colEls}
</div>
)
}
|
examples/counter/containers/Root.js | clessg/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import CounterApp from './CounterApp';
import configureStore from '../store/configureStore';
const store = configureStore();
export default class Root extends Component {
render() {
return (
<Provider store={store}>
... |
ajax/libs/mediaelement/2.16.0/jquery.js | emmy41124/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... |
ajax/libs/yui/3.10.2/event-focus/event-focus-coverage.js | hristozov/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/event-focus/event-focus.js']) {
__coverage__['build/event-focus/event-focus.js'] = {"path":"build/event-focus/event-focus.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":0,"14":0,"15":0,"... |
docs/src/pages/premium-themes/onepirate/modules/components/Typography.js | lgollut/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import { capitalize } from '@material-ui/core/utils';
import MuiTypography from '@material-ui/core/Typography';
const styles = (theme) => ({
markedH2Center: {
height: 4,
width: 73,
displa... |
examples/react-backbone/node_modules/react/dist/JSXTransformer.js | cledwyn/todomvc | /**
* JSXTransformer v0.13.3
*/
(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... |
src/SettingsSectionPrivacy/index.js | christianalfoni/ducky-components | import SectionHeaderGeneral from '../SectionHeaderGeneral';
import SettingsPrivacyGeneral from '../SettingsPrivacyGeneral';
import Spacer from '../Spacer';
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import styles from './styles.css';
function SettingsSectionPri... |
views/android/cam.js | MervynFang/playwithreactnative | /**
* @Author: Mervyn
* @Date: 2016,May,12 22:53:28
* @Last modified by: Mervyn
* @Last modified time: 2016,Aug,01 01:07:37
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Alert,
ScrollView,
Image,
Dimensions,
Platform,
ToastAndroid,
TouchableHighlight,
Touchabl... |
ajax/libs/babel-core/5.2.4/browser-polyfill.js | sympmarc/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/clappr/0.0.23/clappr.js | dada0423/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]... |
ajax/libs/forerunnerdb/1.3.780/fdb-core+persist.min.js | wout/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);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... |
node_modules/morgan/node_modules/debug/src/browser.js | novito/error-management-talk | /**
* This is the web browser implementation of `debug()`.
*
* Expose `debug()` as the module.
*/
exports = module.exports = require('./debug');
exports.log = log;
exports.formatArgs = formatArgs;
exports.save = save;
exports.load = load;
exports.useColors = useColors;
exports.storage = 'undefined' != typeof chrom... |
src/svg-icons/image/details.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageDetails = (props) => (
<SvgIcon {...props}>
<path d="M3 4l9 16 9-16H3zm3.38 2h11.25L12 16 6.38 6z"/>
</SvgIcon>
);
ImageDetails = pure(ImageDetails);
ImageDetails.displayName = 'ImageDetails';
ImageDetai... |
examples/website/globe/app.js | uber-common/deck.gl | import React from 'react';
import {useState, useMemo, useCallback} from 'react';
import {render} from 'react-dom';
import DeckGL from '@deck.gl/react';
import {
COORDINATE_SYSTEM,
_GlobeView as GlobeView,
LightingEffect,
AmbientLight,
_SunLight as SunLight
} from '@deck.gl/core';
import {GeoJsonLayer} from ... |
app/src/routes/dashboard/components/poll-table/poll-table-row.spec.js | sproogen/itsgoingto.be | import React from 'react'
import {
render, fireEvent, screen
} from '@testing-library/react'
import PollTableRow from './poll-table-row'
const mockHistory = {
push: jest.fn()
}
jest.mock('react-router-dom', () => ({
useHistory: () => mockHistory
}))
const defaultProps = {
poll: {
id: 1,
identifier: 's... |
ajax/libs/yui/3.5.0pr6/simpleyui/simpleyui-debug.js | pvnr0082t/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
* @submodule yui-base
*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The YUI global namespac... |
node_modules/reactify/node_modules/react-tools/src/core/__tests__/refs-destruction-test.js | SteveDugas/react-dropdown | /**
* Copyright 2013-2014 Facebook, Inc.
*
* 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 agree... |
examples/counter/containers/App.js | wbecker/redux | import React, { Component } from 'react';
import CounterApp from './CounterApp';
import { createRedux } from 'redux';
import { Provider } from 'redux/react';
import * as stores from '../stores';
const redux = createRedux(stores);
export default class App extends Component {
render() {
return (
<Provider r... |
ajax/libs/react/18.0.0-rc.0-next-79ed5e18f-20220217/cjs/react.development.min.js | cdnjs/cdnjs | "use strict";"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var y=require("object-assign"),v=60103,_=60106;exports.Fra... |
src/stories/mobile/cards.js | Cirych/WeatherApp | import React from 'react';
import { storiesOf, addDecorator, action, linkTo } from '@kadira/storybook';
//import { muiTheme } from 'storybook-addon-material-ui';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
//import getMuiTheme from 'material-ui/styles/getMuiTheme';
import MobileTearSheet from '... |
ajax/libs/yui/3.1.0/event-custom/event-custom-base.js | the-destro/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 e... |
packages/material-ui-icons/src/ArchiveSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M18.71 3H5.29L3 5.79V21h18V5.79L18.71 3zM12 17.5L6.5 12H10v-2h4v2h3.5L12 17.5zM5.12 5l.81-1h12l.94 1H5.12z" />
, 'ArchiveSharp');
|
ajax/libs/react/0.6.3/react.js | WebReflection/cdnjs |
;!function(exports, undefined) {
var isArray = Array.isArray ? Array.isArray : function _isArray(obj) {
return Object.prototype.toString.call(obj) === "[object Array]";
};
var defaultMaxListeners = 10;
function init() {
this._events = new Object;
}
function configure(conf) {
if (conf) {
... |
src/__test__/App.spec.js | SecretBase/react-boilerplate | import React from 'react'
import App from '../App'
import renderer from 'react-test-renderer'
describe('App Component', () => {
it('should correct rendered.', () => {
const component = renderer.create(<App />)
let tree = component.toJSON()
expect(tree).toMatchSnapshot()
})
})
|
stories/emailformgroup.stories.js | JimBarrows/Bootstrap-React-Components | import {storiesOf} from '@storybook/react'
import {action} from '@storybook/addon-actions'
import React from 'react'
import EmailFormGroup from '../src/formgroups/EmailFormGroup'
storiesOf('Form Groups/Email', module)
.addDecorator((story) => <div className="container">{<form>{story()}</form>}</div>)
.add('Defau... |
src/scripts/playground/redux-react-router.js | lenshq/lens_front | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { createStore, combineReducers, applyMiddleware, compose } from 'redux';
import { connect, Connector, Provider } from 'react-redux';
import Router, { Route, Link, DefaultRoute } from 'react-router';
import { history } from 'react-router/... |
node_modules/react-icons/md/remove-circle-outline.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdRemoveCircleOutline = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 33.4q5.5 0 9.4-4t4-9.4-4-9.4-9.4-4-9.4 4-4 9.4 4 9.4 9.4 4z m0-30q6.9 0 11.8 4.8t4.8 11.8-4.8 11.8-11.8 4.8-11.8-4.8-4.8-11.8 4.8-11.8 11.8-4.8z m-8.4... |
ajax/libs/react-instantsearch/4.4.0/Dom.js | seogi1004/cdnjs | /*! ReactInstantSearch 4.4.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
... |
packages/material-ui-icons/src/KeyboardArrowUpOutlined.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6 1.41 1.41z" /></g></React.Fragment>
, 'KeyboardArrowUpOutlined');
|
app/routes/post/WriteMessage.js | phoenixmusical/web-client | import React, { Component } from 'react';
import Relay from 'react-relay';
import { Card, CardHeader, CardText, CardActions } from 'material-ui/Card';
import TextField from 'material-ui/TextField';
import FlatButton from 'material-ui/FlatButton';
import WriteMessageMutation from '../../mutations/WriteMessageMutation';
... |
src/routes/hat/index.js | macdja38/pvpsite | import React from 'react';
import Hat from './Hat';
export default {
path: '/hat/:id?/:hash?',
action({ user }, params) {
return {
title: 'Hat | PvPCraft Discord Bot',
description: 'Hat Page',
component: <Hat user={user} userId={params.id} userHash={params.hash} />,
};
},
};
|
src/components/views/context_menus/TagTileContextMenu.js | aperezdc/matrix-react-sdk | /*
Copyright 2018 New Vector Ltd
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 in writing, software
... |
ajax/libs/rxjs/2.3.13/rx.all.js | mikaelbr/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... |
ajax/libs/docsearch.js/2.3.1/docsearch.js | sufuf3/cdnjs | /*! docsearch 2.3.1 | © Algolia | github.com/algolia/docsearch */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports =... |
packages/website/storybook/markseries-story.js | uber/react-vis | /* eslint-env node */
import React from 'react';
import {storiesOf} from '@storybook/react';
import {
withKnobs,
color,
number,
object,
select
} from '@storybook/addon-knobs/react';
import {MarkSeries} from 'react-vis';
import {generateScatterplotData, intRandom, random} from './storybook-data.js';
import... |
src/framework/components/Time/Time.spec.js | twlevelup/watch_edition_react | import React from 'react';
import { shallow } from 'enzyme';
import Time from './Time';
describe('Time component', () => {
const composeComponent = props => shallow(
<Time { ...props } />
).find('t');
test('it should refresh the time every second', () => {
expect(composeComponent().props().interval).to... |
ajax/libs/6to5/3.3.1/browser.js | maxklenk/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/react-data-grid/2.0.13/react-data-grid.min.js | sufuf3/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... |
node_modules/react-router/modules/RouteUtils.js | jameswatkins77/React-Blogger-App | import React from 'react'
import warning from './warning'
function isValidChild(object) {
return object == null || React.isValidElement(object)
}
export function isReactChildren(object) {
return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild))
}
function checkPropTypes(componentName,... |
node_modules/react-icons/io/ios-stopwatch-outline.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const IoIosStopwatchOutline = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m31.1 11.5c2.5 2.7 3.9 6.2 3.9 10 0 8.1-6.7 14.8-15 14.8s-15-6.7-15-14.8c0-3.8 1.4-7.4 4-10.1l0.1-0.1h-1.4l-0.7 0.7-1.8-1.8 3.2-3.2 1.8 1.8-0.7 0.7v1.4c2.... |
ajax/libs/react-flip-move/2.6.9/react-flip-move.min.js | seogi1004/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports.FlipMove=e(require("react"),require("react-dom")):t.FlipMove=e(t.React,t.ReactDOM)}(this,functio... |
packages/mineral-ui-icons/src/IconFormatAlignRight.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconFormatAlignRight(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...i... |
src/admin/CheckInClient.js | ocelotconsulting/global-hack-6 | /* eslint camelcase: "off" */
import React from 'react'
import agent from '../agent'
import ButtonGroup from 'react-bootstrap/lib/ButtonGroup'
import Button from 'react-bootstrap/lib/Button'
import Alert from 'react-bootstrap/lib/Alert'
import FadeIn from '../FadeIn'
import Toolbar from '../Toolbar'
import { Link } fr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.