path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
ajax/libs/webshim/1.14.5-RC1/dev/shims/es6.js | fredericksilva/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... |
ajax/libs/jointjs/0.9.4/joint.clean.js | taydakov/cdnjs | /*! JointJS v0.9.3 - JavaScript diagramming library 2015-07-23
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
// JointJS library.
// (c) 2011-2013 client IO... |
src/routes/Dashboard/components/Map/Map.story.js | gabe-terrell/acme-freight-webui | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import { Map } from './Map';
storiesOf('Map', module)
.add('empty', () => (
<Map />
))
.add('with data', () => (
<Map
distributionCenters={[
{
address: {
city: 'Salt Lake City',
state... |
js/components/tab/tabTwo.js | HomelandGvarim/FE-Phone | import React, { Component } from 'react';
import { Container, Content, Card, CardItem, Text, Body } from 'native-base';
import styles from './styles';
export default class TabTwo extends Component {
// eslint-disable-line
render() {
// eslint-disable-line
return (
<Content padder style={{ marginTop: 0 }}>
... |
app/javascript/mastodon/components/status_action_bar.js | TootCat/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import IconButton from './icon_button';
import DropdownMenu from './dropdown_menu';
import { defineMessages, injectIntl } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure... |
lib/pages/ViewDataset2/index.js | Kitware/light-viz | import React from 'react';
import PropTypes from 'prop-types';
import clone from 'mout/src/lang/clone';
import VtkRenderer from 'paraviewweb/src/React/Renderers/VtkRenderer';
import SvgIcon from 'paraviewweb/src/React/Widgets/SvgIconWidget';
import ProgressLoaderWidget from 'paraviewweb/src/React/Widgets/ProgressLoader... |
fields/types/color/ColorColumn.js | asifiqbal84/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
var ColorColumn = React.createClass({
displayName: 'ColorColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.obje... |
client/src/components/General/UsernameInput.js | patteri/slave-cardgame | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router';
import { FormGroup, ControlLabel, FormControl, Alert } from 'react-bootstrap';
import _ from 'lodash';
import classNames from 'classnames';
import { GameValidation as gv } from '../../shared/constants';
im... |
playgrounds/cra/src/App.js | emotion-js/emotion | /** @jsxImportSource @emotion/react */
import React from 'react'
import { Global } from '@emotion/react'
function App() {
return (
<div>
<Global
styles={{
body: {
padding: '2rem',
fontFamily: 'sans-serif'
},
h1: {
marginTop: 0
... |
stories/SuppliedSimpleUserFormDemo.js | de44/kb-ui | import React from 'react';
import PropTypes from 'prop-types';
import kb from '../src/kb-ui';
import { withState, compose } from 'recompose';
import FormDemo from './FormDemo';
function getUser(id, name, email, suspended) {
return {
id,
name,
email,
suspended,
profile: {
bio: '<h4 style="b... |
app/javascript/mastodon/features/ui/index.js | 8796n/mastodon | import React from 'react';
import ColumnsArea from './components/columns_area';
import NotificationsContainer from './containers/notifications_container';
import PropTypes from 'prop-types';
import LoadingBarContainer from './containers/loading_bar_container';
import HomeTimeline from '../home_timeline';
import Compose... |
frontend/app/js/components/processes/process.js | serverboards/serverboards | import React from 'react'
import Loading from '../loading'
import rpc from 'app/rpc'
import {goto} from 'app/utils/store'
import {i18n} from 'app/utils/i18n'
import Modal from '../modal'
class ProcessView extends React.Component{
render(){
let process = this.props.process
if (!process)
return (
... |
assets/jqwidgets/demos/react/app/complexinput/changeevent/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxComplexInput from '../../../jqwidgets-react/react_jqxcomplexinput.js';
import JqxPanel from '../../../jqwidgets-react/react_jqxpanel.js';
class App extends React.Component {
componentDidMount() {
this.refs.myComplexInput.on('change', (... |
packages/react-static/src/browser/components/Default404.js | nozzle/react-static | import React from 'react'
export default () => (
<div>404 - We couldn't find the page you're looking for!</div>
)
|
app/views/components/go-back-button/index.js | get-focus/focus-demo-app | import React from 'react';
import {withRouter} from 'react-router';
import ButtonBack from 'focus-components/button-back';
const GoBackComponent = ({router}) => (
<ButtonBack back={router.goBack} />
);
export default withRouter(GoBackComponent);
|
src/components/Display/ProductPagination.js | CoreyDH/product-finder | import React from 'react';
import {Row, Col} from 'react-bootstrap';
// import {AutoAffix} from 'react-overlays';
import ReactPaginate from 'react-paginate';
export default class ProductPagination extends React.Component {
changeOffset(event) {
// console.log('offset', event.selected, this.props.amount, event.sele... |
examples/pinterest/app.js | flocks/react-router | import React from 'react';
import { Router, Link } from 'react-router';
import HashHistory from 'react-router/lib/HashHistory';
var history = new HashHistory({ queryKey: 'k' });
var pictures = [
{id: 0, src: 'http://placekitten.com/601/601'},
{id: 1, src: 'http://placekitten.com/610/610'},
{id: 2, src: 'http://p... |
src/script/ListChannel.js | phuongnd11/frequency-poc | import React from 'react';
import ChannelItem from './ChannelItem';
class ListChannel extends React.Component {
constructor(props) {
super(props);
this.state = {
channels: [],
videos: [],
activeRow: null,
};
this.eachChannel = this.eachChannel.bind(this);
this.handleRowClick = ... |
docs/src/app/components/pages/components/Tabs/ExampleSwipeable.js | frnk94/material-ui | import React from 'react';
import {Tabs, Tab} from 'material-ui/Tabs';
// From https://github.com/oliviertassinari/react-swipeable-views
import SwipeableViews from 'react-swipeable-views';
const styles = {
headline: {
fontSize: 24,
paddingTop: 16,
marginBottom: 12,
fontWeight: 400,
},
slide: {
... |
ajax/libs/clappr/0.0.21/clappr.js | AlicanC/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]... |
pages/premium-themes/onepirate/privacy.js | allanalexandre/material-ui | import 'docs/src/modules/components/bootstrap';
// --- Post bootstrap -----
import React from 'react';
import AppTheme from 'docs/src/modules/components/AppTheme';
import Privacy from 'docs/src/pages/premium-themes/onepirate/Privacy';
function Page() {
return (
<AppTheme title="Onepirate theme - Material-UI" des... |
examples/simple-map/src/index.js | sushantparkhi/react-google-maps | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/components/Keycap.js | cuebrick/TypeWriter | import React from 'react';
class Keycap extends React.Component{
render(){
let nextCodeClassName = (this.props.nextCode === this.props.keyCode || this.props.isShiftKey) ? 'next-code' : '';
let keyTypeClassName = (this.props.keyType) ? ' ' + this.props.keyType : '';
let shiftingClassName = (this.props.isShifting... |
packages/material-ui-icons/custom/Twitter.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 ... |
app/components/signUp.js | cqlanus/bons | import React from 'react'
import {login, signup} from 'APP/app/reducers/auth'
import {connect} from 'react-redux'
import {browserHistory} from 'react-router'
export const Signup = ({ login, signup }) => (
<div>
<h1>Sign Up</h1>
<form onSubmit={evt => {
evt.preventDefault()
signup(evt.target.usern... |
src/routes/Dashboard/components/sales.js | liufulin90/react-admin | import React from 'react'
import styles from './sales.less'
import {color} from '../../../utils'
import {LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer} from 'recharts'
function Sales (props) {
return (
<div className={styles.sales}>
<div className={styles.title}>Yearly ... |
ui/src/js/profile/edit/EditUserDetails.js | Dica-Developer/weplantaforest | import axios from 'axios';
import counterpart from 'counterpart';
import moment from 'dayjs';
import React, { Component } from 'react';
import IconButton from '../../common/components/IconButton';
import Notification from '../../common/components/Notification';
import EditDropdownItem from './EditDropdownItem';
import ... |
node_modules/react-slick/src/dots.js | DaveSpivey/muttwhat | 'use strict';
import React from 'react';
import classnames from 'classnames';
var getDotCount = function (spec) {
var dots;
dots = Math.ceil(spec.slideCount / spec.slidesToScroll);
return dots;
};
export var Dots = React.createClass({
clickHandler: function (options, e) {
// In Autoplay the focus stays... |
examples/nested/src/client/index.js | ericf/react-intl | import React from 'react';
import ReactDOM from 'react-dom';
import {addLocaleData, IntlProvider} from 'react-intl';
import enLocaleData from 'react-intl/locale-data/en';
import App from './components/app';
addLocaleData(enLocaleData);
const {locale, messages} = window.App;
ReactDOM.render(
<IntlProvider
... |
docs/getting-started-chart/components/Client.js | reimagined/resolve | import React from 'react'
const Client = ({ selected, onClick }) => (
<g className="box-outer" data-selected={selected} onClick={onClick}>
<path className="box" d="M470 43H550V414H470V43Z" />
<path
className="caption"
d="M496.541 220.492C496.176 217.469 493.888 215.73 490.858 215.73C487.4 215.73 ... |
app/javascript/flavours/glitch/features/status/components/detailed_status.js | im-in-space/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Avatar from 'flavours/glitch/components/avatar';
import DisplayName from 'flavours/glitch/components/display_name';
import StatusContent from 'flavours/glitch/components/status_content';
imp... |
ajax/libs/babel-polyfill/6.9.0/polyfill.js | wout/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/forerunnerdb/1.3.133/fdb-core+views.js | brix/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
decisionz/lib/jquery_ui/js/jquery-1.7.2.min.js | dee-bee/decisionz | /*! jQuery v1.7.2 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde... |
docs/pages/components/chips.js | kybarg/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
const req = require.context('docs/src/pages/components/chips', false, /\.(md|js|tsx)$/);
const reqSource = require.context(
'!raw-loader!../../src/pages/components/chips',
false,
/\.(js|tsx)$/,
);
const reqPrefix = 'p... |
src/app/components/resourses/planetsheet/OneItem.js | mazahell/eve-react-app | import React from 'react';
import Helper from './../../../../app/helpers';
import { map } from 'lodash';
const OneItem = props => {
const { item, price_input_type, input_prices } = props;
const outputValue = Helper.price(item.profit);
const percColor = item.profit >= 0 ? 'txt-yellow' : 'profit-minus';
let out... |
src/svg-icons/av/repeat-one.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvRepeatOne = (props) => (
<SvgIcon {...props}>
<path d="M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4zm-4-2V9h-1l-2 1v1h1.5v4H13z"/>
</SvgIcon>
);
AvRepeatOne = pure(AvRepeatOne);
AvRepeatOn... |
src/shared/components/FunFact/index.js | CharlesMangwa/Chloe | /* @flow */
import React from 'react'
import { Text, View } from 'react-native'
import styles from './styles'
type Props = {
color: string,
fact: string,
}
const FunFact = (props: Props): React$Element<any> => {
const { color, fact } = props
return (
<View style={styles.container}>
<View style={[st... |
techCurriculum/ui/solutions/4.2/src/components/CardForm.js | jennybkim/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/components/Winner.js | ivangeorgiew/voteApp | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import * as actions from '../actions';
import '../index.scss';
export default connect(mapStateToProps)(Winner);
/* MAP STATE TO PROPS */
function mapStateToProps(state) {
return {
winner: state.winner || '',... |
node_modules/react-icons/md/casino.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdCasino = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m27.5 15c1.4 0 2.5-1.1 2.5-2.5s-1.1-2.5-2.5-2.5-2.5 1.1-2.5 2.5 1.1 2.5 2.5 2.5z m0 15c1.4 0 2.5-1.1 2.5-2.5s-1.1-2.5-2.5-2.5-2.5 1.1-2.5 2.5 1.1 2.5 2.5 2.5z m-7.5-7.... |
src/pages/paper/edit/editAuthors.js | sunway-official/acm-admin | import React from 'react';
import { Field } from 'redux-form';
import { MenuItem, Divider } from 'material-ui';
import CustomInput from 'components/CustomInput';
import { renderSelectField } from 'components/render';
import renderCheckbox from 'components/renderCheckbox';
import { Subheader } from 'material-ui';
import... |
modules/gui/src/app/home/body/process/recipe/ccdcSlice/panels/source/assetSection.js | openforis/sepal | import {AssetInput} from 'widget/assetInput'
import {Form} from 'widget/form/form'
import {Layout} from 'widget/layout'
import {Subject} from 'rxjs'
import {compose} from 'compose'
import {connect} from 'store'
import {msg} from 'translate'
import PropTypes from 'prop-types'
import React from 'react'
import _ from 'lod... |
src/routes/RequestPayment/components/Submitted.js | vijayasankar/ML2.0 | import Button from 'react-bootstrap/lib/Button'
import Col from 'react-bootstrap/lib/Col'
import Link from 'react-router/lib/Link'
import React from 'react'
import Row from 'react-bootstrap/lib/Row'
class RequestPaymentSubmitted extends React.Component {
constructor (props) {
super(props)
this.handleFormRese... |
yymobile/progress/__tests__/index.test.native.js | 77ircloud/yymobile2 | import React from 'react';
import renderer from 'react-test-renderer';
// import { shallow } from 'enzyme';
import Progress from '../index';
describe('Progress', () => {
it('renders correctly', () => {
const wrapper = renderer.create(
<Progress percent={30} position="fixed" />,
);
expect(wrapper.t... |
src/pages/paypal-donate.js | ScottDowne/donate.mozilla.org | import React from 'react';
import MozillaFooter from '../components/mozilla/footer.js';
import Header from '../components/header.js';
import AmountButtons from '../components/amount-buttons.js';
import Frequency from '../components/donation-frequency.js';
import SubmitButton from '../components/submit-button.js';
impor... |
src/main/webapp/pkgs/backbone.js/backbone.js | haxwell/quizki | // Backbone.js 1.1.2
// (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://backbonejs.org
(function(root, factory) {
// Set up Backbone appropriately for ... |
src/routes/login/Login.js | fkn/ndo | import React from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import {
FormGroup,
Button,
ControlLabel,
FormControl,
HelpBlock,
PageHeader,
} from 'react-bootstrap';
import s from './Login.css';
class Login extends React.Component {
static... |
webpack/scenes/Subscriptions/UpstreamSubscriptions/UpstreamSubscriptionsPage.js | pmoravec/katello | import React, { Component } from 'react';
import _ from 'lodash';
import { translate as __ } from 'foremanReact/common/I18n';
import PropTypes from 'prop-types';
import { LinkContainer } from 'react-router-bootstrap';
import { Grid, Row, Col } from 'react-bootstrap';
import BreadcrumbsBar from 'foremanReact/components/... |
pages/index.js | kepatopoc/gatsby-starter-clean | import React from 'react'
import { Link } from 'react-router'
import { prefixLink } from 'gatsby-helpers'
import Helmet from "react-helmet"
import { config } from 'config'
export default class Index extends React.Component {
render () {
return (
<div>
<Helmet
title={config.sit... |
components/default/aside.js | JobLeonard/idyll-p5 | const React = require('react');
const IdyllComponent = require('idyll-component');
class Aside extends IdyllComponent {
render() {
return (
<div className={'aside-container'}>
<div className={'aside'}>
{this.props.children}
</div>
</div>
);
}
}
module.exports = Aside;... |
examples/with-custom-webpack-config/src/client.js | jaredpalmer/react-production-starter | import React from 'react';
import { hydrate } from 'react-dom';
import App from './App';
hydrate(<App />, document.getElementById('root'));
if (module.hot) {
module.hot.accept();
}
|
app/containers/HomePage.js | dfucci/Borrowr | import React, { Component } from 'react';
import Home from '../components/Home';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { removeBook } from '../actions/books';
function mapStateToProps(state) {
return {
filter: state.filter
};
}
function mapDispatchToProps(di... |
src/app/components/Header.js | zendra1994/react-ssr | import React from 'react';
import { Link } from 'react-router';
export default class Header extends React.Component {
render() {
return (
<header>
<ul>
<li><Link to="/">Home</Link></li>
<li><Link to="/about">About</Link></li>
</ul>
</header>
)
}
} |
packages/react-static/src/static/__mocks__/pages/404.js | nozzle/react-static | import React from 'react'
//
export default () => (
<div>
<h1>404 - Oh no's! We couldn't find that page :(</h1>
</div>
)
|
heesong/src/App.js | hanheesong/hanheesong.github.io | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/... |
src/svg-icons/hardware/scanner.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareScanner = (props) => (
<SvgIcon {...props}>
<path d="M19.8 10.7L4.2 5l-.7 1.9L17.6 12H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-5.5c0-.8-.5-1.6-1.2-1.8zM7 17H5v-2h2v2zm12 0H9v-2h10v2z"/>
</... |
ajax/libs/yui/3.10.1/event-focus/event-focus-debug.js | pombredanne/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() {
... |
es6/Checkbox/CheckBoxButton.js | yurizhang/ishow | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des... |
ajax/libs/yasqe/1.2.2/yasqe.min.js | KOLANICH/cdnjs | !function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASQE=e()}}(function(){var e;return function t(e,i,r){function n(s,a){if(!i[s]){if(!... |
src/app/components/propertiesOil.js | benigeri/soapee-ui | import _ from 'lodash';
import React from 'react';
import oilsStore from 'stores/oils';
import calculatorStore from 'stores/calculator';
export default React.createClass( {
shouldComponentUpdate( nextProps ) {
return !( _.isEqual( this.props, nextProps ) );
},
render() {
let oil = this.p... |
src/js/components/icons/base/PlatformOracle.js | linde12/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
ajax/libs/analytics.js/2.3.7/analytics.js | sashberd/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/core-js/2.0.0-alpha/library.js | sufuf3/cdnjs | /**
* core-js 2.0.0-alpha
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(__e, __g, undefined){
'use strict';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The req... |
components/Queue.js | reneechar/React-Kanban | import React from 'react';
import ReactDOM from 'react-dom';
import {connect} from 'react-redux';
import {receiveTasks} from '../actions/kanbanActions';
import styles from './sass/items.scss';
import EditTask from './EditTask';
import EditButton from './EditButton';
import MoveProgressButton from './MoveProgressButton'... |
test/components/ComicList.spec.js | rickychien/comiz | import expect from 'expect'
import { shallow } from 'enzyme'
import React from 'react'
import { ComicList } from '../../src/components/ComicList'
describe('<ComicList />', () => {
let props
beforeEach(() => {
props = {
comics: undefined,
isFetching: undefined,
fetchError: undefined,
on... |
ajax/libs/adapterjs/0.13.0/adapter.screenshare.js | emmy41124/cdnjs | /*! adapterjs - v0.13.0 - 2016-01-08 */
// Adapter's interface.
var AdapterJS = AdapterJS || {};
// Browserify compatibility
if(typeof exports !== 'undefined') {
module.exports = AdapterJS;
}
AdapterJS.options = AdapterJS.options || {};
// uncomment to get virtual webcams
// AdapterJS.options.getAllCams = true;
... |
spec/unit/startTasks.spec.js | mbrio/react-pipeline | import React from 'react';
const ReactPipeline = require('../../src/ReactPipeline').default;
const Task = require('../../src/Task').default;
const startTasks = require('../../src/startTasks').default;
describe('startTasks', () => {
describe('start', () => {
pit('ensure child properties are updated after tasks h... |
src/js/components/icons/base/PauseFill.js | odedre/grommet-final | /**
* @description PauseFill SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @... |
ajax/libs/golden-layout/1.5.4/goldenlayout.js | AMoo-Miki/cdnjs | (function($){var lm={"config":{},"container":{},"controls":{},"errors":{},"items":{},"utils":{}};
lm.utils.F = function () {};
lm.utils.extend = function( subClass, superClass ) {
subClass.prototype = lm.utils.createObject( superClass.prototype );
subClass.prototype.contructor = subClass;
};
lm.utils.createObject... |
src/NewDrink.js | martonbognar/bali-react | import React, { Component } from 'react';
import DRINKS from './data/drinkList';
class NewDrink extends Component {
constructor(props) {
super(props);
this.state = {name: '', amount: '', strength: '', startTime: new Date().getTime(), selectedDrink: ''};
this.resetState = this.resetState.bind(this);
... |
ajax/libs/jquery/1.11.0-beta3/jquery.js | BobbieBel/cdnjs | /*!
* jQuery JavaScript Library v1.11.0-beta3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-12-20T22:44Z
*/
(function( global, factory ) {... |
src/components/TeamNode.js | cessien/buzzer | // src/components/TeamNode.js
import React from 'react';
export default class TeamNode extends React.Component {
render() {
return (
<div style={this.props.styles}>{this.props.name}</div>
);
}
}
|
src/DropdownToggle.js | thealjey/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import Button from './Button';
import CustomPropTypes from './utils/CustomPropTypes';
import SafeAnchor from './SafeAnchor';
const CARET = <span> <span className="caret" /></span>;
export default class DropdownToggle extends React.Component {
render() ... |
components/articleTemplate.js | halfatheist/halfatheist.github.io | import _ from 'lodash';
import React from 'react'
import { Link } from 'react-router'
import { prefixLink } from 'gatsby-helpers'
import DocumentTitle from 'react-document-title'
import { config } from 'config'
import moment from 'moment';
import Header from './header';
import Footer from './footer';
import Social fro... |
src/components/NoteWrap.js | gorand/redux_test | import React, { Component, PropTypes } from 'react';
import NoteItem from './NoteItem';
class NoteWrap extends Component {
constructor(props) {
super(props);
}
componentDidMount() {
this.interval = setInterval(() => {
this.props.actions.updateTime(new Date());
}, 10000);
}
componentWillUn... |
app/javascript/tagging/components/InnerComponents/TagCategory.js | ManageIQ/manageiq-ui-classic | /* eslint-disable react/destructuring-assignment */
import React from 'react';
import PropTypes from 'prop-types';
import Tag from './Tag';
import TaggingPropTypes from '../TaggingPropTypes';
class TagCategory extends React.Component {
generateTag = (tagValue) => (
<Tag
key={tagValue.id}
tagCategory=... |
js/vendor/jquery-1.11.3.min.js | ethanabowen/StockProject | /*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
src/Parser/Warlock/Demonology/Modules/Talents/ImprovedDreadstalkers.js | hasseboulen/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import SPELLS from 'common/SPELLS';
import PETS from 'common/PETS';
import { formatNumber, formatPercentage } from 'common/format';
import SpellIcon from 'common/SpellIcon';
import Statist... |
docs/app/Examples/elements/Container/Types/index.js | shengnian/shengnian-ui-react | /* eslint-disable max-len */
import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import { Message } from 'shengnian-ui-react'
const ContainerTypesExamples = () => (
<ExampleSection tit... |
ajax/libs/react-bootstrap-table/2.0.1/react-bootstrap-table.min.js | sufuf3/cdnjs | !function(Q,F){"object"==typeof exports&&"object"==typeof module?module.exports=F(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],F):"object"==typeof exports?exports.ReactBootstrapTable=F(require("react"),require("react-dom")):Q.ReactBootstrapTable=F(Q.React,Q.R... |
tests/index.js | KeywordBrain/redbox-react | import React from 'react'
import test from 'tape'
import {createComponent} from './utils'
import errorStackParserMock from './errorStackParserMock'
import framesStub from './framesStub.json'
import framesStubAbsoluteFilenames from './framesStubAbsoluteFilenames.json'
import framesStubMissingFilename from './framesStubM... |
test/unit/app/components/Header/Header.spec.js | nabil-jazoul/react-starter | import React from 'react'
import configStore from 'redux-mock-store'
import { shallow } from 'enzyme'
import expect from 'expect'
import Header from 'App/components/Header'
describe('<Header />', () => {
const mockStore = configStore()
it('should render login link for guests', () => {
const store = mockStore... |
ajax/libs/react-data-grid/1.0.56/react-data-grid.js | holtkamp/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
src/ModalHeader.js | wjb12/react-bootstrap | import React from 'react';
import classNames from 'classnames';
class ModalHeader extends React.Component {
render() {
return (
<div
{...this.props}
className={classNames(this.props.className, this.props.modalClassName)}>
{ this.props.closeButton &&
<button
cla... |
src/components/GuitarApp/parts/Fretguide/index.js | jesusGalan/fretboardApp | import React, { Component } from 'react';
import {TransparentDiv} from './styled'
import {Row} from 'components/common/Template'
class Fretguide extends Component {
render() {
let frets = []
let x = 0
for (x = 0; x < 12; x++) {
frets.push(x)
}
return (
<Row>
{frets.map(th... |
misc/webgui/src/components/Statedevice.js | ChainsAutomation/chains | import React from 'react';
// Per service render
export default class StateDevice extends React.Component {
render() {
/*
console.log("StateDevice");
console.log(this.props);
//*/
const ddata = this.props.ddata;
let devData = [];
for (var dev in ddata['data']) {
const dItem = dev;
... |
ajax/libs/rxjs/2.3.9/rx.lite.js | kentucky-roberts/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... |
client/src/component/toolbar/ToolbarLeft.js | Hacktus/react-ui-builder | 'use strict';
var React = require('react/addons');
var ModalProgressTrigger = require('../modal/ModalProgressTrigger.js');
var ModalProgressTriggerAction = require('../../action/modal/ModalProgressTriggerActions.js');
var ModalProjectSettingsTriggerActions = require('../../action/modal/ModalProjectSettingsTriggerActio... |
src/svg-icons/editor/format-color-reset.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatColorReset = (props) => (
<SvgIcon {...props}>
<path d="M18 14c0-4-6-10.8-6-10.8s-1.33 1.51-2.73 3.52l8.59 8.59c.09-.42.14-.86.14-1.31zm-.88 3.12L12.5 12.5 5.27 5.27 4 6.55l3.32 3.32C6.55 11.32 6 12... |
ajax/libs/react-redux/4.0.4/react-redux.min.js | BitsyCode/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("redux")):"function"==typeof define&&define.amd?define(["react","redux"],t):"object"==typeof exports?exports.ReactRedux=t(require("react"),require("redux")):e.ReactRedux=t(e.React,e.Redux)}(this,function(e,t){retu... |
examples/js/pagination/custom-pagination-table.js | rolandsusans/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,
... |
src/svg-icons/navigation/chevron-right.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationChevronRight = (props) => (
<SvgIcon {...props}>
<path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/>
</SvgIcon>
);
NavigationChevronRight = pure(NavigationChevronRight);
NavigationChevronRigh... |
src/svg-icons/av/not-interested.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvNotInterested = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12... |
lib/dropdown/index.js | jasonleibowitz/react-toolbox | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Dropdown = undefined;
var _reactCssThemr = require('react-css-themr');
var _identifiers = require('../identifiers.js');
var _Dropdown = require('./Dropdown.js');
var _input = require('../input');
var _theme = require('./theme.s... |
resolvers/subschema-resolver-transition/test/transition-test.js | jspears/subschema-devel | import React from 'react';
import { expect } from 'chai';
import { newSubschemaContext } from 'subschema-core';
import transitions from 'subschema-transitions';
import loaderFactory from 'subschema-loader';
import {transition} from 'subschema-resolver-transition';
describe("resolvers/transition", function () {
let... |
files/jparallax/2.0.3/jquery.parallax_1.0.js | vuejs/jsdelivr | // jquery.parallax.js
// 1.1
// Stephen Band
//
// Project and documentation site:
// webdev.stephband.info/jparallax/
//
// Repository:
// github.com/stephband/jparallax
//
// Dependencies:
// jquery.event.frame
// webdev.stephband.info/events/frame/
(function(jQuery, undefined) {
// Debug
var debug = true;
// V... |
app/javascript/mastodon/features/lists/components/new_list_form.js | musashino205/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { changeListEditorTitle, submitListEditor } from '../../../actions/lists';
import IconButton from '../../../components/icon_button';
import { defineMessages, injectIntl } from 'react-intl';
const messages = def... |
test/js/AR/release_test/ARImageTrackingTest.js | viromedia/viro |
/**
* Copyright (c) 2017-present, Viro Media, 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.
*/
import R... |
packages/es-components/src/components/containers/tooltip/Tooltip.specs.js | TWExchangeSolutions/es-components | /* eslint-env jest */
import React from 'react';
import { fireEvent, waitFor } from '@testing-library/react';
import Tooltip from './Tooltip';
import { renderWithTheme } from '../../util/test-utils';
it('displays when the mouse enters the target and hides when the mouse leaves the target', async () => {
const inst... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.