path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
frontend/src/index.js
tdv-casts/website
// @flow import injectTapEventPlugin from 'react-tap-event-plugin'; import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter } from 'react-router-dom' import App from './App'; import './index.css'; injectTapEventPlugin(); ReactDOM.render( ( <BrowserRouter> <App /> ...
docs/src/app/components/pages/components/Chip/ExampleArray.js
mmrtnz/material-ui
import React from 'react'; import Chip from 'material-ui/Chip'; /** * An example of rendering multiple Chips from an array of values. Deleting a chip removes it from the array. * Note that since no `onTouchTap` property is defined, the Chip can be focused, but does not gain depth * while clicked or touched. */ exp...
ajax/libs/babel-core/6.1.17/browser.min.js
sympmarc/cdnjs
 !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.babel=t()}}(function(){var t,e,n;return function r(t,...
third_party/ui/bower_components/modernizr/test/caniuse_files/jquery.min.js
wattsteve/kubernetes-1
/*! * jQuery JavaScript Library v1.6.1 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
src/components/Video/VideoToolbar.js
welovekpop/uwave-web-welovekpop.club
import React from 'react'; import PropTypes from 'prop-types'; import { translate } from 'react-i18next'; import Tooltip from '@material-ui/core/Tooltip'; import IconButton from '@material-ui/core/IconButton'; import EnterFullscreenIcon from '@material-ui/icons/Fullscreen'; import ExitFullscreenIcon from '@material-ui/...
app/containers/CreateEventContainer.js
alexko13/block-and-frame
import React, { Component } from 'react'; import update from 'react-addons-update'; import eventHelpers from '../utils/eventHelpers'; import MenuBar from '../components/MenuBar'; import CreateEventForm from '../components/events/CreateEventForm'; import moment from 'moment'; const now = moment(); class Creat...
ajax/libs/analytics.js/2.3.20/analytics.min.js
RNELord/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...
vendor/htmlburger/carbon-fields/assets/js/fields/components/oembed/preview.js
FolsomCreative/storynav
/** * The external dependencies. */ import $ from 'jquery'; import React from 'react'; import { renderToStaticMarkup } from 'react-dom/server'; import PropTypes from 'prop-types'; import { forEach } from 'lodash'; import { compose, withHandlers, setStatic, withProps, withState } from 'recompose'; /** * The internal...
app/javascript/mastodon/features/ui/components/drawer_loading.js
foozmeat/mastodon
import React from 'react'; const DrawerLoading = () => ( <div className='drawer'> <div className='drawer__pager'> <div className='drawer__inner' /> </div> </div> ); export default DrawerLoading;
ajax/libs/js-data/1.4.1/js-data-debug.js
hpneo/cdnjs
/** * @author Jason Dobry <jason.dobry@gmail.com> * @file dist/js-data-debug.js * @version 1.4.1 - Homepage <http://www.js-data.io/> * @copyright (c) 2014 Jason Dobry * @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE> * * @overview Data store. */ !function(e){if("object"==typeof exports&&"undefine...
server/sonar-web/src/main/js/apps/background-tasks/components/StatusFilter.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program 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 3 of the License, o...
node_modules/react-bootstrap/es/InputGroup.js
rblin081/drafting-client
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/components/user/UserConsentContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import { injectIntl } from 'react-intl'; import { push } from 'react-router-redux'; import UserConsentForm from './UserConsentForm'; import withIntlForm from '../common/hocs/IntlForm'; import { updateFeedback } from '....
ajax/libs/backbone.radio/0.4.1/backbone.radio.min.js
sreym/cdnjs
// Backbone.Radio v0.4.0 !function(a,b){if("function"==typeof define&&define.amd)define(["backbone","underscore"],function(a,c){return b(a,c)});else if("undefined"!=typeof exports){var c=require("backbone"),d=require("underscore");module.exports=b(c,d)}else b(a.Backbone,a._)}(this,function(a,b){"use strict";function c...
extensions/amp-date-picker/0.1/test/test-wrapper-maximum-nights.js
jridgewell/amphtml
import '#third_party/react-dates/bundle'; import * as fakeTimers from '@sinonjs/fake-timers'; import {requireExternal} from '../../../../src/module'; import {wrap as withMaximumNights} from '../wrappers/maximum-nights'; describes.sandboxed('amp-date-picker', {}, () => { const moment = requireExternal('moment'); l...
src/svg-icons/hardware/keyboard-capslock.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardCapslock = (props) => ( <SvgIcon {...props}> <path d="M12 8.41L16.59 13 18 11.59l-6-6-6 6L7.41 13 12 8.41zM6 18h12v-2H6v2z"/> </SvgIcon> ); HardwareKeyboardCapslock = pure(HardwareKeyboardCaps...
src/Display.js
martosource/subschema
"use strict"; var React = require('./react'); var tu = require('./tutils'); var EMPTY_ARR = []; var Display = React.createClass({ displayName: 'Display', mixins: [require('./LoaderMixin')], getDefaultProps() { return { field: { type: 'Text' }, /*o...
admin/client/components/PrimaryNavigation.js
stunjiturner/keystone
import blacklist from 'blacklist'; import classnames from 'classnames'; import React from 'react'; import { Container } from 'elemental'; var PrimaryNavItem = React.createClass({ displayName: 'PrimaryNavItem', propTypes: { className: React.PropTypes.string, children: React.PropTypes.node.isRequired, href: Reac...
test/WellSpec.js
azmenak/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Well from '../src/Well'; describe('Well', function () { it('Should output a well with content', function () { let instance = ReactTestUtils.renderIntoDocument( <Well> <strong>Content</strong> </Well> ...
src/Layout/Header.js
tleunen/react-mdl
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import HeaderRow from './HeaderRow'; import HeaderTabs from './HeaderTabs'; const Header = props => { const { className, scroll, seamed, title, transparent, waterfall, hideTop, hideSpacer, children, ...o...
stories/switch.stories.js
isogon/material-components
import React from 'react' import { storiesOf } from '@storybook/react' import wrapStory from './decorators/wrapStory' import Switch from '../src/components/switch/demos/Switch.js' storiesOf('Switch', module) .addDecorator(wrapStory) .add('Switch', () => <Switch />)
ajax/libs/rxjs/2.3.19/rx.compat.js
thisispiers/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...
src/common/components/Paragraph.js
reedlaw/read-it
// @flow import type { TextProps } from './Text'; import type { Theme } from '../themes/types'; import Text from './Text'; import React from 'react'; type ParagraphContext = { theme: Theme, }; const Paragraph = (props: TextProps, { theme }: ParagraphContext) => { const { marginBottom = theme.paragraph.marginB...
ajax/libs/react/0.12.0/react-with-addons.js
pc035860/cdnjs
/** * React (with addons) v0.12.0 */ !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()}}(fu...
src/IconImage/index.js
christianalfoni/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './styles.css'; function IconImage(props) { return ( <img className={classNames(styles.wrapper, { [styles[props.size]]: props.size, [props.class...
ajax/libs/vega/2.0.3/vega.js
rlugojr/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.vg = f()}})(fu...
src/@ui/forms/LoginForm.js
NewSpring/Apollos
import React from 'react'; import { View } from 'react-native'; import PropTypes from 'prop-types'; import { compose, mapProps, setPropTypes } from 'recompose'; import { get } from 'lodash'; import { withFormik } from 'formik'; import Yup from 'yup'; import withUser from '@data/withUser'; import { Text as TextInput } ...
ajax/libs/react-cookie/0.2.6/react-cookie.min.js
tmorin/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...
examples/src/app.js
iLikeKoffee/react-select
/* eslint react/prop-types: 0 */ import React from 'react'; import Select from 'react-select'; import CustomRenderField from './components/CustomRenderField'; import MultiSelectField from './components/MultiSelectField'; import RemoteSelectField from './components/RemoteSelectField'; import SelectedValuesField from '...
examples/async/index.js
bottledsmoke/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} </Provider>, document.getElementByI...
client/src/components/App.js
apologeticcookie/apologeticcookie
import React from 'react'; import HomePage from './HomePage'; import Container from './Container'; class App extends React.Component { constructor(props) { super(props); this.state = { showHomePage: true }; this.toggleDemo = this.toggleDemo.bind(this); } toggleDemo() { this.setState({...
modules/gui/src/widget/tabs/tabs.js
openforis/sepal
import {Button} from 'widget/button' import {ButtonGroup} from 'widget/buttonGroup' import {Content, SectionLayout, TopBar} from 'widget/sectionLayout' import {Scrollable, ScrollableContainer} from 'widget/scrollable' import {Subject, delay, filter} from 'rxjs' import {TabContent} from './tabContent' import {TabHandle}...
app/common/components/Element/index.js
Kaniwani/KW-Frontend
import React from 'react'; import PropTypes from 'prop-types'; import { StyledElement } from './styles'; Element.propTypes = { children: PropTypes.oneOfType([ PropTypes.array, PropTypes.node, ]).isRequired, flex: PropTypes.string, flexCenter: PropTypes.bool, flexColumn: PropTypes.bool, flexDisplay...
app/javascript/mastodon/components/area_header.js
pinfort/mastodon
import React from 'react'; import Area from './area'; import ImmutablePropTypes from 'react-immutable-proptypes'; class Area_header extends Area { static propTypes = { account: ImmutablePropTypes.map.isRequired }; constructor (props, context) { super(props, context); this.get_area_class_name = this....
src/index.js
edbond88/hm-weather
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import App from './components/App/App' import store from './store' import './index.css' const target = document.querySelector('#root') ReactDOM.render( <Provider store={store}> <App /> </Provider>, target )
ajax/libs/clappr/0.0.39/clappr.js
chrisdavies/cdnjs
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o]...
source/components/header-bar.js
phorque/ac2-frontend
import React from 'react'; import PureRenderMixin from 'components/pure-render-mixin'; import ResponsiveMixin from 'react-responsive-mixin'; import { Toolbar, ToolbarGroup } from 'material-ui/Toolbar'; import IconButton from 'material-ui/IconButton'; import AutoComplete from 'material-ui/AutoComplete'; import HomeIco...
ajax/libs/cyclejs-core/0.10.1/cycle.js
bootcdn/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.Cycle=e()}}(function(){var define,module,exports;retu...
src/components/ChatChannelDisplay/index.js
badT/Chatson
import React from 'react'; import DataContainer from '../../containers/DataContainer'; import { styles } from './styles.scss'; export function ChatChannelDisplay() { return ( <div className={`${styles}`}> <DataContainer /> </div> ); }
src/js/models/list.js
chemdemo/react-webpack-todos
/* * @Author: dmyang * @Date: 2015-07-31 15:49:32 * @Last Modified by: dmyang * @Last Modified time: 2015-08-07 14:05:00 */ 'use strict'; import React from 'react'; export default function getList(callback) { let api = '/api/list'; fetch(api) .then((response) => response.text()) .then((r...
tests/flow/react_modules/es6class-proptypes-callsite.js
despairblue/prettier
/* @flow */ import React from 'react'; import Hello from './es6class-proptypes-module'; class HelloLocal extends React.Component<void, {name: string}, void> { defaultProps = {}; propTypes = { name: React.PropTypes.string.isRequired, }; render(): React.Element<*> { return <div>{this.props.name}</div>; ...
examples/todomvc/test/components/Header.spec.js
JoeStanton/redux
import expect from 'expect' import React from 'react' import TestUtils from 'react-addons-test-utils' import Header from '../../components/Header' import TodoTextInput from '../../components/TodoTextInput' function setup() { const props = { addTodo: expect.createSpy() } const renderer = TestUtils.createRend...
ajax/libs/forerunnerdb/1.3.601/fdb-all.js
BenjaminVanRyseghem/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
src/components/Logo/Logo.js
alexpalombaro/reactjs
import './Logo.scss'; import React from 'react'; import svg from '../../assets/images/sig.svg'; class Logo extends React.Component { constructor(props) { super(props); this.props = Object.assign({ className: '' }); } static propTypes = { className: React.PropT...
app/javascript/mastodon/features/notifications/index.js
narabo/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Column from '../ui/components/column'; import { expandNotifications, changeNotificationType, clearNotifications, scrollTopNotifications } from '../../a...
src/svg-icons/hardware/tablet-mac.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareTabletMac = (props) => ( <SvgIcon {...props}> <path d="M18.5 0h-14C3.12 0 2 1.12 2 2.5v19C2 22.88 3.12 24 4.5 24h14c1.38 0 2.5-1.12 2.5-2.5v-19C21 1.12 19.88 0 18.5 0zm-7 23c-.83 0-1.5-.67-1.5-1.5s.67-1...
ajax/libs/yui/3.10.0/scrollview-base/scrollview-base-coverage.js
dhowe/cdnjs
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/scrollview-base/scrollview-base.js']) { __coverage__['build/scrollview-base/scrollview-base.js'] = {"path":"build/scrollview-base/scrollview-base.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":...
ajax/libs/react-native-web/0.17.7/exports/createElement/index.js
cdnjs/cdnjs
/** * Copyright (c) Nicolas Gallagher. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * */ import AccessibilityUtil from '../../modules/AccessibilityUtil'; import createDOMProps from '../../modules/createDOMProps'; import React fro...
client/node_modules/material-ui/lib/svg-icons/navigation/arrow-drop-down-circle.js
jnajdi/canvas_starter_app_local
'use strict'; var React = require('react'); var SvgIcon = require('../../svg-icon'); var NavigationArrowDropDownCircle = React.createClass({ displayName: 'NavigationArrowDropDownCircle', render: function render() { return React.createElement( SvgIcon, this.props, React.createElement('path',...
src/renderers/dom/fiber/ReactDOMFiber.js
jontewks/react
/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModu...
client/src/components/Explorer/Explorer.js
takeflight/wagtail
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import * as actions from './actions'; import ExplorerPanel from './ExplorerPanel'; const Explorer = ({ isVisible, nodes, path, pushPage, popPage, onClose, }) => { const page = nodes[path[path.length - ...
app/javascript/mastodon/features/direct_timeline/components/conversation.js
tri-star/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import StatusContent from 'mastodon/components/status_content'; import AttachmentList from 'mastodon/components/attachment_list'...
src/svg-icons/action/alarm.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAlarm = (props) => ( <SvgIcon {...props}> <path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-9 4.03...
config/shims/assetInserter/typekit.js
Kalcode/Gatsby-Boilerplate
import React from 'react' import config from 'config' export default function typekit() { if (!config.typekit) return null return ([ <script key='typekit-script' src={`https://use.typekit.net/${config.typekit}.js`} />, <script key='typekit-script-load' dangerouslySetInnerHTML={{__html: 'try{Typekit.load({ ...
src/components/Header.js
yoo2001818/ChatBBS
import React, { Component } from 'react'; import AppBar from 'material-ui/lib/app-bar'; export default class Header extends Component { render() { return ( <header> <AppBar title='ChatBBS' /> </header> ); } }
ajax/libs/webshim/1.15.3-RC1/dev/shims/moxie/js/moxie-swf.js
jackdoyle/cdnjs
/** * mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill * v1.2.1 * * Copyright 2013, Moxiecode Systems AB * Released under GPL License. * * License: http://www.plupload.com/license * Contributing: http://www.plupload.com/contributing * * Date: 2014-05-14 */ /** * Compiled inline version. (Library ...
yii/framework/zii/widgets/assets/gridview/jquery.yiigridview.js
thebluevn/bluesms
/** * jQuery Yii GridView plugin file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright 2008-2010 Yii Software LLC * @license http://www.yiiframework.com/license/ */ (function ($) { var selectCheckedRows, methods, yiiXHR={}, gridSettings = []; /** * 1. Sele...
app/components/drawer.js
csduarte/mattermost-mobile
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved. // See License.txt for license information. import React from 'react'; import BaseDrawer from 'react-native-drawer'; // Extends react-native-drawer to allow better control over the open/closed state from the parent export default class Drawer extends...
src/TestPanel.js
honmanyau/muup-story
import React, { Component } from 'react'; import './GameController.css' class TestPanel extends React.Component { render() { let player = this.props.player; const testPanelStyles = { gridArea: "3 / 2 / 3 / span 3", padding: "0 10px", textAlign: "center", backgroundColor: "none", ...
src/components/Container/index.js
jefferyvincent/catalyst
import React, { Component } from 'react'; import { View } from 'react-native'; import { connectStyle } from '@shoutem/theme'; import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames'; class Container extends Component { constructor(props) { super(props) } render() { return ( <View ref={...
ajax/libs/vue/2.1.3/vue.runtime.common.js
nolsherry/cdnjs
/*! * Vue.js v2.1.3 * (c) 2014-2016 Evan You * Released under the MIT License. */ 'use strict'; /* */ /** * Convert a value to a string that is actually rendered. */ function _toString (val) { return val == null ? '' : typeof val === 'object' ? JSON.stringify(val, null, 2) : String(val) }...
static/main.js
facingcheer/spatia-h5
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["QCUI"] = factory(); else root["QCUI"] =...
packages/react-dom/src/test-utils/ReactTestUtils.js
jzmq/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. */ import React from 'react'; import ReactDOM from 'react-dom'; import {findCurrentFiberUsingSlowPath} from 'react-reconciler/reflect...
ajax/libs/react-data-grid/1.0.13/react-data-grid.min.js
him2him2/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...
fields/types/cloudinaryimage/CloudinaryImageField.js
andreufirefly/keystone
import xhr from 'xhr'; import React from 'react'; import ReactDOM from 'react-dom'; import Field from '../Field'; import Select from 'react-select'; import { Button, FormField, FormInput, FormNote } from 'elemental'; import Lightbox from '../../../admin/client/components/Lightbox'; import classnames from 'classnames'; ...
src/svg-icons/file/create-new-folder.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileCreateNewFolder = (props) => ( <SvgIcon {...props}> <path d="M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3v2z"/> </Svg...
doc/js/jquery.min.js
VladimirMarkovic86/personal-organiser
/*! jQuery v1.6.4 http://jquery.com/ | http://jquery.org/license */ (function(a,b){function cu(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cr(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe"...
ajax/libs/mobx/2.4.0-beta1/mobx.umd.js
holtkamp/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.mobx = f()}})(...
modules/RouteUtils.js
MattSPalmer/react-router
import React from 'react' import warning from 'warning' function isValidChild(object) { return object == null || React.isValidElement(object) } export function isReactChildren(object) { return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild)) } function checkPropTypes(componentName, p...
app/javascript/mastodon/containers/domain_container.js
dwango/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { blockDomain, unblockDomain } from '../actions/domain_blocks'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Domain from '../components/domain'; import { openModal } from '../actions/modal'; const messages = d...
src/containers/DevTools.js
stranbury/react-miuus
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 /> </Dock...
ajax/libs/asynquence-contrib/0.1.10-d/contrib.src.js
Amomo/cdnjs
/*! asynquence-contrib v0.1.10-d (c) Kyle Simpson MIT License: http://getify.mit-license.org */ (function UMD(dependency,definition){ if (typeof module !== "undefined" && module.exports) { module.exports = definition(require(dependency)); } else if (typeof define === "function" && define.amd) { define([depen...
clients/packages/admin-client/src/storybook/settings/forms/radioField/index.js
nossas/bonde-client
import React from 'react' import FormGroup from '../formGroup' import { radioGroupStyle, radioStyle } from './styles' export const Radio = ({ children, label, value, checked, onChange }) => ( <label style={radioStyle} htmlFor={`${value}-id`}> <input id={`${value}-id`} value={value} type='radio'...
packages/material-ui-icons/src/CropOutlined.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M17 15h2V7c0-1.1-.9-2-2-2H9v2h8v8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7z" /> , 'CropOutlined');
packages/cf-component-toggle/test/Toggle.js
koddsson/cf-ui
import React from 'react'; import { felaSnapshot } from 'cf-style-provider'; import Toggle from '../../cf-component-toggle/src/index'; test('should render', () => { const snapshot = felaSnapshot(<Toggle label="Test Toggle" name="test" />); expect(snapshot.component).toMatchSnapshot(); expect(snapshot.styles).toM...
src/components/SurahInfo/index.js
hasibsahibzada/quran.com-frontend
import React from 'react'; import * as customPropTypes from 'customPropTypes'; import styled from 'styled-components'; import { lighten } from 'polished'; import Loader from 'quran-components/lib/Loader'; import PropTypes from 'prop-types'; const style = require('./style.scss'); const List = styled.dl` padding-top:...
src/input/InputHandler.js
ramzes13/languages
import React from 'react'; import SimpleTextInput from './SimpleTextInput'; import AudioTextInput from './AudioTextInput'; import InputSolverMapper from '../constant/InputSolverMapper'; const mapper = [ { 'slug': InputSolverMapper.COMPONENT_SIMPLTE_TEXT, 'component': SimpleTextInput }, {...
src/shared/universal/components/App/App.js
DAppx/SharpReact
/* */ import React from 'react'; import { Match, Miss } from 'react-router'; import Helmet from 'react-helmet'; import { CodeSplit } from 'code-split-component'; //import 'normalize.css/normalize.css'; //require('antd/dist/antd.less'); // or 'antd/dist/antd.less') import './globals.css'; import Error404 from ...
actor-apps/app-web/src/app/components/DialogSection.react.js
fengchenlianlian/actor-platform
import _ from 'lodash'; import React from 'react'; import { PeerTypes } from 'constants/ActorAppConstants'; import MessagesSection from 'components/dialog/MessagesSection.react'; import TypingSection from 'components/dialog/TypingSection.react'; import ComposeSection from 'components/dialog/ComposeSection.react'; i...
src/Parser/DemonHunter/Havoc/Modules/Items/AngerOfTheHalfGiants.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Wrapper from 'common/Wrapper'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import SpellLink from 'common/SpellLink'; import ItemLink from 'common/ItemLink'; import { formatNumber, formatPercentage } from 'common/format'; import Analyzer from 'Parser/Core/Ana...
node_modules/react-icons/fa/comments.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const FaComments = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m31.4 17.1q0 3.1-2.1 5.8t-5.7 4.1-7.9 1.6q-1.9 0-3.9-0.4-2.8 2-6.2 2.9-0.8 0.2-1.9 0.3h-0.1q-0.3 0-0.5-0.2t-0.2-0.4q0-0.1 0-0.2t0-0.1 0-0.1l0.1-0.2 0-0.1 0.1-0.1 0.1...
RN HotUpdate/SmartHomeII/SmartHome/Global/Constant.js
HarrisLee/React-Native-Express
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { Platform, Dimensions } from 'react-native'; const {height,width} = Dimensions.get('window'); // 第一种设置全局变量的方法 // export default { // nameExport : '全局变量', // screen_width ...
public/javascripts/bower/react-tray/lib/components/__tests__/Tray-test.js
fronteerio/canvas-lms
import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import { equal } from 'assert'; import ReactTray from '../../main'; let _currentDiv = null; function renderTray(props, children, callback) { _currentDiv = document.createElement('div'); document.body.appe...
ajax/libs/onsen/2.0.0-rc.11/js/angular-onsenui.min.js
x112358/cdnjs
/*! angular-onsenui.js for onsenui - v2.0.0-rc.11 - 2016-06-15 */ !function(){var initializing=!1,fnTest=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){},Class.extend=function(prop){function Class(){!initializing&&this.init&&this.init.apply(this,arguments)}var _super=this.prototype;initializing=!0;...
src/Components/Presentational/MessagesList/MessagesList.js
DeadManPoe/ReactChat
import React from 'react'; import MessageListPropTypes from './MessagesListPropTypes'; import MessageItem from '../MessageItem/MessageItem'; const MessagesList = (props)=>{ const MessageItems = props.messages.map( (item,index)=>{ console.log(item); return <MessageItem key={index} te...
src/routes/Character/routes/Profile/components/ProfileView.js
warcraftlfg/warcrafthub-client
import React from 'react' import { Row, Col } from 'react-bootstrap' import CharacterItems from './CharacterItems' import CharacterItemIlvl from './CharacterItemIlvl' import CharacterItemsAudit from './CharacterItemsAudit' import CharacterT19 from './CharacterT19' export const ProfileView = (props) => { return ( ...
src/Issues.js
Doodle3D/printable-github-issues
import React, { Component } from 'react'; import { parse } from 'qs'; import { getIssues } from './data.js'; import Issue from './Issue.js'; import { STYLES } from './constants.js'; export default class Issues extends Component { state = { issues: [], style: STYLES.PRINT }; componentDidMount() { cons...
src/containers/Root.js
vesparny/marky
import React from 'react' import App from './App' import {Provider} from 'react-redux' const Root = ({store}) => { return ( <Provider store={store}> <App /> </Provider> ) } export default Root
examples/huge-apps/components/App.js
taion/rrtr
/*globals COURSES:true */ import React, { Component } from 'react' import Dashboard from './Dashboard' import GlobalNav from './GlobalNav' class App extends Component { render() { return ( <div> <GlobalNav /> <div style={{ padding: 20 }}> {this.props.children || <Dashboard courses...
test/ButtonInputSpec.js
laran/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ButtonInput from '../src/ButtonInput'; import {shouldWarn} from './helpers'; describe('ButtonInput', () => { it('renders an input button element with type=button', () => { const instance = ReactTestUtils.renderIntoDocument( ...
ajax/libs/redux-form/6.0.2/redux-form.js
x112358/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-redux"), require("redux")); else if(typeof define === 'function' && define.amd) define(["react", "react-redux", "redux"], factory); e...
public/js/app/components/PageWithNavbar.js
joaoahmad/minha-lista
import React from 'react'; import Navbar from './Navbar'; class PageWithNavbar extends React.Component { constructor() { super(); } componentDidMount(){ } render() { return ( <div className="page-wrap"> <Navbar /> {this.props.children} </div> ); ...
packages/react-scripts/fixtures/kitchensink/template/src/features/syntax/RestAndDefault.js
Timer/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load({ id, ...rest } = { id: 0, user: { id: 42, ...
app/javascript/mastodon/features/followers/index.js
Toootim/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 { fetchAccount, fetchFollowers, expandFollowers, } from '../../actions/account...
src/scripts/components/common/links/links.js
jshack3r/ws-react-starter
import React from 'react'; import ReactDOM from 'react-dom'; import AppStore from '../../../stores/store'; import AppActions from '../../../actions/actions'; import StoreWatchMixin from '../../../mixins/StoreWatchMixin'; import AppLinkComponent from '../links/link'; const _getLinks = () => { return { links: AppStore...
src/js/mixins/form/form_error_handler_mixin.js
working-minds/realizejs
import React from 'react'; import _ from 'lodash'; import i18n from '../../i18n/i18n'; import PropTypes from '../../prop_types'; import { FormActions } from '../../actions'; import Flash from '../../components/flash/flash'; export default { propTypes: { errorMessage: PropTypes.string, baseErrorParam: PropTy...
docs/app/Examples/elements/List/ContentVariations/ListExampleVerticallyAligned.js
clemensw/stardust
import React from 'react' import { Image, List } from 'semantic-ui-react' const ListExampleVerticallyAligned = () => ( <List horizontal> <List.Item> <Image avatar src='http://semantic-ui.com/images/wireframe/square-image.png' /> <List.Content verticalAlign='top'> Top Aligned </List.Cont...
files/yasqe/2.6.2/yasqe.bundled.min.js
akkumar/jsdelivr
!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)...
src/helpers/universalRouter.js
nbuechler/react-redux-universal-hot-example
import React from 'react'; import Router from 'react-router'; import createRoutes from '../routes'; import {Provider} from 'react-redux'; const getFetchData = (component = {}) => { return component.WrappedComponent ? getFetchData(component.WrappedComponent) : component.fetchData; }; export function createTr...
ajax/libs/react-quill/0.2.0/react-quill.min.js
LeaYeh/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("quill")):"function"==typeof define&&define.amd?define(["react","quill"],t):"object"==typeof exports?exports.ReactQuill=t(require("react"),require("quill")):e.ReactQuill=t(e.React,e.Quill)}(this,function(e,t){retu...