path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/rxjs/2.3.25/rx.all.compat.js | Olical/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/rxjs/3.1.0/rx.lite.compat.js | iwdmb/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'function': true,
'object': true
};
var
freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && expo... |
Examples/UIExplorer/LayoutAnimationExample.js | Emilios1995/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,
... |
ajax/libs/forerunnerdb/1.3.557/fdb-all.min.js | kennynaoh/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... |
node_modules/material-ui/svg-icons/action/hourglass-full.js | rekyyang/ArtificalLiverCloud | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
ajax/libs/jquery.fancytree/2.8.1/jquery.fancytree.js | ColinEberhardt/cdnjs | /*!
* jquery.fancytree.js
* Dynamic tree view control, with support for lazy loading of branches.
* https://github.com/mar10/fancytree/
*
* Copyright (c) 2008-2015, Martin Wendt (http://wwWendt.de)
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.8.1
* @dat... |
src/views/Home/components/Challenge.js | jeredm/simplefit | import React from 'react'
import { Button, Card, Image } from 'semantic-ui-react'
const Challenge = () => (
<Card.Group>
<Card>
<Card.Content>
<Image floated='right' size='mini' src='http://semantic-ui.com/images/avatar/large/steve.jpg' />
<Card.Header>
Challenge Request
<... |
app/components/HomePortfolioSection/index.js | yagneshmodh/personalApplication | import React from 'react';
import Title from '../Title/index';
import RedirectButton from '../RedirectButton/index';
import baseStyle from '../../common/Style/baseStyle.css';
// import Paper from 'material-ui/Paper';
import SwipeWrapper from '../../containers/SwipeWrapper/index';
import ProjectCard from '../ProjectCard... |
src/svg-icons/image/panorama-vertical.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePanoramaVertical = (props) => (
<SvgIcon {...props}>
<path d="M19.94 21.12c-1.1-2.94-1.64-6.03-1.64-9.12 0-3.09.55-6.18 1.64-9.12.04-.11.06-.22.06-.31 0-.34-.23-.57-.63-.57H4.63c-.4 0-.63.23-.63.57 0 .1.02... |
app/components/ToolSnapshotArea/index.js | rapicastillo/beautifulrising-client | /**
*
* ToolSnapshotArea
*
*/
import React from 'react';
import styled from 'styled-components';
import ContentBlock from 'components/ContentBlock';
import LanguageThemeProvider from 'components/LanguageThemeProvider';
import { FormattedMessage, injectIntl} from 'react-intl';
import messages from './messages';
impor... |
app/components/shared/data.js | nypl-registry/browse | import React from 'react'
const Data = React.createClass({
componentDidMount () {
setInterval(function () { this.render() }.bind(this), 1000)
},
componentWillUpdate () {
return true
},
toggleApiList (event) {
this.refs.databox.style.height = '100px'
this.refs.databox.style.overflowY = 'scrol... |
gatsby-markdown-personal-website/src/components/ui/InfoBlock/index.js | lrsnider/lrsnider.github.io | import React from 'react';
import PropTypes from 'prop-types';
import Icon from 'components/ui/Icon';
import * as Styled from './styles';
const InfoBlock = ({ icon, title, content, center }) => (
<Styled.InfoBlock center={center}>
<Styled.Icon>
<Icon icon={icon} />
</Styled.Icon>
<Styled.Wrapper ... |
client/components/init/demo.js | ZeHiro/kresus | import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { actions } from '../../store';
import { translate as $t } from '../../helpers';
import URL from '../../urls';
const BASE_PATH = URL.initialize.url();
const Demo = connect(
null,
dispatch => {
... |
packages/cmf/src/settings.js | Talend/ui | /**
* Internal. All stuff related to the settings handling in CMF.
* @module react-cmf/lib/settings
*/
import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import memoize from 'lodash/memoize';
/**
* if viewId is undefined, try to generate a meaningfull one
* else ... |
ajax/libs/react/0.14.8/react-with-addons.min.js | hare1039/cdnjs | /**
* React (with addons) v0.14.8
*
* 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... |
src/AsyncCreatable.js | hannahsquier/react-select | import React from 'react';
import Select from './Select';
function reduce(obj, props = {}){
return Object.keys(obj)
.reduce((props, key) => {
const value = obj[key];
if (value !== undefined) props[key] = value;
return props;
}, props);
}
const AsyncCreatable = React.createClass({
displayName: 'Asyn... |
ajax/libs/vue-chartjs/2.6.3/vue-chartjs.js | cdnjs/cdnjs | /*!
* vue-chartjs v2.6.3
* (c) 2017 Jakub Juszczak <jakub@posteo.de>
* http://vue-chartjs.org
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("vue"), require("chart.js"));
else if(typeof define === 'fun... |
examples/baisc.js | react-component/calendar | import React from 'react';
import Calendar from '../src';
import MonthCalendar from '../src/MonthCalendar';
export default () => (
<>
<MonthCalendar
onSelect={value => {
console.log(value);
}}
/>
<Calendar onSelect={(rest, ca) => console.log(rest, ca)} />
</>
);
|
test/PageItemSpec.js | roadmanfong/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import PageItem from '../src/PageItem';
describe('PageItem', function () {
it('Should output a "list item" as root element, and an "anchor" as a child item', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Pa... |
client/acp/view/widget/page-ranking.js | NicolasSiver/nodebb-plugin-ns-points | import React from 'react';
import {connect} from 'react-redux';
import SaveButton from '../display/save-button';
import saveProperties from '../../actions/save-properties';
import {updateProperty} from '../../actions/simple-actions';
class PageRanking extends React.Component {
constructor(props) {
super(p... |
src/components/Feedback/Feedback.js | jwilliams33490/save-a-little-ui | /**
* 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 withStyles from 'isomorp... |
ajax/libs/vis/3.1.0/vis.js | rigdern/cdnjs | /**
* vis.js
* https://github.com/almende/vis
*
* A dynamic, browser-based visualization library.
*
* @version 3.1.0
* @date 2014-07-22
*
* @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... |
docs/src/components/TocNotion.js | tannerlinsley/react-table | import * as React from 'react';
import cx from 'classnames';
import { useTocHighlight } from './useTocHighlight';
import styles from './Toc.module.css';
import { NOTION_ANCHOR_CLASSNAME } from './blog/Heading';
const TOP_OFFSET = 100;
const getHeadingDataFromAnchor = el => {
return {
text: el.getAttribute('data-... |
app/containers/CommandeEdit/components/FondsOkMessage.js | Proxiweb/react-boilerplate | import React from 'react';
import PropTypes from 'prop-types';
import ActionDoneIcon from 'material-ui/svg-icons/action/done';
import shader from 'shader';
import styles from './styles.css';
const FondsOkMessage = ({ color, montant, balance }) => {
const iconStyle = {
height: 40,
width: 40,
color: shader... |
packages/react-scripts/fixtures/kitchensink/src/features/env/ShellEnvVariables.js | appier/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 from 'react';
export default () => (
<span id="feature-shell-env-variables">
{process.env.REACT_APP_SHELL_ENV_MESSAG... |
app/components/UGFooterSitemap/FollowUsList.js | perry-ugroop/ugroop-react-dup2 |
import React from 'react';
import UGFooterLinkList from './UGFooterLinkList';
const FollowUsList = UGFooterLinkList[0].FollowUs.map((items, index) =>
<li key={index}>
<a href={items.url} alt={items.Name} className={items.classname}>
{items.Name}
</a></li>
);
export default FollowUsList;
|
src/elements/List/ListDescription.js | Semantic-Org/Semantic-UI-React | import cx from 'clsx'
import PropTypes from 'prop-types'
import React from 'react'
import {
childrenUtils,
createShorthandFactory,
customPropTypes,
getElementType,
getUnhandledProps,
} from '../../lib'
/**
* A list item can contain a description.
*/
function ListDescription(props) {
const { children, cl... |
app/components/MainContainer/Main/TabController/AlarmsStackController/AlarmEditContainer/AlarmEdit/InputField/index.js | reubn/atomic | import React from 'react'
import {View, Text, TextInput} from 'react-native'
import {container, title, input, cursorColor} from './styles'
export default ({title: titleText, value, onChange}) => (
<View style={container}>
<Text style={title}>{titleText}</Text>
<TextInput
style={input}
selectionC... |
src/renderer/components/Shared/TrackRow.react.js | MrBlenny/museeks | import React, { Component } from 'react';
import { connect } from 'react-redux';
import lib from '../../lib';
import classnames from 'classnames';
class TrackRow extends Component {
static propTypes = {
children: React.PropTypes.array,
selected: React.PropTypes.bool,
trackId: React.PropT... |
src/svg-icons/device/signal-cellular-connected-no-internet-1-bar.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularConnectedNoInternet1Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M20 10v8h2v-8h-2zm-8 12V12L2 22h10zm8 0h2v-2h-2v2z"/>
</SvgIcon>
);
Devi... |
src/components/Lane/LaneHeader/LaneMenu.js | rcdexta/react-trello | import React from 'react'
import PropTypes from 'prop-types'
import { Popover } from 'react-popopo'
import { CustomPopoverContent, CustomPopoverContainer } from 'rt/styles/Base'
import {
LaneMenuTitle,
LaneMenuHeader,
LaneMenuContent,
DeleteWrapper,
LaneMenuItem,
GenDelButton,
MenuButton,
} from 'rt/st... |
src/js/AppContainer.js | gabsprates/facomp-quiz | import React, { Component } from 'react';
import {
HashRouter as Router, Route
} from 'react-router-dom';
import io from 'socket.io-client'
import QuizBox from './Components/QuizBox';
import QuestionContainer from './Components/Question/QuestionContainer';
import config from '../../config/config';
import Requests fro... |
example1/toilet/ios_views/read/topic.js | anchoretics/ztf-work-app | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
TextInput,
ScrollView,
Image,
TouchableOpacity
} from 'react-native';
import Util from './../util';
import List from './list';
import TWebView from './../webview';
class Topic extends Component{
constructor(props){
super... |
packages/material-ui-icons/src/CheckCircleRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM9.29 16.29L5.7 12.7a.9959.9959 0 010-1.41c.39-.39 1.02-.39 1.41 0L10 14.17l6.88-6.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-7... |
ajax/libs/js-data/2.0.0-beta.10/js-data-debug.js | Sneezry/cdnjs | /*!
* js-data
* @version 2.0.0-beta.10 - 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 webpackUniver... |
src/svg-icons/maps/person-pin.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsPersonPin = (props) => (
<SvgIcon {...props}>
<path d="M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 3.3c1.49 0 2.7 1.21 2.7 2.7 0 1.49-1.21 2.7-2.7 2.7-1.49 0-2... |
ajax/libs/rxjs/2.3.20/rx.all.js | him2him2/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... |
app/containers/LocaleToggle/index.js | stephme/react-specly | /*
*
* LanguageToggle
*
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import Toggle from 'components/Toggle';
import Wrapper from './Wrapper';
import messages from './messages';
import { appLocales } from '../../i18n';
import { changeLocale } from ... |
src/index.js | cascada-io/island | import React from 'react';
import ReactDOM from 'react-dom';
import 'normalize.css';
import Root from './Root';
import registerServiceWorker from './utils/registerServiceWorker';
import injectTapEventPlugin from 'react-tap-event-plugin';
import configureStore from './store/configureStore';
import rootSaga from './sagas... |
app/components/comments/comment-box.js | tthew/react-tutorial-es2015 | import React from 'react'
import jQuery from 'jquery'
import CommentList from './comment-list'
import CommentForm from './comment-form'
export default class CommentBox extends React.Component {
constructor(props) {
super(props)
this.state = {
url: props.url,
data: []
}
}
loadCommentsFro... |
examples/with-relay-modern/lib/RelayProvider.js | giacomorebonato/next.js | import React from 'react'
import PropTypes from 'prop-types'
// Thank you https://github.com/robrichard
// https://github.com/robrichard/relay-context-provider
class RelayProvider extends React.Component {
getChildContext () {
return {
relay: {
environment: this.props.environment,
variable... |
src/ColorPicker/color-picker-history.js | skyiea/wix-style-react | import React from 'react';
import {bool, object} from 'prop-types';
import css from './color-picker-history.scss';
const ColorPickerHistory = ({show, current, previous}) => {
if (show) {
return (
<div className={css.root}>
<div style={{background: previous.hex()}}/>
<div style={{background... |
src/Parser/Core/Modules/Features/Images/Mana.js | hasseboulen/WoWAnalyzer | import React from 'react';
const icon = props => (
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="16 16 32 32" {...props}>
<g>
<path d="M44.584,43.126l-7.489-11.73v-4.722h0.425c1.753,0,3.335-1.432,3.335-3.29v-1.35 c0-1.857-1.582-3.328-3.335-3.328H26.736c-1.753,0-3.428,1.471-3.428,3.328v1.... |
assets/themes/metronic/plugins/jquery-validation/lib/jquery-1.6.4.js | zoorz/zozorz | /*!
* jQuery JavaScript Library v1.6.4
* 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.
... |
frontend/src/components/SignupForm/container.js | plusbeauxjours/nomadgram | import React, { Component } from 'react';
import PropTypes from "prop-types";
import SignupForm from './presenter';
class Container extends Component {
state = {
email: "",
name: "",
username: "",
password: ""
};
static PropTypes = {
facebookLogin: PropTypes.func.isRequired,
createAccount... |
ajax/libs/instantsearch.js/1.8.2/instantsearch.min.js | extend1994/cdnjs | /*! instantsearch.js 1.8.2 | © Algolia Inc. and other contributors; Licensed MIT | github.com/algolia/instantsearch.js */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.instantsearch=t():e.instantsea... |
examples/with-portals/src/index.js | casesandberg/react-color | import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
ReactDOM.render(
<App />,
document.getElementById('root')
)
|
src/containers/HeaderContainer.js | madsid/spz | import React from 'react';
import HeaderLayout from 'layouts/HeaderLayout';
export default class HeaderContainer extends React.Component{
static propTypes = {
}
static defaultProps = {
}
render() {
return (
<HeaderLayout />
);
}
} |
src/components/notFound.js | KovDimaY/React-Highcharts | import React from 'react';
export default function NotFound() {
return (
<div className="row not-found-page">
<div className="not-found-page__text">
<h1 className="not-found-page__title">
<b className="not-found-page__status-code">404</b>
Page not found
</h1>
<di... |
examples/shared/wrapInTestContext.js | Reggino/react-dnd | import React, { Component } from 'react';
import TestBackend from 'react-dnd/modules/backends/Test';
import { DragDropContext } from 'react-dnd';
export default function wrapInTestContext(DecoratedComponent) {
@DragDropContext(TestBackend)
class TestStub extends Component {
render() {
return <DecoratedCo... |
docs/src/pages/style/SvgIcons.js | AndriusBil/material-ui | // @flow weak
import React from 'react';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import blue from 'material-ui/colors/blue';
import green from 'material-ui/colors/green';
import red from 'material-ui/colors/red';
import SvgIcon from 'mat... |
src/components/LogView/LogViewEntry.example.js | 6congyao/CGB-Dashboard | /*
* Copyright (c) 2016-present, Parse, LLC
* All rights reserved.
*
* This source code is licensed under the license found in the LICENSE file in
* the root directory of this source tree.
*/
import React from 'react';
import LogViewEntry from 'components/LogView/LogViewEntry.react';
export const component = Log... |
docs/app/Examples/elements/Divider/Types/DividerExampleHorizontal.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Segment, Button, Divider } from 'semantic-ui-react'
const DividerExampleHorizontal = () => (
<Segment padded>
<Button primary fluid>Login</Button>
<Divider horizontal>Or</Divider>
<Button secondary fluid>Sign Up Now</Button>
</Segment>
)
export default DividerExample... |
src/rsg-components/Playground/PlaygroundRenderer.js | bluetidepro/react-styleguidist | import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import Styled from 'rsg-components/Styled';
export const styles = ({ space, color, borderRadius }) => ({
root: {
marginBottom: space[4],
},
preview: {
padding: space[2],
border: [[1, color.border, 'solid']],
borderRa... |
inf-ufg/js/flexslider/bower_components/jquery/src/event.js | FabricaDeSoftwareINF/PortalDoInf012017 | define([
"./core",
"./var/strundefined",
"./var/rnotwhite",
"./var/hasOwn",
"./var/slice",
"./event/support",
"./core/init",
"./data/accepts",
"./selector"
], function( jQuery, strundefined, rnotwhite, hasOwn, slice, support ) {
var rformElems = /^(?:input|select|textarea)$/i,
rkeyEvent = /^key/,
rmouseEve... |
app/components/AccDetails/index.js | pauleonardo/demo-trans | /**
*
* AccDetails
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import {
Box,
Title,
Column,
Columns,
} from 'bloomer';
import Button from 'components/Button';
import { FormattedMessage } from 'react-intl';
import messages from './messages';
function AccDetails({
backToPrincipal,
... |
react-advanced-boilerplate/app/components/widgets/TwitterStream.js | rwachtler/react-twitstats | import React from 'react';
import {shouldPureComponentUpdate} from 'react-pure-render';
import {connect} from 'react-redux';
import cookie from 'react-cookie';
import Button from '../Button';
import io from 'socket.io-client';
import {addTweet, getUserTimeline} from '../../actions/tweetActions';
import _ from 'lodash';... |
ajax/libs/react-native-web/0.15.7/cjs/vendor/react-native/StaticContainer/index.js | cdnjs/cdnjs | /**
* 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.
*
* @format
*
*/
'use strict';
exports.__esModule = true;
exports.default = void 0;
var React = _interopRequireWildcard(require(... |
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/InputGroup.js | JamieMason/npm-cache-benchmark | 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 ... |
ajax/libs/primereact/7.0.0-rc.2/knob/knob.esm.js | cdnjs/cdnjs | import React, { Component } from 'react';
import { classNames } from 'primereact/core';
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
function _defineProperties(target, props) {
for (var i = 0; i < pr... |
chrome/common/extensions/docs/examples/extensions/proxy_configuration/test/proxy_form_controller_test.js | BigBrother1984/android_external_chromium_org | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Stub out the `chrome.proxy`, `chrome.i18n`, and `chrome.extension` APIs
chrome = chrome || {
proxy: {
settings: {
get: function() {},
... |
src/components/main/parts/partner/partners.page.js | PolexRufous/FarmReactUI | import React from 'react';
import PartnersTable from './partners.table'
import { FormattedMessage } from 'react-intl';
export default class PartnersPage extends React.Component{
render(){
const { partners } = this.props;
return(
<section id="right-main-side" className="col-md-12">
... |
ajax/libs/react/0.13.3/react.js | raszi/cdnjs | /**
* React v0.13.3
*/
(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}els... |
app/static/src/performer/ElectricalProfileForm.js | SnowBeaver/Vision | import React from 'react';
import Checkbox from 'react-bootstrap/lib/Checkbox';
import Panel from 'react-bootstrap/lib/Panel';
import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table';
import FormControl from 'react-bootstrap/lib/FormControl';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import... |
ajax/libs/react-datepicker/0.21.0/react-datepicker.js | brix/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("moment"), require("react-dom"), require("react"), require("react-onclickoutside"));
else if(typeof define === 'function' && define.amd)
define(["moment", "rea... |
__tests__/VerticalTimeline_test.js | stephane-monnot/react-vertical-timeline | /**
* @jest-environment jsdom
*/
import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import { mockAllIsIntersecting } from 'react-intersection-observer/test-utils';
import VerticalTimeline from '../src/VerticalTimeline';
beforeEach(() => {
mockAllIsIntersecting(true);
});
... |
src/components/Label/Label.js | coryhouse/ps-react | import React from 'react';
import PropTypes from 'prop-types';
/** Label with required field display, htmlFor, and block styling */
function Label({htmlFor, label, required}) {
return (
<label style={{display: 'block'}} htmlFor={htmlFor}>
{label} { required && <span style={{color: 'red'}}> *</span> }
<... |
ajax/libs/primereact/6.5.0-rc.1/button/button.min.js | cdnjs/cdnjs | this.primereact=this.primereact||{},this.primereact.button=function(t,e,o,n,r){"use strict";function i(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var p=i(e);function s(){return(s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)Object.prototype.hasOwnPro... |
src/utils/childUtils.js | barakmitz/material-ui | import React from 'react';
import createFragment from 'react-addons-create-fragment';
export function createChildFragment(fragments) {
const newFragments = {};
let validChildrenCount = 0;
let firstKey;
// Only create non-empty key fragments
for (const key in fragments) {
const currentChild = fragments[k... |
src/js/components/global/NotFound.js | jorgemxm/r-movies | 'use strict';
import React from 'react';
// 404 Route
//--------------
const NotFound = props => (
<div className="page--not-found">
<div className="container has-text-centered">
<p className="title">
<strong>:[</strong>
</p>
<p className="subtitle">Not Found</p>
</div>
</div>
);... |
wp-content/cache/js/static/ca1ba8212dd6342d5cfafa3578ac0dd0.js | AndyHuntDesign/andyhuntdesign | /* Tuesday 14th of July 2015 10:40:21 PM*/
window.njQuery = typeof jQuery == "undefined" ? null : jQuery;
(function ($) {
if(typeof bindNextendQ != 'undefined'){
$.each(bindNextendQ, function (index, a) {
$(a[0])[a[1]](a[2]);
});
}
})(njQuery);/*! jQuery v1.9.1 | (c) 2005, ... |
node_modules/react-icons/md/filter-b-and-w.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdFilterBAndW = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m31.6 31.6v-23.2h-11.6v10z m0-26.6q1.4 0 2.4 1t1 2.4v23.2q0 1.4-1 2.4t-2.4 1h-23.2q-1.4 0-2.4-1t-1-2.4v-23.2q0-1.4 1-2.4t2.4-1h23.2z m-11.6 13.4l-11.6 13.2h11.6v-... |
docs/src/app/components/pages/components/GridList/Page.js | IsenrichO/mui-with-arrows | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import gridListReadmeText from './README';
import gridListExampleSimpleCode from... |
node_modules/recharts/demo/component/CartesianAxis.js | SerendpityZOEY/Fixr-RelevantCodeSearch | import React from 'react';
import { Surface, CartesianAxis } from 'recharts';
export default React.createClass({
render () {
let ticks = [
{ value: 10, coord: 50 },
{ value: 1000, coord: 100 },
{ value: 20, coord: 150 },
{ value: 40, coord: 200 },
{ value: 90, coord: 250 }
];
... |
hbw/app/javascript/packs/hbw/components/shared/hoc/conditions.js | latera/homs | /* eslint-disable no-eval */
import React, { Component } from 'react';
export default WrappedComponent => class WithConditions extends Component {
variables = () => this.props.params.variables || this.props.params.task.definition.variables;
variableByName = (name) => {
const variable = this.variables().find(... |
src/routes/service/MaintenanceCard.js | medevelopment/updatemeadmin | import React, { Component } from 'react';
import s from './Investors.css';
import Link from '../../components/Link';
class MaintenanceCard extends Component {
constructor(props) {
super(props);
this.state = {
};
}
render() {
let imgUrl = 'http://ec2-52-32-92-71.us-west-2.compute.amazonaws.com/... |
client_apps/canvas_quizzes/apps/statistics/test/unit/views/questions/file_upload_test.js | HotChalk/canvas-lms | define(function(require) {
var Subject = require('jsx!views/questions/file_upload');
describe('Views.Questions.FileUpload', function() {
this.reactSuite({
type: Subject
});
it('should render', function() {
expect(subject.isMounted()).toEqual(true);
});
it('should provide a link to... |
docs/src/app/components/pages/components/FlatButton/Page.js | pradel/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import flatButtonReadmeText from './README';
import flatButtonExampleSimpleCode ... |
ajax/libs/reactive-coffee/1.2.1/reactive-coffee.js | ZaValera/cdnjs | (function() {
var rxFactory,
__slice = [].slice,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = ne... |
src/svg-icons/maps/local-atm.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalAtm = (props) => (
<SvgIcon {...props}>
<path d="M11 17h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4V8h-2V7h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2v1zm9-13H4c-1.11 0-1.99.89-1.99 2L2 1... |
test/components/ExtraPayment.spec.js | vojtechsoban/mortgage-calc | import 'jsdom-global/register'; // for Enzyme mount - whithout this the following error will occur: TypeError: Cannot read property 'addEventListener' of undefined
import React from 'react';
import chai, {assert, expect} from 'chai'
import sinonChai from 'sinon-chai';
import chaiEnzyme from 'chai-enzyme';
import {shall... |
ajax/libs/yui/3.9.1/event-custom-base/event-custom-base.js | featurist/cdnjs | YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @mo... |
src/svg-icons/content/delete-sweep.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentDeleteSweep = (props) => (
<SvgIcon {...props}>
<path d="M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3v10zM14 5h-3l-1-1H6L5 5H2v2h12z"/>
</SvgIcon>
);
ContentDeleteSwee... |
src/containers/Thesis/components/edit/ThesisValueField.js | OhtuGrappa2/front-grappa2 | import React from 'react'
import { string, node } from 'prop-types'
import { GridColumn } from 'semantic-ui-react'
const ThesisValueField = ({ title, children }) => (
<GridColumn>
<h3 className="ui sub header">{title}</h3>
{children}
</GridColumn>
)
ThesisValueField.propTypes = {
title: st... |
stories/index.js | headzoo/react-moment | /* eslint-disable react/jsx-filename-extension */
import React from 'react';
import { storiesOf } from '@storybook/react';
import { withKnobs, text, number } from '@storybook/addon-knobs';
import moment from 'moment';
import Moment from '../src/index';
Moment.globalLocale = 'fr';
storiesOf('Moment', module)
.addDe... |
src/svg-icons/image/grid-off.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageGridOff = (props) => (
<SvgIcon {...props}>
<path d="M8 4v1.45l2 2V4h4v4h-3.45l2 2H14v1.45l2 2V10h4v4h-3.45l2 2H20v1.45l2 2V4c0-1.1-.9-2-2-2H4.55l2 2H8zm8 0h4v4h-4V4zM1.27 1.27L0 2.55l2 2V20c0 1.1.9 2 2 2h... |
node_modules/grunt/node_modules/grunt-legacy-log/node_modules/underscore.string/test/test_underscore/vendor/jquery.js | jcizel/dnb-presentation | /*!
* 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.
... |
packages/config/config.js | PEM--/orion | /**
* Definition of the config object
*/
orion.config = {
collection: new Meteor.Collection('orion_config'),
object: {}
};
/**
* Allows to set some fields on simple schema
*/
SimpleSchema.extendOptions({
category: Match.Optional(String),
public: Match.Optional(Boolean),
secret: Match.Optional(Boolean),
... |
dist/1.8.0/jquery-ajax-css-deprecated-dimensions-effects-offset.min.js | michael829/jquery-builder | /*! jQuery v@1.8.0 -deprecated,-css,-ajax,-ajax/jsonp,-ajax/script,-ajax/xhr,-effects,-offset,-dimensions jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerC... |
ajax/libs/react-native-web/0.14.0/exports/RefreshControl/index.js | cdnjs/cdnjs | function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
/**
* Copy... |
client/src/components/HeaderField/HeaderField.js | silverstripe/silverstripe-admin | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
/**
* Renders a dataless field that inserts an header inside a form
* @returns {JSX.Element}
*/
function HeaderField({ className, extraClass, id, data: { headingLevel, title } }) {
const Heading = `h${headingLevel ... |
src/components/BackgroundDimmer.js | codaco/Network-Canvas | import React from 'react';
import { motion } from 'framer-motion';
import { getCSSVariableAsNumber } from '@codaco/ui/lib/utils/CSSVariables';
const BackgroundDimmer = (props) => {
const slowDuration = getCSSVariableAsNumber('--animation-duration-slow-ms') / 1000;
const variants = {
normal: {
opacity: 1... |
src/components/AdminPanelProgressPage.js | EehMauro/dyscalculia-web | import React from 'react';
import Paper from 'material-ui/Paper';
import { withStyles } from 'material-ui/styles';
import { CircularProgress } from 'material-ui/Progress';
const styles = theme => ({
container: theme.mixins.gutters({
borderRadius: 0,
padding: 48,
marginBottom: 24,
textAlign: 'center'
... |
plugins/Hosting/js/components/app.js | NebulousLabs/Sia-UI | import React from 'react'
import Header from '../containers/header.js'
import Body from '../containers/body.js'
import ResizeDialog from '../containers/resizeDialog.js'
import AnnounceDialog from '../containers/announce.js'
import WalletModal from '../containers/walletmodal.js'
import { hot } from 'react-hot-loader'
c... |
ajax/libs/react-instantsearch/5.2.0/Connectors.js | sashberd/cdnjs | /*! React InstantSearch 5.2.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports',... |
ajax/libs/yui/3.16.0/datatable-core/datatable-core.js | Rich-Harris/cdnjs | /*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@sinc... |
docs/src/pages/components/cards/OutlinedCard.js | lgollut/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Card from '@material-ui/core/Card';
import CardActions from '@material-ui/core/CardActions';
import CardContent from '@material-ui/core/CardContent';
import Button from '@material-ui/core/Button';
import Typography from '@material-... |
app/javascript/mastodon/features/reblogs/index.js | lindwurm/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { fetchReblogs ... |
actor-apps/app-web/src/app/components/Deactivated.react.js | Dreezydraig/actor-platform | import React from 'react';
class Deactivated extends React.Component {
render() {
return (
<div className="deactivated row center-xs middle-xs">
<div className="deactivated__window">
<h2>Tab deactivated</h2>
<p>
Oops, you have opened another tab with Actor, so we had... |
modules/__tests__/pushState-test.js | dalexand/react-router | /*eslint-env mocha */
import expect from 'expect'
import React from 'react'
import resetHash from './resetHash'
import execSteps from './execSteps'
import Router from '../Router'
import Route from '../Route'
describe('pushState', function () {
beforeEach(resetHash)
let node
beforeEach(function () {
node = d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.