path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/yui/3.2.0/event-custom/event-custom.js | drewfreyling/cdnjs | YUI.add('event-custom-base', function(Y) {
/**
* 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.
* @module e... |
src/main/resources/static/bower_components/jqwidgets/demos/react/app/scrollbar/defaultfunctionality/app.js | dhawal9035/WebPLP | import React from 'react';
import ReactDOM from 'react-dom';
import JqxScrollBar from '../../../jqwidgets-react/react_jqxscrollbar.js';
class App extends React.Component {
componentDidMount() {
this.refs.myScrollBar.on('valueChanged', function (event) {
document.getElementById('HorizontalDiv')... |
app/background_context.js | minifast/broadcast | import React from 'react';
import Cursor from './cursor';
import Atom from './atom';
const BackgroundContext = React.createClass({
getDefaultProps: function() {
return {
source: `context.${Date.now()}`
};
},
getInitialState: function() {
return chrome.extension.getBackgroundPage().background.g... |
dva/wind-tunnel/src/components/Game/GameOver.js | imuntil/React | import React from 'react'
import styles from './GameOver.less'
import PropTypes from 'prop-types'
function GameOver({onGameOver}) {
return (
<div className={styles.layer}>
<div className={styles.box}>
<img src={require('../../assets/game-over-bg.png')} alt=""/>
<div className={styles.word}>... |
src/modules/pages/SearchBox.js | lenxeon/react | require('../../css/search-box.less')
import React from 'react';
var classnames = require('classnames');
const alt = '智能搜索...';
class SearchBox extends React.Component {
constructor(props) {
super(props);
this.state = {
focus: false,
value: null
};
// console.log(this.state);
}
foc... |
packages/wix-style-react/src/CalendarPanelFooter/docs/index.story.js | wix/wix-style-react | import React from 'react';
import {
header,
tabs,
tab,
description,
importExample,
title,
divider,
example,
playground,
api,
testkit,
} from 'wix-storybook-utils/Sections';
import * as examples from './examples';
import { storySettings } from './storySettings';
import CalendarPanelFooter, { def... |
packages/react-instantsearch-dom/src/core/createInstantSearchServer.js | algolia/react-instantsearch | import React from 'react';
import { renderToString } from 'react-dom/server';
import algoliasearchHelper, { SearchParameters } from 'algoliasearch-helper';
import { version, HIGHLIGHT_TAGS } from 'react-instantsearch-core';
const hasMultipleIndices = (context) => context && context.multiIndexContext;
const getIndexId... |
stories/form/form.js | lanyuechen/dh-component | import React from 'react';
import { Input, Form, Button, Select, Row, Col } from '../../src';
const formItemLayout = {
labelCol: {
xs: { span: 24 },
sm: { span: 6 },
},
wrapperCol: {
xs: { span: 24 },
sm: { span: 14 },
},
};
class FormDemo extends React.Component {
constructor(props) {
su... |
src/SplitToggle.js | roderickwang/react-bootstrap | import React from 'react';
import DropdownToggle from './DropdownToggle';
export default class SplitToggle extends React.Component {
render() {
return (
<DropdownToggle
{...this.props}
useAnchor={false}
noCaret={false}
/>
);
}
}
SplitToggle.defaultProps = DropdownToggle... |
src/components/Sidebar.js | josephfusco/APFT | import React from 'react';
import './Sidebar.css';
class Sidebar extends React.Component {
render() {
return(
<aside className="Sidebar">
<fieldset>
<legend>AGE</legend>
<div className="control">
<div className="ag... |
ajax/libs/forerunnerdb/1.4.25/fdb-all.min.js | BenjaminVanRyseghem/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/Parser/DeathKnight/Shared/Items/ColdHeart.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
//import getDamageBonus from 'Parser/DeathKnight/Shared/getDamageBonus';
import ItemDamageDone from 'Main/ItemDamageDone... |
packages/material-ui-icons/src/Scanner.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M19.8 10.7L4.2 5l-.7 1.9L17.6 12H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-5.5c0-.8-.5-1.6-1.2-1.8zM7 17H5v-2h2v2zm12 0H9v-2h10v2z" />
, 'Scanner');
|
TaskService/Scripts/jquery-1.10.2.js | admiraalmichiel/B2C-NativeClient-DotNet | /*!
* jQuery JavaScript Library v1.10.2
* 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-07-03T13:48Z
*/
(function( window, undefined ) {
// ... |
ajax/libs/js-data/2.1.0/js-data-debug.min.js | bspaulding/cdnjs | /*!
* js-data
* @version 2.1.0 - 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 webpackUniversalModul... |
src/js/components/pc_about.js | yhx0634/foodshopfront | import React from 'react';
import { Row, Col } from 'antd';
import { Carousel } from 'antd';
import { Card } from 'antd';
import { Menu, Icon, Tabs, message, Form, Input, Button, CheckBox, Modal } from 'antd';
const FormItem = Form.Item;
const SubMenu = Menu.SubMenu;
const TabPane = Tabs.TabPane;
const MenuItemGroup = ... |
app/js/components/Rate/Rate.js | adrianomelo/numus | import 'style!css!./Rate.css';
import React from 'react';
let months = [
"janeiro", "fevereiro", "março", "abril", "maio", "junho",
"julho", "agosto", "setembro", "outrubro", "novembro", "dezembro"
]
export default class Rate extends React.Component {
constructor() {
super();
this.state = {
value:... |
packages/material-ui-icons/src/TrendingDownSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M16 18l2.29-2.29-4.88-4.88-4 4L2 7.41 3.41 6l6 6 4-4 6.3 6.29L22 12v6h-6z" />
, 'TrendingDownSharp');
|
ajax/libs/preact/2.8.1/preact.min.js | menuka94/cdnjs | !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(e.preact={})}(this,function(e){"use strict";function n(e,n){var t=arguments.length<=2||void 0===arguments[2]?null:arguments[2],o=t&&t._component&&t._componentConstructor===e.nodeN... |
src/app/routes/forms/containers/FormPlugins.js | backpackcoder/world-in-flames | import React from 'react'
import {Stats, BigBreadcrumbs, WidgetGrid, JarvisWidget} from '../../../components'
import IonSlider from '../../../components/forms/inputs/IonSlider'
import NoUiSlider from '../../../components/forms/inputs/NoUiSlider'
import UiSlider from '../../../components/forms/inputs/UiSlider'
import... |
ajax/libs/jqwidgets/12.0.2/jqwidgets-react-tsx/jqxdockpanel/react_jqxdockpanel.esm.js | cdnjs/cdnjs | import * as jqxcore from '../../jqwidgets/jqxcore';
import * as jqxdockpanel from '../../jqwidgets/jqxdockpanel';
import { createElement, PureComponent } from 'react';
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed ... |
ajax/libs/video.js/5.0.0-rc.4/video.js | pombredanne/cdnjs | /**
* @license
* Video.js 5.0.0-rc.4 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*
* Includes vtt.js <https://github.com/mozilla/vtt.js>
* Available under Apache License ... |
ajax/libs/foundation/3.2.5/javascripts/foundation.min.js | walterdavis/cdnjs | /* Modernizr 2.6.2 (Custom Build) | MIT & BSD
* Build: http://modernizr.com/download/#-inlinesvg-svg-svgclippaths-touch-shiv-mq-cssclasses-teststyles-prefixes-ie8compat-load
*/
window.Modernizr=function(e,t,n){function r(e){d.cssText=e}function i(e,t){return r(g.join(e+";")+(t||""))}function s(e,t){return typeof e===... |
src/svg-icons/hardware/laptop-chromebook.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareLaptopChromebook = (props) => (
<SvgIcon {...props}>
<path d="M22 18V3H2v15H0v2h24v-2h-2zm-8 0h-4v-1h4v1zm6-3H4V5h16v10z"/>
</SvgIcon>
);
HardwareLaptopChromebook = pure(HardwareLaptopChromebook);
Har... |
ajax/libs/ngOfficeUiFabric/0.8.0/ngOfficeUiFabric.js | nolsherry/cdnjs | /*!
* ngOfficeUIFabric
* http://ngofficeuifabric.com
* Angular 1.x directives for Microsoft's Office UI Fabric
* https://angularjs.org & https://dev.office.com/fabric
* v0.8.0
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exp... |
src/game/piece/black-rook.js | howardjing/chess-calculator | // @flow
// https://commons.wikimedia.org/wiki/Category:SVG_chess_pieces
import React from 'react';
type Props = {
width: number | string,
height: number | string,
};
const BlackRook = ({
width,
height,
}: Props) => (
<svg
viewBox="0 0 45 45"
style={{
width: width,
height: height,
}}... |
ajax/libs/forerunnerdb/1.3.522/fdb-all.js | BitsyCode/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... |
packages/material-ui-icons/src/AddBox.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let AddBox = 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-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z" />
</SvgIcon>;
AddBox = pure(AddBox);
... |
src/components/containers/New.js | planlodge/soundmix | import React, { Component } from 'react';
import { connect } from 'react-redux';
import DocumentTitle from 'react-document-title';
import '../../css/ArtistList.css';
import '../../css/owl.carousel.min.css';
import '../../css/owl.theme.default.min.css';
import * as APIService from '../../api/APIService';
import ReactPag... |
screens/ProductSubChildCategoriesScreen/Category.js | nattatorn-dev/expo-with-realworld | import React from 'react'
import { Dimensions, Image, StyleSheet, Text, View } from 'react-native'
import PropTypes from 'prop-types'
import { Card, CardSection } from '@components'
const { width } = Dimensions.get( 'window' )
const styles = StyleSheet.create( {
headerContentStyle: {
flexDirection: 'column',
... |
src/Illuminate/Foundation/Console/Presets/react-stubs/Example.js | billmn/framework | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
export default class Example extends Component {
render() {
return (
<div className="container">
<div className="row justify-content-center">
<div className="col-md-8">
... |
src/media/js/site/containers/app.js | mozilla/marketplace-content-tools | import _ from 'lodash';
import {bindActionCreators} from 'redux';
import React from 'react';
import {connect} from 'react-redux';
import {checkSession, fxaLoginBegin, login, loginOk,
logout} from '../actions/login';
import {fetch as siteConfigFetch} from '../actions/siteConfig';
import Footer from '../componen... |
admin/public/react/template-add-page/option.js | sggdv/vegan | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = undefined;
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.... |
test/unit/src/common/components/repositories-home/t_repositories-home.js | canonical-ols/build.snapcraft.io | import React from 'react';
import expect from 'expect';
import { shallow } from 'enzyme';
import sinon from 'sinon';
import { RepositoriesHomeRaw as RepositoriesHome } from '../../../../../../src/common/components/repositories-home';
let clock;
describe('The RepositoriesHome component', () => {
let props;
befor... |
examples/todomvc/containers/App.js | rstuven/redux-act | import React, { Component } from 'react';
import TodoApp from './TodoApp';
import { createStore, combineReducers, compose } from 'redux';
import { devTools, persistState } from 'redux-devtools';
import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react';
import { Provider } from 'react-redux';
import {... |
ajax/libs/react-swipe/4.1.1/react-swipe.min.js | emmy41124/cdnjs | !function(e,i){"undefined"!=typeof module&&module.exports?module.exports=i(require("react"),require("react-dom"),require("swipe-js-iso"),require("object-assign")):e.ReactSwipe=i(e.React,e.ReactDOM,e.Swipe,e.objectAssign)}(this,function(e,i,t,s){var o={container:{overflow:"hidden",visibility:"hidden",position:"relative"... |
src/helpers/__tests__/makeRouteHooksSafe-test.js | fforres/coworks | import { expect } from 'chai';
import React from 'react';
import { IndexRoute, Route } from 'react-router';
import makeRouteHooksSafe from '../makeRouteHooksSafe';
describe('makeRouteHooksSafe', () => {
it('should work with JSX routes', () => {
const onEnter = () => {
throw new Error('Shouldn\'t call onE... |
app-ui/src/index.js | cozapsat/webapp | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
js/jquery.min.js | anthonyprograms/anthonyprograms.github.io | /*! 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... |
node_modules/react-icons/md/mouse.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdMouse = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m18.4 1.8v13.2h-11.8c0-6.8 5.2-12.4 11.8-13.2z m-11.8 23.2v-6.6h26.8v6.6c0 7.3-6.1 13.4-13.4 13.4s-13.4-6.1-13.4-13.4z m15-23.2c6.6 0.8 11.8 6.4 11.8 13.2h-11.8v-13.2z"... |
Libraries/Components/Touchable/TouchableWithoutFeedback.js | leeyeh/react-native | /**
* Copyright (c) 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.
*
* @provides... |
src/components/couchdb/plain-wordmark/CouchdbPlainWordmark.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './CouchdbPlainWordmark.svg'
/** CouchdbPlainWordmark */
function CouchdbPlainWordmark({ width, height, className }) {
return (
<SVGDeviconInline
className={'Couchdb... |
app/javascript/mastodon/components/relative_timestamp.js | tateisu/mastodon | import React from 'react';
import { injectIntl, defineMessages } from 'react-intl';
import PropTypes from 'prop-types';
const messages = defineMessages({
just_now: { id: 'relative_time.just_now', defaultMessage: 'now' },
seconds: { id: 'relative_time.seconds', defaultMessage: '{number}s' },
minutes: { id: 'relat... |
src/components/Avatar.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { backgroundImage, borders, borderColor, size, themeGet } from 'styled-system';
import tag from 'clean-tag';
import { Flex } from '@rebass/grid';
import withFallbackImage from '../lib/withFallbackImage';
const... |
webpack/scenes/AnsibleCollections/AnsibleCollectionsPage.js | johnpmitsch/katello | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import qs from 'query-string';
import { translate as __ } from 'foremanReact/common/I18n';
import { orgId } from '../../services/api';
import TableSchema from './AnsibleCollectionsTableSchema';
import ContentPage from '../../components/Conten... |
src/hypher-patterns/en-gb.js | carabina/Typeset | // The en-GB hyphenation patterns are retrieved from
// http://tug_org/svn/texhyphen/trunk/collaboration/repository/hyphenator/
module.exports = {
'id': 'en-gb',
'leftmin': 2,
'rightmin': 3,
'patterns': {
3 : "sw2s2ym1p2chck1cl2cn2st24sss1rzz21moc1qcr2m5q2ct2byb1vcz2z5sd3bs1jbr4m3rs2hd2gbo2t3gd1jb1j1dosc2d1pdr2dt... |
ajax/libs/forerunnerdb/1.3.565/fdb-legacy.js | menuka94/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... |
jquery.js | Bagyidaw/web-development | /*!
* jQuery JavaScript Library v1.11.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2015-04-28T16:19Z
*/
(function( global, factory ) {
if ... |
pages/discover-more/team.js | AndriusBil/material-ui | // @flow
import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from 'docs/src/pages/discover-more/team.md';
function Page() {
return (
<MarkdownDocs
markdown={markdown}
demos={{
... |
src/clincoded/static/libs/render_simple_status_label.js | ClinGen/clincoded | 'use strict';
import React from 'react';
/**
* Method to generically display a status tag/label given the status of a classification
* Applicable to: snapshots, GCI Evidence Summary, VCI Evaluation Summary
* @param {string} status - The status of a given classification in a GDM or Interpretation
* @param {boolean}... |
ajax/libs/react-bootstrap/0.6.2/react-bootstrap.js | WebReflection/cdnjs | (function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['react'], factory);
} else {
// Browser globals
root.ReactBootstrap = factory(root.React);
}
}(this, function (React) {
/**
* almond 0.1.2 Copyright (c) 2011, The Dojo Foundation... |
ajax/libs/rxjs/2.2.21/rx.compat.js | narikei/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/forerunnerdb/1.4.59/fdb-legacy.min.js | pvnr0082t/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... |
electron/app/components/CartoonButton.js | zindlerb/static | import React from 'react';
import classnames from 'classnames';
function CartoonButton(props) {
const { text, onClick, className, size, disabled } = props;
return (
<button
onClick={(e) => {
if (!disabled) {
onClick(e)
}
}}
className={classnames(... |
examples/01 Dustbin/Stress Test/Container.js | konce/react-dnd | import React, { Component } from 'react';
import { DragDropContext } from 'react-dnd';
import HTML5Backend, { NativeTypes } from 'react-dnd/modules/backends/HTML5';
import Dustbin from './Dustbin';
import Box from './Box';
import ItemTypes from './ItemTypes';
import shuffle from 'lodash/collection/shuffle';
import upda... |
src/components/numberBoxGrid/numberBox.js | jiriKuba/Calculatic | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Text, View, StyleSheet, TouchableHighlight } from 'react-native';
class NumberBox extends Component {
constructor(props){
super(props);
this.onCalculationNumberPress = this.onCalculationNumberPress.bind(this);
}
o... |
app/containers/WhatsHappening/Counter.js | BeautifulTrouble/beautifulrising-client | import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import { injectIntl } from 'react-intl';
import Isvg from 'react-inlinesvg';
import makeSelectWhatsHappening from './selectors';
import BellIcon from 'assets/images/icons/bell.svg';
import { createStructuredSelector }... |
js/jqwidgets/demos/react/app/grid/filterrowcustomlistitems/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
class App extends React.Component {
render() {
let data = generatedata(500);
let source =
{
localdata: data,
datafields:
... |
examples/todos-with-undo/components/App.js | doerme/redux | import React from 'react'
import Footer from './Footer'
import AddTodo from '../containers/AddTodo'
import VisibleTodoList from '../containers/VisibleTodoList'
import UndoRedo from '../containers/UndoRedo'
const App = () => (
<div>
<AddTodo />
<VisibleTodoList />
<Footer />
<UndoRedo />
</div>
)
e... |
app/addons/permissions/routes.js | garrensmith/couchdb-fauxton | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed un... |
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch04/04_03/finish/src/index.js | yevheniyc/Autodidact | import React from 'react'
import { render } from 'react-dom'
import './stylesheets/ui.scss'
import { SkiDayCount } from './components/SkiDayCount'
window.React = React
render(
<SkiDayCount />,
document.getElementById('react-container')
)
// render(
// <SkiDayList days={
// [
// {
// resort: "Squ... |
internals/templates/containers/HomePage/index.js | andyzeli/Bil | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it and remove
* the l... |
src/static/app.js | CRUDNS/CRUDNS | import React from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import classNames from 'classnames';
import { authLogoutAndRedirect } from './actions/auth';
import './styles/main.scss';
class App extends React.Component {
static pr... |
packages/icons/src/md/image/ExposurePlus2.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdExposurePlus2(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M32.09 33.58l5.73-6.13c.75-.79 1.44-1.57 2.08-2.35.63-.78 1.18-1.56 1.64-2.33.46-.78.82-1.55 1.07-2.33.26-.78.39-1.57.39-2.37 0-1.07-.18-2.04-.... |
packages/cf-component-notifications/test/NotificationList.js | manatarms/cf-ui | import React from 'react';
import renderer from 'react-test-renderer';
import { NotificationList } from 'cf-component-notifications';
test('should render', () => {
const component = renderer.create(
<NotificationList>NotificationList</NotificationList>
);
expect(component.toJSON()).toMatchSnapshot();
});
|
src/MenuItem.js | aparticka/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import SafeAnchor from './SafeAnchor';
const MenuItem = React.createClass({
propTypes: {
header: React.PropTypes.bool,
divider: React.PropTypes.bool,
href: React.PropTypes.string,
title: React.PropTypes.string,
target: ... |
app/scripts/TrackRenderer.js | hms-dbmi/higlass | import React from 'react';
import PropTypes from 'prop-types';
import { zoom, zoomIdentity } from 'd3-zoom';
import { select, event, clientPoint } from 'd3-selection';
import { scaleLinear } from 'd3-scale';
import slugid from 'slugid';
import PixiTrack from './PixiTrack';
import HeatmapTiledPixiTrack from './Heatmap... |
docs/app/Examples/modules/Dropdown/Content/index.js | koenvg/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ContributionPrompt from 'docs/app/Components/ComponentDoc/ContributionPrompt'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const DropdownContentExamples = () => (
<Example... |
Libraries/Utilities/throwOnWrongReactAPI.js | foghina/react-native | /**
* Copyright (c) 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.
*
* @provides... |
src/Alert.js | sxyseo/amazeui-react | 'use strict';
var React = require('react');
var classNames = require('classnames');
var ClassNameMixin = require('./mixins/ClassNameMixin');
var Alert = React.createClass({
mixins: [ClassNameMixin],
propTypes: {
classPrefix: React.PropTypes.string.isRequired,
amStyle: React.PropTypes.oneOf(['secondary', ... |
src/Input.js | zanjs/react-bootstrap | import React from 'react';
import InputBase from './InputBase';
import * as FormControls from './FormControls';
import deprecationWarning from './utils/deprecationWarning';
class Input extends InputBase {
render() {
if (this.props.type === 'static') {
deprecationWarning('Input type=static', 'StaticText');
... |
src/pages/tree/Treetraversal/Treetraversal.js | hyy1115/react-redux-webpack3 | import React from 'react'
class Treetraversal extends React.Component {
render() {
return (
<div>Treetraversal</div>
)
}
}
export default Treetraversal |
src/parser/shared/modules/CooldownThroughputTracker.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS/index';
import Panel from 'interface/others/Panel';
import CooldownIcon from 'interface/icons/Cooldown';
import CooldownOverview from 'interface/others/CooldownOverview';
import Analyzer from 'parser/core/Analyzer';
import CASTS_THAT_ARENT_CASTS from 'parser... |
tools/lib/routes-loader.js | maven-hackathon/TheQueerTour | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import glob from 'glob';
import { join } from 'path';
export default function(source) {
this.cacheable();
const target = this.target;
const callback = this.async... |
src/svg-icons/places/all-inclusive.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesAllInclusive = (props) => (
<SvgIcon {...props}>
<path d="M18.6 6.62c-1.44 0-2.8.56-3.77 1.53L12 10.66 10.48 12h.01L7.8 14.39c-.64.64-1.49.99-2.4.99-1.87 0-3.39-1.51-3.39-3.38S3.53 8.62 5.4 8.62c.91 0 1.7... |
node_modules/reactify/node_modules/react-tools/src/vendor/key-mirror/__tests__/keyMirror-test.js | mlsteele/reactance | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react-co... |
src/hoc/snackbar.js | chaoming56/react-blog | import Snackbar from 'material-ui/Snackbar'
import React from 'react'
const withSnackbar = WrapComnent => class WithSnackbarHOC extends React.Component {
constructor() {
super()
this.state = {
snackbarOpen: false,
message: ''
}
}
handleClose = () => {
... |
ajax/libs/mobx/2.3.2/mobx.js | pombredanne/cdnjs | "use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
registerGlobals();
exports.extras = {
allowS... |
ajax/libs/react-highcharts/8.4.1/ReactHighstock.src.js | seogi1004/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... |
browser/react/components/ChangingRoom.js | TranscendVR/transcend | import React from 'react';
import { joinChatRoom, leaveChatRoom } from '../../webRTC/client.js';
import Teleporter from './Teleporter';
import Mannequin from './Mannequin';
import Room from './Room';
export default class Sean extends React.Component {
componentDidMount () {
joinChatRoom('changingroom');
}
... |
src/encoded/static/components/__tests__/RawFilesStackedTable-test.js | hms-dbmi/fourfront | 'use strict';
import React from 'react';
import _ from 'underscore';
import TestUtils from 'react-dom/test-utils';
import { StackedBlockTable } from '@hms-dbmi-bgm/shared-portal-components/es/components/browse/components/StackedBlockTable';
import { RawFilesStackedTable } from './../browse/components/file-tables';
imp... |
src/App.js | alexander183/wilks-web | import React, { Component } from 'react';
import WilksPage from './WilksPage';
class App extends Component {
render() {
return (<WilksPage/>)
}
}
export default App;
|
wp-content/plugins_old/types/embedded/common/toolset-forms/js/jquery_upload/jquery.min.js | javierdlahoz/paella-development | /*! 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... |
ActionEventSeat.js | nodule/react-material-ui | module.exports = {
description: "",
ns: "react-material-ui",
type: "ReactNode",
dependencies: {
npm: {
"material-ui/svg-icons/action/event-seat": require('material-ui/svg-icons/action/event-seat')
}
},
name: "ActionEventSeat",
ports: {
input: {},
output: {
component: {
... |
assets/js/jquery-1.12.0.min.js | jhoemrs/jhoemrs.github.io | /*! jQuery v1.12.0 | (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/ui/containers/Home/index.js | folkrav/DiceMaster | import './index.scss';
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
const { dialog } = window.require('electron').remote;
import RaisedButton from 'material-ui/RaisedButton';
import Page from 'ui/containers/Page';
import PartyList from 'ui/components/PartyList';
import D... |
src/routes.js | kart1234/signin-redux | import React from 'react';
import {Route} from 'react-router';
import SigninContainer from './containers/SigninContainer';
import Header from './components/Header';
import Home from './components/Home';
import About from './components/About';
/**
* The React Routes for both the server and the client.
*/
... |
src/app/containers/header/NotificationsMenu.js | ucokfm/admin-lte-react | import React from 'react';
import NotificationsMenu from '../../../lib/header/NotificationsMenu';
const notifications = [
{
key: 1,
id: 1,
icon: 'fa fa-users',
iconColor: 'aqua',
text: '5 new members joined today',
},
{
key: 2,
id: 2,
icon: 'fa fa-warning',
iconColor: 'yellow... |
ajax/libs/shariff/1.7.2/shariff.complete.js | IonicaBizauKitchen/cdnjs |
/*!
* shariff - v1.7.1 - 05.02.2015
* https://github.com/heiseonline/shariff
* Copyright (c) 2015 Ines Pauer, Philipp Busse, Sebastian Hilbig, Erich Kramer, Deniz Sesli
* Licensed under the MIT <http://www.opensource.org/licenses/mit-license.php> license
*/
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o])... |
app/bundles/sonatajquery/jquery-1.10.2.js | julianjjo/Mischiros | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.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=f.trim... |
StarterRNP/src/screens/common/LoginBackground.js | khanhqd/ProjectOT1 | /**
* @file LoginBackground.js
*
* @author Nguyen Thanh Trung
* @version 1.0.0
*
* @DESCRIPTION
*
* Just a PlayGround for react-native
* @flow
*/
import React from 'react';
import { View, Dimensions, StatusBar } from 'react-native';
const { maxHeight, maxWidth } = Dimensions.get('window');
const LoginBackg... |
ajax/libs/jquery-tools/1.2.7/jquery.tools.min.js | cloudrifles/cdnjs | /*!
* jQuery Tools v1.2.7 - The missing UI library for the Web
*
* dateinput/dateinput.js
* overlay/overlay.js
* overlay/overlay.apple.js
* rangeinput/rangeinput.js
* scrollable/scrollable.js
* scrollable/scrollable.autoscroll.js
* scrollable/scrollable.navigator.js
* tabs/tabs.js
* tabs/tabs.sli... |
src/svg-icons/image/healing.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageHealing = (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-... |
fields/types/cloudinaryimage/CloudinaryImageField.js | stunjiturner/keystone | import _ from 'underscore';
import $ from 'jquery';
import React from 'react';
import Field from '../Field';
import Select from 'react-select';
import { Button, FormField, FormInput, FormNote } from 'elemental';
import Lightbox from '../../../admin/client/components/Lightbox';
/**
* TODO:
* - Remove dependency on jQ... |
src/shared/element-react/dist/npm/es6/libs/transition/index.js | thundernet8/Elune-WWW | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactCSSTransitionGro... |
modules/experimental/AsyncProps.js | keathley/react-router | import React from 'react';
import invariant from 'invariant';
var { func, array, shape, object } = React.PropTypes;
var contextTypes = {
asyncProps: shape({
reloadComponent: func,
propsArray: array,
componentsArray: array
})
};
var _serverPropsArray = null;
function setServerPropsArray(array) {
inv... |
ajax/libs/yasgui/0.0.3/yasgui.bundled.min.js | cnbin/cdnjs | !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.YASGUI=e()}}(function(){var e;return function t(e,n,r... |
demo/icons/places.js | jahglow/MDIcon | import React from 'react';
export const ic_ac_unit = <path d="M22 11h-4.17l3.24-3.24-1.41-1.42L15 11h-2V9l4.66-4.66-1.42-1.41L13 6.17V2h-2v4.17L7.76 2.93 6.34 4.34 11 9v2H9L4.34 6.34 2.93 7.76 6.17 11H2v2h4.17l-3.24 3.24 1.41 1.42L9 13h2v2l-4.66 4.66 1.42 1.41L11 17.83V22h2v-4.17l3.24 3.24 1.42-1.41L13 15v-2h2l4.66 4.... |
imports/ui/admin/components/committees.js | dououFullstack/atomic | import React from 'react';
import { browserHistory } from 'react-router';
import Loading from '/imports/ui/loading';
class _Component extends React.Component {
handelDelete(id) {
if (window.confirm('确认删除?')) {
Meteor.call('committee.delete', id);
}
}
render() {
const data = this.props.data;
... |
docs/0.13c8388c8403704a3ae4.js | heifade/quark-ui | webpackJsonp([0],{"0P4F":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"default",function(){return r});var a=n("Jmof"),l=(n.n(a),n("lkey")),s=n("UJDU"),i=n("Pp2j"),o=n("WB2H"),r=class extends a.Component{constructor(e){super(e),this.state={}}render(){var e=()=>{s.a.config({placemen... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.