target stringlengths 5 300 | feat_repo_name stringlengths 6 76 | text stringlengths 26 1.05M |
|---|---|---|
src/components/FuelSavingsResults.spec.js | hamosapience/ofaas | /*
import chai from 'chai';
import cheerio from 'cheerio';
import FuelSavingsResults from './FuelSavingsResults';
import React from 'react';
import ReactDOMServer from 'react/lib/ReactDOMServer';
chai.should();
*/
/*This test file displays how to test a React component's HTML
outside of the browser. It uses Cheerio... |
packages/material-ui-icons/lib/PhoneAndroidOutlined.js | mbrookes/material-ui | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
src/components/License/License.js | k2data/svg-react-playground | // @flow
import React from 'react'
import styles from './License.css'
type Props = {
children: Function
}
export default (props: Props) => (
<div className={styles['license']}>
{ props.children }
</div>
)
|
packtools/webapp/static/js/htmlgenerator/scielo-article-min.js | gustavofonseca/packtools | if(function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(f,t){var d=[],u=d.slice,m=d.concat,a=d.push,o=d.indexOf,n=... |
docs/app/Examples/collections/Table/Types/index.js | mohammed88/Semantic-UI-React | import React from 'react'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
const Types = () => {
return (
<ExampleSection title='Types'>
<ComponentExample
title='Types'
description=... |
src/svg-icons/image/switch-video.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageSwitchVideo = (props) => (
<SvgIcon {...props}>
<path d="M18 9.5V6c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-3.5l4 4v-13l-4 4zm-5 6V13H7v2.5L3.5 12 7 8.5V11h6V8.5l3.5 3.5-3.5... |
src/client/js/weekmatches/WeekMatches.js | GoodBoy123/crendorianinvitational | import React from 'react';
import Row from './Row';
class WeekMatches extends React.Component {
constructor(props) {
super(props)
}
render() {
const resultRows = this.props.results.map((result, index) => {
return <Row key={index} {...result} />
});
return(
<div>
<h3>{this.pr... |
client/src/components/graphs/LikertScale.js | NCI-Agency/anet | import { TRAFFIC_LIGHTS_LEVELS } from "components/graphs/utils"
import SvgText from "components/SvgText"
import * as d3 from "d3"
import _isEmpty from "lodash/isEmpty"
import PropTypes from "prop-types"
import React, { useCallback, useEffect, useRef } from "react"
import useDimensions from "react-use-dimensions"
import... |
client/extensions/woocommerce/woocommerce-services/components/checkbox/index.js | Automattic/woocommerce-services | /** @format */
/* eslint-disable wpcalypso/jsx-gridicon-size */
/**
* External dependencies
*/
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Gridicon from 'gridicons';
import { omit } from 'lodash';
const Checkbox = props => {
const { className, disabled... |
packages/material-ui-icons/legacy/SignalCellularConnectedNoInternet2Bar.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M22 8V2L2 22h16V8z" /><path d="M14 22V10L2 22h12zm6-12v8h2v-8h-2zm0 12h2v-2h-2v2z" /></React.Fragment>
, 'SignalCellularConnectedNoInternet2Bar');
|
2_route_redux_render/component/details/result.js | chkui/react-server-demo | import React from 'react'
const cn = require('classnames/bind').bind(require('./result.scss'))
/**
*
* @param {object} props {list}
* @constructor
*/
const Result = props =>
<div className={cn('list')}>
{props.list.map(i => <ResultItem key={i.id}
name={i.name}
... |
lib/HourlyWeatherCard.js | erik0110/Weatherly | import React from 'react';
const HourlyWeatherCard = (props) => {
return (
<div className={props.className}>
<h3 className="time">{props.time}</h3>
<p className="temp hourlyFlex">
<img className="weatherIcon"
src={props.weatherIcon} alt={props.iconAlt}></img>
{props.temp}&d... |
packages/material-ui/src/NativeSelect/NativeSelectInput.js | Kagami/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { componentPropType } from '@material-ui/utils';
/**
* @ignore - internal component.
*/
function NativeSelectInput(props) {
const {
children,
classes,
className,
disabled,
IconComponent,
... |
src/isomorphic/classic/class/__tests__/ReactBindOptout-test.js | gpazo/react | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react-co... |
ajax/libs/fixed-data-table/0.4.1/fixed-data-table.min.js | nareshs435/cdnjs | /**
* FixedDataTable v0.4.1
*
* Copyright (c) 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 direc... |
src/components/general/WebView.js | shojil/bifapp | /**
* Web View
*
* <WebView url={"http://google.com"} />
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
WebView,
StyleSheet,
InteractionManager,
} from 'react-native';
// Consts an... |
webpack/scenes/ContentViews/components/InactiveText.js | Katello/katello | import React from 'react';
import PropTypes from 'prop-types';
import { TextContent, Text, TextVariants } from '@patternfly/react-core';
const InactiveText = props => (
<TextContent>
<Text component={TextVariants.small} {...props}>{props.text}</Text>
</TextContent>
);
InactiveText.propTypes = {
text: PropTy... |
shared/components/FeaturedNews.js | AndrewGibson27/react-webpack-express-isomorphic-boilerplate | import React, { Component } from 'react';
import { Route } from 'react-router-dom';
import asyncComponent from '../utils/asyncComponent';
const CategoryHome = asyncComponent(() => (
import('./CategoryHome').then(module => module.default)
));
const FeaturedNews = () => (
<Route path="/featured" component={Categor... |
packages/bonde-admin/src/components/notify/warning.js | ourcities/rebu-client | import PropTypes from 'prop-types'
import React from 'react'
import Box from './box'
var styles = require('exenv').canUseDOM ? require('./warning.scss') : {}
const Warning = ({ title, children }) => (
<Box
title={title}
styles={styles}
icon='exclamation-triangle'
>
{children}
</Box>
)
Warning.p... |
game.js | Otouto/4inrow | import React from 'react';
import classNames from 'classnames';
const defaultState = {
isFirstPlayer: true,
isGameEnded: false,
endReason: null
}
var Game = React.createClass({
getDefaultProps() {
return {
rows: 6,
columns: 7,
winNum: 4
}
},
... |
src/components/RefreshIcon/index.js | emadalam/mesmerized | import React from 'react';
import MdRefresh from 'react-icons/lib/md/refresh';
import IconButton from 'react-toolbox/lib/button/IconButton';
import * as Actions from '@actions';
const RefreshIcon = () => (
<div className="control__icon">
<IconButton
icon={ <MdRefresh /> }
inverse={ ... |
ajax/libs/extjs/4.2.1/src/button/Manager.js | gabel/cdnjs | /*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as
published by the Free Software Foundation and appearing in the file LICENSE included in... |
ajax/libs/crafty/0.5.4/crafty.js | KoryNunn/cdnjs | /**
* crafty 0.5.4
* http://craftyjs.com/
*
* Copyright 2013, Louis Stowasser
* Dual licensed under the MIT or GPL licenses.
*/
(function (window, initComponents, undefined) {
/**@
* #Crafty
* @category Core
* Select a set of or single entities by components or an entity's ID.
*
* Crafty ... |
ajax/libs/orb/1.0.4/orb.js | chrillep/cdnjs | /**
* orb v1.0.4, Pivot grid javascript library.
*
* Copyright (c) 2014 Najmeddine Nouri <devnajm@gmail.com>.
*
* @version v1.0.4
* @link http://nnajm.github.io/orb/
* @license MIT
*/
'use strict';
! function(e) {
if ("object" == typeof exports && "undefined" != typeof module) module.exports = e();
els... |
src/components/ExportList/ExportList.js | MinisterioPublicoRJ/inLoco-2.0 | import React from 'react'
import html2canvas from 'html2canvas'
import jsPDF from 'jspdf'
const ExportList = ({layers, mapProperties, onDownloadClick, onDownloadEnd}) => {
/**
* Opacity fixes that needs to be done before html2canvas() call
*/
function html2canvasBefore() {
const mapLayers = ... |
app/javascript/mastodon/features/mutes/index.js | sylph-sin-tyaku/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debou... |
packages/material-ui-icons/src/VoiceChat.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12l-4-3.2V14H6V6h8v3.2L18 6v8z" /></React.Fragment>
, 'VoiceChat');
|
src/common/Tooltip/Tooltip.js | Syncano/syncano-dashboard | import React from 'react';
import Radium from 'radium';
import { FontIcon } from 'material-ui';
import Tooltip from 'material-ui/internal/Tooltip';
export default Radium(React.createClass({
displayName: 'Tooltip',
getInitialState() {
return {
tooltipShowed: false
};
},
getDefaultProps() {
... |
packages/slate-html-serializer/test/serialize/block-with-data.js | AlbertHilb/slate |
/** @jsx h */
import React from 'react'
import h from '../helpers/h'
export const rules = [
{
serialize(obj, children) {
if (obj.kind == 'block' && obj.type == 'paragraph') {
return React.createElement('p', { 'data-thing': obj.data.get('thing') }, children)
}
}
}
]
export const input... |
src/Portal.js | adampickeral/react-bootstrap | import deprecationWarning from './utils/deprecationWarning';
import Portal from 'react-overlays/lib/Portal';
export default deprecationWarning.wrapper(Portal, {
message:
'The Portal component is deprecated in react-bootstrap. It has been moved to a more generic library: react-overlays. ' +
'You can read more... |
pootle/static/js/admin/components/Search.js | ta2-1/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import cx from 'classnames';
import React from 'react';
i... |
src/views/SignUp.js | Afrostream/react-redux-universal-hot-example | import React from 'react';
import MiniInfoBar from '../components/MiniInfoBar';
export default class SignUp {
render() {
return (
<div>
<h1>Sign Up</h1>
<div>Hey! You found the mini info bar! The following component is display-only.</div>
<MiniInfoBar/>
</div>
);
}
}
|
node_modules/material-ui/lib/svg-icons/image/filter-5.js | sparkymat/youhaveto-react | 'use strict';
var React = require('react/addons');
var PureRenderMixin = React.addons.PureRenderMixin;
var SvgIcon = require('../../svg-icon');
var ImageFilter5 = React.createClass({
displayName: 'ImageFilter5',
mixins: [PureRenderMixin],
render: function render() {
return React.createElement(
SvgIc... |
client/components/Word.js | pufinek/learn-Spanish | import React from 'react';
import ReactPlayer from 'react-player';
import { Link } from 'react-router';
import {convertArrayToString} from '../helpers/dictionary';
class Word extends React.Component{
render(){
const word=this.props.word;
const playerUrl = "http://audio1.spanishdict.com/audi... |
react/features/recording/components/LiveStream/native/GoogleSigninForm.js | jitsi/jitsi-meet | // @flow
import React, { Component } from 'react';
import { Text, View } from 'react-native';
import { _abstractMapStateToProps } from '../../../../base/dialog';
import { translate } from '../../../../base/i18n';
import { connect } from '../../../../base/redux';
import { StyleType } from '../../../../base/styles';
im... |
docs/app/Examples/elements/Segment/Variations/SegmentExampleGroupSizes.js | shengnian/shengnian-ui-react | import React from 'react'
import { Segment } from 'shengnian-ui-react'
const SegmentGroupSizesExample = () => {
const sizes = ['mini', 'tiny', 'small', 'large', 'big', 'huge', 'massive']
return (
<div>
{sizes.map(size => (
<Segment.Group key={size} size={size}>
<Segment>
It... |
app/javascript/mastodon/features/compose/components/navigation_bar.js | lindwurm/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ActionBar from './action_bar';
import Avatar from '../../../components/avatar';
import Permalink from '../../../components/permalink';
import IconButton from '../../../components/icon_button... |
ignite/Examples/Containers/ignite-ir-boilerplate/RowExample.js | jpklein/TwistedMind | import React from 'react'
import { View, Text, ListView } from 'react-native'
import { connect } from 'react-redux'
// Styles
import styles from './Styles/RowExampleStyle'
class RowExample extends React.Component {
constructor (props) {
super(props)
// If you need scroll to bottom, consider http://bit.ly/2b... |
ajax/libs/vue-i18n/9.2.0-beta.23/vue-i18n.runtime.esm-browser.js | cdnjs/cdnjs | /*!
* vue-i18n v9.2.0-beta.23
* (c) 2021 kazuya kawaguchi
* Released under the MIT License.
*/
import { createVNode, Text, ref, getCurrentInstance, computed, watch, Fragment, h, nextTick, inject, onMounted, onUnmounted, isRef } from 'vue';
/**
* Original Utilities
* written by kazuya kawaguchi
*/
const ... |
app/components/Home.js | alexdibattista/no-noise | // @flow
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import styles from './Home.css';
export default class Home extends Component {
render() {
return (
<div>
<div className={styles.container} data-tid="container">
<h2>Home</h2>
<Link to="/c... |
docs/app/Examples/collections/Table/Types/TableExamplePagination.js | shengnian/shengnian-ui-react | import React from 'react'
import { Icon, Label, Menu, Table } from 'shengnian-ui-react'
const TableExamplePagination = () => (
<Table celled>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Header</Table.HeaderCell>
<Table.HeaderCell>Header</Table.HeaderCell>
<Table.HeaderCell>Header</... |
src/index.js | Samuron/VideoHustle | import React from 'react';
import ReactDOM from 'react-dom';
import firebase from 'firebase'
import { Router, Route, IndexRoute, hashHistory } from 'react-router'
import App from './App';
import Broadcast from './Broadcast';
import Login from './Login';
import Feed from './Feed';
import Friends from './Friends';
impor... |
app/javascript/mastodon/components/load_gap.js | blackle/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, defineMessages } from 'react-intl';
const messages = defineMessages({
load_more: { id: 'status.load_more', defaultMessage: 'Load more' },
});
@injectIntl
export default class LoadGap extends React.PureComponent {
static propTypes... |
test/CarouselSpec.js | dozoisch/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Carousel from '../src/Carousel';
describe('<Carousel>', () => {
const items = [
<Carousel.Item key={1}>Item 1 content</Carousel.Item>,
<Carousel.Item key={2}>Item 2 content</Carousel.Item>,
];
it('Should show the c... |
examples/js/basic/scroll-table.js | neelvadgama-hailo/react-bootstrap-table | /* eslint max-len: 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++) {
const id = startId + i;
products.push({
id: id,
... |
examples/auth-with-shared-root/components/User.js | brenoc/react-router | import React from 'react'
const User = React.createClass({
render() {
return <h1>User: {this.props.params.id}</h1>
}
})
export default User
|
src/Components/ProductsList/ProductsList.js | alopezsanchez/react-example-app | import React, { Component } from 'react';
import Product from '../Product/Product';
import {GridList} from 'material-ui/GridList';
import {Card} from 'material-ui/Card';
class ProductsList extends Component {
constructor(props) {
super(props);
this.state = {
products: props.products
... |
app/javascript/mastodon/features/ui/components/column_header.js | WitchesTown/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default class ColumnHeader extends React.PureComponent {
static propTypes = {
icon: PropTypes.string,
type: PropTypes.string,
active: PropTypes.bool,
onClick: PropTypes.func,
columnHeaderId... |
packages/react/components/list-index.js | AdrianV/Framework7 | import React from 'react';
import Utils from '../utils/utils';
import Mixins from '../utils/mixins';
import __reactComponentWatch from '../runtime-helpers/react-component-watch.js';
import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js';
import __reactComponentSlots from '../ru... |
src/svg-icons/notification/phone-in-talk.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPhoneInTalk = (props) => (
<SvgIcon {...props}>
<path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C8.7 6.45 8.5 5... |
yii/framework/web/js/source/jquery.js | thewizardplusplus/wizard-diary | /*!
* 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 =... |
src/app/App.js | IziOzi/iziozi-core | import React, { Component } from 'react';
import Tile from './components/Tile.js';
import './App.css';
class App extends Component {
constructor(props) {
super(props);
let boardIndex = 0
let colsTmp = this.props.book.boards[boardIndex].cols
let rowsTmp = this.props.book.boards[boardIndex].rows
... |
src/components/detail/Create.js | shrimpliu/shradmin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect, actions } from 'mirrorx';
import compose from 'recompose/compose';
import { Card, Spin } from 'antd';
import { translate } from '../../i18n';
import Actions from './CreateActions';
class Create extends Component {
save =... |
admin/client/App/shared/InvalidFieldType.js | creynders/keystone | /**
* Renders an "Invalid Field Type" error
*/
import React from 'react';
const InvalidFieldType = function (props) {
return (
<div className="alert alert-danger">
Invalid field type <strong>{props.type}</strong> at path <strong>{props.path}</strong>
</div>
);
};
InvalidFieldType.propTypes = {
path: Reac... |
client/src/components/ChannelsListWithData.js | hankolsen/graphql-tutorial | import React from 'react';
import { gql, graphql } from 'react-apollo';
import AddChannel from './AddChannel';
const ChannelsList = ({ data: {loading, error, channels} }) => {
if (loading) {
return <p>Loading...</p>;
}
if (error) {
return <p>{error.message}</p>;
}
return (
<div className="channel... |
packages/material-ui-icons/src/PollOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zM7 10h2v7H7zm4-3h2v10h-2zm4 6h2v4h-2z" />
, 'PollOutlined');
|
packages/wix-style-react/src/ListItemAction/test/ListItemAction.visual.js | wix/wix-style-react | import React from 'react';
import { storiesOf } from '@storybook/react';
import ListItemAction, { listItemActionBuilder } from '..';
import DropdownLayout from '../../DropdownLayout';
import Edit from 'wix-ui-icons-common/Edit';
import { storyOfAllPermutations } from '../../../test/utils/visual/utils';
const Story = p... |
tests/components/Header/Header.spec.js | akossebestyen/getrecd-client-redux | import React from 'react'
import { Header } from 'components/Header/Header'
import classes from 'components/Header/Header.scss'
import { IndexLink, Link } from 'react-router'
import { shallow } from 'enzyme'
describe('(Component) Header', () => {
let _wrapper
beforeEach(() => {
_wrapper = shallow(<Header />)
... |
__tests__/index.ios.js | borisBarac/react-bridge-example | 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 />
);
});
|
app/pages/index.js | johnotander/tachyons-generator | import React from 'react'
import isPresent from 'is-present'
import commaSplit from 'comma-split'
import conf from '../config'
const config = conf()
import Layout from '../components/layout'
export default class extends React.Component {
constructor () {
super()
this.state = {
config
}
}
ha... |
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/actual.js | Jacob-Elder/react-socket.io-messaging-v2 | import React, { Component } from 'react';
class Foo extends Component {
render() {}
}
|
stories/I18n/index.js | jpuri/react-draft-wysiwyg | /* @flow */
import React, { Component } from 'react';
import { Editor } from '../../src';
import './styles.css';
class I18n extends Component {
state: any = {
locale: 'en',
};
onLocaleChange: Function = (event) => {
this.setState({
locale: event.target.value,
});
};
render() {
cons... |
app/containers/SignUp/index.js | cbradley3/CharlieBradleyIII | /*
*
* SignUp
*
*/
import React from 'react';
import Helmet from 'react-helmet';
import Responsive from 'react-responsive';
import {Link} from "react-router";
import FlatButton from "material-ui/FlatButton";
import NavBar2 from 'components/NavBar2';
export default class SignUp extends React.PureComponent {... |
ajax/libs/jquery/1.8.0/jquery.js | tengyifei/cdnjs | /*!
* jQuery JavaScript Library v1.8.0
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Thu Aug 09 2012 16:24:48 GMT-0400 (Eastern Daylight Time)
*/
(function(... |
js/App/Components/ExchangeOffer/SubViews/TellStickExchangeLink.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : 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
*... |
app/javascript/mastodon/features/compose/index.js | cobodo/mastodon | import React from 'react';
import ComposeFormContainer from './containers/compose_form_container';
import NavigationContainer from './containers/navigation_container';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import { mountCom... |
src/components/UserProvider.js | OpenCollective/frontend | import React from 'react';
import { isEqual } from 'lodash';
import { withApollo } from 'react-apollo';
import withLoggedInUser from '../lib/withLoggedInUser';
import UserClass from '../classes/LoggedInUser';
export const UserContext = React.createContext({
loadingLoggedInUser: true,
LoggedInUser: null,
logout(... |
ajax/libs/muicss/0.9.23/extra/mui-react-combined.min.js | pvnr0082t/cdnjs | !function(e){var t=e.babelHelpers={};t.classCallCheck=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},t.createClass=function(){function e(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.definePro... |
ajax/libs/zeroclipboard/2.1.3/ZeroClipboard.Core.js | hanssens/cdnjs | /*!
* ZeroClipboard
* The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.
* Copyright (c) 2014 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v2.1.3
*/
(function(window, undefined) {
"use strict";... |
src/containers/SolrList.js | sunplot/sunplot | import React from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'
import Paper from 'material-ui/Paper';
import Menu from 'material-ui/Menu';
import MenuItem from 'material-ui/MenuItem';
import {BottomNavigation, BottomNavigationItem} from 'material-ui/BottomNavigation';
import { Link } from... |
ajax/libs/rxjs/2.2.25/rx.all.compat.js | Enelar/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
};
v... |
vj4/ui/components/messagepad/index.js | vijos/vj4 | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import request from 'vj/utils/request';
import i18n from 'vj/utils/i18n';
import Icon from 'vj/components/react/IconComponent';
import MessagePadDialogueList from './MessagePadDialogueListContainer';
import MessagePad... |
tests/components/Counter/Counter.spec.js | ksevezich/Duke-Blueprint-website | import React from 'react'
import { bindActionCreators } from 'redux'
import { Counter } from 'components/Counter/Counter'
import { shallow } from 'enzyme'
describe('(Component) Counter', () => {
let _props, _spies, _wrapper
beforeEach(() => {
_spies = {}
_props = {
counter: 5,
...bindActionCre... |
stories/places/index.js | algolia/react-instantsearch | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import places from 'places.js';
import connect from './connector';
class Places extends Component {
static propTypes = {
refine: PropTypes.func.isRequired,
defaultRefinement: PropTypes.object.isRequired,
};
createRef = (c) => ... |
ajax/libs/6to5/3.0.15/browser-polyfill.js | viskin/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/yui/3.7.3/datatable-body/datatable-body.js | dominic/cdnjs | YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.
@module datatable
@submodule datatable-body
@since 3.5.0
**/
var Lang = Y.Lang,
isArray = Lang.isA... |
src/Screensaver.js | domoticz/Reacticz | import React, { Component } from 'react';
import Clock from 'react-clock';
import './Screensaver.css';
const MONITORED_EVENTS = ["touchstart", "touchmove", "mousedown", "mousemove", "click"];
const DEBOUNCE_DELAY_MS = 350;
export const TYPE = {
CLOCK: "clock",
BLANK: "blank"
};
class Screensaver ex... |
include/javascript/jquery.js | gcoop-libre/SuiteCRM | /*! 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... |
examples/webpack-example/src/app/app.js | rojobuffalo/formsy-material-ui | import React from 'react';
import ReactDOM from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import Main from './Main'; // Our custom react component
//Needed for onTouchTap
//Can go away when react 1.0 release
//Check this repo:
//https://github.com/zilverline/react-tap-event-plugin
injectT... |
src/components/LazyChild.js | Merri/react-lazy | import React from 'react'
import PropTypes from 'prop-types'
function getProps(children, prop) {
if (!children || !children.props) return null
const { onError, onLoad, ...childProps } = children.props
switch (prop) {
case 'onError':
return onError
case 'onLoad':
retu... |
client/src/components/ReactComponentsTest/ReactComponentsTest.js | patferguson/solitaire-react | import React, { Component } from 'react';
import { Button } from 'react-bootstrap';
class ReactComponentsTest extends Component {
render() {
return (
<div className="ReactComponentsTest">
<Button bsStyle="primary">Test Primary Button</Button>
</div>
);
}
}
export default ReactComponent... |
fontend/src/routes/IndexPage.js | bingweichen/GOKU | import React from 'react';
import { connect } from 'dva';
import styles from './IndexPage.css';
import auth from '../utils/Auth';
import Footer from '../components/MainLayout/Footer.jsx';
function IndexPage({ location }) {
const tab = location.query.tab ? location.query.tab : 'shop';
auth();
return (
<div >... |
ajax/libs/vue-material/1.0.0-beta-2/components/MdTabs/index.js | sufuf3/cdnjs | module.exports=(function(t){function e(r){if(n[r])return n[r].exports;var s=n[r]={i:r,l:!1,exports:{}};return t[r].call(s.exports,s,s.exports,e),s.l=!0,s.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esMod... |
src/components/ui/InfoBar.js | GustavoKatel/franz | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { observer } from 'mobx-react';
import classnames from 'classnames';
import Loader from 'react-loader';
// import { oneOrManyChildElements } from '../../prop-types';
import Appear from './effects/Appear';
export default @observer cla... |
wp-content/themes/theshop/js/jquery-1.9.1.min.js | estrategasdigitales/Dagutorio | /*! 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... |
node_modules/react-bootstrap/es/Collapse.js | yeshdev1/Everydays-project | 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/LoadingIcon/index.js | openactive/open-sessions | import React from 'react';
import styles from './styles.css';
export default class LoadingIcon extends React.Component { // eslint-disable-line react/prefer-stateless-function
render() {
return <span className={styles.icon} />;
}
}
|
node_modules/react-icons/go/arrow-down.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const GoArrowDown = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m25 17.5v-10h-10v10h-7.5l12.5 15 12.5-15h-7.5z"/></g>
</Icon>
)
export default GoArrowDown
|
ajax/libs/zxcvbn/2.0.2/zxcvbn.min.js | zhangbg/cdnjs | (function(){var f;f={empty:function(m){var n,o;o=[];for(n in m){o.push(n)}return 0===o.length},extend:function(m,n){return m.push.apply(m,n)},translate:function(m,n){var s,q,o,r,p;r=m.split("");p=[];q=0;for(o=r.length;q<o;q++){s=r[q],p.push(n[s]||s)}return p.join("")},omnimatch:function(m,n){var r,p,o,q;q=[];r=0;for(p=... |
src/entypo/Funnel.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--Funnel';
let EntypoFunnel = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M10,1C5.092,1,2,2.512,2,4.001v2c0,0.918,6,6,6,6v6c-0.001,0.684,1,1,2,1s2.001-0.316,2-1v-6c0,0,6-5.082... |
node_modules/babel-register/node_modules/core-js/library/modules/es6.promise.js | fahidRM/aqua-couch-test | 'use strict';
var LIBRARY = require('./_library')
, global = require('./_global')
, ctx = require('./_ctx')
, classof = require('./_classof')
, $export = require('./_export')
, isObject = require('./_is-object')
, aFunction = req... |
app/javascript/flavours/glitch/features/compose/components/character_counter.js | glitch-soc/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { length } from 'stringz';
export default class CharacterCounter extends React.PureComponent {
static propTypes = {
text: PropTypes.string.isRequired,
max: PropTypes.number.isRequired,
};
checkRemainingText (diff) {
if (diff < 0)... |
blueocean-material-icons/src/js/components/svg-icons/communication/swap-calls.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const CommunicationSwapCalls = (props) => (
<SvgIcon {...props}>
<path d="M18 4l-4 4h3v7c0 1.1-.9 2-2 2s-2-.9-2-2V8c0-2.21-1.79-4-4-4S5 5.79 5 8v7H2l4 4 4-4H7V8c0-1.1.9-2 2-2s2 .9 2 2v7c0 2.21 1.79 4 4 4s4-1.79 4-4V8h3l-4-4z"/>
</SvgIcon>
);
Commu... |
ajax/libs/material-ui/5.0.0-alpha.35/node/internal/svg-icons/CheckBoxOutlineBlank.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... |
src/server.js | candk/codeflySite |
import 'babel-polyfill';
import path from 'path';
import express from 'express';
import cookieParser from 'cookie-parser';
import bodyParser from 'body-parser';
import expressJwt from 'express-jwt';
import expressGraphQL from 'express-graphql';
import jwt from 'jsonwebtoken';
import React from 'react';
import ReactDOM... |
docs/app/Examples/modules/Progress/States/ProgressExampleDisabled.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Progress } from 'semantic-ui-react'
const ProgressExampleDisabled = () => (
<Progress percent={60} disabled>
Disabled
</Progress>
)
export default ProgressExampleDisabled
|
ajax/libs/yasr/2.3.2/yasr.bundled.min.js | itvsai/cdnjs | !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){... |
src/index.js | josephfusco/APFT | import React from 'react';
import ReactDOM from 'react-dom';
import App from 'containers/App';
import registerServiceWorker from './registerServiceWorker';
import './index.css';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
docs/app/Examples/elements/Step/Content/StepExampleLink.js | shengnian/shengnian-ui-react | import React from 'react'
import { Icon, Step } from 'shengnian-ui-react'
const StepExampleLink = () => (
<Step.Group>
<Step link>
<Icon name='truck' />
<Step.Content>
<Step.Title>Shipping</Step.Title>
<Step.Description>Choose your shipping options</Step.Description>
</Step.Cont... |
node_modules/react-bootstrap/es/MediaListItem.js | superKaigon/TheCave | 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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.