path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
js/jquery.js | mburnejko/website | /*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
packages/material-ui-icons/src/BorderBottomRounded.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M9 11H7v2h2v-2zm4 4h-2v2h2v-2zM9 3H7v2h2V3zm4 8h-2v2h2v-2zM5 3H3v2h2V3zm8 4h-2v2h2V7zm4 4h-2v2h2v-2zm-4-8h-2v2h2V3zm4 0h-2v2h2V3zm2 10h2v-2h-... |
es/components/toolbar/toolbar-button.js | cvdlab/react-planner | 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/omniscient/4.0.0/omniscient.min.js | seogi1004/cdnjs | /**
* Omniscient.js v4.0.0
* Authors: @torgeir,@mikaelbr
***************************************/
!function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?g... |
src/svg-icons/editor/border-vertical.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderVertical = (props) => (
<SvgIcon {...props}>
<path d="M3 9h2V7H3v2zm0-4h2V3H3v2zm4 16h2v-2H7v2zm0-8h2v-2H7v2zm-4 0h2v-2H3v2zm0 8h2v-2H3v2zm0-4h2v-2H3v2zM7 5h2V3H7v2zm12 12h2v-2h-2v2zm-8 4h2V3h-2v18z... |
stories/examples/Media.js | reactstrap/reactstrap | import React from 'react';
import { Media } from 'reactstrap';
const Example = (props) => {
return (
<Media>
<Media left href="#">
<Media object data-src="holder.js/64x64" alt="Generic placeholder image" />
</Media>
<Media body>
<Media heading>
Media heading
</... |
src/router.js | sonbui00/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/http';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactPage';
... |
ajax/libs/react-data-grid/1.0.28/react-data-grid.ui-plugins.min.js | joeyparrish/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactDataGrid=t(require("react"),require("react-dom")):e.ReactDataGrid=t(e.React,e.ReactDOM)}(th... |
src/parser/rogue/outlaw/modules/spells/Dispatch.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import DamageTracker from 'parser/shared/modules/AbilityTracker';
import BetweenTheEyesDamageTracker from './BetweenT... |
client/src/components/PublicationStatus/PublicationStatus.js | mikedingjan/wagtail | import PropTypes from 'prop-types';
import React from 'react';
/**
* Displays the publication status of a page in a pill.
*/
const PublicationStatus = ({ status }) => (
<span className={`o-pill c-status${status.live ? ' c-status--live' : ''}`}>
{status.status}
</span>
);
PublicationStatus.propTypes = {
st... |
docs/pages/api/paper.js | kybarg/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from './paper.md';
export default function Page() {
return <MarkdownDocs markdown={markdown} />;
}
|
node_modules/react-icons/md/line-weight.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdLineWeight = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m5 6.6h30v6.8h-30v-6.8z m0 15v-5h30v5h-30z m0 11.8v-1.8h30v1.8h-30z m0-5v-3.4h30v3.4h-30z"/></g>
</Icon>
)
export default MdLineWeight
|
administrator/js/tiny_mce/plugins/legacyoutput/editor_plugin_src.js | rrussell01/teapot | /**
* editor_plugin_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*
* This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u... |
components/About.js | parkerproject/conceptionarts | import React from 'react';
import Helmet from 'react-helmet';
export default () => (
<div>
<Helmet
title="About us"
meta={[{ name: 'description', content: 'Helmet application' },
{ property: 'og:type', content: 'article' }]}
/>
About this page
</div>
);
|
gatsby-browser.js | 01binary/zeroweb | /*--------------------------------------------------------*\
| ██████ ██ |
| ██ ██ ██ |
| ██ ██ ██ |
| ██████ ██ | binary : tech art
|
| Gatsby react rendering configuraiton.
|----------------------------------------------------------
| Copyright(C) 2021 Valeriy Novytskyy
\*------------------------... |
app/javascript/mastodon/components/permalink.js | h3zjp/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,
... |
packages/material-ui/src/Card/Card.js | kybarg/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import Paper from '../Paper';
import withStyles from '../styles/withStyles';
export const styles = {
/* Styles applied to the root element. */
root: {
overflow: 'hidden',
},
};
const Card = React.forwardRef(function Card... |
ajax/libs/jointjs/2.1.0/joint.js | extend1994/cdnjs | /*! JointJS v2.1.0 (2018-04-26) - JavaScript diagramming library
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/.
*/
(function(root, factory) {
if (typeof define === 'fu... |
src/components/theme-giraffe/create-petition/ppp-steps/media.js | MoveOnOrg/mop-frontend | import React from 'react'
import PropTypes from 'prop-types'
const PetitionMedia = ({
toggleOpen
}) => (
<div className='media ppp-step container'>
<div className='row ppp-item'>
<div className='col-12 ppp-heading'>
<h3>Add a photo or video</h3>
<div className='ppp-tip bg-ice-blue' onCl... |
app/javascript/mastodon/features/hashtag_timeline/components/column_settings.js | maa123/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Toggle from 'react-toggle';
import AsyncSelect from 'react-select/async';
import { NonceProvider } from 'react-sele... |
ajax/libs/6to5/1.14.2/browser.js | boneskull/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return... |
core/src/main/resources/org/apache/spark/ui/static/jquery-1.11.1.min.js | szhem/spark | /*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
ajax/libs/react-data-grid/1.0.66/react-data-grid.ui-plugins.min.js | iwdmb/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports.ReactDataGrid=e(require("react"),require("react-dom")):t.ReactDataGrid=e(t.React,t.ReactDOM)}(th... |
src/containers/DevTools/DevTools.js | OndrejPulicar/GridEditor | 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 /... |
src/containers/DevTools.js | felixSchl/try-neodoc | 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 />
</... |
ajax/libs/angular.js/0.10.0/angular-scenario.js | drewfreyling/cdnjs | /*!
* 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.
... |
ext/src/panel/Table.js | Detmolder-Hoftheater/TheaterTool | /**
* This class is the base class for both {@link Ext.tree.Panel TreePanel} and
* {@link Ext.grid.Panel GridPanel}.
*
* TablePanel aggregates:
*
* - a Selection Model
* - a View
* - a Store
* - Ext.grid.header.Container
*/
Ext.define('Ext.panel.Table', {
extend: 'Ext.panel.Panel',
alias: 'widget... |
src/svg-icons/device/battery-charging-90.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryCharging90 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V8h5.47L13 7v1h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9L12... |
components/topic_block.js | SpaceyRezum/react-trivia-game | import React from 'react';
import { Link } from 'react-router';
class TopicBlock extends React.Component {
render() {
// shorten the path to quizDetails & isUserLoggedIn
const { quizDetails, isUserLoggedIn } = this.props;
return (
<div className="trivia--game">
<div className="categoryTitle">{quizDetails... |
ajax/libs/angular.js/1.0.0rc12/angular-scenario.js | calebmer/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.
... |
sites/all/libraries/yui/build/yui/yui.js | pleasereboot/passion | /*
YUI 3.4.1 (build 4118)
Copyright 2011 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
/**
* The YUI module contains the components required for building the YUI seed
* file. This includes the script loading mechanism, a simple queue, and
* the core utilities for... |
src/components/category_filter.js | sergiop/500pxAppReactTest | import React, { Component } from 'react';
class CategoryFilter extends Component {
constructor(props) {
super(props);
this.state = {
term: '',
searchType: ''
};
}
render() {
return (
<div className="category-filter">
<div className="btn-group" data-toggle="buttons">
... |
src/shared/Icon/Icon.js | velesin/retroinator | import React from 'react';
import classNames from 'classnames';
import './Icon.css';
export const ICONS = {
TEAM: 'people',
USER: 'person',
RETRO: 'view_module',
MARK_AS_DONE: 'done',
DISCARD: 'close',
IS_TYPING: 'keyboard',
PLUS: 'add_circle_outline',
MINUS: 'remove_circle_outline',
ADD_NEW: 'add_t... |
src/helpers/extract_content.js | Ruffeng/VERMELL_REDUX |
import React from 'react';
import _ from 'lodash';
const mapHtmlElements = (value,index,elements) =>{
if(elements.length == 1){return _.first(elements).data;}
return _.map(elements, (value, indexElement)=>{
if(!value.localName) {return value.data}
return <value.localName key={`${index}-${ind... |
definitions/npm/radium_v0.19.x/test_radium-v0.19.x.js | hansonw/flow-typed | // @flow
import React from 'react';
import Radium from 'radium';
import type { FunctionComponent } from 'radium'
type Props1 = {
a: number,
b: string
};
const C1: FunctionComponent<Props1, void> = (props: Props1) => <div>{props.a} {props.b}</div>
type Props2 = {
a: number,
b: string,
};
class C2 ext... |
src/components/icons/SendosoIcon.js | austinknight/ui-components | import React from 'react';
const SendosoIcon = props => (
<svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 300 300">
{props.title && <title>{props.title}</title>}
<path d="M299.5,66.22,228.17.5l-6.95,35.22-95.33-.45c-46.43-.23-95.78,28-96,80.75-.22,44.86,37,64.6,64.16,79.18,1... |
ajax/libs/forerunnerdb/1.3.748/fdb-all.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... |
test/SplitButtonSpec.js | IveWong/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import SplitButton from '../src/SplitButton';
import MenuItem from '../src/MenuItem';
import Button from '../src/Button';
describe('SplitButton', function () {
let instance;
afterEach(function() {
if (instance && ReactTestUtils.i... |
ajax/libs/material-ui/4.9.4/esm/FormControl/useFormControl.js | cdnjs/cdnjs | import React from 'react';
import FormControlContext from './FormControlContext';
export default function useFormControl() {
return React.useContext(FormControlContext);
} |
app/javascript/mastodon/components/autosuggest_input.js | tootsuite/mastodon | import React from 'react';
import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container';
import AutosuggestEmoji from './autosuggest_emoji';
import AutosuggestHashtag from './autosuggest_hashtag';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from... |
src/components/main/tests/OrderButton.spec.js | samihda/pizza | import React from 'react';
import { expect } from 'chai';
import shallow from 'enzyme/shallow';
import OrderButton from '../OrderButton';
describe('<OrderButton />', () => {
const dummyForm = {
firstName: 'Marcus',
lastName: 'Müller',
street: 'Sesamstraße',
houseNumber: '41',
postCode: '03123',
... |
ajax/libs/6to5/2.2.0/browser-polyfill.js | emmy41124/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... |
actor-apps/app-web/src/app/components/activity/UserProfileContactInfo.react.js | chenbk85/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class UserProfileContactInfo extends React.Component {
static propTypes = {
phones: React.PropTypes.arr... |
packages/react-day-picker/rollup.config.js | gpbl/react-day-picker | import { exec } from 'child_process';
import peerDepsExternal from 'rollup-plugin-peer-deps-external';
import resolve from 'rollup-plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import typescript from '@rollup/plugin-typescript';
import localResolve from 'rollup-plugin-local-resolve';
import { t... |
src/components/Paragraph.js | tungv/editor | import React from 'react';
import Cursor from './Cursor';
function keepSpace(string) {
return string.split(' ').join('\u2005');
}
export default function Paragraph(props) {
const { cursor } = props;
const content = keepSpace(props.content);
return (<div style={{position: 'relative'}}>
<div style={{positio... |
src/routes.js | hanwencheng/SeekDev | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/HttpClient';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactP... |
src/views/Components/Tabs/Tabs.js | hungtruongquoc/shipper_front | import React, { Component } from 'react';
import { TabContent, TabPane, Nav, NavItem, NavLink } from 'reactstrap';
import classnames from 'classnames';
class Tabs extends Component {
constructor(props) {
super(props);
this.toggle = this.toggle.bind(this);
this.state = {
activeTab: '1'
};
}
... |
js/jquery-1.10.2.min.js | lucaswadedavis/ziph | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
ajax/libs/survey-react/0.12.23/survey.react.min.js | froala/cdnjs | /*!
* surveyjs - Survey JavaScript library v0.12.23
* Copyright (c) 2015-2017 Devsoft Baltic OÜ - http://surveyjs.org/
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define... |
third_party/prometheus_ui/base/web/ui/node_modules/eslint-plugin-react/lib/util/version.js | GoogleCloudPlatform/prometheus-engine | /**
* @fileoverview Utility functions for React and Flow version configuration
* @author Yannick Croissant
*/
'use strict';
const fs = require('fs');
const resolve = require('resolve');
const path = require('path');
const semver = require('semver');
const error = require('./error');
let warnedForMissingVersion = ... |
common/routes.js | BostonGlobe/elections-2016 | // This module contains the app's routes.
import React from 'react'
import { Route } from 'react-router'
import App from './components/App.js'
import Election from './containers/Election.js'
import Office from './containers/Office.js'
import PresidentUS from './containers/PresidentUS.js'
import PresidentMA from './con... |
ajax/libs/yui/3.17.2/event-focus/event-focus-debug.js | maruilian11/cdnjs | /*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('event-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Ev... |
tests/components/Header/Header.spec.js | dmitriys-lits/gradient-descent | import React from 'react'
import { Header } from 'components/Header/Header'
import { IndexLink, Link } from 'react-router'
import { shallow } from 'enzyme'
describe('(Component) Header', () => {
let _wrapper
beforeEach(() => {
_wrapper = shallow(<Header />)
})
it('Renders a welcome message', () => {
... |
src/components/shared/BracketArrow.js | wldcordeiro/debugger.html | /* 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/>. */
// @flow
import React from "react";
import classNames from "classnames";
import "./BracketArrow.css";
const B... |
src/client/main.js | yelken/hacker-menu | import React from 'react'
import StoryBox from './story_box.js'
React.render(
<StoryBox />,
document.getElementById('container')
)
|
src/routes.js | doron2402/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';
import CoursesPage from './components/course/CoursesPage';
import AuthorsPage from './components/autho... |
packages/react-devtools-shell/src/app/InspectableElements/NestedProps.js | mjackson/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import React from 'react';
const object = {
string: 'abc',
longString: 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKJLMN... |
node_modules/react-icons/fa/git.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const FaGit = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m13.3 33.8q0-2.2-3.7-2.2-3.5 0-3.5 2.3 0 2.2 3.8 2.2 3.4 0 3.4-2.3z m-1.3-16.9q0-1.3-0.7-2.2t-2-0.9q-2.8 0-2.8 3.2 0 3 2.8 3 2.7 0 2.7-3.1z m6-7.2v4.5q-0.8 0.3-1.8 0.5 0.... |
node_modules/radium/src/__tests__/visited-test.js | together-web-pj/together-web-pj | /* eslint-disable react/prop-types */
import Radium, {StyleRoot} from 'index';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import {expectCSS, getElement} from 'test-helpers';
describe('visited plugin tests', () => {
it('renders visited styles as css', () => {
const ChildComponent... |
client/app/components/add-location-form.js | sirbrillig/voyageur-js | import React from 'react';
import WideButton from './wide-button';
export default React.createClass( {
propTypes: {
onAddLocation: React.PropTypes.func.isRequired,
},
getInitialState() {
return {
name: '',
address: '',
};
},
onChangeName( event ) {
this.setState( { name: event.t... |
ajax/libs/angular.js/2.0.0-alpha.45/http.js | menuka94/cdnjs | /*! *****************************************************************************
Copyright (C) Microsoft. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.o... |
app/javascript/mastodon/features/lists/index.js | vahnj/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../compo... |
ajax/libs/react/0.13.0-alpha.2/react.js | Piicksarn/cdnjs | /**
* React v0.13.0-alpha.2
*/
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.React=e()}}(function... |
ajax/libs/react-highcharts/8.3.2/ReactHighstock.src.js | CyrusSUEN/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("highcharts/highstock"));
else if(typeof define === 'function' && define.amd)
define(["react", "highcharts/highstock"], factory);
else if(ty... |
pages/index.js | keithk/cfa-dance | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React, { Component } from 'react';
import Submit from '../components/Submit/Submit.js';
import List from '../components/List/List.js';
export default class ext... |
app/javascript/mastodon/components/setting_text.js | Toootim/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
export default class SettingText extends React.PureComponent {
static propTypes = {
settings: ImmutablePropTypes.map.isRequired,
settingKey: PropTypes.array.isRequired,
label: PropT... |
examples/js/selection/multi-select-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,
... |
ajax/libs/forerunnerdb/1.3.578/fdb-core.js | rlugojr/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/analytics.js/2.3.7/analytics.min.js | joeylakay/cdnjs | (function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[name])return cache[name].exports;if(modules[name])return call(name,require);throw new Error('cannot find module "'+name+'"')}function call(id,require){var m=cache[id]={exports:{}};var mod=modules[id];var n... |
src/Table.js | rlugojr/styleguide | const React = require('react');
const classNames = require('classnames');
const Table = React.createClass({
propTypes: {
bordered: React.PropTypes.bool,
className: React.PropTypes.string,
children: React.PropTypes.node
},
getDefaultProps() {
return {
border... |
site/src/components/DemoBox.js | dmsnell/elemental | import React from 'react';
import classnames from 'classnames';
import E from '../../../src/constants';
const ALIGN_TRANSFORM = {
'center': 'center',
'left': 'flex-start',
'right': 'flex-end',
};
var DemoBox = React.createClass({
propTypes: {
align: React.PropTypes.oneOf(['center', 'left', 'right']),
children... |
ajax/libs/styled-components/2.0.0-1/styled-components.js | sashberd/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
(factory((global.styled = global.styled || {}),global.React));
}(this, (function (exports,React) { 'us... |
frontend/src/components/profile/header.js | 1905410/Misago | import React from 'react';
import Avatar from 'misago/components/avatar'; // jshint ignore:line
import DropdownToggle from 'misago/components/dropdown-toggle'; // jshint ignore:line
import FollowButton from 'misago/components/profile/follow-button'; // jshint ignore:line
import ModerationNav from 'misago/components/pro... |
src/components/SectionTemplates/ValiditySection.spec.js | diMosellaAtWork/GeoWeb-FrontEnd | import React from 'react';
import ValiditySection from './ValiditySection';
import { mount } from 'enzyme';
describe('(Component) SectionTemplates/ValiditySection', () => {
it('renders a ValiditySection', () => {
const _component = mount(<ValiditySection><div /><div /></ValiditySection>);
expect(_component.t... |
src/components/Section/Section.js | askd/animakit | import React from 'react';
import PropTypes from 'prop-types';
import styles from './Section.css';
const Section = (props) =>
<section className = { styles.root }>
{ props.children }
</section>
;
Section.propTypes = {
children: PropTypes.any,
};
export default Section;
|
src/components/SidebarList/VersionSecondaryList/VersionListItem.js | SemaiCZE/perf-data-visualizer | import React from 'react';
import PropTypes from 'prop-types';
import { Row, Col, Button, OverlayTrigger, Tooltip } from 'react-bootstrap';
import {
isTestDataReady,
isTestDataLoading,
hasTestDataFailed,
isTestDataEmpty
} from '../../../utils/stateSelectors';
import { VersionIcon } from '../../../icons';
impor... |
packages/material-ui-icons/src/Healing.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Healing = props =>
<SvgIcon {...props}>
<path d="M17.73 12.02l3.98-3.98c.39-.39.39-1.02 0-1.41l-4.34-4.34c-.39-.39-1.02-.39-1.41 0l-3.98 3.98L8 2.29C7.8 2.1 7.55 2 7.29 2c-.25 0-.51.1-.7.29L2.25 6.63c-.39... |
docs/src/app/components/pages/components/RefreshIndicator/ExampleReady.js | ruifortes/material-ui | import React from 'react';
import RefreshIndicator from 'material-ui/RefreshIndicator';
const style = {
container: {
position: 'relative',
},
refresh: {
display: 'inline-block',
position: 'relative',
},
};
const RefreshIndicatorExampleSimple = () => (
<div style={style.container}>
<RefreshIn... |
docs/src/CodeExample.js | xiaoking/react-bootstrap | import React from 'react';
export default class CodeExample extends React.Component {
render() {
return (
<pre className="cm-s-solarized cm-s-light">
<code>
{this.props.codeText}
</code>
</pre>
);
}
componentDidMount() {
if (CodeMirror === undefined) {
ret... |
ajax/libs/core-js/2.0.0/core.js | kennynaoh/cdnjs | /**
* core-js 2.0.0
* 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 require f... |
node_modules/_react-router@3.2.0@react-router/es/RouterContext.js | ligangwolai/blog | 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... |
packages/material-ui-icons/src/HttpRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M24 24H0V0h24v24z" opacity=".87" /><path d="M4.5 11h-2V9.75c0-.41-.34-.75-.75-.75S1 9.34 1 9.75v4.5c0 .41.34.75.75.75s.75-.34.75-.75V12.5h2v1.75c0 .41.34.75.75.75s.75-.34.7... |
src/routes/SearchPage.js | ndlib/beehive | import React from 'react'
import PropTypes from 'prop-types'
import Search from '../components/Search//Search'
import FacetQueryParms from '../modules/FacetQueryParams'
import HoneycombURL from '../modules/HoneycombURL'
const SearchPage = ({ match, children }) => {
const queryParams = new URLSearchParams(window.loca... |
ajax/libs/ui-router-extras/0.0.11-pre1/ct-ui-router-extras.js | joeyparrish/cdnjs | /**
* UI-Router Extras: Sticky states, Future States, Deep State Redirect, Transition promise
* @version v0.0.11-pre1-BROKEN!!!
* 0.0.11-pre1 is broken, please use 0.0.11-pre2
* @link http://christopherthielen.github.io/ui-router-extras/
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
(function... |
ajax/libs/rxjs/2.3.16/rx.lite.js | rigdern/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... |
test/TabGroup.js | redux-autoform/redux-autoform-material-ui | import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import TabGroup from '../src/components/group/TabGroup';
describe("<TabGroup/> Component", () => {
it("TabGroup instance is not null", () => {
const props = {
layout: {
groups: []
... |
ajax/libs/jquery-footable/2.0.1.5/js/footable.js | froala/cdnjs | /*!
* FooTable - Awesome Responsive Tables
* Version : 2.0.1.5
* http://fooplugins.com/plugins/footable-jquery/
*
* Requires jQuery - http://jquery.com/
*
* Copyright 2014 Steven Usher & Brad Vincent
* Released under the MIT license
* You are free to use FooTable in commercial projects as long as this copyrig... |
fields/types/markdown/MarkdownField.js | creynders/keystone | import Field from '../Field';
import React from 'react';
import { FormInput } from 'elemental';
/**
* TODO:
* - Remove dependency on jQuery
*/
// Scope jQuery and the bootstrap-markdown editor so it will mount
var $ = require('jquery');
require('./lib/bootstrap-markdown');
// Append/remove ### surround the select... |
app/main.js | palmerev/can-i-eat-this | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('app'));
|
06/src/views/Home.js | arcthur/react-book-examples | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import ArticleTable from '../components/Home/Table';
import ArticleModal from '../components/Home/Modal';
import { tableActions, modalActions } from './HomeRedux';
import './Home.css';
@connect(... |
ajax/libs/react-data-grid/1.0.22/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... |
frontend/src/DiscoverMovie/Posters/DiscoverMoviePosterInfo.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import HeartRating from 'Components/HeartRating';
import { getMovieStatusDetails } from 'Movie/MovieStatus';
import formatRuntime from 'Utilities/Date/formatRuntime';
import getRelativeDate from 'Utilities/Date/getRelativeDate';
import styles from './Discov... |
webpack/move_to_foreman/components/common/table/formatters/ellipsisCellFormatter.js | cfouant/katello | import React from 'react';
import EllipsisWithTooltip from 'react-ellipsis-with-tooltip';
import cellFormatter from './cellFormatter';
export default value => cellFormatter(<EllipsisWithTooltip>{value}</EllipsisWithTooltip>);
|
src/CarouselItem.js | brentertz/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import TransitionEvents from './utils/TransitionEvents';
const CarouselItem = React.createClass({
propTypes: {
direction: React.PropTypes.oneOf(['prev', 'next']),
onAnimateOutEnd: React.PropTypes.func,
active: React.PropTypes.bool,
anima... |
docs/src/components/usage-example.js | balloob/nuclear-js | import React from 'react'
import { Reactor, Store, toImmutable } from 'nuclear-js'
import Code from './code'
const storeCode = `import { Reactor, Store, toImmutable } from 'nuclear-js'
import React from 'react'
const reactor = new Reactor({ debug: true });
reactor.registerStores({
typeFilter: Store({
getInitia... |
src/components/CircularityResult.js | KE-NIA/CircularitySolver | import React from 'react';
import { connect } from 'react-redux';
import {Grid, Row, Col, Thumbnail, Button } from 'react-bootstrap';
const mapStateToProps = (state) => {
return{
};
};
const mapDispatchToProps = (dispatch) => {
return{
};
};
@connect(mapStateToProps, mapDispatchToProps)
export default ... |
src/TabPane.js | apisandipas/react-bootstrap | import React from 'react';
import deprecationWarning from './utils/deprecationWarning';
import Tab from './Tab';
const TabPane = React.createClass({
componentWillMount() {
deprecationWarning(
'TabPane', 'Tab',
'https://github.com/react-bootstrap/react-bootstrap/pull/1091'
);
},
render() {
... |
src/Parser/Shaman/Restoration/Modules/Items/T19_2Set.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import Analyzer from 'Parser/Core/Analyzer';
import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing';
import ItemHealingDone from 'Main/ItemHealingDo... |
templates/simply-wonder-theme/js/vendor/jquery.js | KenEucker/moltensteelman-website | /*!
* jQuery JavaScript Library v1.10.1
* 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-05-30T21:49Z
*/
(function( window, undefined ) {
// ... |
components/illustrations/quicksort/quicksort.js | skidding/illustrated-algorithms | import PropTypes from 'prop-types';
import React from 'react';
import PureLayoutComponent from '../../../utils/pure-layout-component';
import EmojiBlock from '../shared/emoji-block';
import Label from '../shared/label';
import Intro from '../quicksort/intro';
import Outro from '../quicksort/outro';
const BASE_ROTATION... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.