path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/react-virtualized/4.0.1/react-virtualized.min.js | wout/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports["react-virtualized"]=t(require("react")):e["react-virtualized"]=t(e.React)}(this,function(e){return function(e){function t(n){if(... |
showcase/examples/force-directed-graph/force-directed-graph.js | Apercu/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
packages/ringcentral-widgets-docs/src/app/pages/Components/LogBasicInfo/Demo.js | ringcentral/ringcentral-js-widget | import React from 'react';
// eslint-disable-next-line
import LogBasicInfo from 'ringcentral-widgets/components/LogBasicInfo';
const props = {};
props.currentLocale = 'en-US';
/**
* A example of `LogBasicInfo`
*/
const LogBasicInfoDemo = () => <LogBasicInfo {...props} />;
export default LogBasicInfoDemo;
|
node_modules/lite-server/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | bobangajicsm/fut-scores | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
packages/material-ui-icons/lib/esm/ThumbDown.js | mbrookes/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.... |
node_modules/react-dom/lib/ReactMount.js | LuoPengFei/todo-app | /**
* 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.
*
*/
'use strict... |
src/routes/UIElement/iconfont/index.js | tigaly/antd-admin | import React from 'react'
import { Iconfont } from '../../../components'
import { Table, Row, Col, Icon } from 'antd'
import styles from './index.less'
import './emoji.js'
const colorfulIcons = ['boluo', 'baixiangguo', 'chengzi', 'boluomei', 'caomei', 'dayouzi', 'chelizi', 'fanqie', 'hamigua', 'ganlan',
'juzi', 'hei... |
ajax/libs/mediaelement/2.2.5/jquery.js | ruo91/cdnjs | /*!
* 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.
... |
app/components/List/index.js | houlematt/matt-site | import React from 'react';
import Ul from './Ul';
import Wrapper from './Wrapper';
function List(props) {
const ComponentToRender = props.component;
let content = (<div></div>);
// If we have items, render them
if (props.items) {
content = props.items.map((item, index) => (
<ComponentToRender key={... |
shorten_my_link/client/components/link_list.js | tpechacek/learn-react-native | import React, { Component } from 'react';
import { createContainer } from 'meteor/react-meteor-data';
import { Links } from '../../imports/collections/links';
class LinkList extends Component {
renderRows() {
return this.props.links.map(link => {
const { url, clicks, token } = link;
const shortLink =... |
ajax/libs/jquery-mobile/1.4.1/jquery.mobile.js | gogoleva/cdnjs | /*!
* jQuery Mobile 1.4.1
* Git HEAD hash: 18c1e32bfc4e0e92756dedc105d799131607f5bb <> Date: Wed Feb 12 2014 22:15:20 UTC
* http://jquerymobile.com
*
* Copyright 2010, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
*/
(function ( root, doc, factory ... |
components/Deck/ContentModulesPanel/ContentDiscussionPanel/AddComment.js | slidewiki/slidewiki-platform | import PropTypes from 'prop-types';
import React from 'react';
import {connectToStores} from 'fluxible-addons-react';
import UserProfileStore from '../../../../stores/UserProfileStore';
import addComment from '../../../../actions/contentdiscussion/addComment';
import invertCommentBoxFlag from '../../../../actions/conte... |
ajax/libs/6to5/1.14.13/browser-polyfill.js | andersem/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... |
docs/src/app/components/pages/components/Toolbar/Page.js | ruifortes/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 toolbarReadmeText from './README';
import toolbarExampleSimpleCode from '... |
packages/material-ui-icons/src/SpellcheckSharp.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M12.45 16h2.09L9.43 3H7.57L2.46 16h2.09l1.12-3h5.64l1.14 3zm-6.02-5L8.5 5.48 10.57 11H6.43zm15.16.59l-8.09 8.09L9.83 16l-1.41 1.41 5.09 5.09L23 ... |
src/BaseTileLayer.js | snario/react-mapbox-gl | import { PropTypes } from 'react';
import MapLayer from './MapLayer';
export default class BaseTileLayer extends MapLayer {
static propTypes = {
opacity: PropTypes.number,
zIndex: PropTypes.number
};
componentDidUpdate(prevProps) {
const { opacity, zIndex } = this.props;
if (opacity && opacity ... |
ajax/libs/remoteStorage/0.11.2/remotestorage.amd.js | LeaYeh/cdnjs | /** remotestorage.js 0.11.2, http://remotestorage.io, MIT-licensed **/
define(['bluebird'], function(Promise) {
/** FILE: src/remotestorage.js **/
(function (global) {
// wrapper to implement defer() functionality
Promise.defer = function () {
var resolve, reject;
var promise = new Promise(function() {
... |
app/DemoTinyMce.js | OGPoyraz/tinymce-aws-s3-upload-plugin | /**
* Created by OGPoyraz on 10/09/16.
*/
import React from 'react';
class DemoTinyMce extends React.Component {
componentDidMount() {
tinymce.init({
selector: 'textarea',
height: 500,
menubar: false,
// Plugin configuration
plugins: 'AwsS3Uplo... |
components/ButtonDropdown/index.js | SaraVieira/30-30 | // @flow
import React, { Component } from 'react';
import Button from '../Button';
import style from './style.css';
type Props = {
buttonContent: string,
children: Element
}
type State = {
opened: boolean
}
class ButtonDropdown extends Component {
props: Props;
constructor(props: Props) {
super(props)... |
src/components/home/counter.js | avalla/webpack-react-kit | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux'
import * as CounterActions from '../../actions/counter';
import Button from 'react-bootstrap/lib/Button'
class Counter extends React.Component {
static propTypes = {
increment: React.PropTypes.func.isReq... |
src/MenuItem.js | andrew-d/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import SafeAnchor from './SafeAnchor';
const MenuItem = React.createClass({
propTypes: {
header: React.PropTypes.bool,
divider: React.PropTypes.bool,
href: React.PropTypes.string,
title: React.PropTypes.string,
target: ... |
__tests__/Style-05.js | buildbreakdo/scoped-css | import React from 'react';
import { findDOMNode, render } from 'react-dom';
import TestUtils from 'react-addons-test-utils';
const removeNewlines = (string) => (string.replace(/(\r\n|\n|\r)/gm, ''))
import Style from '../src/index.js';
describe('Style-05', () => {
it('creates a contains and union selector when sel... |
js/dist/plex-canvas/--old/jquery.js | hospitalneuquen/lib | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
frontend/src/index.js | edinnen/treeGenerator | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, browserHistory } from 'react-router';
import App from './components/App';
ReactDOM.render((
<Router history={browserHistory}>
<Route path="/" component={App} />
</Router>
), document.getElementById('root'),
);
|
__tests__/Datepicker.js | chrisborrowdale/react-basic-datepicker | import React from 'react'
import Datepicker from '../src/Datepicker'
import Calendar from '../src/Calendar'
import { mount } from 'enzyme';
import { format, getDaysInMonth } from 'date-fns'
let datepicker
beforeEach(() => {
datepicker = mount(<Datepicker />)
});
test('calendar should be hidden by default', () => {... |
client/app/app.js | abzaloid/kazakh-story-generator | import React from 'react'
import ReactDOM from 'react-dom'
import Home from './components/home/Home'
import {Provider} from 'react-redux'
import {store} from './store'
ReactDOM.render(
<Provider store={store}>
<Home />
</Provider>,
document.getElementById('app')
)
|
packages/material-ui-icons/src/WorkTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M4 8h16v11H4z" opacity=".3" /><path d="M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zM10 4h4v2... |
js/src/ui/IdentityIcon/identityIcon.spec.js | jesuscript/parity | // Copyright 2015, 2016 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any la... |
src/svg-icons/image/photo-library.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePhotoLibrary = (props) => (
<SvgIcon {...props}>
<path d="M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"/>... |
ajax/libs/instantsearch.js/3.5.2/instantsearch.production.min.js | sufuf3/cdnjs | /*! InstantSearch.js 3.5.2 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch.js */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).instantsearch=t()}(this,function(){"use strict";f... |
src/js/components/GiftResultView.js | vbence86/giftassistant-client | import React, { Component } from 'react';
import { StyleSheet, View, Image, Animated } from 'react-native';
import { Grid, Row, Button, Text } from 'react-native-elements';
import StarRating from 'react-native-star-rating';
const FONT_SIZE_SMALL = 16;
const FONT_SIZE_BUTTON = 12;
const styles = StyleSheet.create({
... |
client/test/components/PlainSearchPage.spec.js | andela-onnenanya/document-manager | import React from 'react';
import { shallow } from 'enzyme';
import expect from 'expect';
import PlainSearchPage
from '../../src/js/components/user/PlainSearchPage';
const mockFunc = () => true;
const props = {
combinedRendered: mockFunc,
search: mockFunc,
inputChange: mockFunc,
limit: 10,
offset: 0,
};
co... |
ajax/libs/analytics.js/2.8.2/analytics.min.js | zimbatm/cdnjs | (function umd(require){if("object"==typeof exports){module.exports=require("1")}else if("function"==typeof define&&define.amd){define(function(){return require("1")})}else{this["analytics"]=require("1")}})(function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[... |
Fabrikam.Module1.Uc1.Command.v1/Fabrikam.Module1.Uc1.Services.WebApi.v1/Scripts/jquery-1.10.2.min.js | karthik-h-raju/Fabrikam-Web | /* NUGET: BEGIN LICENSE TEXT
*
* Microsoft grants you the right to use these script files for the sole
* purpose of either: (i) interacting through your browser with the Microsoft
* website or online service, subject to the applicable licensing or use
* terms; or (ii) using the files as included with a Microsoft p... |
src/workflows/pyfr/components/root/NewProject.js | Kitware/HPCCloud | /* global Simput */
import React from 'react';
import PropTypes from 'prop-types';
import { FileUploadEntry } from '../../../../panels/ItemEditor';
import { dispatch } from '../../../../redux';
import * as NetActions from '../../../../redux/actions/network';
// -------------------------------------------------------... |
sites/all/libraries/dompdf/www/jquery-1.4.2.js | mooru/flockstate | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL... |
blueocean-material-icons/src/js/components/svg-icons/image/remove-red-eye.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageRemoveRedEye = (props) => (
<SvgIcon {...props}>
<path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34... |
app/javascript/mastodon/features/account_timeline/index.js | lindwurm/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { lookupAccount, fetchAccount } from '../../actions/accounts';
import { expandAccountFeaturedTimeline, expandAccountTimeline } from '../../actions/time... |
ajax/libs/forerunnerdb/1.3.787/fdb-legacy.js | joeyparrish/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionTypeFormatter.js | ares/katello | import React from 'react';
import { Link } from 'react-router-dom';
import { urlBuilder } from 'foremanReact/common/urlHelpers';
export const subscriptionTypeFormatter = (value, { rowData }) => {
let cellContent;
if (rowData.virt_only === false) {
cellContent = __('Physical');
} else if (rowData.hypervisor)... |
examples/react-backbone/node_modules/react/dist/JSXTransformer.js | pawelqbera/todomvc | /**
* JSXTransformer 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... |
packages/ringcentral-widgets/components/ActiveCallButton/index.js | ringcentral/ringcentral-js-widget | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CircleButton from '../CircleButton';
import styles from './styles.scss';
export default function ActiveCallButton(props) {
const className = classnames(styles.btnSvg, props.className);
const buttonClassName ... |
ajax/libs/yui/3.9.0/event-focus/event-focus-min.js | idleberg/cdnjs | YUI.add("event-focus",function(e,t){function u(t,r,u){var a="_"+t+"Notifiers";e.Event.define(t,{_useActivate:o,_attach:function(i,s,o){return e.DOM.isWindow(i)?n._attach([t,function(e){s.fire(e)},i]):n._attach([r,this._proxy,i,this,s,o],{capture:!0})},_proxy:function(t,r,i){var s=t.target,f=t.currentTarget,l=s.getData(... |
ajax/libs/vue/2.6.8/vue.esm.js | cdnjs/cdnjs | /*!
* Vue.js v2.6.8
* (c) 2014-2019 Evan You
* Released under the MIT License.
*/
/* */
var emptyObject = Object.freeze({});
// These helpers produce better VM code in JS engines due to their
// explicitness and function inlining.
function isUndef (v) {
return v === undefined || v === null
}
function isDef (v... |
src/components/ReplOutputFunction.js | princejwesley/Mancy | import React from 'react';
import _ from 'lodash';
import ReplOutput from '../common/ReplOutput';
import ReplCommon from '../common/ReplCommon';
import ReplOutputObject from './ReplOutputObject';
import ReplActions from '../actions/ReplActions';
export default class ReplOutputFunction extends React.Component {
const... |
app/javascript/mastodon/containers/mastodon.js | honpya/taketodon | import React from 'react';
import { Provider } from 'react-redux';
import PropTypes from 'prop-types';
import configureStore from '../store/configureStore';
import { showOnboardingOnce } from '../actions/onboarding';
import { BrowserRouter, Route } from 'react-router-dom';
import { ScrollContext } from 'react-router-sc... |
packages/react-percy-test-framework/src/__tests__/Suite-getSnapshotMarkup-tests.js | percy/react-percy | import React from 'react';
import Suite from '../Suite';
let executed;
let suite;
let parent;
const execute = name => executed.push(name);
const executeAsync = (name, delay) =>
new Promise(resolve => {
setTimeout(() => {
execute(name);
resolve();
}, delay);
});
const givenSyncBeforeAll = (tar... |
packages/demos/forms-demo/src/components/Menu/MenuItem/index.js | yusufsafak/cerebral | import React from 'react'
import { css } from 'aphrodite'
import { connect } from 'cerebral/react'
import { state } from 'cerebral/tags'
import styles from './styles'
export default connect(
{
currentView: state`app.currentView`,
},
function MenuItem({ currentView, type }) {
const innerContainer = css(
... |
src/components/nav.js | dtjv/dtjv.github.io | import React from 'react'
import { Link } from 'gatsby'
import MeImg from '../images/me.jpg'
import { MenuIcon } from './icons/Menu'
import { GitHubIcon } from './icons/GitHub'
export const Nav = ({ onClick }) => {
return (
<div className="flex items-center border-b justify-between py-8 text-gray-800">
<L... |
App/Components/SearchBar.js | friskipr/Ignite_MyApp | import React from 'react'
import { View, Text, TextInput, TouchableOpacity } from 'react-native'
import styles from './Styles/SearchBarStyles'
import { Colors, Metrics } from '../Themes/'
import Icon from 'react-native-vector-icons/FontAwesome'
export default class SearchBar extends React.Component {
static propType... |
ajax/libs/angular.js/0.9.2/angular-scenario.min.js | dickeyxxx/cdnjs | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
fixtures/ssr/src/index.js | cpojer/react | import React from 'react';
import {createRoot} from 'react-dom';
import App from './components/App';
let root = createRoot(document, {hydrate: true});
root.render(<App assets={window.assetManifest} />);
|
client/trello/src/app/routes/signUp/SignUp.js | Madmous/Trello-Clone | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { push } from 'react-router-redux';
import { Link } from 'react-router';
import { SignUpForm } from './components/index';
import './SignUp.css';
const propTypes = {
isAuthenticatingSuccessful: PropTypes.bool.isRequired,
isAuth... |
src/common/components/vanilla/table-interactive/row.js | canonical-websites/build.snapcraft.io | import PropTypes from 'prop-types';
import React from 'react';
import styles from './table.css';
export default function Row(props) {
const className = `${styles.row} ${props.isActive && styles.active}`;
return (
<div className={ className }>
{ props.children }
</div>
);
}
Row.propTypes = {
chil... |
packages/material-ui-icons/src/SignalWifi2BarLockRounded.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path fillOpacity=".3" d="M15.5 14.5c0-2.8 2.2-5 5-5 .36 0 .71.04 1.05.11L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l10.08 12.56c.8 1 2.32 1... |
frontend/src/Artist/Editor/ArtistEditorFooterLabel.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React from 'react';
import SpinnerIcon from 'Components/SpinnerIcon';
import { icons } from 'Helpers/Props';
import styles from './ArtistEditorFooterLabel.css';
function ArtistEditorFooterLabel(props) {
const {
className,
label,
isSaving
} = props;
return (... |
wp-includes/js/jquery/jquery.js | sebpowell/brandmeetsevents | /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
internals/templates/appContainer.js | coocooooo/webapp | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
src/Connected/inner/Text.js | dht/lpm | import React from 'react';
const sanitizer = require('sanitizer');
import Base from './Base';
const Text = (props) => {
let {params = {}, data, content} = props,
{dataField} = data || {};
if (dataField && params[dataField]) {
content = params[dataField];
}
const text = sanitizer.sanit... |
ajax/libs/angular-azure-mobile-service/1.0.2/angular-azure-mobile-service.js | jozefizso/cdnjs | 'use strict';
angular.module('azure-mobile-service.module', [])
.service('Azureservice', function Azureservice($q) {
var API_URL = 'https://<AZURE_APP_NAME>.azure-mobile.net/';
var API_KEY = '<AZURE_APP_API_KEY>';
var VAILD_OAUTH_PROVIDERS = ['google', 'twitter', 'facebook', 'windowsaccount', 'windowsaz... |
ajax/libs/react-data-grid/0.12.12/react-data-grid-with-addons.js | sajochiu/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReactDataGrid"] = f... |
packages/material-ui/src/FormGroup/FormGroup.js | Kagami/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
export const styles = {
/* Styles applied to the root element. */
root: {
display: 'flex',
flexDirection: 'column',
flexWrap: 'wrap',
},
/* Styles appli... |
examples/normalise/src/components/Post.js | quandhz/resaga | import React from 'react';
import PropTypes from 'prop-types';
import resaga from '../../../../build';
import { PAGE as OTHER_PAGE } from '../containers/config';
export class Post extends React.PureComponent {
render = () => {
const {
id, title, selected, onChange,
counter, index,
} = this.props;... |
unit1_week1/class4/class4/initializr/js/vendor/jquery-1.9.0.min.js | XanderGlassman/xanderglassman.github.io | /*! jQuery v1.9.0 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license */(function(e,t){"use strict";function n(e){var t=e.length,n=st.type(e);return st.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Tt[e]={};return st.each(e.matc... |
ajax/libs/yui/3.10.2/simpleyui/simpleyui-debug.js | freak3dot/cdnjs | /**
The YUI module contains the components required for building the YUI seed file.
This includes the script loading mechanism, a simple queue, and the core
utilities for the library.
@module yui
@main yui
@submodule yui-base
**/
/*jshint eqeqeq: false*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The... |
app/javascript/mastodon/components/autosuggest_input.js | ikuradon/mastodon | import React from 'react';
import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container';
import AutosuggestEmoji from './autosuggest_emoji';
import AutosuggestHashtag from './autosuggest_hashtag';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from... |
packages/shared/forks/Scheduler.umd.js | nhunzaker/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.
*
* @flow
*/
import React from 'react';
const ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
const {
... |
client/common/components/AppbarLogoWrap.js | Haaarp/geo | import React from 'react';
import { Navbar } from 'react-bootstrap';
class AppBarLogoWrap extends React.Component {
render(){
return(
<Navbar.Header>
{this.props.children}
</Navbar.Header>
);
}
}
export default AppBarLogoWrap; |
ajax/libs/react-bootstrap/0.27.0/react-bootstrap.min.js | sreym/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactBootstrap=t(require("react")):e.ReactBootstrap=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return ... |
docs/src/modules/components/AppTableOfContents.js | allanalexandre/material-ui | /* eslint-disable react/no-danger */
import React from 'react';
import PropTypes from 'prop-types';
import marked from 'marked';
import warning from 'warning';
import throttle from 'lodash/throttle';
import clsx from 'clsx';
import { connect } from 'react-redux';
import { withStyles } from '@material-ui/core/styles';
... |
examples/library/src/index.foobar.js | carteb/carte-blanche | import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import Root from './containers/Root';
render(
<AppContainer>
<Root />
</AppContainer>,
document.getElementById('root')
);
if (module.hot) {
module.hot.accept('./containers/Root', () => {
// ... |
examples/column-resizing/src/App.js | react-tools/react-table | import React from 'react'
import styled from 'styled-components'
import { useTable, useBlockLayout, useResizeColumns } from 'react-table'
import makeData from './makeData'
const Styles = styled.div`
padding: 1rem;
.table {
display: inline-block;
border-spacing: 0;
border: 1px solid black;
.tr {
... |
src/index.js | mvolkmann/starter | // @flow
import React from 'react';
import ReactDOM from 'react-dom';
import App from './app/app';
ReactDOM.render(<App />, document.getElementById('root'));
|
src/controls.js | peterasplund/slim-react-carousel | import React from 'react';
import PropTypes from "prop-types";
import CarouselContext from './CarouselContext'
export class Arrows extends React.Component {
static contextType = CarouselContext;
componentWillMount() {
if (!this.context && process.env.NODE_ENV !== "production") {
console.error("<Arrows ... |
app/javascript/mastodon/features/notifications/components/notification.js | TootCat/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import StatusContainer from '../../../containers/status_container';
import AccountContainer from '../../../containers/account_container';
import Avatar from '../../../components/avatar';
import { FormattedMessage } from 'react-intl';... |
src/test/app/js/i18n/languageSelector.js | HeroesDesk/heroesdesk-front-web | import React from 'react';
export var LanguageSelector = React.createClass({
handleChange: function (e) {
var languageIndex = e.target.value;
this.props.changeHandler(languageIndex);
},
render: function () {
var options = [];
for (var i = 0; i < this.props.languages.length; ... |
client/index.js | glenrage/another-chance | import ReactDOM from 'react-dom';
import React from 'react';
import { Provider } from 'react-redux';
import { Router, Route, IndexRoute, hashHistory } from 'react-router';
import App from './components/App';
import store from './store';
import Home from './components/Home';
import Login from './components/Login';
impor... |
src/template.js | n7best/react-weui-page | import React from 'react';
import HeaderNav from './components/header';
const Template = ( props ) => {
return (
<div>
<HeaderNav/>
<div className="container" >
{ props.children }
</div>
</div>
)
}
export default Template; |
ajax/libs/glamorous/4.1.0/glamorous.umd.tiny.min.js | froala/cdnjs | !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("glamor")):"function"==typeof define&&define.amd?define(["react","glamor"],r):e.glamorous=r(e.React,e.Glamor)}(this,function(e,r){"use strict";function t(r){var t=arguments.length>1&&void 0!==arguments[1]?argum... |
src/components/ECharts/graphChart.js | joe-sky/flarej | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { registerComponent } from 'nornj';
import EChartsEnhance from './EChartsEnhance';
import 'echarts/lib/chart/graph';
import template from './ECharts.t.html';
class GraphChart extends Component {
static propTypes = {
type: PropTy... |
src/components/ResearchPage/ResearchCite.js | alexeiaccio/moscowriver | import React from 'react'
import { CiteWrapper } from 'Styled'
import { key } from 'styled-theme'
import { Cite } from 'Components'
const Wrapper = CiteWrapper.extend`
width: 100%;
padding: ${key(['space', 9])}px 0;
text-align: center;
background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
... |
main.js | maximveksler/EatWell | import React from 'react'
import ReactDOM from 'react-dom';
import App from './App'
ReactDOM.render(<App />, document.getElementById('app'))
|
ajax/libs/muicss/0.9.5/react/mui-react.min.js | redmunds/cdnjs | !function(e){var t=e.babelHelpers={};t.classCallCheck=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},t.createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var l=t[r];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.definePro... |
src/components/Header/index.js | jainvabhi/PWD | import React from 'react';
const Header = () => (
<header className="header">
<h1>Header</h1>
</header>
);
export default Header;
|
client/src/Components/UserProfile/ClientMedicalEdit.js | teamcrux/EmploymentOptions | import React from 'react';
import { Field, FieldArray, reduxForm } from 'redux-form';
import ClientMedicalForm from './ClientEditForms/ClientMedicalForm';
class ClientMedicalEdit extends React.Component {
constructor(props){
super(props);
this.sendPatch = this.sendPatch.bind(this);
};
sendPatch(formData... |
src/app/components/PreLoader.js | mkkhedawat/weather-forecast-react | import React from 'react'
/*
Exports Pre-loader component to show waiting Icon
*/
export default class PreLoader extends React.Component {
render() {
return (
<div className='row pre-loader'>
<div className='progress col s12'>
<div className='indetermina... |
ajax/libs/forerunnerdb/1.3.929/fdb-core+views+persist.min.js | kiwi89/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... |
app/utils/createComponentWithIntl.js | juanda99/arasaac-frontend | import React from 'react'
import renderer from 'react-test-renderer'
import { IntlProvider } from 'react-intl'
const createComponentWithIntl = (children, props = { locale: 'en' }) =>
renderer.create(
<IntlProvider {...props}>
{children}
</IntlProvider>
)
export default createComponentWithIntl
|
vendor/jquery/jquery.min.js | mfuentesm/jamieymauricio | /*! jQuery v1.12.4 | (c) jQuery Foundation | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,fu... |
src/components/work/Work.js | justinkahrs/justinkahrs.github.io | import React from 'react';
import { Col } from 'react-bootstrap';
import Entry from './entry/Entry';
const styles = {
title: {
textAlign: 'center',
},
};
const Work = () => (
<Col lg={12}>
<h1 style={styles.title}>Work History</h1>
<Entry
location="Indiana University - Bloomington, IN"
ti... |
src/Parser/DestructionWarlock/Modules/Features/GrimoireOfService.js | mwwscott0/WoWAnalyzer | import React from 'react';
import Module from 'Parser/Core/Module';
import AbilityTracker from 'Parser/Core/Modules/AbilityTracker';
import Combatants from 'Parser/Core/Modules/Combatants';
import { calculateMaxCasts } from 'Parser/Core/getCastEfficiency';
import SPELLS from 'common/SPELLS';
import SpellLink from 'co... |
src/core/__tests__/ReactTextComponent-test.js | react-china/react-docs | /**
* Copyright 2013-2014 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
docs/src/examples/collections/Grid/ResponsiveVariations/GridExampleReversedComputerVertically.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Grid } from 'semantic-ui-react'
const GridExampleReversedComputerVertically = () => (
<Grid reversed='computer vertically'>
<Grid.Row>
<Grid.Column>Computer Row 4</Grid.Column>
</Grid.Row>
<Grid.Row>
<Grid.Column>Computer Row 3</Grid.Column>
</Grid.Row>
... |
lib/components/ButtonAndroid.js | ayoubdev/react-native-android-kit | import React, {
PureComponent,
PropTypes
} from "react";
import {
View,
TouchableWithoutFeedback,
requireNativeComponent
} from "react-native";
const NativeComponent = requireNativeComponent("ButtonAndroid", ButtonAndroid, {});
export class ButtonAndroid extends PureComponent {
static propTypes = {
...View.pr... |
src/pages/index.js | creaturesagainstcancer/creaturesagainstcancer.github.io | import React from 'react'
import Link from 'gatsby-link'
const IndexPage = () => (
<div>
<h1>Hi people</h1>
<p>Welcome to your new Gatsby site.</p>
<p>Now go build something great.</p>
<Link to="/page-2/">Go to page 2</Link>
</div>
)
export default IndexPage
|
js/components/build.js | paulbevis/teamcity-build-monitor | import React from 'react';
import {propEq, filter} from 'ramda'
import CodeCoverage from './code-coverage'
export default class BuildComponent extends React.Component {
getPropertyResult(propertyName) {
const propertyNameCheck = propEq('name', propertyName);
const results = filter(propertyNameCheck, this.p... |
assets/js/main.min.js | raazesh-sainudiin/scalable-data-science | ---
layout:
---
/*!
* Minimal Mistakes Jekyll Theme 4.4.2 by Michael Rose
* Copyright 2017 Michael Rose - mademistakes.com | @mmistakes
* Licensed under MIT
*/
!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuer... |
src/svg-icons/action/lock-outline.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLockOutline = (props) => (
<SvgIcon {...props}>
<path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c... |
src/index.js | lzm854676408/big-demo |
import React from 'react';
import {render} from 'react-dom';
import {Router,browserHistory} from 'react-router';
import routes from './routes.js';
import './style/commen.css';
import injectTapEventPlugin from 'react-tap-event-plugin';
// Needed for onTouchTap
// http://stackoverflow.com/a/34015469/988941
injectTapEv... |
example/components/OptionsInput.js | troybetz/react-soundcloud-widget | import React from 'react';
import {
TextField,
} from 'material-ui';
export default class OptionsInput extends React.Component {
static propTypes = {
default: React.PropTypes.string.isRequired,
type: React.PropTypes.string.isRequired,
onChange: React.PropTypes.func.isRequired,
};
onSubmit(event) {... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.