path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/svg-icons/av/closed-caption.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvClosedCaption = (props) => (
<SvgIcon {...props}>
<path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 7H9.5v-.5h-2v3h2V13H11v1c0 .55-.45 1-1 1H7c-.55 0-1-.45-1-1v-4c0-.5... |
src/components/main-layout.js | eh3rrera/react-horizon | import React, { Component } from 'react';
import { Link } from 'react-router';
import Menu from './menu';
export default class MainLayout extends Component {
render() {
return (
<div className="app">
<div>
<Menu/>
</div>
<div>
... |
src/templates/blog.js | getinsomnia/insomnia.rest | import React from 'react';
import { graphql } from 'gatsby';
import DownloadButton from '../components/download-button';
import SocialCards from '../components/social-cards';
import ShareButtons from '../partials/share-buttons';
import Title from '../partials/title';
import Link from '../components/link';
export defau... |
frontend/src/Components/Table/TableBody.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
class TableBody extends Component {
//
// Render
render() {
const {
children
} = this.props;
return (
<tbody>{children}</tbody>
);
}
}
TableBody.propTypes = {
children: PropTypes.node
};
export def... |
examples/with-redux-observable/components/CharacterInfo.js | BlancheXu/test | import React from 'react'
import { connect } from 'react-redux'
const CharacterInfo = ({
character,
error,
fetchCharacter,
isFetchedOnServer = false
}) => (
<div className='CharacterInfo'>
{error ? (
<p>We encountered and error.</p>
) : (
<article>
<h3>Character: {character.name}<... |
ajax/libs/vue/1.0.12-csp-1/vue.common.js | dc-js/cdnjs | /*!
* Vue.js v1.0.12-csp
* (c) 2015 Evan You
* Released under the MIT License.
*/
'use strict';
var __commonjs_global = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : this;
function set(obj, key, val) {
if (hasOwn(obj, key)) {
obj[key] = val;
return;
}
if (obj._isVu... |
src/components/message/ErrorModal.js | itjope/tipskampen | import React from 'react'
import Dialog from 'material-ui/Dialog'
import FlatButton from 'material-ui/FlatButton'
const ErrorModal = (props) => {
const actions = [
<FlatButton
label='OK'
secondary={true}
onTouchTap={props.onClose}
/>
]
return (
<Dialog
title='Error'
acti... |
examples/typescript-react/node_modules/react-dom/test-utils.js | slegrand45/todomvc | 'use strict';
if (process.env.NODE_ENV === 'production') {
module.exports = require('./cjs/react-dom-test-utils.production.min.js');
} else {
module.exports = require('./cjs/react-dom-test-utils.development.js');
}
|
src/modules/Input/components/InputDevice/index.js | ruebel/synth-react-redux | import React from 'react';
import PropTypes from 'prop-types';
import Keyboard from './Keyboard';
import Midi from './Midi';
import Socket from './Socket';
import Stream from './Stream';
import { inputTypes } from '../../../../utils/input';
const InputDevice = ({ device }) => {
if (!device) {
return null;
}
... |
frontend/src/index.js | shapiromatron/bmds-server | import React from "react";
import ReactDOM from "react-dom";
import App from "./App";
import {Provider} from "mobx-react";
import rootStore from "./stores/RootStore";
const Root = (
<Provider
store={rootStore}
dataStore={rootStore.dataStore}
dataOptionStore={rootStore.dataOptionStore}
... |
ajax/libs/yui/3.7.0/event-custom-base/event-custom-base-debug.js | tresni/cdnjs | YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @mo... |
functional-site/js/angular-1.2.14/docs/components/bootstrap-3.1.1/js/tests/vendor/jquery.js | rsutormin/ui-common | /*! 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/yui/3.7.2/simpleyui/simpleyui.js | LostCrew/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
*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The YUI gl... |
node_modules/react-addons-update/node_modules/fbjs/node_modules/core-js/modules/es6.promise.js | mannyng/ceap | '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... |
pages/review.js | ivygong/irc | import React, { Component } from 'react';
import Helmet from 'react-helmet';
import { config } from 'config';
import { Link } from 'react-router';
import { prefixLink } from 'gatsby-helpers';
export default class Review extends Component {
render () {
return (
<div className="page page--review">
<H... |
clients/privacy/components/HelpBox.js | Desertsnowman/Caldera-Forms | import React from 'react';
import PropTypes from 'prop-types';
import {Twemoji} from 'react-emoji-render';
import {DocLinks} from "./DocLinks";
import {ListGroup, ListGroupItem } from 'react-bootstrap'
export const HelpBox = (props) => {
return (
<div
style={{
backgroundColor: '#fff'
}}
className={'col-... |
src/test/Stocks.js | jperez10/RobinHoodAutoTrader | import React, { Component } from 'react';
//BEFORE:
//<td><a href="#">edit/</a> <a href="#">delete/</a> <a href="#">grades</a></td>
class Stocks extends Component {
render() {
console.log("Props - ", this.props.Stocks);
// {this.props.Stocks.map(function(stock) {
// return (
// <div key={sto... |
websites/skraning.vefverdlaun.is/src/app/routes/Board/Board.js | svef/www | import React from 'react'
import Helmet from 'react-helmet'
import { withJob } from 'react-jobs'
import api from 'app/contentful'
const AsyncDetails = ({ jobResult: data }) => (
<div className="row">
<Helmet>
<title>Stjórn</title>
</Helmet>
{data.items.map(board => (
<div className="col-4" ke... |
ajax/libs/yui/3.14.1/event-focus/event-focus-debug.js | DaAwesomeP/cdnjs | YUI.add('event-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
arrayIndex = Y.Array.indexOf,
useActivate = (function() {
... |
code/workspaces/web-app/src/components/modal/ShareStackDialog.js | NERC-CEH/datalab | import React from 'react';
import PropTypes from 'prop-types';
import Dialog from '@material-ui/core/Dialog';
import DialogTitle from '@material-ui/core/DialogTitle';
import DialogContent from '@material-ui/core/DialogContent';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContentText from '... |
ext/libjpeg-turbo/doc/html/jquery.js | c41x/cpptoolset | /*! 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... |
Console/app/node_modules/react-error-overlay/lib/components/Footer.js | RisenEsports/RisenEsports.github.io | /**
* Copyright (c) 2015-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.
*/
import Rea... |
ajax/libs/forerunnerdb/1.3.41/fdb-all.js | pvnr0082t/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/common/movie-list-horizontal.js | rldona/react-native-tab-view-seed | import React, { Component } from 'react';
import {
View,
Text,
Image,
TouchableOpacity,
ListView,
StyleSheet,
Dimensions,
Vibration,
ToastAndroid,
InteractionManager
} from 'react-native';
import * as firebase from 'firebase';
import * as themoviedb from '../services/movies-service.js';
import * a... |
src/collections/Grid/GridColumn.js | jcarbo/stardust | import cx from 'classnames'
import React, { PropTypes } from 'react'
import {
getElementType,
getUnhandledProps,
META,
SUI,
useKeyOnly,
useTextAlignProp,
useValueAndKey,
useVerticalAlignProp,
useWidthProp,
} from '../../lib'
function GridColumn(props) {
const {
children, computer, className, c... |
docs/src/pages/style/SvgMaterialIcons.js | dsslimshaddy/material-ui | // @flow weak
import React from 'react';
import PropTypes from 'prop-types';
import AccessAlarmIcon from 'material-ui-icons/AccessAlarm';
import ThreeDRotation from 'material-ui-icons/ThreeDRotation';
import { withStyles } from 'material-ui/styles';
const styles = theme => ({
icon: {
margin: theme.spacing.unit,... |
itemField/nestedCollection.js | KAESapps/ks-admin | import React from 'react'
const el = React.createElement
import create from 'lodash/create'
import assign from 'lodash/assign'
import {collectionEditor as collectionEditorDefault} from '../collectionsExplorer'
import nestedCollection from '../collections/nested'
export default function (arg) {
var fieldPath = arg.... |
node_modules/reactify/node_modules/react-tools/src/browser/ui/__tests__/ReactDOMIDOperations-test.js | skyride99/Cardinal | /**
* 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... |
src/containers/CounterContainer.js | flibertigibet/react-redux-starter-kit-custom | import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import * as actions from '../actions/counterActions';
import Counter from '../components/Counter';
export const CounterContainer = (props) => {
return (
<Counter actions={... |
src/controllers/pages/model.js | TheFourFifths/consus-client | import { getModelAndItems } from '../../lib/api-client';
import { Dispatcher } from 'consus-core/flux';
import { hashHistory } from 'react-router';
export default class ModelPageController {
static getModelAndItems(modelAddress) {
return getModelAndItems(modelAddress).then(data => {
Dispatcher... |
src/components/Counter/Counter.js | juanleiguarda/react-app | import React from 'react'
import classes from './Counter.scss'
import Helmet from 'react-helmet';
export const Counter = (props) => (
<div>
<Helmet title="Counter"/>
<h2 className={classes.counterContainer}>
Counter:
{' '}
<span className={classes['counter--green']}>
{props.counter}... |
app/javascript/mastodon/components/missing_indicator.js | mosaxiv/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
const MissingIndicator = () => (
<div className='regeneration-indicator missing-indicator'>
<div>
<div className='regeneration-indicator__figure' />
<div className='regeneration-indicator__label'>
<FormattedMessage id=... |
ajax/libs/rxjs/2.3.9/rx.compat.js | bdukes/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... |
test/regressions/tests/Checkbox/DisabledCheckbox.js | AndriusBil/material-ui | // @flow
import React from 'react';
import Checkbox from 'material-ui/Checkbox';
import { FormControlLabel } from 'material-ui/Form';
export default function DisabledCheckbox() {
return (
<div>
<FormControlLabel disabled control={<Checkbox />} label="Foo" />
<Checkbox disabled />
<Checkbox che... |
docs/app/Examples/elements/Input/Variations/InputExampleIconElement.js | clemensw/stardust | import React from 'react'
import { Icon, Input } from 'semantic-ui-react'
const InputExampleIconElement = () => (
<Input
icon={<Icon name='search' inverted circular link />}
placeholder='Search...'
/>
)
export default InputExampleIconElement
|
src/svg-icons/hardware/keyboard-return.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardReturn = (props) => (
<SvgIcon {...props}>
<path d="M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"/>
</SvgIcon>
);
HardwareKeyboardReturn = pure(HardwareKeyboardReturn);
Hardware... |
python/src/mapreduce/static/jquery-1.4.2.min.js | akbertram/appengine-mapreduce | /*!
* 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.
... |
wrappers/yaml.js | mongus/mongus.com | import React from 'react'
import yaml from 'js-yaml'
import Helmet from 'react-helmet'
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
route: React.PropTypes.object,
}
},
render () {
const data = this.props.route.page.data
return (
<div>
... |
src/browser/app/components/Image.js | xiankai/triple-triad-solver | /* @flow */
import React from 'react';
import { Base } from 'rebass';
// TODO: Enforce height and width with invariant check.
const Image = (props: Object) => (
<Base {...props} tagName="img" />
);
export default Image;
|
client/src/components/Home/index.js | googleinterns/Pictophone | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { Button } from 'react-bootstrap';
import '../../../node_modules/bootstrap/dist/css/bootstrap.css';
import './Home.css';
class Home extends Component {
render() {
return (
<div className="home-wrapper">
<div ... |
ajax/libs/mobx-react/4.0.0-beta.1/index.min.js | extend1994/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("mobx"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["mobx","react","react-dom"],t):"object"==typeof exports?exports.mobxReact=t(require("mobx"),require("react"),require("react-dom")):e.mobx... |
app/react-icons/fa/sort-alpha-desc.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaSortAlphaDesc extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m27.6 32h3.9l-1.6-4.9-0.2-1.1q-0.1-0.3-0.1-0.4h-0.1l0 0.4q0 0.1-0.1 0.... |
src/app/icons/clear-night.js | Eric-Vandenberg/react-redux-weatherapp.io | import React from 'react';
const clearNight = (props) => (
<svg id="clear-night" viewBox="0 0 72 72" strokeWidth="0.5" {...props}>
<g>
<path d="M54.3,32.1c0-11.4-8.6-20.9-19.9-22l-3.7-0.4l1.8,3.3c1.2,2.1,1.8,4.6,1.8,7c0,8.1-6.6,14.8-14.8,14.8
c-2.2,0-4.3-0.5-6.3-1.4l-3.4-1.6l0.6,3.7C12,46.4,21.2,54... |
src/Header/Actions/index.js | ziel5122/pdie | import React from 'react';
import { connect } from 'react-redux';
import HeaderActions from './header-actions';
const mapStateToProps = ({ image }) => ({
imageOpen: image.imageOpen,
imageUploadUrl: image.imageUploadUrl,
});
const mapDispatchToProps = (dispatch) => ({
setImageUploadUrl(imageUploadUrl) {
dis... |
app/javascript/mastodon/features/compose/components/navigation_bar.js | Nyoho/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ActionBar from './action_bar';
import Avatar from '../../../components/avatar';
import Permalink from '../../../components/permalink';
import IconButton from '../../../components/icon_button... |
misc/jquery.js | samchalle/shift-cipher |
/*!
* 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.... |
react/test-driven-react/test-driven-carousel/example/index.js | saramic/learning | import React from 'react';
import ReactDOM from 'react-dom';
import Carousel from '../src/Carousel';
import slides from './slides';
const container = document.createElement('div');
document.body.appendChild(container);
ReactDOM.render(<Carousel slides={slides} />, container);
|
src/pages/create-run-button.js | getinsomnia/website | import React from 'react';
import SocialCards from '../components/social-cards';
import Title from '../partials/title';
import CreateRunLink from '../components/create-run-link';
export default () => (
<React.Fragment>
<article>
<Title>Create Run Button</Title>
<SocialCards title="Insomnia" summary="... |
internals/templates/notFoundPage/notFoundPage.js | gitlab-classroom/classroom-web | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it... |
thinking-in-react/2-build-static-part1.js | golgistudio/node-school-exercises | import React from 'react'
export const FilterableProductTable = React.createClass({
render() {
return (
<div></div>
)
}
})
|
docs/src/app/components/pages/components/Dialog/ExampleDialogDatePicker.js | pradel/material-ui | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
import DatePicker from 'material-ui/DatePicker';
/**
* Dialogs can be nested. This example opens a Date Picker from within a Dialog.
*/
export defa... |
app/views/Proposals/Proposal/Budgeting/Partial/Partial.js | RcKeller/STF-Refresh | import React from 'react'
import PropTypes from 'prop-types'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import api from '../../../../../services'
import _ from 'lodash'
import { Select, Alert, message } from 'antd'
const Option = Select.Option
import { Boundary, Spr... |
ui/src/main/js/components/Time.js | rdelval/aurora | import moment from 'moment';
import React from 'react';
export function RelativeTime({ ts }) {
return <span>{moment(ts).fromNow()}</span>;
}
|
test/HeroDetail.spec.js | MarcAtrapalo/redux-formation | import React from 'react';
import {shallow} from 'enzyme';
import sinon from 'sinon';
import HeroDetail from '../src/HeroDetail';
describe('<HeroDetail/>', () => {
const hero = {id: 42, name: 'Test'};
const spy = sinon.spy();
const wrapper = shallow(<HeroDetail hero={hero} onHeroChange={spy} />);
it... |
node_modules/enzyme/test/ShallowTraversal-spec.js | sauceSquatch/we_are_razorfish_experience | import React from 'react';
import sinon from 'sinon';
import { expect } from 'chai';
import {
splitSelector,
} from '../src/Utils';
import {
hasClassName,
nodeHasProperty,
treeForEach,
treeFilter,
} from '../src/ShallowTraversal';
describe('ShallowTraversal', () => {
describe('splitSelector', () => {
... |
src/svg-icons/maps/person-pin-circle.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsPersonPinCircle = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm0 2c1.1 0 2 .9 2 2 0 1.11-.9 2-2 2s-2-.89-2-2c0-1.1.9-2 2-2zm0 10c-1.67 0... |
ajax/libs/shariff/1.7.0/shariff.complete.js | magoni/cdnjs |
/*!
* shariff - v1.6.1 - 02.02.2015
* https://github.com/heiseonline/shariff
* Copyright (c) 2015 Ines Pauer, Philipp Busse, Sebastian Hilbig, Erich Kramer, Deniz Sesli
* Licensed under the MIT <http://www.opensource.org/licenses/mit-license.php> license
*/
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o])... |
assets/src/containers/Applications/ApiDetail/index.js | mmillet/mock-server | /**
* Created by zhengguo.chen on 16/11/25.
*/
import React from 'react';
import _ from 'lodash';
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';
import {Modal, Popconfirm} from 'antd';
import request, {METHODS} from 'utils/request';
import appsActions from 'actions/apps';
import rootA... |
src/components/TextInputBEM/TextInputBEM.js | tlraridon/ps-react-train-tlr | import React from 'react';
import PropTypes from 'prop-types';
import Label from '../Label';
/** Text input with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */
function TextInput({htmlId, name, label, type = "text", required = false, onChange, placehold... |
ajax/libs/6to5/2.7.3/browser.js | Teino1978-Corp/Teino1978-Corp-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/parser/shared/modules/features/RaidHealthTab/index.js | anom0ly/WoWAnalyzer | import ROLES from 'game/ROLES';
import Analyzer from 'parser/core/Analyzer';
import React from 'react';
import TabComponent from './TabComponent';
class RaidHealthTab extends Analyzer {
constructor(...args) {
super(...args);
this.active = this.selectedCombatant.spec.role === ROLES.HEALER;
}
tab() {
... |
src/parser/hunter/marksmanship/modules/talents/DoubleTap.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import SpellIcon from 'common/SpellIcon';
/**
* Your next Aimed Shot will fire a second time instantly at 100% power without consuming Foc... |
ajax/libs/forerunnerdb/1.3.119/fdb-core+views.min.js | keicheng/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... |
client/__tests__/index.ios.js | contextmind/inContext | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
lib/ContainerMixin.js | louiscloutierdakis/react-canvas | 'use strict';
// Adapted from ReactART:
// https://github.com/reactjs/react-art
var React = require('react');
var ReactMultiChild = require('react/lib/ReactMultiChild');
var assign = require('react/lib/Object.assign');
var emptyObject = require('react/lib/emptyObject');
var ContainerMixin = assign({}, ReactMultiChil... |
examples/github-users/src/app.js | shaunpersad/redu | /**
* The entrypoint of our example app.
*/
import React from 'react';
import ReactDOM from 'react-dom';
import PageStore from './stores/PageStore';
ReactDOM.render(
React.createElement(PageStore), // notice we are mounting the PageStore component, not our Page component.
document.getElementById('root')
); |
packages/material-ui-icons/src/SpaceBarTwoTone.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="M18 13H6V9H4v6h16V9h-2z" /></g></React.Fragment>
, 'SpaceBarTwoTone');
|
apps/marketplace/components/Teams/Flows/TeamMemberActions.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react'
import AUlinklist from '@gov.au/link-list/lib/js/react.js'
import commonStyles from './TeamStages.scss'
const TeamMemberActions = props => {
const { handleConvertToTeamLead, handleRemoveTeamMember, id } = props
return (
<div className={commonStyles.selectedItemActionsContainer}>
... |
data-browser-ui/public/app/components/tableComponents/td/relationComponents/text.js | CloudBoost/cloudboost | import React from 'react';
import ReactDOM from 'react-dom';
class Text extends React.Component {
constructor(){
super()
this.state = {
}
}
componentDidMount(){
}
changeHandler(e){
this.props.updateElementData(e.target.value,this.props.columnData.name)
}
render() {
return (
<div classN... |
node_modules/gulp-babel/node_modules/babel-core/lib/traversal/path/lib/hoister.js | LePetitDev/quizIO | "use strict";
exports.__esModule = true;
// istanbul ignore next
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj;... |
Realization/frontend/czechidm-acc/src/content/system/SchemaObjectClassDetail.js | bcvsolutions/CzechIdMng | import PropTypes from 'prop-types';
import React from 'react';
import Helmet from 'react-helmet';
import { connect } from 'react-redux';
import uuid from 'uuid';
//
import { Advanced, Basic, Domain, Managers, Utils } from 'czechidm-core';
import { SchemaAttributeManager, SchemaObjectClassManager, SystemManager } from '... |
packages/veritone-react-common/src/components/DataPicker/FolderViewContainer/FolderGridView/story.js | veritone/veritone-sdk | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
// import { boolean, text } from '@storybook/addon-knobs';
import FolderGridView from './';
const items = [
{
id: '1',
type: 'folder',
createdDateTime: 'Mar 29, 2019 3:34 PM',
m... |
packages/map/src/inputs/Geo.js | wq/wq.app | import React from 'react';
import { useComponents, useInputComponents } from '@wq/react';
import {
TYPE_MAP,
useOverlayComponents,
useFeatureCollection,
asGeometry
} from '../hooks';
import { useField } from 'formik';
import PropTypes from 'prop-types';
export default function Geo({
name,
type,... |
elcri.men/src/components/MxAnomalyMapTooltip.js | diegovalle/new.crimenmexico | import React from 'react'
import PropTypes from 'prop-types'
import MxAnomalyMap from '../components/MxAnomalyMap'
export const withTooltipPropTypes = {
tooltipOpen: PropTypes.bool,
tooltipLeft: PropTypes.number,
tooltipTop: PropTypes.number,
tooltipData: PropTypes.object,
updateTooltip: PropTypes.func,
sh... |
ajax/libs/react-native-web/0.0.0-3326aab2/exports/RefreshControl/index.js | cdnjs/cdnjs | function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
/**
* Copy... |
node_modules/react-router/es6/Link.js | tempestaddepvc/proyecto-electron | 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 = {... |
ajax/libs/kendo-ui-core/2014.1.416/js/jquery.min.js | xeodou/cdnjs | /*! 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... |
webapp/src/NewGameButton.js | gocaine/go-dart | import React, { Component } from 'react';
import { browserHistory } from 'react-router';
class NewGameButton extends Component {
newGame(flavor) {
fetch('/api/games', {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JS... |
fields/types/numberarray/NumberArrayFilter.js | everisARQ/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import { FormField, FormInput, FormRow, FormSelect } from 'elemental';
const MODE_OPTIONS = [
{ label: 'Exactly', value: 'equals' },
{ label: 'Greater Than', value: 'gt' },
{ label: 'Less Than', value: 'lt' },
{ label: 'Between', value: 'between' },
];
... |
ajax/libs/react/15.4.1/react-dom.min.js | sajochiu/cdnjs | /**
* ReactDOM v15.4.1
*
* 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 directo... |
src/components/dashboard.js | Xabadu/VendOS | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Moment from 'moment';
import { getSales } from '../actions/index';
import { Line } from 'react-chartjs';
import SummaryCards from './common/summary-cards';
import { Link } from 'react-router';
const OPTIONS = {
scaleShowGridLin... |
ajax/libs/6to5/3.3.11/browser-polyfill.js | amoyeh/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/main.js | DeekyJay/SoundwaveInteractive | import React from 'react'
import ReactDOM from 'react-dom'
import createHashHistory from 'history/lib/createHashHistory'
import { useRouterHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import makeRoutes from './routes'
import Root from './containers/Root'
import configureStore ... |
demos/demo/src/components/Email/index.js | FWeinb/cerebral | import React from 'react'
import {connect} from 'cerebral/react'
export default connect(
null,
function Phone ({email}) {
return (
<a className='level-item' target='_blank'
href={email && `mailto:${email}`}>
<span className='icon is-small'>
<i className='fa fa-envelope' style={e... |
UI/src/components/SettingModal.js | ssvictorlin/PI | import React, { Component } from 'react';
import { Dimensions, View, Modal, Text, TouchableHighlight, ScrollView } from 'react-native';
import { Icon, CheckBox, Header } from 'react-native-elements';
export default class SettingModal extends Component {
constructor(props) {
super(props);
this.state = {
sett... |
public/static/galleries/zp-core/zp-extensions/tiny_mce/plugins/legacyoutput/editor_plugin_src.js | UTAlan/PhotosByMallie | /**
* editor_plugin_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*
* This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u elements... |
src/components/Patterns/LeftPane/PatternsLeftPaneComponent.js | coolshare/ReactReduxStarterKit | import React from 'react';
import classNames from 'classnames';
import InfiniteTree from 'react-infinite-tree';
import 'react-infinite-tree/dist/react-infinite-tree.css';
import cs from '../../../services/CommunicationService'
export default class PatternsLeftPane extends React.Component {
tree = null;
compon... |
src/js/components/RoutedButton/__tests__/RoutedButton-test.js | grommet/grommet | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { createEvent, fireEvent, render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import 'jest-styled-components';
import 'regenerator-runtime/runtime';
import { Grommet, RoutedButton } fro... |
lib/components/MapCallout.js | amitv87/react-native-maps | import PropTypes from 'prop-types';
import React from 'react';
import {
StyleSheet,
ViewPropTypes,
} from 'react-native';
import decorateMapComponent, {
SUPPORTED,
USES_DEFAULT_IMPLEMENTATION,
} from './decorateMapComponent';
const propTypes = {
...ViewPropTypes,
tooltip: PropTypes.bool,
onPress: PropTyp... |
packages/ringcentral-widgets-docs/src/app/pages/Components/Header/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import { parse } from 'react-docgen';
import CodeExample from '../../../components/CodeExample';
import ComponentHeader from '../../../components/ComponentHeader';
import PropTypeDescription from '../../../components/PropTypeDescription';
import Demo from './Demo';
// eslint-disable-next-lin... |
client/pages/post.js | marioguerriero/opengram | import React from 'react'
import Head from './../components/Head';
import Footer from './../components/Footer';
import Header from './../components/Header';
export default class extends React.Component {
static getInitialProps ({ query: { id } }) {
return { id };
}
render() {
return(<div>
<Head ... |
src/components/ButtonLink.js | neontribe/spool | import React, { Component } from 'react';
import { Link } from 'react-router';
import styles from './css/Button.module.css';
export default class ButtonLink extends Component {
static propTypes = {
to: React.PropTypes.string.isRequired,
className: React.PropTypes.string
}
render () {
... |
src/index.js | civerazdaM/counseling-center-client | import React from 'react';
import ReactDOM from 'react-dom';
import configureStore from './store';
import { Provider } from 'react-redux';
import './index.css';
import App from './containers/App/App';
import registerServiceWorker from './registerServiceWorker';
const store = configureStore();
ReactDOM.render(
<Prov... |
src/renderers/dom/client/wrappers/__tests__/ReactDOMButton-test.js | dgladkov/react | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react-co... |
src/components/Albums.js | qubbit/gopal.io | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { fetchAlbums } from '../actions';
import Loader from './Loader';
import { Link } from 'react-router-dom';
class Albums extends Component {
componentDidMount() {
this.props.fetchAlbums();
}
render() {
const { loading... |
resources/lib/jquery.ui/jquery.ui.tabs.js | Blackksoulls/heroku-personal-wiki | /*!
* jQuery UI Tabs 1.9.2
* http://jqueryui.com
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/tabs/
*
* Depends:
* jquery.ui.core.js
* jquery.ui.widget.js
*/
(function( $, undefined ) {
var tabId = 0,
... |
packages/material-ui-icons/src/HourglassFullOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6z" />
, 'HourglassFullOutlined');
|
src/Odnoklassniki/index.js | canvaskisa/react-share-icons | import React from 'react';
const Odnoklassniki = (props: any) => (
<svg {...props} viewBox="0 0 48 48">
<path d="M24.01 24.1a9.686 9.686 0 0 0 9.806-9.54 9.81 9.81 0 0 0-19.614 0 9.687 9.687 0 0 0 9.807 9.54zm0-13.493a3.952 3.952 0 1 1-4.062 3.952 4.01 4.01 0 0 1 4.06-3.96zm3.967 21.278a18.652 18.652 0 0 0 5.695-2.... |
react/features/notifications/components/native/Notification.js | gpolitis/jitsi-meet | // @flow
import React from 'react';
import { Text, TouchableOpacity, View } from 'react-native';
import { translate } from '../../../base/i18n';
import { Icon, IconClose } from '../../../base/icons';
import { replaceNonUnicodeEmojis } from '../../../chat/functions';
import AbstractNotification, {
type Props
} fro... |
js/components/common/ja-button/index.js | justarrived/p2p-client | import React, { Component } from 'react';
import { Text, TouchableOpacity } from 'react-native';
import LinearGradient from 'react-native-linear-gradient';
import { PRIMARY_THEME_COLOR,
GRADIENT_ORANGE_COLOR,
FACEBOOK_COLOR,
FACEBOOK_GRADIENT_COLOR } from '../../../resources/colors';
import {... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.