target stringlengths 5 300 | feat_repo_name stringlengths 6 76 | text stringlengths 26 1.05M |
|---|---|---|
ajax/libs/6to5/1.12.13/browser.js | Showfom/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... |
client-app-php/js/components/TodoItem/index.js | wangwii/i18n-demo | import React, { Component } from 'react'
import TodoTextInput from '../TodoTextInput'
import classnames from 'classnames'
import style from './style.css'
class TodoItem extends Component {
constructor(props, context) {
super(props, context)
this.state = {
editing: false
}
}
handleDoubleClick()... |
ajax/libs/yasgui/1.2.1/yasgui.bundled.min.js | humbletim/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... |
src/__tests__/components/Devices/Devices.js | isuruAb/chat.susi.ai | import React from 'react';
import Devices from '../../../components/Devices/Devices.react';
import { shallow } from 'enzyme';
it('render without crashing',()=>{
shallow(<Devices location={{'pathname': '/devices'}} />);
});
|
packages/material-ui-icons/src/AccountCircleRounded.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 d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.7... |
local-cli/templates/HelloWorld/__tests__/index.android.js | Livyli/react-native | jest.disableAutomock();
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 />
);
});
|
src/svg-icons/maps/store-mall-directory.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsStoreMallDirectory = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z"/>
</SvgIcon>
);
MapsStoreMallDirectory = pure(MapsStoreMallDirec... |
packages/material-ui-icons/src/AppsOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z" />
, 'AppsOutlined');
|
wp-includes/js/jquery/jquery.js | AmandaSou7/BarterEX | /*! 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... |
ajax/libs/es6-shim/0.15.1/es6-shim.js | zhangbg/cdnjs | // ES6-shim 0.15.1 (c) 2013-2014 Paul Miller (http://paulmillr.com)
// ES6-shim may be freely distributed under the MIT license.
// For more details and documentation:
// https://github.com/paulmillr/es6-shim/
(function(undefined) {
'use strict';
var isCallableWithoutNew = function(func) {
try { func(); }
... |
src/components/event_page/event_details/participant.js | decaster3/hikester_redux | import React from 'react';
import FontAwesome from 'react-fontawesome';
export default class Participant extends React.Component {
constructor(props) {
super(props);
this.state = {
};
}
render() {
let display_style = this.props.show ? 'inline-block' : 'none';
return (
<a
cla... |
stories/FloatingToolbar/index.js | michalko/draft-wyswig | /* @flow */
import React from 'react';
import { Editor } from '../../src';
import './styles.css';
const FloatingToolbar = () =>
(<div className="rdw-storybook-root">
<h3>Toolbar appears as editor is clicked</h3>
<Editor
toolbarOnFocus
toolbarClassName="rdw-storybook-toolbar-absolute"
wrapp... |
app/GUI/d3ShapeOnly/shapes/pie.js | bgrsquared/d3-v4-playground | import React from 'react';
import { pie, arc } from 'd3-shape';
import { lab } from 'd3-interpolate';
export const Pie = () => {
const data = [1, 1, 2, 3, 5, 8, 13, 21];
const arcs = pie()(data);
const arcGen = arc()
.innerRadius(0)
.outerRadius(100);
const col = lab('darkgray', 'yellow');
return... |
src/layouts/index.js | simpaa/s-andersson-site | import React from 'react'
import PropTypes from 'prop-types'
import Link from 'gatsby-link'
import Helmet from 'react-helmet'
import Header from '../components/header';
import Footer from '../components/footer';
import Data from '../data/SiteConfig';
import './index.css'
const TemplateWrapper = ({
children
}) => (... |
ajax/libs/jquery/1.4.3/jquery.js | kristoferjoseph/cdnjs | /*!
* jQuery JavaScript Library v1.4.3
* 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.
... |
src/dev_tools/DevTools.js | elbstack/elbstack-hackreact-web-3 | import React from 'react'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'
export default createDevTools(
<DockMonitor toggleVisibilityKey="ctrl-H" changePositionKey="ctrl-Q">
<LogMonitor />
</DockMonitor>
... |
src/modules/home/components/Header.js | paramsinghvc/harp | import React, { Component } from 'react';
import AppBar from 'material-ui/AppBar';
import Drawer from 'material-ui/Drawer';
import MenuItem from 'material-ui/MenuItem';
import IconButton from 'material-ui/IconButton';
import IconMenu from 'material-ui/IconMenu';
import NavigationClose from 'material-ui/svg-icons/naviga... |
static/src/components/AuthenticatedComponent.js | dom-o/hangboard-helper | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { browserHistory } from 'react-router';
import * as actionCreators from '../actions/auth';
function mapStateToProps(state) {
return {
token: state.auth.token,
userName: state.auth.us... |
src/app/js/MathCol.js | skratchdot/colorify | import React, { Component } from 'react';
import { Col, Table, Popover } from 'react-bootstrap';
import { withRouter } from 'react-router-dom';
class MathCol extends Component {
constructor(props) {
super(props);
this.state = {
hover: false,
};
}
handleClick = () => {
this.props.history.pus... |
src/emoji.js | wildseansy/react-native-country-picker-modal | import React from 'react';
import { Text } from 'react-native';
import nodeEmoji from 'node-emoji';
PropTypes = require('prop-types');
if (!PropTypes) {
PropTypes = React.PropTypes;
}
class Emoji extends React.Component {
static propTypes = {
name: PropTypes.string.isRequired,
}
render() {
const emo... |
src/clincoded/static/components/reference.js | ClinGen/clincoded | 'use strict';
import React, { Component } from 'react';
export default class PubReferenceList extends Component {
render() {
var props = this.props;
return (
<ul className={props.className}>
{props.values.map(function (value, index) {
return value.ide... |
ajax/libs/forerunnerdb/1.3.784/fdb-core+persist.js | him2him2/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/rxjs/2.3.10/rx.lite.js | qrohlf/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/jquery-footable/2.0.3/js/footable.js | dakshshah96/cdnjs | /*!
* FooTable - Awesome Responsive Tables
* Version : 2.0.3
* http://fooplugins.com/plugins/footable-jquery/
*
* Requires jQuery - http://jquery.com/
*
* Copyright 2014 Steven Usher & Brad Vincent
* Released under the MIT license
* You are free to use FooTable in commercial projects as long as this copyright... |
app/config/Root.js | KleoPetroff/react-webpack-boilerplate | import React from 'react';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import App from '../components/App';
const Root = () => {
return (
<Router>
<Switch>
<Route path="/" component={App} exact />
</Switch>
</Router>
);
};
export default Root;
|
src/server.js | gldnspud/react-redux-universal-hot-example | /*global __DEVELOPMENT__*/
import Express from 'express';
import React from 'react';
import Location from 'react-router/lib/Location';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStor... |
src/index.js | bombbomb/Hydra | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './css/index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/components/node.js | AJAY2r/pub-test | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import {VelocityTransitionGroup} from 'velocity-react';
import LazyLoad from 'react-lazy-load';
import _ from 'lodash';
import NodeHeader from './header';
class TreeNode extends React.Component {
constructor() {
super();
... |
examples/todos-with-undo/containers/AddTodo.js | Aweary/redux | import React from 'react'
import { connect } from 'react-redux'
import { addTodo } from '../actions'
let AddTodo = ({ dispatch }) => {
let input
return (
<div>
<form onSubmit={e => {
e.preventDefault()
if (!input.value.trim()) {
return
}
dispatch(addTodo(input.v... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/DefaultPropsNoneButState.js | popham/flow | // @flow
import React from 'react';
class MyComponent extends React.Component<void, Props, State> {
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extends React.Component<void, Props, State> {
defaultProps: T;
static prop... |
plugins/system/t3/base/bootstrap/js/jquery.js | cifren/blogAmerica | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function( window, undefined ) {
// Use the correct document accordingly with window argument (sandbox)
var document = window.document,
navigator = window.navigator,
location = window.location;
var jQuery = (function() {
// Define a local copy of jQuery
var jQuer... |
src/view.js | briandunn/audio_param_graph | import React from 'react'
import takeSamples from './take_samples'
import {paramSignatures} from './model'
const ResultLine = ({points}) =>
<polyline
style={{fill:'none', stroke:'blue', strokeWidth: '0.5%'}}
points={ points.map(({t,v}) => [t,1 - v].join(' ')).join(' ') }/>
const Circle = ({point}) =>
<cir... |
src/svg-icons/hardware/tv.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareTv = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12z"/>
</SvgIcon>
);
HardwareTv = pure(Hardwar... |
ajax/libs/rxjs/2.2.7/rx.lite.js | ThibWeb/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
(function (window, undefined) {
var freeExports = typeof exports == 'object' && exports,
freeModule = typeof module == 'object' && module && module.exports == freeExports &&... |
src/components/Greeting.js | pavelsuraba/react-devstack | import React from 'react';
import styled from 'styled-components';
import { media } from '_utils/mixins';
const Text = styled.p`
font-size: 16px;
${ media.desktop`
font-size: 24px;
`}
`;
const Highlight = styled.strong`
color: #00d8ff;
font-weight: 700;
`;
export default () => (
<Text... |
tech_stack/index.ios.js | DaveWJ/LearningReact | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class tech_stack extends Component {
render() {
return (
<View style={styles.containe... |
src/app/src/assets/utils/functions/FnScroll.js | istreight/eggbeatr | /**
* FILENAME: FnScroll.js
* AUTHOR: Isaac Streight
* START DATE: May 31th, 2018
*
* This file contains the FnScroll class, a utility class for
* auto-scrolling in the application.
*/
import React from 'react';
import Animator from 'functions/Animator';
class FnScroll extends React.Component {
... |
ajax/libs/flocks.js/0.14.2/flocks.js | chrisyip/cdnjs | /** @jsx React.DOM */
/* jshint node: true, browser: true, newcap: false */
/**
* The Flocks library module.
*
* @module Flocks
* @main Flocks
*/
// if it's in a <script> it's defined already
// otherwise assume commonjs
if (typeof React === 'undefined') {
var React = require('react'... |
ajax/libs/analytics.js/1.3.30/analytics.js | marxo/cdnjs | ;(function(){
/**
* Require the given path.
*
* @param {String} path
* @return {Object} exports
* @api public
*/
function require(path, parent, orig) {
var resolved = require.resolve(path);
// lookup failed
if (null == resolved) {
orig = orig || path;
parent = parent || 'root';
var err = new ... |
packages/react-widgets/src/MultiselectTagList.js | haneev/react-widgets | import React from 'react';
import PropTypes from 'prop-types';
import MultiselectTag from './MultiselectTag';
import * as CustomPropTypes from './util/PropTypes';
import { dataIndexOf } from './util/dataHelpers';
// disabled === true || [1, 2, 3, etc]
const isDisabled = (item, list, value) =>
!!(Array.isArray(list... |
node_modules/fsevents/node_modules/ajv/dist/regenerator.min.js | deshbandhu-renovite/receipt-eCommerce | /* regenerator 0.9.7: Source transformer enabling ECMAScript 6 generator functions (yield) in JavaScript-of-today (ES5) */
require=function e(t,r,n){function i(a,o){if(!r[a]){if(!t[a]){var u="function"==typeof require&&require;if(!o&&u)return u(a,!0);if(s)return s(a,!0);var l=new Error("Cannot find module '"+a+"'");thr... |
src/connectors/slideshow.js | bhuvanmalik007/mission-admission | import React from 'react'
import PropTypes from 'prop-types'
import { pick } from 'ramda' //eslint-disable-line
import { connect } from 'react-redux'
import Card from 'grommet/components/Card'
import Box from 'grommet/components/Box'
import Paragraph from 'grommet/components/Paragraph'
import Heading from 'grommet/comp... |
packages/material-ui-icons/src/TerrainTwoTone.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="M5 16h3.04l-1.52-2.03z" opacity=".3" /><path d="M9.78 11.63l1.25 1.67L14 9.33 19 16h-8.46l-4.01-5.37L1 18h22L14 6l-4.22 5.63zM5 16l1.52-2.03L8.0... |
test/containers/CounterPage.spec.js | tgirgin23/osm-electron-editor | import React from 'react';
import { mount } from 'enzyme';
import { Provider } from 'react-redux';
import { createBrowserHistory } from 'history';
import { ConnectedRouter } from 'react-router-redux';
import CounterPage from '../../app/containers/CounterPage';
import { configureStore } from '../../app/store/configureSt... |
ajax/libs/mediaelement/2.0.0/jquery.js | nouveller/cdnjs | /*!
* jQuery JavaScript Library v1.4.4
* 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.
... |
apps/marketplace/components/SellerAssessment/SellerAssessmentRateStage.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { Form } from 'react-redux-form'
import Textfield from 'shared/form/Textfield'
import formProps from 'shared/form/formPropsSelector'
import ErrorAlert from 'marketplace/components/Alerts/ErrorAlert'
import AUheadin... |
ajax/libs/angular.js/0.9.1/angular-scenario.min.js | alucard001/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.
... |
src/components/Stop/Stop.js | mark4carter/react-hrtbus | import React from 'react'
import Radium from 'radium'
import Colors from '../common/Colors'
import Bus from './Bus/Bus'
const style = {
base: {
marginBottom: '1.5em'
},
header: {
background: Colors.blue.dark,
padding: '1em',
display: 'flex',
alignItems: 'center',
color: 'white'
},
... |
ajax/libs/rxjs/2.3.17/rx.lite.js | koggdal/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/js/components/layout/footer/footer.js | javiergarciagonzalez/portfolio | import React from 'react';
import { Link } from 'react-router';
const Footer = (props) => {
return (
<footer className="clearfix">
Website info.
</footer>
)
};
export default Footer; |
src/framework/react/demo/index.js | baukh789/GridManager | import ReactDOM from 'react-dom';
import React, { Component } from 'react';
import GridManagerReact from '../js/index.js';
import SearchComponent from './search';
import { ActionComponents, EmptyTemplate, TitleComponents, TypeComponents, EditComponents } from './components';
import FooterComponent from './footer';
impo... |
js/logging.js | concord-consortium/react-lab-examples | import React from 'react';
import ReactDOM from 'react-dom';
import Lab from 'react-lab';
import interactive from '../json/simple-interactive.json';
import model from '../json/simple-model.json';
class Interactive extends React.Component {
constructor(props) {
super(props);
this.state = {
logs: []
... |
ajax/libs/core-js/0.8.0/core.js | kartikrao31/cdnjs | /**
* Core.js 0.8.0
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(undefined){
var __e = null, __g = null;
(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... |
src/components/SpiritViewer/index.js | aaron-edwards/Spirit-Guide | import React, { Component } from 'react';
import { View, Text, Picker, ScrollView, StyleSheet } from 'react-native';
import SpiritStats from './stats';
import SpiritInitiative from './initiative';
import SpiritSkills from './skills';
import Combobox from '../ComboboxWrapper';
import GroupBox from '../GroupBox';
co... |
src/components/Counter.js | mmapplebeck/react-redux-minesweeper | import React from 'react'
import '../style/counter.scss'
export default props => (
<div className="counter">{props.count}</div>
) |
.client/test/components/todo.js | okmttdhr/meteor-react-redux-boilerplate | import React from 'react';
import assert from 'power-assert';
import TestUtils from 'react-addons-test-utils';
import TodoApp from 'dir_src/components/TodoApp';
import {setUp, todoMock} from 'dir_src/test/helper';
function renderWithProps (props = {}) {
return TestUtils.renderIntoDocument(<TodoApp {...props} />);
}
... |
src/svg-icons/notification/do-not-disturb-on.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationDoNotDisturbOn = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z"/>
</SvgIcon>
);
NotificationDoNotDisturbOn = pure(No... |
src/svg-icons/toggle/radio-button-unchecked.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ToggleRadioButtonUnchecked = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/>
</SvgIco... |
test/Button-test.js | HurricaneJames/react-simple-nav | import expect from 'expect.js';
import sinon from 'sinon';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import Button from '../src/Button';
describe('Button', () => {
it('should not crash with no props', () => {
var sandbox = sinon.sandbox.create();
sandbox.stub(console, 'log... |
packages/button/src/__stories__/stories.js | Autodesk/hig | import React from "react";
import { Settings24 } from "@hig/icons";
export default [
{
description: "default",
getProps: () => ({
title: "Button Title",
}),
},
{
description: "as a link",
getProps: () => ({
link: "https://www.autodesk.com",
target: "_blank",
title: "Bu... |
ajax/libs/angular.js/1.0.0rc5/angular-scenario.js | luigimannoni/cdnjs | /** @license
* jQuery JavaScript Library v1.7
* 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 Lic... |
js/components/signup/index.js | phamngoclinh/PetOnline_vs2 |
import React, { Component } from 'react';
import { Image, Alert, AsyncStorage } from 'react-native';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Content, Text, Button, View, Icon, InputGroup, Input, List, ListItem, CheckBox, Spinner } from... |
ajax/libs/react/0.10.0/react.js | SpencerCDixon/cdnjs | /**
* React v0.10.0
*/
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.React=e()}}(function(){var define,module,exports;return (fu... |
demo/index.js | asdelday/react-dumb-component | import React from 'react';
import { render } from 'react-dom';
import App from './App';
(() => {
const app = document.getElementById('react-view');
render(<App />, app);
})();
|
ajax/libs/material-ui/5.0.0-alpha.36/modern/Checkbox/Checkbox.js | cdnjs/cdnjs | import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
import * as React from 'react';
import PropTypes from 'prop-types';
import { refType } from '@material-ui/utils';
import { unstable_composeClasses as composeCla... |
static/js/jquery.js | arun-sfdc/MyCharts | /*! jQuery v1.10.1 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.1.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.1",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
web/src/app.js | GregoireHebert/tamagotchi | import React from 'react'
import ReactDOM from 'react-dom'
import Game from './components/Game'
import 'normalize.css/normalize.css'
import './styles/styles.scss'
ReactDOM.render(<Game />, document.getElementById('root')); |
tests/unit/amo/reducers/test_users.js | mozilla/addons-frontend | import { LOCATION_CHANGE } from 'connected-react-router';
import reducer, {
LOAD_USER_ACCOUNT,
abortUnsubscribeNotification,
finishUnsubscribeNotification,
finishUpdateUserAccount,
getCurrentUser,
getUnsubscribeKey,
getUserById,
getUserByUsername,
hasAnyReviewerRelatedPermission,
hasPermission,
i... |
node_modules/socket.io-adapter/node_modules/debug/browser.js | UKForeignOffice/ETD-prototype-upload |
/**
* This is the web browser implementation of `debug()`.
*
* Expose `debug()` as the module.
*/
exports = module.exports = require('./debug');
exports.log = log;
exports.formatArgs = formatArgs;
exports.save = save;
exports.load = load;
exports.useColors = useColors;
exports.storage = 'undefined' != typeof chro... |
test/js/AR/release_test/ViroPortalTestAR.js | viromedia/viro | /**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import {
ViroSceneNavigator,
ViroScene,
ViroARScene,
ViroBox,
ViroMaterials,
Vir... |
src/dumb/buttons/RemoveIconButton.js | jeckhummer/ebidding-commercial | import React from 'react';
import {IconButton} from "./IconButton";
export class RemoveIconButton extends React.Component{
render() {
return (
<IconButton
name="remove"
color="red"
tooltip="Remove item"
onClick={this.props.onClick... |
packages/cp-frontend/src/components/service/scale.js | yldio/copilot | import React from 'react';
import PropTypes from 'prop-types';
import { ModalHeading, ModalText, Button } from 'joyent-ui-toolkit';
import {
FormGroup,
NumberInput,
NumberInputNormalize,
FormMeta
} from 'joyent-ui-toolkit';
const ServiceScale = ({
service,
handleSubmit = () => {},
onCancel = () => {},
... |
App/Containers/PresentationTab.js | oreofish/v2exClient | // @flow
import React from 'react'
import { ScrollView, Text, Image, View } from 'react-native'
import { Images } from '../Themes'
import RoundedButton from '../Components/RoundedButton'
import PageContainer from '../Components/common/PageContainer'
import { Actions as NavigationActions } from 'react-native-router-flu... |
admin/client/components/AltText.js | codevlabs/keystone | import React from 'react';
import blacklist from 'blacklist';
import vkey from 'vkey';
var AltText = React.createClass({
propTypes: {
component: React.PropTypes.string,
modified: React.PropTypes.string,
modifier: React.PropTypes.string,
normal: React.PropTypes.string,
},
getDefaultProps () {
return {
c... |
docs/app/Examples/modules/Dropdown/Usage/DropdownExampleOpenOnFocus.js | shengnian/shengnian-ui-react | import React from 'react'
import { Dropdown } from 'shengnian-ui-react'
import { friendOptions } from '../common'
const DropdownExampleOpenOnFocus = () => (
<div>
<Dropdown placeholder='I open on focus' openOnFocus selection options={friendOptions} />
{' '}
<Dropdown placeholder='I do not open on focus' ... |
bower_components/bootstrap/js/tests/vendor/jquery.js | benfes/angular-timer | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
packages/material-ui-icons/src/RestoreFromTrashRounded.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v10zm5.65-8.65c.2-.2.51-.2.71 0L16 14h-2v4h-4v-4H8l3.65-3.65zM15.5 4l-.71... |
examples/async/index.js | MathieuDoyon/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
</Provider>,
document.getElementByI... |
packages/react-native-renderer/src/ReactNativeTypes.js | yiminghe/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.
*
* @format
* @flow
*/
import React from 'react';
export type MeasureOnSuccessCallback = (
x: number,
y: number,
width: num... |
src/svg-icons/av/snooze.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvSnooze = (props) => (
<SvgIcon {...props}>
<path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9... |
imports/plugins/included/social/client/containers/socialSettingsContainer.js | levu48/reaction | import React, { Component } from "react";
import PropTypes from "prop-types";
import { isEqual } from "lodash";
import { composeWithTracker } from "@reactioncommerce/reaction-components";
import { Meteor } from "meteor/meteor";
import { Reaction, i18next } from "/client/api";
import { Packages } from "/lib/collections"... |
src/svg-icons/image/wb-sunny.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageWbSunny = (props) => (
<SvgIcon {...props}>
<path d="M6.76 4.84l-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91l-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7... |
app/components/ChargesList/index.js | projectcashmere/web-server | /**
*
* ChargesList
*
*/
import React from 'react';
import styled from 'styled-components';
import { FormattedMessage } from 'react-intl';
import messages from './messages';
const TopRow = ({ currency }) => (
<div className="row">
<div className="col-sm-6">
<b><FormattedMessage {...messages.service} /></... |
tests/autocomplete/jsx-function-component.js | gabelevi/flow | // @flow
var React = require('react');
type Props = $ReadOnly<{x: number, y: string}>;
function C(props: Props) {
}
<C // space
|
frontend/src/components/ViewActivities/activity.js | googleinterns/SLURP | import React from 'react';
import * as time from '../Utils/time.js';
import * as DB from '../../constants/database.js'
import '../../styles/activities.css';
import EditActivity from './editActivity.js';
import { Accordion, Card } from 'react-bootstrap';
import * as utils from './activityfns.js';
/**
* React componen... |
samples/hellojs-jc/src/main/resources/resources/js/jquery-1.8.3.js | zshift/spring-security | /*!
* jQuery JavaScript Library v1.8.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time)
*/
(function(... |
src/components/common/icons/Like.js | chejen/GoodJobShare | import React from 'react';
/* eslint-disable */
const Like = (props) => (
<svg {...props} width="148" height="148" viewBox="0 0 148 148">
<path d="M78.3722158 0C71.7141245 0 73.9531286 14.5885714 73.9531286 14.5885714 73.9531286 14.5885714 59.723668 54.8204082 46.1128797 65.5428571 43.1962822 68.6840816 41.36972... |
examples/simple/src/components/header.js | herschel666/phox | import React from 'react';
import PropTypes from 'prop-types';
import { MAX_WIDTH, BREAKPOINT_MEDIUM } from '../constants';
const Header = ({ headline }) => (
<header>
<style jsx>
{`
header {
padding: 18px 0;
background-color: #444;
color: #f4f4f4;
border-bot... |
demo/ButtonWithHigherOrder.js | brentertz/react-suitcssify | 'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import SuitCssify from '../index';
import classNames from 'classnames';
class Button extends Component {
static propTypes = {
children: PropTypes.node,
disabled: PropTypes.bool,
getClassName: PropTypes.func.isReq... |
app/components/Client.js | zackhall/ack-chat | // @flow
import React, { Component } from 'react';
import { Link } from 'react-router';
import SystemPane from './SystemPane';
import ChatPane from './ChatPane';
import styles from './Client.css';
export default class Client extends Component {
props: {
channels: object,
};
render() {
return (
<d... |
node_modules/bower/node_modules/inquirer/node_modules/rx/src/core/linq/observable/ambproto.js | Chien19861128/qa-app | /**
* Propagates the observable sequence or Promise that reacts first.
* @param {Observable} rightSource Second observable sequence or Promise.
* @returns {Observable} {Observable} An observable sequence that surfaces either of the given sequences, whichever reacted first.
*/
observableProto.amb = ... |
src/svg-icons/image/audiotrack.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageAudiotrack = (props) => (
<SvgIcon {...props}>
<path d="M12 3v9.28c-.47-.17-.97-.28-1.5-.28C8.01 12 6 14.01 6 16.5S8.01 21 10.5 21c2.31 0 4.2-1.75 4.45-4H15V6h4V3h-7z"/>
</SvgIcon>
);
ImageAudiotrack = p... |
frontend/src/app/components/DiscussDialog.js | clouserw/testpilot | import React from 'react';
export default class DiscussDialog extends React.Component {
render() {
return (
<div className="modal-container">
<div id="discuss-modal" className="modal feedback-modal modal-bounce-in">
<header>
<h3 className="title" data-l10n-id="discussNotifyTit... |
src/app/index.react.js | ryym/play-flex | import React from 'react';
import Router, { Route } from 'react-router';
import Layout from './Layout';
import Playground from './Playground';
/**
* Render whole application components and define routes.
*/
export default class App extends React.Component {
render() {
return (
<Router>
<Route com... |
src/website/app/demos/Checkbox/Checkbox/propsComment.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
export default (
<p>
Unlike most other components, which apply undocumented properties to the
root element, Checkbox applies undocumented properties, including{' '}
<a href="/styling#customization-techniques-try-theming-first-{{8}}-{{14}}-prop">
<code>as</code... |
src/svg-icons/device/signal-cellular-connected-no-internet-4-bar.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularConnectedNoInternet4Bar = (props) => (
<SvgIcon {...props}>
<path d="M20 18h2v-8h-2v8zm0 4h2v-2h-2v2zM2 22h16V8h4V2L2 22z"/>
</SvgIcon>
);
DeviceSignalCellularConnectedNoInternet4Bar = pur... |
client/src/components/signup/UserVerification.js | FCC-Alumni/alumni-network | import { addFlashMessage } from '../../actions/flashMessages';
import { connect } from 'react-redux';
import { connectScreenSize } from 'react-screen-size';
import { mapScreenSizeToProps } from '../Navbar';
import propTypes from 'prop-types';
import React from 'react';
import styled from 'styled-components';
import {
... |
docs/src/pages/components/popover/MouseOverPopover.js | allanalexandre/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import Popover from '@material-ui/core/Popover';
import Typography from '@material-ui/core/Typography';
import { withStyles } from '@material-ui/core/styles';
const styles = theme => ({
popover: {
pointerEvents: 'none',
},
paper: {
padding: t... |
hw6-frontend/src/components/article/article.js | brendazhao/comp531 | import React from 'react'
import NewArticle from './newArticle'
import ArticlesView from './articlesView'
//Basic structure of article module
const Article = (props) => {
return(
<div>
<NewArticle/>
<br/><br/>
<ArticlesView articles=
{require('../... |
es/Form/FormHelperText.js | uplevel-technology/material-ui-next | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.