path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/yui/3.11.0pr1/event-custom-base/event-custom-base-debug.js | wout/cdnjs | YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @mo... |
app/components/CodeExample/index.js | cerebral/cerebral-reference-app | import '!style!css!./../../../node_modules/codemirror/lib/codemirror.css';
import 'codemirror/mode/javascript/javascript.js';
import 'codemirror/mode/css/css.js';
import 'codemirror/mode/htmlmixed/htmlmixed.js';
import '!style!css!common/CodeEditorStyle.css';
import React from 'react';
import CodeMirror from 'codemirr... |
src/svg-icons/maps/local-offer.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalOffer = (props) => (
<SvgIcon {...props}>
<path d="M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86... |
ajax/libs/tinymce/4.1.6/plugins/legacyoutput/plugin.js | vuonghuuphuc/cdnjs | /**
* plugin.js
*
* Copyright, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*
* This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u elements, align
* attributes and so... |
app/static/src/diagnostic/Components/TestInsertionForm.js | SnowBeaver/Vision | import {Component} from 'react';
import React from 'react';
import NaviTestForm from '../NaviTestForm';
export default class TestInsertionForm extends Component {
render() {
return (
<div className="row1">
<NaviTestForm />
</div>
)
}
}
|
ajax/libs/F2/1.3.1/f2.min.js | icco/cdnjs | /*! F2 - v1.3.1 - 10-15-2013 - See below for copyright and license */
(function(exports){if(!exports.F2||exports.F2_TESTING_MODE){/*!
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 obta... |
6.4.3/examples/wizard/dist/bundle.js | erikras/redux-form-docs | !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}([function(e,t,n){n(280),e.exports=n(279)},function(e,t,n){var r=n(4),o=n(37),i=n(20),a=n(21),u=n(38),s="prototype",... |
ajax/libs/jquery/1.11.0-rc1/jquery.min.js | ekeneijeoma/cdnjs | /*! jQuery v1.11.0-rc1 | (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 ... |
src/main/react/src/containers/AppContainer.js | mbrossard/cryptonit-cloud | import React from 'react'
import PropTypes from 'prop-types'
import { Router } from 'react-router'
import { Provider } from 'react-redux'
class AppContainer extends React.Component {
static propTypes = {
history: PropTypes.object.isRequired,
routes: PropTypes.object.isRequired,
routerKey: PropTypes.numbe... |
public/assets/jquery-c56d75184551cb4e45195f59ee1382da.js | helal-ismail/medical | /*!
* jQuery JavaScript Library v1.12.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-02-22T19:07Z
*/
(function( global, factory ) {
if ( typeof module ... |
wp-includes/js/jquery/jquery.js | LittleMonst3r/calthetachi | /*! 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... |
src/repository/screens/pull-list.screen.js | housseindjirdeh/git-point | import React, { Component } from 'react';
import { connect } from 'react-redux';
import {
FlatList,
View,
StyleSheet,
Dimensions,
Text,
Platform,
} from 'react-native';
import { ButtonGroup } from 'react-native-elements';
import {
ViewContainer,
IssueListItem,
LoadingContainer,
SearchBar,
} from 'co... |
lib/views2/components/WorkList.js | guoliim/curritae | import React from 'react'
import PropTypes from 'prop-types'
import Label from './Label'
import Work from './Work'
const WorkList = ({ works = [] }) => {
return (
<div className="works">
<Label title={'个人履历'} url={'./img/ic_work_24px.svg'} alt={'个人履历'}/>
{works.map((work) => (
... |
static/node_modules/recompose/build/Recompose.js | unmeshpro/easyPost | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["Recompose"] = facto... |
src/components/TeamListItem.js | nathejk/status-app | import React from 'react'
import {ListItem} from 'material-ui/List'
import Divider from 'material-ui/Divider'
import Avatar from 'material-ui/Avatar'
import SocialPersonOutline from 'material-ui/svg-icons/social/person-outline'
const TeamListItem = props => {
let avatar
if (props.pictureUrl) {
avatar = <Avatar... |
src/svg-icons/av/radio.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvRadio = (props) => (
<SvgIcon {...props}>
<path d="M3.24 6.15C2.51 6.43 2 7.17 2 8v12c0 1.1.89 2 2 2h16c1.11 0 2-.9 2-2V8c0-1.11-.89-2-2-2H8.3l8.26-3.34L15.88 1 3.24 6.15zM7 20c-1.66 0-3-1.34-3-3s1.34-3 3-3 3... |
client/modules/messaging/components/.stories/overview.js | StorytellerCZ/Socialize-starter | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { setComposerStub } from 'react-komposer';
import Overview from '../overview.jsx';
storiesOf('messaging.Overview', module)
.add('default view', () => {
return (
<Overview />
);
})
|
actor-apps/app-web/src/app/components/Install.react.js | taimur97/actor-platform | import React from 'react';
export default class Install extends React.Component {
render() {
return (
<section className="mobile-placeholder col-xs row center-xs middle-xs">
<div>
<img alt="Actor messenger"
className="logo"
src="assets/img/logo.png"
... |
src/index.js | kst404/kanasanaban | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
ajax/libs/react-swipe/1.0.0/swipe.min.js | joeyparrish/cdnjs | var React=require("react"),Swipe=require("./vendor/swipe"),styles={container:{overflow:"hidden",visibility:"hidden",position:"relative"},wrapper:{overflow:"hidden",position:"relative"},child:{"float":"left",width:"100%",position:"relative"}};module.exports=React.createClass({displayName:"Swipe",propTypes:{startSlide:Re... |
ajax/libs/react-native-web/0.0.0-51f9ab73e/exports/ProgressBar/index.js | cdnjs/cdnjs | function _extends() { _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; }; return _extends.apply(this, arguments); }
f... |
src/index.js | whinc/xConsole | import React from 'react'
import ReactDOM from 'react-dom'
import xConsole from './core/XConsole'
import 'font-awesome/css/font-awesome.min.css'
import './index.css'
if (!window.xConsole) {
window.xConsole = xConsole
}
if (!window.React) {
window.React = React
}
if (!window.ReactDOM) {
window.ReactDOM = ReactD... |
files/yasqe/2.3.1/yasqe.bundled.min.js | 2947721120/garrulous-octo-rutabaga | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)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)... |
ajax/libs/6to5/3.3.2/browser-polyfill.js | janpaepke/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... |
webpack/components/Content/Details/ContentDetailRepositoryTableSchema.js | Katello/katello | import React from 'react';
import { urlBuilder } from 'foremanReact/common/urlHelpers';
import { translate as __ } from 'foremanReact/common/I18n';
import {
headerFormatter,
cellFormatter,
} from '../../../components/pf3Table';
const TableSchema = [
{
property: 'name',
header: {
label: __('Name'),
... |
ajax/libs/yui/3.10.0/datatable-core/datatable-core-debug.js | tresni/cdnjs | YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@since 3.5.0
**/
var INVALID = Y.Attribute.INVALID_VALUE,
Lang = Y.Lang,
isFunction = Lang.isFunction,
isObject = Lang.isO... |
src/js/components/icons/base/DocumentDownload.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
ajax/libs/material-ui/5.0.0-alpha.32/legacy/Input/Input.js | cdnjs/cdnjs | import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import _extends from "@babel/runtime/helpers/esm/extends";
import * as React from 'react';
import PropTypes from 'prop-types';
import { unstable_composeClas... |
ajax/libs/yui/3.3.0/simpleyui/simpleyui.js | steakknife/cdnjs |
/**
* The YUI module contains the components required for building the YUI seed
* file. This includes the script loading mechanism, a simple queue, and
* the core utilities for the library.
* @module yui
* @submodule yui-base
*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
* The YUI global name... |
notebook/experience/web/webpack4-upgrade-log/simple-webpack-config/src/order/order.js | JMwill/wiki | import _ from 'lodash'
import React from 'react'
import io from '../io'
import alert from '../components/alert'
import lock from '../components/lock'
import modal from '../components/modal'
import OrderDetail from '../components/order-detail'
import ShippingEditor from '../components/shipping-editor'
class Order ext... |
actor-apps/app-web/src/app/components/activity/GroupProfile.react.js | treejames/actor-platform | import React from 'react';
import DialogActionCreators from 'actions/DialogActionCreators';
import LoginStore from 'stores/LoginStore';
import PeerStore from 'stores/PeerStore';
import DialogStore from 'stores/DialogStore';
import GroupStore from 'stores/GroupStore';
import InviteUserActions from 'actions/InviteUserA... |
src/entypo/Message.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--Message';
let EntypoMessage = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M18,6v7c0,1.1-0.9,2-2,2h-4v3l-4-3H4c-1.101,0-2-0.9-2-2V6c0-1.1,0.899-2,2-2h12C17.1,4,18,4.9,18,6z"/... |
frontend/src/System/Updates/UpdateChanges.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import InlineMarkdown from 'Components/Markdown/InlineMarkdown';
import styles from './UpdateChanges.css';
class UpdateChanges extends Component {
//
// Render
render() {
const {
title,
changes
} = this.props;
... |
react-dev/components/social_media_list.js | InsidiousMind/code.LiquidThink | import React from 'react';
import IconButton from 'material-ui/IconButton';
import { green900 } from 'material-ui/styles/colors';
import _ from 'lodash';
const iconStyles = {
icon: {
marginRight: 10,
iconHoverColor: green900,
},
hoveredStyle: {
color: green900,
},
linkStyle: {
padding: 0,
... |
src/components/body/journal/newLocation/NewLocation.js | TechyFatih/Nuzlog | import React from 'react';
import { FormGroup, ControlLabel, InputGroup, FormControl, Button } from 'react-bootstrap';
import { connect } from 'react-redux';
import './NewLocation.css';
import { newLocation } from 'actions';
class NewLocation extends React.Component {
constructor() {
super();
this.state = ... |
files/maxmertkit/1.0.2/js/maxmertkit.js | Heark/jsdelivr | (function() {
"use strict";
var MaxmertkitEvent, MaxmertkitHelpers, MaxmertkitReactor, _eventCallbacks, _eventHandlers, _id, _reactor, _reactorEvents;
_eventHandlers = [];
_eventCallbacks = [];
_reactorEvents = [];
_id = 0;
MaxmertkitEvent = (function() {
function MaxmertkitEvent(name) {
th... |
src/svg-icons/editor/border-outer.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderOuter = (props) => (
<SvgIcon {...props}>
<path d="M13 7h-2v2h2V7zm0 4h-2v2h2v-2zm4 0h-2v2h2v-2zM3 3v18h18V3H3zm16 16H5V5h14v14zm-6-4h-2v2h2v-2zm-4-4H7v2h2v-2z"/>
</SvgIcon>
);
EditorBorderOuter =... |
packages/material-ui-icons/src/PhotoSizeSelectActualTwoTone.js | allanalexandre/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="M3.08 5L3 5.08V19h17.92c.03-.02.06-.06.08-.08V5.08L20.92 5H3.08zM5 17l3.5-4.5 2.5 3.01L14.5 11l4.5 6H5z" opacity=".3" /><path d="M21 3H3C2 3 ... |
src/components/cv/rating.js | ateixeira/andreteixeira.info | import React from 'react';
import FontAwesome from 'react-fontawesome';
module.exports = React.createClass({
// RENDER
render: function() {
var rating_bullets = [];
[0,1,2,3,4].forEach((i) => {
var is_active = i < this.props.level;
if (is_active) {
... |
node_modules/enzyme/src/ShallowWrapper.js | NathanBWaters/jb_club | import React from 'react';
import ComplexSelector from './ComplexSelector';
import flatten from 'lodash/flatten';
import unique from 'lodash/uniq';
import compact from 'lodash/compact';
import cheerio from 'cheerio';
import {
nodeEqual,
containsChildrenSubArray,
propFromEvent,
withSetStateAllowed,
propsOfNode... |
packages/xo-web/src/common/xo-line-chart/index.js | vatesfr/xo-web | import ChartistGraph from 'react-chartist'
import ChartistLegend from 'chartist-plugin-legend'
import ChartistTooltip from 'chartist-plugin-tooltip'
import humanFormat from 'human-format'
import PropTypes from 'prop-types'
import React from 'react'
import { injectIntl } from 'react-intl'
import { messages } from 'intl'... |
packages/material-ui-icons/src/KeyboardVoiceTwoTone.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="M12 13.3c.66 0 1.19-.54 1.19-1.2l.01-6.2c0-.66-.54-1.2-1.2-1.2s-1.2.54-1.2 1.2v6.2c0 .66.54 1.2 1.2 1.2z" opacity=".3" /><path d="M12 15c1.66... |
__tests__/List/index.js | abouthiroppy/scuba | import React from 'react';
import { shallow } from 'enzyme';
import { List, Item } from '../../src';
describe('List component', () => {
it('should render self and subcomponents', () => {
const props = {
style: {
background: '#fff'
},
className: 'test-class'
};
const wrapper = s... |
src/pages/homepage.js | weilidai2001/react-radium-playground | import React from 'react';
import Navbar from '../components/common/navbar';
class Homepage extends React.Component {
constructor(props, context) {
super(props, context);
}
render() {
return (
<div className="homepage">
<nav>
<Navbar/>
</nav>
<div className="home... |
src/TextField/TextField.spec.js | kasra-co/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import TextField from './TextField';
import TextFieldLabel from './TextFieldLabel';
import getMuiTheme from '../styles/getMuiTheme';
describe('<TextField />', () => {
const muiTheme = getMuiTheme();
const... |
ajax/libs/ag-grid/7.0.0/lib/utils.js | BenjaminVanRyseghem/cdnjs | /**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v7.0.0
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var FUNCTION_STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;
var FUNCTION_ARGUMENT_NAMES = /([^\s,]+)/g;
// util class, o... |
files/rtc/3.2.2/rtc.min.js | Third9/jsdelivr | !function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.RTC=n()}}(function(){return function n(e,t,r){function ... |
ajax/libs/video.js/4.10.2/video.dev.js | khasinski/cdnjs | /**
* @fileoverview Main function src.
*/
// HTML5 Shiv. Must be in <head> to support older browsers.
document.createElement('video');
document.createElement('audio');
document.createElement('track');
/**
* Doubles as the main function for users to create a player instance and also
* the main library object.
*
... |
src/frontend/components/NoMatchRoutePage/NoMatchRoutePage.js | BaranovNikita/Page-About-Me | import React from 'react';
import { browserHistory } from 'react-router';
import { RaisedButton } from 'material-ui';
import * as styles from './style.pcss';
class NoMatchRoutePage extends React.Component {
static propTypes = {
};
render() {
return (
<div className={`${styles.fof} ${styles.clear}`}>
<h1>... |
docs/app/Examples/collections/Table/Variations/TableExampleCelled.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Table } from 'semantic-ui-react'
const TableExampleCelled = () => {
return (
<Table celled>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>Notes</Tabl... |
ajax/libs/yui/3.10.0/datatable-body/datatable-body-coverage.js | KOLANICH/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/datatable-body/datatable-body.js']) {
__coverage__['build/datatable-body/datatable-body.js'] = {"path":"build/datatable-body/datatable-body.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13"... |
node_modules/react-bootstrap/es/SplitButton.js | geng890518/editor-ui | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from... |
src/Fade.js | pandoraui/react-bootstrap | import React from 'react';
import Transition from 'react-overlays/lib/Transition';
import CustomPropTypes from './utils/CustomPropTypes';
import deprecationWarning from './utils/deprecationWarning';
class Fade extends React.Component {
render() {
let timeout = this.props.timeout || this.props.duration;
retu... |
blueocean-material-icons/src/js/components/svg-icons/av/radio.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvRadio = (props) => (
<SvgIcon {...props}>
<path d="M3.24 6.15C2.51 6.43 2 7.17 2 8v12c0 1.1.89 2 2 2h16c1.11 0 2-.9 2-2V8c0-1.11-.89-2-2-2H8.3l8.26-3.34L15.88 1 3.24 6.15zM7 20c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm13-8h-2v-2h... |
tools/start.js | ziedAb/PVMourakiboun | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import browserSync from 'browser-sync';
import webpack ... |
src/svg-icons/communication/call-merge.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallMerge = (props) => (
<SvgIcon {...props}>
<path d="M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"/>
</SvgIcon>
);
CommunicationCallMerge... |
packages/material-ui-icons/src/CopyrightRounded.js | callemall/material-ui | import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><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.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z" /><path d="M14 8h-4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1... |
react-native/Albums/__tests__/index.android.js | vanyaland/react-demos | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
ajax/libs/inferno-test-utils/7.1.5/inferno-test-utils.js | cdnjs/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('inferno')) :
typeof define === 'function' && define.amd ? define(['exports', 'inferno'], factory) :
(global = global || self, factory((global.Inferno = global.Inferno || {}, global.Inferno.... |
src/auth/withAuth/withAuth.js | velesin/retroinator | import React from 'react';
import firebase from 'firebase';
import { Spinner } from '../../shared';
export const withAuth = (WrappedComponent) => {
return class extends React.Component {
state = { signedIn: false };
componentDidMount() {
this.unsubscribeFromAuthStateChanged = firebase.auth().onAuthSt... |
src/svg-icons/maps/local-bar.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalBar = (props) => (
<SvgIcon {...props}>
<path d="M21 5V3H3v2l8 9v5H6v2h12v-2h-5v-5l8-9zM7.43 7L5.66 5h12.69l-1.78 2H7.43z"/>
</SvgIcon>
);
MapsLocalBar = pure(MapsLocalBar);
MapsLocalBar.displayName ... |
ajax/libs/parse/2.11.0/parse.js | cdnjs/cdnjs | /**
* Parse JavaScript SDK v2.11.0
*
* The source tree of this library can be found at
* https://github.com/ParsePlatform/Parse-SDK-JS
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof wi... |
pkg/tuned/dialog.js | Scribery/cockpit | /*
* This file is part of Cockpit.
*
* Copyright (C) 2015 Red Hat, Inc.
*
* Cockpit is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any l... |
js/jquery.min.js | shihao316558512/bootstrap | /*! jQuery v1.12.4 | (c) jQuery Foundation | 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 window?window:this,fu... |
src/components/settings/services/ServiceError.js | meetfranz/franz | import React, { Component } from 'react';
import { observer } from 'mobx-react';
import { Link } from 'react-router';
import { defineMessages, intlShape } from 'react-intl';
import Infobox from '../../ui/Infobox';
import Button from '../../ui/Button';
const messages = defineMessages({
headline: {
id: 'settings.... |
src/js/posts/components/comment-well.js | akornatskyy/sample-blog-react | import React from 'react';
import PropTypes from 'prop-types';
import {Card, FormGroup, FormControl, Button, Alert} from 'react-bootstrap';
import {Link} from 'react-router-dom';
import Errors from '../../shared/components/errors';
class CommentWell extends React.Component {
constructor(props) {
super(pr... |
packages/playground/stories/FloatingActionBtn.story.js | appearhere/bloom | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { FloatingActionBtn, Icon } from '@appearhere/bloom';
storiesOf('FloatingActionBtn', module)
.add('Default', () => (
<FloatingActionBtn onClick={action('clicked...')}>
<Icon na... |
app/modules/searchview/searchview.container.js | benmccormick/trollbox | /* @flow */
import { bindActionCreators } from 'redux';
import React from 'react';
import ReactDOM from 'react-dom';
import { connect } from 'react-redux';
import { getSearchFilter, getSearchResults } from '../../data/search';
import { updateSearchFilter } from '../../actions/search';
import { CardView } from './card.c... |
src/svg-icons/action/thumb-down.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionThumbDown = (props) => (
<SvgIcon {...props}>
<path d="M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.5... |
client/src/server/server.js | Pitzcarraldo/spring-react-redux-universal-example | import express from 'express';
import webpack from 'webpack';
import webpackConfig from '../../webpack.config';
import webpackDevMiddleware from 'webpack-dev-middleware';
import webpackHotMiddleware from 'webpack-hot-middleware';
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import { Routi... |
ajax/libs/cyclejs-core/0.16.0/cycle.js | WebReflection/cdnjs | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Cycle = f()}})... |
src/components/common/svg-icons/maps/traffic.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsTraffic = (props) => (
<SvgIcon {...props}>
<path d="M20 10h-3V8.86c1.72-.45 3-2 3-3.86h-3V4c0-.55-.45-1-1-1H8c-.55 0-1 .45-1 1v1H4c0 1.86 1.28 3.41 3 3.86V10H4c0 1.86 1.28 3.41 3 3.86V15H4c0 1.86 1.28 3.41... |
ajax/libs/react/16.4.0-alpha.7926752/umd/react.development.js | wout/cdnjs | /** @license React v16.4.0-alpha.7926752
* react.development.js
*
* Copyright (c) 2013-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.
*/
'use strict';
(function (global, factory) {
typeof exports === 'object... |
packages/material-ui-icons/src/BatteryCharging50.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let BatteryCharging50 = props =>
<SvgIcon {...props}>
<path d="M14.47 13.5L11 20v-5.5H9l.53-1H7v7.17C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V13.5h-2.53z" /><path fillOpacity=".3" d="M15.67 4H14V2h-... |
client/screens/Users/UserForgotPwdReset/index.js | francixcoag/trace_packages |
import React, { PropTypes } from 'react';
import UsersNavBar from '../components/UsersNavBar';
import FormContainer from './FormContainer.js';
const Page = (props) => (
<div>
<UsersNavBar label="Reset Password" screen="user/forgotpwdreset" />
<FormContainer resetToken={props.params.token} />
</div>
);
Pa... |
src/Tab.js | blue68/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import TransitionEvents from './utils/TransitionEvents';
const Tab = React.createClass({
propTypes: {
/**
* @private
*/
active: React.PropTypes.bool,
animation: React.PropTypes.bool,
/**
* It is used by 'Tab... |
__tests__/components/Distribution-test.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React from 'react';
import renderer from 'react-test-renderer';
import Distribution from '../../src/js/components/Distribution';
// needed because this:
// https://github.com/facebook/jest/issues/1353
jest.mock('react-dom');
describe('Distr... |
framework/web/js/source/jquery.min.js | Eisenheim94/blog | /*! 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... |
src/index.js | ilyabo/react-redux-app-starter-kit | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from './containers/App'
import configureStore from './store/store'
import initialState from './store/initialState'
const store = configureStore(initialState)
let div = document.createElement('div')
document... |
ajax/libs/yui/3.11.0/datatable-core/datatable-core-debug.js | emmansun/cdnjs | YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@since 3.5.0
**/
var INVALID = Y.Attribute.INVALID_VALUE,
Lang = Y.Lang,
isFunction = Lang.isFunction,
isObject = Lang.isO... |
example/src/pages/IconSnackbarContent/index.js | dlennox24/ricro-app-template | import Button from '@material-ui/core/Button';
import Divider from '@material-ui/core/Divider';
import Grid from '@material-ui/core/Grid';
import Portal from '@material-ui/core/Portal';
import Snackbar from '@material-ui/core/Snackbar';
import withStyles from '@material-ui/core/styles/withStyles';
import { IconSnackbar... |
src/components/RegisterPage/RegisterPage.js | chengjianhua/book-share | import React, { Component } from 'react';
import { withRouter } from 'react-router';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import TextField from 'material-ui/TextField';
import Dialog from 'material-ui/Dialog';
import RaisedButton from 'material-ui/RaisedButton';
import s from './RegisterPa... |
views/blocks/card/card.js | AlSoEdit/team5 | import React from 'react';
import './card.css';
import b from 'b_';
import LikesContainer from './../Likes/LikesContainer';
import QuestSender from '../Quest/QuestSender';
import '../../styles/card/__tags/card__tags.css';
const card = b.lock('quest-card');
export default class Card extends React.Component {
rende... |
src/containers/pages/decks/deck/right-container/sections/comments/comment/header.js | vFujin/HearthLounge | import React from 'react';
import MoreOptions from "../../../../../../../../components/more-options/more-options";
import {wrapDate} from "../../../../../../../../utils/wrap-date";
export const CommentHeader = ({authenticated, activeUserId, comment, handleCommentOptionsClick}) =>{
const {created, patch, commentId, a... |
node_modules/fbjs-scripts/node_modules/core-js/client/core.js | Ten-Wang/hackfoldr-android | /**
* core-js 1.2.7
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2016 Denis Pushkarev
*/
!function(__e, __g, undefined){
'use strict';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require f... |
ajax/libs/jointjs/0.6.4/joint.js | aashish24/cdnjs | /*! JointJS v0.6.4 - JavaScript diagramming library 2013-10-15
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/.
*/
/*!
* jQuery JavaScript Library v1.9.1
* http://jquery... |
app/javascript/mastodon/features/reblogs/index.js | TheInventrix/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { fetchReblogs ... |
webpack/components/MultiSelect/index.js | tstrachota/katello | import React from 'react';
import PropTypes from 'prop-types';
import { FormGroup, ControlLabel } from 'react-bootstrap';
import BootstrapSelect from '../../move_to_pf/react-bootstrap-select';
function MultiSelect(props) {
const { options, onChange, ...otherProps } = props;
const optionComponents = options.map(o... |
demo/components/Homepage.js | LoicMahieu/react-styled-flexboxgrid |
import React from 'react'
import styled, { ThemeProvider } from 'styled-components'
import { Grid, BASE_CONF } from '../../src/index'
import Hero from './Hero'
import Demo from './Demo'
import ThemeConfigurator from './ThemeConfigurator'
const WrapperGrid = styled(Grid)`
max-width: 1200px;
margin: 0 auto;
`
cla... |
src/work/components/ProjectCards.js | elailai94/elailai94.github.io | import React, { Component } from 'react';
import { Card } from 'semantic-ui-react';
import PropTypes from 'prop-types';
import ProjectCardItem from './ProjectCardItem';
class ProjectCards extends Component {
render() {
const { projects } = this.props;
return (
<Card.Group doubling stackable itemsPerR... |
docs/components/Docs/Nav/dropdown.js | enjoylife/storybook | import PropTypes from 'prop-types';
import React from 'react';
import { browserHistory } from 'react-router';
import './style.css';
class Nav extends React.Component {
handleHeadingChange(event) {
const { sections } = this.props;
const selectedSectionId = event.target.value;
const section = sections.find... |
Javascript/ReactJS/MyMoney/lib/components/EnumeratedList.js | Page-Carbajal/Software-Engineering | import React from 'react';
class EnumeratedList extends React.Component
{
//constructor(props)
//{
// super(props);
// this.state = {source: props.source};
//}
//
//shouldComponentMount(nextProps, nextState)
//{
// // If there are no items do not render
// if(this.st... |
packages/spec/integration/react/text.js | xing/hops | import React from 'react';
export default function Text({ text }) {
return <output>{text}</output>;
}
|
src/routes/Girlip/components/TripHeader.js | markkong318/Girlip | import React from 'react';
import { connect } from 'react-redux'
class TripHeader extends React.Component {
render() {
const {title, description, cover_image, month, day, day_of_week} = this.props;
return (
<div className="tabiGaiyo" style={{width: '100%', height: '315px', borderBotto... |
src/ButtonInput.js | pivotal-cf/react-bootstrap | import React from 'react';
import Button from './Button';
import FormGroup from './FormGroup';
import InputBase from './InputBase';
import childrenValueValidation from './utils/childrenValueInputValidation';
class ButtonInput extends InputBase {
renderFormGroup(children) {
let {bsStyle, value, ...other} = this.p... |
templates/src/routes.js | oliver-jk-redding/slush-pages-rkw | import React from 'react'
import {Router, Route, browserHistory} from 'react-router'
import Home from './components/Home'
export default (
<Router history={browserHistory}>
<Route path='/' component={Home} />
</Router>
) |
admin/client/views/list.js | tony2cssc/keystone | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import classnames from 'classnames';
import CurrentListStore from '../stores/CurrentListStore';
import ConfirmationDialog from '../components/Forms/ConfirmationDialog';
import CreateForm from '../components/Forms/CreateForm';
import FlashMessag... |
node_modules/react-native-mock/src/components/TextInput.js | niukui/gitpro | import React from 'react';
import TextInputState from '../api/TextInputState';
import TimerMixin from 'react-timer-mixin';
import NativeMethodsMixin from '../mixins/NativeMethodsMixin';
import View from './View';
import Text from './Text';
const { PropTypes } = React;
const TextInput = React.createClass({
propTypes... |
src/components/common/radio/Radio.spec.js | TulevaEE/onboarding-client | import React from 'react';
import { shallow } from 'enzyme';
import Radio from './Radio';
describe('Radio', () => {
let component;
beforeEach(() => {
component = shallow(<Radio name="test-radio" id="an-id" />);
});
it('renders a hidden input that keeps and changes state', () => {
const hiddenInput =... |
client/node_modules/react-router/es/Switch.js | bourdakos1/Visual-Recognition-Tool | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.