path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/forerunnerdb/1.3.386/fdb-legacy.min.js | hare1039/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... |
helloworld/resources/wcs/polymer/jquery/test/data/jquery-1.9.1.ajax_xhr.min.js | mediascape/UI-engine | /*! jQuery v1.9.1 -css,-event-alias,-ajax/script,-ajax/jsonp,-effects,-offset,-dimensions,-deprecated | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],d="1.9.1 -css,-event-alias,-aja... |
src/mobile/NewsMobile.js | qingweibinary/binary-next-gen | import React, { Component } from 'react';
import Tabs from '../_common/Tabs';
import MobilePage from '../containers/MobilePage';
import NewsContainer from '../news/NewsContainer';
import VideoListContainer from '../video/VideoListContainer';
export default class NewsMobile extends Component {
constructor(props) {... |
fields/types/number/NumberField.js | codevlabs/keystone | import React from 'react';
import Field from '../Field';
import { FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'NumberField',
valueChanged (event) {
var newValue = event.target.value;
if (/^-?\d*\.?\d*$/.test(newValue)) {
this.props.onChange({
path: this.props.path,
value... |
src/server/middleware/main.js | nhardy/web-scaffold | import React from 'react';
import ReactDOMServer from 'react-dom/server';
import { last } from 'lodash-es';
import { createMemoryHistory, match } from 'react-router';
import { ReduxAsyncConnect, loadOnServer } from 'redux-connect';
import { Provider } from 'react-redux';
import assetManifest from 'server/lib/assetMani... |
src/components/SelectionPills/SelectionPills.js | instacart/Snacks | import React from 'react'
import Radium from '@instacart/radium'
import PropTypes from 'prop-types'
import ScrollTrack from '../ScrollTrack/ScrollTrack'
import SelectionPill from './SelectionPill'
import { getStyles } from './styles'
const NoOp = () => {} // eslint-disable-line no-empty-function
class SelectionPills e... |
wawhfd/static/src/js/index.js | calebrash/wawhfd | import React from 'react';
import { render } from 'react-dom';
import App from './components/app';
import '../sass/index.scss';
render(
<App />,
document.getElementById('app')
);
|
ajax/libs/recompose/0.23.0/Recompose.js | froala/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
(factory((global.Recompose = global.Recompose || {}),global.React));
}(this, (function (exports,React)... |
packages/reactor-kitchensink/src/NavTree.js | dbuhrman/extjs-reactor | import React, { Component } from 'react';
import { Panel, SearchField, Toolbar, TreeList } from '@extjs/ext-react';
export default class NavTree extends Component {
filterNav = (field, value) => {
const { store } = this.props;
this.filterRegex = new RegExp(`(${Ext.String.escapeRegex(value)})`, 'i'... |
ajax/libs/6to5/3.1.0/browser.js | Nadeermalangadan/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return... |
ajax/libs/muicss/0.9.9-rc2/react/mui-react.js | froala/cdnjs | (function (global) {
var babelHelpers = global.babelHelpers = {};
babelHelpers.classCallCheck = function (instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
};
babelHelpers.createClass = function () {
function define... |
src/utils/withFavorites.js | conferenceradar/list | import React from 'react';
import PropTypes from 'prop-types';
const enhanceWithFavorites = (OriginalComponent) => class extends React.Component {
static contextTypes = {
favorites: PropTypes.object
};
render() {
const { favorites } = this.context;
return <OriginalComponent {...this.props} favorite... |
es2015plus/react-redux/src/components/Button/index.js | lshig/forms-challenge | import React from 'react';
import PropTypes from 'prop-types';
export default function Button({ id, className, onClick, text }) {
return (
<button id={id} className={className} onClick={onClick} type="button">
{text}
</button>
);
}
Button.propTypes = {
className: PropTypes.string.isRequired,
id: ... |
math/rtools/html/jquery.js | kirbyherm/root-r-tools | /*!
* jQuery JavaScript Library v1.7.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/js/PageBarItem.js | ucev/chatroom | import React, { Component } from 'react';
import {
Link
} from 'react-router-dom';
import '../css/PageBarItem.css';
import MyAction from '../../state/action';
class PageBarItem extends Component {
constructor(props) {
super(props);
}
render() {
var page = this.props.page;
return (
<li class... |
ajax/libs/yui/3.17.2/datatable-body/datatable-body-debug.js | victorjonsson/cdnjs | /*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base... |
packages/material-ui-icons/src/FormatColorText.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".36" d="M0 20h24v4H0z" /><path d="M11 3L5.5 17h2.25l1.12-3h6.25l1.12 3h2.25L13 3h-2zm-1.38 9L12 5.67 14.38 12H9.62z" /></React.Fragment>
, 'FormatColorText');
|
admin/client/App/shared/CreateForm.js | andrewlinfoot/keystone | /**
* The form that's visible when "Create <ItemName>" is clicked on either the
* List screen or the Item screen
*/
import React from 'react';
import assign from 'object-assign';
import vkey from 'vkey';
import AlertMessages from './AlertMessages';
import { Fields } from 'FieldTypes';
import InvalidFieldType from '... |
app/components/Settings.js | lmatteis/peer-tweet | import React, { Component } from 'react';
var bencode = require('bencode')
var JSONB = require('json-buffer')
import { DhtStore, dht, opts} from '../api/DhtStore'
import Tweet from './Tweet'
import SkipList from './SkipList'
import DhtSkipList from './DhtSkipList'
import FastDhtPublish from './FastDhtPublish'
export d... |
ajax/libs/yui/3.3.0/event-custom/event-custom-base-debug.js | CristianCantoro/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 ev... |
ajax/libs/yui/3.18.0/event-custom-base/event-custom-base-debug.js | Dervisevic/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.
* @mod... |
index.android.js | atixlabs/atm-mobileapp | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import './shim.js';
import React from 'react';
import { AppRegistry } from 'react-native';
import { StackNavigator } from 'react-navigation';
import HomeScreen from './src/containers/HomeScreen';
import SendScreen from './src/compo... |
src/website/app/demos/Menu/common/DemoLayout.js | mineral-ui/mineral-ui | /* @flow */
import styled from '@emotion/styled';
import React from 'react';
import { pxToEm } from '../../../../../library/styles';
import type { StyledComponent } from '@emotion/styled-base/src/utils';
const Root: StyledComponent<{ [key: string]: any }> = styled('div')(
({ theme, width }) => ({
overflow: 'hidd... |
classic/src/scenes/traypopout/src/Scenes/UnreadScene/UnreadScene.js | wavebox/waveboxapp | import React from 'react'
import shallowCompare from 'react-addons-shallow-compare'
import UnreadMailboxList from './UnreadMailboxList'
import UnreadMailbox from './UnreadMailbox'
import SwipeableViews from 'react-swipeable-views'
import ErrorBoundary from 'wbui/ErrorBoundary'
import { withStyles } from '@material-ui/c... |
packages/material-ui-icons/src/TimerOff.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let TimerOff = props =>
<SvgIcon {...props}>
<path d="M19.04 4.55l-1.42 1.42C16.07 4.74 14.12 4 12 4c-1.83 0-3.53.55-4.95 1.48l1.46 1.46C9.53 6.35 10.73 6 12 6c3.87 0 7 3.13 7 7 0 1.27-.35 2.47-.94 3.49l1.45 ... |
clients/packages/admin-client/src/components/forms/form.spec.js | nossas/bonde-client | /* eslint-disable no-unused-expressions */
import PropTypes from 'prop-types'
import React from 'react'
import { expect } from 'chai'
import { shallow } from 'enzyme'
import { Form } from '../../components/forms'
const Button = (props) => (
<button {...props}>Done!</button>
)
Button.propTypes = {
pristine: PropT... |
ajax/libs/onsen/1.3.10/js/onsenui.min.js | magoni/cdnjs | /*! onsenui - v1.3.10 - 2015-09-10 */
!function(){function getAttributes(element){return Node_get_attributes.call(element)}function setAttribute(element,attribute,value){try{Element_setAttribute.call(element,attribute,value)}catch(e){}}function removeAttribute(element,attribute){Element_removeAttribute.call(element,att... |
dispatch/static/manager/src/js/components/ArticleEditor/tabs/BasicFieldsTab.js | ubyssey/dispatch | import React from 'react'
import { TextInput, TextAreaInput } from '../../inputs'
import * as Form from '../../Form'
import SectionSelectInput from '../../inputs/selects/SectionSelectInput'
import AuthorSelectInput from '../../inputs/selects/AuthorSelectInput'
import TagSelectInput from '../../inputs/selects/TagSele... |
ajax/libs/remoteStorage/0.10.2/remotestorage-nocache.amd.js | sashberd/cdnjs | /** remotestorage.js 0.10.2, http://remotestorage.io, MIT-licensed **/
define([], function() {
/** FILE: lib/promising.js **/
(function(global) {
function getPromise(builder) {
var promise;
if(typeof(builder) === 'function') {
setTimeout(function() {
try {
builder(promise);
}... |
template/source/scripts/main.js | rafaelrinaldi/slush-web-app | <% if(~projectTools.indexOf('React')) { %>import React from 'react';
import DOM from 'react-dom';
import Application from './components/application';
DOM.render(<Application />, document.getElementById('application'));<% } else { %>const name = `World`;
console.log(`Hello ${name}!`);<% } %>
|
src/svg-icons/maps/local-play.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalPlay = (props) => (
<SvgIcon {...props}>
<path d="M20 12c0-1.1.9-2 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2zm-4.... |
envkey-react/src/components/env_manager/env_grid_content.js | envkey/envkey-app | import React from 'react'
import ReactDOM from 'react-dom'
import h from "lib/ui/hyperscript_with_helpers"
import R from 'ramda'
import moment from 'moment'
import scrollIntoView from 'scroll-into-view'
import EntryRow from './entry_row'
import EditableCellsParent from './traits/editable_cells_parent'
import {toClass} ... |
packages/material-ui-icons/src/ViewHeadline.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z" /></g>
, 'ViewHeadline');
|
src/Pages/Cafes.js | LaurentEtienne/Kfe | import React, { Component } from 'react';
import CafeStore from '../Stores/Cafe';
let getState = () => {
return {
companyCafes: CafeStore.getCompanyCafes(),
partnerCafes: CafeStore.getPartnerCafes()
};
};
class Cafes extends Component {
constructor(props) {
super(props);
this.state = getState(... |
ajax/libs/vis/1.0.0/vis.js | bergie/cdnjs | /**
* vis.js
* https://github.com/almende/vis
*
* A dynamic, browser-based visualization library.
*
* @version 1.0.0
* @date 2014-05-02
*
* @license
* Copyright (C) 2011-2014 Almende B.V, http://almende.com
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file e... |
app/javascript/mastodon/features/compose/components/upload_progress.js | pointlessone/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import { FormattedMessage } from 'react-intl';
export default class UploadProgress extends React.PureComponent {
static propTypes = {
active: PropTypes... |
ajax/libs/6to5/3.5.1/browser.js | RobLoach/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return... |
react-flux-mui/js/material-ui/src/svg-icons/av/repeat.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvRepeat = (props) => (
<SvgIcon {...props}>
<path d="M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z"/>
</SvgIcon>
);
AvRepeat = pure(AvRepeat);
AvRepeat.displayName = 'AvRepeat';
AvRepeat.mu... |
src/components/Query/QueryResult.js | SteMcLellan/queryman | import React, { Component } from 'react';
const QueryResult = ({ resultString }) => {
return (
<pre>
<code>
{ resultString }
</code>
</pre>
);
};
export default QueryResult; |
cra-network-aware-data-fetching/src/App.js | GoogleChromeLabs/adaptive-loading | /*
* Copyright 2019 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
src/internal/__tests__/Selection-test.js | wfp/ui | import React from 'react';
import Selection from '../Selection';
import { mount } from 'enzyme';
describe('Selection', () => {
let mockProps;
beforeEach(() => {
mockProps = {
initialSelectedItems: [],
render: jest.fn(() => <div />),
};
});
it('should render', () => {
const wrapper = m... |
wail-ui/loadingScreens/firstTime/components/progress/progressMessage.js | N0taN3rd/wail | import PropTypes from 'prop-types'
import React from 'react'
import { connect } from 'react-redux'
import { Step, Stepper, StepLabel } from 'material-ui/Stepper'
import { OsCheckContents } from '../osCheck'
import { JavaCheckContents } from '../javaCheck'
import ServiceContents from '../serviceCheck/serviceCheckMessage... |
ajax/libs/jquery-handsontable/0.10.2/jquery.handsontable.js | sjlu/cdnjs | /**
* Handsontable 0.10.2
* Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs
*
* Copyright 2012, Marcin Warpechowski
* Licensed under the MIT license.
* http://handsontable.com/
*
* Date: Thu Jan 23 2014 23:06:23 GMT+0100 (CET)
*/
/*jslin... |
src/docs/Props.js | chenchenalex/react-reusable-chenchenalex | import React from 'react';
import PropTypes from 'prop-types';
const Props = ({props}) => {
return (
<table className="props">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
<th>Type</th>
<th>Default</th>
<th>Required</th>
</tr>
</the... |
ajax/libs/react-leaflet/1.6.5/react-leaflet.min.js | ahocevar/cdnjs | !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("leaflet"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","leaflet","react","react-dom"],e):e(t.ReactLeaflet={},t.L,t.React,t.ReactDOM)}(this,function(t,e,n,r){"use strict";function o(t)... |
ajax/libs/react-native-web/0.13.0/exports/TextInput/index.js | cdnjs/cdnjs | /**
* Copyright (c) Nicolas Gallagher.
* 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 { forwardRef, useRef } from 'react';
import createElement from '../createElement'... |
src/components/MobileMenu.js | seripap/wedding.seripap.com | import React, { Component } from 'react';
import { Link } from 'react-router';
import classNames from 'classnames';
export default class MobileMenu extends Component {
constructor(props) {
super(props);
}
render() {
let headerClass = classNames({
'header-toggle': true,
'is-active': this.pro... |
Realization/frontend/czechidm-core/src/components/advanced/RoleCatalogueInfo/RoleCatalogueInfo.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
//
import * as Basic from '../../basic';
import { RoleCatalogueManager } from '../../../redux';
import AbstractEntityInfo from '../EntityInfo/AbstractEntityInfo';
const manager = new RoleCatalogueManager();
/**
* Ro... |
ajax/libs/angular.js/1.0.0rc9/angular-scenario.js | SaravananRajaraman/cdnjs | /*!
* jQuery JavaScript Library v1.7.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/components/mediabox/mediabox.js | n7best/react-weui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from '../../utils/classnames';
/**
* Media Object, Typically use with `Panel` to display pictures and text, consists of `MediaBoxBody`, `MediaBoxDescription`, `MediaBoxHeader`
*
*/
export default class MediaBox extends React.Component ... |
files/rxjs/2.2.27/rx.all.compat.js | ntd/jsdelivr | // 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
};
v... |
ajax/libs/redux-form/1.5.1/redux-form.min.js | pvnr0082t/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReduxForm=e(require("react")):t.ReduxForm=e(t.React)}(this,function(t){return function(t){function e(n){if(r[n])return r[n].expor... |
lib/jquery-1.7.min.js | purcell/emacs_chrome | /*! jQuery v1.7 jquery.com | jquery.org/license */
(function(a,b){function cA(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cx(a){if(!cm[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cn||(cn=c.createElement("iframe"),cn.frameBorder=... |
frontend/src/components/common/hoc/tableWithLocalState.js | unicef/un-partner-portal | // eslint-disable-next-line
import React, { Component } from 'react';
import R from 'ramda';
import PropTypes from 'prop-types';
import {
calculatePaginatedPage,
} from '../../../helpers/apiHelper';
class TableWithLocalState extends Component {
constructor(props) {
super(props);
this.state = { page: 1, pag... |
client/src/components/Documents/documentList.js | natalie-elizabeth/doczy | import React from 'react';
import PropTypes from 'prop-types';
import FloatingActionButton from 'material-ui/FloatingActionButton';
import ContentAdd from 'material-ui/svg-icons/content/add';
import DocumentView from './documentView';
import { Card, CardText } from 'material-ui/Card';
const DocumentList = ({ documents... |
src/renderers/shared/event/eventPlugins/__tests__/ResponderEventPlugin-test.js | ning-github/react | /**
* 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... |
test/year_dropdown_test.js | BrunoAlcides/react-datepicker | import React from 'react'
import range from 'lodash/range'
import moment from 'moment'
import YearDropdown from '../src/year_dropdown.jsx'
import YearDropdownOptions from '../src/year_dropdown_options.jsx'
import { mount } from 'enzyme'
describe('YearDropdown', () => {
var yearDropdown
var lastOnChangeValue
fun... |
jetpack-9.9/vendor/automattic/jetpack-connection-ui/build/index.js | Automattic/vip-go-mu-plugins | (function(e, a) { for(var i in a) e[i] = a[i]; }(window, /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/... |
examples/tutorial/step-2/src/main.js | akrumel/f.lux | import React from 'react';
import ReactDOM from 'react-dom';
import { Store } from "f.lux";
import TodoRootProperty from "./TodoRootProperty";
import Todos from "./Todos.react";
// Load the babel polyfill for es2015 support
require("babel-polyfill");
// create the store
const root = new TodoRootProperty();
const st... |
packages/material-ui-icons/src/CameraEnhanceOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M12 10l-.94 2.06L9 13l2.06.94L12 16l.94-2.06L15 13l-2.06-.94zm8-5h-3.17L15 3H9L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 14H4V7h4.05l.59-.65L9.88 5h4.24l1.24 1.35... |
lib/controllers/git-tab-controller.js | atom/github | import path from 'path';
import React from 'react';
import PropTypes from 'prop-types';
import {TextBuffer} from 'atom';
import GitTabView from '../views/git-tab-view';
import UserStore from '../models/user-store';
import RefHolder from '../models/ref-holder';
import {
CommitPropType, BranchPropType, FilePatchItemP... |
node_modules/react-icons/go/dashboard.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const GoDashboard = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m19.8 18.1c-2.5 0-4.4 2-4.4 4.4s1.9 4.4 4.4 4.4 4.3-2 4.3-4.4c0-0.3 0-0.7-0.1-1 3.2-3.7 8.1-9.5 10.8-12.7 0.9-1.2-0.1-2.2-1.3-1.3-3.3 2.7-9.1 7.6-12.8 10.8-0.3-0.1-... |
src/svg-icons/av/replay-5.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvReplay5 = (props) => (
<SvgIcon {...props}>
<path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-1.3 8.9l.2-2.2h2.4v.7h-1.7l-.1.9s.1 0 .1-.1.1 0 .1-.1.1 0 .2... |
docs/components/Configuration.js | nikgraf/belle | import React, { Component } from 'react';
import { Button, Card } from 'belle';
import Code from './Code';
import ThemeSwitch from '../theme/ThemeSwitch';
const overwriteCardStyleExample = `var belle = require('belle');
belle.style.card.style = {
marginBottom: 20,
padding: 20,
borderRadius: 2,
color: '#FFF',
... |
app/javascript/mastodon/features/hashtag_timeline/index.js | Ryanaka/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import ColumnSettingsContainer from './... |
jsx/PaginationLinks.js | driusan/Loris | /* exported RPaginationLinks */
import React, {Component} from 'react';
import PropTypes from 'prop-types';
/**
* Pagination component
*/
class PaginationLinks extends Component {
/**
* @constructor
* @param {object} props - React Component properties
*/
constructor(props) {
super(props);
this... |
src/components/stat/stat.js | isnoth/BN5x | import React, { Component } from 'react';
import ReactDOM from "react-dom"
import { connect } from 'react-redux';
import {stat} from './stat_util'
class Stat extends React.Component {
componentDidMount() {
console.log(this)
const {auth, firebase} = this.props
var e1 = ReactDOM.findDOMNode(this);
co... |
react/features/settings/components/web/ProfileTab.js | jitsi/jitsi-meet | // @flow
import Button from '@atlaskit/button/standard-button';
import { FieldTextStateless } from '@atlaskit/field-text';
import React from 'react';
import UIEvents from '../../../../../service/UI/UIEvents';
import {
sendAnalytics,
createProfilePanelButtonEvent
} from '../../../analytics';
import { AbstractD... |
my-app/src/components/pages/projectpages/dnd2/index.js | sThig/jabbascrypt | import React, { Component } from 'react';
import Container from './Container';
export default class SortableSimple extends Component {
render() {
return (
<div>
<Container />
</div>
);
}
}
|
node_modules/material-ui/TimePicker/ClockNumber.js | Alex-Shilman/Drupal8Node | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
src/components/form-inputs/phonenumber.js | aichbauer/redux-valid-form | import React from 'react';
import PropTypes from 'prop-types';
import Input from '../../containers/input';
const Phonenumber = (props) => (
<Input
type={props.type}
data-form-id={props['data-form-id']}
className={props.className}
id={props.id}
max={props.max}
min={props.min}
placeholde... |
src/svg-icons/action/assignment-turned-in.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentTurnedIn = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .... |
CompositeUi/src/views/component/SearchMember.js | kreta-io/kreta | /*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <benatespina@gmail.com>
* (c) Gorka Laucirica <gorka.lauzirika@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import React from 'react';
import {connec... |
ajax/libs/react/0.12.2/react-with-addons.min.js | wil93/cdnjs | /**
* React (with addons) v0.12.2
*
* Copyright 2013-2014, 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... |
herring/puzzles/static-src/components/nav-header.js | aldeka/herring | 'use strict';
var React = require('react'),
Utils = require('../utils');
var NavHeaderComponent = React.createClass({
render: function() {
var rs,
roundTags = this.props.rounds.map(function(round) {
var target = '#' + Utils.targetifyRound(round);
var key = 'shortcut-' + round.id... |
src/icons/BrightnessAutoIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class BrightnessAutoIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M21.7 25.3h4.6L24 18l-2.3 7.3zM40 17.37V8h-9.37L24 1.37 17.37 8H8v9.37L1.37 24 8 30.63V40h9.37L24 4... |
Examples/UIExplorer/NavigationExperimental/NavigationBasicExample.js | hayeah/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
src/apps/Profile/ProfileBillingPlanCancel.js | Syncano/syncano-dashboard | import React from 'react';
import Reflux from 'reflux';
import Radium from 'radium';
import Helmet from 'react-helmet';
import { withRouter } from 'react-router';
import ProfileBillingPlanStore from './ProfileBillingPlanStore';
import ProfileBillingPlanActions from './ProfileBillingPlanActions';
import { Container, I... |
ajax/libs/react-nvd3/0.4.1/react-nvd3.min.js | sashberd/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("d3"),require("nvd3")):"function"==typeof define&&define.amd?define(["react","d3","nvd3"],e):"object"==typeof exports?exports.NVD3Chart=e(require("react"),require("d3"),require("nvd3")):t.NVD3Chart=e(t.React,t.d3,... |
src/parser/demonhunter/vengeance/modules/talents/SpiritBombFrailtyDebuff.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import Enemies from 'parser/shared/modules/Enemies';
import SPELLS from 'common/SPELLS/index';
import SpellLink from 'common/SpellLink';
import { formatPercentage, formatThousands... |
ajax/libs/backbone.radio/0.2.0/backbone.radio.min.js | yukinying/cdnjs | // Backbone.Radio v0.1.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... |
src/debug/debug.js | croy-kronos/fna-chrome-plugin | import React from 'react'
import ScriptInjector from '../helpers/Injector';
import { Button, Panel } from 'react-bootstrap';
class DebugComponent extends React.Component {
_toggleDebug() {
const injector = new ScriptInjector();
injector.injectFromFile("./debug/injects/toggleDebug.js");
}
render() {
return (
... |
docs-ui/components/hovercard.stories.js | beeftornado/sentry | import React from 'react';
import {withInfo} from '@storybook/addon-info';
import {text, select} from '@storybook/addon-knobs';
import Hovercard from 'app/components/hovercard';
const positionOptions = {
top: 'top',
bottom: 'bottom',
left: 'left',
right: 'right',
};
const showOptions = {
true: true,
fals... |
src/icons/SocialBitcoinOutline.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class SocialBitcoinOutline extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M279.7,48v47v15.1l15.1,0.8c16.9,0.9,28.8,3.3,40.7,7.9c13.8,5.3,24.2,12.6,31.1,21.7c5.7,7.6,9,19.4,10,36... |
antd-dva/ant-design-pro-demo/test/src/components/Trend/index.js | JianmingXia/StudyTest | import React from 'react';
import { Icon } from 'antd';
import classNames from 'classnames';
import styles from './index.less';
const Trend = ({ colorful = true, flag, children, className, ...rest }) => {
const classString = classNames(styles.trendItem, {
[styles.trendItemGrey]: !colorful,
}, className);
ret... |
app/components/NotifyUpdate/index.js | medevelopment/UMA | import React, { Component } from 'react';
import axios from 'axios';
import { propertySections } from '../../functions/propertiesFuncs';
import * as toastify from '../../functions/Toastify';
import styled from 'styled-components';
import { SpeedDial, SpeedDialItem } from 'react-mui-speeddial';
import ContentAdd from '... |
react-graphql-webpack/src/routes/contact/index.js | josedab/react-examples | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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 React from 'react';
import Contact from './Contact'... |
src/components/topic/versions/TopicVersionContainer.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import LoadingSpinner from '../../common/LoadingSpinner';
import ManagePlatformsContainer from '../platforms/ManagePlatformsContainer'... |
src/js/pages/home.js | Wildhoney/earlytwenties.co.uk | import 'gsap';
import React from 'react';
import {findDOMNode} from 'react-dom';
export default class extends React.Component {
/**
* @method componentWillMount
* @return {void}
*/
componentDidMount() {
this.state = { expanded: false };
const pictures = findDOMNode(this.refs.p... |
src/Grid.js | zanjs/react-ui | 'use strict'
import React from 'react'
import classnames from 'classnames'
import getGrid from './higherorder/grid'
@getGrid
export default class Grid extends React.Component {
static displayName = 'Grid'
static propTypes = {
children: React.PropTypes.any,
className: React.PropTypes.string,
style: Re... |
src/components/game.js | ProstoBoris/ReactMemoryGame | import React, { Component } from 'react';
import Squares from "./squares";
import Squares25 from "./squares_25";
import Result from "./result";
class Game extends React.Component {
constructor(props) {
super(props);
this.state = {
numberOfGames: 0,
finalScore: 0,
... |
src/svg-icons/image/broken-image.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrokenImage = (props) => (
<SvgIcon {...props}>
<path d="M21 5v6.59l-3-3.01-4 4.01-4-4-4 4-3-3.01V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2zm-3 6.42l3 3.01V19c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2v-6.58l3 2.99 4-4 4 4 ... |
node_modules/react-bootstrap/es/Grid.js | superKaigon/TheCave | 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 ... |
app/components/layout/Flashes/index.js | buildkite/frontend | // @flow
import React from 'react';
import FlashesStore, { type FlashItem } from 'app/stores/FlashesStore';
import PusherStore from 'app/stores/PusherStore';
import CentrifugeStore from 'app/stores/CentrifugeStore';
import Flash from './flash';
const FLASH_CONN_ERROR_ID = 'FLASH_CONN_ERROR';
type State = {
flashes... |
app/javascript/mastodon/containers/card_container.js | codl/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Card from '../features/status/components/card';
import { fromJS } from 'immutable';
export default class CardContainer extends React.PureComponent {
static propTypes = {
locale: PropTypes.string,
card: PropTypes.array.isRequired,
};
... |
app/components/Dice.js | jimzhang93/machi-koro-nyc | import React from 'react';
import ReactDice from 'react-dice-complete';
import 'react-dice-complete/dist/styles.css';
export default class Dice extends React.Component {
rollAll() {
this.reactDice.rollAll()
}
static rollDoneCallback(num) {
console.log(`You rolled a ${num}`)
}
ren... |
entry_types/scrolled/package/src/frontend/PlayerControls/WaveformPlayerControls/Wavesurfer.js | codevise/pageflow | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import assign from 'deep-assign';
import Measure from 'react-measure';
import WaveSurfer from 'wavesurfer.js';
const EVENTS = [
'audioprocess',
'error',
'finish',
'loading',
'mouseup',
'pause',
'play',
'ready',
'scroll',
... |
test/setup.js | machix/mm-inventory | /**
* 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.
*/
/* Configure Mocha test runner, see package.json/script... |
src/components/Todo/ToDoEdit.js | zzhero/tomatoTime | import React, { PropTypes } from 'react';
import * as m from 'material-ui';
import { connect } from 'react-redux';
import { actions as todoAction} from '../../redux/modules/todo.js';
class ToDoEdit extends React.Component {
constructor(props) {
super(props);
}
// 删除操作
handlerDelete(todoItem) {
const {... |
src/svg-icons/toggle/check-box.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ToggleCheckBox = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/>
</SvgIcon>
);... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.