path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
docs/app/components/markdown/index.js | showings/react-toolbox | import 'highlight.js/styles/github-gist';
import React from 'react';
import PropTypes from 'prop-types';
import style from './style.css';
const Markdown = (props) => {
let className = style.markdown;
if (props.className) className += ` ${props.className}`;
const html = {
__html: props.markdown
};
retur... |
ajax/libs/zxcvbn/2.0.1/zxcvbn.js | drewfreyling/cdnjs | (function(){var x,p,s,y,I,J,K,L,M,N,O,P,z,q,A,Q,R,S,T,U,V;O=function(b){var a,c;c=[];for(a in b)c.push(a);return 0===c.length};z=function(b,a){return b.push.apply(b,a)};U=function(b,a){var c,e,f,d,g;d=b.split("");g=[];e=0;for(f=d.length;e<f;e++)c=d[e],g.push(a[c]||c);return g.join("")};Q=function(b,a){var c,e,f,d;d=[];... |
ksa-web-root/ksa-web/src/main/webapp/rs/jquery/jquery-1.7.2.min.js | xsocket/ksa | /*! 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... |
packages/material-ui-icons/src/RemoveTwoTone.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M19 13H5v-2h14v2z" /></React.Fragment>
, 'RemoveTwoTone');
|
ajax/libs/react-instantsearch/4.5.1/Dom.js | ahocevar/cdnjs | /*! ReactInstantSearch 4.5.1 | © 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) :
... |
app/javascript/mastodon/features/compose/components/warning.js | pso2club/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
export default class Warning extends React.PureComponent {
static propTypes = {
message: PropTypes.node.isRequired,
};
render () {
const { mes... |
ajax/libs/6to5/1.12.0/browser-polyfill.js | dannyxx001/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... |
docs/app/Examples/elements/Label/Groups/LabelExampleGroupSize.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Label } from 'semantic-ui-react'
const LabelExampleGroupSize = () => (
<Label.Group size='huge'>
<Label>Fun</Label>
<Label>Happy</Label>
<Label>Smart</Label>
<Label>Witty</Label>
</Label.Group>
)
export default LabelExampleGroupSize
|
pkg/interface/launch/src/js/components/header.js | ngzax/urbit | import React, { Component } from 'react';
import { Sigil } from './sigil';
import { GroupFilter } from './group-filter';
import _ from 'lodash';
export default class Header extends Component {
render() {
let invites = (this.props.invites && this.props.invites["/contacts"])
? this.props.invites["/contacts"... |
ajax/libs/angular.js/1.0.0/angular-scenario.js | zhangbg/cdnjs | /*!
* jQuery JavaScript Library v1.7.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/svg-icons/image/timer-off.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTimerOff = (props) => (
<SvgIcon {...props}>
<path d="M19.04 4.55l-1.42 1.42C16.07 4.74 14.12 4 12 4c-1.83 0-3.53.55-4.95 1.48l1.46 1.46C9.53 6.35 10.73 6 12 6c3.87 0 7 3.13 7 7 0 1.27-.35 2.47-.94 3.49l1.... |
examples/redux/test/components/Header.spec.js | nweber/todomvc | import expect from 'expect';
import jsdomReact from '../jsdomReact';
import React from 'react/addons';
import Header from '../../components/Header';
import TodoTextInput from '../../components/TodoTextInput';
const { TestUtils } = React.addons;
function setup() {
const props = {
addTodo: expect.createSpy()
};... |
src/pages/404.js | codenetwork/CodeNetwork.co | import React from 'react'
import Layout from '../components/layout'
import SEO from '../components/seo'
const NotFoundPage = () => (
<Layout>
<SEO title="404: Not found" />
<h1>NOT FOUND</h1>
<p>You just hit a route that doesn't exist... the sadness.</p>
</Layout>
)
export default NotFoundPage
|
packages/carbon-react/src/components/Skeleton/Skeleton.stories.js | carbon-design-system/carbon-components | import React from 'react';
import { SkeletonPlaceholder, SkeletonText } from 'carbon-components-react';
import { withKnobs, select, boolean, number } from '@storybook/addon-knobs';
const classNames = {
'my--skeleton__placeholder--small': 'my--skeleton__placeholder--small',
'my--skeleton__placeholder--medium': 'my-... |
samples/JavaScript/jquery-1.4.2.min.js | scttnlsn/linguist | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/components/CustomModal/CustomModal.js | eunvanz/handpokemon2 | import React from 'react'
import PropTypes from 'prop-types'
import { Modal } from 'react-bootstrap'
import $ from 'jquery'
import shallowCompare from 'react-addons-shallow-compare'
class CustomModal extends React.Component {
constructor (props) {
super(props)
this.displayName = 'CustomModal'
this.state ... |
geonode/contrib/monitoring/frontend/src/pages/software-performance/index.js | timlinux/geonode | import React from 'react';
import Header from '../../components/organisms/header';
import GeonodeAnalytics from '../../components/organisms/geonode-analytics';
import GeonodeLayersAnalytics from '../../components/organisms/geonode-layers-analytics';
import WSAnalytics from '../../components/organisms/ws-analytics';
imp... |
test/integration/client-navigation/pages/nav/as-path.js | JeromeFitz/next.js | import React from 'react'
export default class extends React.Component {
static getInitialProps({ asPath, req }) {
return { asPath }
}
render() {
return <div className="as-path-content">{this.props.asPath}</div>
}
}
|
imports/ui/components/StudentRowDisplay.js | hanstest/hxgny | import React from 'react'
import { Table, Button, Icon } from 'semantic-ui-react'
/**
* Create a table row to display the basic information about a student
* @param props properties for this component
* @param props.student the student to render in this row
*/
const StudentRowDisplay = (props) => (
<Table.Row te... |
examples/pinterest/app.js | trotzig/react-router | import React from 'react';
import { Router, Route, IndexRoute, Link } from 'react-router';
var PICTURES = [
{ id: 0, src: 'http://placekitten.com/601/601' },
{ id: 1, src: 'http://placekitten.com/610/610' },
{ id: 2, src: 'http://placekitten.com/620/620' }
];
var Modal = React.createClass({
styles: {
posi... |
src/components/SinglePage.js | EehMauro/dyscalculia-web | import React from 'react';
import Grid from 'material-ui/Grid';
import Paper from 'material-ui/Paper';
import { withStyles } from 'material-ui/styles';
import { colors } from '../conventions';
const styles = theme => ({
root: {
paddingTop: 64,
paddingBottom: 64,
'@media only screen and (max-width : 960px... |
src/pages/Project/components/SuccessMatrix.js | Minishlink/DailyScrum | // @flow
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { StyleSheet, View } from 'react-native';
import FlatList from 'FlatList';
import { Icon, Text, Card } from '../../../components';
import { sprintsSuccessMatrixSelector } from '../../../modules/sprints/reducer';
import type... |
src/containers/DevTools/DevTools.js | danieloliveira079/healthy-life-app | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor toggleVisibilityKey="ctrl-H"
changePositionKey="ctrl-Q">
<LogMonitor /... |
web/src/js/components/Search/SearchMenuComponent.js | gladly-team/tab | import React from 'react'
import PropTypes from 'prop-types'
import { get } from 'lodash/object'
import {
createMuiTheme,
MuiThemeProvider,
withStyles,
} from '@material-ui/core/styles'
import Button from '@material-ui/core/Button'
import CircleIcon from '@material-ui/icons/Lens'
import Typography from '@material... |
js/src/views/Signer/components/RequestPending/requestPending.spec.js | nipunn1313/parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any lat... |
src/translate.js | effektif/i18n | import isString from 'lodash/isString'
import isNumber from 'lodash/isNumber'
import isPlainObject from 'lodash/isPlainObject'
import forEach from 'lodash/forEach'
import pickBy from 'lodash/pickBy'
import has from 'lodash/has'
import escape from 'lodash/escape'
import marked from 'marked'
import React from 'react'
co... |
src/components/DictList/Card.js | GuramDuka/reorders | //------------------------------------------------------------------------------
import React, { Component } from 'react';
import connect from 'react-redux-connect';
import * as Sui from 'semantic-ui-react';
import disp, { nullLink, sscat, copy } from '../../store';
import { transform, sfetch, icoUrl, imgUrl } from '..... |
client/public/src/views/Dashboard/Util.js | openview2017/openview | import React from 'react'
import { Link } from 'react-router'
//import { persistenceData } from '../../constants/ConfigConstants'
import './dashboard.css'
//import '../../libs/vis.min.js'
import DashboardStore from '../../stores/DashboardStore'
/**
* LetfSideBar
*/
export class LeftSideBar extends React.Component {
... |
ajax/libs/forerunnerdb/1.3.41/fdb-all.min.js | pombredanne/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
src/components/shared/PagingControls.js | chatch/stellarexplorer | import React from 'react'
import Pager from 'react-bootstrap/lib/Pager'
import {FormattedMessage} from 'react-intl'
const PagingControls = ({handleClickNext, handleClickPrev, hidePrev}) =>
<Pager>
{!hidePrev &&
<Pager.Item previous onClick={handleClickPrev} href="#">
← <FormattedMessage id="pa... |
webpack/__mocks__/foremanReact/components/common/MessageBox.js | theforeman/foreman-tasks | import React from 'react';
export const MessageBox = () => <div className="message-box-root" />;
export default MessageBox;
|
local-cli/templates/HelloNavigation/views/welcome/WelcomeScreen.js | jasonnoahchoi/react-native | 'use strict';
import React, { Component } from 'react';
import {
Image,
Platform,
StyleSheet,
} from 'react-native';
import ListItem from '../../components/ListItem';
import WelcomeText from './WelcomeText';
export default class WelcomeScreen extends Component {
static navigationOptions = {
title: 'Welc... |
node_modules/material-ui/svg-icons/action/flip-to-back.js | Rabbit884/reactapp | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
tests/routes/Home/components/ScraperForm.spec.js | philbot9/youtube-comment-scraper-2.0 | import React from 'react'
import { ScraperForm } from 'routes/Home/components/ScraperForm'
import { shallow } from 'enzyme'
describe('(View) ScraperForm', () => {
let _component
beforeEach(() => {
_component = shallow(<ScraperForm />)
})
it('Renders as a div', () => {
expect(_component.is('div')).to... |
ajax/libs/material-ui/4.10.2/esm/NativeSelect/NativeSelect.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import * as React from 'react';
import PropTypes from 'prop-types';
import NativeSelectInput from './NativeSelectInput';
import withStyles from '../styles/withStyles';
im... |
src/client/TabItem.js | fewhnhouse/chrome-tab-switcher | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import stringSpanner from './string_spanner';
import Mousetrap from 'mousetrap';
var MATCH_START = '<span class="match">';
var MATCH_END = '</span>';
export default class TabItem extends Component {
constructor(props) {
super(props);
... |
website-prototyping-tools/graphiql.js | mroch/relay | /**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import 'ba... |
ajax/libs/6to5/2.4.5/browser-polyfill.js | nolsherry/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
src/DatePicker/DayButton.spec.js | frnk94/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import getMuiTheme from '../styles/getMuiTheme';
import {dateTimeFormat} from './dateUtils';
import DayButton from './DayButton';
describe('<DayButton />', () => {
const muiTheme = getMuiTheme();
const s... |
packages/vx-tooltip/src/enhancers/withTooltip.js | Flaque/vx | import React from 'react';
import PropTypes from 'prop-types';
export const withTooltipPropTypes = {
tooltipOpen: PropTypes.bool,
tooltipLeft: PropTypes.number,
tooltipTop: PropTypes.number,
tooltipData: PropTypes.object,
updateTooltip: PropTypes.func,
showTooltip: PropTypes.func,
hideTooltip: PropTypes.... |
src/index.js | Khenblack/Intermediate-Redux | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import ReduxPromise from 'redux-promise';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware(... |
packages/react-scripts/fixtures/kitchensink/src/index.js | liamhu/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById(... |
__tests__/Style-17.js | buildbreakdo/style-it | import React from 'react';
import { findDOMNode, render } from 'react-dom';
import TestUtils from 'react-addons-test-utils';
const removeNewlines = (string) => (string.replace(/(\r\n|\n|\r)/gm, ''))
import Style from '../src/index.js';
class Item extends React.Component {
render() {
return Style.it(`
l... |
src/router.js | suhasdeshpande/cautious-computing-machine | import app from 'ampersand-app'
import Router from 'ampersand-router'
import xhr from 'xhr'
import qs from 'qs'
import React from 'react'
import Layout from './layout'
import LoginPage from './pages/login'
import ReposPage from './pages/repos'
import ReposDetailPage from './pages/repo-detail'
import MessagePage from '.... |
modules/__tests__/ScrollManagementMixin-test.js | RobertKielty/react-router | import expect from 'expect';
import React from 'react';
import createHistory from 'history/lib/createHashHistory';
import resetHash from './resetHash';
import execStepsWithDelay from './execStepsWithDelay';
import { getWindowScrollPosition } from '../DOMUtils';
import Router from '../Router';
import Route from '../Rout... |
ajax/libs/material-ui/4.9.4/esm/Radio/RadioButtonIcon.js | cdnjs/cdnjs | import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import RadioButtonUncheckedIcon from '../internal/svg-icons/RadioButtonUnchecked';
import RadioButtonCheckedIcon from '../internal/svg-icons/RadioButtonChecked';
import withStyles from '../styles/withStyles';
export var styles = fun... |
ajax/libs/rxjs/2.2.27/rx.lite.extras.js | mathiasrw/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'unde... |
ajax/libs/ember-data.js/1.0.0-beta.3/ember-data.prod.js | wil93/cdnjs | // ==========================================================================
// Project: Ember Data
// Copyright: ©2011-2012 Tilde Inc. and contributors.
// Portions ©2011 Living Social Inc. and contributors.
// License: Licensed under MIT license (see license.js)
// ====================================... |
ajax/libs/react/0.5.1/react-with-addons.min.js | gaearon/cdnjs | /**
* React (with addons) v0.5.1
*
* Copyright 2013 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 require... |
app/main.js | KleoPetroff/react-webpack-boilerplate | import React from 'react';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import Root from './config/Root';
const render = (Component) => {
ReactDOM.render(
<AppContainer>
<Component />
</AppContainer>,
document.getElementById('root'),
);
};
render(Root);
if... |
ajax/libs/forerunnerdb/1.3.821/fdb-core+views.js | maruilian11/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/crafty/0.6.2/crafty.js | hasantayyar/cdnjs | /**
* crafty 0.6.2
* http://craftyjs.com/
*
* Copyright 2014, Louis Stowasser
* Dual licensed under the MIT or GPL licenses.
*/
;(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+"... |
src/svg-icons/editor/title.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorTitle = (props) => (
<SvgIcon {...props}>
<path d="M5 4v3h5.5v12h3V7H19V4z"/>
</SvgIcon>
);
EditorTitle = pure(EditorTitle);
EditorTitle.displayName = 'EditorTitle';
EditorTitle.muiName = 'SvgIcon';
ex... |
packages/material-ui-icons/src/SportsMmaTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M15 5H7v5.6c0 .14.64 3.4.64 3.4h8.72s.64-3.26.64-3.4V10h-2V5zm-1 5H8V7h6v3z" opacity=".3" /><path d="M7 20c0 .55.45 1 1 1h8c.55 0 1-.45 1-1v-3H7v3zM18 7c-.55 0-1 .45-1 1V5c0-1.1-.9-2-2... |
example/basic/src/stories/index.js | sm-react/storybook-chapters | /* eslint-disable import/no-extraneous-dependencies */
/* eslint-disable react/jsx-filename-extension */
import React from 'react';
import { storiesOf, action, addDecorator } from '@kadira/storybook';
import { setOptions } from '@kadira/storybook-addon-options';
import { muiTheme } from 'storybook-addon-material-ui';
... |
ajax/libs/6to5/1.12.9/browser-polyfill.js | taydakov/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/webshim/1.14.6-RC2/dev/shims/es6.js | quba/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... |
src/Well.js | Terminux/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import bootstrapUtils, { bsSizes, bsClass } from './utils/bootstrapUtils';
import { Sizes } from './styleMaps';
@bsClass('well')
@bsSizes([Sizes.LARGE, Sizes.SMALL])
class Well extends React.Component {
render() {
let classes = bootstrapUtils.getCla... |
src/containers/__tests__/views/authenticate-view-test.js | Jenny-L/lumohacks2017 | /**
* Test to check if the component renders correctly
*/
/* global it expect */
import 'react-native';
import React from 'react';
import renderer from 'react-test-renderer';
import AuthenticateView from '@containers/auth/AuthenticateView';
it('AuthenticateView renders correctly', () => {
const tree = renderer.cr... |
ajax/libs/reactive-coffee/0.0.4/reactive-coffee.min.js | the-destro/cdnjs | !function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S={}.hasOwnProperty,T=function(a,b){function c(){this.constructor=a}for(var d in b)S.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},U=[].slice,V=this;"undefined"==t... |
ajax/libs/react-localstorage/0.1.1/react-localstorage.min.js | sajochiu/cdnjs | "use strict";function loadStateFromLocalStorage(t){if(ls){var e=getLocalStorageKey(t);try{var a=JSON.parse(ls.getItem(e));a&&t.setState(a)}catch(o){console&&console.warn("Unable to load state for",getDisplayName(t),"from localStorage.")}}}function getDisplayName(t){return t.displayName||t.constructor.displayName}functi... |
node_modules/react-router-dom/es/NavLink.js | millerman86/CouponProject | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _typeof = typeof Symbol === "function" && typeof Symbol.i... |
js/components/tab/index.js | ChiragHindocha/stay_fit |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Text, Button, Icon, Left, Right, Body, List, ListItem } from 'native-base';
import { Actions } from 'react-native-router-flux';
... |
ajax/libs/jquery.fancytree/2.10.1/jquery.fancytree-all.min.js | dhowe/cdnjs | /*! jQuery Fancytree Plugin - 2.10.1 - 2015-06-27T22:07
* https://github.com/mar10/fancytree
* Copyright (c) 2015 Martin Wendt; Licensed MIT */
(function( factory ) {
if ( typeof define === "function" && define.amd ) {
define( [ "jquery" ], factory );
} else {
factory( jQuery );
}
}(function( $ ) {
!functio... |
dist/assets/lib/jquery/test/data/jquery-1.8.2.ajax_xhr.min.js | cfpb/click-to-comment | /*! jQuery v1.8.2 -deprecated,-css,-ajax/script,-ajax/jsonp,-effects,-offset,-dimensions jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttr... |
packages/blaze/materializer.js | yonas/meteor-freebsd | // Turns HTMLjs into DOM nodes and DOMRanges.
//
// - `htmljs`: the value to materialize, which may be any of the htmljs
// types (Tag, CharRef, Comment, Raw, array, string, boolean, number,
// null, or undefined) or a View or Template (which will be used to
// construct a View).
// - `intoArray`: the array of DO... |
src/js/components/SnapcastClients.js | jaedb/Iris | import React from 'react';
import VolumeControl from './Fields/VolumeControl';
import MuteControl from './Fields/MuteControl';
import LatencyControl from './Fields/LatencyControl';
import TextField from './Fields/TextField';
import SelectField from './Fields/SelectField';
import { I18n, i18n } from '../locale';
... |
src/icons/IosEye.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosEye extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M447.1,256.2C401.8,204,339.2,144,256,144c-33.6,0-64.4,9.5-96.9,29.8C131.7,191,103.6,215.2,65,255l-1,1l6.7,6.9
C125.... |
examples/InputCheckbox.js | jhernandezme/react-materialize | import React from 'react';
import Input from '../src/Input';
import Row from '../src/Row';
export default
<Row>
<Input name='group1' type='checkbox' value='red' label='Red' />
<Input name='group1' type='checkbox' value='yellow' label='Yellow' defaultValue='checked' />
<Input name='group1' type='checkbox' v... |
src/svg-icons/image/looks-two.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooksTwo = (props) => (
<SvgIcon {...props}>
<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-2zm-4 8c0 1.11-.9 2-2 2h-2v2h4v2H9v-4c0-1.11.9-2 2-2h2V9H9V7h4c1.1 0 2 .89 2 ... |
src/routes.js | yutechnet/react-redux | import React from 'react';
import {Route, IndexRoute} from 'react-router';
import App from './components/App';
import HomePage from './components/home/HomePage';
import AboutPage from './components/about/AboutPage';
export default (
<Route path="/" component ={App}>
<IndexRoute component ={HomePage} />
... |
app/components/HeaderButton.js | jastkand/vk-notifications | import React from 'react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import styles from './HeaderButton.css'
export default (props) => {
if (props.hidden) {
return null
}
return (
<a onClick={ props.onClick } className={ styles.button } title={ props.title }>
<FontAwesomeIcon... |
packages/material-ui-icons/src/GolfCourseOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><circle cx="19.5" cy="19.5" r="1.5" /><path d="M17 5.92L9 2v18H7v-1.73c-1.79.35-3 .99-3 1.73 0 1.1 2.69 2 6 2s6-.9 6-2c0-.99-2.16-1.81-5-1.97V8.98l6-3.06z" /></React.Fragment>
, 'GolfCourseOutl... |
node_modules/rc-input-number/es/index.js | prodigalyijun/demo-by-antd | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _extends from 'babel-runtime/helpers/extends';
import React from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
import classNames from 'classnames';
import mixin from './mixin';
import InputHandle... |
ajax/libs/react-virtualized/2.7.5/react-virtualized.min.js | him2him2/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports["react-virtualized"]=t(require("react")):e["react-virtualized"]=t(e.React)}(this,function(e){return function(e){function t(n){if(... |
ajax/libs/rxjs/2.3.12/rx.js | Ryuno-Ki/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/vuetify/2.1.1/vuetify.min.js | extend1994/cdnjs | /*!
* Vuetify v2.1.1
* Forged by John Leider
* Released under the MIT License.
*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define(["vue"],e):"object"==typeof exports?exports.Vuetify=e(require("vue")):t.Vuetify=e(t.Vue)}("unde... |
packages/react-router-website/modules/components/MarkdownViewer.js | justjavac/react-router-CN | /*eslint react/no-danger:0 */
import React from 'react'
import 'prismjs/themes/prism-tomorrow.css'
const MarkdownViewer = ({ html, id }) => (
<markdown
dangerouslySetInnerHTML={{
__html: html
}}
/>
)
MarkdownViewer.propTypes = {
html: React.PropTypes.string.isRequired
}
export default MarkdownVie... |
ajax/libs/6to5/3.0.6/browser-polyfill.js | dmsanchez86/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/F2/1.3.3/f2.js | mikesir87/cdnjs | ;(function(exports) {
if (exports.F2 && !exports.F2_TESTING_MODE) {
return;
}
/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d... |
jspm_packages/npm/react@0.14.2/lib/ReactClass.js | JHKennedy4/nqr-client | /* */
(function(process) {
'use strict';
var ReactComponent = require("./ReactComponent");
var ReactElement = require("./ReactElement");
var ReactPropTypeLocations = require("./ReactPropTypeLocations");
var ReactPropTypeLocationNames = require("./ReactPropTypeLocationNames");
var ReactNoopUpdateQueue = req... |
src/main.js | krizkasper/react-redux-kriz | import React from 'react';
import ReactDOM from 'react-dom';
import createStore from './store/createStore';
import AppContainer from './containers/AppContainer';
// ========================================================
// Store Instantiation
// ========================================================
const initialS... |
ajax/libs/js-data/2.0.0-beta.3/js-data.js | paleozogt/cdnjs | /*!
* js-data
* @version 2.0.0-beta.3 - Homepage <http://www.js-data.io/>
* @author Jason Dobry <jason.dobry@gmail.com>
* @copyright (c) 2014-2015 Jason Dobry
* @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE>
*
* @overview Robust framework-agnostic data store.
*/
(function webpackUnivers... |
EduChainApp/js/login/Login.js | bkrem/educhain | /**
*
* @flow
*/
'use strict';
import React from 'react';
import {connect} from 'react-redux';
import {Navigator} from 'react-native';
import WelcomeView from '../common/WelcomeView';
import LoginForm from './LoginForm';
type Props = {
navigator: Navigator
}
class LoginView extends React.Component {
props... |
app/javascript/mastodon/components/permalink.js | koba-lab/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class Permalink extends React.PureComponent {
static contextTypes = {
router: PropTypes.object,
};
static propTypes = {
className: PropTypes.string,
href: PropTypes.string.isRequired,
to: PropTypes.string.isRequired,
... |
app/components/race-preview/RacerEdit.js | opensprints/opensprints-electron | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from './RacerSelect.css';
const racerAttributeSelect = (key, options, value, onChange) => (
<div key={`racer-select-${key}`} className="select-container block">
<select
className="form-control text-capitalize"
... |
src/layouts/PageLayout/PageLayout.js | sachinisilva/ganu-denu | import React from 'react'
import PropTypes from 'prop-types'
export const PageLayout = ({ children }) => (
<div >
{children}
</div>
)
PageLayout.propTypes = {
children: PropTypes.node
}
export default PageLayout
|
packages/bonde-admin-canary/src/components/PageLogged/Header/ActionButton.js | ourcities/rebu-client | import React from 'react'
import { Link } from 'react-router-dom'
import { Button, Spacing } from 'bonde-styleguide'
const ActionButton = ({ label, to, ...props }) => (
<Spacing margin={{ left: 17 }}>
<Link to={to}>
<Button label={label} {...props}>
{label}
</Button>
</Link>
</Spacing>
... |
packages/reactor-kitchensink/src/examples/FormFields/SpinnerField/SpinnerField.js | dbuhrman/extjs-reactor | import React from 'react';
import { SpinnerField, FormPanel } from '@extjs/ext-react';
export default function SpinnerFieldExample() {
return (
<FormPanel shadow>
<SpinnerField
label="Spinner"
width="150"
minValue={0}
maxValue={... |
fixtures/nesting/src/legacy/Greeting.js | acdlite/react | import React from 'react';
import {Component} from 'react';
import {findDOMNode} from 'react-dom';
import {Link} from 'react-router-dom';
import {connect} from 'react-redux';
import {store} from '../store';
import ThemeContext from './shared/ThemeContext';
import Clock from './shared/Clock';
store.subscribe(() => {
... |
src/native/index.js | TeodorKolev/Help | import React from 'react';
import { StatusBar, Platform } from 'react-native';
import PropTypes from 'prop-types';
import { Provider } from 'react-redux';
import { Router, Stack } from 'react-native-router-flux';
import { PersistGate } from 'redux-persist/es/integration/react';
import { StyleProvider } from 'native-ba... |
src/BreadcrumbItem.js | mmartche/boilerplate-shop | import classNames from 'classnames';
import React from 'react';
import warning from 'warning';
import SafeAnchor from './SafeAnchor';
const BreadcrumbItem = React.createClass({
propTypes: {
/**
* If set to true, renders `span` instead of `a`
*/
active: React.PropTypes.bool,
/**
* HTML id ... |
www/docs/en/quick-start-guide_ubuntu-1404_kilo/5.1/common/jquery/jquery-1.4.3.min.js | midonet/midonet-docs | /*!
* jQuery JavaScript Library v1.4.3
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/Paper/Paper.spec.js | ichiohta/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import Paper from './Paper';
import getMuiTheme from '../styles/getMuiTheme';
describe('<Paper />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (node) => shallow(node, {context: {mu... |
admin/client/components/FlashMessages.js | tony2cssc/keystone | import React from 'react';
import { Alert } from 'elemental';
var FlashMessage = React.createClass({
displayName: 'FlashMessage',
propTypes: {
message: React.PropTypes.oneOfType([
React.PropTypes.object,
React.PropTypes.string,
]),
type: React.PropTypes.string,
},
renderMessage (message) {
if (typeof... |
src/svg-icons/action/flight-land.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFlightLand = (props) => (
<SvgIcon {...props}>
<path d="M2.5 19h19v2h-19zm7.18-5.73l4.35 1.16 5.31 1.42c.8.21 1.62-.26 1.84-1.06.21-.8-.26-1.62-1.06-1.84l-5.31-1.42-2.76-9.02L10.12 2v8.28L5.15 8.95l-.93-2... |
node_modules/react/lib/ReactFragment.js | Alex-Shilman/Drupal8Node | /**
* Copyright 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModu... |
src/svg-icons/av/hd.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvHd = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-... |
client/components/operations/type-select.js | jankeromnes/kresus | import React from 'react';
import PropTypes from 'prop-types';
import { translate as $t } from '../../helpers';
import ButtonSelect from '../ui/button-select';
const TypeSelect = props => {
let getThisType = () => props.operation.type;
let idToDescriptor = type => [$t(`client.${type}`)];
return (
... |
src/svg-icons/av/call-to-action.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvCallToAction = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3v-3h18v3z"/>
</SvgIcon>
);
AvCallToAction = pure(AvCallToAction);... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.