path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/preact-compat/3.7.0/preact-compat.min.js | seogi1004/cdnjs | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("proptypes"),require("preact")):"function"==typeof define&&define.amd?define(["proptypes","preact"],t):e.preactCompat=t(e.PropTypes,e.preact)}(this,function(e,t){function r(e){var t=e.nodeName,r=e.attributes;if(e.preactCompatUp... |
frontend/components/SecurityTrendsList.js | zhangmingkai4315/SecurityTrend | // import _ from 'lodash';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { ListView, View, ActivityIndicator, RefreshControl } from 'react-native';
import { securityTrendsFetch } from '../actions';
import SecurityTrendItem from './SecurityTre... |
src/index.js | wdavew/king-pong | import React from 'react';
import App from './components/App.js';
import { render } from 'react-dom';
render(
<App />, document.getElementById('root')
)
|
src/components/common/svg-icons/communication/phonelink-lock.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhonelinkLock = (props) => (
<SvgIcon {...props}>
<path d="M19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm-8.2 10V9.5C10.8 8.1 9.4 7 8 7S5.2 8.1 5.2 ... |
packages/material-ui-icons/src/FilterFramesTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M8 10h8v6H8z" opacity=".3" /><path d="M20 4h-4l-4-4-4 4H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H4V6h4.52l3.52-3.5L15.52 6H20v14zM6 18h12V8H6v10zm2-8... |
src/modules/clock/containers/Clock.js | emadalam/mesmerized | import React, { Component } from 'react';
import ClockComponent from '../components/Clock';
import ConnectedStoreHOC from '../utils/connect.store.hoc';
import * as Actions from '../utils/actions';
class ClockContainer extends Component {
componentDidMount() {
// lazy initialize the state object
set... |
components/TitleSection/Author.js | cobbweb/golittle.red | import React from 'react';
function Author({ children }) {
return <span className="Author">{children}</span>;
}
export default Author;
|
components/Deck/ContentModulesPanel/ContentQuestionsPanel/ContentQuestionsList.js | slidewiki/slidewiki-platform | import React from 'react';
import ContentQuestionsItem from './ContentQuestionsItem';
class ContentQuestionsList extends React.Component {
componentDidMount() {
this.enableAccordion();
}
componentDidUpdate() {
this.refreshAccordion();
}
enableAccordion(status) {
let accor... |
ajax/libs/yui/3.7.0/scrollview-base/scrollview-base-coverage.js | rteasdale/cdnjs | if (typeof _yuitest_coverage == "undefined"){
_yuitest_coverage = {};
_yuitest_coverline = function(src, line){
var coverage = _yuitest_coverage[src];
if (!coverage.lines[line]){
coverage.calledLines++;
}
coverage.lines[line]++;
};
_yuitest_coverfunc = functio... |
src/error/index.js | raffidil/garnanain | import React from 'react';
import {
IconButton,
List,
ListItem,
Grid,
Icon,
FABButton,
Cell,
Card,
Dialog,
DialogActions,
DialogContent,
DialogTitle,
Button,
} from 'react-mdl';
import history from '../history';
import Link from '../../components/Link';
import s from './styles.css';
class Err... |
src/components/auth/signup.js | eandy5000/react_auth | import React, { Component } from 'react';
import { reduxForm } from 'redux-form';
import * as actions from '../../actions';
class Signup extends Component {
handleFormSubmit(formProps) {
this.props.signupUser(formProps)
}
renderAlert() {
if(this.props.errorMessage) {
return (
... |
app/src/scripts/layouts/App/App.js | vyorkin-archive/assignment | import React, { Component } from 'react';
import { RouteHandler } from 'react-router';
import DocumentTitle from 'react-document-title';
import Logo from '../../widgets/Logo';
import Header from '../../widgets/Header';
import Navigation from '../../widgets/Navigation';
import './App.css';
export default class App ex... |
test/integration/css-features/fixtures/browsers-new/pages/_app.js | azukaru/next.js | import App from 'next/app'
import React from 'react'
import './styles.css'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
js/App/Index.js | Jwing28/volunteerManager | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App.jsx';
ReactDOM.render(<App />, document.getElementById('root'));
|
ajax/libs/core-js/0.4.2/library.js | maruilian11/cdnjs | /**
* Core.js 0.4.2
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(returnThis, framework, undefined){
'use strict';
/******************************************************************************
* Module : common ... |
admin/client/App/shared/InvalidFieldType.js | andrewlinfoot/keystone | /**
* Renders an "Invalid Field Type" error
*/
import React from 'react';
const InvalidFieldType = function (props) {
return (
<div className="alert alert-danger">
Invalid field type <strong>{props.type}</strong> at path <strong>{props.path}</strong>
</div>
);
};
InvalidFieldType.propTypes = {
path: Reac... |
src/components/posts_new.js | heatherpark/blog | import React, { Component } from 'react';
import { Field, reduxForm } from 'redux-form';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import { createPost } from '../actions';
class PostsNew extends Component {
renderField(field) {
// redux-form passes 'field' object to callback... |
ajax/libs/react-cookie/0.1.7/react-cookie.min.js | IonicaBizauKitchen/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
src/components/index_page/headline.js | LeeLa-Jet/nick | import React, { Component } from 'react';
var {SparkScroll} = require('react-spark-scroll-gsap')({
invalidateAutomatically: true
});
import classNames from 'classnames';
class Headline extends Component {
render(){
return (
<div className="headline">
<SparkScroll.div
className="he... |
ajax/libs/forerunnerdb/1.3.449/fdb-core+persist.js | seogi1004/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... |
ajax/libs/forerunnerdb/1.3.711/fdb-core+views.min.js | honestree/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
src/svg-icons/notification/event-note.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationEventNote = (props) => (
<SvgIcon {...props}>
<path d="M17 10H7v2h10v-2zm2-7h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zm-5-5H7v... |
src/components/ImageForm.js | neontribe/spool | import React, { Component } from 'react';
import _ from 'lodash';
import uploadToS3 from '../s3';
import Camera from './Camera';
import ImageUploader from './ImageUploader';
import PageOverlay from './PageOverlay';
import styles from './css/ImageForm.module.css';
class ImageForm extends Component {
constructor (... |
threeforce/node_modules/react-bootstrap/es/Pagination.js | wolfiex/VisACC | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
jenkins-design-language/src/js/components/material-ui/svg-icons/hardware/videogame-asset.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const HardwareVideogameAsset = (props) => (
<SvgIcon {...props}>
<path d="M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-10 7H8v3H6v-3H3v-2h3V8h2v3h3v2zm4.5 2c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.... |
test/specs/elements/Label/Label-test.js | jamiehill/stardust | import faker from 'faker'
import React from 'react'
import * as common from 'test/specs/commonTests'
import { sandbox } from 'test/utils'
import Label from 'src/elements/Label/Label'
import Image from 'src/elements/Image/Image'
describe('Label Component', () => {
common.isConformant(Label)
common.hasUIClassName(L... |
node_modules/styled-components/src/models/ServerStyleSheet.js | vinhtran19950804/procure_react | // @flow
import React from 'react'
import type { Tag } from './StyleSheet'
import StyleSheet, { SC_ATTR, LOCAL_ATTR, clones } from './StyleSheet'
import StyleSheetManager from './StyleSheetManager'
class ServerTag implements Tag {
isLocal: boolean
components: { [string]: Object }
size: number
names: Array<stri... |
local-cli/templates/HelloWorld/__tests__/index.android.js | tszajna0/react-native | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
examples/async/src/containers/App.js | gaearon/redux | import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { selectSubreddit, fetchPostsIfNeeded, invalidateSubreddit } from '../actions'
import Picker from '../components/Picker'
import Posts from '../components/Posts'
class App extends Component {
stati... |
src/main/resources/static/js/jquery.min.js | 1412578/dajvpt | /*! 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... |
react/youtube_browser/components/video_list_item.js | steveyu123/web-3.0 | import React from 'react';
//using {video} is the same as const video = props.video
// The need to use .video is because when we passed the video via video_list, we set the name and property equal to video.
// For each specific element that is clicked will have a new video. It will also trigger the callback and set th... |
ajax/libs/componentjs/1.4.1/component.js | hare1039/cdnjs | /*
** ComponentJS -- Component System for JavaScript <http://componentjs.com>
** Copyright (c) 2009-2016 Ralf S. Engelschall <http://engelschall.com>
**
** This Source Code Form is subject to the terms of the Mozilla Public
** License (MPL), version 2.0. If a copy of the MPL was not distributed
** with this file, ... |
src/js/components/Header.js | casadoscontos/livrariacasadoscontos | // Dependencies
import React from 'react';
// Components
import Anchor from 'grommet/components/Anchor';
import Box from 'grommet/components/Box';
import Header from 'grommet/components/Header';
import Menu from 'grommet/components/Menu';
import SearchIcon from 'grommet/components/icons/base/Search';
import Logo from ... |
src/component/ReturnToTop.js | dentemple/developer-portfolio | import React from 'react'
import PropTypes from 'prop-types'
const TextContainer = ({children}) => {
const style = {
fontSize: '0.7em',
paddingTop: 30
}
return (
<nav>
<p style={style}>
{ children }
</p>
</nav>
)
}
const ReturnToTop = () => {
return (
<TextContainer>
... |
src/svg-icons/hardware/toys.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareToys = (props) => (
<SvgIcon {...props}>
<path d="M12 12c0-3 2.5-5.5 5.5-5.5S23 9 23 12H12zm0 0c0 3-2.5 5.5-5.5 5.5S1 15 1 12h11zm0 0c-3 0-5.5-2.5-5.5-5.5S9 1 12 1v11zm0 0c3 0 5.5 2.5 5.5 5.5S15 23 12 2... |
ajax/libs/6to5/3.3.5/browser.js | emijrp/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... |
src/routes/error/index.js | kutou/react-starter-kit | /**
* 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 App from '../../componen... |
screens/SettingsScreen.js | FuzzyHatPublishing/isleep | import React from 'react';
import { AsyncStorage, Image, SectionList, StyleSheet, Text, View } from 'react-native';
import { Constants } from 'expo';
export default class SettingsScreen extends React.Component {
static navigationOptions = {
title: 'More info',
};
_renderSectionHeader = ({ section }) => {
... |
src/client/TabList.js | fewhnhouse/chrome-tab-switcher | import TabItem from './TabItem';
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
export default class TabList extends Component {
constructor(props) {
super(props);
this.getHeight = this.getHeight.bind(this);
this.getScrollTop = this.getScrollTop.bind(this);
this.setScroll... |
src/components/notifications.js | faysal515/react-nanodegree-readable | import React from 'react';
import {connect} from 'react-redux'
import Notifications from 'react-notification-system-redux';
const Notif = (props) => {
return <Notifications notifications={props.notifications} />
}
const mapStateToProps = (store,ownProps) => {
return {
notifications: store.notifications
}
}... |
packages/react-scripts/fixtures/kitchensink/src/features/env/PublicUrl.js | GreenGremlin/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-public-url">{process.env.PUBLIC_URL}.</span>
);
|
examples/src/components/CustomRender.js | bruderstein/react-select | import React from 'react';
import Select from 'react-select';
var DisabledUpsellOptions = React.createClass({
displayName: 'DisabledUpsellOptions',
propTypes: {
label: React.PropTypes.string,
},
getInitialState () {
return {};
},
setValue (value) {
this.setState({ value });
console.log('Support level sel... |
ajax/libs/jquery/1.11.1-rc2/jquery.min.js | gereon/cdnjs | /*! jQuery v1.11.1-rc2 | (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 ... |
src/__tests__/AsyncSequencer.js | 3axap4eHko/react-helpful | import React, { Component } from 'react';
import renderer from 'react-test-renderer';
import AsyncSequencer from '../AsyncSequencer';
function actionFactory() {
return () => new Promise(resolve => setTimeout(resolve, 50, Date.now()));
}
test('AsyncSequencer', async () => {
const actions = Array.from({ length: 5 ... |
ajax/libs/yasgui/1.0.16/yasgui.bundled.min.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 t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r... |
files/rxjs/2.5.2/rx.compat.js | akkumar/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... |
Web/Scripts/jquery-1.7.1.js | Goldbishop/WikiNet | /*!
* jQuery JavaScript Library v1.7.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Released under the the MIT License.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT and BSD Licenses.
*
* Date: Mon Nov 21 21... |
app/server.js | shaunstanislaus/redux-blog-example | /* eslint-env node */
import express from 'express';
import cookieParser from 'cookie-parser';
import _ from 'lodash';
import path from 'path';
import fs from 'fs';
import React from 'react';
import { Router } from 'react-router';
import Location from 'react-router/lib/Location';
import { Provider } from 'react-redux';... |
ajax/libs/mocha/5.1.1/mocha.js | cdnjs/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... |
lib/Label/stories/BasicUsage.js | folio-org/stripes-components | /**
* Label: Basic Usage
*/
import React from 'react';
import Label from '../Label';
export default () => (
<>
<Label>
Simple label
</Label>
<br />
<br />
<Label required>
Required label
</Label>
<br />
<br />
<Label readOnly>
Read-only label
</Label>
</... |
src/views/Login.js | halo-design/halo-optimus | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { withRouter } from 'react-router-dom'
import NProgress from 'nprogress'
import { message } from 'antd'
import handleChange from 'UTIL/handleChange'
import * as loginAction from 'REDUCER/public/login'
impor... |
node_modules/react-bootstrap/es/MediaRight.js | yeshdev1/Everydays-project | 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 ... |
hw8-frontend/src/components/main/nav.js | MinZhou2016/comp531 | import React from 'react'
import { connect } from 'react-redux'
import { navToMain, navToProfile, updateSuccess, updateError, } from '../../actions'
import { logout,initialVisit } from '../auth/authActions'
const Nav = ({username, onProfile,navToProfile,initialVisit,logout,updateError,updateSuccess}) => (
<nav cla... |
ajax/libs/yasgui/1.0.12/yasgui.min.js | tonytomov/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r... |
packages/react/components/messagebar.js | iamxiaoma/Framework7 | import React from 'react';
import Utils from '../utils/utils';
import Mixins from '../utils/mixins';
import F7Input from './input';
import F7Link from './link';
import __reactComponentWatch from '../runtime-helpers/react-component-watch.js';
import __reactComponentDispatchEvent from '../runtime-helpers/react-component-... |
wrappers/json.js | johnpmorris/johnpmorris.github.io | import React from 'react'
module.exports = React.createClass({
propTypes () {
return {
route: React.PropTypes.object,
}
},
render () {
const data = this.props.route.page.data
return (
<div>
<h1>{data.title}</h1>
<p>Raw view of json file</p>
<pre dangerouslySetI... |
ajax/libs/react-data-grid/1.0.74/react-data-grid.ui-plugins.min.js | pvnr0082t/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports.ReactDataGrid=e(require("react"),require("react-dom")):t.ReactDataGrid=e(t.React,t.ReactDOM)}(th... |
js/jquery-1.11.0.js | genixers/genixers.github.io | /*! 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... |
src/components/IconAndInfo/index.js | iris-dni/iris-frontend | import React from 'react';
import Icon from 'components/Icon';
import styles from './icon-and-info.scss';
const IconAndInfo = ({ children, icon, info, size }) => (
<span className={styles.root}>
<span className={styles.icon}>
<Icon id={icon} size={size} inline />
</span>
{children || info}
</span... |
ajax/libs/6to5/3.0.2/browser-polyfill.js | amwmedia/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... |
client/src/pages/manufacturer/ManufacturerListItem.js | ccwukong/lfcommerce-react | import React from 'react';
import PropTypes from 'prop-types';
import { Button, Badge } from 'reactstrap';
import {
MdEmail,
MdMap,
MdCall,
} from 'react-icons/md';
import { injectIntl, FormattedMessage } from 'react-intl';
const ManufacturerListItem = props => {
const {
logo,
name,
url,
email,... |
node_modules/semantic-ui-react/dist/es/elements/List/ListDescription.js | SuperUncleCat/ServerMonitoring | import _extends from 'babel-runtime/helpers/extends';
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { childrenUtils, createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, META } from '../../lib';
/**
* A list item can contain a description.
... |
packages/material-ui-icons/src/CameraFrontRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M17 0H7C5.9 0 5 .9 5 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zm0 12.5c0-1.67-3.33-2.5-5-2.5s-5 .83-5 2.5V3c0-.55.45-1 1-1h8c.55 0 1 .45 1 1v9.5zm-6.15 6.35c-.31-.31-.85-.09-.85.36V20H6c-.... |
web/components/FlatrisGame/controls/Drop.js | skidding/flatris | // @flow
import React from 'react';
import PointerButton from './PointerButton';
type Props = {
onPress: Function,
};
export default function Drop({ onPress, ...rest }: Props) {
return (
<PointerButton
{...rest}
bgColor="#fff"
hoverEffect={false}
onPress={onPress}
>
<svg vie... |
src/client/handlers/AppHandler.js | janicduplessis/imessage-client | import React from 'react';
import StyleSheet from 'react-style';
import TransitionGroup from 'react/lib/ReactCSSTransitionGroup';
import ThemeManager from 'material-ui/lib/styles/theme-manager';
import {branch} from 'baobab-react/decorators';
import {RouteHandler} from 'react-router';
import NavBar from '../components... |
packages/material-ui-icons/src/Devices.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z" /><... |
src/widgets/ImagePanel.js | rsamec/react-widgets | import React from 'react';
import styleFont from '../styles/font';
export default class ImagePanel extends React.Component{
render() {
var style = styleFont(this.props.font);
//margin
var size = this.props.margin || {};
style.marginTop = size.top;
style.marginRight = size.right;
style.marginBottom = size.... |
ajax/libs/react-instantsearch/5.0.1/Connectors.js | sashberd/cdnjs | /*! ReactInstantSearch 5.0.1 | © 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', 'react'], factory) :
... |
src/components/Login.js | ratedali/desudesu | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Redirect } from 'react-router';
import { withStyles } from 'material-ui/styles';
import Grid from 'material-ui/Grid';
import Typography from 'material-ui/Typography';
const styles = theme => ({
container: {
display: 'fl... |
src/CarouselItem.js | IveWong/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import TransitionEvents from './utils/TransitionEvents';
const CarouselItem = React.createClass({
propTypes: {
direction: React.PropTypes.oneOf(['prev', 'next']),
onAnimateOutEnd: React.PropTypes.func,
active: React.PropTypes.bool,
anima... |
imports/ui/components/chat/chat.js | maz-dev/sainteJs | import { Meteor } from 'meteor/meteor';
import React, { Component } from 'react';
export default class Chat extends Component {
render() {
return(
<div></div>
);
}
}
|
wp-content/plugins/liveblog/src/react/Editor/blocks/CreateBlockHOC.js | MinnPost/minnpost-wordpress | /* eslint-disable react/display-name */
/* eslint-disable react/prop-types */
import React, { Component } from 'react';
import { EditorState } from 'draft-js';
import removeBlock from '../modifiers/removeBlock';
const CreateBlock = (Block, editorState, onChange) => class extends Component {
constructor() {
supe... |
wp-content/themes/kodomo/html/bootstrap-4.0.0-alpha/docs/assets/js/vendor/jquery.min.js | localymine/multisite | /*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
node_modules/react/lib/ReactDOMTextarea.js | maxdobeck/meteor-simple-todos | /**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModu... |
app/ContactInfo.js | ByunJaeSeok/selfStudy | import React from 'react';
class ContactInfo extends React.Component {
render() {
return (
<li>{this.props.name} {this.props.phone}</li>
);
}
}
ContactInfo.propTypes = {
name: React.PropTypes.string,
phone: React.PropTypes.string.isRequired,
};
export default ContactInfo;
|
react/SlideToggle/SlideToggle.sketch.js | seek-oss/seek-style-guide | import React from 'react';
import SlideToggle from './SlideToggle';
const noop = () => {};
export const symbols = {
'Slide Toggle/Unchecked': (
<SlideToggle
id="myToggleUnchecked"
label="Slide toggle"
onChange={noop}
checked={false}
/>
),
'Slide Toggle/Checked': (
<SlideToggl... |
ajax/libs/rxjs/2.3.19/rx.all.js | RobLoach/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false... |
src/TabPane.js | reactstrap/reactstrap | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { TabContext } from './TabContext';
import { mapToCssModules, tagPropType } from './utils';
const propTypes = {
tag: tagPropType,
className: PropTypes.string,
cssModule: PropTypes.object,
tabId: PropTypes... |
spec/javascripts/jsx/gradezilla/default_gradebook/components/LatePolicyGradeSpec.js | venturehive/canvas-lms | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/grid/Row.js | kosiakMD/react-native-elements | /*eslint-disable no-console */
import PropTypes from 'prop-types';
import React from 'react';
import { View, StyleSheet, TouchableOpacity } from 'react-native';
const Row = props => {
console.warn(
'Warning: Row has been deprecated and will be removed in a future version of React Native Elements'
);
const {... |
node_modules/react-bootstrap/es/Clearfix.js | WatkinsSoftwareDevelopment/HowardsBarberShop | 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 ... |
test/fixtures/valid-component.js | abramz/gulp-react-render | /*! Gulp Render React | MIT License */
import React, { Component, PropTypes } from 'react';
class ValidComponent extends Component {
static propTypes = {
some: PropTypes.string,
};
static defaultProps = {
some: 'prop',
};
renderElements() {
let id = 0;
return Object.keys(this.props).map((k... |
src/svg-icons/device/signal-cellular-0-bar.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellular0Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M2 22h20V2z"/>
</SvgIcon>
);
DeviceSignalCellular0Bar = pure(DeviceSignalCellular0Bar);
DeviceSignalCellular0Bar.displayN... |
frontend/node_modules/react-scripts/node_modules/babel-preset-react-app/node_modules/babel-preset-env/node_modules/babel-plugin-transform-es2015-computed-properties/node_modules/babel-template/node_modules/babel-traverse/lib/path/lib/hoister.js | andres81/auth-service | "use strict";
exports.__esModule = true;
var _getIterator2 = require("babel-runtime/core-js/get-iterator");
var _getIterator3 = _interopRequireDefault(_getIterator2);
var _classCallCheck2 = require("babel-runtime/helpers/classCallCheck");
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _babel... |
docs/assets/js/main.min.js | cdli-gh/mtaac | ---
layout:
---
/*!
* Minimal Mistakes Jekyll Theme 4.3.1 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... |
projects/imbu/gui/browser/app.js | cogmission/nupic.research | /* -----------------------------------------------------------------------------
* Copyright © 2015, Numenta, Inc. Unless you have purchased from
* Numenta, Inc. a separate commercial license for this software code, the
* following terms and conditions apply:
*
* This program is free software: you can redistribute... |
jenkins-design-language/src/js/components/material-ui/svg-icons/image/wb-auto.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageWbAuto = (props) => (
<SvgIcon {...props}>
<path d="M6.85 12.65h2.3L8 9l-1.15 3.65zM22 7l-1.2 6.29L19.3 7h-1.6l-1.49 6.29L15 7h-.76C12.77 5.17 10.53 4 8 4c-4.42 0-8 3.58-8 8s3.58 8 8 8c3.13 0 5.84-1.81 7.15-4.43l.1.43H17l1.5-6.1L20 16h1.7... |
src/components/NotFoundPage/NotFoundPage.js | praneel/RSK | /*
* React.js Starter Kit
* Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
//import './NotFoundPage.less';
import React from 'react'; // eslint-disable-line no-unus... |
[4]. Project/DianShang/Component/Home/SJShopCenter.js | knightsj/RN_Demo |
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
ScrollView,
Image,
} from 'react-native';
var TitleCell = require('../Common/SJCommonTitleCell')
var ShopItemView = require('./SJShoppingCenterItemView')
var Data = require('../../LocalData/SJHome_D5.json')
var ShopC... |
ajax/libs/material-ui/5.0.0-alpha.34/internal/svg-icons/ArrowDownward.min.js | cdnjs/cdnjs | import*as React from"react";import createSvgIcon from"../../utils/createSvgIcon";import{jsx as _jsx}from"react/jsx-runtime";export default createSvgIcon(_jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"); |
app/javascript/mastodon/features/list_adder/components/account.js | kazh98/social.arnip.org | import React from 'react';
import { connect } from 'react-redux';
import { makeGetAccount } from '../../../selectors';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Avatar from '../../../components/avatar';
import DisplayName from... |
common/routes/PostList/components/PostListItem.js | amitpaperg/roadmap-planner | import React from 'react'
import { Link } from 'react-router'
import { StyleSheet, css } from 'aphrodite'
const PostListItem = ({ post }) => (
<div className={css(styles.root)}>
<h3><Link to={`/post/${post.slug}`} className={css(styles.title)}> {post.title} </Link></h3>
</div>
)
const styles = StyleSheet.crea... |
Intl/setup.js | Hashnode/mern-starter | // list of available languages
export const enabledLanguages = [
'en',
'fr',
];
// this object will have language-specific data added to it which will be placed in the state when that language is active
// if localization data get to big, stop importing in all languages and switch to using API requests to load upo... |
ajax/libs/handsontable/0.10.0/jquery.handsontable.full.js | chrillep/cdnjs | /**
* Handsontable 0.10.0
* 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: Fri Dec 27 2013 17:46:22 GMT+0100 (Central European... |
IntegrationTests/RCTRootViewIntegrationTestApp.js | hoangpham95/react-native | /**
* 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';
const React = require('react');
const ReactNative = require('react-native');
const {
AppRegistry,
... |
src/mention/test-pages/components/Editor.js | Kindling/react-tinymce-mention | import React from 'react';
import TinyMCE from 'react-tinymce';
export default class Editor extends React.Component {
render() {
return (
<div>
<TinyMCE
content={''}
config={{
extended_valid_elements: 'blockquote[dir|style|cite|class|dir<ltr?rtl],iframe[src|framebord... |
src/svg-icons/device/brightness-medium.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBrightnessMedium = (props) => (
<SvgIcon {...props}>
<path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6... |
node_modules/laravel-elixir/node_modules/gulp-babel/node_modules/babel-core/node_modules/core-js/library/modules/es6.promise.js | ssomenzi/silence | 'use strict';
var $ = require('./$')
, LIBRARY = require('./$.library')
, global = require('./$.global')
, ctx = require('./$.ctx')
, classof = require('./$.classof')
, $export = require('./$.export')
, isObject = require('./$.is-object')
, anObject = require('./$.an-objec... |
ajax/libs/react-data-grid/0.14.30/react-data-grid-with-addons.js | seogi1004/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
src/components/LeagueForm.js | wdavew/king-pong | import React, { Component } from 'react';
function LeagueForm({chooseLeague, submit, leagues, handleInputTextChange}) {
const data = leagues.map((name, index) => <option key={index}>{name}</option>);
return (
<div className='container leagueform'>
<div className='league-form row'>
<div className=... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.